- This release changes the pinned API version to
2023-08-16
. Please read the API Upgrade Guide and carefully review the API changes before upgradingstripe-java
. - More information is available in the stripe-node v13 migration guide
"⚠️" symbol highlights breaking changes.
- #1632 Update generated code
- ⚠️Remove support for values
custom_account_update
andcustom_account_verification
from enumAccountLinkCreateParams.type
- These values are not fully operational
- ⚠️Remove support for
available_on
onBalanceTransactionListParams
- Use of this parameter is discouraged. You may use
.putExtraParam
if sending the parameter is still required.
- Use of this parameter is discouraged. You may use
- ⚠️Remove support for
alternate_statement_descriptors
,destination
, anddispute
onCharge
- Use of these fields is discouraged.
- Remove support for
shipping_rates
oncheckout.SessionCreateParams
- ⚠️Remove support for
shipping_rates
oncheckout.SessionCreateParams
- Please use
shipping_options
instead.
- Please use
- ⚠️Remove support for
coupon
andtrial_from_plan
oncheckout.SessionCreateParams.subscription_data
- Please migrate to the Prices API, or use
.putExtraParam
if sending the parameter is still required.
- Please migrate to the Prices API, or use
- ⚠️Remove support for value
card_present
from enumsCustomerListPaymentMethodsParams.type
andPaymentMethodListParams.type
- This value was not fully operational.
- ⚠️Remove support for
blik
onMandate.payment_method_details
,PaymentMethodUpdateParams
,SetupAttempt.payment_method_details
,SetupIntent.payment_method_options
,SetupIntentConfirmParams.payment_method_options
,SetupIntentCreateParams.payment_method_options
, andSetupIntentUpdateParams.payment_method_options
- These fields were mistakenly released.
- ⚠️Remove support for
acss_debit
,affirm
,au_becs_debit
,bacs_debit
,cashapp
,sepa_debit
, andzip
onPaymentMethodUpdateParams
- These fields are empty.
- ⚠️Remove support for
country
onPaymentMethod.link
- This field was not fully operational.
- ⚠️Remove support for
recurring
onPriceUpdateParams
- This property should be set on create only.
- ⚠️Remove support for
attributes
,caption
, anddeactivate_on
onProductCreateParams
,ProductUpdateParams
, andProduct
- These fields are not fully operational.
- Add support for new value
2023-08-16
on enumWebhookEndpointCreateParams.api_version
- ⚠️Remove support for values
- #1622 - StripeClient
- Introduces
StripeClient
and the service-based pattern, a new interface for calling the Stripe API with many benefits over the existing resource-based paradigm.- No global config: you can simultaneously use multiple clients with different configuration options (such as API keys)
- No extra API calls. All API endpoints can be accessed with a single method call. You don't have to call
retrieve
before doing anupdate
. - No static methods. Much easier mocking.
- Visit the migration guide to learn more.
- Removals
- ⚠️
ApiResource.request()
,requestStream()
,requestCollection()
,requestSearchResult()
methods removed. - ⚠️
StripeResponseGetter.oauthRequest(...)
was removed. OAuth requests are now performed viaStripeResponseGetter.request
withApiMode.OAuth
. - ⚠️ Deprecated
ApiResource.className()
singleClassUrl()
,classUrl()
,instanceUrl()
,subresourceUrl()
methods removed.
- ⚠️
- Type changes
- ⚠️
StripeResponseGetter.request(...)
,streamRequest(...)
signatures changed.BaseAddress
parameter added.url
renamed topath
and is a relative to the base addressapiMode
parameter added to control how request is sent and response is handled,V1
andOAuth
are supported values.- ⚠️
RequestOptions.getReadTimeout()
,getConnectTimeout()
,getMaxNetworkRetries()
now returnInteger
instead ofint
.
- ⚠️
- Renames
- ⚠️
addFullNameAliase
renamed toaddFullNameAlias
inAccountCreateParams
,AccountUpdateParams
,PersonCollectionCreateParams
,TokenCreateParams
,PersonCollectionCreateParams
,PersonUpdateParams
. - ⚠️
addLookupKeys
renamed toaddLookupKey
inPriceListParams
- ⚠️
- Behavior Changes
- ⚠️
RequestOptions.getDefault()
does not apply global configuration options fromStripe
class, all fields are initialized tonull
. - ⚠️
RequestOptionsBuilder
does not apply global configuration options fromStripe
class, all fields are initialized tonull
.
- ⚠️
- Introduces