Releases: stripe/stripe-java
Releases · stripe/stripe-java
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 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
-
#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
v26.11.0
- #1864 Update generated code
- Add support for new resource
InvoiceRenderingTemplate
- Add support for
archive
,list
,retrieve
, andunarchive
methods on resourceInvoiceRenderingTemplate
- Add support for
required
onCheckout.Session.tax_id_collection
,PaymentLink.tax_id_collection
,PaymentLinkCreateParams.tax_id_collection
,PaymentLinkUpdateParams.tax_id_collection
, andcheckout.SessionCreateParams.tax_id_collection
- Add support for
template
onCustomer.invoice_settings.rendering_options
,CustomerCreateParams.invoice_settings.rendering_options
,CustomerUpdateParams.invoice_settings.rendering_options
,Invoice.rendering
,InvoiceCreateParams.rendering
, andInvoiceUpdateParams.rendering
- Add support for
template_version
onInvoice.rendering
,InvoiceCreateParams.rendering
, andInvoiceUpdateParams.rendering
- Add support for new resource
v26.11.0-beta.1
- #1859 Update generated code for beta
- Add support for
recipients
onAccountSessionCreateParams.components
- Add support for new value
mb_way
on enumsPaymentLinkCreateParams.payment_method_types[]
andPaymentLinkUpdateParams.payment_method_types[]
- Add support for new value
billing.meter_error_report.triggered
on enumsWebhookEndpointCreateParams.enabled_events[]
andWebhookEndpointUpdateParams.enabled_events[]
- Add support for
- #1861 RawRequest will be on StripeClient only
- Remove the deprecated method
Stripe.rawRequest()
andStripe.deserialize()
in favor ofStripeClient.rawRequest()
andStripeClient.deserialize()
- Remove the deprecated method
- #1857 Merge from master after the changes to not pass api_mode from individual methods
- #1853 Update generated code for beta
- Add support for new resource
Terminal.ReaderCollectedData
- Add support for
retrieve
method on resourceReaderCollectedData
- Add support for new value
mb_way
on enumcheckout.SessionCreateParams.payment_method_types[]
- Add support for
business_name
,email
,phone
, andtax_ids
onCheckout.Session.collected_information
- Add support for
regulatory_reporting_file
onIssuing.CreditUnderwritingRecord
,issuing.CreditUnderwritingRecordCorrectParams
,issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams
, andissuing.CreditUnderwritingRecordReportDecisionParams
- Remove support for
rechnung
onPaymentMethodUpdateParams
- Add support for new resource
v26.10.0
- #1850 Update generated code
- Add support for
subscription_item
andsubscription
onbilling.AlertCreateParams.filter
- Change
terminal.ReaderProcessSetupIntentParams.customer_consent_collected
to be optional
- Add support for