import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Buyer } from "./buyer.js"; import { GiftCardService } from "./giftcardservice.js"; export type GiftCard = { /** * Always `gift-card`. */ type: "gift-card"; /** * The ID for the gift card. */ id: string; /** * The ID of the merchant account this buyer belongs to. */ merchantAccountId: string; giftCardService: GiftCardService; /** * The first 6 digits of the full gift card number. */ bin: string; /** * The 3 digits after the `bin` of the full gift card number. */ subBin: string; /** * The last 4 digits for the gift card. */ last4: string; /** * The date and time when this gift card expires. This is a full date/time and may be more accurate than the actual expiry date received by the gift card service. */ expirationDate?: Date | null | undefined; /** * The buyer for which this gift card is stored. */ buyer?: Buyer | null | undefined; /** * The date this gift card record was created at. */ createdAt: Date; /** * The date this gift card record was last updated at. */ updatedAt: Date; /** * The timestamp when this gift card was last used in a transaction. */ lastUsedAt?: Date | null | undefined; /** * The number of times this gift card has been used in transactions. */ usageCount: number; /** * The timestamp when this gift card was last used in a transaction for client initiated transactions. */ citLastUsedAt?: Date | null | undefined; /** * The number of times this gift card has been used in transactions for client initiated transactions. */ citUsageCount: number; }; /** @internal */ export declare const GiftCard$inboundSchema: z.ZodType; export declare function giftCardFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=giftcard.d.ts.map