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

Move to API version 2018-08-23 #668

Merged
merged 4 commits into from
Aug 23, 2018
Merged

Conversation

remi-stripe
Copy link
Contributor

This PR has multiple major changes due to the move to the latest API version and some new properties/breaking changes.

  • Add support for tax_info and tax_info_verification on the customer
  • Remove business_vat_id on the Customer
  • Rename amount to unit_amount on Plan's tiers
  • Remove the ability to call Cancel on a Subscription with at_period_end.

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

(Flagging that we need a new stripe-mock for tests to pass because of the change to amount on Tiers)

@@ -80,6 +103,18 @@ type CustomerShippingDetails struct {
Phone string `json:"phone"`
}

// CustomerTaxInfo is the structure containing tax information for the customer.
type CustomerTaxInfo struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think both these structs are missing a field definition in Customer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Damn nice catch. I also discovered I was not on the latest master so I fixed that too. Let's see if tests pass

@brandur-stripe
Copy link
Contributor

Thanks for the diligence as usual Remi! Left a minor comment, but otherwise LGTM.

* Remove `at_period_end` on subscription cancelation
* Remove `business_vat_id` on Customer
* Rename `amount` to `unit_amount` on Plan's Tiers
@remi-stripe remi-stripe force-pushed the remi-api-version-2018-08-23 branch from ff45090 to eb91bf7 Compare August 23, 2018 22:57
@remi-stripe remi-stripe force-pushed the remi-api-version-2018-08-23 branch from eb91bf7 to 3cf614b Compare August 23, 2018 23:08
@remi-stripe
Copy link
Contributor Author

@brandur-stripe okay I think I got things right this time. PTAL

@brandur-stripe
Copy link
Contributor

LGTM.

@brandur-stripe brandur-stripe merged commit 8938208 into master Aug 23, 2018
@brandur-stripe brandur-stripe deleted the remi-api-version-2018-08-23 branch August 23, 2018 23:16
@brandur-stripe
Copy link
Contributor

Released as 43.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants