Skip to content

feat: let an account's controller and a person's address leave out what Stripe lets them leave out - #368

Merged
Benzilla merged 1 commit into
mainfrom
feat/optional-account-parameters
Dec 4, 2026
Merged

Benzilla merged 1 commit into
mainfrom
feat/optional-account-parameters

Conversation

@Benzilla

@Benzilla Benzilla commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Description

Some parameters must be sent to the API and may be left out for Stripe, so a request written for Stripe that leaves one out is refused. This takes the ones on accounts and persons.

  • When a person's address is sent, its line1, city, postal_code and country no longer have to be. An update changes the lines it is given and keeps the others.
  • When an account's controller is sent, fees.payer and losses.payments no longer have to be. A payer that is left out is the one for the type of the account, and losses that are left out are the platform's, which is what an account with no controller already got.

Part of #278

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation

How Was This Tested?

  • Unit tests
  • Integration tests
  • Manual testing

Unit tests create an account whose controller gives fees and losses without their values, for an Express and a Custom account, and update a person with one line of an address. The end-to-end suite passes with bodies sent as JSON and as forms.

Screenshots (if applicable)

Checklist

  • Self-reviewed my code
  • No new warnings
  • Existing tests still pass
  • Breaking changes are documented above

@Benzilla
Benzilla enabled auto-merge (squash) December 4, 2026 18:43
@Benzilla
Benzilla merged commit b7750cf into main Dec 4, 2026
6 checks passed
@Benzilla
Benzilla deleted the feat/optional-account-parameters branch December 4, 2026 18:45
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