ghostguild-org/tests/server/utils
Jennie Robinson Faber 6888663148 feat(helcim): add transaction list + card update helpers
- listHelcimCustomerTransactions(customerCode): GET /card-transactions/
  with customerCode filter, sorts newest-first, caps at 50, normalizes
  Helcim status (APPROVED/DECLINED) + type (refund) into
  paid/refunded/failed/other.
- updateHelcimCustomerDefaultPaymentMethod(customerId, cardToken):
  resolves cardToken -> cardId via /customers/{id}/cards, then PATCHes
  /customers/{id}/cards/{cardId}/default.
- updateHelcimSubscriptionPaymentMethod(subscriptionId, cardToken):
  wraps updateHelcimSubscription with a cardToken payload.
- helcimUpdateCardSchema: Zod schema { cardToken: string } for the
  upcoming /api/helcim/update-card route.
- Unit tests for all three helpers (success + error paths).
2026-04-19 16:24:16 +01:00
..
adminAlerts.test.js feat(admin): add alert aggregator with dismissal filtering 2026-04-08 11:14:54 +01:00
auth.test.js Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
escapeHtml.test.js Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
helcim.test.js feat(helcim): add transaction list + card update helpers 2026-04-19 16:24:16 +01:00
member-number.test.js Huge bunch of UI/UX improvements and tweaks! 2026-04-06 16:17:12 +01:00
tickets.test.js refactor(events): gate member benefits on hasMemberAccess 2026-04-18 17:06:17 +01:00