import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { GiftCardErrorCode } from "./giftcarderrorcode.js"; export type GiftCardSummary = { /** * Always `gift-card`. */ type: "gift-card"; /** * The ID for the gift card. */ id?: string | null | undefined; /** * The ID of the merchant account this buyer belongs to. */ merchantAccountId: string; /** * 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 ISO-4217 currency code that this gift card has a balance for. */ currency?: string | null | undefined; /** * 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 amount remaining on the balance for this gift card according to the gift card service. This may be `null` if the balance could not be fetched. */ balance?: number | null | undefined; /** * If the last balance update failed, this will contain the internal code for this error. */ balanceErrorCode?: GiftCardErrorCode | null | undefined; /** * If the last balance update failed, this will contain the the raw error code received from the gift card provider. */ balanceRawErrorCode?: string | null | undefined; /** * If the last balance update failed, this will contain the the raw error message received from the gift card provider. */ balanceRawErrorMessage?: string | null | undefined; /** * 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 GiftCardSummary$inboundSchema: z.ZodType; export declare function giftCardSummaryFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=giftcardsummary.d.ts.map