Clean up Token, BankAccount, Card, Source types #273
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note that this adds a
token_bank_account
andtoken_card
as the OpenAPI specs for Stripe indicate that these have different schemas from our ownStripe.BankAccount
andStripe.Card
.I've also now added
Stripe.Types.metadata
so we can stop repeating that key.Also moved some of the types like
account_holder_type
,status
,tokenization_method
, etc. into the relevant entities such asStripe.BankAccount.status
.This also expands on the
Source
types and their inner structure.