/* * 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 DeletePaymentServiceGlobals = { merchantAccountId?: string | undefined; }; export type DeletePaymentServiceRequest = { /** * the ID of the payment service */ paymentServiceId: string; /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; }; /** @internal */ export type DeletePaymentServiceRequest$Outbound = { payment_service_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const DeletePaymentServiceRequest$outboundSchema: z.ZodType< DeletePaymentServiceRequest$Outbound, z.ZodTypeDef, DeletePaymentServiceRequest > = z.object({ paymentServiceId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { paymentServiceId: "payment_service_id", }); }); export function deletePaymentServiceRequestToJSON( deletePaymentServiceRequest: DeletePaymentServiceRequest, ): string { return JSON.stringify( DeletePaymentServiceRequest$outboundSchema.parse( deletePaymentServiceRequest, ), ); }