24c02
3f225e0d77
fix
2025-12-19 13:23:00 -05:00
24c02
665bc1dcd2
disallow hq-usps-ops on payment accounts
2025-12-18 17:11:39 -05:00
24c02
204c67f1cb
[notice123] pull in rates 2025-12-18
2025-12-18 17:10:32 -05:00
24c02
6a2f683706
add usps:update_rates task
2025-12-18 17:10:11 -05:00
24c02
1548688119
add cui to user
2025-12-18 16:05:43 -05:00
24c02
df01c91baa
waoaw
2025-12-18 15:57:40 -05:00
24c02
8ba8b36e26
memos!
2025-12-18 15:43:27 -05:00
24c02
c89d3fc95b
awawawa
2025-12-18 15:18:48 -05:00
24c02
b375b265b9
no destroy
2025-12-18 15:13:21 -05:00
24c02
0f8b36f7de
i dunno, can you?
2025-12-18 15:10:44 -05:00
24c02
e5132db647
more acct requirements
2025-12-18 15:08:50 -05:00
24c02
97a1267f95
fix pacc
2025-12-18 15:05:51 -05:00
24c02
958878dc18
Skip Pundit authorization for HCB payment accounts controller
2025-12-18 14:57:39 -05:00
24c02
9aea7b8ec8
Use env vars for all HCB credentials
...
- HCB_CLIENT_ID
- HCB_CLIENT_SECRET
- HCB_RECIPIENT_ORG_ID
- HCB_API_BASE (optional, defaults to https://hcb.hackclub.com )
2025-12-18 14:55:40 -05:00
24c02
36355e931e
Fix OAuth callback URL helper name
2025-12-18 14:52:38 -05:00
24c02
85f03b60ba
relative URL
2025-12-18 14:51:40 -05:00
24c02
c6458c3bd7
Use HCB_API_BASE env var instead of credentials
2025-12-18 14:50:38 -05:00
24c02
faa2c4644c
Add views and navigation for HCB payment accounts
...
- Payment accounts index, new, show views
- Add HCB payment link to settings navigation
2025-12-18 14:49:45 -05:00
24c02
b860c9d112
Add batch-level HCB disbursement support
...
- HCB::BatchPurchaseService for single disbursement per batch
- Add hcb_payment_account and hcb_transfer_id to batches
- Wire into Letter::Batch#process! and batches controller
2025-12-18 14:48:22 -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
b574d57a80
Add HCB OAuth and payment account controllers
...
- OAuth flow for linking HCB accounts
- CRUD for payment accounts (user/org pairs)
- Routes under /back_office/hcb/
- Use HCBV4::Client.from_credentials with proper token persistence
2025-12-18 14:42:55 -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
24c02
7a8e91b692
pull redirect_uri from env
2025-12-11 18:01:19 -05:00
nora
b1c8b2f91a
Sign in with Hack Club for back_office users ( #185 )
...
* add HCA for back office users
* maybe better initializer?
2025-12-11 17:03:19 -05:00
24c02
f2acb68255
publiclyidentify batches
2025-12-11 16:37:22 -05:00
Max Wofford
7ef1cb8203
Merge pull request #184 from hackclub/update-dockerfile-checking
2025-12-02 15:28:18 -05:00
Max Wofford
5641871d55
Update Dockerfile check directive
...
This is due to the new coolify build process
2025-12-02 15:28:07 -05:00
Max Wofford
9dbe46bffe
Create letter template without db ( #172 )
2025-11-21 16:15:59 -08:00
Sam Liu
ee06f202a1
Merge pull request #177 from samdev-7/main
...
Add Blueprint template
2025-10-21 17:56:57 -04:00
24c02
54b145a3df
waow
2025-10-17 16:34:26 -04:00
Sam Liu
c91b963ae9
Add Blueprint template
2025-10-16 20:51:48 -04:00
24c02
53c66c2dee
FIX GD BATCH POLICY
2025-10-14 12:34:49 -04:00
24c02
0cd452ce9e
more rubber stamp support
2025-10-14 12:07:37 -04:00
Max Wofford
5f77e0d1d9
Merge pull request #171 from hackclub/fix-jumpstart-template
2025-09-29 15:43:16 -04:00
Max Wofford
4c1058b57f
Fix page generation for jumpstart stickers template
2025-09-29 15:41:36 -04:00
Max Wofford
f61124b382
Merge pull request #170 from hackclub/add-jumpstart-stickers
2025-09-29 14:33:48 -04:00
Max Wofford
d09e669cca
Create jumpstart_stickers_template.rb
2025-09-29 11:45:43 -04:00
24c02
235d6227ee
one more newline
2025-09-23 16:49:13 -04:00
24c02
e7db15331d
add som magic happening
2025-09-23 16:46:11 -04:00
24c02
eac12782ab
formerly chuck's
2025-09-23 16:14:18 -04:00
24c02
761ef3917c
lol
2025-09-23 15:50:12 -04:00
24c02
8929334d31
fuckass
2025-09-15 16:44:13 -04:00
24c02
900f3b9b3a
allow api lettering via indicium id
2025-09-15 15:17:40 -04:00
24c02
5074c17139
noqr?
2025-09-15 13:24:20 -04:00
24c02
e890840cca
add sinkening
2025-09-15 12:57:34 -04:00
Oliver
c7a99f8ea7
add ship mail
2025-09-08 15:19:38 -04:00
Max Wofford
2ce904bc25
Merge pull request #164 from hackclub/add-japan-to-frickin-country-names
2025-09-01 13:31:41 -04:00
Max Wofford
d8702e143c
Add Japan to country name mapping
2025-09-01 13:31:22 -04:00
Max Wofford
15ff81b2a4
Merge pull request #163 from hackclub/add-china-to-freakin-country-names
2025-09-01 12:53:41 -04:00