diff --git a/CHANGELOG.md b/CHANGELOG.md index 838bcd831f3..20c21a159eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,39 @@ # Changelog +## 32.1.0 - 2026-04-23 +This release changes the pinned API version to 2026-04-22.dahlia. + +* [#2203](https://github.com/stripe/stripe-java/pull/2203) Update generated code + * Add support for `balanceReport` and `payoutReconciliationReport` on `AccountSession.components` and `AccountSessionCreateParams.components` + * Add support for `appDistribution` and `sunbitPayments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `sunbit` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `location` and `reader` on `Charge.payment_method_details.klarna`, `PaymentAttemptRecord.payment_method_details.klarna`, and `PaymentRecord.payment_method_details.klarna` + * Add support for `mandate` on `Charge.payment_method_details.pix`, `PaymentAttemptRecord.payment_method_details.pix`, and `PaymentRecord.payment_method_details.pix` + * Add support for `managedPayments` on `PaymentIntent`, `PaymentLinkCreateParams`, `PaymentLink`, `SetupIntent`, `Subscription`, `checkout.SessionCreateParams`, and `checkout.Session` + * Add support for new value `sunbit` on enums `PaymentIntentConfirmParams.excludedPaymentMethodTypes`, `PaymentIntentCreateParams.excludedPaymentMethodTypes`, `PaymentIntentUpdateParams.excludedPaymentMethodTypes`, `SetupIntentCreateParams.excludedPaymentMethodTypes`, `SetupIntentUpdateParams.excludedPaymentMethodTypes`, and `checkout.SessionCreateParams.excludedPaymentMethodTypes` + * Add support for `mandateOptions` on `PaymentIntent.payment_method_options.pix`, `PaymentIntentConfirmParams.payment_method_options.pix`, `PaymentIntentCreateParams.payment_method_options.pix`, `PaymentIntentUpdateParams.payment_method_options.pix`, `checkout.Session.payment_method_options.pix`, and `checkout.SessionCreateParams.payment_method_options.pix` + * Change type of `PaymentIntentConfirmParams.payment_method_options.pix.setupFutureUsage`, `PaymentIntentCreateParams.payment_method_options.pix.setupFutureUsage`, `PaymentIntentUpdateParams.payment_method_options.pix.setupFutureUsage`, and `checkout.SessionCreateParams.payment_method_options.pix.setupFutureUsage` from `literal('none')` to `enum('none'|'off_session')` + * Add support for new value `sunbit` on enum `checkout.SessionCreateParams.paymentMethodTypes` + * ⚠️ Change type of `PaymentIntent.payment_method_options.pix.setupFutureUsage` and `checkout.Session.payment_method_options.pix.setupFutureUsage` from `literal('none')` to `enum('none'|'off_session')` + * Add support for new value `sunbit` on enums `ConfirmationTokenCreateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new values `fo_vat`, `gi_tin`, `it_cf`, and `py_ruc` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` + * Add support for new value `sunbit` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for `pix` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Mandate.payment_method_details`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` + * Add support for `upi` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` + * Add support for new values `pix` and `upi` on enums `InvoiceCreateParams.payment_settings.paymentMethodTypes`, `InvoiceUpdateParams.payment_settings.paymentMethodTypes`, `SubscriptionCreateParams.payment_settings.paymentMethodTypes`, and `SubscriptionUpdateParams.payment_settings.paymentMethodTypes` + * Add support for `cardPresence` on `issuing.Authorization` + * Add support for `allowedCardPresences` and `blockedCardPresences` on `issuing.Card.spending_controls`, `issuing.CardCreateParams.spending_controls`, `issuing.CardUpdateParams.spending_controls`, `issuing.Cardholder.spending_controls`, `issuing.CardholderCreateParams.spending_controls`, and `issuing.CardholderUpdateParams.spending_controls` + * Add support for `amount` and `currency` on `Mandate.multi_use` + * Add support for `amountToConfirm` on `PaymentIntentConfirmParams` + * Add support for `klarnaDisplayQrCode` on `PaymentIntent.next_action` + * Add support for new value `sunbit` on enums `PaymentLinkCreateParams.paymentMethodTypes` and `PaymentLinkUpdateParams.paymentMethodTypes` + * Add support for new value `account` on enum `radar.ValueListCreateParams.itemType` + * Add support for `moto` on `SetupAttempt.payment_method_details.card` + * Add support for `pixDisplayQrCode` on `SetupIntent.next_action` + * Add support for new value `2026-04-22.dahlia` on enum `WebhookEndpointCreateParams.apiVersion` +* [#2208](https://github.com/stripe/stripe-java/pull/2208) Fix missing stripeContext in RequestOptions.toBuilderFullCopy() + - Fixes a bug where an existing `stripeContext` was being reset to `null` when calling `RequestOptions#toBuilderFullCopy()` + ## 32.1.0-alpha.4 - 2026-04-15 * [#2204](https://github.com/stripe/stripe-java/pull/2204) Update generated code for private-preview * Add support for `latestVersion` on `v2.billing.LicenseFee`, `v2.billing.PricingPlan`, and `v2.billing.RateCard` diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 170b0bdc590..57b376a31d1 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -a527d1f955ea1eab1b7ccdb63001a69d1786fc37 \ No newline at end of file +505d252427d8aaae5b38486880ba3550b08958ec \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ccd8e578d9e..97a2932083d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2240 \ No newline at end of file +v2253 \ No newline at end of file diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java index bdd7da73b66..08f8b2050b3 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -2,5 +2,5 @@ package com.stripe; final class ApiVersion { - public static final String CURRENT = "2026-04-08.preview"; + public static final String CURRENT = "2026-04-22.preview"; } diff --git a/src/main/java/com/stripe/events/V1AccountApplicationAuthorizedEvent.java b/src/main/java/com/stripe/events/V1AccountApplicationAuthorizedEvent.java new file mode 100644 index 00000000000..83eb38fbb5d --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountApplicationAuthorizedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V1AccountApplicationAuthorizedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V1AccountApplicationAuthorizedEventNotification.java b/src/main/java/com/stripe/events/V1AccountApplicationAuthorizedEventNotification.java new file mode 100644 index 00000000000..91f2fbf13e0 --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountApplicationAuthorizedEventNotification.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 V1AccountApplicationAuthorizedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1AccountApplicationAuthorizedEvent fetchEvent() throws StripeException { + return (V1AccountApplicationAuthorizedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1AccountApplicationDeauthorizedEvent.java b/src/main/java/com/stripe/events/V1AccountApplicationDeauthorizedEvent.java new file mode 100644 index 00000000000..1b738678eca --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountApplicationDeauthorizedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V1AccountApplicationDeauthorizedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V1AccountApplicationDeauthorizedEventNotification.java b/src/main/java/com/stripe/events/V1AccountApplicationDeauthorizedEventNotification.java new file mode 100644 index 00000000000..d6a616da457 --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountApplicationDeauthorizedEventNotification.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 V1AccountApplicationDeauthorizedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1AccountApplicationDeauthorizedEvent fetchEvent() throws StripeException { + return (V1AccountApplicationDeauthorizedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1AccountExternalAccountCreatedEvent.java b/src/main/java/com/stripe/events/V1AccountExternalAccountCreatedEvent.java new file mode 100644 index 00000000000..884f55a540c --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountExternalAccountCreatedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V1AccountExternalAccountCreatedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V1AccountExternalAccountCreatedEventNotification.java b/src/main/java/com/stripe/events/V1AccountExternalAccountCreatedEventNotification.java new file mode 100644 index 00000000000..d2f60d3705a --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountExternalAccountCreatedEventNotification.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 V1AccountExternalAccountCreatedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1AccountExternalAccountCreatedEvent fetchEvent() throws StripeException { + return (V1AccountExternalAccountCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1AccountExternalAccountDeletedEvent.java b/src/main/java/com/stripe/events/V1AccountExternalAccountDeletedEvent.java new file mode 100644 index 00000000000..fd0814cc9c3 --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountExternalAccountDeletedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V1AccountExternalAccountDeletedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V1AccountExternalAccountDeletedEventNotification.java b/src/main/java/com/stripe/events/V1AccountExternalAccountDeletedEventNotification.java new file mode 100644 index 00000000000..bc474cc88ce --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountExternalAccountDeletedEventNotification.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 V1AccountExternalAccountDeletedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1AccountExternalAccountDeletedEvent fetchEvent() throws StripeException { + return (V1AccountExternalAccountDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1AccountExternalAccountUpdatedEvent.java b/src/main/java/com/stripe/events/V1AccountExternalAccountUpdatedEvent.java new file mode 100644 index 00000000000..e5d3c27da1a --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountExternalAccountUpdatedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V1AccountExternalAccountUpdatedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V1AccountExternalAccountUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1AccountExternalAccountUpdatedEventNotification.java new file mode 100644 index 00000000000..650d0a7ce5f --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountExternalAccountUpdatedEventNotification.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 V1AccountExternalAccountUpdatedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1AccountExternalAccountUpdatedEvent fetchEvent() throws StripeException { + return (V1AccountExternalAccountUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1AccountUpdatedEvent.java b/src/main/java/com/stripe/events/V1AccountUpdatedEvent.java new file mode 100644 index 00000000000..241760be511 --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountUpdatedEvent.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.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1AccountUpdatedEvent 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/V1AccountUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1AccountUpdatedEventNotification.java new file mode 100644 index 00000000000..1d4100ae6a9 --- /dev/null +++ b/src/main/java/com/stripe/events/V1AccountUpdatedEventNotification.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.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1AccountUpdatedEventNotification 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 V1AccountUpdatedEvent fetchEvent() throws StripeException { + return (V1AccountUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ApplicationFeeCreatedEvent.java b/src/main/java/com/stripe/events/V1ApplicationFeeCreatedEvent.java new file mode 100644 index 00000000000..80cdeb552e3 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ApplicationFeeCreatedEvent.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.ApplicationFee; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ApplicationFeeCreatedEvent 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 ApplicationFee fetchRelatedObject() throws StripeException { + return (ApplicationFee) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ApplicationFeeCreatedEventNotification.java b/src/main/java/com/stripe/events/V1ApplicationFeeCreatedEventNotification.java new file mode 100644 index 00000000000..d952d051d9b --- /dev/null +++ b/src/main/java/com/stripe/events/V1ApplicationFeeCreatedEventNotification.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.ApplicationFee; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ApplicationFeeCreatedEventNotification 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 ApplicationFee fetchRelatedObject() throws StripeException { + return (ApplicationFee) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ApplicationFeeCreatedEvent fetchEvent() throws StripeException { + return (V1ApplicationFeeCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ApplicationFeeRefundUpdatedEvent.java b/src/main/java/com/stripe/events/V1ApplicationFeeRefundUpdatedEvent.java new file mode 100644 index 00000000000..021965888c5 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ApplicationFeeRefundUpdatedEvent.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.FeeRefund; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ApplicationFeeRefundUpdatedEvent 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 FeeRefund fetchRelatedObject() throws StripeException { + return (FeeRefund) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ApplicationFeeRefundUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1ApplicationFeeRefundUpdatedEventNotification.java new file mode 100644 index 00000000000..d89fa1cd83e --- /dev/null +++ b/src/main/java/com/stripe/events/V1ApplicationFeeRefundUpdatedEventNotification.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.FeeRefund; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ApplicationFeeRefundUpdatedEventNotification 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 FeeRefund fetchRelatedObject() throws StripeException { + return (FeeRefund) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ApplicationFeeRefundUpdatedEvent fetchEvent() throws StripeException { + return (V1ApplicationFeeRefundUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ApplicationFeeRefundedEvent.java b/src/main/java/com/stripe/events/V1ApplicationFeeRefundedEvent.java new file mode 100644 index 00000000000..8f4ea0fd03a --- /dev/null +++ b/src/main/java/com/stripe/events/V1ApplicationFeeRefundedEvent.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.ApplicationFee; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ApplicationFeeRefundedEvent 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 ApplicationFee fetchRelatedObject() throws StripeException { + return (ApplicationFee) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ApplicationFeeRefundedEventNotification.java b/src/main/java/com/stripe/events/V1ApplicationFeeRefundedEventNotification.java new file mode 100644 index 00000000000..9df35ac3eac --- /dev/null +++ b/src/main/java/com/stripe/events/V1ApplicationFeeRefundedEventNotification.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.ApplicationFee; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ApplicationFeeRefundedEventNotification 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 ApplicationFee fetchRelatedObject() throws StripeException { + return (ApplicationFee) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ApplicationFeeRefundedEvent fetchEvent() throws StripeException { + return (V1ApplicationFeeRefundedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1BalanceAvailableEvent.java b/src/main/java/com/stripe/events/V1BalanceAvailableEvent.java new file mode 100644 index 00000000000..56184a45582 --- /dev/null +++ b/src/main/java/com/stripe/events/V1BalanceAvailableEvent.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.Balance; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1BalanceAvailableEvent 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 Balance fetchRelatedObject() throws StripeException { + return (Balance) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1BalanceAvailableEventNotification.java b/src/main/java/com/stripe/events/V1BalanceAvailableEventNotification.java new file mode 100644 index 00000000000..d935c6cafc2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1BalanceAvailableEventNotification.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.Balance; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1BalanceAvailableEventNotification 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 Balance fetchRelatedObject() throws StripeException { + return (Balance) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1BalanceAvailableEvent fetchEvent() throws StripeException { + return (V1BalanceAvailableEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1BillingAlertTriggeredEvent.java b/src/main/java/com/stripe/events/V1BillingAlertTriggeredEvent.java new file mode 100644 index 00000000000..1a260b01648 --- /dev/null +++ b/src/main/java/com/stripe/events/V1BillingAlertTriggeredEvent.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.billing.Alert; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1BillingAlertTriggeredEvent 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 Alert fetchRelatedObject() throws StripeException { + return (Alert) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1BillingAlertTriggeredEventNotification.java b/src/main/java/com/stripe/events/V1BillingAlertTriggeredEventNotification.java new file mode 100644 index 00000000000..afbc20d3c43 --- /dev/null +++ b/src/main/java/com/stripe/events/V1BillingAlertTriggeredEventNotification.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.billing.Alert; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1BillingAlertTriggeredEventNotification 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 Alert fetchRelatedObject() throws StripeException { + return (Alert) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1BillingAlertTriggeredEvent fetchEvent() throws StripeException { + return (V1BillingAlertTriggeredEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1BillingMeterErrorReportTriggeredEvent.java b/src/main/java/com/stripe/events/V1BillingMeterErrorReportTriggeredEvent.java index 4be0b7018e3..ce740f0c162 100644 --- a/src/main/java/com/stripe/events/V1BillingMeterErrorReportTriggeredEvent.java +++ b/src/main/java/com/stripe/events/V1BillingMeterErrorReportTriggeredEvent.java @@ -47,8 +47,9 @@ public static final class ErrorType { * *
One of {@code archived_meter}, {@code meter_event_customer_not_found}, {@code * meter_event_dimension_count_too_high}, {@code meter_event_invalid_value}, {@code - * meter_event_no_customer_defined}, {@code missing_dimension_payload_keys}, {@code - * no_meter}, {@code timestamp_in_future}, or {@code timestamp_too_far_in_past}. + * meter_event_no_customer_defined}, {@code meter_event_value_too_many_digits}, {@code + * missing_dimension_payload_keys}, {@code no_meter}, {@code timestamp_in_future}, or {@code + * timestamp_too_far_in_past}. */ @SerializedName("code") String code; diff --git a/src/main/java/com/stripe/events/V1BillingMeterNoMeterFoundEvent.java b/src/main/java/com/stripe/events/V1BillingMeterNoMeterFoundEvent.java index a1fc6e3bbf0..f59b7a735af 100644 --- a/src/main/java/com/stripe/events/V1BillingMeterNoMeterFoundEvent.java +++ b/src/main/java/com/stripe/events/V1BillingMeterNoMeterFoundEvent.java @@ -44,8 +44,9 @@ public static final class ErrorType { * *
One of {@code archived_meter}, {@code meter_event_customer_not_found}, {@code * meter_event_dimension_count_too_high}, {@code meter_event_invalid_value}, {@code - * meter_event_no_customer_defined}, {@code missing_dimension_payload_keys}, {@code - * no_meter}, {@code timestamp_in_future}, or {@code timestamp_too_far_in_past}. + * meter_event_no_customer_defined}, {@code meter_event_value_too_many_digits}, {@code + * missing_dimension_payload_keys}, {@code no_meter}, {@code timestamp_in_future}, or {@code + * timestamp_too_far_in_past}. */ @SerializedName("code") String code; diff --git a/src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEvent.java b/src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEvent.java new file mode 100644 index 00000000000..fb3ad696556 --- /dev/null +++ b/src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEvent.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.billingportal.Configuration; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1BillingPortalConfigurationCreatedEvent 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 Configuration fetchRelatedObject() throws StripeException { + return (Configuration) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEventNotification.java b/src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEventNotification.java new file mode 100644 index 00000000000..99d40475e1a --- /dev/null +++ b/src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEventNotification.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.billingportal.Configuration; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1BillingPortalConfigurationCreatedEventNotification 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 Configuration fetchRelatedObject() throws StripeException { + return (Configuration) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1BillingPortalConfigurationCreatedEvent fetchEvent() throws StripeException { + return (V1BillingPortalConfigurationCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1BillingPortalConfigurationUpdatedEvent.java b/src/main/java/com/stripe/events/V1BillingPortalConfigurationUpdatedEvent.java new file mode 100644 index 00000000000..ef64577d52e --- /dev/null +++ b/src/main/java/com/stripe/events/V1BillingPortalConfigurationUpdatedEvent.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.billingportal.Configuration; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1BillingPortalConfigurationUpdatedEvent 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 Configuration fetchRelatedObject() throws StripeException { + return (Configuration) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1BillingPortalConfigurationUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1BillingPortalConfigurationUpdatedEventNotification.java new file mode 100644 index 00000000000..4685e45ba0b --- /dev/null +++ b/src/main/java/com/stripe/events/V1BillingPortalConfigurationUpdatedEventNotification.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.billingportal.Configuration; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1BillingPortalConfigurationUpdatedEventNotification 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 Configuration fetchRelatedObject() throws StripeException { + return (Configuration) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1BillingPortalConfigurationUpdatedEvent fetchEvent() throws StripeException { + return (V1BillingPortalConfigurationUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1BillingPortalSessionCreatedEvent.java b/src/main/java/com/stripe/events/V1BillingPortalSessionCreatedEvent.java new file mode 100644 index 00000000000..a8ee600f12c --- /dev/null +++ b/src/main/java/com/stripe/events/V1BillingPortalSessionCreatedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V1BillingPortalSessionCreatedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V1BillingPortalSessionCreatedEventNotification.java b/src/main/java/com/stripe/events/V1BillingPortalSessionCreatedEventNotification.java new file mode 100644 index 00000000000..715fc49d41f --- /dev/null +++ b/src/main/java/com/stripe/events/V1BillingPortalSessionCreatedEventNotification.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 V1BillingPortalSessionCreatedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1BillingPortalSessionCreatedEvent fetchEvent() throws StripeException { + return (V1BillingPortalSessionCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CapabilityUpdatedEvent.java b/src/main/java/com/stripe/events/V1CapabilityUpdatedEvent.java new file mode 100644 index 00000000000..b62d9089c46 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CapabilityUpdatedEvent.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.Capability; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CapabilityUpdatedEvent 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 Capability fetchRelatedObject() throws StripeException { + return (Capability) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CapabilityUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1CapabilityUpdatedEventNotification.java new file mode 100644 index 00000000000..9416d005287 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CapabilityUpdatedEventNotification.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.Capability; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CapabilityUpdatedEventNotification 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 Capability fetchRelatedObject() throws StripeException { + return (Capability) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CapabilityUpdatedEvent fetchEvent() throws StripeException { + return (V1CapabilityUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CashBalanceFundsAvailableEvent.java b/src/main/java/com/stripe/events/V1CashBalanceFundsAvailableEvent.java new file mode 100644 index 00000000000..625ce8fff9e --- /dev/null +++ b/src/main/java/com/stripe/events/V1CashBalanceFundsAvailableEvent.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.CashBalance; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CashBalanceFundsAvailableEvent 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 CashBalance fetchRelatedObject() throws StripeException { + return (CashBalance) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CashBalanceFundsAvailableEventNotification.java b/src/main/java/com/stripe/events/V1CashBalanceFundsAvailableEventNotification.java new file mode 100644 index 00000000000..46d36ae76b8 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CashBalanceFundsAvailableEventNotification.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.CashBalance; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CashBalanceFundsAvailableEventNotification 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 CashBalance fetchRelatedObject() throws StripeException { + return (CashBalance) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CashBalanceFundsAvailableEvent fetchEvent() throws StripeException { + return (V1CashBalanceFundsAvailableEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeCapturedEvent.java b/src/main/java/com/stripe/events/V1ChargeCapturedEvent.java new file mode 100644 index 00000000000..4b188f32a79 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeCapturedEvent.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.Charge; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeCapturedEvent 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeCapturedEventNotification.java b/src/main/java/com/stripe/events/V1ChargeCapturedEventNotification.java new file mode 100644 index 00000000000..0b9f511bce7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeCapturedEventNotification.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.Charge; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeCapturedEventNotification 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeCapturedEvent fetchEvent() throws StripeException { + return (V1ChargeCapturedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeDisputeClosedEvent.java b/src/main/java/com/stripe/events/V1ChargeDisputeClosedEvent.java new file mode 100644 index 00000000000..5a92ccbb185 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeDisputeClosedEvent.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.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeDisputeClosedEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeDisputeClosedEventNotification.java b/src/main/java/com/stripe/events/V1ChargeDisputeClosedEventNotification.java new file mode 100644 index 00000000000..62bcd48f1bf --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeDisputeClosedEventNotification.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.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeDisputeClosedEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeDisputeClosedEvent fetchEvent() throws StripeException { + return (V1ChargeDisputeClosedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeDisputeCreatedEvent.java b/src/main/java/com/stripe/events/V1ChargeDisputeCreatedEvent.java new file mode 100644 index 00000000000..782d1243651 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeDisputeCreatedEvent.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.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeDisputeCreatedEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeDisputeCreatedEventNotification.java b/src/main/java/com/stripe/events/V1ChargeDisputeCreatedEventNotification.java new file mode 100644 index 00000000000..537f9c063e4 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeDisputeCreatedEventNotification.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.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeDisputeCreatedEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeDisputeCreatedEvent fetchEvent() throws StripeException { + return (V1ChargeDisputeCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeDisputeFundsReinstatedEvent.java b/src/main/java/com/stripe/events/V1ChargeDisputeFundsReinstatedEvent.java new file mode 100644 index 00000000000..8147430d50a --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeDisputeFundsReinstatedEvent.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.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeDisputeFundsReinstatedEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeDisputeFundsReinstatedEventNotification.java b/src/main/java/com/stripe/events/V1ChargeDisputeFundsReinstatedEventNotification.java new file mode 100644 index 00000000000..bb1e7a44b5b --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeDisputeFundsReinstatedEventNotification.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.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeDisputeFundsReinstatedEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeDisputeFundsReinstatedEvent fetchEvent() throws StripeException { + return (V1ChargeDisputeFundsReinstatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeDisputeFundsWithdrawnEvent.java b/src/main/java/com/stripe/events/V1ChargeDisputeFundsWithdrawnEvent.java new file mode 100644 index 00000000000..90fd25019ca --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeDisputeFundsWithdrawnEvent.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.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeDisputeFundsWithdrawnEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeDisputeFundsWithdrawnEventNotification.java b/src/main/java/com/stripe/events/V1ChargeDisputeFundsWithdrawnEventNotification.java new file mode 100644 index 00000000000..f8e02c6a119 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeDisputeFundsWithdrawnEventNotification.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.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeDisputeFundsWithdrawnEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeDisputeFundsWithdrawnEvent fetchEvent() throws StripeException { + return (V1ChargeDisputeFundsWithdrawnEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeDisputeUpdatedEvent.java b/src/main/java/com/stripe/events/V1ChargeDisputeUpdatedEvent.java new file mode 100644 index 00000000000..dc8476c00ca --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeDisputeUpdatedEvent.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.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeDisputeUpdatedEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeDisputeUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1ChargeDisputeUpdatedEventNotification.java new file mode 100644 index 00000000000..6802f31b5a7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeDisputeUpdatedEventNotification.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.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeDisputeUpdatedEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeDisputeUpdatedEvent fetchEvent() throws StripeException { + return (V1ChargeDisputeUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeExpiredEvent.java b/src/main/java/com/stripe/events/V1ChargeExpiredEvent.java new file mode 100644 index 00000000000..4364d5c493a --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeExpiredEvent.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.Charge; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeExpiredEvent 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeExpiredEventNotification.java b/src/main/java/com/stripe/events/V1ChargeExpiredEventNotification.java new file mode 100644 index 00000000000..c67a9771254 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeExpiredEventNotification.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.Charge; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeExpiredEventNotification 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeExpiredEvent fetchEvent() throws StripeException { + return (V1ChargeExpiredEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeFailedEvent.java b/src/main/java/com/stripe/events/V1ChargeFailedEvent.java new file mode 100644 index 00000000000..b4060c85eda --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeFailedEvent.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.Charge; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeFailedEvent 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeFailedEventNotification.java b/src/main/java/com/stripe/events/V1ChargeFailedEventNotification.java new file mode 100644 index 00000000000..19bb1a5ced4 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeFailedEventNotification.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.Charge; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeFailedEventNotification 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeFailedEvent fetchEvent() throws StripeException { + return (V1ChargeFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargePendingEvent.java b/src/main/java/com/stripe/events/V1ChargePendingEvent.java new file mode 100644 index 00000000000..de69ce91c4d --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargePendingEvent.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.Charge; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargePendingEvent 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargePendingEventNotification.java b/src/main/java/com/stripe/events/V1ChargePendingEventNotification.java new file mode 100644 index 00000000000..fd2507618d5 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargePendingEventNotification.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.Charge; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargePendingEventNotification 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargePendingEvent fetchEvent() throws StripeException { + return (V1ChargePendingEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeRefundUpdatedEvent.java b/src/main/java/com/stripe/events/V1ChargeRefundUpdatedEvent.java new file mode 100644 index 00000000000..f2780501397 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeRefundUpdatedEvent.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.Refund; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeRefundUpdatedEvent 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 Refund fetchRelatedObject() throws StripeException { + return (Refund) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeRefundUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1ChargeRefundUpdatedEventNotification.java new file mode 100644 index 00000000000..f8c71829bcc --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeRefundUpdatedEventNotification.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.Refund; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeRefundUpdatedEventNotification 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 Refund fetchRelatedObject() throws StripeException { + return (Refund) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeRefundUpdatedEvent fetchEvent() throws StripeException { + return (V1ChargeRefundUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeRefundedEvent.java b/src/main/java/com/stripe/events/V1ChargeRefundedEvent.java new file mode 100644 index 00000000000..7ba06af6437 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeRefundedEvent.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.Charge; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeRefundedEvent 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeRefundedEventNotification.java b/src/main/java/com/stripe/events/V1ChargeRefundedEventNotification.java new file mode 100644 index 00000000000..abeb5003de6 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeRefundedEventNotification.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.Charge; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeRefundedEventNotification 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeRefundedEvent fetchEvent() throws StripeException { + return (V1ChargeRefundedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeSucceededEvent.java b/src/main/java/com/stripe/events/V1ChargeSucceededEvent.java new file mode 100644 index 00000000000..25d20f3b0f6 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeSucceededEvent.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.Charge; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeSucceededEvent 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeSucceededEventNotification.java b/src/main/java/com/stripe/events/V1ChargeSucceededEventNotification.java new file mode 100644 index 00000000000..f40de390434 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeSucceededEventNotification.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.Charge; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeSucceededEventNotification 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeSucceededEvent fetchEvent() throws StripeException { + return (V1ChargeSucceededEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeUpdatedEvent.java b/src/main/java/com/stripe/events/V1ChargeUpdatedEvent.java new file mode 100644 index 00000000000..dd26f6cb75b --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeUpdatedEvent.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.Charge; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ChargeUpdatedEvent 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ChargeUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1ChargeUpdatedEventNotification.java new file mode 100644 index 00000000000..983cab11bc5 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ChargeUpdatedEventNotification.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.Charge; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ChargeUpdatedEventNotification 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 Charge fetchRelatedObject() throws StripeException { + return (Charge) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ChargeUpdatedEvent fetchEvent() throws StripeException { + return (V1ChargeUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentFailedEvent.java b/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentFailedEvent.java new file mode 100644 index 00000000000..b73f8ec54ee --- /dev/null +++ b/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentFailedEvent.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.checkout.Session; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CheckoutSessionAsyncPaymentFailedEvent 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 Session fetchRelatedObject() throws StripeException { + return (Session) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentFailedEventNotification.java b/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentFailedEventNotification.java new file mode 100644 index 00000000000..8ec5e0ae1fc --- /dev/null +++ b/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentFailedEventNotification.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.checkout.Session; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CheckoutSessionAsyncPaymentFailedEventNotification 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 Session fetchRelatedObject() throws StripeException { + return (Session) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CheckoutSessionAsyncPaymentFailedEvent fetchEvent() throws StripeException { + return (V1CheckoutSessionAsyncPaymentFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentSucceededEvent.java b/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentSucceededEvent.java new file mode 100644 index 00000000000..023e0040492 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentSucceededEvent.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.checkout.Session; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CheckoutSessionAsyncPaymentSucceededEvent 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 Session fetchRelatedObject() throws StripeException { + return (Session) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentSucceededEventNotification.java b/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentSucceededEventNotification.java new file mode 100644 index 00000000000..2da0e41c975 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentSucceededEventNotification.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.checkout.Session; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CheckoutSessionAsyncPaymentSucceededEventNotification + 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 Session fetchRelatedObject() throws StripeException { + return (Session) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CheckoutSessionAsyncPaymentSucceededEvent fetchEvent() throws StripeException { + return (V1CheckoutSessionAsyncPaymentSucceededEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CheckoutSessionCompletedEvent.java b/src/main/java/com/stripe/events/V1CheckoutSessionCompletedEvent.java new file mode 100644 index 00000000000..5978e04e169 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CheckoutSessionCompletedEvent.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.checkout.Session; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CheckoutSessionCompletedEvent 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 Session fetchRelatedObject() throws StripeException { + return (Session) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CheckoutSessionCompletedEventNotification.java b/src/main/java/com/stripe/events/V1CheckoutSessionCompletedEventNotification.java new file mode 100644 index 00000000000..e3452e19f21 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CheckoutSessionCompletedEventNotification.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.checkout.Session; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CheckoutSessionCompletedEventNotification 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 Session fetchRelatedObject() throws StripeException { + return (Session) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CheckoutSessionCompletedEvent fetchEvent() throws StripeException { + return (V1CheckoutSessionCompletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CheckoutSessionExpiredEvent.java b/src/main/java/com/stripe/events/V1CheckoutSessionExpiredEvent.java new file mode 100644 index 00000000000..8126278034a --- /dev/null +++ b/src/main/java/com/stripe/events/V1CheckoutSessionExpiredEvent.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.checkout.Session; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CheckoutSessionExpiredEvent 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 Session fetchRelatedObject() throws StripeException { + return (Session) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CheckoutSessionExpiredEventNotification.java b/src/main/java/com/stripe/events/V1CheckoutSessionExpiredEventNotification.java new file mode 100644 index 00000000000..6d36b532174 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CheckoutSessionExpiredEventNotification.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.checkout.Session; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CheckoutSessionExpiredEventNotification 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 Session fetchRelatedObject() throws StripeException { + return (Session) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CheckoutSessionExpiredEvent fetchEvent() throws StripeException { + return (V1CheckoutSessionExpiredEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateOrderCanceledEvent.java b/src/main/java/com/stripe/events/V1ClimateOrderCanceledEvent.java new file mode 100644 index 00000000000..12503f6be6c --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateOrderCanceledEvent.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.climate.Order; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ClimateOrderCanceledEvent 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 Order fetchRelatedObject() throws StripeException { + return (Order) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateOrderCanceledEventNotification.java b/src/main/java/com/stripe/events/V1ClimateOrderCanceledEventNotification.java new file mode 100644 index 00000000000..ddaf1658dad --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateOrderCanceledEventNotification.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.climate.Order; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ClimateOrderCanceledEventNotification 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 Order fetchRelatedObject() throws StripeException { + return (Order) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ClimateOrderCanceledEvent fetchEvent() throws StripeException { + return (V1ClimateOrderCanceledEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateOrderCreatedEvent.java b/src/main/java/com/stripe/events/V1ClimateOrderCreatedEvent.java new file mode 100644 index 00000000000..9949005ff38 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateOrderCreatedEvent.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.climate.Order; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ClimateOrderCreatedEvent 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 Order fetchRelatedObject() throws StripeException { + return (Order) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateOrderCreatedEventNotification.java b/src/main/java/com/stripe/events/V1ClimateOrderCreatedEventNotification.java new file mode 100644 index 00000000000..0e9e5fcf258 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateOrderCreatedEventNotification.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.climate.Order; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ClimateOrderCreatedEventNotification 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 Order fetchRelatedObject() throws StripeException { + return (Order) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ClimateOrderCreatedEvent fetchEvent() throws StripeException { + return (V1ClimateOrderCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateOrderDelayedEvent.java b/src/main/java/com/stripe/events/V1ClimateOrderDelayedEvent.java new file mode 100644 index 00000000000..20d98310980 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateOrderDelayedEvent.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.climate.Order; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ClimateOrderDelayedEvent 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 Order fetchRelatedObject() throws StripeException { + return (Order) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateOrderDelayedEventNotification.java b/src/main/java/com/stripe/events/V1ClimateOrderDelayedEventNotification.java new file mode 100644 index 00000000000..2057dafccb3 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateOrderDelayedEventNotification.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.climate.Order; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ClimateOrderDelayedEventNotification 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 Order fetchRelatedObject() throws StripeException { + return (Order) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ClimateOrderDelayedEvent fetchEvent() throws StripeException { + return (V1ClimateOrderDelayedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateOrderDeliveredEvent.java b/src/main/java/com/stripe/events/V1ClimateOrderDeliveredEvent.java new file mode 100644 index 00000000000..f68a47d51f4 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateOrderDeliveredEvent.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.climate.Order; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ClimateOrderDeliveredEvent 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 Order fetchRelatedObject() throws StripeException { + return (Order) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateOrderDeliveredEventNotification.java b/src/main/java/com/stripe/events/V1ClimateOrderDeliveredEventNotification.java new file mode 100644 index 00000000000..63448e2a7b0 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateOrderDeliveredEventNotification.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.climate.Order; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ClimateOrderDeliveredEventNotification 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 Order fetchRelatedObject() throws StripeException { + return (Order) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ClimateOrderDeliveredEvent fetchEvent() throws StripeException { + return (V1ClimateOrderDeliveredEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateOrderProductSubstitutedEvent.java b/src/main/java/com/stripe/events/V1ClimateOrderProductSubstitutedEvent.java new file mode 100644 index 00000000000..761d913c7dd --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateOrderProductSubstitutedEvent.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.climate.Order; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ClimateOrderProductSubstitutedEvent 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 Order fetchRelatedObject() throws StripeException { + return (Order) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateOrderProductSubstitutedEventNotification.java b/src/main/java/com/stripe/events/V1ClimateOrderProductSubstitutedEventNotification.java new file mode 100644 index 00000000000..c45c4e83d55 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateOrderProductSubstitutedEventNotification.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.climate.Order; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ClimateOrderProductSubstitutedEventNotification 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 Order fetchRelatedObject() throws StripeException { + return (Order) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ClimateOrderProductSubstitutedEvent fetchEvent() throws StripeException { + return (V1ClimateOrderProductSubstitutedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateProductCreatedEvent.java b/src/main/java/com/stripe/events/V1ClimateProductCreatedEvent.java new file mode 100644 index 00000000000..f9ac7e97b28 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateProductCreatedEvent.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.climate.Product; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ClimateProductCreatedEvent 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 Product fetchRelatedObject() throws StripeException { + return (Product) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateProductCreatedEventNotification.java b/src/main/java/com/stripe/events/V1ClimateProductCreatedEventNotification.java new file mode 100644 index 00000000000..f3534bdfe8f --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateProductCreatedEventNotification.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.climate.Product; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ClimateProductCreatedEventNotification 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 Product fetchRelatedObject() throws StripeException { + return (Product) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ClimateProductCreatedEvent fetchEvent() throws StripeException { + return (V1ClimateProductCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateProductPricingUpdatedEvent.java b/src/main/java/com/stripe/events/V1ClimateProductPricingUpdatedEvent.java new file mode 100644 index 00000000000..0b62d7867b1 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateProductPricingUpdatedEvent.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.climate.Product; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ClimateProductPricingUpdatedEvent 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 Product fetchRelatedObject() throws StripeException { + return (Product) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ClimateProductPricingUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1ClimateProductPricingUpdatedEventNotification.java new file mode 100644 index 00000000000..62533583144 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ClimateProductPricingUpdatedEventNotification.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.climate.Product; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ClimateProductPricingUpdatedEventNotification 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 Product fetchRelatedObject() throws StripeException { + return (Product) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ClimateProductPricingUpdatedEvent fetchEvent() throws StripeException { + return (V1ClimateProductPricingUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CouponCreatedEvent.java b/src/main/java/com/stripe/events/V1CouponCreatedEvent.java new file mode 100644 index 00000000000..b4d917750e3 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CouponCreatedEvent.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.Coupon; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CouponCreatedEvent 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 Coupon fetchRelatedObject() throws StripeException { + return (Coupon) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CouponCreatedEventNotification.java b/src/main/java/com/stripe/events/V1CouponCreatedEventNotification.java new file mode 100644 index 00000000000..87ec8aa5484 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CouponCreatedEventNotification.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.Coupon; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CouponCreatedEventNotification 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 Coupon fetchRelatedObject() throws StripeException { + return (Coupon) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CouponCreatedEvent fetchEvent() throws StripeException { + return (V1CouponCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CouponDeletedEvent.java b/src/main/java/com/stripe/events/V1CouponDeletedEvent.java new file mode 100644 index 00000000000..d7fff8f512a --- /dev/null +++ b/src/main/java/com/stripe/events/V1CouponDeletedEvent.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.Coupon; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CouponDeletedEvent 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 Coupon fetchRelatedObject() throws StripeException { + return (Coupon) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CouponDeletedEventNotification.java b/src/main/java/com/stripe/events/V1CouponDeletedEventNotification.java new file mode 100644 index 00000000000..9052d1a34fa --- /dev/null +++ b/src/main/java/com/stripe/events/V1CouponDeletedEventNotification.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.Coupon; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CouponDeletedEventNotification 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 Coupon fetchRelatedObject() throws StripeException { + return (Coupon) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CouponDeletedEvent fetchEvent() throws StripeException { + return (V1CouponDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CouponUpdatedEvent.java b/src/main/java/com/stripe/events/V1CouponUpdatedEvent.java new file mode 100644 index 00000000000..ab06cd9291c --- /dev/null +++ b/src/main/java/com/stripe/events/V1CouponUpdatedEvent.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.Coupon; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CouponUpdatedEvent 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 Coupon fetchRelatedObject() throws StripeException { + return (Coupon) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CouponUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1CouponUpdatedEventNotification.java new file mode 100644 index 00000000000..ffe32ff4332 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CouponUpdatedEventNotification.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.Coupon; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CouponUpdatedEventNotification 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 Coupon fetchRelatedObject() throws StripeException { + return (Coupon) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CouponUpdatedEvent fetchEvent() throws StripeException { + return (V1CouponUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CreditNoteCreatedEvent.java b/src/main/java/com/stripe/events/V1CreditNoteCreatedEvent.java new file mode 100644 index 00000000000..15ca5e3c76a --- /dev/null +++ b/src/main/java/com/stripe/events/V1CreditNoteCreatedEvent.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.CreditNote; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CreditNoteCreatedEvent 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 CreditNote fetchRelatedObject() throws StripeException { + return (CreditNote) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CreditNoteCreatedEventNotification.java b/src/main/java/com/stripe/events/V1CreditNoteCreatedEventNotification.java new file mode 100644 index 00000000000..8466d9bd310 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CreditNoteCreatedEventNotification.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.CreditNote; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CreditNoteCreatedEventNotification 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 CreditNote fetchRelatedObject() throws StripeException { + return (CreditNote) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CreditNoteCreatedEvent fetchEvent() throws StripeException { + return (V1CreditNoteCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CreditNoteUpdatedEvent.java b/src/main/java/com/stripe/events/V1CreditNoteUpdatedEvent.java new file mode 100644 index 00000000000..71171ada379 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CreditNoteUpdatedEvent.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.CreditNote; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CreditNoteUpdatedEvent 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 CreditNote fetchRelatedObject() throws StripeException { + return (CreditNote) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CreditNoteUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1CreditNoteUpdatedEventNotification.java new file mode 100644 index 00000000000..40b310a984c --- /dev/null +++ b/src/main/java/com/stripe/events/V1CreditNoteUpdatedEventNotification.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.CreditNote; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CreditNoteUpdatedEventNotification 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 CreditNote fetchRelatedObject() throws StripeException { + return (CreditNote) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CreditNoteUpdatedEvent fetchEvent() throws StripeException { + return (V1CreditNoteUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CreditNoteVoidedEvent.java b/src/main/java/com/stripe/events/V1CreditNoteVoidedEvent.java new file mode 100644 index 00000000000..09d57cc5b6c --- /dev/null +++ b/src/main/java/com/stripe/events/V1CreditNoteVoidedEvent.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.CreditNote; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CreditNoteVoidedEvent 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 CreditNote fetchRelatedObject() throws StripeException { + return (CreditNote) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CreditNoteVoidedEventNotification.java b/src/main/java/com/stripe/events/V1CreditNoteVoidedEventNotification.java new file mode 100644 index 00000000000..ab4a29b2501 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CreditNoteVoidedEventNotification.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.CreditNote; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CreditNoteVoidedEventNotification 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 CreditNote fetchRelatedObject() throws StripeException { + return (CreditNote) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CreditNoteVoidedEvent fetchEvent() throws StripeException { + return (V1CreditNoteVoidedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerCashBalanceTransactionCreatedEvent.java b/src/main/java/com/stripe/events/V1CustomerCashBalanceTransactionCreatedEvent.java new file mode 100644 index 00000000000..b5c8fcd9d72 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerCashBalanceTransactionCreatedEvent.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.CustomerCashBalanceTransaction; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerCashBalanceTransactionCreatedEvent 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 CustomerCashBalanceTransaction fetchRelatedObject() throws StripeException { + return (CustomerCashBalanceTransaction) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerCashBalanceTransactionCreatedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerCashBalanceTransactionCreatedEventNotification.java new file mode 100644 index 00000000000..5e4e1dc2f0d --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerCashBalanceTransactionCreatedEventNotification.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.CustomerCashBalanceTransaction; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerCashBalanceTransactionCreatedEventNotification + 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 CustomerCashBalanceTransaction fetchRelatedObject() throws StripeException { + return (CustomerCashBalanceTransaction) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerCashBalanceTransactionCreatedEvent fetchEvent() throws StripeException { + return (V1CustomerCashBalanceTransactionCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerCreatedEvent.java b/src/main/java/com/stripe/events/V1CustomerCreatedEvent.java new file mode 100644 index 00000000000..4298e7a959e --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerCreatedEvent.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.Customer; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerCreatedEvent 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 Customer fetchRelatedObject() throws StripeException { + return (Customer) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerCreatedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerCreatedEventNotification.java new file mode 100644 index 00000000000..da9d426ee54 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerCreatedEventNotification.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.Customer; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerCreatedEventNotification 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 Customer fetchRelatedObject() throws StripeException { + return (Customer) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerCreatedEvent fetchEvent() throws StripeException { + return (V1CustomerCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerDeletedEvent.java b/src/main/java/com/stripe/events/V1CustomerDeletedEvent.java new file mode 100644 index 00000000000..efeeb3e4ffe --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerDeletedEvent.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.Customer; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerDeletedEvent 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 Customer fetchRelatedObject() throws StripeException { + return (Customer) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerDeletedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerDeletedEventNotification.java new file mode 100644 index 00000000000..3d6b84e961a --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerDeletedEventNotification.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.Customer; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerDeletedEventNotification 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 Customer fetchRelatedObject() throws StripeException { + return (Customer) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerDeletedEvent fetchEvent() throws StripeException { + return (V1CustomerDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionCreatedEvent.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionCreatedEvent.java new file mode 100644 index 00000000000..e8ca36e76bf --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionCreatedEvent.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.Subscription; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionCreatedEvent 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionCreatedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionCreatedEventNotification.java new file mode 100644 index 00000000000..7272eec08ed --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionCreatedEventNotification.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.Subscription; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionCreatedEventNotification 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerSubscriptionCreatedEvent fetchEvent() throws StripeException { + return (V1CustomerSubscriptionCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionDeletedEvent.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionDeletedEvent.java new file mode 100644 index 00000000000..f367f19c947 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionDeletedEvent.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.Subscription; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionDeletedEvent 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionDeletedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionDeletedEventNotification.java new file mode 100644 index 00000000000..1c9326c1f2e --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionDeletedEventNotification.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.Subscription; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionDeletedEventNotification 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerSubscriptionDeletedEvent fetchEvent() throws StripeException { + return (V1CustomerSubscriptionDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionPausedEvent.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionPausedEvent.java new file mode 100644 index 00000000000..f5340aa46af --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionPausedEvent.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.Subscription; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionPausedEvent 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionPausedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionPausedEventNotification.java new file mode 100644 index 00000000000..03a1d09f347 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionPausedEventNotification.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.Subscription; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionPausedEventNotification 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerSubscriptionPausedEvent fetchEvent() throws StripeException { + return (V1CustomerSubscriptionPausedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateAppliedEvent.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateAppliedEvent.java new file mode 100644 index 00000000000..e874daa6f9f --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateAppliedEvent.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.Subscription; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionPendingUpdateAppliedEvent 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateAppliedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateAppliedEventNotification.java new file mode 100644 index 00000000000..259c71406b7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateAppliedEventNotification.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.Subscription; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionPendingUpdateAppliedEventNotification + 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerSubscriptionPendingUpdateAppliedEvent fetchEvent() throws StripeException { + return (V1CustomerSubscriptionPendingUpdateAppliedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateExpiredEvent.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateExpiredEvent.java new file mode 100644 index 00000000000..d84c392e409 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateExpiredEvent.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.Subscription; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionPendingUpdateExpiredEvent 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateExpiredEventNotification.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateExpiredEventNotification.java new file mode 100644 index 00000000000..688c7d6fae0 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateExpiredEventNotification.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.Subscription; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionPendingUpdateExpiredEventNotification + 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerSubscriptionPendingUpdateExpiredEvent fetchEvent() throws StripeException { + return (V1CustomerSubscriptionPendingUpdateExpiredEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionResumedEvent.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionResumedEvent.java new file mode 100644 index 00000000000..a1bbbbc0d84 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionResumedEvent.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.Subscription; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionResumedEvent 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionResumedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionResumedEventNotification.java new file mode 100644 index 00000000000..56c8c6c191d --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionResumedEventNotification.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.Subscription; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionResumedEventNotification 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerSubscriptionResumedEvent fetchEvent() throws StripeException { + return (V1CustomerSubscriptionResumedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionTrialWillEndEvent.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionTrialWillEndEvent.java new file mode 100644 index 00000000000..adcec20024f --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionTrialWillEndEvent.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.Subscription; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionTrialWillEndEvent 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionTrialWillEndEventNotification.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionTrialWillEndEventNotification.java new file mode 100644 index 00000000000..f03859bf52a --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionTrialWillEndEventNotification.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.Subscription; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionTrialWillEndEventNotification 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerSubscriptionTrialWillEndEvent fetchEvent() throws StripeException { + return (V1CustomerSubscriptionTrialWillEndEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionUpdatedEvent.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionUpdatedEvent.java new file mode 100644 index 00000000000..291128dc3ea --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionUpdatedEvent.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.Subscription; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionUpdatedEvent 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerSubscriptionUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerSubscriptionUpdatedEventNotification.java new file mode 100644 index 00000000000..912d0431ca6 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerSubscriptionUpdatedEventNotification.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.Subscription; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerSubscriptionUpdatedEventNotification 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 Subscription fetchRelatedObject() throws StripeException { + return (Subscription) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerSubscriptionUpdatedEvent fetchEvent() throws StripeException { + return (V1CustomerSubscriptionUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerTaxIdCreatedEvent.java b/src/main/java/com/stripe/events/V1CustomerTaxIdCreatedEvent.java new file mode 100644 index 00000000000..6c0fa2593a2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerTaxIdCreatedEvent.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.TaxId; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerTaxIdCreatedEvent 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 TaxId fetchRelatedObject() throws StripeException { + return (TaxId) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerTaxIdCreatedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerTaxIdCreatedEventNotification.java new file mode 100644 index 00000000000..96cb76ccf5b --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerTaxIdCreatedEventNotification.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.TaxId; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerTaxIdCreatedEventNotification 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 TaxId fetchRelatedObject() throws StripeException { + return (TaxId) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerTaxIdCreatedEvent fetchEvent() throws StripeException { + return (V1CustomerTaxIdCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerTaxIdDeletedEvent.java b/src/main/java/com/stripe/events/V1CustomerTaxIdDeletedEvent.java new file mode 100644 index 00000000000..00520fa52fc --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerTaxIdDeletedEvent.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.TaxId; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerTaxIdDeletedEvent 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 TaxId fetchRelatedObject() throws StripeException { + return (TaxId) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerTaxIdDeletedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerTaxIdDeletedEventNotification.java new file mode 100644 index 00000000000..0d8f18c7ce3 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerTaxIdDeletedEventNotification.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.TaxId; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerTaxIdDeletedEventNotification 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 TaxId fetchRelatedObject() throws StripeException { + return (TaxId) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerTaxIdDeletedEvent fetchEvent() throws StripeException { + return (V1CustomerTaxIdDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerTaxIdUpdatedEvent.java b/src/main/java/com/stripe/events/V1CustomerTaxIdUpdatedEvent.java new file mode 100644 index 00000000000..dcd752a16ab --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerTaxIdUpdatedEvent.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.TaxId; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerTaxIdUpdatedEvent 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 TaxId fetchRelatedObject() throws StripeException { + return (TaxId) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerTaxIdUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerTaxIdUpdatedEventNotification.java new file mode 100644 index 00000000000..aa996aee3b1 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerTaxIdUpdatedEventNotification.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.TaxId; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerTaxIdUpdatedEventNotification 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 TaxId fetchRelatedObject() throws StripeException { + return (TaxId) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerTaxIdUpdatedEvent fetchEvent() throws StripeException { + return (V1CustomerTaxIdUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerUpdatedEvent.java b/src/main/java/com/stripe/events/V1CustomerUpdatedEvent.java new file mode 100644 index 00000000000..42b9831fc79 --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerUpdatedEvent.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.Customer; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1CustomerUpdatedEvent 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 Customer fetchRelatedObject() throws StripeException { + return (Customer) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1CustomerUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerUpdatedEventNotification.java new file mode 100644 index 00000000000..dc8f0ebb9be --- /dev/null +++ b/src/main/java/com/stripe/events/V1CustomerUpdatedEventNotification.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.Customer; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1CustomerUpdatedEventNotification 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 Customer fetchRelatedObject() throws StripeException { + return (Customer) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1CustomerUpdatedEvent fetchEvent() throws StripeException { + return (V1CustomerUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1EntitlementsActiveEntitlementSummaryUpdatedEvent.java b/src/main/java/com/stripe/events/V1EntitlementsActiveEntitlementSummaryUpdatedEvent.java new file mode 100644 index 00000000000..b4bbcdc51aa --- /dev/null +++ b/src/main/java/com/stripe/events/V1EntitlementsActiveEntitlementSummaryUpdatedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V1EntitlementsActiveEntitlementSummaryUpdatedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V1EntitlementsActiveEntitlementSummaryUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1EntitlementsActiveEntitlementSummaryUpdatedEventNotification.java new file mode 100644 index 00000000000..3c7162618cd --- /dev/null +++ b/src/main/java/com/stripe/events/V1EntitlementsActiveEntitlementSummaryUpdatedEventNotification.java @@ -0,0 +1,14 @@ +// 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 V1EntitlementsActiveEntitlementSummaryUpdatedEventNotification + extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1EntitlementsActiveEntitlementSummaryUpdatedEvent fetchEvent() throws StripeException { + return (V1EntitlementsActiveEntitlementSummaryUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1FileCreatedEvent.java b/src/main/java/com/stripe/events/V1FileCreatedEvent.java new file mode 100644 index 00000000000..51047f446db --- /dev/null +++ b/src/main/java/com/stripe/events/V1FileCreatedEvent.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.File; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1FileCreatedEvent 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 File fetchRelatedObject() throws StripeException { + return (File) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1FileCreatedEventNotification.java b/src/main/java/com/stripe/events/V1FileCreatedEventNotification.java new file mode 100644 index 00000000000..f38648d89cf --- /dev/null +++ b/src/main/java/com/stripe/events/V1FileCreatedEventNotification.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.File; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1FileCreatedEventNotification 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 File fetchRelatedObject() throws StripeException { + return (File) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1FileCreatedEvent fetchEvent() throws StripeException { + return (V1FileCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountCreatedEvent.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountCreatedEvent.java new file mode 100644 index 00000000000..c0b6d81ab2f --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountCreatedEvent.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.financialconnections.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountCreatedEvent 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/V1FinancialConnectionsAccountCreatedEventNotification.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountCreatedEventNotification.java new file mode 100644 index 00000000000..1dc30974e42 --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountCreatedEventNotification.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.financialconnections.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountCreatedEventNotification 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 V1FinancialConnectionsAccountCreatedEvent fetchEvent() throws StripeException { + return (V1FinancialConnectionsAccountCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDeactivatedEvent.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDeactivatedEvent.java new file mode 100644 index 00000000000..c32b5f5c21d --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDeactivatedEvent.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.financialconnections.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountDeactivatedEvent 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/V1FinancialConnectionsAccountDeactivatedEventNotification.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDeactivatedEventNotification.java new file mode 100644 index 00000000000..0ecc289e919 --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDeactivatedEventNotification.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.financialconnections.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountDeactivatedEventNotification + 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 V1FinancialConnectionsAccountDeactivatedEvent fetchEvent() throws StripeException { + return (V1FinancialConnectionsAccountDeactivatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDisconnectedEvent.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDisconnectedEvent.java new file mode 100644 index 00000000000..18a4202ef58 --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDisconnectedEvent.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.financialconnections.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountDisconnectedEvent 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/V1FinancialConnectionsAccountDisconnectedEventNotification.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDisconnectedEventNotification.java new file mode 100644 index 00000000000..071c39fae49 --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDisconnectedEventNotification.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.financialconnections.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountDisconnectedEventNotification + 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 V1FinancialConnectionsAccountDisconnectedEvent fetchEvent() throws StripeException { + return (V1FinancialConnectionsAccountDisconnectedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEvent.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEvent.java new file mode 100644 index 00000000000..d7cf0afef81 --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEvent.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.financialconnections.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountReactivatedEvent 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/V1FinancialConnectionsAccountReactivatedEventNotification.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEventNotification.java new file mode 100644 index 00000000000..7128e9e9fe2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEventNotification.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.financialconnections.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountReactivatedEventNotification + 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 V1FinancialConnectionsAccountReactivatedEvent fetchEvent() throws StripeException { + return (V1FinancialConnectionsAccountReactivatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedBalanceEvent.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedBalanceEvent.java new file mode 100644 index 00000000000..cb4ae78b610 --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedBalanceEvent.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.financialconnections.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountRefreshedBalanceEvent 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/V1FinancialConnectionsAccountRefreshedBalanceEventNotification.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedBalanceEventNotification.java new file mode 100644 index 00000000000..40f60bc448c --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedBalanceEventNotification.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.financialconnections.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountRefreshedBalanceEventNotification + 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 V1FinancialConnectionsAccountRefreshedBalanceEvent fetchEvent() throws StripeException { + return (V1FinancialConnectionsAccountRefreshedBalanceEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedOwnershipEvent.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedOwnershipEvent.java new file mode 100644 index 00000000000..78d8d7c5ead --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedOwnershipEvent.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.financialconnections.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountRefreshedOwnershipEvent 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/V1FinancialConnectionsAccountRefreshedOwnershipEventNotification.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedOwnershipEventNotification.java new file mode 100644 index 00000000000..95fd68ff2ed --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedOwnershipEventNotification.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.financialconnections.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountRefreshedOwnershipEventNotification + 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 V1FinancialConnectionsAccountRefreshedOwnershipEvent fetchEvent() throws StripeException { + return (V1FinancialConnectionsAccountRefreshedOwnershipEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedTransactionsEvent.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedTransactionsEvent.java new file mode 100644 index 00000000000..7c9e16543ed --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedTransactionsEvent.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.financialconnections.Account; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountRefreshedTransactionsEvent 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/V1FinancialConnectionsAccountRefreshedTransactionsEventNotification.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedTransactionsEventNotification.java new file mode 100644 index 00000000000..b64dc338ff6 --- /dev/null +++ b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedTransactionsEventNotification.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.financialconnections.Account; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1FinancialConnectionsAccountRefreshedTransactionsEventNotification + 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 V1FinancialConnectionsAccountRefreshedTransactionsEvent fetchEvent() + throws StripeException { + return (V1FinancialConnectionsAccountRefreshedTransactionsEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionCanceledEvent.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionCanceledEvent.java new file mode 100644 index 00000000000..daf42d41492 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionCanceledEvent.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionCanceledEvent 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionCanceledEventNotification.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionCanceledEventNotification.java new file mode 100644 index 00000000000..d507a5bba34 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionCanceledEventNotification.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionCanceledEventNotification + 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IdentityVerificationSessionCanceledEvent fetchEvent() throws StripeException { + return (V1IdentityVerificationSessionCanceledEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionCreatedEvent.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionCreatedEvent.java new file mode 100644 index 00000000000..884f23b693e --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionCreatedEvent.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionCreatedEvent 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionCreatedEventNotification.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionCreatedEventNotification.java new file mode 100644 index 00000000000..cf5ce15edf2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionCreatedEventNotification.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionCreatedEventNotification 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IdentityVerificationSessionCreatedEvent fetchEvent() throws StripeException { + return (V1IdentityVerificationSessionCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionProcessingEvent.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionProcessingEvent.java new file mode 100644 index 00000000000..6fdf5bbf42b --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionProcessingEvent.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionProcessingEvent 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionProcessingEventNotification.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionProcessingEventNotification.java new file mode 100644 index 00000000000..1e2e7f2e8d3 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionProcessingEventNotification.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionProcessingEventNotification + 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IdentityVerificationSessionProcessingEvent fetchEvent() throws StripeException { + return (V1IdentityVerificationSessionProcessingEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionRedactedEvent.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionRedactedEvent.java new file mode 100644 index 00000000000..615a11de0b5 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionRedactedEvent.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionRedactedEvent 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionRedactedEventNotification.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionRedactedEventNotification.java new file mode 100644 index 00000000000..bbc837175bd --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionRedactedEventNotification.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionRedactedEventNotification + 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IdentityVerificationSessionRedactedEvent fetchEvent() throws StripeException { + return (V1IdentityVerificationSessionRedactedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionRequiresInputEvent.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionRequiresInputEvent.java new file mode 100644 index 00000000000..546f2b88cc8 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionRequiresInputEvent.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionRequiresInputEvent 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionRequiresInputEventNotification.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionRequiresInputEventNotification.java new file mode 100644 index 00000000000..ed348fbd0d6 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionRequiresInputEventNotification.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionRequiresInputEventNotification + 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IdentityVerificationSessionRequiresInputEvent fetchEvent() throws StripeException { + return (V1IdentityVerificationSessionRequiresInputEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionVerifiedEvent.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionVerifiedEvent.java new file mode 100644 index 00000000000..5cefde2ea80 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionVerifiedEvent.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionVerifiedEvent 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IdentityVerificationSessionVerifiedEventNotification.java b/src/main/java/com/stripe/events/V1IdentityVerificationSessionVerifiedEventNotification.java new file mode 100644 index 00000000000..e19e2e33dc6 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IdentityVerificationSessionVerifiedEventNotification.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.identity.VerificationSession; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IdentityVerificationSessionVerifiedEventNotification + 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 VerificationSession fetchRelatedObject() throws StripeException { + return (VerificationSession) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IdentityVerificationSessionVerifiedEvent fetchEvent() throws StripeException { + return (V1IdentityVerificationSessionVerifiedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceCreatedEvent.java b/src/main/java/com/stripe/events/V1InvoiceCreatedEvent.java new file mode 100644 index 00000000000..1952deb8d1f --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceCreatedEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceCreatedEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceCreatedEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceCreatedEventNotification.java new file mode 100644 index 00000000000..3954bf5c876 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceCreatedEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceCreatedEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceCreatedEvent fetchEvent() throws StripeException { + return (V1InvoiceCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceDeletedEvent.java b/src/main/java/com/stripe/events/V1InvoiceDeletedEvent.java new file mode 100644 index 00000000000..033d8487c57 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceDeletedEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceDeletedEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceDeletedEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceDeletedEventNotification.java new file mode 100644 index 00000000000..536ffcfb4f4 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceDeletedEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceDeletedEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceDeletedEvent fetchEvent() throws StripeException { + return (V1InvoiceDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceFinalizationFailedEvent.java b/src/main/java/com/stripe/events/V1InvoiceFinalizationFailedEvent.java new file mode 100644 index 00000000000..e0a4235cb8f --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceFinalizationFailedEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceFinalizationFailedEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceFinalizationFailedEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceFinalizationFailedEventNotification.java new file mode 100644 index 00000000000..8744a0bb1c7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceFinalizationFailedEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceFinalizationFailedEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceFinalizationFailedEvent fetchEvent() throws StripeException { + return (V1InvoiceFinalizationFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceFinalizedEvent.java b/src/main/java/com/stripe/events/V1InvoiceFinalizedEvent.java new file mode 100644 index 00000000000..ccdb13dd785 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceFinalizedEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceFinalizedEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceFinalizedEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceFinalizedEventNotification.java new file mode 100644 index 00000000000..bb69738e53d --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceFinalizedEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceFinalizedEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceFinalizedEvent fetchEvent() throws StripeException { + return (V1InvoiceFinalizedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceMarkedUncollectibleEvent.java b/src/main/java/com/stripe/events/V1InvoiceMarkedUncollectibleEvent.java new file mode 100644 index 00000000000..d2bf41f0a13 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceMarkedUncollectibleEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceMarkedUncollectibleEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceMarkedUncollectibleEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceMarkedUncollectibleEventNotification.java new file mode 100644 index 00000000000..348350a0309 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceMarkedUncollectibleEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceMarkedUncollectibleEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceMarkedUncollectibleEvent fetchEvent() throws StripeException { + return (V1InvoiceMarkedUncollectibleEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceOverdueEvent.java b/src/main/java/com/stripe/events/V1InvoiceOverdueEvent.java new file mode 100644 index 00000000000..eed159f3e22 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceOverdueEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceOverdueEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceOverdueEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceOverdueEventNotification.java new file mode 100644 index 00000000000..3b481046dd1 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceOverdueEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceOverdueEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceOverdueEvent fetchEvent() throws StripeException { + return (V1InvoiceOverdueEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceOverpaidEvent.java b/src/main/java/com/stripe/events/V1InvoiceOverpaidEvent.java new file mode 100644 index 00000000000..f59ed146144 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceOverpaidEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceOverpaidEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceOverpaidEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceOverpaidEventNotification.java new file mode 100644 index 00000000000..cfe2c219e1b --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceOverpaidEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceOverpaidEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceOverpaidEvent fetchEvent() throws StripeException { + return (V1InvoiceOverpaidEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoicePaidEvent.java b/src/main/java/com/stripe/events/V1InvoicePaidEvent.java new file mode 100644 index 00000000000..42dbe642092 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoicePaidEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoicePaidEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoicePaidEventNotification.java b/src/main/java/com/stripe/events/V1InvoicePaidEventNotification.java new file mode 100644 index 00000000000..ab421973405 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoicePaidEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoicePaidEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoicePaidEvent fetchEvent() throws StripeException { + return (V1InvoicePaidEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoicePaymentActionRequiredEvent.java b/src/main/java/com/stripe/events/V1InvoicePaymentActionRequiredEvent.java new file mode 100644 index 00000000000..2095cb626df --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoicePaymentActionRequiredEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoicePaymentActionRequiredEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoicePaymentActionRequiredEventNotification.java b/src/main/java/com/stripe/events/V1InvoicePaymentActionRequiredEventNotification.java new file mode 100644 index 00000000000..0ca518d6c3f --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoicePaymentActionRequiredEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoicePaymentActionRequiredEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoicePaymentActionRequiredEvent fetchEvent() throws StripeException { + return (V1InvoicePaymentActionRequiredEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoicePaymentFailedEvent.java b/src/main/java/com/stripe/events/V1InvoicePaymentFailedEvent.java new file mode 100644 index 00000000000..1937cfccbdb --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoicePaymentFailedEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoicePaymentFailedEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoicePaymentFailedEventNotification.java b/src/main/java/com/stripe/events/V1InvoicePaymentFailedEventNotification.java new file mode 100644 index 00000000000..9e0267a1874 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoicePaymentFailedEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoicePaymentFailedEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoicePaymentFailedEvent fetchEvent() throws StripeException { + return (V1InvoicePaymentFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoicePaymentPaidEvent.java b/src/main/java/com/stripe/events/V1InvoicePaymentPaidEvent.java new file mode 100644 index 00000000000..0967e93fac7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoicePaymentPaidEvent.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.InvoicePayment; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoicePaymentPaidEvent 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 InvoicePayment fetchRelatedObject() throws StripeException { + return (InvoicePayment) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoicePaymentPaidEventNotification.java b/src/main/java/com/stripe/events/V1InvoicePaymentPaidEventNotification.java new file mode 100644 index 00000000000..2f1a66e86c1 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoicePaymentPaidEventNotification.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.InvoicePayment; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoicePaymentPaidEventNotification 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 InvoicePayment fetchRelatedObject() throws StripeException { + return (InvoicePayment) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoicePaymentPaidEvent fetchEvent() throws StripeException { + return (V1InvoicePaymentPaidEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoicePaymentSucceededEvent.java b/src/main/java/com/stripe/events/V1InvoicePaymentSucceededEvent.java new file mode 100644 index 00000000000..12ab414f3c5 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoicePaymentSucceededEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoicePaymentSucceededEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoicePaymentSucceededEventNotification.java b/src/main/java/com/stripe/events/V1InvoicePaymentSucceededEventNotification.java new file mode 100644 index 00000000000..e189800959c --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoicePaymentSucceededEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoicePaymentSucceededEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoicePaymentSucceededEvent fetchEvent() throws StripeException { + return (V1InvoicePaymentSucceededEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceSentEvent.java b/src/main/java/com/stripe/events/V1InvoiceSentEvent.java new file mode 100644 index 00000000000..d649d665f59 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceSentEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceSentEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceSentEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceSentEventNotification.java new file mode 100644 index 00000000000..e77d5ec448e --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceSentEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceSentEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceSentEvent fetchEvent() throws StripeException { + return (V1InvoiceSentEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceUpcomingEvent.java b/src/main/java/com/stripe/events/V1InvoiceUpcomingEvent.java new file mode 100644 index 00000000000..7fb1d7a09fe --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceUpcomingEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceUpcomingEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceUpcomingEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceUpcomingEventNotification.java new file mode 100644 index 00000000000..8e7edb4b504 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceUpcomingEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceUpcomingEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceUpcomingEvent fetchEvent() throws StripeException { + return (V1InvoiceUpcomingEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceUpdatedEvent.java b/src/main/java/com/stripe/events/V1InvoiceUpdatedEvent.java new file mode 100644 index 00000000000..140569b5178 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceUpdatedEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceUpdatedEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceUpdatedEventNotification.java new file mode 100644 index 00000000000..c59d9c1d83f --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceUpdatedEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceUpdatedEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceUpdatedEvent fetchEvent() throws StripeException { + return (V1InvoiceUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceVoidedEvent.java b/src/main/java/com/stripe/events/V1InvoiceVoidedEvent.java new file mode 100644 index 00000000000..c83bc7b8c90 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceVoidedEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceVoidedEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceVoidedEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceVoidedEventNotification.java new file mode 100644 index 00000000000..dbfc9404086 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceVoidedEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceVoidedEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceVoidedEvent fetchEvent() throws StripeException { + return (V1InvoiceVoidedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceWillBeDueEvent.java b/src/main/java/com/stripe/events/V1InvoiceWillBeDueEvent.java new file mode 100644 index 00000000000..6496fa3d128 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceWillBeDueEvent.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.Invoice; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceWillBeDueEvent 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceWillBeDueEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceWillBeDueEventNotification.java new file mode 100644 index 00000000000..09479d7657f --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceWillBeDueEventNotification.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.Invoice; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceWillBeDueEventNotification 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 Invoice fetchRelatedObject() throws StripeException { + return (Invoice) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceWillBeDueEvent fetchEvent() throws StripeException { + return (V1InvoiceWillBeDueEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceitemCreatedEvent.java b/src/main/java/com/stripe/events/V1InvoiceitemCreatedEvent.java new file mode 100644 index 00000000000..871e2a98a80 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceitemCreatedEvent.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.InvoiceItem; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceitemCreatedEvent 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 InvoiceItem fetchRelatedObject() throws StripeException { + return (InvoiceItem) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceitemCreatedEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceitemCreatedEventNotification.java new file mode 100644 index 00000000000..09a64cb5314 --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceitemCreatedEventNotification.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.InvoiceItem; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceitemCreatedEventNotification 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 InvoiceItem fetchRelatedObject() throws StripeException { + return (InvoiceItem) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceitemCreatedEvent fetchEvent() throws StripeException { + return (V1InvoiceitemCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceitemDeletedEvent.java b/src/main/java/com/stripe/events/V1InvoiceitemDeletedEvent.java new file mode 100644 index 00000000000..87a4969624d --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceitemDeletedEvent.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.InvoiceItem; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1InvoiceitemDeletedEvent 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 InvoiceItem fetchRelatedObject() throws StripeException { + return (InvoiceItem) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1InvoiceitemDeletedEventNotification.java b/src/main/java/com/stripe/events/V1InvoiceitemDeletedEventNotification.java new file mode 100644 index 00000000000..9061a2c317c --- /dev/null +++ b/src/main/java/com/stripe/events/V1InvoiceitemDeletedEventNotification.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.InvoiceItem; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1InvoiceitemDeletedEventNotification 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 InvoiceItem fetchRelatedObject() throws StripeException { + return (InvoiceItem) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1InvoiceitemDeletedEvent fetchEvent() throws StripeException { + return (V1InvoiceitemDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingAuthorizationCreatedEvent.java b/src/main/java/com/stripe/events/V1IssuingAuthorizationCreatedEvent.java new file mode 100644 index 00000000000..0e05852ac80 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingAuthorizationCreatedEvent.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.issuing.Authorization; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingAuthorizationCreatedEvent 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 Authorization fetchRelatedObject() throws StripeException { + return (Authorization) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingAuthorizationCreatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingAuthorizationCreatedEventNotification.java new file mode 100644 index 00000000000..48271405e93 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingAuthorizationCreatedEventNotification.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.issuing.Authorization; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingAuthorizationCreatedEventNotification 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 Authorization fetchRelatedObject() throws StripeException { + return (Authorization) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingAuthorizationCreatedEvent fetchEvent() throws StripeException { + return (V1IssuingAuthorizationCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingAuthorizationRequestEvent.java b/src/main/java/com/stripe/events/V1IssuingAuthorizationRequestEvent.java new file mode 100644 index 00000000000..88788c30c2f --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingAuthorizationRequestEvent.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.issuing.Authorization; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingAuthorizationRequestEvent 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 Authorization fetchRelatedObject() throws StripeException { + return (Authorization) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingAuthorizationRequestEventNotification.java b/src/main/java/com/stripe/events/V1IssuingAuthorizationRequestEventNotification.java new file mode 100644 index 00000000000..fb0beab0ef6 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingAuthorizationRequestEventNotification.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.issuing.Authorization; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingAuthorizationRequestEventNotification 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 Authorization fetchRelatedObject() throws StripeException { + return (Authorization) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingAuthorizationRequestEvent fetchEvent() throws StripeException { + return (V1IssuingAuthorizationRequestEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingAuthorizationUpdatedEvent.java b/src/main/java/com/stripe/events/V1IssuingAuthorizationUpdatedEvent.java new file mode 100644 index 00000000000..3090bf51460 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingAuthorizationUpdatedEvent.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.issuing.Authorization; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingAuthorizationUpdatedEvent 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 Authorization fetchRelatedObject() throws StripeException { + return (Authorization) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingAuthorizationUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingAuthorizationUpdatedEventNotification.java new file mode 100644 index 00000000000..05bf9cda62b --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingAuthorizationUpdatedEventNotification.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.issuing.Authorization; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingAuthorizationUpdatedEventNotification 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 Authorization fetchRelatedObject() throws StripeException { + return (Authorization) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingAuthorizationUpdatedEvent fetchEvent() throws StripeException { + return (V1IssuingAuthorizationUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingCardCreatedEvent.java b/src/main/java/com/stripe/events/V1IssuingCardCreatedEvent.java new file mode 100644 index 00000000000..49b9bbbb05e --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingCardCreatedEvent.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.issuing.Card; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingCardCreatedEvent 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 Card fetchRelatedObject() throws StripeException { + return (Card) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingCardCreatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingCardCreatedEventNotification.java new file mode 100644 index 00000000000..30334aa665d --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingCardCreatedEventNotification.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.issuing.Card; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingCardCreatedEventNotification 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 Card fetchRelatedObject() throws StripeException { + return (Card) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingCardCreatedEvent fetchEvent() throws StripeException { + return (V1IssuingCardCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingCardUpdatedEvent.java b/src/main/java/com/stripe/events/V1IssuingCardUpdatedEvent.java new file mode 100644 index 00000000000..fb34e5515d8 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingCardUpdatedEvent.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.issuing.Card; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingCardUpdatedEvent 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 Card fetchRelatedObject() throws StripeException { + return (Card) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingCardUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingCardUpdatedEventNotification.java new file mode 100644 index 00000000000..7d3e829f049 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingCardUpdatedEventNotification.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.issuing.Card; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingCardUpdatedEventNotification 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 Card fetchRelatedObject() throws StripeException { + return (Card) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingCardUpdatedEvent fetchEvent() throws StripeException { + return (V1IssuingCardUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingCardholderCreatedEvent.java b/src/main/java/com/stripe/events/V1IssuingCardholderCreatedEvent.java new file mode 100644 index 00000000000..e92014c20bb --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingCardholderCreatedEvent.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.issuing.Cardholder; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingCardholderCreatedEvent 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 Cardholder fetchRelatedObject() throws StripeException { + return (Cardholder) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingCardholderCreatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingCardholderCreatedEventNotification.java new file mode 100644 index 00000000000..89b0c5a1789 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingCardholderCreatedEventNotification.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.issuing.Cardholder; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingCardholderCreatedEventNotification 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 Cardholder fetchRelatedObject() throws StripeException { + return (Cardholder) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingCardholderCreatedEvent fetchEvent() throws StripeException { + return (V1IssuingCardholderCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingCardholderUpdatedEvent.java b/src/main/java/com/stripe/events/V1IssuingCardholderUpdatedEvent.java new file mode 100644 index 00000000000..af2e9a65aef --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingCardholderUpdatedEvent.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.issuing.Cardholder; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingCardholderUpdatedEvent 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 Cardholder fetchRelatedObject() throws StripeException { + return (Cardholder) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingCardholderUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingCardholderUpdatedEventNotification.java new file mode 100644 index 00000000000..59413a8a342 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingCardholderUpdatedEventNotification.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.issuing.Cardholder; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingCardholderUpdatedEventNotification 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 Cardholder fetchRelatedObject() throws StripeException { + return (Cardholder) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingCardholderUpdatedEvent fetchEvent() throws StripeException { + return (V1IssuingCardholderUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeClosedEvent.java b/src/main/java/com/stripe/events/V1IssuingDisputeClosedEvent.java new file mode 100644 index 00000000000..2e80bcea5b0 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeClosedEvent.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.issuing.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeClosedEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeClosedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingDisputeClosedEventNotification.java new file mode 100644 index 00000000000..546a7dafb19 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeClosedEventNotification.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.issuing.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeClosedEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingDisputeClosedEvent fetchEvent() throws StripeException { + return (V1IssuingDisputeClosedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeCreatedEvent.java b/src/main/java/com/stripe/events/V1IssuingDisputeCreatedEvent.java new file mode 100644 index 00000000000..7c6586de1ee --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeCreatedEvent.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.issuing.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeCreatedEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeCreatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingDisputeCreatedEventNotification.java new file mode 100644 index 00000000000..8f33edd8d96 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeCreatedEventNotification.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.issuing.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeCreatedEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingDisputeCreatedEvent fetchEvent() throws StripeException { + return (V1IssuingDisputeCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeFundsReinstatedEvent.java b/src/main/java/com/stripe/events/V1IssuingDisputeFundsReinstatedEvent.java new file mode 100644 index 00000000000..5bf44f5e671 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeFundsReinstatedEvent.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.issuing.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeFundsReinstatedEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeFundsReinstatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingDisputeFundsReinstatedEventNotification.java new file mode 100644 index 00000000000..527f14ab617 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeFundsReinstatedEventNotification.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.issuing.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeFundsReinstatedEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingDisputeFundsReinstatedEvent fetchEvent() throws StripeException { + return (V1IssuingDisputeFundsReinstatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeFundsRescindedEvent.java b/src/main/java/com/stripe/events/V1IssuingDisputeFundsRescindedEvent.java new file mode 100644 index 00000000000..13112c892ab --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeFundsRescindedEvent.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.issuing.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeFundsRescindedEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeFundsRescindedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingDisputeFundsRescindedEventNotification.java new file mode 100644 index 00000000000..25d0b1fa3ca --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeFundsRescindedEventNotification.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.issuing.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeFundsRescindedEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingDisputeFundsRescindedEvent fetchEvent() throws StripeException { + return (V1IssuingDisputeFundsRescindedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeSubmittedEvent.java b/src/main/java/com/stripe/events/V1IssuingDisputeSubmittedEvent.java new file mode 100644 index 00000000000..fb234946cd3 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeSubmittedEvent.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.issuing.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeSubmittedEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeSubmittedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingDisputeSubmittedEventNotification.java new file mode 100644 index 00000000000..3ce7b87902d --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeSubmittedEventNotification.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.issuing.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeSubmittedEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingDisputeSubmittedEvent fetchEvent() throws StripeException { + return (V1IssuingDisputeSubmittedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeUpdatedEvent.java b/src/main/java/com/stripe/events/V1IssuingDisputeUpdatedEvent.java new file mode 100644 index 00000000000..23c218ec806 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeUpdatedEvent.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.issuing.Dispute; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeUpdatedEvent 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingDisputeUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingDisputeUpdatedEventNotification.java new file mode 100644 index 00000000000..ccbbed2e922 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingDisputeUpdatedEventNotification.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.issuing.Dispute; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingDisputeUpdatedEventNotification 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 Dispute fetchRelatedObject() throws StripeException { + return (Dispute) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingDisputeUpdatedEvent fetchEvent() throws StripeException { + return (V1IssuingDisputeUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignActivatedEvent.java b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignActivatedEvent.java new file mode 100644 index 00000000000..8b2530b460e --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignActivatedEvent.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.issuing.PersonalizationDesign; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingPersonalizationDesignActivatedEvent 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 PersonalizationDesign fetchRelatedObject() throws StripeException { + return (PersonalizationDesign) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignActivatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignActivatedEventNotification.java new file mode 100644 index 00000000000..1612e9fd213 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignActivatedEventNotification.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.issuing.PersonalizationDesign; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingPersonalizationDesignActivatedEventNotification + 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 PersonalizationDesign fetchRelatedObject() throws StripeException { + return (PersonalizationDesign) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingPersonalizationDesignActivatedEvent fetchEvent() throws StripeException { + return (V1IssuingPersonalizationDesignActivatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignDeactivatedEvent.java b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignDeactivatedEvent.java new file mode 100644 index 00000000000..72a5dcee49a --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignDeactivatedEvent.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.issuing.PersonalizationDesign; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingPersonalizationDesignDeactivatedEvent 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 PersonalizationDesign fetchRelatedObject() throws StripeException { + return (PersonalizationDesign) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignDeactivatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignDeactivatedEventNotification.java new file mode 100644 index 00000000000..f154a7a4571 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignDeactivatedEventNotification.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.issuing.PersonalizationDesign; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingPersonalizationDesignDeactivatedEventNotification + 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 PersonalizationDesign fetchRelatedObject() throws StripeException { + return (PersonalizationDesign) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingPersonalizationDesignDeactivatedEvent fetchEvent() throws StripeException { + return (V1IssuingPersonalizationDesignDeactivatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignRejectedEvent.java b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignRejectedEvent.java new file mode 100644 index 00000000000..81ad30b5d23 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignRejectedEvent.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.issuing.PersonalizationDesign; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingPersonalizationDesignRejectedEvent 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 PersonalizationDesign fetchRelatedObject() throws StripeException { + return (PersonalizationDesign) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignRejectedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignRejectedEventNotification.java new file mode 100644 index 00000000000..4b650d027cd --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignRejectedEventNotification.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.issuing.PersonalizationDesign; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingPersonalizationDesignRejectedEventNotification + 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 PersonalizationDesign fetchRelatedObject() throws StripeException { + return (PersonalizationDesign) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingPersonalizationDesignRejectedEvent fetchEvent() throws StripeException { + return (V1IssuingPersonalizationDesignRejectedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignUpdatedEvent.java b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignUpdatedEvent.java new file mode 100644 index 00000000000..b6ea273836b --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignUpdatedEvent.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.issuing.PersonalizationDesign; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingPersonalizationDesignUpdatedEvent 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 PersonalizationDesign fetchRelatedObject() throws StripeException { + return (PersonalizationDesign) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignUpdatedEventNotification.java new file mode 100644 index 00000000000..f8550609c1b --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignUpdatedEventNotification.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.issuing.PersonalizationDesign; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingPersonalizationDesignUpdatedEventNotification + 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 PersonalizationDesign fetchRelatedObject() throws StripeException { + return (PersonalizationDesign) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingPersonalizationDesignUpdatedEvent fetchEvent() throws StripeException { + return (V1IssuingPersonalizationDesignUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingTokenCreatedEvent.java b/src/main/java/com/stripe/events/V1IssuingTokenCreatedEvent.java new file mode 100644 index 00000000000..0d199ec201f --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingTokenCreatedEvent.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.issuing.Token; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingTokenCreatedEvent 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 Token fetchRelatedObject() throws StripeException { + return (Token) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingTokenCreatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingTokenCreatedEventNotification.java new file mode 100644 index 00000000000..3a55eefe1c2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingTokenCreatedEventNotification.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.issuing.Token; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingTokenCreatedEventNotification 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 Token fetchRelatedObject() throws StripeException { + return (Token) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingTokenCreatedEvent fetchEvent() throws StripeException { + return (V1IssuingTokenCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingTokenUpdatedEvent.java b/src/main/java/com/stripe/events/V1IssuingTokenUpdatedEvent.java new file mode 100644 index 00000000000..6d5abfea0e2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingTokenUpdatedEvent.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.issuing.Token; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingTokenUpdatedEvent 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 Token fetchRelatedObject() throws StripeException { + return (Token) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingTokenUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingTokenUpdatedEventNotification.java new file mode 100644 index 00000000000..bf5a5e53cf8 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingTokenUpdatedEventNotification.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.issuing.Token; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingTokenUpdatedEventNotification 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 Token fetchRelatedObject() throws StripeException { + return (Token) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingTokenUpdatedEvent fetchEvent() throws StripeException { + return (V1IssuingTokenUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingTransactionCreatedEvent.java b/src/main/java/com/stripe/events/V1IssuingTransactionCreatedEvent.java new file mode 100644 index 00000000000..c077bfff722 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingTransactionCreatedEvent.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.issuing.Transaction; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingTransactionCreatedEvent 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 Transaction fetchRelatedObject() throws StripeException { + return (Transaction) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingTransactionCreatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingTransactionCreatedEventNotification.java new file mode 100644 index 00000000000..885cc755930 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingTransactionCreatedEventNotification.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.issuing.Transaction; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingTransactionCreatedEventNotification 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 Transaction fetchRelatedObject() throws StripeException { + return (Transaction) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingTransactionCreatedEvent fetchEvent() throws StripeException { + return (V1IssuingTransactionCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.java b/src/main/java/com/stripe/events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.java new file mode 100644 index 00000000000..2e47539179f --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.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.issuing.Transaction; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent 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 Transaction fetchRelatedObject() throws StripeException { + return (Transaction) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification.java new file mode 100644 index 00000000000..e7a2f5d996d --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification.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.issuing.Transaction; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification + 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 Transaction fetchRelatedObject() throws StripeException { + return (Transaction) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent fetchEvent() + throws StripeException { + return (V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingTransactionUpdatedEvent.java b/src/main/java/com/stripe/events/V1IssuingTransactionUpdatedEvent.java new file mode 100644 index 00000000000..19b73ae5fa2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingTransactionUpdatedEvent.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.issuing.Transaction; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1IssuingTransactionUpdatedEvent 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 Transaction fetchRelatedObject() throws StripeException { + return (Transaction) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1IssuingTransactionUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1IssuingTransactionUpdatedEventNotification.java new file mode 100644 index 00000000000..0d9bbfce9b1 --- /dev/null +++ b/src/main/java/com/stripe/events/V1IssuingTransactionUpdatedEventNotification.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.issuing.Transaction; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1IssuingTransactionUpdatedEventNotification 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 Transaction fetchRelatedObject() throws StripeException { + return (Transaction) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1IssuingTransactionUpdatedEvent fetchEvent() throws StripeException { + return (V1IssuingTransactionUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1MandateUpdatedEvent.java b/src/main/java/com/stripe/events/V1MandateUpdatedEvent.java new file mode 100644 index 00000000000..a4ba0955f21 --- /dev/null +++ b/src/main/java/com/stripe/events/V1MandateUpdatedEvent.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.Mandate; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1MandateUpdatedEvent 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 Mandate fetchRelatedObject() throws StripeException { + return (Mandate) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1MandateUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1MandateUpdatedEventNotification.java new file mode 100644 index 00000000000..327615f6b82 --- /dev/null +++ b/src/main/java/com/stripe/events/V1MandateUpdatedEventNotification.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.Mandate; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1MandateUpdatedEventNotification 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 Mandate fetchRelatedObject() throws StripeException { + return (Mandate) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1MandateUpdatedEvent fetchEvent() throws StripeException { + return (V1MandateUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentAmountCapturableUpdatedEvent.java b/src/main/java/com/stripe/events/V1PaymentIntentAmountCapturableUpdatedEvent.java new file mode 100644 index 00000000000..125635d82d2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentAmountCapturableUpdatedEvent.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.PaymentIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentAmountCapturableUpdatedEvent 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentAmountCapturableUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1PaymentIntentAmountCapturableUpdatedEventNotification.java new file mode 100644 index 00000000000..c48ab863630 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentAmountCapturableUpdatedEventNotification.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.PaymentIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentAmountCapturableUpdatedEventNotification + 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentIntentAmountCapturableUpdatedEvent fetchEvent() throws StripeException { + return (V1PaymentIntentAmountCapturableUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentCanceledEvent.java b/src/main/java/com/stripe/events/V1PaymentIntentCanceledEvent.java new file mode 100644 index 00000000000..3128c0c60ba --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentCanceledEvent.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.PaymentIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentCanceledEvent 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentCanceledEventNotification.java b/src/main/java/com/stripe/events/V1PaymentIntentCanceledEventNotification.java new file mode 100644 index 00000000000..ae061b63cb1 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentCanceledEventNotification.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.PaymentIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentCanceledEventNotification 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentIntentCanceledEvent fetchEvent() throws StripeException { + return (V1PaymentIntentCanceledEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentCreatedEvent.java b/src/main/java/com/stripe/events/V1PaymentIntentCreatedEvent.java new file mode 100644 index 00000000000..1f183164088 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentCreatedEvent.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.PaymentIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentCreatedEvent 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentCreatedEventNotification.java b/src/main/java/com/stripe/events/V1PaymentIntentCreatedEventNotification.java new file mode 100644 index 00000000000..e2b50048bcc --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentCreatedEventNotification.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.PaymentIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentCreatedEventNotification 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentIntentCreatedEvent fetchEvent() throws StripeException { + return (V1PaymentIntentCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentPartiallyFundedEvent.java b/src/main/java/com/stripe/events/V1PaymentIntentPartiallyFundedEvent.java new file mode 100644 index 00000000000..c1ba0d4a8c1 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentPartiallyFundedEvent.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.PaymentIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentPartiallyFundedEvent 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentPartiallyFundedEventNotification.java b/src/main/java/com/stripe/events/V1PaymentIntentPartiallyFundedEventNotification.java new file mode 100644 index 00000000000..c819f47b84f --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentPartiallyFundedEventNotification.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.PaymentIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentPartiallyFundedEventNotification 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentIntentPartiallyFundedEvent fetchEvent() throws StripeException { + return (V1PaymentIntentPartiallyFundedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentPaymentFailedEvent.java b/src/main/java/com/stripe/events/V1PaymentIntentPaymentFailedEvent.java new file mode 100644 index 00000000000..544b74fee5a --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentPaymentFailedEvent.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.PaymentIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentPaymentFailedEvent 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentPaymentFailedEventNotification.java b/src/main/java/com/stripe/events/V1PaymentIntentPaymentFailedEventNotification.java new file mode 100644 index 00000000000..43bdd843dd8 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentPaymentFailedEventNotification.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.PaymentIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentPaymentFailedEventNotification 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentIntentPaymentFailedEvent fetchEvent() throws StripeException { + return (V1PaymentIntentPaymentFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentProcessingEvent.java b/src/main/java/com/stripe/events/V1PaymentIntentProcessingEvent.java new file mode 100644 index 00000000000..eab8c151bdd --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentProcessingEvent.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.PaymentIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentProcessingEvent 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentProcessingEventNotification.java b/src/main/java/com/stripe/events/V1PaymentIntentProcessingEventNotification.java new file mode 100644 index 00000000000..8eeb2ab0315 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentProcessingEventNotification.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.PaymentIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentProcessingEventNotification 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentIntentProcessingEvent fetchEvent() throws StripeException { + return (V1PaymentIntentProcessingEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentRequiresActionEvent.java b/src/main/java/com/stripe/events/V1PaymentIntentRequiresActionEvent.java new file mode 100644 index 00000000000..231e633a973 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentRequiresActionEvent.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.PaymentIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentRequiresActionEvent 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentRequiresActionEventNotification.java b/src/main/java/com/stripe/events/V1PaymentIntentRequiresActionEventNotification.java new file mode 100644 index 00000000000..eb918498eae --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentRequiresActionEventNotification.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.PaymentIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentRequiresActionEventNotification 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentIntentRequiresActionEvent fetchEvent() throws StripeException { + return (V1PaymentIntentRequiresActionEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentSucceededEvent.java b/src/main/java/com/stripe/events/V1PaymentIntentSucceededEvent.java new file mode 100644 index 00000000000..acedb9f6990 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentSucceededEvent.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.PaymentIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentSucceededEvent 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentIntentSucceededEventNotification.java b/src/main/java/com/stripe/events/V1PaymentIntentSucceededEventNotification.java new file mode 100644 index 00000000000..76bcccee443 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentIntentSucceededEventNotification.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.PaymentIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentIntentSucceededEventNotification 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 PaymentIntent fetchRelatedObject() throws StripeException { + return (PaymentIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentIntentSucceededEvent fetchEvent() throws StripeException { + return (V1PaymentIntentSucceededEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentLinkCreatedEvent.java b/src/main/java/com/stripe/events/V1PaymentLinkCreatedEvent.java new file mode 100644 index 00000000000..03ee30b4db2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentLinkCreatedEvent.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.PaymentLink; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentLinkCreatedEvent 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 PaymentLink fetchRelatedObject() throws StripeException { + return (PaymentLink) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentLinkCreatedEventNotification.java b/src/main/java/com/stripe/events/V1PaymentLinkCreatedEventNotification.java new file mode 100644 index 00000000000..1bd86d1ee59 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentLinkCreatedEventNotification.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.PaymentLink; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentLinkCreatedEventNotification 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 PaymentLink fetchRelatedObject() throws StripeException { + return (PaymentLink) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentLinkCreatedEvent fetchEvent() throws StripeException { + return (V1PaymentLinkCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentLinkUpdatedEvent.java b/src/main/java/com/stripe/events/V1PaymentLinkUpdatedEvent.java new file mode 100644 index 00000000000..936fbb564b5 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentLinkUpdatedEvent.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.PaymentLink; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentLinkUpdatedEvent 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 PaymentLink fetchRelatedObject() throws StripeException { + return (PaymentLink) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentLinkUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1PaymentLinkUpdatedEventNotification.java new file mode 100644 index 00000000000..27b2b07d7af --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentLinkUpdatedEventNotification.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.PaymentLink; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentLinkUpdatedEventNotification 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 PaymentLink fetchRelatedObject() throws StripeException { + return (PaymentLink) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentLinkUpdatedEvent fetchEvent() throws StripeException { + return (V1PaymentLinkUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentMethodAttachedEvent.java b/src/main/java/com/stripe/events/V1PaymentMethodAttachedEvent.java new file mode 100644 index 00000000000..966af690d45 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentMethodAttachedEvent.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.PaymentMethod; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentMethodAttachedEvent 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 PaymentMethod fetchRelatedObject() throws StripeException { + return (PaymentMethod) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentMethodAttachedEventNotification.java b/src/main/java/com/stripe/events/V1PaymentMethodAttachedEventNotification.java new file mode 100644 index 00000000000..9ddd83c1293 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentMethodAttachedEventNotification.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.PaymentMethod; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentMethodAttachedEventNotification 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 PaymentMethod fetchRelatedObject() throws StripeException { + return (PaymentMethod) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentMethodAttachedEvent fetchEvent() throws StripeException { + return (V1PaymentMethodAttachedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentMethodAutomaticallyUpdatedEvent.java b/src/main/java/com/stripe/events/V1PaymentMethodAutomaticallyUpdatedEvent.java new file mode 100644 index 00000000000..024919bccfb --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentMethodAutomaticallyUpdatedEvent.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.PaymentMethod; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentMethodAutomaticallyUpdatedEvent 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 PaymentMethod fetchRelatedObject() throws StripeException { + return (PaymentMethod) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentMethodAutomaticallyUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1PaymentMethodAutomaticallyUpdatedEventNotification.java new file mode 100644 index 00000000000..558bf1fb067 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentMethodAutomaticallyUpdatedEventNotification.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.PaymentMethod; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentMethodAutomaticallyUpdatedEventNotification 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 PaymentMethod fetchRelatedObject() throws StripeException { + return (PaymentMethod) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentMethodAutomaticallyUpdatedEvent fetchEvent() throws StripeException { + return (V1PaymentMethodAutomaticallyUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentMethodDetachedEvent.java b/src/main/java/com/stripe/events/V1PaymentMethodDetachedEvent.java new file mode 100644 index 00000000000..f33dafe3ea7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentMethodDetachedEvent.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.PaymentMethod; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentMethodDetachedEvent 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 PaymentMethod fetchRelatedObject() throws StripeException { + return (PaymentMethod) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentMethodDetachedEventNotification.java b/src/main/java/com/stripe/events/V1PaymentMethodDetachedEventNotification.java new file mode 100644 index 00000000000..af92fdd441d --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentMethodDetachedEventNotification.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.PaymentMethod; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentMethodDetachedEventNotification 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 PaymentMethod fetchRelatedObject() throws StripeException { + return (PaymentMethod) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentMethodDetachedEvent fetchEvent() throws StripeException { + return (V1PaymentMethodDetachedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentMethodUpdatedEvent.java b/src/main/java/com/stripe/events/V1PaymentMethodUpdatedEvent.java new file mode 100644 index 00000000000..fef67d012b7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentMethodUpdatedEvent.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.PaymentMethod; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PaymentMethodUpdatedEvent 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 PaymentMethod fetchRelatedObject() throws StripeException { + return (PaymentMethod) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PaymentMethodUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1PaymentMethodUpdatedEventNotification.java new file mode 100644 index 00000000000..2b2a01d5f5a --- /dev/null +++ b/src/main/java/com/stripe/events/V1PaymentMethodUpdatedEventNotification.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.PaymentMethod; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PaymentMethodUpdatedEventNotification 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 PaymentMethod fetchRelatedObject() throws StripeException { + return (PaymentMethod) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PaymentMethodUpdatedEvent fetchEvent() throws StripeException { + return (V1PaymentMethodUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutCanceledEvent.java b/src/main/java/com/stripe/events/V1PayoutCanceledEvent.java new file mode 100644 index 00000000000..9880241c8a0 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutCanceledEvent.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.Payout; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PayoutCanceledEvent 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutCanceledEventNotification.java b/src/main/java/com/stripe/events/V1PayoutCanceledEventNotification.java new file mode 100644 index 00000000000..a38ea7b2e34 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutCanceledEventNotification.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.Payout; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PayoutCanceledEventNotification 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PayoutCanceledEvent fetchEvent() throws StripeException { + return (V1PayoutCanceledEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutCreatedEvent.java b/src/main/java/com/stripe/events/V1PayoutCreatedEvent.java new file mode 100644 index 00000000000..80c114679f7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutCreatedEvent.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.Payout; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PayoutCreatedEvent 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutCreatedEventNotification.java b/src/main/java/com/stripe/events/V1PayoutCreatedEventNotification.java new file mode 100644 index 00000000000..bcbabe2888d --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutCreatedEventNotification.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.Payout; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PayoutCreatedEventNotification 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PayoutCreatedEvent fetchEvent() throws StripeException { + return (V1PayoutCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutFailedEvent.java b/src/main/java/com/stripe/events/V1PayoutFailedEvent.java new file mode 100644 index 00000000000..707174f1813 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutFailedEvent.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.Payout; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PayoutFailedEvent 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutFailedEventNotification.java b/src/main/java/com/stripe/events/V1PayoutFailedEventNotification.java new file mode 100644 index 00000000000..b070ac3b663 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutFailedEventNotification.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.Payout; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PayoutFailedEventNotification 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PayoutFailedEvent fetchEvent() throws StripeException { + return (V1PayoutFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutPaidEvent.java b/src/main/java/com/stripe/events/V1PayoutPaidEvent.java new file mode 100644 index 00000000000..1d74dc45b70 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutPaidEvent.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.Payout; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PayoutPaidEvent 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutPaidEventNotification.java b/src/main/java/com/stripe/events/V1PayoutPaidEventNotification.java new file mode 100644 index 00000000000..6e0fda51352 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutPaidEventNotification.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.Payout; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PayoutPaidEventNotification 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PayoutPaidEvent fetchEvent() throws StripeException { + return (V1PayoutPaidEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutReconciliationCompletedEvent.java b/src/main/java/com/stripe/events/V1PayoutReconciliationCompletedEvent.java new file mode 100644 index 00000000000..95a426963a0 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutReconciliationCompletedEvent.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.Payout; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PayoutReconciliationCompletedEvent 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutReconciliationCompletedEventNotification.java b/src/main/java/com/stripe/events/V1PayoutReconciliationCompletedEventNotification.java new file mode 100644 index 00000000000..d38dbf430b7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutReconciliationCompletedEventNotification.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.Payout; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PayoutReconciliationCompletedEventNotification 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PayoutReconciliationCompletedEvent fetchEvent() throws StripeException { + return (V1PayoutReconciliationCompletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutUpdatedEvent.java b/src/main/java/com/stripe/events/V1PayoutUpdatedEvent.java new file mode 100644 index 00000000000..432c1639930 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutUpdatedEvent.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.Payout; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PayoutUpdatedEvent 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PayoutUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1PayoutUpdatedEventNotification.java new file mode 100644 index 00000000000..34124d511a2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PayoutUpdatedEventNotification.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.Payout; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PayoutUpdatedEventNotification 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 Payout fetchRelatedObject() throws StripeException { + return (Payout) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PayoutUpdatedEvent fetchEvent() throws StripeException { + return (V1PayoutUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PersonCreatedEvent.java b/src/main/java/com/stripe/events/V1PersonCreatedEvent.java new file mode 100644 index 00000000000..6f78717eb13 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PersonCreatedEvent.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.Person; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PersonCreatedEvent 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 Person fetchRelatedObject() throws StripeException { + return (Person) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PersonCreatedEventNotification.java b/src/main/java/com/stripe/events/V1PersonCreatedEventNotification.java new file mode 100644 index 00000000000..40a7e48acb8 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PersonCreatedEventNotification.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.Person; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PersonCreatedEventNotification 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 Person fetchRelatedObject() throws StripeException { + return (Person) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PersonCreatedEvent fetchEvent() throws StripeException { + return (V1PersonCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PersonDeletedEvent.java b/src/main/java/com/stripe/events/V1PersonDeletedEvent.java new file mode 100644 index 00000000000..5396368b76c --- /dev/null +++ b/src/main/java/com/stripe/events/V1PersonDeletedEvent.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.Person; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PersonDeletedEvent 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 Person fetchRelatedObject() throws StripeException { + return (Person) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PersonDeletedEventNotification.java b/src/main/java/com/stripe/events/V1PersonDeletedEventNotification.java new file mode 100644 index 00000000000..a754f099536 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PersonDeletedEventNotification.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.Person; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PersonDeletedEventNotification 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 Person fetchRelatedObject() throws StripeException { + return (Person) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PersonDeletedEvent fetchEvent() throws StripeException { + return (V1PersonDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PersonUpdatedEvent.java b/src/main/java/com/stripe/events/V1PersonUpdatedEvent.java new file mode 100644 index 00000000000..06823f59274 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PersonUpdatedEvent.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.Person; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PersonUpdatedEvent 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 Person fetchRelatedObject() throws StripeException { + return (Person) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PersonUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1PersonUpdatedEventNotification.java new file mode 100644 index 00000000000..529e46ede26 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PersonUpdatedEventNotification.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.Person; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PersonUpdatedEventNotification 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 Person fetchRelatedObject() throws StripeException { + return (Person) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PersonUpdatedEvent fetchEvent() throws StripeException { + return (V1PersonUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PlanCreatedEvent.java b/src/main/java/com/stripe/events/V1PlanCreatedEvent.java new file mode 100644 index 00000000000..5cf7622e03a --- /dev/null +++ b/src/main/java/com/stripe/events/V1PlanCreatedEvent.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.Plan; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PlanCreatedEvent 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 Plan fetchRelatedObject() throws StripeException { + return (Plan) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PlanCreatedEventNotification.java b/src/main/java/com/stripe/events/V1PlanCreatedEventNotification.java new file mode 100644 index 00000000000..2275392a1d6 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PlanCreatedEventNotification.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.Plan; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PlanCreatedEventNotification 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 Plan fetchRelatedObject() throws StripeException { + return (Plan) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PlanCreatedEvent fetchEvent() throws StripeException { + return (V1PlanCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PlanDeletedEvent.java b/src/main/java/com/stripe/events/V1PlanDeletedEvent.java new file mode 100644 index 00000000000..e5caf8b5c2d --- /dev/null +++ b/src/main/java/com/stripe/events/V1PlanDeletedEvent.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.Plan; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PlanDeletedEvent 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 Plan fetchRelatedObject() throws StripeException { + return (Plan) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PlanDeletedEventNotification.java b/src/main/java/com/stripe/events/V1PlanDeletedEventNotification.java new file mode 100644 index 00000000000..00da902d399 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PlanDeletedEventNotification.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.Plan; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PlanDeletedEventNotification 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 Plan fetchRelatedObject() throws StripeException { + return (Plan) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PlanDeletedEvent fetchEvent() throws StripeException { + return (V1PlanDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PlanUpdatedEvent.java b/src/main/java/com/stripe/events/V1PlanUpdatedEvent.java new file mode 100644 index 00000000000..8327f97db13 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PlanUpdatedEvent.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.Plan; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PlanUpdatedEvent 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 Plan fetchRelatedObject() throws StripeException { + return (Plan) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PlanUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1PlanUpdatedEventNotification.java new file mode 100644 index 00000000000..f51016f9508 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PlanUpdatedEventNotification.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.Plan; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PlanUpdatedEventNotification 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 Plan fetchRelatedObject() throws StripeException { + return (Plan) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PlanUpdatedEvent fetchEvent() throws StripeException { + return (V1PlanUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PriceCreatedEvent.java b/src/main/java/com/stripe/events/V1PriceCreatedEvent.java new file mode 100644 index 00000000000..97bbfb31cc0 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PriceCreatedEvent.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.Price; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PriceCreatedEvent 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 Price fetchRelatedObject() throws StripeException { + return (Price) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PriceCreatedEventNotification.java b/src/main/java/com/stripe/events/V1PriceCreatedEventNotification.java new file mode 100644 index 00000000000..51ea14332aa --- /dev/null +++ b/src/main/java/com/stripe/events/V1PriceCreatedEventNotification.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.Price; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PriceCreatedEventNotification 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 Price fetchRelatedObject() throws StripeException { + return (Price) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PriceCreatedEvent fetchEvent() throws StripeException { + return (V1PriceCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PriceDeletedEvent.java b/src/main/java/com/stripe/events/V1PriceDeletedEvent.java new file mode 100644 index 00000000000..c31b3478f7e --- /dev/null +++ b/src/main/java/com/stripe/events/V1PriceDeletedEvent.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.Price; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PriceDeletedEvent 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 Price fetchRelatedObject() throws StripeException { + return (Price) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PriceDeletedEventNotification.java b/src/main/java/com/stripe/events/V1PriceDeletedEventNotification.java new file mode 100644 index 00000000000..0ecdb9f4537 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PriceDeletedEventNotification.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.Price; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PriceDeletedEventNotification 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 Price fetchRelatedObject() throws StripeException { + return (Price) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PriceDeletedEvent fetchEvent() throws StripeException { + return (V1PriceDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PriceUpdatedEvent.java b/src/main/java/com/stripe/events/V1PriceUpdatedEvent.java new file mode 100644 index 00000000000..ff5418310cf --- /dev/null +++ b/src/main/java/com/stripe/events/V1PriceUpdatedEvent.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.Price; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PriceUpdatedEvent 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 Price fetchRelatedObject() throws StripeException { + return (Price) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PriceUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1PriceUpdatedEventNotification.java new file mode 100644 index 00000000000..fecac238782 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PriceUpdatedEventNotification.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.Price; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PriceUpdatedEventNotification 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 Price fetchRelatedObject() throws StripeException { + return (Price) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PriceUpdatedEvent fetchEvent() throws StripeException { + return (V1PriceUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ProductCreatedEvent.java b/src/main/java/com/stripe/events/V1ProductCreatedEvent.java new file mode 100644 index 00000000000..b897a569ebd --- /dev/null +++ b/src/main/java/com/stripe/events/V1ProductCreatedEvent.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.Product; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ProductCreatedEvent 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 Product fetchRelatedObject() throws StripeException { + return (Product) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ProductCreatedEventNotification.java b/src/main/java/com/stripe/events/V1ProductCreatedEventNotification.java new file mode 100644 index 00000000000..afc202f2f8a --- /dev/null +++ b/src/main/java/com/stripe/events/V1ProductCreatedEventNotification.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.Product; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ProductCreatedEventNotification 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 Product fetchRelatedObject() throws StripeException { + return (Product) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ProductCreatedEvent fetchEvent() throws StripeException { + return (V1ProductCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ProductDeletedEvent.java b/src/main/java/com/stripe/events/V1ProductDeletedEvent.java new file mode 100644 index 00000000000..5c8c9ac2945 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ProductDeletedEvent.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.Product; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ProductDeletedEvent 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 Product fetchRelatedObject() throws StripeException { + return (Product) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ProductDeletedEventNotification.java b/src/main/java/com/stripe/events/V1ProductDeletedEventNotification.java new file mode 100644 index 00000000000..a74f6bf561f --- /dev/null +++ b/src/main/java/com/stripe/events/V1ProductDeletedEventNotification.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.Product; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ProductDeletedEventNotification 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 Product fetchRelatedObject() throws StripeException { + return (Product) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ProductDeletedEvent fetchEvent() throws StripeException { + return (V1ProductDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ProductUpdatedEvent.java b/src/main/java/com/stripe/events/V1ProductUpdatedEvent.java new file mode 100644 index 00000000000..d17c9bff2eb --- /dev/null +++ b/src/main/java/com/stripe/events/V1ProductUpdatedEvent.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.Product; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ProductUpdatedEvent 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 Product fetchRelatedObject() throws StripeException { + return (Product) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ProductUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1ProductUpdatedEventNotification.java new file mode 100644 index 00000000000..9028939661d --- /dev/null +++ b/src/main/java/com/stripe/events/V1ProductUpdatedEventNotification.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.Product; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ProductUpdatedEventNotification 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 Product fetchRelatedObject() throws StripeException { + return (Product) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ProductUpdatedEvent fetchEvent() throws StripeException { + return (V1ProductUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PromotionCodeCreatedEvent.java b/src/main/java/com/stripe/events/V1PromotionCodeCreatedEvent.java new file mode 100644 index 00000000000..d3c26846554 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PromotionCodeCreatedEvent.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.PromotionCode; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PromotionCodeCreatedEvent 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 PromotionCode fetchRelatedObject() throws StripeException { + return (PromotionCode) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PromotionCodeCreatedEventNotification.java b/src/main/java/com/stripe/events/V1PromotionCodeCreatedEventNotification.java new file mode 100644 index 00000000000..6ed63cf5198 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PromotionCodeCreatedEventNotification.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.PromotionCode; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PromotionCodeCreatedEventNotification 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 PromotionCode fetchRelatedObject() throws StripeException { + return (PromotionCode) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PromotionCodeCreatedEvent fetchEvent() throws StripeException { + return (V1PromotionCodeCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1PromotionCodeUpdatedEvent.java b/src/main/java/com/stripe/events/V1PromotionCodeUpdatedEvent.java new file mode 100644 index 00000000000..dd7b8a7f022 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PromotionCodeUpdatedEvent.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.PromotionCode; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1PromotionCodeUpdatedEvent 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 PromotionCode fetchRelatedObject() throws StripeException { + return (PromotionCode) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1PromotionCodeUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1PromotionCodeUpdatedEventNotification.java new file mode 100644 index 00000000000..89ad698d464 --- /dev/null +++ b/src/main/java/com/stripe/events/V1PromotionCodeUpdatedEventNotification.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.PromotionCode; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1PromotionCodeUpdatedEventNotification 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 PromotionCode fetchRelatedObject() throws StripeException { + return (PromotionCode) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1PromotionCodeUpdatedEvent fetchEvent() throws StripeException { + return (V1PromotionCodeUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1QuoteAcceptedEvent.java b/src/main/java/com/stripe/events/V1QuoteAcceptedEvent.java new file mode 100644 index 00000000000..a717a5bdfc4 --- /dev/null +++ b/src/main/java/com/stripe/events/V1QuoteAcceptedEvent.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.Quote; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1QuoteAcceptedEvent 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 Quote fetchRelatedObject() throws StripeException { + return (Quote) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1QuoteAcceptedEventNotification.java b/src/main/java/com/stripe/events/V1QuoteAcceptedEventNotification.java new file mode 100644 index 00000000000..cc39ea862c5 --- /dev/null +++ b/src/main/java/com/stripe/events/V1QuoteAcceptedEventNotification.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.Quote; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1QuoteAcceptedEventNotification 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 Quote fetchRelatedObject() throws StripeException { + return (Quote) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1QuoteAcceptedEvent fetchEvent() throws StripeException { + return (V1QuoteAcceptedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1QuoteCanceledEvent.java b/src/main/java/com/stripe/events/V1QuoteCanceledEvent.java new file mode 100644 index 00000000000..7d7b85991fc --- /dev/null +++ b/src/main/java/com/stripe/events/V1QuoteCanceledEvent.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.Quote; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1QuoteCanceledEvent 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 Quote fetchRelatedObject() throws StripeException { + return (Quote) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1QuoteCanceledEventNotification.java b/src/main/java/com/stripe/events/V1QuoteCanceledEventNotification.java new file mode 100644 index 00000000000..a74a3413153 --- /dev/null +++ b/src/main/java/com/stripe/events/V1QuoteCanceledEventNotification.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.Quote; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1QuoteCanceledEventNotification 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 Quote fetchRelatedObject() throws StripeException { + return (Quote) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1QuoteCanceledEvent fetchEvent() throws StripeException { + return (V1QuoteCanceledEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1QuoteCreatedEvent.java b/src/main/java/com/stripe/events/V1QuoteCreatedEvent.java new file mode 100644 index 00000000000..d0eb99be401 --- /dev/null +++ b/src/main/java/com/stripe/events/V1QuoteCreatedEvent.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.Quote; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1QuoteCreatedEvent 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 Quote fetchRelatedObject() throws StripeException { + return (Quote) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1QuoteCreatedEventNotification.java b/src/main/java/com/stripe/events/V1QuoteCreatedEventNotification.java new file mode 100644 index 00000000000..9f4e397bb9f --- /dev/null +++ b/src/main/java/com/stripe/events/V1QuoteCreatedEventNotification.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.Quote; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1QuoteCreatedEventNotification 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 Quote fetchRelatedObject() throws StripeException { + return (Quote) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1QuoteCreatedEvent fetchEvent() throws StripeException { + return (V1QuoteCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1QuoteFinalizedEvent.java b/src/main/java/com/stripe/events/V1QuoteFinalizedEvent.java new file mode 100644 index 00000000000..16b9e221c9e --- /dev/null +++ b/src/main/java/com/stripe/events/V1QuoteFinalizedEvent.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.Quote; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1QuoteFinalizedEvent 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 Quote fetchRelatedObject() throws StripeException { + return (Quote) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1QuoteFinalizedEventNotification.java b/src/main/java/com/stripe/events/V1QuoteFinalizedEventNotification.java new file mode 100644 index 00000000000..45a937db593 --- /dev/null +++ b/src/main/java/com/stripe/events/V1QuoteFinalizedEventNotification.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.Quote; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1QuoteFinalizedEventNotification 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 Quote fetchRelatedObject() throws StripeException { + return (Quote) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1QuoteFinalizedEvent fetchEvent() throws StripeException { + return (V1QuoteFinalizedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEvent.java b/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEvent.java new file mode 100644 index 00000000000..34655420cb3 --- /dev/null +++ b/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEvent.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.radar.EarlyFraudWarning; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1RadarEarlyFraudWarningCreatedEvent 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 EarlyFraudWarning fetchRelatedObject() throws StripeException { + return (EarlyFraudWarning) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEventNotification.java b/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEventNotification.java new file mode 100644 index 00000000000..bf8897355ac --- /dev/null +++ b/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEventNotification.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.radar.EarlyFraudWarning; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1RadarEarlyFraudWarningCreatedEventNotification 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 EarlyFraudWarning fetchRelatedObject() throws StripeException { + return (EarlyFraudWarning) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1RadarEarlyFraudWarningCreatedEvent fetchEvent() throws StripeException { + return (V1RadarEarlyFraudWarningCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningUpdatedEvent.java b/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningUpdatedEvent.java new file mode 100644 index 00000000000..b6ce0785788 --- /dev/null +++ b/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningUpdatedEvent.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.radar.EarlyFraudWarning; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1RadarEarlyFraudWarningUpdatedEvent 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 EarlyFraudWarning fetchRelatedObject() throws StripeException { + return (EarlyFraudWarning) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningUpdatedEventNotification.java new file mode 100644 index 00000000000..a6b0751a535 --- /dev/null +++ b/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningUpdatedEventNotification.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.radar.EarlyFraudWarning; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1RadarEarlyFraudWarningUpdatedEventNotification 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 EarlyFraudWarning fetchRelatedObject() throws StripeException { + return (EarlyFraudWarning) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1RadarEarlyFraudWarningUpdatedEvent fetchEvent() throws StripeException { + return (V1RadarEarlyFraudWarningUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1RefundCreatedEvent.java b/src/main/java/com/stripe/events/V1RefundCreatedEvent.java new file mode 100644 index 00000000000..0b1feede61f --- /dev/null +++ b/src/main/java/com/stripe/events/V1RefundCreatedEvent.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.Refund; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1RefundCreatedEvent 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 Refund fetchRelatedObject() throws StripeException { + return (Refund) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1RefundCreatedEventNotification.java b/src/main/java/com/stripe/events/V1RefundCreatedEventNotification.java new file mode 100644 index 00000000000..998cb15407f --- /dev/null +++ b/src/main/java/com/stripe/events/V1RefundCreatedEventNotification.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.Refund; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1RefundCreatedEventNotification 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 Refund fetchRelatedObject() throws StripeException { + return (Refund) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1RefundCreatedEvent fetchEvent() throws StripeException { + return (V1RefundCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1RefundFailedEvent.java b/src/main/java/com/stripe/events/V1RefundFailedEvent.java new file mode 100644 index 00000000000..8f2e49fd82c --- /dev/null +++ b/src/main/java/com/stripe/events/V1RefundFailedEvent.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.Refund; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1RefundFailedEvent 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 Refund fetchRelatedObject() throws StripeException { + return (Refund) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1RefundFailedEventNotification.java b/src/main/java/com/stripe/events/V1RefundFailedEventNotification.java new file mode 100644 index 00000000000..4de1f8e6620 --- /dev/null +++ b/src/main/java/com/stripe/events/V1RefundFailedEventNotification.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.Refund; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1RefundFailedEventNotification 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 Refund fetchRelatedObject() throws StripeException { + return (Refund) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1RefundFailedEvent fetchEvent() throws StripeException { + return (V1RefundFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1RefundUpdatedEvent.java b/src/main/java/com/stripe/events/V1RefundUpdatedEvent.java new file mode 100644 index 00000000000..039754b13e5 --- /dev/null +++ b/src/main/java/com/stripe/events/V1RefundUpdatedEvent.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.Refund; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1RefundUpdatedEvent 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 Refund fetchRelatedObject() throws StripeException { + return (Refund) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1RefundUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1RefundUpdatedEventNotification.java new file mode 100644 index 00000000000..79c74de6baa --- /dev/null +++ b/src/main/java/com/stripe/events/V1RefundUpdatedEventNotification.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.Refund; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1RefundUpdatedEventNotification 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 Refund fetchRelatedObject() throws StripeException { + return (Refund) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1RefundUpdatedEvent fetchEvent() throws StripeException { + return (V1RefundUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ReviewClosedEvent.java b/src/main/java/com/stripe/events/V1ReviewClosedEvent.java new file mode 100644 index 00000000000..03c35b5d6c7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ReviewClosedEvent.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.Review; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ReviewClosedEvent 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 Review fetchRelatedObject() throws StripeException { + return (Review) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ReviewClosedEventNotification.java b/src/main/java/com/stripe/events/V1ReviewClosedEventNotification.java new file mode 100644 index 00000000000..b91dc71d8b1 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ReviewClosedEventNotification.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.Review; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ReviewClosedEventNotification 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 Review fetchRelatedObject() throws StripeException { + return (Review) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ReviewClosedEvent fetchEvent() throws StripeException { + return (V1ReviewClosedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1ReviewOpenedEvent.java b/src/main/java/com/stripe/events/V1ReviewOpenedEvent.java new file mode 100644 index 00000000000..9ecb0820b41 --- /dev/null +++ b/src/main/java/com/stripe/events/V1ReviewOpenedEvent.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.Review; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1ReviewOpenedEvent 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 Review fetchRelatedObject() throws StripeException { + return (Review) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1ReviewOpenedEventNotification.java b/src/main/java/com/stripe/events/V1ReviewOpenedEventNotification.java new file mode 100644 index 00000000000..f43b6b6c46c --- /dev/null +++ b/src/main/java/com/stripe/events/V1ReviewOpenedEventNotification.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.Review; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1ReviewOpenedEventNotification 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 Review fetchRelatedObject() throws StripeException { + return (Review) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1ReviewOpenedEvent fetchEvent() throws StripeException { + return (V1ReviewOpenedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SetupIntentCanceledEvent.java b/src/main/java/com/stripe/events/V1SetupIntentCanceledEvent.java new file mode 100644 index 00000000000..9d1a9a4da8f --- /dev/null +++ b/src/main/java/com/stripe/events/V1SetupIntentCanceledEvent.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.SetupIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SetupIntentCanceledEvent 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 SetupIntent fetchRelatedObject() throws StripeException { + return (SetupIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SetupIntentCanceledEventNotification.java b/src/main/java/com/stripe/events/V1SetupIntentCanceledEventNotification.java new file mode 100644 index 00000000000..a4731ef1d78 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SetupIntentCanceledEventNotification.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.SetupIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SetupIntentCanceledEventNotification 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 SetupIntent fetchRelatedObject() throws StripeException { + return (SetupIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SetupIntentCanceledEvent fetchEvent() throws StripeException { + return (V1SetupIntentCanceledEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SetupIntentCreatedEvent.java b/src/main/java/com/stripe/events/V1SetupIntentCreatedEvent.java new file mode 100644 index 00000000000..729b1f27a19 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SetupIntentCreatedEvent.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.SetupIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SetupIntentCreatedEvent 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 SetupIntent fetchRelatedObject() throws StripeException { + return (SetupIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SetupIntentCreatedEventNotification.java b/src/main/java/com/stripe/events/V1SetupIntentCreatedEventNotification.java new file mode 100644 index 00000000000..d758df84401 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SetupIntentCreatedEventNotification.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.SetupIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SetupIntentCreatedEventNotification 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 SetupIntent fetchRelatedObject() throws StripeException { + return (SetupIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SetupIntentCreatedEvent fetchEvent() throws StripeException { + return (V1SetupIntentCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SetupIntentRequiresActionEvent.java b/src/main/java/com/stripe/events/V1SetupIntentRequiresActionEvent.java new file mode 100644 index 00000000000..7b3bac47e7c --- /dev/null +++ b/src/main/java/com/stripe/events/V1SetupIntentRequiresActionEvent.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.SetupIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SetupIntentRequiresActionEvent 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 SetupIntent fetchRelatedObject() throws StripeException { + return (SetupIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SetupIntentRequiresActionEventNotification.java b/src/main/java/com/stripe/events/V1SetupIntentRequiresActionEventNotification.java new file mode 100644 index 00000000000..1f964cc99c7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SetupIntentRequiresActionEventNotification.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.SetupIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SetupIntentRequiresActionEventNotification 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 SetupIntent fetchRelatedObject() throws StripeException { + return (SetupIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SetupIntentRequiresActionEvent fetchEvent() throws StripeException { + return (V1SetupIntentRequiresActionEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SetupIntentSetupFailedEvent.java b/src/main/java/com/stripe/events/V1SetupIntentSetupFailedEvent.java new file mode 100644 index 00000000000..7eeb6209d59 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SetupIntentSetupFailedEvent.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.SetupIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SetupIntentSetupFailedEvent 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 SetupIntent fetchRelatedObject() throws StripeException { + return (SetupIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SetupIntentSetupFailedEventNotification.java b/src/main/java/com/stripe/events/V1SetupIntentSetupFailedEventNotification.java new file mode 100644 index 00000000000..5f0a2d0337f --- /dev/null +++ b/src/main/java/com/stripe/events/V1SetupIntentSetupFailedEventNotification.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.SetupIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SetupIntentSetupFailedEventNotification 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 SetupIntent fetchRelatedObject() throws StripeException { + return (SetupIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SetupIntentSetupFailedEvent fetchEvent() throws StripeException { + return (V1SetupIntentSetupFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SetupIntentSucceededEvent.java b/src/main/java/com/stripe/events/V1SetupIntentSucceededEvent.java new file mode 100644 index 00000000000..4de68c2a756 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SetupIntentSucceededEvent.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.SetupIntent; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SetupIntentSucceededEvent 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 SetupIntent fetchRelatedObject() throws StripeException { + return (SetupIntent) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SetupIntentSucceededEventNotification.java b/src/main/java/com/stripe/events/V1SetupIntentSucceededEventNotification.java new file mode 100644 index 00000000000..f3cc2a1b332 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SetupIntentSucceededEventNotification.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.SetupIntent; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SetupIntentSucceededEventNotification 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 SetupIntent fetchRelatedObject() throws StripeException { + return (SetupIntent) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SetupIntentSucceededEvent fetchEvent() throws StripeException { + return (V1SetupIntentSucceededEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEvent.java b/src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEvent.java new file mode 100644 index 00000000000..2ab4ef45c12 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEvent.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.sigma.ScheduledQueryRun; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SigmaScheduledQueryRunCreatedEvent 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 ScheduledQueryRun fetchRelatedObject() throws StripeException { + return (ScheduledQueryRun) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEventNotification.java b/src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEventNotification.java new file mode 100644 index 00000000000..d625e849c88 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEventNotification.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.sigma.ScheduledQueryRun; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SigmaScheduledQueryRunCreatedEventNotification 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 ScheduledQueryRun fetchRelatedObject() throws StripeException { + return (ScheduledQueryRun) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SigmaScheduledQueryRunCreatedEvent fetchEvent() throws StripeException { + return (V1SigmaScheduledQueryRunCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SourceCanceledEvent.java b/src/main/java/com/stripe/events/V1SourceCanceledEvent.java new file mode 100644 index 00000000000..754d42df11a --- /dev/null +++ b/src/main/java/com/stripe/events/V1SourceCanceledEvent.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.Source; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SourceCanceledEvent 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 Source fetchRelatedObject() throws StripeException { + return (Source) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SourceCanceledEventNotification.java b/src/main/java/com/stripe/events/V1SourceCanceledEventNotification.java new file mode 100644 index 00000000000..c99ccff27e4 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SourceCanceledEventNotification.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.Source; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SourceCanceledEventNotification 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 Source fetchRelatedObject() throws StripeException { + return (Source) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SourceCanceledEvent fetchEvent() throws StripeException { + return (V1SourceCanceledEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SourceChargeableEvent.java b/src/main/java/com/stripe/events/V1SourceChargeableEvent.java new file mode 100644 index 00000000000..f9410f6ba9d --- /dev/null +++ b/src/main/java/com/stripe/events/V1SourceChargeableEvent.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.Source; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SourceChargeableEvent 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 Source fetchRelatedObject() throws StripeException { + return (Source) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SourceChargeableEventNotification.java b/src/main/java/com/stripe/events/V1SourceChargeableEventNotification.java new file mode 100644 index 00000000000..e5bb59d2c12 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SourceChargeableEventNotification.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.Source; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SourceChargeableEventNotification 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 Source fetchRelatedObject() throws StripeException { + return (Source) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SourceChargeableEvent fetchEvent() throws StripeException { + return (V1SourceChargeableEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SourceFailedEvent.java b/src/main/java/com/stripe/events/V1SourceFailedEvent.java new file mode 100644 index 00000000000..5865fa071cd --- /dev/null +++ b/src/main/java/com/stripe/events/V1SourceFailedEvent.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.Source; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SourceFailedEvent 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 Source fetchRelatedObject() throws StripeException { + return (Source) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SourceFailedEventNotification.java b/src/main/java/com/stripe/events/V1SourceFailedEventNotification.java new file mode 100644 index 00000000000..8cdfe644e54 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SourceFailedEventNotification.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.Source; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SourceFailedEventNotification 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 Source fetchRelatedObject() throws StripeException { + return (Source) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SourceFailedEvent fetchEvent() throws StripeException { + return (V1SourceFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SourceRefundAttributesRequiredEvent.java b/src/main/java/com/stripe/events/V1SourceRefundAttributesRequiredEvent.java new file mode 100644 index 00000000000..df97afae592 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SourceRefundAttributesRequiredEvent.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.Source; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SourceRefundAttributesRequiredEvent 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 Source fetchRelatedObject() throws StripeException { + return (Source) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SourceRefundAttributesRequiredEventNotification.java b/src/main/java/com/stripe/events/V1SourceRefundAttributesRequiredEventNotification.java new file mode 100644 index 00000000000..9087c0284fc --- /dev/null +++ b/src/main/java/com/stripe/events/V1SourceRefundAttributesRequiredEventNotification.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.Source; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SourceRefundAttributesRequiredEventNotification 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 Source fetchRelatedObject() throws StripeException { + return (Source) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SourceRefundAttributesRequiredEvent fetchEvent() throws StripeException { + return (V1SourceRefundAttributesRequiredEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleAbortedEvent.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleAbortedEvent.java new file mode 100644 index 00000000000..daf03ea9c54 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleAbortedEvent.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleAbortedEvent 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleAbortedEventNotification.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleAbortedEventNotification.java new file mode 100644 index 00000000000..bfa481189e7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleAbortedEventNotification.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleAbortedEventNotification 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SubscriptionScheduleAbortedEvent fetchEvent() throws StripeException { + return (V1SubscriptionScheduleAbortedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleCanceledEvent.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleCanceledEvent.java new file mode 100644 index 00000000000..916ab06796a --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleCanceledEvent.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleCanceledEvent 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleCanceledEventNotification.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleCanceledEventNotification.java new file mode 100644 index 00000000000..12d71b19bfe --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleCanceledEventNotification.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleCanceledEventNotification 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SubscriptionScheduleCanceledEvent fetchEvent() throws StripeException { + return (V1SubscriptionScheduleCanceledEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleCompletedEvent.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleCompletedEvent.java new file mode 100644 index 00000000000..90619fafedd --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleCompletedEvent.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleCompletedEvent 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleCompletedEventNotification.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleCompletedEventNotification.java new file mode 100644 index 00000000000..cd4db971b86 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleCompletedEventNotification.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleCompletedEventNotification 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SubscriptionScheduleCompletedEvent fetchEvent() throws StripeException { + return (V1SubscriptionScheduleCompletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleCreatedEvent.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleCreatedEvent.java new file mode 100644 index 00000000000..4c6a069c5dd --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleCreatedEvent.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleCreatedEvent 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleCreatedEventNotification.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleCreatedEventNotification.java new file mode 100644 index 00000000000..1ca09492fe2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleCreatedEventNotification.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleCreatedEventNotification 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SubscriptionScheduleCreatedEvent fetchEvent() throws StripeException { + return (V1SubscriptionScheduleCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleExpiringEvent.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleExpiringEvent.java new file mode 100644 index 00000000000..c242674ae49 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleExpiringEvent.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleExpiringEvent 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleExpiringEventNotification.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleExpiringEventNotification.java new file mode 100644 index 00000000000..80c2e71794d --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleExpiringEventNotification.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleExpiringEventNotification 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SubscriptionScheduleExpiringEvent fetchEvent() throws StripeException { + return (V1SubscriptionScheduleExpiringEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleReleasedEvent.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleReleasedEvent.java new file mode 100644 index 00000000000..e9f27a50dde --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleReleasedEvent.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleReleasedEvent 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleReleasedEventNotification.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleReleasedEventNotification.java new file mode 100644 index 00000000000..70a638830df --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleReleasedEventNotification.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleReleasedEventNotification 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SubscriptionScheduleReleasedEvent fetchEvent() throws StripeException { + return (V1SubscriptionScheduleReleasedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleUpdatedEvent.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleUpdatedEvent.java new file mode 100644 index 00000000000..89bbfb4adb2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleUpdatedEvent.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleUpdatedEvent 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1SubscriptionScheduleUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1SubscriptionScheduleUpdatedEventNotification.java new file mode 100644 index 00000000000..fc146f0f221 --- /dev/null +++ b/src/main/java/com/stripe/events/V1SubscriptionScheduleUpdatedEventNotification.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.SubscriptionSchedule; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1SubscriptionScheduleUpdatedEventNotification 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 SubscriptionSchedule fetchRelatedObject() throws StripeException { + return (SubscriptionSchedule) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1SubscriptionScheduleUpdatedEvent fetchEvent() throws StripeException { + return (V1SubscriptionScheduleUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TaxRateCreatedEvent.java b/src/main/java/com/stripe/events/V1TaxRateCreatedEvent.java new file mode 100644 index 00000000000..dcb538fa4a4 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TaxRateCreatedEvent.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.TaxRate; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TaxRateCreatedEvent 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 TaxRate fetchRelatedObject() throws StripeException { + return (TaxRate) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TaxRateCreatedEventNotification.java b/src/main/java/com/stripe/events/V1TaxRateCreatedEventNotification.java new file mode 100644 index 00000000000..d1c74f6cb5d --- /dev/null +++ b/src/main/java/com/stripe/events/V1TaxRateCreatedEventNotification.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.TaxRate; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TaxRateCreatedEventNotification 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 TaxRate fetchRelatedObject() throws StripeException { + return (TaxRate) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TaxRateCreatedEvent fetchEvent() throws StripeException { + return (V1TaxRateCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TaxRateUpdatedEvent.java b/src/main/java/com/stripe/events/V1TaxRateUpdatedEvent.java new file mode 100644 index 00000000000..661b7ab35da --- /dev/null +++ b/src/main/java/com/stripe/events/V1TaxRateUpdatedEvent.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.TaxRate; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TaxRateUpdatedEvent 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 TaxRate fetchRelatedObject() throws StripeException { + return (TaxRate) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TaxRateUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1TaxRateUpdatedEventNotification.java new file mode 100644 index 00000000000..0c3b7fcd6b5 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TaxRateUpdatedEventNotification.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.TaxRate; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TaxRateUpdatedEventNotification 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 TaxRate fetchRelatedObject() throws StripeException { + return (TaxRate) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TaxRateUpdatedEvent fetchEvent() throws StripeException { + return (V1TaxRateUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TaxSettingsUpdatedEvent.java b/src/main/java/com/stripe/events/V1TaxSettingsUpdatedEvent.java new file mode 100644 index 00000000000..f0fab00086e --- /dev/null +++ b/src/main/java/com/stripe/events/V1TaxSettingsUpdatedEvent.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.tax.Settings; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TaxSettingsUpdatedEvent 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 Settings fetchRelatedObject() throws StripeException { + return (Settings) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TaxSettingsUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1TaxSettingsUpdatedEventNotification.java new file mode 100644 index 00000000000..1f8ec7c20da --- /dev/null +++ b/src/main/java/com/stripe/events/V1TaxSettingsUpdatedEventNotification.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.tax.Settings; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TaxSettingsUpdatedEventNotification 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 Settings fetchRelatedObject() throws StripeException { + return (Settings) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TaxSettingsUpdatedEvent fetchEvent() throws StripeException { + return (V1TaxSettingsUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TerminalReaderActionFailedEvent.java b/src/main/java/com/stripe/events/V1TerminalReaderActionFailedEvent.java new file mode 100644 index 00000000000..26d65246851 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TerminalReaderActionFailedEvent.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.terminal.Reader; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TerminalReaderActionFailedEvent 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 Reader fetchRelatedObject() throws StripeException { + return (Reader) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TerminalReaderActionFailedEventNotification.java b/src/main/java/com/stripe/events/V1TerminalReaderActionFailedEventNotification.java new file mode 100644 index 00000000000..3f472875457 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TerminalReaderActionFailedEventNotification.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.terminal.Reader; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TerminalReaderActionFailedEventNotification 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 Reader fetchRelatedObject() throws StripeException { + return (Reader) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TerminalReaderActionFailedEvent fetchEvent() throws StripeException { + return (V1TerminalReaderActionFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TerminalReaderActionSucceededEvent.java b/src/main/java/com/stripe/events/V1TerminalReaderActionSucceededEvent.java new file mode 100644 index 00000000000..54654a2152c --- /dev/null +++ b/src/main/java/com/stripe/events/V1TerminalReaderActionSucceededEvent.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.terminal.Reader; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TerminalReaderActionSucceededEvent 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 Reader fetchRelatedObject() throws StripeException { + return (Reader) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TerminalReaderActionSucceededEventNotification.java b/src/main/java/com/stripe/events/V1TerminalReaderActionSucceededEventNotification.java new file mode 100644 index 00000000000..5983f4664e6 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TerminalReaderActionSucceededEventNotification.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.terminal.Reader; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TerminalReaderActionSucceededEventNotification 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 Reader fetchRelatedObject() throws StripeException { + return (Reader) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TerminalReaderActionSucceededEvent fetchEvent() throws StripeException { + return (V1TerminalReaderActionSucceededEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TerminalReaderActionUpdatedEvent.java b/src/main/java/com/stripe/events/V1TerminalReaderActionUpdatedEvent.java new file mode 100644 index 00000000000..23e427c2e83 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TerminalReaderActionUpdatedEvent.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.terminal.Reader; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TerminalReaderActionUpdatedEvent 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 Reader fetchRelatedObject() throws StripeException { + return (Reader) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TerminalReaderActionUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1TerminalReaderActionUpdatedEventNotification.java new file mode 100644 index 00000000000..d1ae49d3f9f --- /dev/null +++ b/src/main/java/com/stripe/events/V1TerminalReaderActionUpdatedEventNotification.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.terminal.Reader; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TerminalReaderActionUpdatedEventNotification 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 Reader fetchRelatedObject() throws StripeException { + return (Reader) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TerminalReaderActionUpdatedEvent fetchEvent() throws StripeException { + return (V1TerminalReaderActionUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TestHelpersTestClockAdvancingEvent.java b/src/main/java/com/stripe/events/V1TestHelpersTestClockAdvancingEvent.java new file mode 100644 index 00000000000..e108af6cda4 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TestHelpersTestClockAdvancingEvent.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.testhelpers.TestClock; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TestHelpersTestClockAdvancingEvent 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 TestClock fetchRelatedObject() throws StripeException { + return (TestClock) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TestHelpersTestClockAdvancingEventNotification.java b/src/main/java/com/stripe/events/V1TestHelpersTestClockAdvancingEventNotification.java new file mode 100644 index 00000000000..22d80b5c9d0 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TestHelpersTestClockAdvancingEventNotification.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.testhelpers.TestClock; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TestHelpersTestClockAdvancingEventNotification 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 TestClock fetchRelatedObject() throws StripeException { + return (TestClock) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TestHelpersTestClockAdvancingEvent fetchEvent() throws StripeException { + return (V1TestHelpersTestClockAdvancingEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TestHelpersTestClockCreatedEvent.java b/src/main/java/com/stripe/events/V1TestHelpersTestClockCreatedEvent.java new file mode 100644 index 00000000000..63cf2a29b37 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TestHelpersTestClockCreatedEvent.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.testhelpers.TestClock; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TestHelpersTestClockCreatedEvent 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 TestClock fetchRelatedObject() throws StripeException { + return (TestClock) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TestHelpersTestClockCreatedEventNotification.java b/src/main/java/com/stripe/events/V1TestHelpersTestClockCreatedEventNotification.java new file mode 100644 index 00000000000..7374feb1a53 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TestHelpersTestClockCreatedEventNotification.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.testhelpers.TestClock; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TestHelpersTestClockCreatedEventNotification 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 TestClock fetchRelatedObject() throws StripeException { + return (TestClock) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TestHelpersTestClockCreatedEvent fetchEvent() throws StripeException { + return (V1TestHelpersTestClockCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TestHelpersTestClockDeletedEvent.java b/src/main/java/com/stripe/events/V1TestHelpersTestClockDeletedEvent.java new file mode 100644 index 00000000000..279a6260154 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TestHelpersTestClockDeletedEvent.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.testhelpers.TestClock; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TestHelpersTestClockDeletedEvent 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 TestClock fetchRelatedObject() throws StripeException { + return (TestClock) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TestHelpersTestClockDeletedEventNotification.java b/src/main/java/com/stripe/events/V1TestHelpersTestClockDeletedEventNotification.java new file mode 100644 index 00000000000..916d2b60128 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TestHelpersTestClockDeletedEventNotification.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.testhelpers.TestClock; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TestHelpersTestClockDeletedEventNotification 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 TestClock fetchRelatedObject() throws StripeException { + return (TestClock) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TestHelpersTestClockDeletedEvent fetchEvent() throws StripeException { + return (V1TestHelpersTestClockDeletedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TestHelpersTestClockInternalFailureEvent.java b/src/main/java/com/stripe/events/V1TestHelpersTestClockInternalFailureEvent.java new file mode 100644 index 00000000000..64bd7b001d7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TestHelpersTestClockInternalFailureEvent.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.testhelpers.TestClock; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TestHelpersTestClockInternalFailureEvent 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 TestClock fetchRelatedObject() throws StripeException { + return (TestClock) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TestHelpersTestClockInternalFailureEventNotification.java b/src/main/java/com/stripe/events/V1TestHelpersTestClockInternalFailureEventNotification.java new file mode 100644 index 00000000000..f0d14cc7578 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TestHelpersTestClockInternalFailureEventNotification.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.testhelpers.TestClock; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TestHelpersTestClockInternalFailureEventNotification + 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 TestClock fetchRelatedObject() throws StripeException { + return (TestClock) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TestHelpersTestClockInternalFailureEvent fetchEvent() throws StripeException { + return (V1TestHelpersTestClockInternalFailureEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TestHelpersTestClockReadyEvent.java b/src/main/java/com/stripe/events/V1TestHelpersTestClockReadyEvent.java new file mode 100644 index 00000000000..4ed376f2849 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TestHelpersTestClockReadyEvent.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.testhelpers.TestClock; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TestHelpersTestClockReadyEvent 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 TestClock fetchRelatedObject() throws StripeException { + return (TestClock) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TestHelpersTestClockReadyEventNotification.java b/src/main/java/com/stripe/events/V1TestHelpersTestClockReadyEventNotification.java new file mode 100644 index 00000000000..ce8d7a83595 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TestHelpersTestClockReadyEventNotification.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.testhelpers.TestClock; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TestHelpersTestClockReadyEventNotification 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 TestClock fetchRelatedObject() throws StripeException { + return (TestClock) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TestHelpersTestClockReadyEvent fetchEvent() throws StripeException { + return (V1TestHelpersTestClockReadyEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TopupCanceledEvent.java b/src/main/java/com/stripe/events/V1TopupCanceledEvent.java new file mode 100644 index 00000000000..5556d6fb159 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TopupCanceledEvent.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.Topup; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TopupCanceledEvent 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 Topup fetchRelatedObject() throws StripeException { + return (Topup) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TopupCanceledEventNotification.java b/src/main/java/com/stripe/events/V1TopupCanceledEventNotification.java new file mode 100644 index 00000000000..ce47e3f8f6d --- /dev/null +++ b/src/main/java/com/stripe/events/V1TopupCanceledEventNotification.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.Topup; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TopupCanceledEventNotification 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 Topup fetchRelatedObject() throws StripeException { + return (Topup) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TopupCanceledEvent fetchEvent() throws StripeException { + return (V1TopupCanceledEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TopupCreatedEvent.java b/src/main/java/com/stripe/events/V1TopupCreatedEvent.java new file mode 100644 index 00000000000..cb1c3a150f7 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TopupCreatedEvent.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.Topup; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TopupCreatedEvent 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 Topup fetchRelatedObject() throws StripeException { + return (Topup) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TopupCreatedEventNotification.java b/src/main/java/com/stripe/events/V1TopupCreatedEventNotification.java new file mode 100644 index 00000000000..389356b8e83 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TopupCreatedEventNotification.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.Topup; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TopupCreatedEventNotification 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 Topup fetchRelatedObject() throws StripeException { + return (Topup) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TopupCreatedEvent fetchEvent() throws StripeException { + return (V1TopupCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TopupFailedEvent.java b/src/main/java/com/stripe/events/V1TopupFailedEvent.java new file mode 100644 index 00000000000..d27773430c2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TopupFailedEvent.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.Topup; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TopupFailedEvent 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 Topup fetchRelatedObject() throws StripeException { + return (Topup) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TopupFailedEventNotification.java b/src/main/java/com/stripe/events/V1TopupFailedEventNotification.java new file mode 100644 index 00000000000..dae44cd28c1 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TopupFailedEventNotification.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.Topup; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TopupFailedEventNotification 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 Topup fetchRelatedObject() throws StripeException { + return (Topup) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TopupFailedEvent fetchEvent() throws StripeException { + return (V1TopupFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TopupReversedEvent.java b/src/main/java/com/stripe/events/V1TopupReversedEvent.java new file mode 100644 index 00000000000..e3bb4207e3f --- /dev/null +++ b/src/main/java/com/stripe/events/V1TopupReversedEvent.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.Topup; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TopupReversedEvent 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 Topup fetchRelatedObject() throws StripeException { + return (Topup) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TopupReversedEventNotification.java b/src/main/java/com/stripe/events/V1TopupReversedEventNotification.java new file mode 100644 index 00000000000..f67b82f28e2 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TopupReversedEventNotification.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.Topup; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TopupReversedEventNotification 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 Topup fetchRelatedObject() throws StripeException { + return (Topup) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TopupReversedEvent fetchEvent() throws StripeException { + return (V1TopupReversedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TopupSucceededEvent.java b/src/main/java/com/stripe/events/V1TopupSucceededEvent.java new file mode 100644 index 00000000000..dcf68c4e301 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TopupSucceededEvent.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.Topup; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TopupSucceededEvent 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 Topup fetchRelatedObject() throws StripeException { + return (Topup) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TopupSucceededEventNotification.java b/src/main/java/com/stripe/events/V1TopupSucceededEventNotification.java new file mode 100644 index 00000000000..e600914ba86 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TopupSucceededEventNotification.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.Topup; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TopupSucceededEventNotification 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 Topup fetchRelatedObject() throws StripeException { + return (Topup) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TopupSucceededEvent fetchEvent() throws StripeException { + return (V1TopupSucceededEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TransferCreatedEvent.java b/src/main/java/com/stripe/events/V1TransferCreatedEvent.java new file mode 100644 index 00000000000..28fe4c9dab3 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TransferCreatedEvent.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.Transfer; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TransferCreatedEvent 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 Transfer fetchRelatedObject() throws StripeException { + return (Transfer) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TransferCreatedEventNotification.java b/src/main/java/com/stripe/events/V1TransferCreatedEventNotification.java new file mode 100644 index 00000000000..1efa3dd04da --- /dev/null +++ b/src/main/java/com/stripe/events/V1TransferCreatedEventNotification.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.Transfer; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TransferCreatedEventNotification 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 Transfer fetchRelatedObject() throws StripeException { + return (Transfer) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TransferCreatedEvent fetchEvent() throws StripeException { + return (V1TransferCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TransferReversedEvent.java b/src/main/java/com/stripe/events/V1TransferReversedEvent.java new file mode 100644 index 00000000000..8c89bf480c0 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TransferReversedEvent.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.Transfer; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TransferReversedEvent 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 Transfer fetchRelatedObject() throws StripeException { + return (Transfer) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TransferReversedEventNotification.java b/src/main/java/com/stripe/events/V1TransferReversedEventNotification.java new file mode 100644 index 00000000000..dcdf25b3a53 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TransferReversedEventNotification.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.Transfer; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TransferReversedEventNotification 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 Transfer fetchRelatedObject() throws StripeException { + return (Transfer) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TransferReversedEvent fetchEvent() throws StripeException { + return (V1TransferReversedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V1TransferUpdatedEvent.java b/src/main/java/com/stripe/events/V1TransferUpdatedEvent.java new file mode 100644 index 00000000000..94c7d339fa5 --- /dev/null +++ b/src/main/java/com/stripe/events/V1TransferUpdatedEvent.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.Transfer; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V1TransferUpdatedEvent 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 Transfer fetchRelatedObject() throws StripeException { + return (Transfer) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V1TransferUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1TransferUpdatedEventNotification.java new file mode 100644 index 00000000000..98a74a1d17c --- /dev/null +++ b/src/main/java/com/stripe/events/V1TransferUpdatedEventNotification.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.Transfer; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V1TransferUpdatedEventNotification 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 Transfer fetchRelatedObject() throws StripeException { + return (Transfer) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V1TransferUpdatedEvent fetchEvent() throws StripeException { + return (V1TransferUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsFailedEvent.java b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsFailedEvent.java new file mode 100644 index 00000000000..7cea84025a9 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsFailedEvent.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.commerce.ProductCatalogImport; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CommerceProductCatalogImportsFailedEvent 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 ProductCatalogImport fetchRelatedObject() throws StripeException { + return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsFailedEventNotification.java b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsFailedEventNotification.java new file mode 100644 index 00000000000..05777d17845 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsFailedEventNotification.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.commerce.ProductCatalogImport; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CommerceProductCatalogImportsFailedEventNotification + 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 ProductCatalogImport fetchRelatedObject() throws StripeException { + return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CommerceProductCatalogImportsFailedEvent fetchEvent() throws StripeException { + return (V2CommerceProductCatalogImportsFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsProcessingEvent.java b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsProcessingEvent.java new file mode 100644 index 00000000000..c5274364e37 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsProcessingEvent.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.commerce.ProductCatalogImport; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CommerceProductCatalogImportsProcessingEvent 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 ProductCatalogImport fetchRelatedObject() throws StripeException { + return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsProcessingEventNotification.java b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsProcessingEventNotification.java new file mode 100644 index 00000000000..5cb5701b1bd --- /dev/null +++ b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsProcessingEventNotification.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.commerce.ProductCatalogImport; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CommerceProductCatalogImportsProcessingEventNotification + 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 ProductCatalogImport fetchRelatedObject() throws StripeException { + return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CommerceProductCatalogImportsProcessingEvent fetchEvent() throws StripeException { + return (V2CommerceProductCatalogImportsProcessingEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededEvent.java b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededEvent.java new file mode 100644 index 00000000000..82958418a48 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededEvent.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.commerce.ProductCatalogImport; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CommerceProductCatalogImportsSucceededEvent 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 ProductCatalogImport fetchRelatedObject() throws StripeException { + return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededEventNotification.java b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededEventNotification.java new file mode 100644 index 00000000000..d871e127c5a --- /dev/null +++ b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededEventNotification.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.commerce.ProductCatalogImport; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CommerceProductCatalogImportsSucceededEventNotification + 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 ProductCatalogImport fetchRelatedObject() throws StripeException { + return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CommerceProductCatalogImportsSucceededEvent fetchEvent() throws StripeException { + return (V2CommerceProductCatalogImportsSucceededEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededWithErrorsEvent.java b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededWithErrorsEvent.java new file mode 100644 index 00000000000..24fff4734fd --- /dev/null +++ b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededWithErrorsEvent.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.commerce.ProductCatalogImport; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CommerceProductCatalogImportsSucceededWithErrorsEvent 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 ProductCatalogImport fetchRelatedObject() throws StripeException { + return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification.java b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification.java new file mode 100644 index 00000000000..604ea3f96c6 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification.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.commerce.ProductCatalogImport; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification + 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 ProductCatalogImport fetchRelatedObject() throws StripeException { + return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CommerceProductCatalogImportsSucceededWithErrorsEvent fetchEvent() + throws StripeException { + return (V2CommerceProductCatalogImportsSucceededWithErrorsEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreApprovalRequestApprovedEvent.java b/src/main/java/com/stripe/events/V2CoreApprovalRequestApprovedEvent.java new file mode 100644 index 00000000000..8e70114a813 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreApprovalRequestApprovedEvent.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.ApprovalRequest; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CoreApprovalRequestApprovedEvent 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 ApprovalRequest fetchRelatedObject() throws StripeException { + return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreApprovalRequestApprovedEventNotification.java b/src/main/java/com/stripe/events/V2CoreApprovalRequestApprovedEventNotification.java new file mode 100644 index 00000000000..beda4328a8f --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreApprovalRequestApprovedEventNotification.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.ApprovalRequest; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CoreApprovalRequestApprovedEventNotification 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 ApprovalRequest fetchRelatedObject() throws StripeException { + return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreApprovalRequestApprovedEvent fetchEvent() throws StripeException { + return (V2CoreApprovalRequestApprovedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreApprovalRequestCanceledEvent.java b/src/main/java/com/stripe/events/V2CoreApprovalRequestCanceledEvent.java new file mode 100644 index 00000000000..a592ad7b0c4 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreApprovalRequestCanceledEvent.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.ApprovalRequest; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CoreApprovalRequestCanceledEvent 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 ApprovalRequest fetchRelatedObject() throws StripeException { + return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreApprovalRequestCanceledEventNotification.java b/src/main/java/com/stripe/events/V2CoreApprovalRequestCanceledEventNotification.java new file mode 100644 index 00000000000..2e50b02b16a --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreApprovalRequestCanceledEventNotification.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.ApprovalRequest; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CoreApprovalRequestCanceledEventNotification 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 ApprovalRequest fetchRelatedObject() throws StripeException { + return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreApprovalRequestCanceledEvent fetchEvent() throws StripeException { + return (V2CoreApprovalRequestCanceledEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreApprovalRequestFailedEvent.java b/src/main/java/com/stripe/events/V2CoreApprovalRequestFailedEvent.java new file mode 100644 index 00000000000..47af1bc64c7 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreApprovalRequestFailedEvent.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.ApprovalRequest; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CoreApprovalRequestFailedEvent 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 ApprovalRequest fetchRelatedObject() throws StripeException { + return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreApprovalRequestFailedEventNotification.java b/src/main/java/com/stripe/events/V2CoreApprovalRequestFailedEventNotification.java new file mode 100644 index 00000000000..22189685dbf --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreApprovalRequestFailedEventNotification.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.ApprovalRequest; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CoreApprovalRequestFailedEventNotification 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 ApprovalRequest fetchRelatedObject() throws StripeException { + return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreApprovalRequestFailedEvent fetchEvent() throws StripeException { + return (V2CoreApprovalRequestFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreApprovalRequestRejectedEvent.java b/src/main/java/com/stripe/events/V2CoreApprovalRequestRejectedEvent.java new file mode 100644 index 00000000000..0170c03bfb8 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreApprovalRequestRejectedEvent.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.ApprovalRequest; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CoreApprovalRequestRejectedEvent 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 ApprovalRequest fetchRelatedObject() throws StripeException { + return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreApprovalRequestRejectedEventNotification.java b/src/main/java/com/stripe/events/V2CoreApprovalRequestRejectedEventNotification.java new file mode 100644 index 00000000000..6b5feb77df6 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreApprovalRequestRejectedEventNotification.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.ApprovalRequest; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CoreApprovalRequestRejectedEventNotification 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 ApprovalRequest fetchRelatedObject() throws StripeException { + return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreApprovalRequestRejectedEvent fetchEvent() throws StripeException { + return (V2CoreApprovalRequestRejectedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreApprovalRequestSucceededEvent.java b/src/main/java/com/stripe/events/V2CoreApprovalRequestSucceededEvent.java new file mode 100644 index 00000000000..02080ce4a3c --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreApprovalRequestSucceededEvent.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.ApprovalRequest; +import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import lombok.Getter; + +@Getter +public final class V2CoreApprovalRequestSucceededEvent 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 ApprovalRequest fetchRelatedObject() throws StripeException { + return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreApprovalRequestSucceededEventNotification.java b/src/main/java/com/stripe/events/V2CoreApprovalRequestSucceededEventNotification.java new file mode 100644 index 00000000000..6dafc6f3855 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreApprovalRequestSucceededEventNotification.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.ApprovalRequest; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import lombok.Getter; + +@Getter +public final class V2CoreApprovalRequestSucceededEventNotification 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 ApprovalRequest fetchRelatedObject() throws StripeException { + return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreApprovalRequestSucceededEvent fetchEvent() throws StripeException { + return (V2CoreApprovalRequestSucceededEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreClaimableSandboxUpdatedEvent.java similarity index 88% rename from src/main/java/com/stripe/events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.java rename to src/main/java/com/stripe/events/V2CoreClaimableSandboxUpdatedEvent.java index dfeaf184cec..9209861b8fe 100644 --- a/src/main/java/com/stripe/events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreClaimableSandboxUpdatedEvent.java @@ -9,7 +9,7 @@ import lombok.Getter; @Getter -public final class V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent extends Event { +public final class V2CoreClaimableSandboxUpdatedEvent extends Event { @SerializedName("related_object") /** Object containing the reference to API resource relevant to the event. */ diff --git a/src/main/java/com/stripe/events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2CoreClaimableSandboxUpdatedEventNotification.java similarity index 71% rename from src/main/java/com/stripe/events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification.java rename to src/main/java/com/stripe/events/V2CoreClaimableSandboxUpdatedEventNotification.java index 9d58f367f71..822a4ccbe64 100644 --- a/src/main/java/com/stripe/events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification.java +++ b/src/main/java/com/stripe/events/V2CoreClaimableSandboxUpdatedEventNotification.java @@ -9,8 +9,7 @@ import lombok.Getter; @Getter -public final class V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification - extends EventNotification { +public final class V2CoreClaimableSandboxUpdatedEventNotification extends EventNotification { @SerializedName("related_object") /** Object containing the reference to API resource relevant to the event. */ @@ -22,8 +21,7 @@ public ClaimableSandbox fetchRelatedObject() throws StripeException { } /** Retrieve the corresponding full event from the Stripe API. */ @Override - public V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent fetchEvent() - throws StripeException { - return (V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent) super.fetchEvent(); + public V2CoreClaimableSandboxUpdatedEvent fetchEvent() throws StripeException { + return (V2CoreClaimableSandboxUpdatedEvent) super.fetchEvent(); } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedFiringEvent.java new file mode 100644 index 00000000000..3152b66f664 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedFiringEvent.java @@ -0,0 +1,45 @@ +// 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.time.Instant; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2CoreHealthMeterEventSummariesDelayedFiringEvent extends Event { + /** Data for the v2.core.health.meter_event_summaries_delayed.firing event. */ + @SerializedName("data") + V2CoreHealthMeterEventSummariesDelayedFiringEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** The alert ID. */ + @SerializedName("alert_id") + String alertId; + /** The grouping key for the alert. */ + @SerializedName("grouping_key") + String groupingKey; + /** The user impact. */ + @SerializedName("impact") + Impact impact; + /** The time when impact on the user experience was first detected. */ + @SerializedName("started_at") + Instant startedAt; + /** A short description of the alert. */ + @SerializedName("summary") + String summary; + + public static final class Impact { + /** + * The ingestion method. + * + *
Equal to {@code import_sets}. + */ + @SerializedName("ingestion_method") + String ingestionMethod; + } + } +} diff --git a/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedFiringEventNotification.java b/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedFiringEventNotification.java new file mode 100644 index 00000000000..91f90762153 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedFiringEventNotification.java @@ -0,0 +1,14 @@ +// 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 V2CoreHealthMeterEventSummariesDelayedFiringEventNotification + extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreHealthMeterEventSummariesDelayedFiringEvent fetchEvent() throws StripeException { + return (V2CoreHealthMeterEventSummariesDelayedFiringEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedResolvedEvent.java new file mode 100644 index 00000000000..ae10babaab4 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedResolvedEvent.java @@ -0,0 +1,48 @@ +// 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.time.Instant; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2CoreHealthMeterEventSummariesDelayedResolvedEvent extends Event { + /** Data for the v2.core.health.meter_event_summaries_delayed.resolved event. */ + @SerializedName("data") + V2CoreHealthMeterEventSummariesDelayedResolvedEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** The alert ID. */ + @SerializedName("alert_id") + String alertId; + /** The grouping key for the alert. */ + @SerializedName("grouping_key") + String groupingKey; + /** The user impact. */ + @SerializedName("impact") + Impact impact; + /** The time when the user experience has returned to expected levels. */ + @SerializedName("resolved_at") + Instant resolvedAt; + /** The time when impact on the user experience was first detected. */ + @SerializedName("started_at") + Instant startedAt; + /** A short description of the alert. */ + @SerializedName("summary") + String summary; + + public static final class Impact { + /** + * The ingestion method. + * + *
Equal to {@code import_sets}. + */ + @SerializedName("ingestion_method") + String ingestionMethod; + } + } +} diff --git a/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification.java b/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification.java new file mode 100644 index 00000000000..5e5d88c0265 --- /dev/null +++ b/src/main/java/com/stripe/events/V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification.java @@ -0,0 +1,14 @@ +// 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 V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification + extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2CoreHealthMeterEventSummariesDelayedResolvedEvent fetchEvent() throws StripeException { + return (V2CoreHealthMeterEventSummariesDelayedResolvedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2ExtendWorkflowRunFailedEvent.java b/src/main/java/com/stripe/events/V2ExtendWorkflowRunFailedEvent.java new file mode 100644 index 00000000000..9ffe5427a2f --- /dev/null +++ b/src/main/java/com/stripe/events/V2ExtendWorkflowRunFailedEvent.java @@ -0,0 +1,44 @@ +// 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.extend.WorkflowRun; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2ExtendWorkflowRunFailedEvent extends Event { + /** Data for the v2.extend.workflow_run.failed event. */ + @SerializedName("data") + V2ExtendWorkflowRunFailedEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** A Stripe dashboard URL with more information about the Workflow Run failure. */ + @SerializedName("dashboard_url") + String dashboardUrl; + /** Details about the Workflow Run's transition into the FAILED state. */ + @SerializedName("failure_details") + FailureDetails failureDetails; + + public static final class FailureDetails { + /** Optional details about the failure result. */ + @SerializedName("error_message") + String errorMessage; + } + } + + @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 WorkflowRun fetchRelatedObject() throws StripeException { + return (WorkflowRun) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2ExtendWorkflowRunFailedEventNotification.java b/src/main/java/com/stripe/events/V2ExtendWorkflowRunFailedEventNotification.java new file mode 100644 index 00000000000..6c35f4b41f1 --- /dev/null +++ b/src/main/java/com/stripe/events/V2ExtendWorkflowRunFailedEventNotification.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.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import com.stripe.model.v2.extend.WorkflowRun; +import lombok.Getter; + +@Getter +public final class V2ExtendWorkflowRunFailedEventNotification 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 WorkflowRun fetchRelatedObject() throws StripeException { + return (WorkflowRun) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2ExtendWorkflowRunFailedEvent fetchEvent() throws StripeException { + return (V2ExtendWorkflowRunFailedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2ExtendWorkflowRunStartedEvent.java b/src/main/java/com/stripe/events/V2ExtendWorkflowRunStartedEvent.java new file mode 100644 index 00000000000..75ab1044c2d --- /dev/null +++ b/src/main/java/com/stripe/events/V2ExtendWorkflowRunStartedEvent.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.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.extend.WorkflowRun; +import lombok.Getter; + +@Getter +public final class V2ExtendWorkflowRunStartedEvent 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 WorkflowRun fetchRelatedObject() throws StripeException { + return (WorkflowRun) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2ExtendWorkflowRunStartedEventNotification.java b/src/main/java/com/stripe/events/V2ExtendWorkflowRunStartedEventNotification.java new file mode 100644 index 00000000000..a3010c6ef5f --- /dev/null +++ b/src/main/java/com/stripe/events/V2ExtendWorkflowRunStartedEventNotification.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.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import com.stripe.model.v2.extend.WorkflowRun; +import lombok.Getter; + +@Getter +public final class V2ExtendWorkflowRunStartedEventNotification 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 WorkflowRun fetchRelatedObject() throws StripeException { + return (WorkflowRun) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2ExtendWorkflowRunStartedEvent fetchEvent() throws StripeException { + return (V2ExtendWorkflowRunStartedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2ExtendWorkflowRunSucceededEvent.java b/src/main/java/com/stripe/events/V2ExtendWorkflowRunSucceededEvent.java new file mode 100644 index 00000000000..5f14d41ca35 --- /dev/null +++ b/src/main/java/com/stripe/events/V2ExtendWorkflowRunSucceededEvent.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.Event; +import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.extend.WorkflowRun; +import lombok.Getter; + +@Getter +public final class V2ExtendWorkflowRunSucceededEvent 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 WorkflowRun fetchRelatedObject() throws StripeException { + return (WorkflowRun) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2ExtendWorkflowRunSucceededEventNotification.java b/src/main/java/com/stripe/events/V2ExtendWorkflowRunSucceededEventNotification.java new file mode 100644 index 00000000000..2cd07140281 --- /dev/null +++ b/src/main/java/com/stripe/events/V2ExtendWorkflowRunSucceededEventNotification.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.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import com.stripe.model.v2.extend.WorkflowRun; +import lombok.Getter; + +@Getter +public final class V2ExtendWorkflowRunSucceededEventNotification 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 WorkflowRun fetchRelatedObject() throws StripeException { + return (WorkflowRun) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2ExtendWorkflowRunSucceededEvent fetchEvent() throws StripeException { + return (V2ExtendWorkflowRunSucceededEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2MoneyManagementTransactionCreatedEvent.java b/src/main/java/com/stripe/events/V2MoneyManagementTransactionCreatedEvent.java index 834b719f513..8d41a792822 100644 --- a/src/main/java/com/stripe/events/V2MoneyManagementTransactionCreatedEvent.java +++ b/src/main/java/com/stripe/events/V2MoneyManagementTransactionCreatedEvent.java @@ -18,6 +18,9 @@ public final class V2MoneyManagementTransactionCreatedEvent extends Event { @Getter @Setter public static final class EventData { + /** Id of the v1 Treasury Transaction corresponding to this Transaction. */ + @SerializedName("treasury_transaction") + String treasuryTransaction; /** Id of the v1 Transaction corresponding to this Transaction. */ @SerializedName("v1_id") String v1Id; diff --git a/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementConfirmedEvent.java b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementConfirmedEvent.java new file mode 100644 index 00000000000..e7e9dc91a82 --- /dev/null +++ b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementConfirmedEvent.java @@ -0,0 +1,63 @@ +// 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.orchestratedcommerce.Agreement; +import java.time.Instant; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2OrchestratedCommerceAgreementConfirmedEvent extends Event { + /** Data for the v2.orchestrated_commerce.agreement.confirmed event. */ + @SerializedName("data") + V2OrchestratedCommerceAgreementConfirmedEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** The time at which the orchestrator confirmed the agreement. */ + @SerializedName("orchestrator_confirmed_at") + Instant orchestratorConfirmedAt; + /** Details about the orchestrator. */ + @SerializedName("orchestrator_details") + OrchestratorDetails orchestratorDetails; + /** The time at which the seller confirmed the agreement. */ + @SerializedName("seller_confirmed_at") + Instant sellerConfirmedAt; + /** Details about the seller. */ + @SerializedName("seller_details") + SellerDetails sellerDetails; + + public static final class OrchestratorDetails { + /** + * The name of the orchestrator. This can be the name of the agent or the name of the + * business. + */ + @SerializedName("name") + String name; + /** The Network ID of the orchestrator. */ + @SerializedName("network_business_profile") + String networkBusinessProfile; + } + + public static final class SellerDetails { + /** The Network ID of the seller. */ + @SerializedName("network_business_profile") + String networkBusinessProfile; + } + } + + @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 Agreement fetchRelatedObject() throws StripeException { + return (Agreement) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementConfirmedEventNotification.java b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementConfirmedEventNotification.java new file mode 100644 index 00000000000..9dcecf8b64b --- /dev/null +++ b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementConfirmedEventNotification.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.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import com.stripe.model.v2.orchestratedcommerce.Agreement; +import lombok.Getter; + +@Getter +public final class V2OrchestratedCommerceAgreementConfirmedEventNotification + 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 Agreement fetchRelatedObject() throws StripeException { + return (Agreement) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2OrchestratedCommerceAgreementConfirmedEvent fetchEvent() throws StripeException { + return (V2OrchestratedCommerceAgreementConfirmedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementCreatedEvent.java b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementCreatedEvent.java new file mode 100644 index 00000000000..331ee10cd8e --- /dev/null +++ b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementCreatedEvent.java @@ -0,0 +1,67 @@ +// 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.orchestratedcommerce.Agreement; +import java.time.Instant; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2OrchestratedCommerceAgreementCreatedEvent extends Event { + /** Data for the v2.orchestrated_commerce.agreement.created event. */ + @SerializedName("data") + V2OrchestratedCommerceAgreementCreatedEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** The time at which the agreement was created. */ + @SerializedName("created") + Instant created; + /** + * The party that initiated the agreement. + * + *
One of {@code orchestrator}, or {@code seller}. + */ + @SerializedName("initiated_by") + String initiatedBy; + /** Details about the orchestrator. */ + @SerializedName("orchestrator_details") + OrchestratorDetails orchestratorDetails; + /** Details about the seller. */ + @SerializedName("seller_details") + SellerDetails sellerDetails; + + public static final class OrchestratorDetails { + /** + * The name of the orchestrator. This can be the name of the agent or the name of the + * business. + */ + @SerializedName("name") + String name; + /** The Network ID of the orchestrator. */ + @SerializedName("network_business_profile") + String networkBusinessProfile; + } + + public static final class SellerDetails { + /** The Network ID of the seller. */ + @SerializedName("network_business_profile") + String networkBusinessProfile; + } + } + + @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 Agreement fetchRelatedObject() throws StripeException { + return (Agreement) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementCreatedEventNotification.java b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementCreatedEventNotification.java new file mode 100644 index 00000000000..2320cedab1a --- /dev/null +++ b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementCreatedEventNotification.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.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import com.stripe.model.v2.orchestratedcommerce.Agreement; +import lombok.Getter; + +@Getter +public final class V2OrchestratedCommerceAgreementCreatedEventNotification + 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 Agreement fetchRelatedObject() throws StripeException { + return (Agreement) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2OrchestratedCommerceAgreementCreatedEvent fetchEvent() throws StripeException { + return (V2OrchestratedCommerceAgreementCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementPartiallyConfirmedEvent.java b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementPartiallyConfirmedEvent.java new file mode 100644 index 00000000000..1b78a6390ae --- /dev/null +++ b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementPartiallyConfirmedEvent.java @@ -0,0 +1,63 @@ +// 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.orchestratedcommerce.Agreement; +import java.time.Instant; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2OrchestratedCommerceAgreementPartiallyConfirmedEvent extends Event { + /** Data for the v2.orchestrated_commerce.agreement.partially_confirmed event. */ + @SerializedName("data") + V2OrchestratedCommerceAgreementPartiallyConfirmedEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** The time at which the orchestrator confirmed the agreement. */ + @SerializedName("orchestrator_confirmed_at") + Instant orchestratorConfirmedAt; + /** Details about the orchestrator. */ + @SerializedName("orchestrator_details") + OrchestratorDetails orchestratorDetails; + /** The time at which the seller confirmed the agreement. */ + @SerializedName("seller_confirmed_at") + Instant sellerConfirmedAt; + /** Details about the seller. */ + @SerializedName("seller_details") + SellerDetails sellerDetails; + + public static final class OrchestratorDetails { + /** + * The name of the orchestrator. This can be the name of the agent or the name of the + * business. + */ + @SerializedName("name") + String name; + /** The Network ID of the orchestrator. */ + @SerializedName("network_business_profile") + String networkBusinessProfile; + } + + public static final class SellerDetails { + /** The Network ID of the seller. */ + @SerializedName("network_business_profile") + String networkBusinessProfile; + } + } + + @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 Agreement fetchRelatedObject() throws StripeException { + return (Agreement) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification.java b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification.java new file mode 100644 index 00000000000..2e9de38ed5f --- /dev/null +++ b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification.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.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import com.stripe.model.v2.orchestratedcommerce.Agreement; +import lombok.Getter; + +@Getter +public final class V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification + 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 Agreement fetchRelatedObject() throws StripeException { + return (Agreement) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2OrchestratedCommerceAgreementPartiallyConfirmedEvent fetchEvent() + throws StripeException { + return (V2OrchestratedCommerceAgreementPartiallyConfirmedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementTerminatedEvent.java b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementTerminatedEvent.java new file mode 100644 index 00000000000..bcb3333806c --- /dev/null +++ b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementTerminatedEvent.java @@ -0,0 +1,67 @@ +// 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.orchestratedcommerce.Agreement; +import java.time.Instant; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2OrchestratedCommerceAgreementTerminatedEvent extends Event { + /** Data for the v2.orchestrated_commerce.agreement.terminated event. */ + @SerializedName("data") + V2OrchestratedCommerceAgreementTerminatedEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** Details about the orchestrator. */ + @SerializedName("orchestrator_details") + OrchestratorDetails orchestratorDetails; + /** Details about the seller. */ + @SerializedName("seller_details") + SellerDetails sellerDetails; + /** The time at which the agreement was terminated. */ + @SerializedName("terminated_at") + Instant terminatedAt; + /** + * The party that terminated the agreement. + * + *
One of {@code orchestrator}, or {@code seller}. + */ + @SerializedName("terminated_by") + String terminatedBy; + + public static final class OrchestratorDetails { + /** + * The name of the orchestrator. This can be the name of the agent or the name of the + * business. + */ + @SerializedName("name") + String name; + /** The Network ID of the orchestrator. */ + @SerializedName("network_business_profile") + String networkBusinessProfile; + } + + public static final class SellerDetails { + /** The Network ID of the seller. */ + @SerializedName("network_business_profile") + String networkBusinessProfile; + } + } + + @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 Agreement fetchRelatedObject() throws StripeException { + return (Agreement) super.fetchRelatedObject(this.relatedObject); + } +} diff --git a/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementTerminatedEventNotification.java b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementTerminatedEventNotification.java new file mode 100644 index 00000000000..1e9c53a8e7d --- /dev/null +++ b/src/main/java/com/stripe/events/V2OrchestratedCommerceAgreementTerminatedEventNotification.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.Event.RelatedObject; +import com.stripe.model.v2.core.EventNotification; +import com.stripe.model.v2.orchestratedcommerce.Agreement; +import lombok.Getter; + +@Getter +public final class V2OrchestratedCommerceAgreementTerminatedEventNotification + 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 Agreement fetchRelatedObject() throws StripeException { + return (Agreement) super.fetchRelatedObject(this.relatedObject); + } + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2OrchestratedCommerceAgreementTerminatedEvent fetchEvent() throws StripeException { + return (V2OrchestratedCommerceAgreementTerminatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/exception/FxQuoteExpiredException.java b/src/main/java/com/stripe/exception/FxQuoteExpiredException.java new file mode 100644 index 00000000000..6d26df8db82 --- /dev/null +++ b/src/main/java/com/stripe/exception/FxQuoteExpiredException.java @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +package com.stripe.exception; + +import com.google.gson.JsonObject; +import com.stripe.model.StripeError; +import com.stripe.model.StripeObject; +import com.stripe.net.StripeResponseGetter; + +/** Returned when the provided FX quote has already expired. */ +public final class FxQuoteExpiredException extends ApiException { + private static final long serialVersionUID = 2L; + + private FxQuoteExpiredException( + String message, String requestId, String code, Integer statusCode, Throwable e) { + super(message, requestId, code, statusCode, e); + } + + static FxQuoteExpiredException parse( + JsonObject body, int statusCode, String requestId, StripeResponseGetter responseGetter) { + FxQuoteExpiredException.FxQuoteExpiredError error = + (FxQuoteExpiredException.FxQuoteExpiredError) + StripeObject.deserializeStripeObject( + body, FxQuoteExpiredException.FxQuoteExpiredError.class, responseGetter); + FxQuoteExpiredException exception = + new FxQuoteExpiredException( + error.getMessage(), requestId, error.getCode(), statusCode, null); + exception.setStripeError(error); + return exception; + } + + public static class FxQuoteExpiredError extends StripeError {} +} diff --git a/src/main/java/com/stripe/exception/StripeException.java b/src/main/java/com/stripe/exception/StripeException.java index 18e92150c16..d4e95db072a 100644 --- a/src/main/java/com/stripe/exception/StripeException.java +++ b/src/main/java/com/stripe/exception/StripeException.java @@ -137,6 +137,9 @@ public static StripeException parseV2Exception( case "financial_account_not_open": return com.stripe.exception.FinancialAccountNotOpenException.parse( body, statusCode, requestId, responseGetter); + case "fx_quote_expired": + return com.stripe.exception.FxQuoteExpiredException.parse( + body, statusCode, requestId, responseGetter); case "insufficient_funds": return com.stripe.exception.InsufficientFundsException.parse( body, statusCode, requestId, responseGetter); diff --git a/src/main/java/com/stripe/model/AccountSession.java b/src/main/java/com/stripe/model/AccountSession.java index 251aade71e1..6e7d924f030 100644 --- a/src/main/java/com/stripe/model/AccountSession.java +++ b/src/main/java/com/stripe/model/AccountSession.java @@ -459,7 +459,20 @@ public static class Bills extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class Features extends StripeObject {} + public static class Features extends StripeObject { + /** + * Whether to enable the bill management feature that grants access to bill creation and + * payment. + */ + @SerializedName("bill_management") + Boolean billManagement; + + /** + * Whether to enable the send money feature that grants access to bill creation and payment. + */ + @SerializedName("send_money") + Boolean sendMoney; + } } /** diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 46608e30301..d0510182344 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1217,6 +1217,9 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("fpx") Fpx fpx; + @SerializedName("gift_card") + GiftCard giftCard; + @SerializedName("giropay") Giropay giropay; @@ -2988,6 +2991,59 @@ public static class Fpx extends StripeObject { String transactionId; } + /** + * For more details about GiftCard, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class GiftCard extends StripeObject { + @SerializedName("balance") + Balance balance; + + /** + * The brand of the gift card. + * + *
One of {@code fiserv_valuelink}, {@code givex}, or {@code svs}.
+ */
+ @SerializedName("brand")
+ String brand;
+
+ /** The expiration month of the gift card. */
+ @SerializedName("exp_month")
+ Long expMonth;
+
+ /** The expiration year of the gift card. */
+ @SerializedName("exp_year")
+ Long expYear;
+
+ /** The first six digits of the gift card number. */
+ @SerializedName("first6")
+ String first6;
+
+ /** The transaction ID from the gift card processor. */
+ @SerializedName("transaction_id")
+ String transactionId;
+
+ /**
+ * For more details about Balance, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Balance extends StripeObject {
+ /** The balance amount in the smallest currency unit. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** The currency of the balance. */
+ @SerializedName("currency")
+ String currency;
+ }
+ }
+
/**
* For more details about Giropay, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java
index 6eb26f4790c..c6baf082a64 100644
--- a/src/main/java/com/stripe/model/ConfirmationToken.java
+++ b/src/main/java/com/stripe/model/ConfirmationToken.java
@@ -2386,6 +2386,12 @@ public static class GeneratedFrom extends StripeObject {
@Setter(lombok.AccessLevel.NONE)
ExpandableField One of {@code fiserv_valuelink}, {@code givex}, or {@code svs}.
+ */
+ @SerializedName("brand")
+ String brand;
+
+ /** The expiration month of the gift card. */
+ @SerializedName("exp_month")
+ Long expMonth;
+
+ /** The expiration year of the gift card. */
+ @SerializedName("exp_year")
+ Long expYear;
+
+ /** The first six digits of the gift card number. */
+ @SerializedName("first6")
+ String first6;
+
+ /** The transaction ID from the gift card processor. */
+ @SerializedName("transaction_id")
+ String transactionId;
+
+ /**
+ * For more details about Balance, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Balance extends StripeObject {
+ /** The balance amount in the smallest currency unit. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** The currency of the balance. */
+ @SerializedName("currency")
+ String currency;
+ }
+ }
+
/**
* For more details about Giropay, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index 73f0347a706..a4799cb2d7e 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -48,6 +48,10 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class PaymentIntent extends ApiResource implements HasId, MetadataStore API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AgentDetails extends StripeObject {
+ /** The name of the agent that initiated the payment. */
+ @SerializedName("name")
+ String name;
+
+ /** The Stripe profile associated with the agent that initiated the payment. */
+ @SerializedName("network_business_profile")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField charge;
+ /** The ID of the PaymentMethod that generated this PaymentMethod, if any. */
+ @SerializedName("payment_method")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField One of {@code fiserv_valuelink}, {@code givex}, or {@code svs}.
+ */
+ @SerializedName("brand")
+ String brand;
+
+ /** The expiration month of the gift card. */
+ @SerializedName("exp_month")
+ Long expMonth;
+
+ /** The expiration year of the gift card. */
+ @SerializedName("exp_year")
+ Long expYear;
+
+ /** The first six digits of the gift card number. */
+ @SerializedName("first6")
+ String first6;
+
+ /** The transaction ID from the gift card processor. */
+ @SerializedName("transaction_id")
+ String transactionId;
+
+ /**
+ * For more details about Balance, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Balance extends StripeObject {
+ /** The balance amount in the smallest currency unit. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** The currency of the balance. */
+ @SerializedName("currency")
+ String currency;
+ }
+ }
+
/**
* For more details about Giropay, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/Product.java b/src/main/java/com/stripe/model/Product.java
index 1981d9a2989..0268d1bdd56 100644
--- a/src/main/java/com/stripe/model/Product.java
+++ b/src/main/java/com/stripe/model/Product.java
@@ -73,6 +73,9 @@ public class Product extends ApiResource implements HasId, MetadataStore One of {@code email}, or {@code sms}.
+ */
+ @SerializedName("channel")
+ String channel;
+
+ /** The description of the marketing consent option. */
+ @SerializedName("description")
+ String description;
+
+ /** The privacy policy URL for this marketing channel. */
+ @SerializedName("privacy_policy_url")
+ String privacyPolicyUrl;
+ }
+ }
+ }
+
/**
* For more details about FulfillmentDetails, please refer to the API Reference.
@@ -570,7 +625,11 @@ public static class FulfillmentOption extends StripeObject {
@SerializedName("shipping")
Shipping shipping;
- /** The type of the fulfillment option. */
+ /**
+ * The type of the fulfillment option.
+ *
+ * One of {@code digital}, or {@code shipping}.
+ */
@SerializedName("type")
String type;
@@ -685,7 +744,11 @@ public static class SelectedFulfillmentOption extends StripeObject {
@SerializedName("shipping")
Shipping shipping;
- /** The type of the selected fulfillment option. */
+ /**
+ * The type of the selected fulfillment option.
+ *
+ * One of {@code digital}, or {@code shipping}.
+ */
@SerializedName("type")
String type;
@@ -736,7 +799,11 @@ public static class SelectedFulfillmentOptionOverride extends StripeObject {
@SerializedName("shipping")
Shipping shipping;
- /** The type of the selected fulfillment option. */
+ /**
+ * The type of the selected fulfillment option.
+ *
+ * One of {@code digital}, or {@code shipping}.
+ */
@SerializedName("type")
String type;
@@ -1216,6 +1283,7 @@ public static class ApplicableFee extends StripeObject {
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
+ trySetResponseGetter(buyerConsents, responseGetter);
trySetResponseGetter(fulfillmentDetails, responseGetter);
trySetResponseGetter(orderDetails, responseGetter);
trySetResponseGetter(paymentMethodOptions, responseGetter);
diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java
index b7907a38435..cfc70d28364 100644
--- a/src/main/java/com/stripe/model/issuing/Authorization.java
+++ b/src/main/java/com/stripe/model/issuing/Authorization.java
@@ -97,6 +97,10 @@ public class Authorization extends ApiResource
@SerializedName("created")
Long created;
+ /** Array of onchain crypto transactions linked to this resource. */
+ @SerializedName("crypto_transactions")
+ List One of {@code collect_inputs}, {@code collect_payment_method}, {@code
- * confirm_payment_intent}, {@code process_payment_intent}, {@code process_setup_intent}, {@code
- * refund_payment}, or {@code set_reader_display}.
+ * confirm_payment_intent}, {@code print_content}, {@code process_payment_intent}, {@code
+ * process_setup_intent}, {@code refund_payment}, or {@code set_reader_display}.
*/
@SerializedName("type")
String type;
@@ -1201,6 +1205,46 @@ public static class ConfirmConfig extends StripeObject {
}
}
+ /** Represents a reader action to print content. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrintContent extends StripeObject {
+ /** Metadata of an uploaded file. */
+ @SerializedName("image")
+ Image image;
+
+ /**
+ * The type of content to print. Currently supports {@code image}.
+ *
+ * Equal to {@code image}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** Metadata of an uploaded file. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Image extends StripeObject {
+ /** Creation time of the object (in seconds since the Unix epoch). */
+ @SerializedName("created_at")
+ Long createdAt;
+
+ /** The original name of the uploaded file (e.g. {@code receipt.png}). */
+ @SerializedName("filename")
+ String filename;
+
+ /** The size (in bytes) of the uploaded file. */
+ @SerializedName("size")
+ Long size;
+
+ /** The format of the uploaded file. */
+ @SerializedName("type")
+ String type;
+ }
+ }
+
/** Represents a reader action to process a payment intent. */
@Getter
@Setter
diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
index ddd46b20a0e..f2b8101764c 100644
--- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
@@ -17,8 +17,56 @@ public final class EventDataClassLookup {
public static final Map One of {@code automatic}, or {@code manual}.
*/
@@ -110,11 +110,11 @@ public static class Tax extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Invoice extends StripeObject {
- /** The amount of time until the invoice will be overdue for payment. */
+ /** The amount of time until the invoice is overdue for payment. */
@SerializedName("time_until_due")
TimeUntilDue timeUntilDue;
- /** The amount of time until the invoice will be overdue for payment. */
+ /** The amount of time until the invoice is overdue for payment. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@@ -129,7 +129,7 @@ public static class TimeUntilDue extends StripeObject {
/**
* The number of interval units. For example, if interval=day and interval_count=30, the
- * invoice will be due in 30 days.
+ * invoice is due in 30 days.
*/
@SerializedName("interval_count")
Long intervalCount;
diff --git a/src/main/java/com/stripe/model/v2/billing/BillSettingVersion.java b/src/main/java/com/stripe/model/v2/billing/BillSettingVersion.java
index 819bd5601e4..aa5f127238a 100644
--- a/src/main/java/com/stripe/model/v2/billing/BillSettingVersion.java
+++ b/src/main/java/com/stripe/model/v2/billing/BillSettingVersion.java
@@ -70,8 +70,8 @@ public static class Calculation extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Tax extends StripeObject {
/**
- * Determines if tax will be calculated automatically based on a PTC or manually based on
- * rules defined by the merchant. Defaults to "manual".
+ * Determines if tax is calculated automatically based on a PTC or manually based on rules
+ * defined by the business. Defaults to "manual".
*
* One of {@code automatic}, or {@code manual}.
*/
@@ -85,11 +85,11 @@ public static class Tax extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Invoice extends StripeObject {
- /** The amount of time until the invoice will be overdue for payment. */
+ /** The amount of time until the invoice is overdue for payment. */
@SerializedName("time_until_due")
TimeUntilDue timeUntilDue;
- /** The amount of time until the invoice will be overdue for payment. */
+ /** The amount of time until the invoice is overdue for payment. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@@ -104,7 +104,7 @@ public static class TimeUntilDue extends StripeObject {
/**
* The number of interval units. For example, if interval=day and interval_count=30, the
- * invoice will be due in 30 days.
+ * invoice is due in 30 days.
*/
@SerializedName("interval_count")
Long intervalCount;
diff --git a/src/main/java/com/stripe/model/v2/billing/Cadence.java b/src/main/java/com/stripe/model/v2/billing/Cadence.java
index 7cb9a543f51..cfbc0f93603 100644
--- a/src/main/java/com/stripe/model/v2/billing/Cadence.java
+++ b/src/main/java/com/stripe/model/v2/billing/Cadence.java
@@ -178,8 +178,8 @@ public static class Time extends StripeObject {
public static class Month extends StripeObject {
/**
* The day to anchor the billing on for a type="month" billing cycle from 1-31. If
- * this number is greater than the number of days in the month being billed, this will anchor
- * to the last day of the month.
+ * this number is greater than the number of days in the month being billed, this anchors to
+ * the last day of the month.
*/
@SerializedName("day_of_month")
Long dayOfMonth;
@@ -274,15 +274,15 @@ public static class Time extends StripeObject {
public static class Year extends StripeObject {
/**
* The day to anchor the billing on for a type="month" billing cycle from 1-31. If
- * this number is greater than the number of days in the month being billed, this will anchor
- * to the last day of the month.
+ * this number is greater than the number of days in the month being billed, this anchors to
+ * the last day of the month.
*/
@SerializedName("day_of_month")
Long dayOfMonth;
/**
- * The month to bill on from 1-12. If not provided, this will default to the month the cadence
- * was created.
+ * The month to bill on from 1-12. If not provided, this defaults to the month the cadence was
+ * created.
*/
@SerializedName("month_of_year")
Long monthOfYear;
@@ -355,8 +355,8 @@ public static class PercentOff extends StripeObject {
MaximumApplications maximumApplications;
/**
- * Percent that will be taken off of the amount. For example, percent_off of 50.0 will make
- * $100 amount $50 instead.
+ * Percent that is taken off the amount. For example, a percent_off of 50.0 reduces a 100 USD
+ * amount to 50 USD.
*/
@SerializedName("percent_off")
BigDecimal percentOff;
@@ -382,7 +382,7 @@ public static class MaximumApplications extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Payer extends StripeObject {
- /** The ID of the Billing Profile object which determines how a bill will be paid. */
+ /** The ID of the Billing Profile object which determines how a bill is paid. */
@SerializedName("billing_profile")
String billingProfile;
@@ -495,8 +495,8 @@ public static class Calculation extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Tax extends StripeObject {
/**
- * Determines if tax will be calculated automatically based on a PTC or manually based on
- * rules defined by the merchant. Defaults to "manual".
+ * Determines if tax is calculated automatically based on a PTC or manually based on rules
+ * defined by the business. Defaults to "manual".
*
* One of {@code automatic}, or {@code manual}.
*/
@@ -510,11 +510,11 @@ public static class Tax extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Invoice extends StripeObject {
- /** The amount of time until the invoice will be overdue for payment. */
+ /** The amount of time until the invoice is overdue for payment. */
@SerializedName("time_until_due")
TimeUntilDue timeUntilDue;
- /** The amount of time until the invoice will be overdue for payment. */
+ /** The amount of time until the invoice is overdue for payment. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@@ -529,7 +529,7 @@ public static class TimeUntilDue extends StripeObject {
/**
* The number of interval units. For example, if interval=day and interval_count=30, the
- * invoice will be due in 30 days.
+ * invoice is due in 30 days.
*/
@SerializedName("interval_count")
Long intervalCount;
@@ -543,9 +543,9 @@ public static class TimeUntilDue extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Collection extends StripeObject {
/**
- * Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay
- * this bill at the end of the period using the payment method attached to the payer profile.
- * When sending an invoice, Stripe will email your payer profile an invoice with payment
+ * Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay this
+ * bill at the end of the period using the payment method attached to the billing profile.
+ * When sending an invoice, Stripe emails your billing profile an invoice with payment
* instructions. Defaults to automatic.
*
* One of {@code automatic}, or {@code send_invoice}.
diff --git a/src/main/java/com/stripe/model/v2/billing/CollectionSetting.java b/src/main/java/com/stripe/model/v2/billing/CollectionSetting.java
index 4a48b87b845..bfd997169b6 100644
--- a/src/main/java/com/stripe/model/v2/billing/CollectionSetting.java
+++ b/src/main/java/com/stripe/model/v2/billing/CollectionSetting.java
@@ -18,9 +18,9 @@
@EqualsAndHashCode(callSuper = false)
public class CollectionSetting extends StripeObject implements HasId {
/**
- * Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
- * bill at the end of the period using the payment method attached to the payer profile. When
- * sending an invoice, Stripe will email your payer profile an invoice with payment instructions.
+ * Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay this
+ * bill at the end of the period using the payment method attached to the billing profile. When
+ * sending an invoice, Stripe emails your billing profile an invoice with payment instructions.
* Defaults to automatic.
*
* One of {@code automatic}, or {@code send_invoice}.
@@ -46,8 +46,8 @@ public class CollectionSetting extends StripeObject implements HasId {
String id;
/**
- * The latest version of the current settings object. This will be Updated every time an attribute
- * of the settings is updated.
+ * The latest version of the current settings object. This is updated every time an attribute of
+ * the settings is updated.
*/
@SerializedName("latest_version")
String latestVersion;
diff --git a/src/main/java/com/stripe/model/v2/billing/CollectionSettingVersion.java b/src/main/java/com/stripe/model/v2/billing/CollectionSettingVersion.java
index 4bc0fda27bb..46b348be811 100644
--- a/src/main/java/com/stripe/model/v2/billing/CollectionSettingVersion.java
+++ b/src/main/java/com/stripe/model/v2/billing/CollectionSettingVersion.java
@@ -22,9 +22,9 @@
@EqualsAndHashCode(callSuper = false)
public class CollectionSettingVersion extends StripeObject implements HasId {
/**
- * Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
- * bill at the end of the period using the payment method attached to the payer profile. When
- * sending an invoice, Stripe will email your payer profile an invoice with payment instructions.
+ * Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay this
+ * bill at the end of the period using the payment method attached to the billing profile. When
+ * sending an invoice, Stripe emails your billing profile an invoice with payment instructions.
* Defaults to automatic.
*
* One of {@code automatic}, or {@code send_invoice}.
diff --git a/src/main/java/com/stripe/model/v2/billing/CustomPricingUnit.java b/src/main/java/com/stripe/model/v2/billing/CustomPricingUnit.java
index b63ce14820b..71d23f0773c 100644
--- a/src/main/java/com/stripe/model/v2/billing/CustomPricingUnit.java
+++ b/src/main/java/com/stripe/model/v2/billing/CustomPricingUnit.java
@@ -23,9 +23,7 @@ public class CustomPricingUnit extends StripeObject implements HasId {
@SerializedName("created")
Instant created;
- /**
- * Description that customers will see in the invoice line item. Maximum length of 10 characters.
- */
+ /** Description that customers see in the invoice line item. Maximum length of 10 characters. */
@SerializedName("display_name")
String displayName;
diff --git a/src/main/java/com/stripe/model/v2/billing/Intent.java b/src/main/java/com/stripe/model/v2/billing/Intent.java
index 775eb6aa8dc..f30c249e876 100644
--- a/src/main/java/com/stripe/model/v2/billing/Intent.java
+++ b/src/main/java/com/stripe/model/v2/billing/Intent.java
@@ -199,8 +199,8 @@ public static class Time extends StripeObject {
public static class Month extends StripeObject {
/**
* The day to anchor the billing on for a type="month" billing cycle from 1-31. If
- * this number is greater than the number of days in the month being billed, this will
- * anchor to the last day of the month.
+ * this number is greater than the number of days in the month being billed, this anchors to
+ * the last day of the month.
*/
@SerializedName("day_of_month")
Long dayOfMonth;
@@ -295,15 +295,15 @@ public static class Time extends StripeObject {
public static class Year extends StripeObject {
/**
* The day to anchor the billing on for a type="month" billing cycle from 1-31. If
- * this number is greater than the number of days in the month being billed, this will
- * anchor to the last day of the month.
+ * this number is greater than the number of days in the month being billed, this anchors to
+ * the last day of the month.
*/
@SerializedName("day_of_month")
Long dayOfMonth;
/**
- * The month to bill on from 1-12. If not provided, this will default to the month the
- * cadence was created.
+ * The month to bill on from 1-12. If not provided, this defaults to the month the cadence
+ * was created.
*/
@SerializedName("month_of_year")
Long monthOfYear;
@@ -346,7 +346,7 @@ public static class Time extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Payer extends StripeObject {
- /** The ID of the Billing Profile object which determines how a bill will be paid. */
+ /** The ID of the Billing Profile object which determines how a bill is paid. */
@SerializedName("billing_profile")
String billingProfile;
@@ -365,7 +365,7 @@ public static class BillingProfileData extends StripeObject {
/**
* The default payment method to use when billing this profile. If none is provided, the
- * customer {@code default_payment_method} will be used.
+ * customer {@code default_payment_method} is used.
*/
@SerializedName("default_payment_method")
String defaultPaymentMethod;
@@ -440,7 +440,7 @@ public static class StatusTransitions extends StripeObject {
@SerializedName("drafted_at")
Instant draftedAt;
- /** Time at which the Billing Intent will expire. */
+ /** Time at which the Billing Intent expires. */
@SerializedName("expires_at")
Instant expiresAt;
diff --git a/src/main/java/com/stripe/model/v2/billing/IntentAction.java b/src/main/java/com/stripe/model/v2/billing/IntentAction.java
index a862625f414..f6dd68e51e6 100644
--- a/src/main/java/com/stripe/model/v2/billing/IntentAction.java
+++ b/src/main/java/com/stripe/model/v2/billing/IntentAction.java
@@ -85,7 +85,7 @@ public static class Apply extends StripeObject {
@SerializedName("discount")
Discount discount;
- /** When the apply action will take effect. If not specified, defaults to on_reserve. */
+ /** When the apply action takes effect. If not specified, defaults to on_reserve. */
@SerializedName("effective_at")
EffectiveAt effectiveAt;
@@ -131,20 +131,20 @@ public static class Discount extends StripeObject {
String type;
}
- /** When the apply action will take effect. If not specified, defaults to on_reserve. */
+ /** When the apply action takes effect. If not specified, defaults to on_reserve. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class EffectiveAt extends StripeObject {
/**
- * The timestamp at which the apply action will take effect. Only present if type is
- * timestamp. Only allowed for discount actions.
+ * The timestamp at which the apply action takes effect. Only present if type is timestamp.
+ * Only allowed for discount actions.
*/
@SerializedName("timestamp")
Instant timestamp;
/**
- * When the apply action will take effect.
+ * When the apply action takes effect.
*
* One of {@code current_billing_period_end}, {@code current_billing_period_start}, {@code
* next_billing_period_start}, {@code on_reserve}, or {@code timestamp}.
@@ -195,8 +195,8 @@ public static class PercentOff extends StripeObject {
MaximumApplications maximumApplications;
/**
- * Percent that will be taken off of the amount. For example, percent_off of 50.0 will make
- * $100 amount $50 instead.
+ * Percent that is taken off the amount. For example, a percent_off of 50.0 reduces a 100
+ * USD amount to 50 USD.
*/
@SerializedName("percent_off")
BigDecimal percentOff;
@@ -331,7 +331,7 @@ public static class Deactivate extends StripeObject {
String collectAt;
/**
- * When the deactivate action will take effect. If not specified, the default behavior is
+ * When the deactivate action takes effect. If not specified, the default behavior is
* on_reserve.
*/
@SerializedName("effective_at")
@@ -374,7 +374,7 @@ public static class CancellationDetails extends StripeObject {
}
/**
- * When the deactivate action will take effect. If not specified, the default behavior is
+ * When the deactivate action takes effect. If not specified, the default behavior is
* on_reserve.
*/
@Getter
@@ -382,14 +382,14 @@ public static class CancellationDetails extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class EffectiveAt extends StripeObject {
/**
- * The timestamp at which the deactivate action will take effect. Only present if type is
+ * The timestamp at which the deactivate action takes effect. Only present if type is
* timestamp.
*/
@SerializedName("timestamp")
Instant timestamp;
/**
- * When the deactivate action will take effect.
+ * When the deactivate action takes effect.
*
* One of {@code current_billing_period_end}, {@code current_billing_period_start}, {@code
* on_reserve}, or {@code timestamp}.
@@ -480,8 +480,7 @@ public static class Modify extends StripeObject {
String collectAt;
/**
- * When the modify action will take effect. If not specified, the default behavior is
- * on_reserve.
+ * When the modify action takes effect. If not specified, the default behavior is on_reserve.
*/
@SerializedName("effective_at")
EffectiveAt effectiveAt;
@@ -499,22 +498,20 @@ public static class Modify extends StripeObject {
String type;
/**
- * When the modify action will take effect. If not specified, the default behavior is
- * on_reserve.
+ * When the modify action takes effect. If not specified, the default behavior is on_reserve.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class EffectiveAt extends StripeObject {
/**
- * The timestamp at which the modify action will take effect. Only present if type is
- * timestamp.
+ * The timestamp at which the modify action takes effect. Only present if type is timestamp.
*/
@SerializedName("timestamp")
Instant timestamp;
/**
- * When the modify action will take effect.
+ * When the modify action takes effect.
*
* One of {@code current_billing_period_start}, {@code on_reserve}, or {@code timestamp}.
*/
@@ -665,7 +662,7 @@ public static class RecurringCreditGrant extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Remove extends StripeObject {
- /** When the remove action will take effect. If not specified, defaults to on_reserve. */
+ /** When the remove action takes effect. If not specified, defaults to on_reserve. */
@SerializedName("effective_at")
EffectiveAt effectiveAt;
@@ -685,13 +682,13 @@ public static class Remove extends StripeObject {
@SerializedName("type")
String type;
- /** When the remove action will take effect. If not specified, defaults to on_reserve. */
+ /** When the remove action takes effect. If not specified, defaults to on_reserve. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class EffectiveAt extends StripeObject {
/**
- * When the remove action will take effect.
+ * When the remove action takes effect.
*
* One of {@code current_billing_period_end}, or {@code on_reserve}.
*/
@@ -714,8 +711,7 @@ public static class Subscribe extends StripeObject {
String collectAt;
/**
- * When the subscribe action will take effect. If not specified, the default behavior is
- * on_reserve.
+ * When the subscribe action takes effect. If not specified, the default behavior is on_reserve.
*/
@SerializedName("effective_at")
EffectiveAt effectiveAt;
@@ -737,22 +733,21 @@ public static class Subscribe extends StripeObject {
V1SubscriptionDetails v1SubscriptionDetails;
/**
- * When the subscribe action will take effect. If not specified, the default behavior is
- * on_reserve.
+ * When the subscribe action takes effect. If not specified, the default behavior is on_reserve.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class EffectiveAt extends StripeObject {
/**
- * The timestamp at which the subscribe action will take effect. Only present if type is
+ * The timestamp at which the subscribe action takes effect. Only present if type is
* timestamp.
*/
@SerializedName("timestamp")
Instant timestamp;
/**
- * When the subscribe action will take effect.
+ * When the subscribe action takes effect.
*
* One of {@code current_billing_period_start}, {@code on_reserve}, or {@code timestamp}.
*/
diff --git a/src/main/java/com/stripe/model/v2/billing/LicenseFee.java b/src/main/java/com/stripe/model/v2/billing/LicenseFee.java
index a868d630215..85802e8ef9a 100644
--- a/src/main/java/com/stripe/model/v2/billing/LicenseFee.java
+++ b/src/main/java/com/stripe/model/v2/billing/LicenseFee.java
@@ -64,8 +64,8 @@ public class LicenseFee extends StripeObject implements HasId {
LicensedItem licensedItem;
/**
- * The ID of the License Fee Version that will be used by all subscriptions when no specific
- * version is specified.
+ * The ID of the License Fee Version used by all subscriptions when no specific version is
+ * specified.
*/
@SerializedName("live_version")
String liveVersion;
@@ -115,13 +115,13 @@ public class LicenseFee extends StripeObject implements HasId {
/**
* The length of the interval for assessing service. For example, set this to 3 and {@code
- * service_interval} to {@code "month"} in order to specify quarterly service.
+ * service_interval} to {@code "month"} to specify quarterly service.
*/
@SerializedName("service_interval_count")
Long serviceIntervalCount;
/**
- * The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.
+ * The tax behavior for Stripe Tax — whether the license fee price includes or excludes tax.
*
* One of {@code exclusive}, or {@code inclusive}.
*/
@@ -129,8 +129,8 @@ public class LicenseFee extends StripeObject implements HasId {
String taxBehavior;
/**
- * Defines whether the tiering price should be graduated or volume-based. In volume-based tiering,
- * the maximum quantity within a period determines the per-unit price. In graduated tiering, the
+ * Defines whether the tiering price is graduated or volume-based. In volume-based tiering, the
+ * maximum quantity within a period determines the per-unit price. In graduated tiering, the
* pricing changes as the quantity grows into new tiers. Can only be set if {@code tiers} is set.
*
* One of {@code graduated}, or {@code volume}.
@@ -171,7 +171,7 @@ public static class ServiceCycle extends StripeObject {
/**
* The length of the interval for assessing service. For example, set this to 3 and {@code
- * interval} to {@code "month"} in order to specify quarterly service.
+ * interval} to {@code "month"} to specify quarterly service.
*/
@SerializedName("interval_count")
Long intervalCount;
@@ -200,8 +200,8 @@ public static class Tier extends StripeObject {
String unitAmount;
/**
- * Up to and including this quantity will be contained in the tier. Only one of {@code
- * up_to_decimal} and {@code up_to_inf} may be set.
+ * Up to and including this quantity is contained in the tier. Only one of {@code up_to_decimal}
+ * and {@code up_to_inf} may be set.
*/
@SerializedName("up_to_decimal")
BigDecimal upToDecimal;
diff --git a/src/main/java/com/stripe/model/v2/billing/LicenseFeeVersion.java b/src/main/java/com/stripe/model/v2/billing/LicenseFeeVersion.java
index 0c47e70c65c..4fb142f2cd1 100644
--- a/src/main/java/com/stripe/model/v2/billing/LicenseFeeVersion.java
+++ b/src/main/java/com/stripe/model/v2/billing/LicenseFeeVersion.java
@@ -53,8 +53,8 @@ public class LicenseFeeVersion extends StripeObject implements HasId {
String object;
/**
- * Defines whether the tiering price should be graduated or volume-based. In volume-based tiering,
- * the maximum quantity within a period determines the per-unit price. In graduated tiering, the
+ * Defines whether the tiering price is graduated or volume-based. In volume-based tiering, the
+ * maximum quantity within a period determines the per-unit price. In graduated tiering, the
* pricing changes as the quantity grows into new tiers. Can only be set if {@code tiers} is set.
*
* One of {@code graduated}, or {@code volume}.
@@ -103,8 +103,8 @@ public static class Tier extends StripeObject {
String unitAmount;
/**
- * Up to and including this quantity will be contained in the tier. Only one of {@code
- * up_to_decimal} and {@code up_to_inf} may be set.
+ * Up to and including this quantity is contained in the tier. Only one of {@code up_to_decimal}
+ * and {@code up_to_inf} may be set.
*/
@SerializedName("up_to_decimal")
BigDecimal upToDecimal;
diff --git a/src/main/java/com/stripe/model/v2/billing/LicensedItem.java b/src/main/java/com/stripe/model/v2/billing/LicensedItem.java
index 684542de089..3eaaf4525ed 100644
--- a/src/main/java/com/stripe/model/v2/billing/LicensedItem.java
+++ b/src/main/java/com/stripe/model/v2/billing/LicensedItem.java
@@ -22,9 +22,7 @@ public class LicensedItem extends StripeObject implements HasId {
@SerializedName("created")
Instant created;
- /**
- * Description that customers will see in the invoice line item. Maximum length of 250 characters.
- */
+ /** Description that customers see in the invoice line item. Maximum length of 250 characters. */
@SerializedName("display_name")
String displayName;
diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java b/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java
index 1ab06307ce2..c26cb58f4e4 100644
--- a/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java
+++ b/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java
@@ -30,7 +30,7 @@ public class MeterEventAdjustment extends StripeObject implements HasId {
@SerializedName("event_name")
String eventName;
- /** The unique id of this meter event adjustment. */
+ /** The unique ID of this meter event adjustment. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
String id;
@@ -60,8 +60,7 @@ public class MeterEventAdjustment extends StripeObject implements HasId {
String status;
/**
- * Open Enum. Specifies whether to cancel a single event or a range of events for a time period.
- * Time period cancellation is not supported yet.
+ * Open Enum. Specifies the type of cancellation. Currently supports canceling a single event.
*
* Equal to {@code cancel}.
*/
@@ -74,8 +73,8 @@ public class MeterEventAdjustment extends StripeObject implements HasId {
@EqualsAndHashCode(callSuper = false)
public static class Cancel extends StripeObject {
/**
- * Unique identifier for the event. You can only cancel events within 24 hours of Stripe
- * receiving them.
+ * The identifier that was originally assigned to the meter event. You can only cancel events
+ * within 24 hours of Stripe receiving them.
*/
@SerializedName("identifier")
String identifier;
diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEventSession.java b/src/main/java/com/stripe/model/v2/billing/MeterEventSession.java
index 5720ae4e1f3..712b05dfbbb 100644
--- a/src/main/java/com/stripe/model/v2/billing/MeterEventSession.java
+++ b/src/main/java/com/stripe/model/v2/billing/MeterEventSession.java
@@ -29,11 +29,11 @@ public class MeterEventSession extends StripeObject implements HasId {
@SerializedName("created")
Instant created;
- /** The time at which this session will expire. */
+ /** The time at which this session expires. */
@SerializedName("expires_at")
Instant expiresAt;
- /** The unique id of this auth session. */
+ /** The unique ID of this auth session. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
String id;
diff --git a/src/main/java/com/stripe/model/v2/billing/MeteredItem.java b/src/main/java/com/stripe/model/v2/billing/MeteredItem.java
index 1d2da0a74a0..86f3d8188f9 100644
--- a/src/main/java/com/stripe/model/v2/billing/MeteredItem.java
+++ b/src/main/java/com/stripe/model/v2/billing/MeteredItem.java
@@ -23,9 +23,7 @@ public class MeteredItem extends StripeObject implements HasId {
@SerializedName("created")
Instant created;
- /**
- * Description that customers will see in the invoice line item. Maximum length of 250 characters.
- */
+ /** Description that customers see in the invoice line item. Maximum length of 250 characters. */
@SerializedName("display_name")
String displayName;
diff --git a/src/main/java/com/stripe/model/v2/billing/OneTimeItem.java b/src/main/java/com/stripe/model/v2/billing/OneTimeItem.java
index 0b2c398350d..715d1044ab2 100644
--- a/src/main/java/com/stripe/model/v2/billing/OneTimeItem.java
+++ b/src/main/java/com/stripe/model/v2/billing/OneTimeItem.java
@@ -22,9 +22,7 @@ public class OneTimeItem extends StripeObject implements HasId {
@SerializedName("created")
Instant created;
- /**
- * Description that customers will see in the invoice line item. Maximum length of 250 characters.
- */
+ /** Description that customers see in the invoice line item. Maximum length of 250 characters. */
@SerializedName("display_name")
String displayName;
diff --git a/src/main/java/com/stripe/model/v2/billing/PricingPlan.java b/src/main/java/com/stripe/model/v2/billing/PricingPlan.java
index d69690be424..3dd50178417 100644
--- a/src/main/java/com/stripe/model/v2/billing/PricingPlan.java
+++ b/src/main/java/com/stripe/model/v2/billing/PricingPlan.java
@@ -33,7 +33,7 @@ public class PricingPlan extends StripeObject implements HasId {
@SerializedName("currency")
String currency;
- /** A description for pricing plan subscription. Maximum length of 500 characters. */
+ /** A description of the pricing plan. Maximum length of 500 characters. */
@SerializedName("description")
String description;
@@ -86,7 +86,7 @@ public class PricingPlan extends StripeObject implements HasId {
String object;
/**
- * The Stripe Tax tax behavior - whether the PricingPlan is inclusive or exclusive of tax.
+ * The tax behavior for Stripe Tax — whether the pricing plan price includes or excludes tax.
*
* One of {@code exclusive}, or {@code inclusive}.
*/
diff --git a/src/main/java/com/stripe/model/v2/billing/PricingPlanSubscription.java b/src/main/java/com/stripe/model/v2/billing/PricingPlanSubscription.java
index a1b7f9faac7..099f15984af 100644
--- a/src/main/java/com/stripe/model/v2/billing/PricingPlanSubscription.java
+++ b/src/main/java/com/stripe/model/v2/billing/PricingPlanSubscription.java
@@ -287,7 +287,7 @@ public static class LicenseFeeDetails extends StripeObject {
ServiceCycle serviceCycle;
/**
- * Defines whether the tiering price should be graduated or volume-based.
+ * Defines whether the tiering price is graduated or volume-based.
*
* One of {@code graduated}, or {@code volume}.
*/
@@ -313,8 +313,8 @@ public static class LicenseFeeDetails extends StripeObject {
String unitAmount;
/**
- * The unit label from the licensed item, used for display purposes (e.g. "seat",
- * "environment").
+ * The unit label from the licensed item, used for display purposes (for example,
+ * "seat", "environment").
*/
@SerializedName("unit_label")
String unitLabel;
@@ -334,7 +334,7 @@ public static class ServiceCycle extends StripeObject {
/**
* The length of the interval for assessing service. For example, set this to 3 and {@code
- * interval} to {@code "month"} in order to specify quarterly service.
+ * interval} to {@code "month"} to specify quarterly service.
*/
@SerializedName("interval_count")
Long intervalCount;
@@ -363,7 +363,7 @@ public static class Tier extends StripeObject {
String unitAmount;
/**
- * Up to and including this quantity will be contained in the tier. Only one of {@code
+ * Up to and including this quantity is contained in the tier. Only one of {@code
* up_to_decimal} and {@code up_to_inf} may be set.
*/
@SerializedName("up_to_decimal")
@@ -448,7 +448,7 @@ public static class ServiceCycle extends StripeObject {
/**
* The length of the interval for assessing service. For example, set this to 3 and {@code
- * interval} to {@code "month"} in order to specify quarterly service.
+ * interval} to {@code "month"} to specify quarterly service.
*/
@SerializedName("interval_count")
Long intervalCount;
@@ -574,9 +574,9 @@ public static class Scope extends StripeObject {
List Equal to {@code metered}.
*/
@@ -691,9 +691,9 @@ public static class Scope extends StripeObject {
List Equal to {@code metered}.
*/
@@ -733,7 +733,7 @@ public static class ServiceCycle extends StripeObject {
/**
* The length of the interval for assessing service. For example, set this to 3 and {@code
- * interval} to {@code "month"} in order to specify quarterly service.
+ * interval} to {@code "month"} to specify quarterly service.
*/
@SerializedName("interval_count")
Long intervalCount;
diff --git a/src/main/java/com/stripe/model/v2/billing/PricingPlanVersion.java b/src/main/java/com/stripe/model/v2/billing/PricingPlanVersion.java
index 0f1b18a3d80..fb2d58cdbcf 100644
--- a/src/main/java/com/stripe/model/v2/billing/PricingPlanVersion.java
+++ b/src/main/java/com/stripe/model/v2/billing/PricingPlanVersion.java
@@ -23,7 +23,7 @@ public class PricingPlanVersion extends StripeObject implements HasId {
@SerializedName("created")
Instant created;
- /** The timestamp when this version became inactive. Null if it's the latest version. */
+ /** The timestamp when this version became inactive. null if it's the latest version. */
@SerializedName("end_date")
Instant endDate;
diff --git a/src/main/java/com/stripe/model/v2/billing/RateCard.java b/src/main/java/com/stripe/model/v2/billing/RateCard.java
index 0cf64202aba..4643ebd04ae 100644
--- a/src/main/java/com/stripe/model/v2/billing/RateCard.java
+++ b/src/main/java/com/stripe/model/v2/billing/RateCard.java
@@ -52,8 +52,8 @@ public class RateCard extends StripeObject implements HasId {
String latestVersion;
/**
- * The ID of the Rate Card Version that will be used by all subscriptions when no specific version
- * is specified.
+ * The ID of the Rate Card Version used by all subscriptions when no specific version is
+ * specified.
*/
@SerializedName("live_version")
String liveVersion;
@@ -91,20 +91,21 @@ public class RateCard extends StripeObject implements HasId {
/**
* The service cycle configuration for this Rate Card. For example, a monthly Rate Card with a
- * rate of $1 for the first 10 "workloads" and $2 thereafter means "$1 per workload
- * up to 10 workloads during a month of service." This is similar to but distinct from
- * billing interval; the service interval deals with the rate at which the customer accumulates
- * fees, while the billing interval in Cadence deals with the rate the customer is billed.
+ * rate of 1 USD for the first 10 "workloads" and 2 USD thereafter means "1 USD per
+ * workload up to 10 workloads during a month of service." This is similar to but distinct
+ * from billing interval; the service interval deals with the rate at which the customer
+ * accumulates fees, while the billing interval in Cadence deals with the rate the customer is
+ * billed.
*/
@SerializedName("service_cycle")
ServiceCycle serviceCycle;
/**
- * The interval for assessing service. For example, a monthly Rate Card with a rate of $1 for the
- * first 10 "workloads" and $2 thereafter means "$1 per workload up to 10 workloads
- * during a month of service." This is similar to but distinct from billing interval; the
- * service interval deals with the rate at which the customer accumulates fees, while the billing
- * interval in Cadence deals with the rate the customer is billed.
+ * The interval for assessing service. For example, a monthly Rate Card with a rate of 1 USD for
+ * the first 10 "workloads" and 2 USD thereafter means "1 USD per workload up to 10
+ * workloads during a month of service." This is similar to but distinct from billing
+ * interval; the service interval deals with the rate at which the customer accumulates fees,
+ * while the billing interval in Cadence deals with the rate the customer is billed.
*
* One of {@code day}, {@code month}, {@code week}, or {@code year}.
*/
@@ -113,13 +114,13 @@ public class RateCard extends StripeObject implements HasId {
/**
* The length of the interval for assessing service. For example, set this to 3 and {@code
- * service_interval} to {@code "month"} in order to specify quarterly service.
+ * service_interval} to {@code "month"} to specify quarterly service.
*/
@SerializedName("service_interval_count")
Long serviceIntervalCount;
/**
- * The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax.
+ * The tax behavior for Stripe Tax — whether the rate card price includes or excludes tax.
*
* One of {@code exclusive}, or {@code inclusive}.
*/
@@ -128,10 +129,11 @@ public class RateCard extends StripeObject implements HasId {
/**
* The service cycle configuration for this Rate Card. For example, a monthly Rate Card with a
- * rate of $1 for the first 10 "workloads" and $2 thereafter means "$1 per workload
- * up to 10 workloads during a month of service." This is similar to but distinct from
- * billing interval; the service interval deals with the rate at which the customer accumulates
- * fees, while the billing interval in Cadence deals with the rate the customer is billed.
+ * rate of 1 USD for the first 10 "workloads" and 2 USD thereafter means "1 USD per
+ * workload up to 10 workloads during a month of service." This is similar to but distinct
+ * from billing interval; the service interval deals with the rate at which the customer
+ * accumulates fees, while the billing interval in Cadence deals with the rate the customer is
+ * billed.
*/
@Getter
@Setter
@@ -147,7 +149,7 @@ public static class ServiceCycle extends StripeObject {
/**
* The length of the interval for assessing service. For example, set this to 3 and {@code
- * interval} to {@code "month"} in order to specify quarterly service.
+ * interval} to {@code "month"} to specify quarterly service.
*/
@SerializedName("interval_count")
Long intervalCount;
diff --git a/src/main/java/com/stripe/model/v2/billing/RateCardRate.java b/src/main/java/com/stripe/model/v2/billing/RateCardRate.java
index 66d8806c178..6536ded42c0 100644
--- a/src/main/java/com/stripe/model/v2/billing/RateCardRate.java
+++ b/src/main/java/com/stripe/model/v2/billing/RateCardRate.java
@@ -77,8 +77,8 @@ public class RateCardRate extends StripeObject implements HasId {
String rateCardVersion;
/**
- * Defines whether the tiering price should be graduated or volume-based. In volume-based tiering,
- * the maximum quantity within a period determines the per-unit price. In graduated tiering, the
+ * Defines whether the tiering price is graduated or volume-based. In volume-based tiering, the
+ * maximum quantity within a period determines the per-unit price. In graduated tiering, the
* pricing changes as the quantity grows into new tiers. Can only be set if {@code tiers} is set.
*
* One of {@code graduated}, or {@code volume}.
@@ -146,8 +146,8 @@ public static class Tier extends StripeObject {
String unitAmount;
/**
- * Up to and including this quantity will be contained in the tier. Only one of {@code
- * up_to_decimal} and {@code up_to_inf} may be set.
+ * Up to and including this quantity is contained in the tier. Only one of {@code up_to_decimal}
+ * and {@code up_to_inf} may be set.
*/
@SerializedName("up_to_decimal")
BigDecimal upToDecimal;
diff --git a/src/main/java/com/stripe/model/v2/billing/ServiceAction.java b/src/main/java/com/stripe/model/v2/billing/ServiceAction.java
index 88f424c715c..164ed837b8e 100644
--- a/src/main/java/com/stripe/model/v2/billing/ServiceAction.java
+++ b/src/main/java/com/stripe/model/v2/billing/ServiceAction.java
@@ -183,9 +183,9 @@ public static class Scope extends StripeObject {
List Equal to {@code metered}.
*/
@@ -316,9 +316,9 @@ public static class Scope extends StripeObject {
List Equal to {@code metered}.
*/
diff --git a/src/main/java/com/stripe/model/v2/commerce/ProductCatalogImport.java b/src/main/java/com/stripe/model/v2/commerce/ProductCatalogImport.java
new file mode 100644
index 00000000000..3a6b0953528
--- /dev/null
+++ b/src/main/java/com/stripe/model/v2/commerce/ProductCatalogImport.java
@@ -0,0 +1,260 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.v2.commerce;
+
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.HasId;
+import com.stripe.model.StringInt64TypeAdapter;
+import com.stripe.model.StripeObject;
+import java.time.Instant;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * The product catalog import object tracks the long-running background process that handles
+ * uploading, processing and validation.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class ProductCatalogImport extends StripeObject implements HasId {
+ /** The time this ProductCatalogImport was created. */
+ @SerializedName("created")
+ Instant created;
+
+ /**
+ * The type of feed data being imported into the product catalog.
+ *
+ * One of {@code inventory}, {@code pricing}, or {@code product}.
+ */
+ @SerializedName("feed_type")
+ String feedType;
+
+ /** The unique identifier for this ProductCatalogImport. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
+ * object exists in test mode.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /** Additional information about the object in a structured format. */
+ @SerializedName("metadata")
+ Map Equal to {@code v2.commerce.product_catalog_import}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /**
+ * The current status of this ProductCatalogImport.
+ *
+ * One of {@code awaiting_upload}, {@code failed}, {@code processing}, {@code succeeded}, or
+ * {@code succeeded_with_errors}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /** Details about the current import status. */
+ @SerializedName("status_details")
+ StatusDetails statusDetails;
+
+ /** Details about the current import status. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetails extends StripeObject {
+ /** Details when the import is awaiting file upload. */
+ @SerializedName("awaiting_upload")
+ AwaitingUpload awaitingUpload;
+
+ /** Details when the import didn't complete. */
+ @SerializedName("failed")
+ Failed failed;
+
+ /** Details when the import is processing. */
+ @SerializedName("processing")
+ Processing processing;
+
+ /** Details when the import has succeeded. */
+ @SerializedName("succeeded")
+ Succeeded succeeded;
+
+ /** Details when the import completed but some records failed to process. */
+ @SerializedName("succeeded_with_errors")
+ SucceededWithErrors succeededWithErrors;
+
+ /** Details when the import is awaiting file upload. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AwaitingUpload extends StripeObject {
+ /** The pre-signed URL information for uploading the catalog file. */
+ @SerializedName("upload_url")
+ UploadUrl uploadUrl;
+
+ /** The pre-signed URL information for uploading the catalog file. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UploadUrl extends StripeObject {
+ /** The timestamp when the upload URL expires. */
+ @SerializedName("expires_at")
+ Instant expiresAt;
+
+ /** The pre-signed URL for uploading the catalog file. */
+ @SerializedName("url")
+ String url;
+ }
+ }
+
+ /** Details when the import didn't complete. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Failed extends StripeObject {
+ /**
+ * The error code for this product catalog processing failure.
+ *
+ * One of {@code file_not_found}, {@code internal_error}, or {@code invalid_file}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /** A message explaining why the import failed. */
+ @SerializedName("failure_message")
+ String failureMessage;
+
+ /**
+ * The error type for this product catalog processing failure.
+ *
+ * One of {@code cannot_proceed}, or {@code transient_failure}.
+ */
+ @SerializedName("type")
+ String type;
+ }
+
+ /** Details when the import is processing. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Processing extends StripeObject {
+ /** The number of records that failed to process so far. */
+ @SerializedName("error_count")
+ @JsonAdapter(StringInt64TypeAdapter.class)
+ Long errorCount;
+
+ /** The number of records processed so far. */
+ @SerializedName("success_count")
+ @JsonAdapter(StringInt64TypeAdapter.class)
+ Long successCount;
+ }
+
+ /** Details when the import has succeeded. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Succeeded extends StripeObject {
+ /** The total number of records processed. */
+ @SerializedName("success_count")
+ @JsonAdapter(StringInt64TypeAdapter.class)
+ Long successCount;
+ }
+
+ /** Details when the import completed but some records failed to process. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SucceededWithErrors extends StripeObject {
+ /** The total number of records that failed to process. */
+ @SerializedName("error_count")
+ @JsonAdapter(StringInt64TypeAdapter.class)
+ Long errorCount;
+
+ /** A file containing details about all errors that occurred. */
+ @SerializedName("error_file")
+ ErrorFile errorFile;
+
+ /** A sample of errors that occurred during processing. */
+ @SerializedName("samples")
+ List One of {@code ae_crn}, {@code ae_vat}, {@code ao_nif}, {@code ar_cuit}, {@code at_fn},
* {@code at_stn}, {@code at_vat}, {@code au_abn}, {@code au_acn}, {@code au_in}, {@code
* az_tin}, {@code bd_etin}, {@code be_cbe}, {@code be_vat}, {@code bg_uic}, {@code bg_vat},
- * {@code br_cnpj}, {@code ca_cn}, {@code ca_crarr}, {@code ca_gst_hst}, {@code ca_neq},
- * {@code ca_rid}, {@code ch_chid}, {@code ch_uid}, {@code cr_cpj}, {@code cr_nite}, {@code
- * cy_he}, {@code cy_tic}, {@code cy_vat}, {@code cz_ico}, {@code cz_vat}, {@code de_hrn},
- * {@code de_stn}, {@code de_vat}, {@code dk_cvr}, {@code dk_vat}, {@code do_rcn}, {@code
- * ee_rk}, {@code ee_vat}, {@code es_cif}, {@code es_vat}, {@code fi_vat}, {@code fi_yt},
- * {@code fr_rna}, {@code fr_siren}, {@code fr_vat}, {@code gb_crn}, {@code gb_vat}, {@code
- * gi_crn}, {@code gr_afm}, {@code gr_gemi}, {@code gr_vat}, {@code gt_nit}, {@code hk_br},
- * {@code hk_cr}, {@code hr_mbs}, {@code hr_oib}, {@code hr_vat}, {@code hu_cjs}, {@code
- * hu_tin}, {@code hu_vat}, {@code ie_crn}, {@code ie_trn}, {@code ie_vat}, {@code it_rea},
- * {@code it_vat}, {@code jp_cn}, {@code kz_bin}, {@code li_uid}, {@code lt_ccrn}, {@code
- * lt_vat}, {@code lu_nif}, {@code lu_rcs}, {@code lu_vat}, {@code lv_urn}, {@code lv_vat},
- * {@code mt_crn}, {@code mt_tin}, {@code mt_vat}, {@code mx_rfc}, {@code my_brn}, {@code
- * my_coid}, {@code my_itn}, {@code my_sst}, {@code mz_nuit}, {@code nl_kvk}, {@code
+ * {@code bm_crn}, {@code bo_tin}, {@code br_cnpj}, {@code bt_tpn}, {@code ca_cn}, {@code
+ * ca_crarr}, {@code ca_gst_hst}, {@code ca_neq}, {@code ca_rid}, {@code ch_chid}, {@code
+ * ch_uid}, {@code co_nit}, {@code cr_cpj}, {@code cr_nite}, {@code cy_he}, {@code cy_tic},
+ * {@code cy_vat}, {@code cz_ico}, {@code cz_vat}, {@code de_hrn}, {@code de_stn}, {@code
+ * de_vat}, {@code dk_cvr}, {@code dk_vat}, {@code do_rcn}, {@code ec_ruc}, {@code ee_rk},
+ * {@code ee_vat}, {@code eg_tin}, {@code es_cif}, {@code es_vat}, {@code fi_vat}, {@code
+ * fi_yt}, {@code fr_rna}, {@code fr_siren}, {@code fr_vat}, {@code gb_crn}, {@code gb_vat},
+ * {@code gh_tin}, {@code gi_crn}, {@code gr_afm}, {@code gr_gemi}, {@code gr_vat}, {@code
+ * gt_nit}, {@code gy_tin}, {@code hk_br}, {@code hk_cr}, {@code hn_rtn}, {@code hr_mbs},
+ * {@code hr_oib}, {@code hr_vat}, {@code hu_cjs}, {@code hu_tin}, {@code hu_vat}, {@code
+ * ie_crn}, {@code ie_trn}, {@code ie_vat}, {@code it_rea}, {@code it_vat}, {@code jm_trn},
+ * {@code jo_crn}, {@code jp_cn}, {@code ke_pin}, {@code ky_crn}, {@code kz_bin}, {@code
+ * li_uid}, {@code lk_tin}, {@code lt_ccrn}, {@code lt_vat}, {@code lu_nif}, {@code lu_rcs},
+ * {@code lu_vat}, {@code lv_urn}, {@code lv_vat}, {@code mo_tin}, {@code mt_crn}, {@code
+ * mt_tin}, {@code mt_vat}, {@code mv_tin}, {@code mx_rfc}, {@code my_brn}, {@code my_coid},
+ * {@code my_itn}, {@code my_sst}, {@code mz_nuit}, {@code ng_tin}, {@code nl_kvk}, {@code
* nl_rsin}, {@code nl_vat}, {@code no_orgnr}, {@code nz_bn}, {@code nz_ird}, {@code
- * pe_ruc}, {@code pk_ntn}, {@code pl_nip}, {@code pl_regon}, {@code pl_vat}, {@code
- * pt_vat}, {@code ro_cui}, {@code ro_orc}, {@code ro_vat}, {@code sa_crn}, {@code sa_tin},
- * {@code se_orgnr}, {@code se_vat}, {@code sg_uen}, {@code si_msp}, {@code si_tin}, {@code
- * si_vat}, {@code sk_dic}, {@code sk_ico}, {@code sk_vat}, {@code th_crn}, {@code th_prn},
- * {@code th_tin}, or {@code us_ein}.
+ * pa_ruc}, {@code pe_ruc}, {@code ph_tin}, {@code pk_ntn}, {@code pl_nip}, {@code
+ * pl_regon}, {@code pl_vat}, {@code pt_vat}, {@code py_ruc}, {@code ro_cui}, {@code
+ * ro_orc}, {@code ro_vat}, {@code sa_crn}, {@code sa_tin}, {@code se_orgnr}, {@code
+ * se_vat}, {@code sg_uen}, {@code si_msp}, {@code si_tin}, {@code si_vat}, {@code sk_dic},
+ * {@code sk_ico}, {@code sk_vat}, {@code sl_tin}, {@code sv_nit}, {@code th_crn}, {@code
+ * th_prn}, {@code th_tin}, {@code us_ein}, {@code uy_ruc}, {@code vg_cn}, or {@code
+ * za_tin}.
*/
@SerializedName("type")
String type;
@@ -9576,19 +9581,23 @@ public static class IdNumber extends StripeObject {
*
* One of {@code ae_eid}, {@code ao_nif}, {@code ar_cuil}, {@code ar_dni}, {@code
* at_stn}, {@code az_tin}, {@code bd_brc}, {@code bd_etin}, {@code bd_nid}, {@code be_nrn},
- * {@code bg_ucn}, {@code bn_nric}, {@code br_cpf}, {@code ca_sin}, {@code ch_oasi}, {@code
- * cl_rut}, {@code cn_pp}, {@code co_nuip}, {@code cr_ci}, {@code cr_cpf}, {@code cr_dimex},
- * {@code cr_nite}, {@code cy_tic}, {@code cz_rc}, {@code de_stn}, {@code dk_cpr}, {@code
- * do_cie}, {@code do_rcn}, {@code ec_ci}, {@code ee_ik}, {@code es_nif}, {@code fi_hetu},
- * {@code fr_nir}, {@code gb_nino}, {@code gr_afm}, {@code gt_nit}, {@code hk_id}, {@code
- * hr_oib}, {@code hu_ad}, {@code id_nik}, {@code ie_ppsn}, {@code is_kt}, {@code it_cf},
- * {@code jp_inc}, {@code ke_pin}, {@code kz_iin}, {@code li_peid}, {@code lt_ak}, {@code
- * lu_nif}, {@code lv_pk}, {@code mx_rfc}, {@code my_nric}, {@code mz_nuit}, {@code ng_nin},
- * {@code nl_bsn}, {@code no_nin}, {@code nz_ird}, {@code pe_dni}, {@code pk_cnic}, {@code
- * pk_snic}, {@code pl_pesel}, {@code pt_nif}, {@code ro_cnp}, {@code sa_tin}, {@code
- * se_pin}, {@code sg_fin}, {@code sg_nric}, {@code sk_dic}, {@code th_lc}, {@code th_pin},
- * {@code tr_tin}, {@code us_itin}, {@code us_itin_last_4}, {@code us_ssn}, {@code
- * us_ssn_last_4}, {@code uy_dni}, or {@code za_id}.
+ * {@code bg_ucn}, {@code bm_pp}, {@code bn_nric}, {@code bo_ci}, {@code br_cpf}, {@code
+ * bt_cid}, {@code ca_sin}, {@code ch_oasi}, {@code cl_rut}, {@code cn_pp}, {@code co_nuip},
+ * {@code cr_ci}, {@code cr_cpf}, {@code cr_dimex}, {@code cr_nite}, {@code cy_tic}, {@code
+ * cz_rc}, {@code de_stn}, {@code dk_cpr}, {@code do_cie}, {@code do_rcn}, {@code ec_ci},
+ * {@code ee_ik}, {@code eg_tin}, {@code es_nif}, {@code fi_hetu}, {@code fr_nir}, {@code
+ * gb_nino}, {@code gh_pin}, {@code gr_afm}, {@code gt_nit}, {@code gy_tin}, {@code hk_id},
+ * {@code hn_rtn}, {@code hr_oib}, {@code hu_ad}, {@code id_nik}, {@code ie_ppsn}, {@code
+ * is_kt}, {@code it_cf}, {@code jm_trn}, {@code jo_pin}, {@code jp_inc}, {@code ke_pin},
+ * {@code ky_pp}, {@code kz_iin}, {@code li_peid}, {@code lk_nic}, {@code lt_ak}, {@code
+ * lu_nif}, {@code lv_pk}, {@code mo_bir}, {@code mt_nic}, {@code mv_tin}, {@code mx_rfc},
+ * {@code my_nric}, {@code mz_nuit}, {@code ng_nin}, {@code nl_bsn}, {@code no_nin}, {@code
+ * nz_ird}, {@code pa_ruc}, {@code pe_dni}, {@code ph_tin}, {@code pk_cnic}, {@code
+ * pk_snic}, {@code pl_pesel}, {@code pt_nif}, {@code py_ruc}, {@code ro_cnp}, {@code
+ * sa_tin}, {@code se_pin}, {@code sg_fin}, {@code sg_nric}, {@code si_pin}, {@code sk_dic},
+ * {@code sv_nit}, {@code th_lc}, {@code th_pin}, {@code tr_tin}, {@code us_itin}, {@code
+ * us_itin_last_4}, {@code us_ssn}, {@code us_ssn_last_4}, {@code uy_dni}, {@code vg_pp}, or
+ * {@code za_id}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/v2/core/AccountPerson.java b/src/main/java/com/stripe/model/v2/core/AccountPerson.java
index 25eed6ceaab..71fc2a61202 100644
--- a/src/main/java/com/stripe/model/v2/core/AccountPerson.java
+++ b/src/main/java/com/stripe/model/v2/core/AccountPerson.java
@@ -533,19 +533,22 @@ public static class IdNumber extends StripeObject {
*
* One of {@code ae_eid}, {@code ao_nif}, {@code ar_cuil}, {@code ar_dni}, {@code at_stn},
* {@code az_tin}, {@code bd_brc}, {@code bd_etin}, {@code bd_nid}, {@code be_nrn}, {@code
- * bg_ucn}, {@code bn_nric}, {@code br_cpf}, {@code ca_sin}, {@code ch_oasi}, {@code cl_rut},
- * {@code cn_pp}, {@code co_nuip}, {@code cr_ci}, {@code cr_cpf}, {@code cr_dimex}, {@code
- * cr_nite}, {@code cy_tic}, {@code cz_rc}, {@code de_stn}, {@code dk_cpr}, {@code do_cie},
- * {@code do_rcn}, {@code ec_ci}, {@code ee_ik}, {@code es_nif}, {@code fi_hetu}, {@code
- * fr_nir}, {@code gb_nino}, {@code gr_afm}, {@code gt_nit}, {@code hk_id}, {@code hr_oib},
- * {@code hu_ad}, {@code id_nik}, {@code ie_ppsn}, {@code is_kt}, {@code it_cf}, {@code jp_inc},
- * {@code ke_pin}, {@code kz_iin}, {@code li_peid}, {@code lt_ak}, {@code lu_nif}, {@code
- * lv_pk}, {@code mx_rfc}, {@code my_nric}, {@code mz_nuit}, {@code ng_nin}, {@code nl_bsn},
- * {@code no_nin}, {@code nz_ird}, {@code pe_dni}, {@code pk_cnic}, {@code pk_snic}, {@code
- * pl_pesel}, {@code pt_nif}, {@code ro_cnp}, {@code sa_tin}, {@code se_pin}, {@code sg_fin},
- * {@code sg_nric}, {@code sk_dic}, {@code th_lc}, {@code th_pin}, {@code tr_tin}, {@code
- * us_itin}, {@code us_itin_last_4}, {@code us_ssn}, {@code us_ssn_last_4}, {@code uy_dni}, or
- * {@code za_id}.
+ * bg_ucn}, {@code bm_pp}, {@code bn_nric}, {@code bo_ci}, {@code br_cpf}, {@code bt_cid},
+ * {@code ca_sin}, {@code ch_oasi}, {@code cl_rut}, {@code cn_pp}, {@code co_nuip}, {@code
+ * cr_ci}, {@code cr_cpf}, {@code cr_dimex}, {@code cr_nite}, {@code cy_tic}, {@code cz_rc},
+ * {@code de_stn}, {@code dk_cpr}, {@code do_cie}, {@code do_rcn}, {@code ec_ci}, {@code ee_ik},
+ * {@code eg_tin}, {@code es_nif}, {@code fi_hetu}, {@code fr_nir}, {@code gb_nino}, {@code
+ * gh_pin}, {@code gr_afm}, {@code gt_nit}, {@code gy_tin}, {@code hk_id}, {@code hn_rtn},
+ * {@code hr_oib}, {@code hu_ad}, {@code id_nik}, {@code ie_ppsn}, {@code is_kt}, {@code it_cf},
+ * {@code jm_trn}, {@code jo_pin}, {@code jp_inc}, {@code ke_pin}, {@code ky_pp}, {@code
+ * kz_iin}, {@code li_peid}, {@code lk_nic}, {@code lt_ak}, {@code lu_nif}, {@code lv_pk},
+ * {@code mo_bir}, {@code mt_nic}, {@code mv_tin}, {@code mx_rfc}, {@code my_nric}, {@code
+ * mz_nuit}, {@code ng_nin}, {@code nl_bsn}, {@code no_nin}, {@code nz_ird}, {@code pa_ruc},
+ * {@code pe_dni}, {@code ph_tin}, {@code pk_cnic}, {@code pk_snic}, {@code pl_pesel}, {@code
+ * pt_nif}, {@code py_ruc}, {@code ro_cnp}, {@code sa_tin}, {@code se_pin}, {@code sg_fin},
+ * {@code sg_nric}, {@code si_pin}, {@code sk_dic}, {@code sv_nit}, {@code th_lc}, {@code
+ * th_pin}, {@code tr_tin}, {@code us_itin}, {@code us_itin_last_4}, {@code us_ssn}, {@code
+ * us_ssn_last_4}, {@code uy_dni}, {@code vg_pp}, or {@code za_id}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/v2/core/ApprovalRequest.java b/src/main/java/com/stripe/model/v2/core/ApprovalRequest.java
new file mode 100644
index 00000000000..f05c2b93c65
--- /dev/null
+++ b/src/main/java/com/stripe/model/v2/core/ApprovalRequest.java
@@ -0,0 +1,366 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.v2.core;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import java.time.Instant;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/** An approval request represents a pending action that requires review before execution. */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class ApprovalRequest extends StripeObject implements HasId {
+ /**
+ * The action that was requested.
+ *
+ * One of {@code charge.create}, {@code dispute.close}, {@code
+ * inbound_transfers.money_management.create}, {@code invoice.create}, {@code
+ * outbound_payments.money_management.create}, {@code outbound_transfers.money_management.create},
+ * {@code payment_intent.create}, {@code payment_intent.update}, {@code payout.create}, {@code
+ * price.update}, {@code refund.create}, {@code setup_intent.create}, {@code subscription.create},
+ * {@code subscription.update}, {@code topup.create}, or {@code transfer.create}.
+ */
+ @SerializedName("action")
+ String action;
+
+ /** Time this ApprovalRequest was created. */
+ @SerializedName("created")
+ Instant created;
+
+ /** The URL to the dashboard for this ApprovalRequest. */
+ @SerializedName("dashboard_url")
+ String dashboardUrl;
+
+ /** A description of the approval request. */
+ @SerializedName("description")
+ String description;
+
+ /** The timestamp at which this ApprovalRequest will expire. */
+ @SerializedName("expires_at")
+ Instant expiresAt;
+
+ /** The unique identifier for this ApprovalRequest. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** Whether this ApprovalRequest is livemode. */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value of the
+ * object field.
+ *
+ * Equal to {@code v2.core.approval_request}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** The requester of this ApprovalRequest. */
+ @SerializedName("requested_by")
+ RequestedBy requestedBy;
+
+ /** The review of this ApprovalRequest if it has been reviewed. */
+ @SerializedName("review")
+ Review review;
+
+ /** The rule associated with this ApprovalRequest. */
+ @SerializedName("rule")
+ Rule rule;
+
+ /**
+ * The status of this ApprovalRequest.
+ *
+ * One of {@code approved}, {@code canceled}, {@code execution_failed}, {@code
+ * execution_started}, {@code execution_succeeded}, {@code expired}, {@code failed}, {@code
+ * pending}, {@code rejected}, {@code requires_execution}, {@code requires_review}, or {@code
+ * succeeded}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /** The details of the status of this ApprovalRequest. */
+ @SerializedName("status_details")
+ StatusDetails statusDetails;
+
+ /** The transitions of the status of this ApprovalRequest. */
+ @SerializedName("status_transitions")
+ StatusTransitions statusTransitions;
+
+ /** The requester of this ApprovalRequest. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RequestedBy extends StripeObject implements HasId {
+ /** Stripe-defined identifier for the requester (e.g. a restricted API key token). */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** Merchant-defined name for the requester. */
+ @SerializedName("name")
+ String name;
+ }
+
+ /** The review of this ApprovalRequest if it has been reviewed. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Review extends StripeObject {
+ /** The reason provided by the reviewer. */
+ @SerializedName("reason")
+ String reason;
+
+ /**
+ * The result of the review.
+ *
+ * One of {@code approved}, or {@code rejected}.
+ */
+ @SerializedName("result")
+ String result;
+
+ /** Timestamp when the review was performed. */
+ @SerializedName("reviewed_at")
+ Instant reviewedAt;
+
+ /** The reviewer who performed the review. */
+ @SerializedName("reviewed_by")
+ ReviewedBy reviewedBy;
+
+ /** The reviewer who performed the review. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ReviewedBy extends StripeObject implements HasId {
+ /** Stripe-defined identifier for the reviewer (e.g. a restricted API key token). */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** Merchant-defined name for the reviewer. */
+ @SerializedName("name")
+ String name;
+ }
+ }
+
+ /** The rule associated with this ApprovalRequest. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Rule extends StripeObject {
+ /** The name of the rule. */
+ @SerializedName("name")
+ String name;
+ }
+
+ /** The details of the status of this ApprovalRequest. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetails extends StripeObject {
+ /** Deprecated: use requires_execution status instead. */
+ @SerializedName("approved")
+ Approved approved;
+
+ /** Deprecated: use canceled status instead. */
+ @SerializedName("canceled")
+ Canceled canceled;
+
+ /** Deprecated: use failed status instead. */
+ @SerializedName("execution_failed")
+ ExecutionFailed executionFailed;
+
+ /** Deprecated: use requires_execution status instead. */
+ @SerializedName("execution_started")
+ ExecutionStarted executionStarted;
+
+ /** Deprecated: use succeeded status instead. */
+ @SerializedName("execution_succeeded")
+ ExecutionSucceeded executionSucceeded;
+
+ /** Deprecated: use expired status instead. */
+ @SerializedName("expired")
+ Expired expired;
+
+ /** Details when the approval request failed. */
+ @SerializedName("failed")
+ Failed failed;
+
+ /** Deprecated: use requires_review status instead. */
+ @SerializedName("pending")
+ Pending pending;
+
+ /** Deprecated: use rejected status instead. */
+ @SerializedName("rejected")
+ Rejected rejected;
+
+ /** Details when the approval request succeeded. */
+ @SerializedName("succeeded")
+ Succeeded succeeded;
+
+ /** Deprecated: use requires_execution status instead. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Approved extends StripeObject {
+ /** The reason provided when approving the request. */
+ @SerializedName("reason")
+ String reason;
+ }
+
+ /** Deprecated: use canceled status instead. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Canceled extends StripeObject {}
+
+ /** Deprecated: use failed status instead. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ExecutionFailed extends StripeObject {
+ /** The error code for the failed execution. */
+ @SerializedName("code")
+ String code;
+
+ /** The error message for the failed execution. */
+ @SerializedName("message")
+ String message;
+
+ /** The error type for the failed execution. */
+ @SerializedName("type")
+ String type;
+ }
+
+ /** Deprecated: use requires_execution status instead. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ExecutionStarted extends StripeObject {}
+
+ /** Deprecated: use succeeded status instead. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ExecutionSucceeded extends StripeObject {
+ /** The result of the successful execution. */
+ @SerializedName("result")
+ Result result;
+
+ /** The result of the successful execution. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Result extends StripeObject implements HasId {
+ /** The unique identifier of the executed object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** The object type of the executed resource. */
+ @SerializedName("object")
+ String object;
+ }
+ }
+
+ /** Deprecated: use expired status instead. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Expired extends StripeObject {}
+
+ /** Details when the approval request failed. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Failed extends StripeObject {
+ /** The error code for the failed execution. */
+ @SerializedName("error_code")
+ String errorCode;
+
+ /** The error message for the failed execution. */
+ @SerializedName("error_message")
+ String errorMessage;
+
+ /** The error type for the failed execution. */
+ @SerializedName("error_type")
+ String errorType;
+ }
+
+ /** Deprecated: use requires_review status instead. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Pending extends StripeObject {}
+
+ /** Deprecated: use rejected status instead. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Rejected extends StripeObject {
+ /** The reason provided when rejecting the request. */
+ @SerializedName("reason")
+ String reason;
+ }
+
+ /** Details when the approval request succeeded. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Succeeded extends StripeObject {
+ /** The result of the successful execution. */
+ @SerializedName("result")
+ Result result;
+
+ /** The result of the successful execution. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Result extends StripeObject implements HasId {
+ /** The unique identifier of the executed object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** The object type of the executed resource. */
+ @SerializedName("object")
+ String object;
+ }
+ }
+ }
+
+ /** The transitions of the status of this ApprovalRequest. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusTransitions extends StripeObject {
+ /** Timestamp when the approval request was canceled. */
+ @SerializedName("canceled_at")
+ Instant canceledAt;
+
+ /** Timestamp when the approval request expired. */
+ @SerializedName("expired_at")
+ Instant expiredAt;
+
+ /** Timestamp when the approval request failed. */
+ @SerializedName("failed_at")
+ Instant failedAt;
+
+ /** Timestamp when the approval request was rejected. */
+ @SerializedName("rejected_at")
+ Instant rejectedAt;
+
+ /** Timestamp when the approval request moved to requires_execution status. */
+ @SerializedName("requires_execution_at")
+ Instant requiresExecutionAt;
+
+ /** Timestamp when the approval request succeeded. */
+ @SerializedName("succeeded_at")
+ Instant succeededAt;
+ }
+}
diff --git a/src/main/java/com/stripe/model/v2/core/ClaimableSandbox.java b/src/main/java/com/stripe/model/v2/core/ClaimableSandbox.java
index 0847c3986da..2840797f1ff 100644
--- a/src/main/java/com/stripe/model/v2/core/ClaimableSandbox.java
+++ b/src/main/java/com/stripe/model/v2/core/ClaimableSandbox.java
@@ -22,11 +22,12 @@
@EqualsAndHashCode(callSuper = false)
public class ClaimableSandbox extends StripeObject implements HasId {
/**
- * URL for user to claim sandbox into their existing Stripe account. The value will be null if the
- * sandbox status is {@code claimed} or {@code expired}.
+ * The app channel that will be used when pre-installing your app on the claimable sandbox.
+ *
+ * One of {@code public}, or {@code testing}.
*/
- @SerializedName("claim_url")
- String claimUrl;
+ @SerializedName("app_channel")
+ String appChannel;
/**
* The timestamp the sandbox was claimed. The value will be null if the sandbox status is not
@@ -67,6 +68,17 @@ public class ClaimableSandbox extends StripeObject implements HasId {
@SerializedName("object")
String object;
+ /** Details about the onboarding link. */
+ @SerializedName("onboarding_link_details")
+ OnboardingLinkDetails onboardingLinkDetails;
+
+ /**
+ * Details about the livemode owner account of the sandbox. This will be null until the sandbox is
+ * claimed.
+ */
+ @SerializedName("owner_details")
+ OwnerDetails ownerDetails;
+
/**
* Values prefilled during the creation of the sandbox. When a user claims the sandbox, they will
* be able to update these values.
@@ -78,10 +90,63 @@ public class ClaimableSandbox extends StripeObject implements HasId {
@SerializedName("sandbox_details")
SandboxDetails sandboxDetails;
- /** Status of the sandbox. One of {@code unclaimed}, {@code expired}, {@code claimed}. */
+ /**
+ * Status of the sandbox.
+ *
+ * One of {@code claimed}, {@code expired}, {@code live}, or {@code unclaimed}.
+ */
@SerializedName("status")
String status;
+ /** Details about the onboarding link. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class OnboardingLinkDetails extends StripeObject {
+ /** The timestamp the onboarding link expires. */
+ @SerializedName("expires_at")
+ Instant expiresAt;
+
+ /**
+ * The URL the user will be redirected to if the onboarding link is expired or invalid. The URL
+ * specified should attempt to generate a new onboarding link, and re-direct the user to this
+ * new onboarding link so that they can proceed with the onboarding flow.
+ */
+ @SerializedName("refresh_url")
+ String refreshUrl;
+
+ /**
+ * URL that will redirect the user to either claim or onboard the claimable sandbox depending on
+ * its status.
+ */
+ @SerializedName("url")
+ String url;
+ }
+
+ /**
+ * Details about the livemode owner account of the sandbox. This will be null until the sandbox is
+ * claimed.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class OwnerDetails extends StripeObject {
+ /**
+ * The ID of the livemode Stripe account that owns the sandbox. This field is only set when
+ * owner_details.app_install_status is {@code installed}.
+ */
+ @SerializedName("account")
+ String account;
+
+ /**
+ * Indicates whether the platform app is installed on the sandbox’s livemode owner account.
+ *
+ * One of {@code installed}, {@code pending_install}, or {@code pending_onboarding}.
+ */
+ @SerializedName("app_install_status")
+ String appInstallStatus;
+ }
+
/**
* Values prefilled during the creation of the sandbox. When a user claims the sandbox, they will
* be able to update these values.
@@ -127,13 +192,6 @@ public static class SandboxDetails extends StripeObject {
@SerializedName("api_keys")
ApiKeys apiKeys;
- /**
- * The livemode sandbox Stripe account ID. This field is only set if the user activates their
- * sandbox and chooses to install your platform's Stripe App in their live account.
- */
- @SerializedName("owner_account")
- String ownerAccount;
-
/**
* Keys that can be used to set up an integration for this sandbox and operate on the account.
* This will be present only in the create response, and will be null in subsequent retrieve
diff --git a/src/main/java/com/stripe/model/v2/core/ConnectionSession.java b/src/main/java/com/stripe/model/v2/core/ConnectionSession.java
index 0f82ea1eb73..1977d566ffd 100644
--- a/src/main/java/com/stripe/model/v2/core/ConnectionSession.java
+++ b/src/main/java/com/stripe/model/v2/core/ConnectionSession.java
@@ -10,7 +10,10 @@
import lombok.Getter;
import lombok.Setter;
-/** The ConnectionSession resource. */
+/**
+ * A short-lived, single-use session used to launch client-side Link onboarding that connects an
+ * Account to a Link consumer account.
+ */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
diff --git a/src/main/java/com/stripe/model/v2/core/Event.java b/src/main/java/com/stripe/model/v2/core/Event.java
index d13703a4b0d..fb65a915e6c 100644
--- a/src/main/java/com/stripe/model/v2/core/Event.java
+++ b/src/main/java/com/stripe/model/v2/core/Event.java
@@ -72,6 +72,10 @@ public class Event extends StripeObject implements HasId, StripeActiveObject {
@SerializedName("reason")
Reason reason;
+ /** For interop events, this is the snapshot event ID. */
+ @SerializedName("snapshot_event")
+ String snapshotEvent;
+
/** The type of the event. */
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/v2/core/vault/GbBankAccount.java b/src/main/java/com/stripe/model/v2/core/vault/GbBankAccount.java
index f43af389910..5b2a525a0bb 100644
--- a/src/main/java/com/stripe/model/v2/core/vault/GbBankAccount.java
+++ b/src/main/java/com/stripe/model/v2/core/vault/GbBankAccount.java
@@ -31,7 +31,7 @@ public class GbBankAccount extends StripeObject implements HasId {
/**
* Closed Enum. The type of the bank account (checking or savings).
*
- * One of {@code checking}, or {@code savings}.
+ * One of {@code checking}, {@code futsu}, {@code savings}, or {@code toza}.
*/
@SerializedName("bank_account_type")
String bankAccountType;
diff --git a/src/main/java/com/stripe/model/v2/core/Workflow.java b/src/main/java/com/stripe/model/v2/extend/Workflow.java
similarity index 88%
rename from src/main/java/com/stripe/model/v2/core/Workflow.java
rename to src/main/java/com/stripe/model/v2/extend/Workflow.java
index 64ac9d89a72..92c468ad893 100644
--- a/src/main/java/com/stripe/model/v2/core/Workflow.java
+++ b/src/main/java/com/stripe/model/v2/extend/Workflow.java
@@ -1,5 +1,5 @@
// File generated from our OpenAPI spec
-package com.stripe.model.v2.core;
+package com.stripe.model.v2.extend;
import com.google.gson.annotations.SerializedName;
import com.stripe.model.HasId;
@@ -22,10 +22,6 @@ public class Workflow extends StripeObject implements HasId {
@SerializedName("created")
Instant created;
- /** Workflow description. */
- @SerializedName("description")
- String description;
-
/** The unique ID of the Workflow. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
@@ -42,7 +38,7 @@ public class Workflow extends StripeObject implements HasId {
* String representing the object's type. Objects of the same type share the same value of the
* object field.
*
- * Equal to {@code v2.core.workflow}.
+ * Equal to {@code v2.extend.workflow}.
*/
@SerializedName("object")
String object;
@@ -56,6 +52,10 @@ public class Workflow extends StripeObject implements HasId {
@SerializedName("status")
String status;
+ /** Workflow title. */
+ @SerializedName("title")
+ String title;
+
/** Under what conditions will this Workflow launch. */
@SerializedName("triggers")
List Equal to {@code v2.core.workflow_run}.
+ * Equal to {@code v2.extend.workflow_run}.
*/
@SerializedName("object")
String object;
@@ -86,16 +86,6 @@ public static class StatusDetails extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Failed extends StripeObject {
- /**
- * If this Workflow Run failed during the processing of an action step, the step identifier.
- */
- @SerializedName("action")
- String action;
-
- /** Category of the failure result. */
- @SerializedName("error_code")
- String errorCode;
-
/** Optional details about the failure result. */
@SerializedName("error_message")
String errorMessage;
@@ -111,15 +101,7 @@ public static class Started extends StripeObject {}
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class Succeeded extends StripeObject {
- /** Category of the success result. */
- @SerializedName("status_code")
- String statusCode;
-
- /** Optional details about the success result. */
- @SerializedName("status_message")
- String statusMessage;
- }
+ public static class Succeeded extends StripeObject {}
}
/** Summary information about the Workflow Run's status transitions. */
@@ -169,6 +151,10 @@ public static class Trigger extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class EventTrigger extends StripeObject implements HasId {
+ /** The account that generated the triggering event. */
+ @SerializedName("context")
+ String context;
+
/** The Stripe event that triggered this Run. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
diff --git a/src/main/java/com/stripe/model/v2/iam/ActivityLog.java b/src/main/java/com/stripe/model/v2/iam/ActivityLog.java
new file mode 100644
index 00000000000..fadbbbe57e1
--- /dev/null
+++ b/src/main/java/com/stripe/model/v2/iam/ActivityLog.java
@@ -0,0 +1,238 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.v2.iam;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import java.time.Instant;
+import java.util.List;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/** An activity log records a single action performed on an account. */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class ActivityLog extends StripeObject implements HasId {
+ /** The actor that performed the action. */
+ @SerializedName("actor")
+ Actor actor;
+
+ /** The account on which the action was performed. */
+ @SerializedName("context")
+ String context;
+
+ /** Timestamp when the activity log entry was created. */
+ @SerializedName("created")
+ Instant created;
+
+ /** Action-specific details of the activity log entry. */
+ @SerializedName("details")
+ Details details;
+
+ /** Unique identifier of the activity log entry. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** Whether the action was performed in live mode. */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value of the
+ * object field.
+ *
+ * Equal to {@code v2.iam.activity_log}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /**
+ * The type of action that was performed.
+ *
+ * One of {@code api_key_created}, {@code api_key_deleted}, {@code api_key_updated}, {@code
+ * api_key_viewed}, {@code user_invite_accepted}, {@code user_invite_created}, {@code
+ * user_invite_deleted}, {@code user_roles_deleted}, or {@code user_roles_updated}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** The actor that performed the action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Actor extends StripeObject {
+ /** Set when the actor is an API key. */
+ @SerializedName("api_key")
+ ApiKey apiKey;
+
+ /**
+ * The type of actor.
+ *
+ * One of {@code api_key}, or {@code user}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** Set when the actor is a user. */
+ @SerializedName("user")
+ User user;
+
+ /** Set when the actor is an API key. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ApiKey extends StripeObject implements HasId {
+ /** Unique identifier of the API key. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+ }
+
+ /** Set when the actor is a user. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class User extends StripeObject {
+ /** Email address of the user. */
+ @SerializedName("email")
+ String email;
+ }
+ }
+
+ /** Action-specific details of the activity log entry. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Details extends StripeObject {
+ /** Details of an API key action. */
+ @SerializedName("api_key")
+ ApiKey apiKey;
+
+ /**
+ * The action group type of the activity log entry.
+ *
+ * One of {@code api_key}, {@code user_invite}, or {@code user_roles}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** Details of a user invite action. */
+ @SerializedName("user_invite")
+ UserInvite userInvite;
+
+ /** Details of a user role change action. */
+ @SerializedName("user_roles")
+ UserRoles userRoles;
+
+ /** Details of an API key action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ApiKey extends StripeObject implements HasId {
+ /** Timestamp when the API key was created. */
+ @SerializedName("created")
+ Instant created;
+
+ /** Timestamp when the API key expires. */
+ @SerializedName("expires_at")
+ Instant expiresAt;
+
+ /** Unique identifier of the API key. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** List of IP addresses allowed to use this API key. */
+ @SerializedName("ip_allowlist")
+ List One of {@code publishable_key}, or {@code secret_key}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** Information about the entity managing this API key. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ManagedBy extends StripeObject {
+ /** An application. */
+ @SerializedName("application")
+ Application application;
+
+ /**
+ * The type of entity.
+ *
+ * Equal to {@code application}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** An application. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Application extends StripeObject implements HasId {
+ /** Identifier of the application. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+ }
+ }
+ }
+
+ /** Details of a user invite action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UserInvite extends StripeObject {
+ /** Email address of the invited user. */
+ @SerializedName("invited_user_email")
+ String invitedUserEmail;
+
+ /** Roles assigned to the invited user. */
+ @SerializedName("roles")
+ List One of {@code accrued_fees}, {@code other}, {@code payments}, or {@code storage}.
+ * One of {@code accrued_fees}, {@code multiprocessor_settlement}, {@code other}, {@code
+ * payments}, or {@code storage}.
*/
@SerializedName("type")
String type;
@@ -191,6 +199,19 @@ public static class ManagedBy extends StripeObject {
String type;
}
+ /**
+ * If this is a {@code multiprocessor_settlement} FinancialAccount, this hash includes details
+ * specific to {@code multiprocessor_settlement} FinancialAccounts.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MultiprocessorSettlement extends StripeObject {
+ /** Settlement currencies enabled for this FinancialAccount. */
+ @SerializedName("settlement_currencies")
+ List One of {@code gb_bank_account}, {@code sepa_bank_account}, or {@code us_bank_account}.
+ * One of {@code ca_bank_account}, {@code gb_bank_account}, {@code sepa_bank_account}, or
+ * {@code us_bank_account}.
*/
@SerializedName("type")
String type;
@@ -111,6 +120,44 @@ public static class Credentials extends StripeObject {
@SerializedName("us_bank_account")
UsBankAccount usBankAccount;
+ /**
+ * The credentials of the Canadian Bank Account for the FinancialAddress. This contains unique
+ * banking details such as the account number, institution number, etc. of a Canadian bank
+ * account.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CaBankAccount extends StripeObject {
+ /** The account holder name to be used during bank transfers. */
+ @SerializedName("account_holder_name")
+ String accountHolderName;
+
+ /** The account number of the Canadian Bank Account. */
+ @SerializedName("account_number")
+ String accountNumber;
+
+ /** The name of the Bank. */
+ @SerializedName("bank_name")
+ String bankName;
+
+ /** The institution number of the Canadian Bank Account. */
+ @SerializedName("institution_number")
+ String institutionNumber;
+
+ /**
+ * The last four digits of the Canadian Bank Account number. This will always be returned. To
+ * view the full account number when retrieving or listing FinancialAddresses, use the {@code
+ * include} request parameter.
+ */
+ @SerializedName("last4")
+ String last4;
+
+ /** The transit number of the Canadian Bank Account. */
+ @SerializedName("transit_number")
+ String transitNumber;
+ }
+
/**
* The credentials of the UK Bank Account for the FinancialAddress. This contains unique banking
* details such as the sort code, account number, etc. of a UK bank account.
diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java b/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java
index 2187df5a752..d1439b2ba27 100644
--- a/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java
+++ b/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java
@@ -122,7 +122,7 @@ public static class BankAccount extends StripeObject {
/**
* The type of bank account (checking or savings).
*
- * One of {@code checking}, or {@code savings}.
+ * One of {@code checking}, {@code futsu}, {@code savings}, or {@code toza}.
*/
@SerializedName("bank_account_type")
String bankAccountType;
@@ -230,7 +230,7 @@ public static class CryptoWallet extends StripeObject {
* Which rail is being used to make an outbound money movement to this wallet.
*
* One of {@code arbitrum}, {@code avalanche_c_chain}, {@code base}, {@code ethereum}, {@code
- * optimism}, {@code polygon}, {@code solana}, or {@code stellar}.
+ * optimism}, {@code polygon}, {@code solana}, {@code stellar}, or {@code tempo}.
*/
@SerializedName("network")
String network;
diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java
index 3c541808fbe..f54255e9f62 100644
--- a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java
+++ b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java
@@ -171,6 +171,13 @@ public static class BalanceTransfer extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class BankTransfer extends StripeObject {
+ /**
+ * Hash containing the transaction bank details. Present if {@code origin_type} field value is
+ * {@code ca_bank_account}.
+ */
+ @SerializedName("ca_bank_account")
+ CaBankAccount caBankAccount;
+
/** Financial Address on which funds for ReceivedCredit were received. */
@SerializedName("financial_address")
String financialAddress;
@@ -185,7 +192,8 @@ public static class BankTransfer extends StripeObject {
/**
* Open Enum. Indicates the origin of source from which external funds originated from.
*
- * One of {@code gb_bank_account}, {@code sepa_bank_account}, or {@code us_bank_account}.
+ * One of {@code ca_bank_account}, {@code gb_bank_account}, {@code sepa_bank_account}, or
+ * {@code us_bank_account}.
*/
@SerializedName("origin_type")
String originType;
@@ -208,6 +216,38 @@ public static class BankTransfer extends StripeObject {
@SerializedName("us_bank_account")
UsBankAccount usBankAccount;
+ /**
+ * Hash containing the transaction bank details. Present if {@code origin_type} field value is
+ * {@code ca_bank_account}.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CaBankAccount extends StripeObject {
+ /** The account holder name of the bank account the transfer was received from. */
+ @SerializedName("account_holder_name")
+ String accountHolderName;
+
+ /** The bank name the transfer was received from. */
+ @SerializedName("bank_name")
+ String bankName;
+
+ /**
+ * The last 4 digits of the account number that originated the transfer. Depending on the
+ * bank, this may instead be the last 4 digits of the return account number.
+ */
+ @SerializedName("last4")
+ String last4;
+
+ /**
+ * Open Enum. The money transmission network used to send funds for this ReceivedCredit.
+ *
+ * Equal to {@code acss}.
+ */
+ @SerializedName("network")
+ String network;
+ }
+
/**
* Hash containing the transaction bank details. Present if {@code origin_type} field value is
* {@code gb_bank_account}.
diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/Transaction.java b/src/main/java/com/stripe/model/v2/moneymanagement/Transaction.java
index 5521bfcbbe2..85796fc1b66 100644
--- a/src/main/java/com/stripe/model/v2/moneymanagement/Transaction.java
+++ b/src/main/java/com/stripe/model/v2/moneymanagement/Transaction.java
@@ -49,10 +49,10 @@ public class Transaction extends StripeObject implements HasId {
* payment_method_passthrough_fee}, {@code payment_network_reserved_funds}, {@code
* platform_earning}, {@code platform_earning_refund}, {@code platform_fee}, {@code
* received_credit}, {@code received_credit_reversal}, {@code received_debit}, {@code
- * received_debit_reversal}, {@code refund}, {@code refund_failure}, {@code return}, {@code
- * risk_reserved_funds}, {@code stripe_balance_payment_debit}, {@code
- * stripe_balance_payment_debit_reversal}, {@code stripe_fee}, {@code stripe_fee_tax}, {@code
- * tax_withholding}, {@code transfer_reversal}, or {@code unreconciled_customer_funds}.
+ * received_debit_reversal}, {@code refund}, {@code refund_failure}, {@code risk_reserved_funds},
+ * {@code stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code
+ * stripe_fee}, {@code stripe_fee_tax}, {@code tax_withholding}, {@code transfer_reversal}, or
+ * {@code unreconciled_customer_funds}.
*/
@SerializedName("category")
String category;
diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/TransactionEntry.java b/src/main/java/com/stripe/model/v2/moneymanagement/TransactionEntry.java
index 03f6c1275cc..85963858dd0 100644
--- a/src/main/java/com/stripe/model/v2/moneymanagement/TransactionEntry.java
+++ b/src/main/java/com/stripe/model/v2/moneymanagement/TransactionEntry.java
@@ -108,7 +108,7 @@ public static class TransactionDetails extends StripeObject {
* payment_network_reserved_funds}, {@code platform_earning}, {@code platform_earning_refund},
* {@code platform_fee}, {@code received_credit}, {@code received_credit_reversal}, {@code
* received_debit}, {@code received_debit_reversal}, {@code refund}, {@code refund_failure},
- * {@code return}, {@code risk_reserved_funds}, {@code stripe_balance_payment_debit}, {@code
+ * {@code risk_reserved_funds}, {@code stripe_balance_payment_debit}, {@code
* stripe_balance_payment_debit_reversal}, {@code stripe_fee}, {@code stripe_fee_tax}, {@code
* tax_withholding}, {@code transfer_reversal}, or {@code unreconciled_customer_funds}.
*/
diff --git a/src/main/java/com/stripe/model/v2/network/BusinessProfile.java b/src/main/java/com/stripe/model/v2/network/BusinessProfile.java
new file mode 100644
index 00000000000..79c44dd89af
--- /dev/null
+++ b/src/main/java/com/stripe/model/v2/network/BusinessProfile.java
@@ -0,0 +1,101 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.v2.network;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/** The Stripe profile represents a business' public identity on the Stripe network. */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class BusinessProfile extends StripeObject implements HasId {
+ /** Branding data for the business. */
+ @SerializedName("branding")
+ Branding branding;
+
+ /** The description of the business. */
+ @SerializedName("description")
+ String description;
+
+ /** The display name of the Stripe profile. */
+ @SerializedName("display_name")
+ String displayName;
+
+ /**
+ * The ID of the Stripe business profile; also known as the Network ID. This is the ID used to
+ * identify the business on the Stripe network.
+ */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
+ * object exists in test mode.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value of the
+ * object field.
+ *
+ * Equal to {@code v2.network.business_profile}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** The URL of the business. */
+ @SerializedName("url")
+ String url;
+
+ /** The username of the Stripe profile. */
+ @SerializedName("username")
+ String username;
+
+ /** Branding data for the business. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Branding extends StripeObject {
+ /** URL of the icon for the business. The image will be square and at least 128px x 128px. */
+ @SerializedName("icon")
+ Icon icon;
+
+ /** URL of the logo for the business. The image will be at least 128px x 128px. */
+ @SerializedName("logo")
+ Logo logo;
+
+ /** A CSS hex color value representing the primary branding color for this business. */
+ @SerializedName("primary_color")
+ String primaryColor;
+
+ /** A CSS hex color value representing the secondary branding color for this business. */
+ @SerializedName("secondary_color")
+ String secondaryColor;
+
+ /** URL of the icon for the business. The image will be square and at least 128px x 128px. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Icon extends StripeObject {
+ /** The URL of the image in its original size. */
+ @SerializedName("original")
+ String original;
+ }
+
+ /** URL of the logo for the business. The image will be at least 128px x 128px. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Logo extends StripeObject {
+ /** The URL of the image in its original size. */
+ @SerializedName("original")
+ String original;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/model/v2/orchestratedcommerce/Agreement.java b/src/main/java/com/stripe/model/v2/orchestratedcommerce/Agreement.java
new file mode 100644
index 00000000000..6d567f837e1
--- /dev/null
+++ b/src/main/java/com/stripe/model/v2/orchestratedcommerce/Agreement.java
@@ -0,0 +1,125 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.v2.orchestratedcommerce;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import java.time.Instant;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * An Orchestrated Commerce Agreement represents a mutual agreement between a seller and an
+ * orchestrator/agent on the Stripe network.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class Agreement extends StripeObject implements HasId {
+ /** The time at which the agreement was created. */
+ @SerializedName("created")
+ Instant created;
+
+ /** The unique identifier for the agreement. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * The party that initiated the agreement.
+ *
+ * One of {@code orchestrator}, or {@code seller}.
+ */
+ @SerializedName("initiated_by")
+ String initiatedBy;
+
+ /**
+ * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
+ * object exists in test mode.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value of the
+ * object field.
+ *
+ * Equal to {@code v2.orchestrated_commerce.agreement}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** Details about the orchestrator. */
+ @SerializedName("orchestrator_details")
+ OrchestratorDetails orchestratorDetails;
+
+ /** Details about the seller. */
+ @SerializedName("seller_details")
+ SellerDetails sellerDetails;
+
+ /**
+ * The current status of the agreement.
+ *
+ * One of {@code confirmed}, {@code initiated}, {@code partially_confirmed}, or {@code
+ * terminated}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /** Timestamps of key status transitions for the agreement. */
+ @SerializedName("status_transitions")
+ StatusTransitions statusTransitions;
+
+ /**
+ * The party that terminated the agreement, if applicable.
+ *
+ * One of {@code orchestrator}, or {@code seller}.
+ */
+ @SerializedName("terminated_by")
+ String terminatedBy;
+
+ /** Details about the orchestrator. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class OrchestratorDetails extends StripeObject {
+ /**
+ * The name of the orchestrator. This can be the name of the agent or the name of the business.
+ */
+ @SerializedName("name")
+ String name;
+
+ /** The Network ID of the orchestrator. */
+ @SerializedName("network_business_profile")
+ String networkBusinessProfile;
+ }
+
+ /** Details about the seller. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SellerDetails extends StripeObject {
+ /** The Network ID of the seller. */
+ @SerializedName("network_business_profile")
+ String networkBusinessProfile;
+ }
+
+ /** Timestamps of key status transitions for the agreement. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusTransitions extends StripeObject {
+ /** The time at which the orchestrator confirmed the agreement. */
+ @SerializedName("orchestrator_confirmed_at")
+ Instant orchestratorConfirmedAt;
+
+ /** The time at which the seller confirmed the agreement. */
+ @SerializedName("seller_confirmed_at")
+ Instant sellerConfirmedAt;
+
+ /** The time at which the agreement was terminated. */
+ @SerializedName("terminated_at")
+ Instant terminatedAt;
+ }
+}
diff --git a/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java b/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java
index 728a948f61d..3b738f503e5 100644
--- a/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java
+++ b/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java
@@ -6,6 +6,7 @@
import com.stripe.model.StripeObject;
import com.stripe.v2.Amount;
import java.time.Instant;
+import java.util.List;
import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.Getter;
@@ -29,6 +30,10 @@ public class OffSessionPayment extends StripeObject implements HasId {
@SerializedName("amount_capturable")
Amount amountCapturable;
+ /** Provides industry-specific information about the amount. */
+ @SerializedName("amount_details")
+ AmountDetails amountDetails;
+
/** The “presentment amount” to be collected from the customer. */
@SerializedName("amount_requested")
Amount amountRequested;
@@ -60,6 +65,10 @@ public class OffSessionPayment extends StripeObject implements HasId {
@SerializedName("customer")
String customer;
+ /** An arbitrary string attached to the object. Often useful for displaying to users. */
+ @SerializedName("description")
+ String description;
+
/**
* The reason why the OffSessionPayment failed.
*
@@ -112,6 +121,10 @@ public class OffSessionPayment extends StripeObject implements HasId {
@SerializedName("on_behalf_of")
String onBehalfOf;
+ /** Provides industry-specific information about the payment. */
+ @SerializedName("payment_details")
+ PaymentDetails paymentDetails;
+
/** ID of the payment method used in this OffSessionPayment. */
@SerializedName("payment_method")
String paymentMethod;
@@ -166,6 +179,141 @@ public class OffSessionPayment extends StripeObject implements HasId {
@SerializedName("transfer_data")
TransferData transferData;
+ /** Provides industry-specific information about the amount. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AmountDetails extends StripeObject {
+ /** The amount the total transaction was discounted for. */
+ @SerializedName("discount_amount")
+ Long discountAmount;
+
+ /**
+ * Contains information about the error that occurred when validating the current amount
+ * details. This field populates when the amount details has a validation error that wasn't
+ * enforced because the enforce_arithmetic_validation
+ * parameter was set to {@code false}.
+ */
+ @SerializedName("error")
+ Errors error;
+
+ /**
+ * A list of line items, each containing information about a product in the PaymentIntent. There
+ * is a maximum of 100 line items.
+ */
+ @SerializedName("line_items")
+ List One of {@code amount_details_amount_mismatch}, or {@code
+ * amount_details_amount_greater_than_tax_shipping_discount}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /** A message providing more details about the error. */
+ @SerializedName("message")
+ String message;
+ }
+
+ /**
+ * For more details about LineItem, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class LineItem extends StripeObject {
+ /** The amount an item was discounted for. Positive integer. */
+ @SerializedName("discount_amount")
+ Long discountAmount;
+
+ /** Unique identifier of the product. At most 12 characters long. */
+ @SerializedName("product_code")
+ String productCode;
+
+ /** Name of the product. At most 100 characters long. */
+ @SerializedName("product_name")
+ String productName;
+
+ /** Number of items of the product. Positive integer. */
+ @SerializedName("quantity")
+ Long quantity;
+
+ /** Contains information about the tax on the item. */
+ @SerializedName("tax")
+ Tax tax;
+
+ /** Cost of the product. Non-negative integer. */
+ @SerializedName("unit_cost")
+ Long unitCost;
+
+ /** Unit of measure for the product. At most 12 characters long. */
+ @SerializedName("unit_of_measure")
+ String unitOfMeasure;
+
+ /** Contains information about the tax on the item. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Tax extends StripeObject {
+ /** Total portion of the amount that is for tax. */
+ @SerializedName("total_tax_amount")
+ Long totalTaxAmount;
+ }
+ }
+
+ /** Contains information about the shipping portion of the amount. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Shipping extends StripeObject {
+ /** Portion of the amount that is for shipping. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** The postal code that represents the shipping source. */
+ @SerializedName("from_postal_code")
+ String fromPostalCode;
+
+ /** The postal code that represents the shipping destination. */
+ @SerializedName("to_postal_code")
+ String toPostalCode;
+ }
+
+ /** Contains information about the tax portion of the amount. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Tax extends StripeObject {
+ /** Total portion of the amount that is for tax. */
+ @SerializedName("total_tax_amount")
+ Long totalTaxAmount;
+ }
+ }
+
/** Details about the capture configuration for the OffSessionPayment. */
@Getter
@Setter
@@ -184,6 +332,28 @@ public static class Capture extends StripeObject {
String captureMethod;
}
+ /** Provides industry-specific information about the payment. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaymentDetails extends StripeObject {
+ /**
+ * A unique value to identify the customer. This field is applicable only for card payments. For
+ * card payments, this field is truncated to 25 alphanumeric characters, excluding spaces,
+ * before being sent to card networks.
+ */
+ @SerializedName("customer_reference")
+ String customerReference;
+
+ /**
+ * A unique value assigned by the business to identify the transaction. Required for L2 and L3
+ * rates. For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
+ * before being sent to card networks.
+ */
+ @SerializedName("order_reference")
+ String orderReference;
+ }
+
/** Details about the payments orchestration configuration. */
@Getter
@Setter
diff --git a/src/main/java/com/stripe/net/RequestOptions.java b/src/main/java/com/stripe/net/RequestOptions.java
index e2518141f28..44c2e446fba 100644
--- a/src/main/java/com/stripe/net/RequestOptions.java
+++ b/src/main/java/com/stripe/net/RequestOptions.java
@@ -170,6 +170,7 @@ public RequestOptionsBuilder toBuilderFullCopy() {
.setClientId(this.clientId)
.setIdempotencyKey(this.idempotencyKey)
.setStripeAccount(this.stripeAccount)
+ .setStripeContext(this.stripeContext)
.setStripeRequestTrigger(this.stripeRequestTrigger)
.setConnectTimeout(this.connectTimeout)
.setReadTimeout(this.readTimeout)
diff --git a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
index b545395ccd1..06ffbbb9254 100644
--- a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
+++ b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
@@ -596,10 +596,6 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
- /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
- @SerializedName("shared_payment_granted_token")
- String sharedPaymentGrantedToken;
-
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -722,7 +718,6 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
- String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
@@ -787,7 +782,6 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
- this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
@@ -913,8 +907,6 @@ public static class Builder {
private SepaDebit sepaDebit;
- private String sharedPaymentGrantedToken;
-
private Shopeepay shopeepay;
private Sofort sofort;
@@ -992,7 +984,6 @@ public ConfirmationTokenCreateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
- this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
@@ -1552,12 +1543,6 @@ public Builder setSepaDebit(
return this;
}
- /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
- public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
- this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
- return this;
- }
-
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
diff --git a/src/main/java/com/stripe/param/InvoiceCreateParams.java b/src/main/java/com/stripe/param/InvoiceCreateParams.java
index 1eb8496f122..a78fa268d64 100644
--- a/src/main/java/com/stripe/param/InvoiceCreateParams.java
+++ b/src/main/java/com/stripe/param/InvoiceCreateParams.java
@@ -5273,6 +5273,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("link")
LINK("link"),
+ @SerializedName("momo")
+ MOMO("momo"),
+
@SerializedName("multibanco")
MULTIBANCO("multibanco"),
diff --git a/src/main/java/com/stripe/param/InvoiceUpdateParams.java b/src/main/java/com/stripe/param/InvoiceUpdateParams.java
index 4679b210678..9c56b572281 100644
--- a/src/main/java/com/stripe/param/InvoiceUpdateParams.java
+++ b/src/main/java/com/stripe/param/InvoiceUpdateParams.java
@@ -5341,6 +5341,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("link")
LINK("link"),
+ @SerializedName("momo")
+ MOMO("momo"),
+
@SerializedName("multibanco")
MULTIBANCO("multibanco"),
diff --git a/src/main/java/com/stripe/param/OrderCreateParams.java b/src/main/java/com/stripe/param/OrderCreateParams.java
index f67bbe667e5..5b20b36accb 100644
--- a/src/main/java/com/stripe/param/OrderCreateParams.java
+++ b/src/main/java/com/stripe/param/OrderCreateParams.java
@@ -1497,6 +1497,10 @@ public static class ProductData {
@SerializedName("id")
String id;
+ /** Other identifiers for this product. */
+ @SerializedName("identifiers")
+ Identifiers identifiers;
+
/**
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
*/
@@ -1536,6 +1540,7 @@ private ProductData(
Object description,
Map You can add custom payment methods to your account through the dashboard under Settings >
+ * Custom Payment Methods.
+ *
+ * Read more about custom payment methods in checkout in our custom payment
+ * method types guide.
+ */
+ @SerializedName("custom_payment_method_types")
+ List