/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type CreatePaymentServiceGlobals = { merchantAccountId?: string | undefined; }; export type CreatePaymentServiceRequest = { /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; paymentServiceCreate: components.PaymentServiceCreate; }; /** @internal */ export type CreatePaymentServiceRequest$Outbound = { merchantAccountId?: string | null | undefined; PaymentServiceCreate: components.PaymentServiceCreate$Outbound; }; /** @internal */ export const CreatePaymentServiceRequest$outboundSchema: z.ZodType< CreatePaymentServiceRequest$Outbound, z.ZodTypeDef, CreatePaymentServiceRequest > = z.object({ merchantAccountId: z.nullable(z.string()).optional(), paymentServiceCreate: components.PaymentServiceCreate$outboundSchema, }).transform((v) => { return remap$(v, { paymentServiceCreate: "PaymentServiceCreate", }); }); export function createPaymentServiceRequestToJSON( createPaymentServiceRequest: CreatePaymentServiceRequest, ): string { return JSON.stringify( CreatePaymentServiceRequest$outboundSchema.parse( createPaymentServiceRequest, ), ); }