Skip to content
Open
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
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
161b2a6978a9cd8c0c376d83ae012fd5a7da2fe1
f239adb51212b8dd4e5202b448d71ca4955fe9f9
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2315
v2323
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-06-10.preview";
public static final String CURRENT = "2026-06-24.preview";
}
64 changes: 50 additions & 14 deletions src/main/java/com/stripe/StripeEventNotificationHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@
import com.stripe.events.V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingDefaultsUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification;
import com.stripe.events.V2CoreAccountIncludingIdentityUpdatedEventNotification;
Expand Down Expand Up @@ -341,6 +341,9 @@
import com.stripe.events.V2IamStripeAccessGrantRequestedEventNotification;
import com.stripe.events.V2IamStripeAccessGrantUpdatedEventNotification;
import com.stripe.events.V2MoneyManagementAdjustmentCreatedEventNotification;
import com.stripe.events.V2MoneyManagementDebitDisputeFailedEventNotification;
import com.stripe.events.V2MoneyManagementDebitDisputeSubmittedEventNotification;
import com.stripe.events.V2MoneyManagementDebitDisputeSucceededEventNotification;
import com.stripe.events.V2MoneyManagementFinancialAccountCreatedEventNotification;
import com.stripe.events.V2MoneyManagementFinancialAccountStatementCreatedEventNotification;
import com.stripe.events.V2MoneyManagementFinancialAccountStatementRestatedEventNotification;
Expand All @@ -358,12 +361,14 @@
import com.stripe.events.V2MoneyManagementOutboundPaymentFailedEventNotification;
import com.stripe.events.V2MoneyManagementOutboundPaymentPostedEventNotification;
import com.stripe.events.V2MoneyManagementOutboundPaymentReturnedEventNotification;
import com.stripe.events.V2MoneyManagementOutboundPaymentUnderReviewEventNotification;
import com.stripe.events.V2MoneyManagementOutboundPaymentUpdatedEventNotification;
import com.stripe.events.V2MoneyManagementOutboundTransferCanceledEventNotification;
import com.stripe.events.V2MoneyManagementOutboundTransferCreatedEventNotification;
import com.stripe.events.V2MoneyManagementOutboundTransferFailedEventNotification;
import com.stripe.events.V2MoneyManagementOutboundTransferPostedEventNotification;
import com.stripe.events.V2MoneyManagementOutboundTransferReturnedEventNotification;
import com.stripe.events.V2MoneyManagementOutboundTransferUnderReviewEventNotification;
import com.stripe.events.V2MoneyManagementOutboundTransferUpdatedEventNotification;
import com.stripe.events.V2MoneyManagementPayoutMethodCreatedEventNotification;
import com.stripe.events.V2MoneyManagementPayoutMethodUpdatedEventNotification;
Expand Down Expand Up @@ -2066,32 +2071,33 @@ public StripeEventNotificationHandler onV2CoreAccountIncludingConfigurationMerch
}

