/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; /** * Create a charge against a gift card */ export type GiftCardTransactionCreate = { /** * The 16-19 digit number for the gift card. */ number: string; /** * The PIN for this gift card. */ pin: 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 GiftCardTransactionCreate$Outbound = { number: string; pin: string; amount: number; }; /** @internal */ export const GiftCardTransactionCreate$outboundSchema: z.ZodType< GiftCardTransactionCreate$Outbound, z.ZodTypeDef, GiftCardTransactionCreate > = z.object({ number: z.string(), pin: z.string(), amount: z.number().int(), }); export function giftCardTransactionCreateToJSON( giftCardTransactionCreate: GiftCardTransactionCreate, ): string { return JSON.stringify( GiftCardTransactionCreate$outboundSchema.parse(giftCardTransactionCreate), ); }