ghostguild-org/tests/server
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
..
api feat(contribution): free-to-paid uses cadence plan id, persists billingCadence 2026-04-18 17:37:35 +01:00
config refactor(config): cadence-keyed plan id, add getTierAmount, drop per-tier helcimPlanId 2026-04-18 17:19:05 +01:00
helpers Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
middleware Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
models test(admin): cover AdminAlertDismissal dismissedAt default 2026-04-08 11:03:31 +01:00
tasks feat(slack): add background job to detect Slack workspace joins 2026-04-09 22:32:48 +01:00
utils feat(helcim): add transaction list + card update helpers 2026-04-19 16:24:16 +01:00
setup.js refactor: extract escapeRegex and validateTagSlugs server utils 2026-04-09 23:51:56 +01:00