Skip to content

v0.1.2

Choose a tag to compare

@Hill-waffo Hill-waffo released this 15 Apr 13:39

Fixed

  • useBuyerRefundTickets — the underlying GraphQL query was selecting non-existent top-level fields (reason, requestedAmount, requestedCurrency); these live under versionData because each ticket can have multiple submissions. Query now selects versionData { reason, requestedAmount { amount, currency } } and versionNumber. The BuyerRefundTicket interface is updated accordingly.

    Breaking shape change for any consumer that read these fields: replace ticket.reasonticket.versionData?.reason, and ticket.requestedAmountticket.versionData?.requestedAmount?.amount (now display-formatted, e.g. "29.00", paired with requestedAmount.currency).

Compatibility

  • useMerchantSalesSalesOverview.totalRevenue and SalesOverview.revenueByPeriod[].amount are now display-formatted strings (e.g. "9.99") instead of minor-currency-unit strings. The TypeScript type is unchanged (string), but consumers must drop any parseInt() / 100 or similar conversion. JSDoc updated. Aligns with waffo-pancake-graphql-service v2026.04.15.1.

Changed

  • Dependency @waffo/pancake-ts bumped to ^0.4.1 — to pick up the new RefundTicketVersionData type. BuyerRefundTicket.versionData now uses that shared type instead of a locally redefined one.

Added

  • Re-exports from @waffo/pancake-tsRequestedAmount and RefundTicketVersionData are now re-exported from this package for direct use in client components.