Skip to content

fix: request the includable off-Stripe invoice amount - #708

Open
Maxerns wants to merge 4 commits into
mainfrom
fix/expand-stripe-invoice-paid-off-stripe
Open

Maxerns wants to merge 4 commits into
mainfrom
fix/expand-stripe-invoice-paid-off-stripe

Conversation

@Maxerns

@Maxerns Maxerns commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Why

The first Stripe sandbox run after #706 reached invoice history but failed to decode amount_paid_off_stripe. Stripe documents this as an includable Invoice field, so a normal invoice GET omits it unless requested with expand[]. The reader correctly requires the value to distinguish Stripe settlement from payment outside Stripe; it just was not requesting it.

What changed

Invoice detail reads now request expand[]=amount_paid_off_stripe. A loopback test asserts the query, and the Stripe resource field matrix records the expansion requirement.

Verification

  • cargo fmt --check
  • cargo test -p sotto-server --test cloud_provider_stripe_http — 67 passed
  • cargo clippy -p sotto-server --test cloud_provider_stripe_http -- -D warnings
  • git diff --check

The live sandbox workflow 40132813092 exposed the missing expansion. The sandbox contract has not yet been rerun with this change; that workflow is restricted to main, so rerun it after merge.

This branch has not been deployed

No deployments
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