Skip to content

Releases: stripe/stripe-java

v27.2.0-beta.2

08 Oct 19:22
Compare
Choose a tag to compare
v27.2.0-beta.2 Pre-release
Pre-release
  • #1872 Update generated code for beta
    • Add support for submit_card test helper method on resource Issuing.Card
    • Add support for groups on AccountCreateParams, AccountUpdateParams, and Account
    • Add support for disable_stripe_user_authentication on AccountSession.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, and AccountSessionCreateParams.components.payouts.features
    • Add support for card_spend_dispute_management and spend_control_management on AccountSessionCreateParams.components.issuing_cards_list.features
    • Add support for kakao_pay and kr_card on Charge.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, and SetupIntentUpdateParams.payment_method_data
    • Add support for naver_pay on Charge.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, and SetupIntentUpdateParams.payment_method_data
    • Add support for payco and samsung_pay on Charge.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, and SetupIntentUpdateParams.payment_method_data
    • Add support for new values kakao_pay, kr_card, naver_pay, payco, and samsung_pay on enums CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, PaymentMethodListParams.type, and checkout.SessionCreateParams.payment_method_types[]
    • Add support for new values kakao_pay, kr_card, naver_pay, payco, and samsung_pay on enums ConfirmationTokenCreateParams.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, and SetupIntentUpdateParams.payment_method_data.type
    • Add support for new values by_tin, ma_vat, md_vat, tz_vat, uz_tin, and uz_vat on enums CustomerCreateParams.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, and tax.CalculationCreateParams.customer_details.tax_ids[].type
    • Add support for metadata on Forwarding.Request
    • Add support for new value retail_delivery_fee on enums InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type, InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type, TaxRateCreateParams.tax_type, and TaxRateUpdateParams.tax_type
    • Add support for new value expired on enum issuing.AuthorizationListParams.status
    • Add support for line_items on Order.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, and PaymentIntentUpdateParams.payment_method_options.paypal
    • Add support for flat_amount and rate_type on Tax.Calculation.tax_breakdown[].tax_rate_details and TaxRate
    • Add support for by, cr, ec, ma, md, rs, ru, tz, and uz on Tax.Registration.country_options and tax.RegistrationCreateParams.country_options
    • Add support for new value state_retail_delivery_fee on enum tax.RegistrationCreateParams.country_options.us.type
    • Add support for new value refund.failed on enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]

See the changelog for more details.

v27.2.0-beta.1

04 Oct 00:06
Compare
Choose a tag to compare
v27.2.0-beta.1 Pre-release
Pre-release
  • #1888 Update generated code
    • Add support for reporting_chart on AccountSessionCreateParams.components
    • Remove support for from_schedule on Quote.subscription_data
    • Add support for allow_redisplay on terminal.ReaderCollectPaymentMethodParams.collect_config

See the changelog for more details.

v27.1.0

03 Oct 22:49
Compare
Choose a tag to compare
  • #1890 Update the class for ThinEvent to include livemode and reason
  • #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

See the changelog for more details.

v27.0.0

01 Oct 18:31
Compare
Choose a tag to compare
  • #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 to usage_threshold on Billing.Alert and billing.AlertCreateParams
    • Remove support for filter on Billing.Alert and billing.AlertCreateParams. Use the filters on the usage_threshold instead
    • Remove support for customer_consent_collected on terminal.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
    • Add method parseThinEvent() on the StripeClient class to parse thin events. Rename constructEvent() method on the same class to parseSnapshotEvent() 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 on ApiResource 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 called Authenticator 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 static StripeRequest.create()
      • The unused field partnerId on class Stripe is removed

    Additions

    • Add support for usage_threshold on Billing.Alert and billing.AlertCreateParams
    • Add support for custom_unit_amount on ProductCreateParams.default_price_data
    • Add support for allow_redisplay on terminal.ReaderProcessPaymentIntentParams.process_config and terminal.ReaderProcessSetupIntentParams
    • Add support for new value 2024-09-30.acacia on enum WebhookEndpointCreateParams.api_version
    • Add support for new Usage Billing APIs Billing.MeterEvent, Billing.MeterEventAdjustments, Billing.MeterEventSession, Billing.MeterEventStream and the new Events API Core.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 and billingportal.ConfigurationCreateParams.features.subscription_update.products to be optional

See the changelog for more details.

v26.13.0

