Releases: stripe/stripe-java
Releases · stripe/stripe-java
v27.2.0-beta.3
- #1897 Update generated code for beta
- Add support for
alma_payments
,gopay_payments
,kakao_pay_payments
,kr_card_payments
,naver_pay_payments
,payco_payments
,qris_payments
,samsung_pay_payments
,shopeepay_payments
,treasury_evolve
,treasury_fifth_third
, andtreasury_goldman_sachs
onAccount.capabilities
,AccountCreateParams.capabilities
, andAccountUpdateParams.capabilities
- Add support for
schedule_at_period_end
onBillingPortal.Configuration.features.subscription_update
,billingportal.ConfigurationCreateParams.features.subscription_update
, andbillingportal.ConfigurationUpdateParams.features.subscription_update
- Change
billingportal.ConfigurationCreateParams.business_profile
to be optional - Add support for
alma
onCharge.payment_method_details
,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
,SetupIntentConfirmParams.payment_method_data
,SetupIntentCreateParams.payment_method_data
, andSetupIntentUpdateParams.payment_method_data
- Add support for
gopay
,qris
, andshopeepay
onCharge.payment_method_details
,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
,PaymentMethodCreateParams
,PaymentMethod
,SetupIntentConfirmParams.payment_method_data
,SetupIntentCreateParams.payment_method_data
, andSetupIntentUpdateParams.payment_method_data
- Add support for new values
alma
,gopay
,qris
, andshopeepay
on enumsCustomerListPaymentMethodsParams.type
,PaymentMethodCreateParams.type
,PaymentMethodListParams.type
, andcheckout.SessionCreateParams.payment_method_types[]
- Add support for new values
alma
,gopay
,qris
, andshopeepay
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 value
auto
on enumCustomerUpdateParams.tax.validate_location
- Add support for
metadata
onforwarding.RequestCreateParams
- Add support for new values
jp_credit_transfer
,kakao_pay
,kr_card
,naver_pay
, andpayco
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[]
- Remove support for value
expired
from enumissuing.AuthorizationListParams.status
- Add support for new values
alma
,gopay
,qris
, andshopeepay
on enumsPaymentLinkCreateParams.payment_method_types[]
andPaymentLinkUpdateParams.payment_method_types[]
- Add support for
amazon_pay
onPaymentMethodDomain
- Add support for
external_reference
onTax.Form.payee
andtax.FormListParams.payee
- Change type of
Tax.Form.payee.type
andtax.FormListParams.payee.type
fromliteral('account')
toenum('account'|'external_reference')
- Add support for new values
au_serr
,ca_mrdp
,eu_dac7
,gb_mrdp
, andnz_mrdp
on enumtax.FormListParams.type
- Add support for
au_serr
,ca_mrdp
,eu_dac7
,gb_mrdp
, andnz_mrdp
onTax.Form
- Add support for
pln
onTerminal.Configuration.tipping
,terminal.ConfigurationCreateParams.tipping
, andterminal.ConfigurationUpdateParams.tipping
- Add support for
bank
onTreasury.FinancialAccountFeatures.financial_addresses.aba
,treasury.FinancialAccountCreateParams.features.financial_addresses.aba
,treasury.FinancialAccountUpdateFeaturesParams.financial_addresses.aba
, andtreasury.FinancialAccountUpdateParams.features.financial_addresses.aba
- Add support for
v27.1.1
v27.2.0-beta.2
- #1872 Update generated code for beta
- Add support for
submit_card
test helper method on resourceIssuing.Card
- Add support for
groups
onAccountCreateParams
,AccountUpdateParams
, andAccount
- Add support for
disable_stripe_user_authentication
onAccountSession.components.account_management.features
,AccountSession.components.account_onboarding.features
,AccountSession.components.balances.features
,AccountSession.components.notification_banner.features
,AccountSession.components.payouts.features
,AccountSessionCreateParams.components.account_management.features
,AccountSessionCreateParams.components.account_onboarding.features
,AccountSessionCreateParams.components.balances.features
,AccountSessionCreateParams.components.financial_account.features
,AccountSessionCreateParams.components.notification_banner.features
, andAccountSessionCreateParams.components.payouts.features
- Add support for
card_spend_dispute_management
andspend_control_management
onAccountSessionCreateParams.components.issuing_cards_list.features
- Add support for
kakao_pay
andkr_card
onCharge.payment_method_details
,ConfirmationToken.payment_method_preview
,ConfirmationTokenCreateParams.payment_method_data
,Mandate.payment_method_details
,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
,PaymentMethodCreateParams
,PaymentMethod
,SetupAttempt.payment_method_details
,SetupIntentConfirmParams.payment_method_data
,SetupIntentCreateParams.payment_method_data
, andSetupIntentUpdateParams.payment_method_data
- Add support for
naver_pay
onCharge.payment_method_details
,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
,PaymentMethodCreateParams
,PaymentMethodUpdateParams
,PaymentMethod
,SetupIntentConfirmParams.payment_method_data
,SetupIntentCreateParams.payment_method_data
, andSetupIntentUpdateParams.payment_method_data
- Add support for
payco
andsamsung_pay
onCharge.payment_method_details
,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
,PaymentMethodCreateParams
,PaymentMethod
,SetupIntentConfirmParams.payment_method_data
,SetupIntentCreateParams.payment_method_data
, andSetupIntentUpdateParams.payment_method_data
- Add support for new values
kakao_pay
,kr_card
,naver_pay
,payco
, andsamsung_pay
on enumsCustomerListPaymentMethodsParams.type
,PaymentMethodCreateParams.type
,PaymentMethodListParams.type
, andcheckout.SessionCreateParams.payment_method_types[]
- Add support for new values
kakao_pay
,kr_card
,naver_pay
,payco
, andsamsung_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
by_tin
,ma_vat
,md_vat
,tz_vat
,uz_tin
, anduz_vat
on enumsCustomerCreateParams.tax_id_data[].type
,InvoiceCreatePreviewParams.customer_details.tax_ids[].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
,TaxIdCreateParams.type
, andtax.CalculationCreateParams.customer_details.tax_ids[].type
- Add support for
metadata
onForwarding.Request
- Add support for new value
retail_delivery_fee
on enumsInvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type
,InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type
,TaxRateCreateParams.tax_type
, andTaxRateUpdateParams.tax_type
- Add support for new value
expired
on enumissuing.AuthorizationListParams.status
- Add support for
line_items
onOrder.payment.settings.payment_method_options.paypal
,OrderCreateParams.payment.settings.payment_method_options.paypal
,OrderUpdateParams.payment.settings.payment_method_options.paypal
,PaymentIntent.payment_method_options.paypal
,PaymentIntentConfirmParams.payment_method_options.paypal
,PaymentIntentCreateParams.payment_method_options.paypal
, andPaymentIntentUpdateParams.payment_method_options.paypal
- Add support for
flat_amount
andrate_type
onTax.Calculation.tax_breakdown[].tax_rate_details
andTaxRate
- Add support for
by
,cr
,ec
,ma
,md
,rs
,ru
,tz
, anduz
onTax.Registration.country_options
andtax.RegistrationCreateParams.country_options
- Add support for new value
state_retail_delivery_fee
on enumtax.RegistrationCreateParams.country_options.us.type
- Add support for new value
refund.failed
on enumsWebhookEndpointCreateParams.enabled_events[]
andWebhookEndpointUpdateParams.enabled_events[]
- Add support for
v27.2.0-beta.1
- #1888 Update generated code
- Add support for
reporting_chart
onAccountSessionCreateParams.components
- Remove support for
from_schedule
onQuote.subscription_data
- Add support for
allow_redisplay
onterminal.ReaderCollectPaymentMethodParams.collect_config
- Add support for
v27.1.0
- #1890 Update the class for
ThinEvent
to includelivemode
andreason
- #1891 Removed the class
RequestSigningAuthenticator
that was added in the previous release. Request Signing is not supported yet. - #1889 Update generated code
- Remove the support for resource
Margin
that was accidentally made public in the last release
- Remove the support for resource
v27.0.0
-
#1880 Support for APIs in the new API version 2024-09-30.acacia
This release changes the pinned API version to
2024-09-30.acacia
. Please read the API Changelog and carefully review the API changes before upgrading.⚠️ Breaking changes due to changes in the API- Rename
usage_threshold_config
tousage_threshold
onBilling.Alert
andbilling.AlertCreateParams
- Remove support for
filter
onBilling.Alert
andbilling.AlertCreateParams
. Use the filters on theusage_threshold
instead - Remove support for
customer_consent_collected
onterminal.ReaderProcessSetupIntentParams
⚠️ Other Breaking changes in the SDK- Adjusted default values for HTTP requests. You can use the old defaults by setting them explicitly. New values are:
- max retries:
0
->2
- max retries:
- Add method
parseThinEvent()
on theStripeClient
class to parse thin events. RenameconstructEvent()
method on the same class toparseSnapshotEvent()
to clearly distinguish between the two kinds of events. - Breaking changes to public classes that are meant for internal use only and should not affect you
- Renamed
setStripeResponseGetter
onApiResource
to `setGlobalResponseGetter - Added another parameter to FormEncoder.flattenParams()
- Removed the deprecated constructor overload on
APIRequest
- Removed
GlobalStripeResponseGetterOptions.getAPiKey
&StripeResponseGetterOptions.getApiKey
. We now use a higher abstraction calledAuthenticator
instead of passing around api keys - Changed return type of
RequestOptions.RequestOptionsBuilder.getConnectTimeout
from int to java.lang.Integer. - Removed the public constructor on
StripeRequest
in favor of a staticStripeRequest.create()
- The unused field
partnerId
on classStripe
is removed
- Renamed
Additions
- Add support for
usage_threshold
onBilling.Alert
andbilling.AlertCreateParams
- Add support for
custom_unit_amount
onProductCreateParams.default_price_data
- Add support for
allow_redisplay
onterminal.ReaderProcessPaymentIntentParams.process_config
andterminal.ReaderProcessSetupIntentParams
- Add support for new value
2024-09-30.acacia
on enumWebhookEndpointCreateParams.api_version
- Add support for new Usage Billing APIs
Billing.MeterEvent
,Billing.MeterEventAdjustments
,Billing.MeterEventSession
,Billing.MeterEventStream
and the new Events APICore.Events
under the v2 namespace - Add methods rawRequest() on the
StripeClient
class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK.
Changes
- Change
billingportal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates
andbillingportal.ConfigurationCreateParams.features.subscription_update.products
to be optional
- Rename
v26.13.0
-
#1880 Support for APIs in the new API version 2024-09-30.acacia
This release changes the pinned API version to
2024-09-30.acacia
. Please read the API Upgrade Guide and carefully review the API changes before upgrading.⚠️ Breaking changes due to changes in the API- Rename
usage_threshold_config
tousage_threshold
onBilling.Alert
andbilling.AlertCreateParams
- Remove support for
filter
onBilling.Alert
andbilling.AlertCreateParams
. Use the filters on theusage_threshold
instead - Remove support for
customer_consent_collected
onterminal.ReaderProcessSetupIntentParams
⚠️ Other Breaking changes in the SDK- Adjusted default values for HTTP requests. You can use the old defaults by setting them explicitly. New values are:
- max retries:
0
->2
- max retries:
- Add method
parseThinEvent()
on theStripeClient
class to parse thin events. RenameconstructEvent()
method on the same class toparseSnapshotEvent()
to clearly distinguish between the two kinds of events. - Breaking changes to public classes that are meant for internal use only and should not affect you
- Renamed
setStripeResponseGetter
onApiResource
to `setGlobalResponseGetter - Added another parameter to FormEncoder.flattenParams()
- Removed the deprecated constructor overload on
APIRequest
- Removed
GlobalStripeResponseGetterOptions.getAPiKey
&StripeResponseGetterOptions.getApiKey
. We now use a higher abstraction calledAuthenticator
instead of passing around api keys - Changed return type of
RequestOptions.RequestOptionsBuilder.getConnectTimeout
from int to java.lang.Integer. - Removed the public constructor on
StripeRequest
in favor of a staticStripeRequest.create()
- The unused field
partnerId
on classStripe
is removed
- Renamed
Additions
- Add support for
usage_threshold
onBilling.Alert
andbilling.AlertCreateParams
- Add support for
custom_unit_amount
onProductCreateParams.default_price_data
- Add support for
allow_redisplay
onterminal.ReaderProcessPaymentIntentParams.process_config
andterminal.ReaderProcessSetupIntentParams
- Add support for new value
2024-09-30.acacia
on enumWebhookEndpointCreateParams.api_version
- Add support for new Usage Billing APIs
Billing.MeterEvent
,Billing.MeterEventAdjustments
,Billing.MeterEventSession
,Billing.MeterEventStream
and the new Events APICore.Events
under the v2 namespace - Add methods rawRequest() on the
StripeClient
class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK.
Changes
- Change
billingportal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates
andbillingportal.ConfigurationCreateParams.features.subscription_update.products
to be optional
- Rename
v26.13.0-beta.1
- #1870 Update generated code for beta
- Remove support for resource
QuotePhase
- Remove support for
list_line_items
andretrieve
methods on resourceQuotePhase
- Add support for
send_money
andtransfer_balance
onAccountSessionCreateParams.components.financial_account.features
- Add support for new value
rechnung
on enumsPaymentLinkCreateParams.payment_method_types[]
andPaymentLinkUpdateParams.payment_method_types[]
- Remove support for resource
v26.12.0
- #1866 Update generated code
- Add support for
payer_details
onCharge.payment_method_details.klarna
- Add support for
amazon_pay
onDispute.payment_method_details
- Add support for
automatically_finalizes_at
onInvoice
- Add support for
state_sales_tax
onTax.Registration.country_options.us
andtax.RegistrationCreateParams.country_options.us
- Add support for
v26.12.0-beta.1
- #1862 Update generated code for beta
- Add support for new resources
Issuing.DisputeSettlementDetail
andIssuing.Settlement
- Add support for
list
andretrieve
methods on resourceDisputeSettlementDetail
- Remove support for
list
method on resourceQuotePhase
- Add support for new value
rechnung
on enumcheckout.SessionCreateParams.payment_method_types[]
- Add support for
settlement
onIssuing.Transaction
andissuing.TransactionListParams
- Add support for new values
issuing_dispute_settlement_detail.created
,issuing_dispute_settlement_detail.updated
,issuing_settlement.created
, andissuing_settlement.updated
on enumsWebhookEndpointCreateParams.enabled_events[]
andWebhookEndpointUpdateParams.enabled_events[]
- Add support for new resources