/* * 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 GetPaymentMethodGlobals = { merchantAccountId?: string | undefined; }; export type GetPaymentMethodRequest = { /** * 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 GetPaymentMethodRequest$Outbound = { payment_method_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const GetPaymentMethodRequest$outboundSchema: z.ZodType< GetPaymentMethodRequest$Outbound, z.ZodTypeDef, GetPaymentMethodRequest > = z.object({ paymentMethodId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { paymentMethodId: "payment_method_id", }); }); export function getPaymentMethodRequestToJSON( getPaymentMethodRequest: GetPaymentMethodRequest, ): string { return JSON.stringify( GetPaymentMethodRequest$outboundSchema.parse(getPaymentMethodRequest), ); }