/* * 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 GetPaymentLinkGlobals = { merchantAccountId?: string | undefined; }; export type GetPaymentLinkRequest = { /** * The unique identifier for the payment link. */ paymentLinkId: string; /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; }; /** @internal */ export type GetPaymentLinkRequest$Outbound = { payment_link_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const GetPaymentLinkRequest$outboundSchema: z.ZodType< GetPaymentLinkRequest$Outbound, z.ZodTypeDef, GetPaymentLinkRequest > = z.object({ paymentLinkId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { paymentLinkId: "payment_link_id", }); }); export function getPaymentLinkRequestToJSON( getPaymentLinkRequest: GetPaymentLinkRequest, ): string { return JSON.stringify( GetPaymentLinkRequest$outboundSchema.parse(getPaymentLinkRequest), ); }