/* * 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 CustomerSubscriptionUpdateProduct = { /** * Update subscription to another product. */ productId: string; }; /** @internal */ export type CustomerSubscriptionUpdateProduct$Outbound = { product_id: string; }; /** @internal */ export const CustomerSubscriptionUpdateProduct$outboundSchema: z.ZodMiniType< CustomerSubscriptionUpdateProduct$Outbound, CustomerSubscriptionUpdateProduct > = z.pipe( z.object({ productId: z.string(), }), z.transform((v) => { return remap$(v, { productId: "product_id", }); }), ); export function customerSubscriptionUpdateProductToJSON( customerSubscriptionUpdateProduct: CustomerSubscriptionUpdateProduct, ): string { return JSON.stringify( CustomerSubscriptionUpdateProduct$outboundSchema.parse( customerSubscriptionUpdateProduct, ), ); }