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 #1241

Merged
merged 6 commits into from
Jan 15, 2021
Merged

Multiple API Changes #1241

merged 6 commits into from
Jan 15, 2021

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Jan 14, 2021

r? @brandur-stripe
Contains changes corresponding to openapi releases v11 and v12.

Changelog

  • Added support for dynamic_tax_rates on CheckoutSessionParams.line_items
  • Added support for customer_details on CheckoutSession
  • Added support for type on IssuingTransactionListParams
  • Added support for country and state on TaxRateParams and TaxRate

checkout_session.go Outdated Show resolved Hide resolved
checkout_session.go Outdated Show resolved Hide resolved
type CheckoutSessionCustomerDetails struct {
Email string `json:"email"`
TaxExempt CheckoutSessionCustomerDetailsTaxExempt `json:"tax_exempt"`
TaxIDs []CheckoutSessionCustomerDetailsTaxIDs `json:"tax_ids"`
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be []*CheckoutSessionCustomerDetailsTaxIDs right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

Cardholder *string `form:"cardholder"`
Created *int64 `form:"created"`
CreatedRange *RangeQueryParams `form:"created"`
Type *IssuingTransactionListType `form:"type"`
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't use enums in params, this should be *string instead and we don't need the type. Also if we used the type we would use IssuingTransactionType instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Woot! Great to know.

Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

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

Change lgtm

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.

3 participants