/* * 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 StripePaymentGatewayOptions = { /** * TaxIDCollectionEnabled only applies to PAYMENT_LINK Checkout Sessions. */ taxIdCollectionEnabled?: boolean | undefined; }; /** @internal */ export type StripePaymentGatewayOptions$Outbound = { tax_id_collection_enabled?: boolean | undefined; }; /** @internal */ export const StripePaymentGatewayOptions$outboundSchema: z.ZodMiniType< StripePaymentGatewayOptions$Outbound, StripePaymentGatewayOptions > = z.pipe( z.object({ taxIdCollectionEnabled: z.optional(z.boolean()), }), z.transform((v) => { return remap$(v, { taxIdCollectionEnabled: "tax_id_collection_enabled", }); }), ); export function stripePaymentGatewayOptionsToJSON( stripePaymentGatewayOptions: StripePaymentGatewayOptions, ): string { return JSON.stringify( StripePaymentGatewayOptions$outboundSchema.parse( stripePaymentGatewayOptions, ), ); }