Releases: stripe/stripe-java
Releases · stripe/stripe-java
v28.2.0
- #1931 This release changes the pinned API version to
2024-12-18.acacia
.- Add support for
network_advice_code
andnetwork_decline_code
onCharge.outcome
,Invoice.last_finalization_error
,PaymentIntent.last_payment_error
,SetupAttempt.setup_error
,SetupIntent.last_setup_error
, andStripeError
- Add support for
credits_application_invoice_voided
onBilling.CreditBalanceTransaction.credit
- Change type of
Billing.CreditBalanceTransaction.credit.type
fromliteral('credits_granted')
toenum('credits_application_invoice_voided'|'credits_granted')
- Add support for
allow_redisplay
onCard
andSource
- Add support for
regulated_status
onCard
,Charge.payment_method_details.card
,ConfirmationToken.payment_method_preview.card
, andPaymentMethod.card
- Add support for
funding
onCharge.payment_method_details.amazon_pay
andCharge.payment_method_details.revolut_pay
- Add support for
network_transaction_id
onCharge.payment_method_details.card
- Add support for
reference_prefix
onCheckout.Session.payment_method_options.bacs_debit.mandate_options
,Checkout.Session.payment_method_options.sepa_debit.mandate_options
,PaymentIntent.payment_method_options.bacs_debit.mandate_options
,PaymentIntent.payment_method_options.sepa_debit.mandate_options
,PaymentIntentConfirmParams.payment_method_options.bacs_debit.mandate_options
,PaymentIntentConfirmParams.payment_method_options.sepa_debit.mandate_options
,PaymentIntentCreateParams.payment_method_options.bacs_debit.mandate_options
,PaymentIntentCreateParams.payment_method_options.sepa_debit.mandate_options
,PaymentIntentUpdateParams.payment_method_options.bacs_debit.mandate_options
,PaymentIntentUpdateParams.payment_method_options.sepa_debit.mandate_options
,SetupIntent.payment_method_options.bacs_debit.mandate_options
,SetupIntent.payment_method_options.sepa_debit.mandate_options
,SetupIntentConfirmParams.payment_method_options.bacs_debit.mandate_options
,SetupIntentConfirmParams.payment_method_options.sepa_debit.mandate_options
,SetupIntentCreateParams.payment_method_options.bacs_debit.mandate_options
,SetupIntentCreateParams.payment_method_options.sepa_debit.mandate_options
,SetupIntentUpdateParams.payment_method_options.bacs_debit.mandate_options
,SetupIntentUpdateParams.payment_method_options.sepa_debit.mandate_options
,checkout.SessionCreateParams.payment_method_options.bacs_debit.mandate_options
, andcheckout.SessionCreateParams.payment_method_options.sepa_debit.mandate_options
- Add support for new values
al_tin
,am_tin
,ao_tin
,ba_tin
,bb_tin
,bs_tin
,cd_nif
,gn_nif
,kh_tin
,me_pib
,mk_vat
,mr_nif
,np_pan
,sn_ninea
,sr_fin
,tj_tin
,ug_tin
,zm_tin
, andzw_tin
on enumsCustomerCreateParams.tax_id_data[].type
,InvoiceCreatePreviewParams.customer_details.tax_ids[].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
visa_compliance
onDispute.evidence.enhanced_evidence
,Dispute.evidence_details.enhanced_eligibility
, andDisputeUpdateParams.evidence.enhanced_evidence
- Add support for new value
request_signature
on enumforwarding.RequestCreateParams.replacements[]
- Add support for
account_holder_address
andbank_address
onFundingInstructions.bank_transfer.financial_addresses[].iban
,FundingInstructions.bank_transfer.financial_addresses[].sort_code
,FundingInstructions.bank_transfer.financial_addresses[].spei
,FundingInstructions.bank_transfer.financial_addresses[].zengin
,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban
,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code
,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei
, andPaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin
- Add support for
account_holder_name
onFundingInstructions.bank_transfer.financial_addresses[].spei
andPaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei
- Add support for
disabled_reason
onInvoice.automatic_tax
,Subscription.automatic_tax
,SubscriptionSchedule.default_settings.automatic_tax
, andSubscriptionSchedule.phases[].automatic_tax
- Add support for
tax_id
onIssuing.Authorization.merchant_data
andIssuing.Transaction.merchant_data
- Add support for
trial_period_days
onPaymentLinkUpdateParams.subscription_data
- Add support for
al
,am
,ao
,ba
,bb
,bs
,cd
,gn
,kh
,me
,mk
,mr
,np
,pe
,sn
,sr
,tj
,ug
,uy
,zm
, andzw
onTax.Registration.country_options
andtax.RegistrationCreateParams.country_options
- Add support for new value
2024-12-18.acacia
on enumWebhookEndpointCreateParams.api_version
- Add support for
v28.2.0-beta.4
- #1929 Update generated code for beta
- Add support for
allow_redisplay
onCard
andSource
- Add support for new values
am_tin
,ao_tin
,ba_tin
,bb_tin
,bs_tin
,cd_nif
,gn_nif
,kh_tin
,me_pib
,mk_vat
,mr_nif
,np_pan
,sn_ninea
,sr_fin
,tj_tin
,ug_tin
,zm_tin
, andzw_tin
on enumsOrderCreateParams.tax_details.tax_ids[].type
andOrderUpdateParams.tax_details.tax_ids[].type
- Remove support for
amount_refunded
onPaymentRecord
- Add support for
account
onTerminal.Reader.action.collect_payment_method
,Terminal.Reader.action.confirm_payment_intent
,Terminal.Reader.action.process_payment_intent
, andTerminal.Reader.action.refund_payment
- Add support for
v28.2.0-beta.3
- #1930 Change types for capital FinancingSummary back to BigDecimal
- The type for
Capital.FinancingSummary.Details.advancePaidOutAt
,Capital.FinancingSummary.Details.repaymentsBeginAt
,Capital.FinancingSummary.Details.CurrentRepaymentInterval.repaymentsBeginAt
have been changed toBigDecimal
to reflect the API
- The type for
v28.2.0-beta.2
- #1926 Update generated code for beta
- Add support for
automatic_indirect_tax
onAccount.capabilities
,AccountCreateParams.capabilities
, andAccountUpdateParams.capabilities
- Add support for
reference_prefix
onCheckout.Session.payment_method_options.bacs_debit.mandate_options
,Checkout.Session.payment_method_options.sepa_debit.mandate_options
,Order.payment.settings.payment_method_options.sepa_debit.mandate_options
,OrderCreateParams.payment.settings.payment_method_options.sepa_debit.mandate_options
,OrderUpdateParams.payment.settings.payment_method_options.sepa_debit.mandate_options
,PaymentIntent.payment_method_options.bacs_debit.mandate_options
,PaymentIntent.payment_method_options.sepa_debit.mandate_options
,PaymentIntentConfirmParams.payment_method_options.bacs_debit.mandate_options
,PaymentIntentConfirmParams.payment_method_options.sepa_debit.mandate_options
,PaymentIntentCreateParams.payment_method_options.bacs_debit.mandate_options
,PaymentIntentCreateParams.payment_method_options.sepa_debit.mandate_options
,PaymentIntentUpdateParams.payment_method_options.bacs_debit.mandate_options
,PaymentIntentUpdateParams.payment_method_options.sepa_debit.mandate_options
,SetupIntent.payment_method_options.bacs_debit.mandate_options
,SetupIntent.payment_method_options.sepa_debit.mandate_options
,SetupIntentConfirmParams.payment_method_options.bacs_debit.mandate_options
,SetupIntentConfirmParams.payment_method_options.sepa_debit.mandate_options
,SetupIntentCreateParams.payment_method_options.bacs_debit.mandate_options
,SetupIntentCreateParams.payment_method_options.sepa_debit.mandate_options
,SetupIntentUpdateParams.payment_method_options.bacs_debit.mandate_options
,SetupIntentUpdateParams.payment_method_options.sepa_debit.mandate_options
,checkout.SessionCreateParams.payment_method_options.bacs_debit.mandate_options
, andcheckout.SessionCreateParams.payment_method_options.sepa_debit.mandate_options
- Add support for
disabled_reason
onInvoice.automatic_tax
,Subscription.automatic_tax
,SubscriptionSchedule.default_settings.automatic_tax
, andSubscriptionSchedule.phases[].automatic_tax
- Add support for
trial_period_days
onPaymentLinkUpdateParams.subscription_data
- Add support for
v28.2.0-beta.1
- #1924 Update generated code for beta
- Add support for
network_advice_code
andnetwork_decline_code
onCharge.outcome
,Invoice.last_finalization_error
,PaymentIntent.last_payment_error
,SetupAttempt.setup_error
,SetupIntent.last_setup_error
, andStripeError
- Add support for
funding
onCharge.payment_method_details.amazon_pay
andCharge.payment_method_details.revolut_pay
- Add support for
amount_requested
andpartial_authorization
onCharge.payment_method_details.card
- Add support for
metadata
onLineItem
andcheckout.SessionCreateParams.line_items[]
- Add support for
line_items
onCheckout.Session.permissions.update
,checkout.SessionCreateParams.permissions.update
, andcheckout.SessionUpdateParams
- Add support for
adjustable_quantity
anddisplay
onLineItem
- Add support for
request_partial_authorization
onPaymentIntent.payment_method_options.card
,PaymentIntentConfirmParams.payment_method_options.card
,PaymentIntentCreateParams.payment_method_options.card
, andPaymentIntentUpdateParams.payment_method_options.card
- Add support for
payment_method_options
onPaymentIntentIncrementAuthorizationParams
- Add support for new value
invoice.overpaid
on enumsWebhookEndpointCreateParams.enabled_events[]
andWebhookEndpointUpdateParams.enabled_events[]
- Add support for
v28.1.0
- #1923 This release changes the pinned API version to
2024-11-20.acacia
.- Add support for
respond
test helper method on resourceIssuing.Authorization
- Add support for
authorizer
onAccountPersonsParams.relationship
andTokenCreateParams.person.relationship
- Add support for
adaptive_pricing
onCheckout.Session
andcheckout.SessionCreateParams
- Add support for
mandate_options
onCheckout.Session.payment_method_options.bacs_debit
,Checkout.Session.payment_method_options.sepa_debit
,checkout.SessionCreateParams.payment_method_options.bacs_debit
, andcheckout.SessionCreateParams.payment_method_options.sepa_debit
- Add support for
request_extended_authorization
,request_incremental_authorization
,request_multicapture
, andrequest_overcapture
onCheckout.Session.payment_method_options.card
andcheckout.SessionCreateParams.payment_method_options.card
- Add support for
capture_method
oncheckout.SessionCreateParams.payment_method_options.kakao_pay
,checkout.SessionCreateParams.payment_method_options.kr_card
,checkout.SessionCreateParams.payment_method_options.naver_pay
,checkout.SessionCreateParams.payment_method_options.payco
, andcheckout.SessionCreateParams.payment_method_options.samsung_pay
- Add support for new value
subscribe
on enumsPaymentLinkCreateParams.submit_type
andcheckout.SessionCreateParams.submit_type
- Add support for new value
li_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
,TaxIdCreateParams.type
, andtax.CalculationCreateParams.customer_details.tax_ids[].type
- Add support for new value
financial_account_statement
on enumFileListParams.purpose
- Add support for
account_holder_address
,account_holder_name
,account_type
, andbank_address
onFundingInstructions.bank_transfer.financial_addresses[].aba
,FundingInstructions.bank_transfer.financial_addresses[].swift
,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba
, andPaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift
- Add support for new value
service_tax
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
merchant_amount
andmerchant_currency
onissuing.AuthorizationCreateParams
- Change
issuing.AuthorizationCreateParams.amount
to be optional - Add support for
fraud_challenges
andverified_by_fraud_challenge
onIssuing.Authorization
- Add support for new value
link
on enumsPaymentIntentConfirmParams.payment_method_options.card.network
,PaymentIntentCreateParams.payment_method_options.card.network
,PaymentIntentUpdateParams.payment_method_options.card.network
,SetupIntentConfirmParams.payment_method_options.card.network
,SetupIntentCreateParams.payment_method_options.card.network
,SetupIntentUpdateParams.payment_method_options.card.network
,SubscriptionCreateParams.payment_settings.payment_method_options.card.network
, andSubscriptionUpdateParams.payment_settings.payment_method_options.card.network
- Add support for
submit_type
onPaymentLinkUpdateParams
- Add support for
trace_id
onPayout
- Add support for
network_decline_code
onRefund.destination_details.blik
andRefund.destination_details.swish
- Add support for new value
2024-11-20.acacia
on enumWebhookEndpointCreateParams.api_version
- Add support for
v28.1.0-beta.3
- #1922 Update generated code for beta
- Add support for
account_holder_address
andbank_address
onFundingInstructions.bank_transfer.financial_addresses[].iban
,FundingInstructions.bank_transfer.financial_addresses[].sort_code
,FundingInstructions.bank_transfer.financial_addresses[].spei
,FundingInstructions.bank_transfer.financial_addresses[].zengin
,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban
,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code
,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei
, andPaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin
- Add support for
account_holder_name
onFundingInstructions.bank_transfer.financial_addresses[].spei
andPaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei
- Add support for new value
subscribe
on enumPaymentLinkUpdateParams.submit_type
- Add support for
v28.1.0-beta.2
- #1917 Update generated code for beta
- Add support for new resources
Issuing.FraudLiabilityDebit
,PaymentAttemptRecord
, andPaymentRecord
- Add support for
list
andretrieve
methods on resourcesFraudLiabilityDebit
andPaymentAttemptRecord
- Add support for
report_payment_attempt_canceled
,report_payment_attempt_failed
,report_payment_attempt_guaranteed
,report_payment_attempt
,report_payment
, andretrieve
methods on resourcePaymentRecord
- Remove support for
money_movement
onAccountSessionCreateParams.components.financial_account.features
- Add support for
card_management
,card_spend_dispute_management
,cardholder_management
, andspend_control_management
onAccountSessionCreateParams.components.issuing_card.features
- Add support for
disable_stripe_user_authentication
onAccountSessionCreateParams.components.issuing_cards_list.features
- Add support for
adaptive_pricing
onCheckout.Session
andcheckout.SessionCreateParams
- Add support for
mandate_options
onCheckout.Session.payment_method_options.bacs_debit
,Checkout.Session.payment_method_options.sepa_debit
,checkout.SessionCreateParams.payment_method_options.bacs_debit
, andcheckout.SessionCreateParams.payment_method_options.sepa_debit
- Add support for
request_decremental_authorization
,request_extended_authorization
,request_incremental_authorization
,request_multicapture
, andrequest_overcapture
onCheckout.Session.payment_method_options.card
andcheckout.SessionCreateParams.payment_method_options.card
- Add support for
capture_method
oncheckout.SessionCreateParams.payment_method_options.kakao_pay
,checkout.SessionCreateParams.payment_method_options.kr_card
,checkout.SessionCreateParams.payment_method_options.naver_pay
,checkout.SessionCreateParams.payment_method_options.payco
, andcheckout.SessionCreateParams.payment_method_options.samsung_pay
- Add support for new value
li_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
account_holder_address
,account_holder_name
,account_type
, andbank_address
onFundingInstructions.bank_transfer.financial_addresses[].aba
,FundingInstructions.bank_transfer.financial_addresses[].swift
,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba
, andPaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift
- Add support for new value
custom
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 new value
service_tax
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
payment_record_data
andpayment_record
onInvoiceAttachPaymentParams
- Remove support for
out_of_band_payment
onInvoiceAttachPaymentParams
- Add support for
amount_overpaid
onInvoice
- Add support for
merchant_amount
andmerchant_currency
onissuing.AuthorizationCreateParams
- Change
issuing.AuthorizationCreateParams.amount
to be optional - Add support for new value
link
on enumsPaymentIntentConfirmParams.payment_method_options.card.network
,PaymentIntentCreateParams.payment_method_options.card.network
,PaymentIntentUpdateParams.payment_method_options.card.network
,SetupIntentConfirmParams.payment_method_options.card.network
,SetupIntentCreateParams.payment_method_options.card.network
,SetupIntentUpdateParams.payment_method_options.card.network
,SubscriptionCreateParams.payment_settings.payment_method_options.card.network
, andSubscriptionUpdateParams.payment_settings.payment_method_options.card.network
- Add support for
submit_type
onPaymentLinkUpdateParams
- Add support for new values
invoice.payment_attempt_required
andissuing_fraud_liability_debit.created
on enumsWebhookEndpointCreateParams.enabled_events[]
andWebhookEndpointUpdateParams.enabled_events[]
- Add support for new resources
v28.0.1
v28.1.0-beta.1
- #1914 Update generated code for beta
- Add support for
trigger_action
method on resourcePaymentIntent
- Add support for
id_bank_transfer_payments_bca
andid_bank_transfer_payments
onAccount.capabilities
,AccountCreateParams.capabilities
, andAccountUpdateParams.capabilities
- Add support for
bank_bca_onboarding
onAccount.settings
,AccountCreateParams.settings
, andAccountUpdateParams.settings
- Add support for
send_money
onAccountSessionCreateParams.components.recipients.features
- Add support for
id_bank_transfer
onCharge.payment_method_details
,ConfirmationToken.payment_method_preview
,ConfirmationTokenCreateParams.payment_method_data
,Invoice.payment_settings.payment_method_options
,InvoiceCreateParams.payment_settings.payment_method_options
,InvoiceUpdateParams.payment_settings.payment_method_options
,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
,SetupAttempt.payment_method_details
,SetupIntentConfirmParams.payment_method_data
,SetupIntentCreateParams.payment_method_data
,SetupIntentUpdateParams.payment_method_data
,Subscription.payment_settings.payment_method_options
,SubscriptionCreateParams.payment_settings.payment_method_options
, andSubscriptionUpdateParams.payment_settings.payment_method_options
- Add support for
gopay
,qris
, andshopeepay
onPaymentMethodConfigurationCreateParams
,PaymentMethodConfigurationUpdateParams
, andPaymentMethodConfiguration
- Add support for
- #1909 Do not allow setting Stripe.stripeVersion
Stripe.stripeVersion
is no longer settable. If you were using this to set the beta headers, use the helper methodStripe.addBetaVersion()
instead.