/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; export type GetSubscriptionV2Request = { /** * Subscription ID */ id: string; /** * Comma-separated list of fields to expand (e.g., 'subscription_line_items,prices,plan') */ expand?: string | undefined; }; /** @internal */ export type GetSubscriptionV2Request$Outbound = { id: string; expand?: string | undefined; }; /** @internal */ export const GetSubscriptionV2Request$outboundSchema: z.ZodMiniType< GetSubscriptionV2Request$Outbound, GetSubscriptionV2Request > = z.object({ id: z.string(), expand: z.optional(z.string()), }); export function getSubscriptionV2RequestToJSON( getSubscriptionV2Request: GetSubscriptionV2Request, ): string { return JSON.stringify( GetSubscriptionV2Request$outboundSchema.parse(getSubscriptionV2Request), ); }