Commit graph

5 commits

Author SHA1 Message Date
24c02
958878dc18 Skip Pundit authorization for HCB payment accounts controller 2025-12-18 14:57:39 -05:00
24c02
36355e931e Fix OAuth callback URL helper name 2025-12-18 14:52:38 -05:00
24c02
11c5f53074 Add HCB payment integration for indicia purchases
- USPS::IndiciumPolicy to check can_use_indicia?
- HCB::IndiciumPurchaseService for disbursement + purchase flow
- Add hcb_payment_account to letter_queues and usps_indicia
- Wire HCB payment into LettersController#buy_indicia
- Wire HCB payment into Letter::InstantQueue
2025-12-18 14:45:50 -05:00
24c02
c0071a7593 Add HCB models and user associations
- HCB::OauthConnection for storing encrypted OAuth tokens
- HCB::PaymentAccount for user/org payment pairs
- User#can_use_indicia? and #hcb_connected? helpers
2025-12-18 14:41:15 -05:00
24c02
417c1f0e8f Add migrations for HCB payment integration
- Add can_use_indicia boolean to users table
- Create hcb_oauth_connections table for storing OAuth tokens
- Create hcb_payment_accounts table for user/org pairs
2025-12-18 14:40:06 -05:00