Stripe v22.0.0 Release Notes
Release Date: 2022-11-16 // over 2 years ago-
- ๐ #1471 Next major release changes
๐ฅ 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.
"โ ๏ธ" symbol highlights breaking changes.
- โ ๏ธ Inline several "shared" classes for consistency (#1455)
- ๐ โ ๏ธ Removed
LineItem.Product
property that was released by mistake. (#1456) - ๐ โ ๏ธ Removed
Charges
property onPaymentIntent
and replace it withLatestCharge
(#1473) - ๐ โ ๏ธ Removed deprecated
Amount
,Currency
,Description
,Images
,Name
properties fromSessionCreateParams.LineItem
(#1473) - ๐ โ ๏ธ Remove support for
tos_shown_and_accepted
onCheckoutSessionCreateParams.payment_method_options.paynow
(#1473) - ๐ โ ๏ธ Removed deprecated
Sku
resource (#1459) - ๐ โ ๏ธ Removed
RequestOptions.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 theEphemeralKeyCreateParamsBuilder.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");
- โก๏ธ #1474 API Updates
- โ ๏ธ Remove support for
tos_shown_and_accepted
onCheckoutSessionCreateParams.payment_method_options.paynow
. The property was mistakenly released and never worked.
- โ ๏ธ Remove support for
Previous changes from v21.15.0
-
- โก๏ธ #1472 API Updates
- Add support for new values
eg_tin
,ph_tin
, andtr_tin
on enumsCustomerCreateParams.tax_id_data[].type
,InvoiceUpcomingLinesParams.customer_details.tax_ids[].type
,InvoiceUpcomingParams.customer_details.tax_ids[].type
,OrderCreateParams.tax_details.tax_ids[].type
,OrderUpdateParams.tax_details.tax_ids[].type
, andTaxIdCreateParams.type
- Add support for
reason_message
onIssuing.Authorization.request_history[]
- Add support for new values
- โก๏ธ #1472 API Updates