/* * 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 ExpirePaymentLinkGlobals = { merchantAccountId?: string | undefined; }; export type ExpirePaymentLinkRequest = { /** * 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 ExpirePaymentLinkRequest$Outbound = { payment_link_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const ExpirePaymentLinkRequest$outboundSchema: z.ZodType< ExpirePaymentLinkRequest$Outbound, z.ZodTypeDef, ExpirePaymentLinkRequest > = z.object({ paymentLinkId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { paymentLinkId: "payment_link_id", }); }); export function expirePaymentLinkRequestToJSON( expirePaymentLinkRequest: ExpirePaymentLinkRequest, ): string { return JSON.stringify( ExpirePaymentLinkRequest$outboundSchema.parse(expirePaymentLinkRequest), ); }