/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { SubscriptionChangeV2Request, SubscriptionChangeV2Request$Outbound, SubscriptionChangeV2Request$outboundSchema, } from "./subscription-change-v2-request.js"; export type PreviewSubscriptionPlanChangeV2Request = { /** * Subscription ID */ id: string; /** * Plan change request */ body: SubscriptionChangeV2Request; }; /** @internal */ export type PreviewSubscriptionPlanChangeV2Request$Outbound = { id: string; body: SubscriptionChangeV2Request$Outbound; }; /** @internal */ export const PreviewSubscriptionPlanChangeV2Request$outboundSchema: z.ZodMiniType< PreviewSubscriptionPlanChangeV2Request$Outbound, PreviewSubscriptionPlanChangeV2Request > = z.object({ id: z.string(), body: SubscriptionChangeV2Request$outboundSchema, }); export function previewSubscriptionPlanChangeV2RequestToJSON( previewSubscriptionPlanChangeV2Request: PreviewSubscriptionPlanChangeV2Request, ): string { return JSON.stringify( PreviewSubscriptionPlanChangeV2Request$outboundSchema.parse( previewSubscriptionPlanChangeV2Request, ), ); }