/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type MattildaTapiOptions = { /** * Defines the date at which the payment will expire if not completed. Must be provided in ISO 8601 format `(YYYY-MM-DD`). If not specified, it defaults to 7 days in the future from the current date. */ paymentMethodExpiresAt?: string | null | undefined; }; /** @internal */ export type MattildaTapiOptions$Outbound = { payment_method_expires_at?: string | null | undefined; }; /** @internal */ export const MattildaTapiOptions$outboundSchema: z.ZodType< MattildaTapiOptions$Outbound, z.ZodTypeDef, MattildaTapiOptions > = z.object({ paymentMethodExpiresAt: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { paymentMethodExpiresAt: "payment_method_expires_at", }); }); export function mattildaTapiOptionsToJSON( mattildaTapiOptions: MattildaTapiOptions, ): string { return JSON.stringify( MattildaTapiOptions$outboundSchema.parse(mattildaTapiOptions), ); }