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"; import { GiftCardRedemptionStatus } from "./giftcardredemptionstatus.js"; import { TransactionGiftCard } from "./transactiongiftcard.js"; export type GiftCardRedemption = { /** * Always `gift-card-redemption`. */ type: "gift-card-redemption"; /** * The ID for the gift card redemption. */ id: string; status: GiftCardRedemptionStatus; /** * The amount redeemed for this gift card. */ amount: number; /** * The amount refunded for this gift card. This can not be larger than `amount`. */ refundedAmount: number; /** * The gift card service's unique ID for the redemption. */ giftCardServiceRedemptionId?: string | null | undefined; /** * If this gift card redemption resulted in an error, this will contain the internal code for the error. */ errorCode?: GiftCardErrorCode | null | undefined; /** * If this gift card redemption resulted in an error, this will contain the raw error code received from the gift card provider. */ rawErrorCode?: string | null | undefined; /** * If this gift card redemption resulted in an error, this will contain the raw error message received from the gift card provider. */ rawErrorMessage?: string | null | undefined; giftCard: TransactionGiftCard; }; /** @internal */ export declare const GiftCardRedemption$inboundSchema: z.ZodType; export declare function giftCardRedemptionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=giftcardredemption.d.ts.map