/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type PaymentMethodStoredCard = { /** * Set to `id` to use a stored card. */ method?: "id" | undefined; /** * The ID of the stored card to use. */ id: string; }; /** @internal */ export type PaymentMethodStoredCard$Outbound = { method: "id"; id: string; }; /** @internal */ export const PaymentMethodStoredCard$outboundSchema: z.ZodType< PaymentMethodStoredCard$Outbound, z.ZodTypeDef, PaymentMethodStoredCard > = z.object({ method: z.literal("id").default("id" as const), id: z.string(), }); export function paymentMethodStoredCardToJSON( paymentMethodStoredCard: PaymentMethodStoredCard, ): string { return JSON.stringify( PaymentMethodStoredCard$outboundSchema.parse(paymentMethodStoredCard), ); }