/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { remap as remap$ } from "../../lib/primitives.js"; export type AzureMarketplaceAgreement = { /** * writes the customer mapping; not read in the report payload */ beneficiaryAccountId: string; /** * -> usageEvent's dimension (always "usage_fee" in the cents model) */ dimension: string; /** * -> usageEvent's planId; Azure's plan id, distinct from the request's top-level PlanID */ planId: string; /** * -> usageEvent's resourceId; the Azure SaaS subscription id */ resourceId: string; }; /** @internal */ export type AzureMarketplaceAgreement$Outbound = { beneficiary_account_id: string; dimension: string; plan_id: string; resource_id: string; }; /** @internal */ export const AzureMarketplaceAgreement$outboundSchema: z.ZodMiniType< AzureMarketplaceAgreement$Outbound, AzureMarketplaceAgreement > = z.pipe( z.object({ beneficiaryAccountId: z.string(), dimension: z.string(), planId: z.string(), resourceId: z.string(), }), z.transform((v) => { return remap$(v, { beneficiaryAccountId: "beneficiary_account_id", planId: "plan_id", resourceId: "resource_id", }); }), ); export function azureMarketplaceAgreementToJSON( azureMarketplaceAgreement: AzureMarketplaceAgreement, ): string { return JSON.stringify( AzureMarketplaceAgreement$outboundSchema.parse(azureMarketplaceAgreement), ); }