Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
ApiKeyMissingException
.validate
field toCustomerCreateParams
.validate
field toCustomerUpdateParams
.validate
field toPaymentSourceCollectionCreateParams
.shippingCost
,shippingDetails
, andshippingOptions
properties tocheckout.Session
resource.AlipayAccount
and related classes.BitcoinReceiver
and related classes.BitcoinTransaction
and related classes.Recipient
and related classes.IssuerFraudRecord
and related classes.Order
and related classes.ThreeDSecure
and related classes.QuoteFinalizeParams
,QuoteCollectionListParams
classes.BillingDetails
class.CashBalance.retrieveCashBalance
method. PreferCashBalance.retrieve
.Rule.getDeleted
method. The property was never populated and always had the default value offalse
.LineItem.getDeleted
method. The property was never populated and always had the default value offalse
.TestHelper
inner classes and made them static.Account.refresh
,Account.disconnect
methods.TREASURY__RECEIVED_CREDIT__REVERSED
,TREASURY__RECEIVED_DEBIT__CREATED
,ORDER__UPDATED
,ORDER_RETURN__CREATED
,ORDER__PAYMENT_SUCCEEDED
,TRANSFER__FAILED
,TRANSFER__PAID
webhook events.LoginLink.redirectUrl
property.Charge.order
property.Card.recipient
property.defaultCurrency
property fromCustomer
resource. Please useCurrency
property instead.shipping
andshippingOptions
properties fromcheckout.Session
resource. Please useshippingCost
,shippingDetails
, andshippingOptions
properties instead.InitiatingPaymentMethodDetails
classCashBalance.retrieve
method from an instance to a static.PaymentIntent.FinancialAddresses
class toFinancialAddress
.StripeCollection.autoPagingIterable
andStripeSearchResult.autoPagingIterable
, and throw an exception if it is not.businessType
field inAccountCreateParams
fromObject
toBusinessType