-
Notifications
You must be signed in to change notification settings - Fork 362
Migration guide for v22
Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.
"
⚠️ Inline several "shared" classes for consistency (#1455)⚠️ RemovedLineItem.Product
property that was released by mistake. (#1456)⚠️ RemovedCharges
property onPaymentIntent
and replace it withLatestCharge
(#1473)⚠️ Removed deprecatedAmount
,Currency
,Description
,Images
,Name
properties fromSessionCreateParams.LineItem
(#1473⚠️ Remove support fortos_shown_and_accepted
onCheckoutSessionCreateParams.payment_method_options.paynow
(#1473⚠️ Removed deprecatedSku
resource (#1459)⚠️ Removed deprecatedEphemeralKey.associatedObjects
field. (#1470)⚠️ RemovedRequestOptions.getStripeVersionOverride
,RequestOptions.setStripeVersionOverride
, andRequestOptions.clearStripeVersionOverride
(#1464)
Use of setStripeVersionOverride
is discouraged and can lead to unexpected errors during service calls because Java SDK class shapes are not guaranteed to match API responses on arbitrary versions.
If you were using these methods in conjunction with EphemeralKey
resource prefer the EphemeralKeyCreateParamsBuilder.setStripeVersion
.
EphemeralKeyCreateParams params = EphemeralKeyCreateParams.builder()
.setStripeVersion("XXXX-YY-ZZ")
.build();
If you have a use case that requires per-request version overrides, please file an issue on stripe-java repository to ensure we are aware and can add first-class support for it. In the meantime you can use unsafeSetStripeVersionOverride
method as a workaround.
RequestOptions.RequestOptionsBuilder builder = RequestOptions.builder();
builder.setApiKey(...)
.setClientId(...);
RequestOptionsBuilder.unsafeSetStripeVersionOverride(builder, "2022-11-15");
⚠️ Remove support fortos_shown_and_accepted
onCheckoutSessionCreateParams.payment_method_options.paynow
. The property was mistakenly released and never worked. (#1474)
- Inlined
AutomaticPaymentMethodsPaymentIntent
class toPaymentIntent.AutomaticPaymentMethods
inner class - Inlined
CreditedItems
class toInvoiceLineItem.CreditedItems
inner class - Inlined
EventData
class toEvent.Data
inner class - Inlined
EventRequest
class toEvent.Request
inner class - Inlined
InvoiceLineItemPeriod
class toInvoiceItem.Period
inner class - Inlined
PackageDimensions
class toSku.PackageDimensions
andProduct.PackageDimensions
inner classeses.` - Inlined
ProrationDetails
class toInvoiceLineItem.ProrationDetails
inner class - Inlined
radar.Rule
class toCharge.Rule
inner class - Inlined
treasury.FlowDetails
class toTransactionEntry.FlowDetails
inner class - Deleted
StripeErrorResponse
class that was unused. - Moved
Account.DeclineChargeOn
toAccount.SettingsCardPayments.DeclineChargeOn
- Moved
Account.PayoutSchedule
toAccount.SettingsPayouts.PayoutSchedule
- Moved
Account.SettingsBranding
toAccount.Settings.Branding
- Moved
Account.SettingsCardPayments
toAccount.Settings.CardPayments
- Moved
Account.SettingsDashboard
toAccount.Settings.Dashboard
- Moved
Account.SettingsPayments
toAccount.Settings.Payments
- Moved
Account.SettingsPayouts
toAccount.Settings.Payouts
- Moved
Charge.PaymentMethodDetails.Store
toCharge.PaymentMethodDetails.Konbini.Store
- Moved
Invoice.PaymentMethodOptions
toInvoice.PaymentSettings.PaymentMethodOptions
- Moved
Invoice.ThresholdItemReason
toInvoice.ThresholdReason.ItemReason
- Moved
Mandate.AuBecsDebit
toMandate.PaymentMethodDetails.AuBecsDebit
- Moved
Mandate.BacsDebit
toMandate.PaymentMethodDetails.BacsDebit
- Moved
PaymentIntent.PaymentMethodOptions.BlikMandateOptionsOffSessionDetails
toMandate.PaymentMethodDetails.Blik.OffSession
- Moved
PaymentIntent.PaymentMethodOptions.BankTransfer
toPaymentIntent.PaymentMethodOptions.CustomerBalance.BankTransfer
- Moved
PaymentIntent.NextActionAlipayHandleRedirect
toPaymentIntent.NextAction.AlipayHandleRedirect
- Moved
PaymentIntent.NextActionCardAwaitNotification
toPaymentIntent.NextAction.CardAwaitNotification
- Moved
PaymentIntent.NextActionDisplayBankTransferInstructions
toPaymentIntent.NextAction.DisplayBankTransferInstructions
- Moved
PaymentIntent.NextActionDisplayBoletoDetails
toPaymentIntent.NextAction.BoletoDisplayDetails
- Moved
PaymentIntent.NextActionKonbiniDisplayDetails
toPaymentIntent.NextAction.KonbiniDisplayDetails
- Moved
PaymentIntent.NextActionOxxoDisplayDetails
toPaymentIntent.NextAction.OxxoDisplayDetails
- Moved
PaymentIntent.NextActionRedirectToUrl
toPaymentIntent.NextAction.RedirectToUrl
- Moved
PaymentIntent.PaymentMethodOptions.SepaDebitMandateOptions
toPaymentIntent.PaymentMethodOptions.SepaDebit.MandateOptions
- Moved
Person.VerificationDocument
toPerson.Verification.Document
- Moved
Person.VerificationDocument
toPerson.Verification.AdditionalDocument
- Moved
PromotionCode.CurrencyOption
toPromotionCode.Restrictions.CurrencyOption
- Moved
Quote.Recurring
toQuote.Computed.Recurring
- Moved
Quote.Upfront
toQuote.Computed.Upfront
- Moved
Refund.NextActionDisplayDetails
toRefund.NextAction.DisplayDetails
- Moved
SetupIntent.PaymentMethodOptions.BlikMandateOptions
toSetupIntent.PaymentMethodOptions.Blik.MandateOptions
- Moved
SetupIntent.NextActionRedirectToUrl
toSetupIntent.NextAction.RedirectToUrl
- Moved
SetupIntent.PaymentMethodOptions.SepaDebitMandateOptions
toSetupIntent.PaymentMethodOptions.SepaDebit.MandateOptions
- Moved
ShippingRate.CurrencyOption
toShippingRate.FixedAmount.CurrencyOption
- Moved
Source.OrderItem
toSource.Order.OrderItem
- Moved
Subscription.PaymentMethodOptions
toSubscription.PaymentSettings.PaymentMethodOptions
- Renamed
Person.JapanAddress
toPerson.AddressKanji
- Renamed
Account.Company.Verification.VerificationDocument
toAccount.Company.Verification.Document
- Moved
SubscriptionSchedule.AddInvoiceItem
toSubscriptionSchedule.Phase.AddInvoiceItem
- Renamed
Person.JapanAddress
toPerson.AddressKana
- Moved
SubscriptionSchedule.InvoiceSettings
toSubscriptionSchedule.DefaultSettings.InvoiceSettings
- Moved
SubscriptionSchedule.PhaseItem
toSubscriptionSchedule.Phase.Item
- Renamed
Account.FutureRequirements.Errors
toAccount.FutureRequirements.Error
- Renamed
Account.Requirements.Errors
toAccount.Requirements.Error
- Renamed
Account.Settings.SettingsCardIssuing
toAccount.Settings.CardIssuing
- Renamed
Account.Settings.SettingsTreasury
toAccount.Settings.Treasury
- Renamed
Balance.Money
toBalance.Available
- Renamed
Balance.Money
toBalance.ConnectReserved
- Renamed
Balance.Money
toBalance.InstantAvailable
- Renamed
Balance.Details
toBalance.Issuing
- Renamed
Balance.Money
toBalance.Pending
- Renamed
BalanceTransaction.Fee
toBalanceTransaction.FeeDetail
- Renamed
Capability.FutureRequirements.Errors
toCapability.FutureRequirements.Error
- Renamed
CashBalance.BalanceSettings
toCashBalance.Settings
- Renamed
Session.CustomerDetails.TaxID
toSession.CustomerDetails.TaxId
- Renamed
Session.PaymentMethodOptions.GrabPay
toSession.PaymentMethodOptions.Grabpay
- Renamed
Session.TaxIDCollection
toSession.TaxIdCollection
- Renamed
CountrySpec.VerificationFields.Details
toCountrySpec.VerificationFields.Company
- Renamed
CountrySpec.VerificationFields.Details
toCountrySpec.VerificationFields.Individual
- Renamed
Account.Balance.CashBalance
toAccount.Balance.Cash
- Renamed
Account.Balance.CreditBalance
toAccount.Balance.Credit
- Renamed
VerificationReport.Document.DateOfBirth
toVerificationReport.Document.Dob
- Renamed
VerificationReport.Document.DocumentCheckError
toVerificationReport.Document.Error
- Renamed
VerificationReport.IdNumber.DateOfBirth
toVerificationReport.IdNumber.Dob
- Renamed
VerificationReport.IdNumber.IdNumberCheckError
toVerificationReport.IdNumber.Error
- Renamed
VerificationReport.Selfie.SelfieCheckError
toVerificationReport.Selfie.Error
- Renamed
VerificationSession.VerifiedOutputs.DateOfBirth
toVerificationSession.VerifiedOutputs.Dob
- Renamed
Invoice.DiscountAmount
toInvoice.TotalDiscountAmount
- Renamed
Invoice.TaxAmount
toInvoice.TotalTaxAmount
- Renamed
Cardholder.Individual.DateOfBirth
toCardholder.Individual.Dob
- Renamed
Transaction.PurchaseDetails.Flight.Segments
toTransaction.PurchaseDetails.Flight.Segment
- Renamed
PaymentIntent.PaymentMethodOptions.Card.Installments.Plan
toPaymentIntent.PaymentMethodOptions.Card.Installments.AvailablePlan
- Renamed
PaymentMethod.Klarna.DateOfBirth
toPaymentMethod.Klarna.Dob
- Renamed
PaymentMethod.USBankAccount
toPaymentMethod.UsBankAccount
- Renamed
Person.DateOfBirth
toPerson.Dob
- Renamed
Person.FutureRequirements.Errors
toPerson.FutureRequirements.Error
- Renamed
Review.Location
toReview.IpAddressLocation
- Renamed
ScheduledQueryRun.RunError
toScheduledQueryRun.Error
- Renamed
Source.CodeVerificationFlow
toSource.CodeVerification
- Renamed
Source.ReceiverFlow
toSource.Receiver
- Renamed
Source.RedirectFlow
toSource.Redirect
- Renamed
Source.Order
toSource.SourceOrder
- Renamed
SourceMandateNotification.AcssDebitData
toSourceMandateNotification.AcssDebit
- Renamed
SourceMandateNotification.BacsDebitData
toSourceMandateNotification.BacsDebit
- Renamed
SourceMandateNotification.SepaDebitData
toSourceMandateNotification.SepaDebit
- Renamed
SourceTransaction.AchCreditTransferData
toSourceTransaction.AchCreditTransfer
- Renamed
SourceTransaction.ChfCreditTransferData
toSourceTransaction.ChfCreditTransfer
- Renamed
SourceTransaction.GbpCreditTransferData
toSourceTransaction.GbpCreditTransfer
- Renamed
SourceTransaction.PaperCheckData
toSourceTransaction.PaperCheck
- Renamed
SourceTransaction.SepaCreditTransferData
toSourceTransaction.SepaCreditTransfer
- Renamed
Reader.ReaderAction
toReader.Action
- Renamed
FinancialAccountFeatures.FinancialAddresses.Aba.StatusDetails
toFinancialAccountFeatures.FinancialAddresses.Aba.StatusDetail
- Renamed
FinancialAccountFeatures.CardIssuing.StatusDetails
toFinancialAccountFeatures.CardIssuing.StatusDetail
- Renamed
FinancialAccountFeatures.DepositInsurance.StatusDetails
toFinancialAccountFeatures.DepositInsurance.StatusDetail
- Renamed
FinancialAccountFeatures.InboundTransfers.Ach.StatusDetails
toFinancialAccountFeatures.InboundTransfers.Ach.StatusDetail
- Renamed
FinancialAccountFeatures.IntraStripeFlows.StatusDetails
toFinancialAccountFeatures.IntraStripeFlows.StatusDetail
- Renamed
FinancialAccountFeatures.OutboundPayments.Ach.StatusDetails
toFinancialAccountFeatures.OutboundPayments.Ach.StatusDetail
- Renamed
FinancialAccountFeatures.OutboundPayments.UsDomesticWire.StatusDetails
toFinancialAccountFeatures.OutboundPayments.UsDomesticWire.StatusDetail
- Renamed
FinancialAccountFeatures.OutboundTransfers.Ach.StatusDetails
toFinancialAccountFeatures.OutboundTransfers.Ach.StatusDetail
- Renamed
FinancialAccountFeatures.OutboundTransfers.UsDomesticWire.StatusDetails
toFinancialAccountFeatures.OutboundTransfers.UsDomesticWire.StatusDetail