v23.0.0
·
76 commits
to master
since this release
- 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
"
- #1632 Update generated code
⚠️ Remove support for valuescustom_account_updateandcustom_account_verificationfrom enumAccountLinkCreateParams.type- These values are not fully operational
⚠️ Remove support foravailable_ononBalanceTransactionListParams- Use of this parameter is discouraged. You may use
.putExtraParamif sending the parameter is still required.
- Use of this parameter is discouraged. You may use
⚠️ Remove support foralternate_statement_descriptors,destination, anddisputeonCharge- Use of these fields is discouraged.
- Remove support for
shipping_ratesoncheckout.SessionCreateParams ⚠️ Remove support forshipping_ratesoncheckout.SessionCreateParams- Please use
shipping_optionsinstead.
- Please use
⚠️ Remove support forcouponandtrial_from_planoncheckout.SessionCreateParams.subscription_data- Please migrate to the Prices API, or use
.putExtraParamif sending the parameter is still required.
- Please migrate to the Prices API, or use
⚠️ Remove support for valuecard_presentfrom enumsCustomerListPaymentMethodsParams.typeandPaymentMethodListParams.type- This value was not fully operational.
⚠️ Remove support forblikonMandate.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 foracss_debit,affirm,au_becs_debit,bacs_debit,cashapp,sepa_debit, andziponPaymentMethodUpdateParams- These fields are empty.
⚠️ Remove support forcountryonPaymentMethod.link- This field was not fully operational.
⚠️ Remove support forrecurringonPriceUpdateParams- This property should be set on create only.
⚠️ Remove support forattributes,caption, anddeactivate_ononProductCreateParams,ProductUpdateParams, andProduct- These fields are not fully operational.
- Add support for new value
2023-08-16on enumWebhookEndpointCreateParams.api_version
- #1622 - StripeClient
- Introduces
StripeClientand 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
retrievebefore 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.requestwithApiMode.OAuth.⚠️ DeprecatedApiResource.className()singleClassUrl(),classUrl(),instanceUrl(),subresourceUrl()methods removed.
- Type changes
⚠️ StripeResponseGetter.request(...),streamRequest(...)signatures changed.BaseAddressparameter added.urlrenamed topathand is a relative to the base addressapiModeparameter added to control how request is sent and response is handled,V1andOAuthare supported values.⚠️ RequestOptions.getReadTimeout(),getConnectTimeout(),getMaxNetworkRetries()now returnIntegerinstead ofint.
- Renames
⚠️ addFullNameAliaserenamed toaddFullNameAliasinAccountCreateParams,AccountUpdateParams,PersonCollectionCreateParams,TokenCreateParams,PersonCollectionCreateParams,PersonUpdateParams.⚠️ addLookupKeysrenamed toaddLookupKeyinPriceListParams
- Behavior Changes
⚠️ RequestOptions.getDefault()does not apply global configuration options fromStripeclass, all fields are initialized tonull.⚠️ RequestOptionsBuilderdoes not apply global configuration options fromStripeclass, all fields are initialized tonull.
- Introduces