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 @@
2ceb45f50a72455c534a54d634b015602dc55f2d
93d0a48b31134b22bad25602ec6ed370c219ebfb
57 changes: 57 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 @@ -422,6 +429,7 @@
import com.stripe.events.V2ReportingReportRunUpdatedEventNotification;
import com.stripe.events.V2SignalsAccountSignalFraudulentMerchantReadyEventNotification;
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 +2834,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 +2852,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 +2870,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 @@ -3065,6 +3116,12 @@ public StripeEventNotificationHandler onV2SignalsAccountSignalMerchantDelinquenc
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);
}
}
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 V2MoneyManagementReceivedDebitMandateCreatedEventNotification
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 V2MoneyManagementReceivedDebitMandateCreatedEvent fetchEvent() throws StripeException {
return (V2MoneyManagementReceivedDebitMandateCreatedEvent) 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 V2MoneyManagementReceivedDebitMandateExpiredEvent 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 V2MoneyManagementReceivedDebitMandateExpiredEventNotification
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 V2MoneyManagementReceivedDebitMandateExpiredEvent fetchEvent() throws StripeException {
return (V2MoneyManagementReceivedDebitMandateExpiredEvent) 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 V2MoneyManagementReceivedDebitMandatePendingCancellationEvent 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,29 @@
// 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 V2MoneyManagementReceivedDebitMandatePendingCancellationEventNotification
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 V2MoneyManagementReceivedDebitMandatePendingCancellationEvent fetchEvent()
throws StripeException {
return (V2MoneyManagementReceivedDebitMandatePendingCancellationEvent) 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 V2MoneyManagementReceivedDebitMandateUpdatedEvent 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