/* * 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 EcommpayOptions = { /** * The start date of the booking in ISO 8601 format (YYYY-MM-DD). Required for certain MCCs. */ bookingStartDate?: string | null | undefined; /** * The end date of the booking in ISO 8601 format (YYYY-MM-DD). Required for certain MCCs. */ bookingEndDate?: string | null | undefined; }; /** @internal */ export type EcommpayOptions$Outbound = { booking_start_date?: string | null | undefined; booking_end_date?: string | null | undefined; }; /** @internal */ export const EcommpayOptions$outboundSchema: z.ZodType< EcommpayOptions$Outbound, z.ZodTypeDef, EcommpayOptions > = z.object({ bookingStartDate: z.nullable(z.string()).optional(), bookingEndDate: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { bookingStartDate: "booking_start_date", bookingEndDate: "booking_end_date", }); }); export function ecommpayOptionsToJSON( ecommpayOptions: EcommpayOptions, ): string { return JSON.stringify(EcommpayOptions$outboundSchema.parse(ecommpayOptions)); }