/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type GiftCardTokenTransactionCreate = { /** * The ID for the gift card to charge. */ id: string; /** * The monetary amount for this transaction to charge against the gift card, in the smallest currency unit (for example, cents or pence). */ amount: number; }; /** @internal */ export type GiftCardTokenTransactionCreate$Outbound = { id: string; amount: number; }; /** @internal */ export const GiftCardTokenTransactionCreate$outboundSchema: z.ZodType< GiftCardTokenTransactionCreate$Outbound, z.ZodTypeDef, GiftCardTokenTransactionCreate > = z.object({ id: z.string(), amount: z.number().int(), }); export function giftCardTokenTransactionCreateToJSON( giftCardTokenTransactionCreate: GiftCardTokenTransactionCreate, ): string { return JSON.stringify( GiftCardTokenTransactionCreate$outboundSchema.parse( giftCardTokenTransactionCreate, ), ); }