/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { FiservInstallmentOptions, FiservInstallmentOptions$Outbound, FiservInstallmentOptions$outboundSchema, } from "./fiservinstallmentoptions.js"; export type FiservOptions = { /** * Passes installment data to the Fiserv API. This is now also a dedicated feature on the Gr4vy API. */ installmentOptions?: FiservInstallmentOptions | null | undefined; }; /** @internal */ export type FiservOptions$Outbound = { installmentOptions?: FiservInstallmentOptions$Outbound | null | undefined; }; /** @internal */ export const FiservOptions$outboundSchema: z.ZodType< FiservOptions$Outbound, z.ZodTypeDef, FiservOptions > = z.object({ installmentOptions: z.nullable(FiservInstallmentOptions$outboundSchema) .optional(), }); export function fiservOptionsToJSON(fiservOptions: FiservOptions): string { return JSON.stringify(FiservOptions$outboundSchema.parse(fiservOptions)); }