01 Oct 18:29
Compare
Choose a tag to compare
  • #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 to usage_threshold on Billing.Alert and billing.AlertCreateParams
    • Remove support for filter on Billing.Alert and billing.AlertCreateParams. Use the filters on the usage_threshold instead
    • Remove support for customer_consent_collected on terminal.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
    • Add method parseThinEvent() on the StripeClient class to parse thin events. Rename constructEvent() method on the same class to parseSnapshotEvent() 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 on ApiResource 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 called Authenticator 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 static StripeRequest.create()
      • The unused field partnerId on class Stripe is removed

    Additions

    • Add support for usage_threshold on Billing.Alert and billing.AlertCreateParams
    • Add support for custom_unit_amount on ProductCreateParams.default_price_data
    • Add support for allow_redisplay on terminal.ReaderProcessPaymentIntentParams.process_config and terminal.ReaderProcessSetupIntentParams
    • Add support for new value 2024-09-30.acacia on enum WebhookEndpointCreateParams.api_version
    • Add support for new Usage Billing APIs Billing.MeterEvent, Billing.MeterEventAdjustments, Billing.MeterEventSession, Billing.MeterEventStream and the new Events API Core.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 and billingportal.ConfigurationCreateParams.features.subscription_update.products to be optional

See the changelog for more details.

v26.13.0-beta.1

18 Sep 21:47
Compare
Choose a tag to compare
v26.13.0-beta.1 Pre-release
Pre-release
  • #1870 Update generated code for beta
    • Remove support for resource QuotePhase
    • Remove support for list_line_items and retrieve methods on resource QuotePhase
    • Add support for send_money and transfer_balance on AccountSessionCreateParams.components.financial_account.features
    • Add support for new value rechnung on enums PaymentLinkCreateParams.payment_method_types[] and PaymentLinkUpdateParams.payment_method_types[]

See the changelog for more details.

v26.12.0

18 Sep 18:39
Compare
Choose a tag to compare
  • #1866 Update generated code
    • Add support for payer_details on Charge.payment_method_details.klarna
    • Add support for amazon_pay on Dispute.payment_method_details
    • Add support for automatically_finalizes_at on Invoice
    • Add support for state_sales_tax on Tax.Registration.country_options.us and tax.RegistrationCreateParams.country_options.us

See the changelog for more details.

v26.12.0-beta.1

13 Sep 17:55
Compare
Choose a tag to compare
v26.12.0-beta.1 Pre-release
Pre-release
  • #1862 Update generated code for beta
    • Add support for new resources Issuing.DisputeSettlementDetail and Issuing.Settlement
    • Add support for list and retrieve methods on resource DisputeSettlementDetail
    • Remove support for list method on resource QuotePhase
    • Add support for new value rechnung on enum checkout.SessionCreateParams.payment_method_types[]
    • Add support for settlement on Issuing.Transaction and issuing.TransactionListParams
    • Add support for new values issuing_dispute_settlement_detail.created, issuing_dispute_settlement_detail.updated, issuing_settlement.created, and issuing_settlement.updated on enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]

See the changelog for more details.

v26.11.0

12 Sep 22:06
Compare
Choose a tag to compare
  • #1864 Update generated code
    • Add support for new resource InvoiceRenderingTemplate
    • Add support for archive, list, retrieve, and unarchive methods on resource InvoiceRenderingTemplate
    • Add support for required on Checkout.Session.tax_id_collection, PaymentLink.tax_id_collection, PaymentLinkCreateParams.tax_id_collection, PaymentLinkUpdateParams.tax_id_collection, and checkout.SessionCreateParams.tax_id_collection
    • Add support for template on Customer.invoice_settings.rendering_options, CustomerCreateParams.invoice_settings.rendering_options, CustomerUpdateParams.invoice_settings.rendering_options, Invoice.rendering, InvoiceCreateParams.rendering, and InvoiceUpdateParams.rendering
    • Add support for template_version on Invoice.rendering, InvoiceCreateParams.rendering, and InvoiceUpdateParams.rendering

See the changelog for more details.

v26.11.0-beta.1

05 Sep 21:05
Compare
Choose a tag to compare
v26.11.0-beta.1 Pre-release
Pre-release
  • #1859 Update generated code for beta
    • Add support for recipients on AccountSessionCreateParams.components
    • Add support for new value mb_way on enums PaymentLinkCreateParams.payment_method_types[] and PaymentLinkUpdateParams.payment_method_types[]
    • Add support for new value billing.meter_error_report.triggered on enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]
  • #1861 RawRequest will be on StripeClient only
    • Remove the deprecated method Stripe.rawRequest() and Stripe.deserialize() in favor of StripeClient.rawRequest() and StripeClient.deserialize()
  • #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 resource ReaderCollectedData
    • Add support for new value mb_way on enum checkout.SessionCreateParams.payment_method_types[]
    • Add support for business_name, email, phone, and tax_ids on Checkout.Session.collected_information
    • Add support for regulatory_reporting_file on Issuing.CreditUnderwritingRecord, issuing.CreditUnderwritingRecordCorrectParams, issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams, and issuing.CreditUnderwritingRecordReportDecisionParams
    • Remove support for rechnung on PaymentMethodUpdateParams

See the changelog for more details.