/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { WpayPaytoResourceOptions, WpayPaytoResourceOptions$Outbound, WpayPaytoResourceOptions$outboundSchema, } from "./wpaypaytoresourceoptions.js"; export type WpayPaytoOptions = { /** * Options to pass to the `instrument` resource in the Wpay PayTo API. */ instrument?: WpayPaytoResourceOptions | null | undefined; /** * Options to pass to the `payment` resource in the Wpay PayTo API. */ payment?: WpayPaytoResourceOptions | null | undefined; /** * Options to pass to the `refund` resource in the Wpay PayTo API. */ refund?: WpayPaytoResourceOptions | null | undefined; }; /** @internal */ export type WpayPaytoOptions$Outbound = { instrument?: WpayPaytoResourceOptions$Outbound | null | undefined; payment?: WpayPaytoResourceOptions$Outbound | null | undefined; refund?: WpayPaytoResourceOptions$Outbound | null | undefined; }; /** @internal */ export const WpayPaytoOptions$outboundSchema: z.ZodType< WpayPaytoOptions$Outbound, z.ZodTypeDef, WpayPaytoOptions > = z.object({ instrument: z.nullable(WpayPaytoResourceOptions$outboundSchema).optional(), payment: z.nullable(WpayPaytoResourceOptions$outboundSchema).optional(), refund: z.nullable(WpayPaytoResourceOptions$outboundSchema).optional(), }); export function wpayPaytoOptionsToJSON( wpayPaytoOptions: WpayPaytoOptions, ): string { return JSON.stringify( WpayPaytoOptions$outboundSchema.parse(wpayPaytoOptions), ); }