Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,48 @@
# Changelog

## 33.2.0 - 2026-07-29
This release changes the pinned API version to 2026-07-29.dahlia.

* [#2257](https://github.com/stripe/stripe-java/pull/2257) Update generated code
* Add support for new resource `financialconnections.Authorization`
* Add support for `unreject` method on resource `Account`
* Add support for `list` method on resource `PaymentRecord`
* Add support for `smartDisputesManagement` on `AccountSession.components.disputes_list.features`, `AccountSession.components.payment_details.features`, `AccountSession.components.payment_disputes.features`, `AccountSession.components.payments.features`, `AccountSessionCreateParams.components.disputes_list.features`, `AccountSessionCreateParams.components.payment_details.features`, `AccountSessionCreateParams.components.payment_disputes.features`, and `AccountSessionCreateParams.components.payments.features`
* Add support for `administrativeAddress` and `principalPlaceOfBusiness` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
* Add support for `sepaDebitPayments` on `AccountUpdateParams.settings`
* Remove support for `proofOfRegistration` on `AccountCreateParams.documents`. This field was limited-use and is being deprecated.
* Add support for `payoutsAction` on `AccountRejectParams`
* Remove support for `dynamicTaxRates` on `checkout.SessionCreateParams.line_items[]`. This field was limited-use and is being deprecated.
* Add support for `setupFutureUsage` on `PaymentIntent.payment_method_options.payco`, `PaymentIntent.payment_method_options.samsung_pay`, `PaymentIntentConfirmParams.payment_method_options.payco`, `PaymentIntentConfirmParams.payment_method_options.samsung_pay`, `PaymentIntentCreateParams.payment_method_options.payco`, `PaymentIntentCreateParams.payment_method_options.samsung_pay`, `PaymentIntentUpdateParams.payment_method_options.payco`, `PaymentIntentUpdateParams.payment_method_options.samsung_pay`, `PaymentLinkUpdateParams.payment_intent_data`, `checkout.Session.payment_method_options.payco`, `checkout.Session.payment_method_options.samsung_pay`, `checkout.SessionCreateParams.payment_method_options.payco`, and `checkout.SessionCreateParams.payment_method_options.samsung_pay`
* Add support for new values `bnp_paribas`, `citibank`, and `mbsb_bank` on enums `ConfirmationTokenCreateParams.payment_method_data.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, `SetupIntentConfirmParams.payment_method_data.fpx.bank`, `SetupIntentCreateParams.payment_method_data.fpx.bank`, and `SetupIntentUpdateParams.payment_method_data.fpx.bank`
* Add support for new value `ic_nif` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type`
* Add support for `network` on `Dispute.payment_method_details.card`
* Add support for `limits` and `manualEntry` on `financialconnections.SessionCreateParams` and `financialconnections.Session`
* Add support for `requirePaymentMethodSupport` on `financialconnections.Session.filters` and `financialconnections.SessionCreateParams.filters`
* Add support for `bankAccountToken` on `financialconnections.Session`
* Add support for new values `alipay` and `mb_way` on enums `InvoiceCreateParams.payment_settings.paymentMethodTypes`, `InvoiceUpdateParams.payment_settings.paymentMethodTypes`, `SubscriptionCreateParams.payment_settings.paymentMethodTypes`, and `SubscriptionUpdateParams.payment_settings.paymentMethodTypes`
* Add support for new values `mass_transit_parking_tax` and `parking_tax` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.taxType`, `InvoiceLineItemUpdateParams.tax_amounts[].tax_rate_data.taxType`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.taxType`, `TaxRateCreateParams.taxType`, and `TaxRateUpdateParams.taxType`
* Add support for `metadata` on `InvoiceCreatePreviewParams.subscription_details`
* Add support for `businessName` on `issuing.Card.shipping`, `issuing.CardCreateParams.shipping`, and `issuing.CardUpdateParams.shipping`
* Add support for `allowedPaymentMethodTypes` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `PaymentIntent`, `SetupIntentConfirmParams`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntent`
* Add support for `referrer` on `PaymentIntentConfirmParams.radar_options` and `PaymentIntentCreateParams.radar_options`
* Add support for `consentCollection` and `shippingOptions` on `PaymentLinkUpdateParams`
* Add support for `customFields`, `description`, and `footer` on `Quote.invoice_settings`, `QuoteCreateParams.invoice_settings`, `QuoteUpdateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, and `SubscriptionScheduleUpdateParams.phases[].invoice_settings`
* Add support for `customerAccount` and `customer` on `Refund`
* Add support for `paymentMethod` on `Refund` and `Topup`
* Add support for `trial` on `SubscriptionSchedule.phases[]`
* Add support for `massTransitParkingTax` and `parkingTax` on `tax.Registration.country_options.us` and `tax.RegistrationCreateParams.country_options.us`
* Add support for new values `mass_transit_parking_tax` and `parking_tax` on enum `tax.RegistrationCreateParams.country_options.us.type`
* Add support for `initiatedBy` and `paymentMethodOptions` on `Topup`
* Add support for new values `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, `financial_connections.account.upcoming_deactivation`, `financial_connections.authorization.expected_deactivation_date_updated`, and `financial_connections.authorization.upcoming_deactivation` on enums `WebhookEndpointCreateParams.enabledEvents` and `WebhookEndpointUpdateParams.enabledEvents`
* Add support for new value `2026-07-29.dahlia` on enum `WebhookEndpointCreateParams.apiVersion`
* Add support for `additionalAddresses` on `v2.core.Account.identity.business_details`, `v2.core.AccountCreateParams.identity.business_details`, `v2.core.AccountTokenCreateParams.identity.business_details`, and `v2.core.AccountUpdateParams.identity.business_details`
* Add support for snapshot events `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, and `financial_connections.account.upcoming_deactivation` with resource `financialconnections.Account`
* Add support for snapshot events `financial_connections.authorization.expected_deactivation_date_updated` and `financial_connections.authorization.upcoming_deactivation` with resource `financialconnections.Authorization`

## 33.2.0-alpha.6 - 2026-07-22
* [#2254](https://github.com/stripe/stripe-java/pull/2254) Remove unnecessary logging from EventDataObjectDeserializer.java
* Deserializing an event webhook will no longer print `Stripe API version:...` to stdout.
* Deserializing an event webhook will no longer print `Stripe API version:...` to stdout.

## 33.2.0-alpha.5 - 2026-07-22
* [#2253](https://github.com/stripe/stripe-java/pull/2253) Update generated code for private-preview
Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2ceb45f50a72455c534a54d634b015602dc55f2d
6fc967cafa78afc6c6adb86802a26217fa770522
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2345
v2350
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/ApiVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2026-07-08.preview";
public static final String CURRENT = "2026-07-29.preview";
}
71 changes: 71 additions & 0 deletions src/main/java/com/stripe/StripeEventNotificationHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,15 @@
import com.stripe.events.V2MoneyManagementReceivedCreditReturnedEventNotification;
import com.stripe.events.V2MoneyManagementReceivedCreditSucceededEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitCanceledEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitCreatedEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitFailedEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitMandateCanceledEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitMandateCreatedEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitMandateExpiredEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitMandatePendingCancellationEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitMandateUpdatedEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitPendingEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitScheduledEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitSucceededEventNotification;
import com.stripe.events.V2MoneyManagementReceivedDebitUpdatedEventNotification;
import com.stripe.events.V2MoneyManagementRecipientVerificationCreatedEventNotification;
Expand Down Expand Up @@ -420,8 +427,11 @@
import com.stripe.events.V2ReportingReportRunFailedEventNotification;
import com.stripe.events.V2ReportingReportRunSucceededEventNotification;
import com.stripe.events.V2ReportingReportRunUpdatedEventNotification;
import com.stripe.events.V2SignalsAccountEvaluationCompleteEventNotification;
import com.stripe.events.V2SignalsAccountSignalFraudulentMerchantReadyEventNotification;
import com.stripe.events.V2SignalsAccountSignalFraudulentWebsiteReadyEventNotification;
import com.stripe.events.V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification;
import com.stripe.events.V2SignalsAccountSignalPaymentDelinquencyExposureReadyEventNotification;
import com.stripe.exception.SignatureVerificationException;
import com.stripe.model.v2.core.EventNotification;
import java.util.ArrayList;
Expand Down Expand Up @@ -2826,6 +2836,12 @@ public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitCanceled(
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitCreated(
Callback<V2MoneyManagementReceivedDebitCreatedEventNotification> callback) {
this.register("v2.money_management.received_debit.created", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitFailed(
Callback<V2MoneyManagementReceivedDebitFailedEventNotification> callback) {
this.register("v2.money_management.received_debit.failed", callback);
Expand All @@ -2838,6 +2854,12 @@ public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitPending(
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitScheduled(
Callback<V2MoneyManagementReceivedDebitScheduledEventNotification> callback) {
this.register("v2.money_management.received_debit.scheduled", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitSucceeded(
Callback<V2MoneyManagementReceivedDebitSucceededEventNotification> callback) {
this.register("v2.money_management.received_debit.succeeded", callback);
Expand All @@ -2850,6 +2872,37 @@ public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitUpdated(
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitMandateCanceled(
Callback<V2MoneyManagementReceivedDebitMandateCanceledEventNotification> callback) {
this.register("v2.money_management.received_debit_mandate.canceled", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitMandateCreated(
Callback<V2MoneyManagementReceivedDebitMandateCreatedEventNotification> callback) {
this.register("v2.money_management.received_debit_mandate.created", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitMandateExpired(
Callback<V2MoneyManagementReceivedDebitMandateExpiredEventNotification> callback) {
this.register("v2.money_management.received_debit_mandate.expired", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitMandatePendingCancellation(
Callback<V2MoneyManagementReceivedDebitMandatePendingCancellationEventNotification>
callback) {
this.register("v2.money_management.received_debit_mandate.pending_cancellation", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementReceivedDebitMandateUpdated(
Callback<V2MoneyManagementReceivedDebitMandateUpdatedEventNotification> callback) {
this.register("v2.money_management.received_debit_mandate.updated", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementRecipientVerificationCreated(
Callback<V2MoneyManagementRecipientVerificationCreatedEventNotification> callback) {
this.register("v2.money_management.recipient_verification.created", callback);
Expand Down Expand Up @@ -3054,17 +3107,35 @@ public StripeEventNotificationHandler onV2ReportingReportRunUpdated(
return this;
}

public StripeEventNotificationHandler onV2SignalsAccountEvaluationComplete(
Callback<V2SignalsAccountEvaluationCompleteEventNotification> callback) {
this.register("v2.signals.account_evaluation.complete", callback);
return this;
}

public StripeEventNotificationHandler onV2SignalsAccountSignalFraudulentMerchantReady(
Callback<V2SignalsAccountSignalFraudulentMerchantReadyEventNotification> callback) {
this.register("v2.signals.account_signal.fraudulent_merchant_ready", callback);
return this;
}

public StripeEventNotificationHandler onV2SignalsAccountSignalFraudulentWebsiteReady(
Callback<V2SignalsAccountSignalFraudulentWebsiteReadyEventNotification> callback) {
this.register("v2.signals.account_signal.fraudulent_website_ready", callback);
return this;
}

public StripeEventNotificationHandler onV2SignalsAccountSignalMerchantDelinquencyReady(
Callback<V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification> callback) {
this.register("v2.signals.account_signal.merchant_delinquency_ready", callback);
return this;
}

public StripeEventNotificationHandler onV2SignalsAccountSignalPaymentDelinquencyExposureReady(
Callback<V2SignalsAccountSignalPaymentDelinquencyExposureReadyEventNotification> callback) {
this.register("v2.signals.account_signal.payment_delinquency_exposure_ready", callback);
return this;
}
// notification-handler-methods: The end of the section generated from our OpenAPI spec

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.moneymanagement.ReceivedDebit;
import lombok.Getter;

@Getter
public final class V2MoneyManagementReceivedDebitCreatedEvent extends Event {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public ReceivedDebit fetchRelatedObject() throws StripeException {
return (ReceivedDebit) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import com.stripe.model.v2.moneymanagement.ReceivedDebit;
import lombok.Getter;

@Getter
public final class V2MoneyManagementReceivedDebitCreatedEventNotification
extends EventNotification {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public ReceivedDebit fetchRelatedObject() throws StripeException {
return (ReceivedDebit) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2MoneyManagementReceivedDebitCreatedEvent fetchEvent() throws StripeException {
return (V2MoneyManagementReceivedDebitCreatedEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.moneymanagement.ReceivedDebitMandate;
import lombok.Getter;

@Getter
public final class V2MoneyManagementReceivedDebitMandateCanceledEvent extends Event {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public ReceivedDebitMandate fetchRelatedObject() throws StripeException {
return (ReceivedDebitMandate) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import com.stripe.model.v2.moneymanagement.ReceivedDebitMandate;
import lombok.Getter;

@Getter
public final class V2MoneyManagementReceivedDebitMandateCanceledEventNotification
extends EventNotification {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public ReceivedDebitMandate fetchRelatedObject() throws StripeException {
return (ReceivedDebitMandate) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2MoneyManagementReceivedDebitMandateCanceledEvent fetchEvent() throws StripeException {
return (V2MoneyManagementReceivedDebitMandateCanceledEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.moneymanagement.ReceivedDebitMandate;
import lombok.Getter;

@Getter
public final class V2MoneyManagementReceivedDebitMandateCreatedEvent extends Event {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public ReceivedDebitMandate fetchRelatedObject() throws StripeException {
return (ReceivedDebitMandate) super.fetchRelatedObject(this.relatedObject);
}
}
Loading
Loading