/* * 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 GetPaymentServiceGlobals = { merchantAccountId?: string | undefined; }; export type GetPaymentServiceRequest = { /** * 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 GetPaymentServiceRequest$Outbound = { payment_service_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const GetPaymentServiceRequest$outboundSchema: z.ZodType< GetPaymentServiceRequest$Outbound, z.ZodTypeDef, GetPaymentServiceRequest > = z.object({ paymentServiceId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { paymentServiceId: "payment_service_id", }); }); export function getPaymentServiceRequestToJSON( getPaymentServiceRequest: GetPaymentServiceRequest, ): string { return JSON.stringify( GetPaymentServiceRequest$outboundSchema.parse(getPaymentServiceRequest), ); }