Added
v0.063
28 days ago by Freddy Mejia
GiftCard.purchaseId(UUID) — the purchase that created the gift card; the same ID returned bypurchaseGiftCardandgetUserPurchases. Returnsnullif no associated purchase. (FLUZ-18308)GiftCard.purchaseDisplayId(String) — the short, human-readable Fluz transaction ID (e.g.1047283) that support references in manual reviews and exports. Returnsnullif no associated purchase. (FLUZ-18308)GiftCard.purchaseValue(Float) — the face value (denomination) the gift card was purchased at, in the card's currency. (FLUZ-18325)GiftCard.currentValue(Float) — the remaining balance on the gift card; equalspurchaseValuefor single-use cards. (FLUZ-18325)GiftCard.currency(String) — the ISO currency code of the gift card's value (e.g.USD). (FLUZ-18325)
All five fields are now returned by getGiftCards (and anywhere GiftCard is exposed), enabling order/value reconciliation without calling revealGiftCardByGiftCardId per card. Additive and backward-compatible.