diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 93be1cef53b..81e38dd3bef 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -88aa59022b32620f4d66d6196e3b42d5a0f86bbb \ No newline at end of file +c250368ba89214c80bc8de3e4fc5d2094c5502cc \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 16739433ec7..ccb965af858 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2140 \ No newline at end of file +v2152 \ No newline at end of file diff --git a/src/main/java/com/stripe/events/V2CoreAccountClosedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountClosedEvent.java new file mode 100644 index 00000000000..05a2445690b --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountClosedEvent.java @@ -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.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CoreAccountClosedEvent 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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountClosedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountClosedEventNotification.java new file mode 100644 index 00000000000..d677d1b4539 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountClosedEventNotification.java @@ -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.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CoreAccountClosedEventNotification 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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreAccountClosedEvent fetchEvent() throws StripeException { + return (V2CoreAccountClosedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountCreatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountCreatedEvent.java new file mode 100644 index 00000000000..cbfdfc4f5d3 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountCreatedEvent.java @@ -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.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CoreAccountCreatedEvent 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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountCreatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountCreatedEventNotification.java new file mode 100644 index 00000000000..e0529a8b8cc --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountCreatedEventNotification.java @@ -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.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CoreAccountCreatedEventNotification 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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreAccountCreatedEvent fetchEvent() throws StripeException { + return (V2CoreAccountCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.java new file mode 100644 index 00000000000..e266dd315f6 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.java @@ -0,0 +1,40 @@ +// 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.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent + extends Event { + /** Data for the v2.core.account[configuration.customer].capability_status_updated event. */ + @SerializedName("data") + V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** + * Open Enum. The capability which had its status updated. + * + *
Equal to {@code automatic_indirect_tax}. + */ + @SerializedName("updated_capability") + String updatedCapability; + } + + @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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification.java new file mode 100644 index 00000000000..c203c68e6fe --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification.java @@ -0,0 +1,31 @@ +// 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.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final +class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification + 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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent fetchEvent() + throws StripeException { + return (V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent) + super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerUpdatedEvent.java new file mode 100644 index 00000000000..eaf8240c359 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerUpdatedEvent.java @@ -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.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CoreAccountIncludingConfigurationCustomerUpdatedEvent 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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification.java new file mode 100644 index 00000000000..4cf4b375336 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification.java @@ -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.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification + 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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreAccountIncludingConfigurationCustomerUpdatedEvent fetchEvent() + throws StripeException { + return (V2CoreAccountIncludingConfigurationCustomerUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.java new file mode 100644 index 00000000000..b9d23142347 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.java @@ -0,0 +1,54 @@ +// 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.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent + extends Event { + /** Data for the v2.core.account[configuration.merchant].capability_status_updated event. */ + @SerializedName("data") + V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** + * Open Enum. The capability which had its status updated. + * + *
One of {@code ach_debit_payments}, {@code acss_debit_payments}, {@code affirm_payments}, + * {@code afterpay_clearpay_payments}, {@code alma_payments}, {@code amazon_pay_payments}, + * {@code au_becs_debit_payments}, {@code bacs_debit_payments}, {@code bancontact_payments}, + * {@code blik_payments}, {@code boleto_payments}, {@code card_payments}, {@code + * cartes_bancaires_payments}, {@code cashapp_payments}, {@code eps_payments}, {@code + * fpx_payments}, {@code gb_bank_transfer_payments}, {@code grabpay_payments}, {@code + * ideal_payments}, {@code jcb_payments}, {@code jp_bank_transfer_payments}, {@code + * kakao_pay_payments}, {@code klarna_payments}, {@code konbini_payments}, {@code + * kr_card_payments}, {@code link_payments}, {@code mobilepay_payments}, {@code + * multibanco_payments}, {@code mx_bank_transfer_payments}, {@code naver_pay_payments}, {@code + * 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}. + */ + @SerializedName("updated_capability") + String updatedCapability; + } + + @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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification.java new file mode 100644 index 00000000000..a651119b0b6 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification.java @@ -0,0 +1,31 @@ +// 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.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final +class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification + 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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent fetchEvent() + throws StripeException { + return (V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent) + super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantUpdatedEvent.java new file mode 100644 index 00000000000..5d525b9faf3 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantUpdatedEvent.java @@ -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.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CoreAccountIncludingConfigurationMerchantUpdatedEvent 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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification.java new file mode 100644 index 00000000000..c531238467b --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification.java @@ -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.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification + 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 Account fetchRelatedObject() throws StripeException { + return (Account) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreAccountIncludingConfigurationMerchantUpdatedEvent fetchEvent() + throws StripeException { + return (V2CoreAccountIncludingConfigurationMerchantUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.java new file mode 100644 index 00000000000..fda9a61e76d --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.java @@ -0,0 +1,42 @@ +// 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.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent + extends Event { + /** Data for the v2.core.account[configuration.recipient].capability_status_updated event. */ + @SerializedName("data") + V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** + * Open Enum. The capability which had its status updated. + * + *
One of {@code bank_accounts.local}, {@code bank_accounts.wire}, {@code cards}, {@code
+ * stripe_balance.payouts}, {@code stripe_balance.stripe_transfers}, or {@code
+ * stripe.transfers}.
+ */
+ @SerializedName("updated_capability")
+ String updatedCapability;
+ }
+
+ @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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification.java
new file mode 100644
index 00000000000..11072827081
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification.java
@@ -0,0 +1,31 @@
+// 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.Account;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import lombok.Getter;
+
+@Getter
+public final
+class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification
+ 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent fetchEvent()
+ throws StripeException {
+ return (V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent)
+ super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientUpdatedEvent.java
new file mode 100644
index 00000000000..9215345d6f4
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientUpdatedEvent.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountIncludingConfigurationRecipientUpdatedEvent 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification.java
new file mode 100644
index 00000000000..bdc8b261a09
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification
+ 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountIncludingConfigurationRecipientUpdatedEvent fetchEvent()
+ throws StripeException {
+ return (V2CoreAccountIncludingConfigurationRecipientUpdatedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingDefaultsUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingDefaultsUpdatedEvent.java
new file mode 100644
index 00000000000..468bd1b4a8a
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingDefaultsUpdatedEvent.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountIncludingDefaultsUpdatedEvent 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingDefaultsUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingDefaultsUpdatedEventNotification.java
new file mode 100644
index 00000000000..d7e23077bfd
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingDefaultsUpdatedEventNotification.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountIncludingDefaultsUpdatedEventNotification
+ 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountIncludingDefaultsUpdatedEvent fetchEvent() throws StripeException {
+ return (V2CoreAccountIncludingDefaultsUpdatedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingFutureRequirementsUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingFutureRequirementsUpdatedEvent.java
new file mode 100644
index 00000000000..496147e2216
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingFutureRequirementsUpdatedEvent.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountIncludingFutureRequirementsUpdatedEvent 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification.java
new file mode 100644
index 00000000000..31c75530fa6
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification
+ 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountIncludingFutureRequirementsUpdatedEvent fetchEvent() throws StripeException {
+ return (V2CoreAccountIncludingFutureRequirementsUpdatedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingIdentityUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingIdentityUpdatedEvent.java
new file mode 100644
index 00000000000..0e39b973f3e
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingIdentityUpdatedEvent.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountIncludingIdentityUpdatedEvent 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingIdentityUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingIdentityUpdatedEventNotification.java
new file mode 100644
index 00000000000..fbadf63c66c
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingIdentityUpdatedEventNotification.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountIncludingIdentityUpdatedEventNotification
+ 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountIncludingIdentityUpdatedEvent fetchEvent() throws StripeException {
+ return (V2CoreAccountIncludingIdentityUpdatedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingRequirementsUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingRequirementsUpdatedEvent.java
new file mode 100644
index 00000000000..8772e2c6727
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingRequirementsUpdatedEvent.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountIncludingRequirementsUpdatedEvent 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingRequirementsUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingRequirementsUpdatedEventNotification.java
new file mode 100644
index 00000000000..5c0246387b5
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingRequirementsUpdatedEventNotification.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountIncludingRequirementsUpdatedEventNotification
+ 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountIncludingRequirementsUpdatedEvent fetchEvent() throws StripeException {
+ return (V2CoreAccountIncludingRequirementsUpdatedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountLinkReturnedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountLinkReturnedEvent.java
new file mode 100644
index 00000000000..8853cb981fd
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountLinkReturnedEvent.java
@@ -0,0 +1,33 @@
+// File generated from our OpenAPI spec
+package com.stripe.events;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.v2.core.Event;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+public final class V2CoreAccountLinkReturnedEvent extends Event {
+ /** Data for the v2.core.account_link.returned event. */
+ @SerializedName("data")
+ V2CoreAccountLinkReturnedEvent.EventData data;
+
+ @Getter
+ @Setter
+ public static final class EventData {
+ /** The ID of the v2 account. */
+ @SerializedName("account_id")
+ String accountId;
+ /** Configurations on the Account that was onboarded via the account link. */
+ @SerializedName("configurations")
+ List One of {@code account_onboarding}, or {@code account_update}.
+ */
+ @SerializedName("use_case")
+ String useCase;
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountLinkReturnedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountLinkReturnedEventNotification.java
new file mode 100644
index 00000000000..447b6909d19
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountLinkReturnedEventNotification.java
@@ -0,0 +1,13 @@
+// File generated from our OpenAPI spec
+package com.stripe.events;
+
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.core.EventNotification;
+
+public final class V2CoreAccountLinkReturnedEventNotification extends EventNotification {
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountLinkReturnedEvent fetchEvent() throws StripeException {
+ return (V2CoreAccountLinkReturnedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountPersonCreatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountPersonCreatedEvent.java
new file mode 100644
index 00000000000..31eb01d754c
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountPersonCreatedEvent.java
@@ -0,0 +1,35 @@
+// 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.AccountPerson;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+public final class V2CoreAccountPersonCreatedEvent extends Event {
+ /** Data for the v2.core.account_person.created event. */
+ @SerializedName("data")
+ V2CoreAccountPersonCreatedEvent.EventData data;
+
+ @Getter
+ @Setter
+ public static final class EventData {
+ /** The ID of the v2 account. */
+ @SerializedName("account_id")
+ String accountId;
+ }
+
+ @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 AccountPerson fetchRelatedObject() throws StripeException {
+ return (AccountPerson) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountPersonCreatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountPersonCreatedEventNotification.java
new file mode 100644
index 00000000000..52159283b25
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountPersonCreatedEventNotification.java
@@ -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.AccountPerson;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountPersonCreatedEventNotification 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 AccountPerson fetchRelatedObject() throws StripeException {
+ return (AccountPerson) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountPersonCreatedEvent fetchEvent() throws StripeException {
+ return (V2CoreAccountPersonCreatedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountPersonDeletedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountPersonDeletedEvent.java
new file mode 100644
index 00000000000..54168d8031d
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountPersonDeletedEvent.java
@@ -0,0 +1,35 @@
+// 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.AccountPerson;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+public final class V2CoreAccountPersonDeletedEvent extends Event {
+ /** Data for the v2.core.account_person.deleted event. */
+ @SerializedName("data")
+ V2CoreAccountPersonDeletedEvent.EventData data;
+
+ @Getter
+ @Setter
+ public static final class EventData {
+ /** The ID of the v2 account. */
+ @SerializedName("account_id")
+ String accountId;
+ }
+
+ @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 AccountPerson fetchRelatedObject() throws StripeException {
+ return (AccountPerson) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountPersonDeletedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountPersonDeletedEventNotification.java
new file mode 100644
index 00000000000..ccdfef19c4c
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountPersonDeletedEventNotification.java
@@ -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.AccountPerson;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountPersonDeletedEventNotification 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 AccountPerson fetchRelatedObject() throws StripeException {
+ return (AccountPerson) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountPersonDeletedEvent fetchEvent() throws StripeException {
+ return (V2CoreAccountPersonDeletedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountPersonUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountPersonUpdatedEvent.java
new file mode 100644
index 00000000000..d9f19f199c2
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountPersonUpdatedEvent.java
@@ -0,0 +1,35 @@
+// 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.AccountPerson;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+public final class V2CoreAccountPersonUpdatedEvent extends Event {
+ /** Data for the v2.core.account_person.updated event. */
+ @SerializedName("data")
+ V2CoreAccountPersonUpdatedEvent.EventData data;
+
+ @Getter
+ @Setter
+ public static final class EventData {
+ /** The ID of the v2 account. */
+ @SerializedName("account_id")
+ String accountId;
+ }
+
+ @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 AccountPerson fetchRelatedObject() throws StripeException {
+ return (AccountPerson) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountPersonUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountPersonUpdatedEventNotification.java
new file mode 100644
index 00000000000..7d9c09bccd0
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountPersonUpdatedEventNotification.java
@@ -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.AccountPerson;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountPersonUpdatedEventNotification 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 AccountPerson fetchRelatedObject() throws StripeException {
+ return (AccountPerson) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountPersonUpdatedEvent fetchEvent() throws StripeException {
+ return (V2CoreAccountPersonUpdatedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountUpdatedEvent.java
new file mode 100644
index 00000000000..767204a5eef
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountUpdatedEvent.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountUpdatedEvent 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+}
diff --git a/src/main/java/com/stripe/events/V2CoreAccountUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreAccountUpdatedEventNotification.java
new file mode 100644
index 00000000000..6ecdb7e9f6d
--- /dev/null
+++ b/src/main/java/com/stripe/events/V2CoreAccountUpdatedEventNotification.java
@@ -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.Account;
+import com.stripe.model.v2.core.Event.RelatedObject;
+import com.stripe.model.v2.core.EventNotification;
+import lombok.Getter;
+
+@Getter
+public final class V2CoreAccountUpdatedEventNotification 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 Account fetchRelatedObject() throws StripeException {
+ return (Account) super.fetchRelatedObject(this.relatedObject);
+ }
+ /** Retrieve the corresponding full event from the Stripe API. */
+ @Override
+ public V2CoreAccountUpdatedEvent fetchEvent() throws StripeException {
+ return (V2CoreAccountUpdatedEvent) super.fetchEvent();
+ }
+}
diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
index 87f63158a96..4acab7f5e44 100644
--- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
@@ -40,6 +40,53 @@ public final class EventDataClassLookup {
com.stripe.events.V1BillingMeterErrorReportTriggeredEvent.class);
eventClassLookup.put(
"v1.billing.meter.no_meter_found", com.stripe.events.V1BillingMeterNoMeterFoundEvent.class);
+ eventClassLookup.put(
+ "v2.core.account.closed", com.stripe.events.V2CoreAccountClosedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account.created", com.stripe.events.V2CoreAccountCreatedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account.updated", com.stripe.events.V2CoreAccountUpdatedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.customer].capability_status_updated",
+ com.stripe.events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
+ .class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.customer].updated",
+ com.stripe.events.V2CoreAccountIncludingConfigurationCustomerUpdatedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.merchant].capability_status_updated",
+ com.stripe.events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
+ .class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.merchant].updated",
+ com.stripe.events.V2CoreAccountIncludingConfigurationMerchantUpdatedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.recipient].capability_status_updated",
+ com.stripe.events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
+ .class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.recipient].updated",
+ com.stripe.events.V2CoreAccountIncludingConfigurationRecipientUpdatedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account[defaults].updated",
+ com.stripe.events.V2CoreAccountIncludingDefaultsUpdatedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account[future_requirements].updated",
+ com.stripe.events.V2CoreAccountIncludingFutureRequirementsUpdatedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account[identity].updated",
+ com.stripe.events.V2CoreAccountIncludingIdentityUpdatedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account[requirements].updated",
+ com.stripe.events.V2CoreAccountIncludingRequirementsUpdatedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account_link.returned", com.stripe.events.V2CoreAccountLinkReturnedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account_person.created", com.stripe.events.V2CoreAccountPersonCreatedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account_person.deleted", com.stripe.events.V2CoreAccountPersonDeletedEvent.class);
+ eventClassLookup.put(
+ "v2.core.account_person.updated", com.stripe.events.V2CoreAccountPersonUpdatedEvent.class);
eventClassLookup.put(
"v2.core.event_destination.ping", com.stripe.events.V2CoreEventDestinationPingEvent.class);
}
diff --git a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java
index ba7d9ac1b89..50c66ed6ae1 100644
--- a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java
+++ b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java
@@ -22,6 +22,63 @@ public final class EventNotificationClassLookup {
eventClassLookup.put(
"v1.billing.meter.no_meter_found",
com.stripe.events.V1BillingMeterNoMeterFoundEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account.closed", com.stripe.events.V2CoreAccountClosedEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account.created", com.stripe.events.V2CoreAccountCreatedEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account.updated", com.stripe.events.V2CoreAccountUpdatedEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.customer].capability_status_updated",
+ com.stripe.events
+ .V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification
+ .class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.customer].updated",
+ com.stripe.events.V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification
+ .class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.merchant].capability_status_updated",
+ com.stripe.events
+ .V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification
+ .class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.merchant].updated",
+ com.stripe.events.V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification
+ .class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.recipient].capability_status_updated",
+ com.stripe.events
+ .V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification
+ .class);
+ eventClassLookup.put(
+ "v2.core.account[configuration.recipient].updated",
+ com.stripe.events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification
+ .class);
+ eventClassLookup.put(
+ "v2.core.account[defaults].updated",
+ com.stripe.events.V2CoreAccountIncludingDefaultsUpdatedEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account[future_requirements].updated",
+ com.stripe.events.V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account[identity].updated",
+ com.stripe.events.V2CoreAccountIncludingIdentityUpdatedEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account[requirements].updated",
+ com.stripe.events.V2CoreAccountIncludingRequirementsUpdatedEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account_link.returned",
+ com.stripe.events.V2CoreAccountLinkReturnedEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account_person.created",
+ com.stripe.events.V2CoreAccountPersonCreatedEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account_person.deleted",
+ com.stripe.events.V2CoreAccountPersonDeletedEventNotification.class);
+ eventClassLookup.put(
+ "v2.core.account_person.updated",
+ com.stripe.events.V2CoreAccountPersonUpdatedEventNotification.class);
eventClassLookup.put(
"v2.core.event_destination.ping",
com.stripe.events.V2CoreEventDestinationPingEventNotification.class);