Skip to content

style: apply cargo fmt across workspace#162

Merged
v0l merged 2 commits into
masterfrom
chore/cargo-fmt
Jul 15, 2026
Merged

style: apply cargo fmt across workspace#162
v0l merged 2 commits into
masterfrom
chore/cargo-fmt

Conversation

@v0l

@v0l v0l commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Formatting-only cleanup. Runs cargo fmt across the workspace to fix pre-existing rustfmt drift (mostly import ordering). No behaviour change.

Recommend merging this before #161 (VAT) so the VAT PR can rebase onto a formatted master and avoid formatting conflicts in the shared files.

v0l added 2 commits July 15, 2026 12:50
Add admin API to list/get/edit/delete the payment methods users save
for automatic renewals (NWC connections and off-session Revolut cards),
distinct from the existing payment_methods provider-config endpoints.

- GET    /api/admin/v1/user_payment_methods (paginated, optional user_id filter)
- GET    /api/admin/v1/user_payment_methods/{id}
- PATCH  /api/admin/v1/user_payment_methods/{id} (name/is_default/enabled)
- DELETE /api/admin/v1/user_payment_methods/{id}

Responses redact encrypted provider tokens / NWC strings, exposing only
non-sensitive metadata plus a has_external_customer_id flag. Adds
AdminResource::UserPaymentMethod (23) with a migration granting the full
permission set to super_admin.
Fixes pre-existing rustfmt drift (mostly import ordering). Formatting-only,
no behaviour change.
@v0l
v0l force-pushed the chore/cargo-fmt branch from 8d96ee9 to 0eaf66d Compare July 15, 2026 13:41
@v0l
v0l merged commit 6f8772e into master Jul 15, 2026
7 of 8 checks passed
@v0l
v0l deleted the chore/cargo-fmt branch July 15, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant