Documentation
¶
Overview ¶
Package giftcard is the HTTP surface for gift cards: base CRUD via rest plus money actions (redeem / balance / void). Every handler is tenant-scoped via middleware.GetOrganization(c) + org.Namespaced(c) — the same isolation the rest of the /v1 surface uses — so a caller only ever touches its own org's gift cards.
Money actions are idempotent (see models/giftcard.Redeem): a redeem carries a caller idempotency key (X-Idempotency-Key header or body.idempotencyKey) and re-submitting it debits once, never twice.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListRedemptions ¶
ListRedemptions returns the append-only debit ledger for a card.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.