public StripeEventNotificationHandler
onV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated(
onV2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdated(
Callback<
V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification>
V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification>
callback) {
this.register("v2.core.account[configuration.recipient].capability_status_updated", callback);
this.register(
"v2.core.account[configuration.money_manager].capability_status_updated", callback);
return this;
}

public StripeEventNotificationHandler onV2CoreAccountIncludingConfigurationRecipientUpdated(
Callback<V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification> callback) {
this.register("v2.core.account[configuration.recipient].updated", callback);
public StripeEventNotificationHandler onV2CoreAccountIncludingConfigurationMoneyManagerUpdated(
Callback<V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification> callback) {
this.register("v2.core.account[configuration.money_manager].updated", callback);
return this;
}

public StripeEventNotificationHandler
onV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdated(
onV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated(
Callback<
V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification>
V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification>
callback) {
this.register("v2.core.account[configuration.storer].capability_status_updated", callback);
this.register("v2.core.account[configuration.recipient].capability_status_updated", callback);
return this;
}

public StripeEventNotificationHandler onV2CoreAccountIncludingConfigurationStorerUpdated(
Callback<V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification> callback) {
this.register("v2.core.account[configuration.storer].updated", callback);
public StripeEventNotificationHandler onV2CoreAccountIncludingConfigurationRecipientUpdated(
Callback<V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification> callback) {
this.register("v2.core.account[configuration.recipient].updated", callback);
return this;
}

Expand Down Expand Up @@ -2569,6 +2575,24 @@ public StripeEventNotificationHandler onV2MoneyManagementAdjustmentCreated(
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementDebitDisputeFailed(
Callback<V2MoneyManagementDebitDisputeFailedEventNotification> callback) {
this.register("v2.money_management.debit_dispute.failed", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementDebitDisputeSubmitted(
Callback<V2MoneyManagementDebitDisputeSubmittedEventNotification> callback) {
this.register("v2.money_management.debit_dispute.submitted", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementDebitDisputeSucceeded(
Callback<V2MoneyManagementDebitDisputeSucceededEventNotification> callback) {
this.register("v2.money_management.debit_dispute.succeeded", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementFinancialAccountCreated(
Callback<V2MoneyManagementFinancialAccountCreatedEventNotification> callback) {
this.register("v2.money_management.financial_account.created", callback);
Expand Down Expand Up @@ -2671,6 +2695,12 @@ public StripeEventNotificationHandler onV2MoneyManagementOutboundPaymentReturned
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementOutboundPaymentUnderReview(
Callback<V2MoneyManagementOutboundPaymentUnderReviewEventNotification> callback) {
this.register("v2.money_management.outbound_payment.under_review", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementOutboundPaymentUpdated(
Callback<V2MoneyManagementOutboundPaymentUpdatedEventNotification> callback) {
this.register("v2.money_management.outbound_payment.updated", callback);
Expand Down Expand Up @@ -2707,6 +2737,12 @@ public StripeEventNotificationHandler onV2MoneyManagementOutboundTransferReturne
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementOutboundTransferUnderReview(
Callback<V2MoneyManagementOutboundTransferUnderReviewEventNotification> callback) {
this.register("v2.money_management.outbound_transfer.under_review", callback);
return this;
}

public StripeEventNotificationHandler onV2MoneyManagementOutboundTransferUpdated(
Callback<V2MoneyManagementOutboundTransferUpdatedEventNotification> callback) {
this.register("v2.money_management.outbound_transfer.updated", callback);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public static final class EventData {
* oxxo_payments}, {@code p24_payments}, {@code payco_payments}, {@code paynow_payments}, {@code
* stripe_balance.payouts}, {@code pay_by_bank_payments}, {@code promptpay_payments}, {@code
* revolut_pay_payments}, {@code samsung_pay_payments}, {@code sepa_bank_transfer_payments},
* {@code sepa_debit_payments}, {@code swish_payments}, {@code twint_payments}, {@code
* us_bank_transfer_payments}, or {@code zip_payments}.
* {@code sepa_debit_payments}, {@code sunbit_payments}, {@code swish_payments}, {@code
* twint_payments}, {@code us_bank_transfer_payments}, or {@code zip_payments}.
*/
@SerializedName("updated_capability")
String updatedCapability;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,31 @@
import lombok.Setter;

@Getter
public final class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent
public final class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent
extends Event {
/** Data for the v2.core.account[configuration.storer].capability_status_updated event. */
/** Data for the v2.core.account[configuration.money_manager].capability_status_updated event. */
@SerializedName("data")
V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.EventData data;
V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.EventData data;

@Getter
@Setter
public static final class EventData {
/**
* Open Enum. The capability which had its status updated.
*
* <p>One of {@code consumer.holds_currencies.usd}, {@code financial_addressses.bank_accounts},
* {@code financial_addressses.crypto_wallets}, {@code holds_currencies.eur}, {@code
* holds_currencies.gbp}, {@code holds_currencies.usd}, {@code holds_currencies.usdc}, {@code
* <p>One of {@code business_storage.inbound.cad}, {@code business_storage.inbound.eur}, {@code
* business_storage.inbound.gbp}, {@code business_storage.inbound.usd}, {@code
* business_storage.inbound.usdc}, {@code business_storage.outbound.cad}, {@code
* business_storage.outbound.eur}, {@code business_storage.outbound.gbp}, {@code
* business_storage.outbound.usd}, {@code business_storage.outbound.usdc}, {@code
* consumer_storage.inbound.usd}, {@code consumer_storage.inbound.usdc}, {@code
* consumer_storage.outbound.usd}, {@code consumer_storage.outbound.usdc}, {@code
* inbound_transfers.bank_accounts}, {@code outbound_payments.bank_accounts}, {@code
* outbound_payments.cards}, {@code outbound_payments.crypto_wallets}, {@code
* outbound_payments.financial_accounts}, {@code outbound_payments.paper_checks}, {@code
* outbound_transfers.bank_accounts}, {@code outbound_transfers.crypto_wallets}, or {@code
* outbound_transfers.financial_accounts}.
* outbound_transfers.bank_accounts}, {@code outbound_transfers.crypto_wallets}, {@code
* outbound_transfers.financial_accounts}, {@code received_credits.bank_accounts}, {@code
* received_credits.crypto_wallets}, or {@code received_debits.bank_accounts}.
*/
@SerializedName("updated_capability")
String updatedCapability;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import lombok.Getter;

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

Expand All @@ -22,9 +23,9 @@ public Account fetchRelatedObject() throws StripeException {
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent fetchEvent()
public V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent fetchEvent()
throws StripeException {
return (V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent)
return (V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent)
super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import lombok.Getter;

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

/** Object containing the reference to API resource relevant to the event. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import lombok.Getter;

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

Expand All @@ -22,7 +22,8 @@ public Account fetchRelatedObject() throws StripeException {
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2CoreAccountIncludingConfigurationStorerUpdatedEvent fetchEvent() throws StripeException {
return (V2CoreAccountIncludingConfigurationStorerUpdatedEvent) super.fetchEvent();
public V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent fetchEvent()
throws StripeException {
return (V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ public static final class EventData {
/**
* Open Enum. The capability which had its status updated.
*
* <p>One of {@code bank_accounts.instant}, {@code bank_accounts.local}, {@code
* bank_accounts.wire}, {@code cards}, {@code crypto_wallets_v2}, {@code paper_checks}, {@code
* stripe_balance.payouts}, {@code stripe_balance.stripe_transfers}, or {@code
* <p>One of {@code bank_accounts.ach}, {@code bank_accounts.becs}, {@code bank_accounts.eft},
* {@code bank_accounts.fedwire}, {@code bank_accounts.fps}, {@code bank_accounts.instant},
* {@code bank_accounts.local}, {@code bank_accounts.npp}, {@code bank_accounts.rtp}, {@code
* bank_accounts.sepa_credit}, {@code bank_accounts.sepa_instant}, {@code bank_accounts.swift},
* {@code bank_accounts.wire}, {@code cards}, {@code crypto_wallets_v2}, {@code paper_checks},
* {@code stripe_balance.payouts}, {@code stripe_balance.stripe_transfers}, or {@code
* stripe.transfers}.
*/
@SerializedName("updated_capability")
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.DebitDispute;
import lombok.Getter;

@Getter
public final class V2MoneyManagementDebitDisputeFailedEvent 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 DebitDispute fetchRelatedObject() throws StripeException {
return (DebitDispute) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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.DebitDispute;
import lombok.Getter;

@Getter
public final class V2MoneyManagementDebitDisputeFailedEventNotification 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 DebitDispute fetchRelatedObject() throws StripeException {
return (DebitDispute) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2MoneyManagementDebitDisputeFailedEvent fetchEvent() throws StripeException {
return (V2MoneyManagementDebitDisputeFailedEvent) 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.DebitDispute;
import lombok.Getter;

@Getter
public final class V2MoneyManagementDebitDisputeSubmittedEvent 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 DebitDispute fetchRelatedObject() throws StripeException {
return (DebitDispute) 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.DebitDispute;
import lombok.Getter;

@Getter
public final class V2MoneyManagementDebitDisputeSubmittedEventNotification
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 DebitDispute fetchRelatedObject() throws StripeException {
return (DebitDispute) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2MoneyManagementDebitDisputeSubmittedEvent fetchEvent() throws StripeException {
return (V2MoneyManagementDebitDisputeSubmittedEvent) 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.DebitDispute;
import lombok.Getter;

@Getter
public final class V2MoneyManagementDebitDisputeSucceededEvent 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 DebitDispute fetchRelatedObject() throws StripeException {
return (DebitDispute) super.fetchRelatedObject(this.relatedObject);
}
}
Loading
Loading