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