Releases: stripe/stripe-java
Releases · stripe/stripe-java
v25.5.0
- #1785 Update generated code
- Add support for
paypal
onDispute.payment_method_details
- Change type of
Dispute.payment_method_details.type
fromliteral('card')
toenum('card'|'paypal')
- Change type of
entitlements.FeatureUpdateParams.metadata
frommap(string: string)
toemptyable(map(string: string))
- Add support for
payment_method_types
onPaymentIntentConfirmParams
- Add support for
ship_from_details
onTax.Calculation
,Tax.Transaction
, andtax.CalculationCreateParams
- Add support for
bh
,eg
,ge
,ke
,kz
,ng
, andom
onTax.Registration.country_options
andtax.RegistrationCreateParams.country_options
- Add support for
- #1787 Deprecate Java params based on OpenAPI spec
- Mark as deprecated the
persistent_token
property onConfirmationToken.Link.persistentToken
,PaymentIntent.Link.persistentToken
,PaymentMethod.Link.persistentToken
,SetupIntent.Link.persistentToken
,PaymentIntentConfirmParams.Link.persistentToken
,PaymentIntentCreateParams.Link.persistentToken
,PaymentIntentUpdateParams.Link.persistentToken
,SetupIntentConfirmParams.Link.persistentToken
,SetupIntentCreateParams.Link.persistentToken
,SetupIntentUpdateParams.Link.persistentToken
. This is a legacy parameter that no longer has any function.
- Mark as deprecated the
v25.5.0-beta.1
- #1783 Update generated code for beta
- Add support for
payment_method_settings
onAccountSessionCreateParams.components
- Add support for
cancel_subscription_schedule
onQuoteCreateParams.lines[]
,QuoteLine
, andQuoteUpdateParams.lines[]
- Add support for
v25.4.0
- #1784 Update generated code
- Add support for
setup_future_usage
onCheckout.Session.payment_method_options.amazon_pay
,Checkout.Session.payment_method_options.revolut_pay
,PaymentIntent.payment_method_options.amazon_pay
, andPaymentIntent.payment_method_options.revolut_pay
- Change type of
Entitlements.ActiveEntitlement.feature
fromstring
toexpandable($Entitlements.Feature)
- Remove support for inadvertently released identity verification features
email
andphone
onidentity.VerificationSessionCreateParams.options
andidentity.VerificationSessionUpdateParams.options
- Add support for new values
amazon_pay
andrevolut_pay
on enumsInvoiceCreateParams.payment_settings.payment_method_types[]
,InvoiceUpdateParams.payment_settings.payment_method_types[]
,SubscriptionCreateParams.payment_settings.payment_method_types[]
, andSubscriptionUpdateParams.payment_settings.payment_method_types[]
- Add support for
amazon_pay
andrevolut_pay
onMandate.payment_method_details
andSetupAttempt.payment_method_details
- Add support for
ending_before
,limit
, andstarting_after
onPaymentMethodConfigurationListParams
- Add support for
mobilepay
onPaymentMethodConfigurationCreateParams
,PaymentMethodConfigurationUpdateParams
, andPaymentMethodConfiguration
- Add support for
- Deprecate Java methods based on OpenAPI spec
- Mark as deprecated the
approve
anddecline
methods on Authorization. Instead, respond directly to the webhook request to approve an authorization.
- Mark as deprecated the
v25.4.0-beta.1
- #1781 Update generated code for beta
- Add support for
capital_overview
,tax_registrations
, andtax_settings
onAccountSessionCreateParams.components
- Add support for
external_account_collection
onAccountSessionCreateParams.components.financial_account.features
- Add support for
subscription_trial_from_plan
onInvoiceUpcomingLinesParams
andInvoiceUpcomingParams
- Add support for
v25.3.0
- #1782 Update generated code
- Add support for
create_preview
method on resourceInvoice
- Add support for
payment_method_data
oncheckout.SessionCreateParams
- Add support for
saved_payment_method_options
onCheckout.Session
andcheckout.SessionCreateParams
- Add support for
mobilepay
onCheckout.Session.payment_method_options
andcheckout.SessionCreateParams.payment_method_options
- Add support for new value
mobilepay
on enumcheckout.SessionCreateParams.payment_method_types[]
- Add support for
allow_redisplay
onConfirmationTokenCreateParams.payment_method_data
,CustomerListPaymentMethodsParams
,PaymentIntentConfirmParams.payment_method_data
,PaymentIntentCreateParams.payment_method_data
,PaymentIntentUpdateParams.payment_method_data
,PaymentMethodCreateParams
,PaymentMethodUpdateParams
,SetupIntentConfirmParams.payment_method_data
,SetupIntentCreateParams.payment_method_data
, andSetupIntentUpdateParams.payment_method_data
- Add support for
schedule_details
andsubscription_details
onInvoiceUpcomingLinesParams
andInvoiceUpcomingParams
- Add support for new value
other
on enumsissuing.AuthorizationCaptureParams.purchase_details.fuel.unit
,issuing.TransactionCreateForceCaptureParams.purchase_details.fuel.unit
, andissuing.TransactionCreateUnlinkedRefundParams.purchase_details.fuel.unit
- Add support for
v25.2.0
- #1780 Update generated code
- Add support for new resource
Entitlements.ActiveEntitlementSummary
- Add support for
balances
andpayouts_list
onAccountSession.components
andAccountSessionCreateParams.components
- Change
billing.MeterEventCreateParams.timestamp
to be optional - Remove support for
config
onForwarding.Request
andforwarding.RequestCreateParams
. This field is no longer used by the Forwarding Request API. - Add support for
capture_method
onPaymentIntent.payment_method_options.revolut_pay
,PaymentIntentConfirmParams.payment_method_options.revolut_pay
,PaymentIntentCreateParams.payment_method_options.revolut_pay
, andPaymentIntentUpdateParams.payment_method_options.revolut_pay
- Add support for
swish
onPaymentMethodConfigurationCreateParams
,PaymentMethodConfigurationUpdateParams
, andPaymentMethodConfiguration
- Add support for new value
entitlements.active_entitlement_summary.updated
on enumsWebhookEndpointCreateParams.enabled_events[]
andWebhookEndpointUpdateParams.enabled_events[]
- Add support for new resource
v25.2.0-beta.1
- #1777 Update generated code for beta
- Add support for
retrieve
method on resourcesEntitlements.ActiveEntitlement
andEntitlements.Feature
- Add support for
fees
,losses
,requirement_collection
, andstripe_dashboard
onAccountCreateParams.controller
- Add support for new values
bh_vat
,kz_bin
,ng_tin
, andom_vat
on enumsInvoiceCreatePreviewParams.customer_details.tax_ids[].type
,OrderCreateParams.tax_details.tax_ids[].type
, andOrderUpdateParams.tax_details.tax_ids[].type
- Add support for
hosted_voucher_url
onPaymentIntent.next_action.multibanco_display_details
- Add support for
toggles
onTerminal.Reader.action.collect_inputs.inputs[]
andterminal.ReaderCollectInputsParams.inputs[]
- Add support for new values
email
,numeric
,phone
, andtext
on enumterminal.ReaderCollectInputsParams.inputs[].type
- Add support for
email
,numeric
,phone
, andtext
onTerminal.Reader.action.collect_inputs.inputs[]
- Add support for
v25.1.0
- #1779 Update generated code
- Add support for
account_management
andnotification_banner
onAccountSession.components
andAccountSessionCreateParams.components
- Add support for
external_account_collection
onAccountSession.components.account_onboarding.features
andAccountSessionCreateParams.components.account_onboarding.features
- Change
billing.MeterEventAdjustmentCreateParams.cancel.identifier
andbilling.MeterEventAdjustmentCreateParams.cancel
to be optional - Change
billing.MeterEventAdjustmentCreateParams.type
to be required - Change type of
Billing.MeterEventAdjustment.cancel
fromBillingMeterResourceBillingMeterEventAdjustmentCancel
tonullable(BillingMeterResourceBillingMeterEventAdjustmentCancel)
- Add support for
amazon_pay
onCharge.payment_method_details
,Checkout.Session.payment_method_options
,ConfirmationToken.payment_method_preview
,ConfirmationTokenCreateParams.payment_method_data
,PaymentIntent.payment_method_options
,PaymentIntentConfirmParams.payment_method_data
,PaymentIntentConfirmParams.payment_method_options
,PaymentIntentCreateParams.payment_method_data
,PaymentIntentCreateParams.payment_method_options
,PaymentIntentUpdateParams.payment_method_data
,PaymentIntentUpdateParams.payment_method_options
,PaymentMethodConfigurationCreateParams
,PaymentMethodConfigurationUpdateParams
,PaymentMethodConfiguration
,PaymentMethodCreateParams
,PaymentMethod
,Refund.destination_details
,SetupIntent.payment_method_options
,SetupIntentConfirmParams.payment_method_data
,SetupIntentConfirmParams.payment_method_options
,SetupIntentCreateParams.payment_method_data
,SetupIntentCreateParams.payment_method_options
,SetupIntentUpdateParams.payment_method_data
,SetupIntentUpdateParams.payment_method_options
, andcheckout.SessionCreateParams.payment_method_options
- Add support for new value
ownership
on enumsInvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]
,InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]
,PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]
,PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]
,PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]
,SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]
,SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]
,SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]
,SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]
,SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]
, andcheckout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]
- Add support for new value
amazon_pay
on enumcheckout.SessionCreateParams.payment_method_types[]
- Add support for new value
amazon_pay
on enumsConfirmationTokenCreateParams.payment_method_data.type
,PaymentIntentConfirmParams.payment_method_data.type
,PaymentIntentCreateParams.payment_method_data.type
,PaymentIntentUpdateParams.payment_method_data.type
,SetupIntentConfirmParams.payment_method_data.type
,SetupIntentCreateParams.payment_method_data.type
, andSetupIntentUpdateParams.payment_method_data.type
- Add support for new values
bh_vat
,kz_bin
,ng_tin
, andom_vat
on enumsCustomerCreateParams.tax_id_data[].type
,InvoiceUpcomingLinesParams.customer_details.tax_ids[].type
,InvoiceUpcomingParams.customer_details.tax_ids[].type
,TaxIdCreateParams.type
, andtax.CalculationCreateParams.customer_details.tax_ids[].type
- Add support for new value
amazon_pay
on enumsCustomerListPaymentMethodsParams.type
,PaymentMethodCreateParams.type
, andPaymentMethodListParams.type
- Add support for
next_refresh_available_at
onFinancialConnections.Account.ownership_refresh
- Add support for
v25.0.0
-
-
This release changes the pinned API version to
2024-04-10
. Please read the API Upgrade Guide and carefully review the API changes before upgrading. -
Add a new
TaxIdService
for operations on/v1/tax_ids
endpoints.
⚠️ Breaking changes- Rename
features
tomarketing_features
onProductCreateParams
,ProductUpdateParams
, andProduct
- Rename "child" services to be prefixed with the associated parent service to allow for the same resource to be exposed at top level (e.g.,
/v1/tax_ids
viaclient.taxIds()
) and as a child (e.g.,/v1/customers/{}/tax_ids
viaclient.customers().taxIds()
).- Rename
CapabilityService
->AccountCapabilityService
- Rename
ExternalAccountService
->AccountExternalAccountService
- Rename
LoginLinkService
->AccountLoginLinkService
- Rename
PersonService
->AccountPersonService
- Rename
FeeRefundService
->ApplicationFeeRefundService
- Rename
CashBalanceService
->CustomerCashBalanceService
- Rename
PaymentSourceService
->CustomerPaymentSourceService
- Rename
UsageRecordService
->SubscriptionItemUsageRecordService
- Rename
UsageRecordSummaryService
->SubscriptionItemUsageRecordSummaryService
- Rename
TaxIdService
->CustomerTaxIdService
.
- Rename
- Remove support for
verify
method onBankAccountService
.- Please use the
verify
method onCustomerPaymentSourceService
instead
// BEFORE client.bankAccounts().verify("cus_...", "ba_..."); // AFTER client.customers().paymentSources().verify("cus_...", "ba_...");
- Please use the
- Remove support for
list
andcreate
methods ontreasury.FinancialAccountFeaturesService
. These methods were incorrectly named.- Please migrate
list
->retrieve
andcreate
->update
.
- Please migrate
- Update
setPageTypeToken
method onStripeCollectionInterface
to be required and remove default implementation. - Remove deprecated
setUsage
method onBaseApiRequest
. - Update
usage
onBaseApiRequest
class to befinal
. - Remove deprecated
maybeEnqueueMetrics
method onRequestTelemetry
.
⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API- Remove
Configuration.SubscriptionPause
for Billing Portal as the feature to pause subscription on the portal has been deprecated. - Remove the support for the below deprecated values in
BalanceTransaction.Type
obligation_inbound
obligation_payout
obligation_payout_failure
obligation_reversal_outbound
- Remove the below deprecated events from
Event.Type
,WebhookEndpointCreateOptions.EnabledEvent
,WebhookEndpointUpdateOptions.EnabledEvent
invoiceitem.updated
order.created
recipient.created
recipient.deleted
recipient.updated
sku.created
sku.deleted
sku.updated
- Remove support for
id_bank_transfer
,multibanco
,netbanking
,pay_by_bank
, andupi
onPaymentMethodConfiguration
by removing the below classesPaymentMethodConfiguration.IdBankTransfer
PaymentMethodConfiguration.Multibanco
PaymentMethodConfiguration.Netbanking
PaymentMethodConfiguration.PayByBank
PaymentMethodConfiguration.Upi
- Remove the support for
challenge_only
inSetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure
- Remove the support for deprecated value
service_tax
inTaxRate.TaxType
,InvoiceLinetItemUpdateParams.TaxAmount.TaxRateData.TaxType
,pwebTaxRateCreateParams.TaxType
,TaxRateUpdateParams.TaxType
- Remove the support for
various
inClimate.Supplier.removalPathway
- Remove the deprecated value
INCLUDE_AND_REQUIRE
on the enumInvoiceCreateParams.PendingInvoiceItemsBehavior
- Remove the property
RequestIncrementalAuthorization
onPaymentIntentConfirmParams.PaymentMethodOptions.CardPresent
,PaymentIntentCreateParams.PaymentMethodOptions.CardPresent
andPaymentIntentUpdateParams.PaymentMethodOptions.CardPresent
. This was shipped by mistake. - Remove the support for deprecated value
obligation
onReportRunCreateParams.ReportingCategory
- Remove the legacy field
rendering_options
onInvoiceCreateParams
,InvoiceUpdateParams
, andInvoice
. Userendering
instead.
-
v24.24.0
- #1778 Update generated code
- Add support for new resources
Entitlements.ActiveEntitlement
andEntitlements.Feature
- Add support for
list
andretrieve
methods on resourceActiveEntitlement
- Add support for
create
,list
,retrieve
, andupdate
methods on resourceFeature
- Add support for
controller
onAccountCreateParams
- Add support for
fees
,losses
,requirement_collection
, andstripe_dashboard
onAccount.controller
- Add support for
event_name
onBilling.MeterEventAdjustment
andbilling.MeterEventAdjustmentCreateParams
- Add support for
cancel
andtype
onBilling.MeterEventAdjustment
- Add support for new resources