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

Next major release changes #1407

Merged
merged 7 commits into from
Aug 1, 2022
Merged

Next major release changes #1407

merged 7 commits into from
Aug 1, 2022

Conversation

pakrym-stripe
Copy link
Contributor

@pakrym-stripe pakrym-stripe commented Jul 26, 2022

Changelog

21.0.0 - 2022-08-01

Major version release for API version 2022-08-01. Default API version changed to "2022-08-01".

Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v21. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.

"⚠️" symbol highlights breaking changes.

Added

  • Add ApiKeyMissingException.
  • Add validate field to CustomerCreateParams.
  • Add validate field to CustomerUpdateParams.
  • Add validate field to PaymentSourceCollectionCreateParams.
  • Add shippingCost, shippingDetails, and shippingOptions properties to checkout.Session resource.

⚠️ Removed

  • Removed deprecated AlipayAccount and related classes.
  • Removed deprecated BitcoinReceiver and related classes.
  • Removed deprecated BitcoinTransaction and related classes.
  • Removed deprecated Recipient and related classes.
  • Removed deprecated IssuerFraudRecord and related classes.
  • Removed deprecated Order and related classes.
  • Removed deprecated ThreeDSecure and related classes.
  • Removed unused QuoteFinalizeParams, QuoteCollectionListParams classes.
  • Removed unused BillingDetails class.
  • Removed CashBalance.retrieveCashBalance method. Prefer CashBalance.retrieve.
  • Removed Rule.getDeleted method. The property was never populated and always had the default value of false.
  • Removed LineItem.getDeleted method. The property was never populated and always had the default value of false.
  • Removed public constructors from TestHelper inner classes and made them static.
  • Removed instance Account.refresh, Account.disconnect methods.
  • Removed deprecated TREASURY__RECEIVED_CREDIT__REVERSED, TREASURY__RECEIVED_DEBIT__CREATED, ORDER__UPDATED, ORDER_RETURN__CREATED, ORDER__PAYMENT_SUCCEEDED, TRANSFER__FAILED, TRANSFER__PAID webhook events.
  • Removed deprecated LoginLink.redirectUrl property.
  • Removed deprecated Charge.order property.
  • Removed deprecated Card.recipient property.
  • Removed defaultCurrency property from Customer resource. Please use Currency property instead.
  • Removed shipping and shippingOptions properties from checkout.Session resource. Please use shippingCost, shippingDetails, and shippingOptions properties instead.
  • Removed InitiatingPaymentMethodDetails class

⚠️ Changed

  • Default API version changed to "2022-07-28".
  • Changed CashBalance.retrieve method from an instance to a static.
  • Renamed PaymentIntent.FinancialAddresses class to FinancialAddress.
  • Check that apiKey is set (either globally or via request options) in StripeCollection.autoPagingIterable and StripeSearchResult.autoPagingIterable, and throw an exception if it is not.
  • Changed type of businessType field in AccountCreateParams from Object to BusinessType

Copy link
Contributor

@kamil-stripe kamil-stripe left a comment

Choose a reason for hiding this comment

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

We need to refresh the branch, other than that looks good. Updated the changelog with missing things.

@pakrym-stripe pakrym-stripe merged commit cebb2ca into master Aug 1, 2022
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.

None yet

4 participants