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

Add changes related to API version 2018-08-23 #577

Merged
merged 1 commit into from
Aug 28, 2018

Conversation

remi-stripe
Copy link
Contributor

This adds changes related to the latest API version and new properties introduced

  • add support for tax_info and tax_info_verification on Customer
  • add support for unit_amount on Tier and deprecate amount

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

* @deprecated Prefer using the {@code unitAmount} attribute instead.
* @see <a href="https://stripe.com/docs/upgrades#2018-08-23">API version 2018-08-23</a>
*/
@Deprecated
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this attribute really deprecated? It's still present in the API reference: https://stripe.com/docs/api#plan_object-amount

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is actively deprecated since we shipped unit_amount. We're renaming amount because we are going to ship another type of amount property and we wanted to to avoid the confusion.

TL;DR: yep, the docs are incorrect I suppose

@ob-stripe
Copy link
Contributor

ob-stripe commented Aug 28, 2018

Can you flag the businessVatId attribute on Customer as @Deprecated in favor of taxInfo?

@remi-stripe remi-stripe force-pushed the remi-add-2018-08-23-changes branch from f81d8af to a92d832 Compare August 28, 2018 14:06
@remi-stripe
Copy link
Contributor Author

@ob-stripe done PTAL

* @deprecated Prefer using the {@link #taxInfo} attribute instead.
* @see <a href="https://stripe.com/docs/upgrades#2018-08-23">API version 2018-08-23</a>
*/
String businessVatId;
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to annotate the attribute itself with @Deprecated.

* add support for `tax_info` and `tax_info_verification` on Customer
* add support for `unit_amount` on Tier and deprecate `amount`
@remi-stripe remi-stripe force-pushed the remi-add-2018-08-23-changes branch 2 times, most recently from 959d817 to d91c056 Compare August 28, 2018 14:29
@remi-stripe
Copy link
Contributor Author

@ob-stripe updated, sorry for the back and forth. PTAL

@stripe-ci stripe-ci assigned remi-stripe and unassigned ob-stripe Aug 28, 2018
@ob-stripe ob-stripe merged commit 9724292 into master Aug 28, 2018
@ob-stripe ob-stripe deleted the remi-add-2018-08-23-changes branch August 28, 2018 15:34
@ob-stripe
Copy link
Contributor

Released as 6.8.0.

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

Successfully merging this pull request may close these issues.

3 participants