/* * 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 DeleteGiftCardGlobals = { merchantAccountId?: string | undefined; }; export type DeleteGiftCardRequest = { /** * The ID of the gift card. */ giftCardId: string; /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; }; /** @internal */ export type DeleteGiftCardRequest$Outbound = { gift_card_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const DeleteGiftCardRequest$outboundSchema: z.ZodType< DeleteGiftCardRequest$Outbound, z.ZodTypeDef, DeleteGiftCardRequest > = z.object({ giftCardId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { giftCardId: "gift_card_id", }); }); export function deleteGiftCardRequestToJSON( deleteGiftCardRequest: DeleteGiftCardRequest, ): string { return JSON.stringify( DeleteGiftCardRequest$outboundSchema.parse(deleteGiftCardRequest), ); }