Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple API changes #899

Merged
merged 1 commit into from
May 22, 2020
Merged

Multiple API changes #899

merged 1 commit into from
May 22, 2020

Conversation

remi-stripe
Copy link
Contributor

@remi-stripe remi-stripe commented May 22, 2020

Multiple API changes:

  • Add support for ae_trn, cl_tin and sa_vat as type on TaxId
  • Add result and result_reason inside payment_method_details[card][three_d_secure] on Charge

Codegen for openapi cd33b40

r? @cjavilla-stripe
cc @stripe/api-libraries

@@ -14,6 +14,8 @@ declare module 'stripe' {
*/
object: 'source_mandate_notification';

acss_debit?: SourceMandateNotification.AcssDebit;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in the spec for legacy reason even though it shouldn't be and fixing it is "too hard" so let's just ignore this part

Copy link
Contributor

@cjavilla-stripe cjavilla-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one open question, the rest lgtm

@@ -667,7 +667,7 @@ declare module 'stripe' {
/**
* The ID of the product that this price will belong to.
*/
product: string;
product?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah optional in the spec is finicky and it's really annoying but it's because they are preparing some beta where this is optional because you can pass product_data instead

Copy link
Contributor

@cjavilla-stripe cjavilla-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@remi-stripe remi-stripe merged commit bfcecb5 into master May 22, 2020
@remi-stripe remi-stripe deleted the remi/codegen-cd33b40 branch May 22, 2020 16:36
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.

2 participants