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 charge; + /** The ID of the PaymentMethod that generated this PaymentMethod, if any. */ + @SerializedName("payment_method") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField paymentMethod; + /** The ID of the SetupAttempt that generated this PaymentMethod, if any. */ @SerializedName("setup_attempt") @Getter(lombok.AccessLevel.NONE) @@ -2410,6 +2416,25 @@ public void setChargeObject(Charge expandableObject) { this.charge = new ExpandableField(expandableObject.getId(), expandableObject); } + /** Get ID of expandable {@code paymentMethod} object. */ + public String getPaymentMethod() { + return (this.paymentMethod != null) ? this.paymentMethod.getId() : null; + } + + public void setPaymentMethod(String id) { + this.paymentMethod = ApiResource.setExpandableFieldId(id, this.paymentMethod); + } + + /** Get expanded {@code paymentMethod}. */ + public PaymentMethod getPaymentMethodObject() { + return (this.paymentMethod != null) ? this.paymentMethod.getExpanded() : null; + } + + public void setPaymentMethodObject(PaymentMethod expandableObject) { + this.paymentMethod = + new ExpandableField(expandableObject.getId(), expandableObject); + } + /** Get ID of expandable {@code setupAttempt} object. */ public String getSetupAttempt() { return (this.setupAttempt != null) ? this.setupAttempt.getId() : null; diff --git a/src/main/java/com/stripe/model/PaymentAttemptRecord.java b/src/main/java/com/stripe/model/PaymentAttemptRecord.java index 69031390683..17f8929a5b6 100644 --- a/src/main/java/com/stripe/model/PaymentAttemptRecord.java +++ b/src/main/java/com/stripe/model/PaymentAttemptRecord.java @@ -819,6 +819,9 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("fpx") Fpx fpx; + @SerializedName("gift_card") + GiftCard giftCard; + @SerializedName("giropay") Giropay giropay; @@ -2341,6 +2344,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/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 { + /** Details about the agent that initiated the creation of this PaymentIntent. */ + @SerializedName("agent_details") + AgentDetails agentDetails; + /** Allocated Funds configuration for this PaymentIntent. */ @SerializedName("allocated_funds") AllocatedFunds allocatedFunds; @@ -374,10 +378,6 @@ 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 networkBusinessProfile; + + /** Get ID of expandable {@code networkBusinessProfile} object. */ + public String getNetworkBusinessProfile() { + return (this.networkBusinessProfile != null) ? this.networkBusinessProfile.getId() : null; + } + + public void setNetworkBusinessProfile(String id) { + this.networkBusinessProfile = + ApiResource.setExpandableFieldId(id, this.networkBusinessProfile); + } + + /** Get expanded {@code networkBusinessProfile}. */ + public Profile getNetworkBusinessProfileObject() { + return (this.networkBusinessProfile != null) + ? this.networkBusinessProfile.getExpanded() + : null; + } + + public void setNetworkBusinessProfileObject(Profile expandableObject) { + this.networkBusinessProfile = + new ExpandableField(expandableObject.getId(), expandableObject); + } + } + /** * For more details about AllocatedFunds, please refer to the API Reference. @@ -8452,6 +8493,7 @@ public PaymentIntent simulateCryptoDeposit( @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); + trySetResponseGetter(agentDetails, responseGetter); trySetResponseGetter(allocatedFunds, responseGetter); trySetResponseGetter(amountDetails, responseGetter); trySetResponseGetter(application, responseGetter); diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index 81a47966329..13fe8057443 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -262,10 +262,6 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore

charge; + /** The ID of the PaymentMethod that generated this PaymentMethod, if any. */ + @SerializedName("payment_method") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField paymentMethod; + /** The ID of the SetupAttempt that generated this PaymentMethod, if any. */ @SerializedName("setup_attempt") @Getter(lombok.AccessLevel.NONE) @@ -2750,6 +2752,25 @@ public void setChargeObject(Charge expandableObject) { this.charge = new ExpandableField(expandableObject.getId(), expandableObject); } + /** Get ID of expandable {@code paymentMethod} object. */ + public String getPaymentMethod() { + return (this.paymentMethod != null) ? this.paymentMethod.getId() : null; + } + + public void setPaymentMethod(String id) { + this.paymentMethod = ApiResource.setExpandableFieldId(id, this.paymentMethod); + } + + /** Get expanded {@code paymentMethod}. */ + public PaymentMethod getPaymentMethodObject() { + return (this.paymentMethod != null) ? this.paymentMethod.getExpanded() : null; + } + + public void setPaymentMethodObject(PaymentMethod expandableObject) { + this.paymentMethod = + new ExpandableField(expandableObject.getId(), expandableObject); + } + /** Get ID of expandable {@code setupAttempt} object. */ public String getSetupAttempt() { return (this.setupAttempt != null) ? this.setupAttempt.getId() : null; diff --git a/src/main/java/com/stripe/model/PaymentRecord.java b/src/main/java/com/stripe/model/PaymentRecord.java index fe12aaed307..84c7a700659 100644 --- a/src/main/java/com/stripe/model/PaymentRecord.java +++ b/src/main/java/com/stripe/model/PaymentRecord.java @@ -797,6 +797,9 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("fpx") Fpx fpx; + @SerializedName("gift_card") + GiftCard giftCard; + @SerializedName("giropay") Giropay giropay; @@ -2319,6 +2322,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/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 images; @@ -472,6 +475,62 @@ public Product update(ProductUpdateParams params, RequestOptions options) throws return getResponseGetter().request(request, Product.class); } + /** + * For more details about Identifiers, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Identifiers extends StripeObject { + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated check + * digit. + */ + @SerializedName("ean") + String ean; + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes. + * The final digit is a validated check digit. + */ + @SerializedName("gtin") + String gtin; + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional dashes. + * The final digit is a validated check digit. For ISBN-10, the final digit may be a {@code X}. + */ + @SerializedName("isbn") + String isbn; + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + * digits must either be {@code 45} or {@code 49}. The final digit is a validated check digit. + */ + @SerializedName("jan") + String jan; + + /** Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. */ + @SerializedName("mpn") + String mpn; + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + @SerializedName("nsn") + String nsn; + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit is + * a validated check digit. + */ + @SerializedName("upc") + String upc; + } + /** * For more details about MarketingFeature, please refer to the API Reference. @@ -514,6 +573,7 @@ public static class PackageDimensions extends StripeObject { public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); trySetResponseGetter(defaultPrice, responseGetter); + trySetResponseGetter(identifiers, responseGetter); trySetResponseGetter(packageDimensions, responseGetter); trySetResponseGetter(taxCode, responseGetter); } diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index e984be9d629..31827aa6d33 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -14,6 +14,7 @@ import com.stripe.model.MetadataStore; import com.stripe.model.PaymentIntent; import com.stripe.model.PaymentLink; +import com.stripe.model.PaymentRecord; import com.stripe.model.PromotionCode; import com.stripe.model.SetupIntent; import com.stripe.model.ShippingRate; @@ -190,6 +191,14 @@ public class Session extends ApiResource implements HasId, MetadataStore customFields; + /** + * A list of the types of custom payment + * methods (e.g. cpmt_123) this Checkout Session is allowed to accept. + */ + @SerializedName("custom_payment_method_types") + List customPaymentMethodTypes; + @SerializedName("custom_text") CustomText customText; @@ -391,6 +400,15 @@ public class Session extends ApiResource implements HasId, MetadataStore paymentMethodTypes; + /** + * The Payment Record for this Checkout + * Session. + */ + @SerializedName("payment_record") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField paymentRecord; + /** * The payment status of the Checkout Session, one of {@code paid}, {@code unpaid}, or {@code * no_payment_required}. You can use this value to decide when to fulfill your customer's order. @@ -605,6 +623,25 @@ public void setPaymentLinkObject(PaymentLink expandableObject) { this.paymentLink = new ExpandableField(expandableObject.getId(), expandableObject); } + /** Get ID of expandable {@code paymentRecord} object. */ + public String getPaymentRecord() { + return (this.paymentRecord != null) ? this.paymentRecord.getId() : null; + } + + public void setPaymentRecord(String id) { + this.paymentRecord = ApiResource.setExpandableFieldId(id, this.paymentRecord); + } + + /** Get expanded {@code paymentRecord}. */ + public PaymentRecord getPaymentRecordObject() { + return (this.paymentRecord != null) ? this.paymentRecord.getExpanded() : null; + } + + public void setPaymentRecordObject(PaymentRecord expandableObject) { + this.paymentRecord = + new ExpandableField(expandableObject.getId(), expandableObject); + } + /** Get ID of expandable {@code setupIntent} object. */ public String getSetupIntent() { return (this.setupIntent != null) ? this.setupIntent.getId() : null; @@ -5292,6 +5329,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(paymentLink, responseGetter); trySetResponseGetter(paymentMethodConfigurationDetails, responseGetter); trySetResponseGetter(paymentMethodOptions, responseGetter); + trySetResponseGetter(paymentRecord, responseGetter); trySetResponseGetter(permissions, responseGetter); trySetResponseGetter(phoneNumberCollection, responseGetter); trySetResponseGetter(presentmentDetails, responseGetter); diff --git a/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java b/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java index 8170f04f2e7..d723cb5b531 100644 --- a/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java +++ b/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java @@ -44,6 +44,10 @@ public class RequestedSession extends ApiResource @SerializedName("amount_total") Long amountTotal; + /** The buyer consent options for this requested session, including marketing preferences. */ + @SerializedName("buyer_consents") + BuyerConsents buyerConsents; + /** Time at which the object was created. Measured in seconds since the Unix epoch. */ @SerializedName("created_at") Long createdAt; @@ -478,6 +482,57 @@ public static class Source extends StripeObject { } } + /** + * For more details about BuyerConsents, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class BuyerConsents extends StripeObject { + /** The marketing consent options. */ + @SerializedName("marketing") + Marketing marketing; + + /** + * For more details about Marketing, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Marketing extends StripeObject { + /** The available marketing consent options. */ + @SerializedName("options") + List options; + + /** + * For more details about Option, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Option extends StripeObject { + /** + * The marketing channel type. + * + *

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 cryptoTransactions; + /** * The currency of the cardholder. This currency can be different from the currency presented at * authorization and the {@code merchant_currency} field on this authorization. Three-letter API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CryptoTransaction extends StripeObject { + /** + * The confirmed crypto transaction details when {@code type} is {@code + * crypto_transaction_confirmed}; otherwise null. + */ + @SerializedName("crypto_transaction_confirmed") + CryptoTransactionConfirmed cryptoTransactionConfirmed; + + /** + * The failed crypto transaction details when {@code type} is {@code crypto_transaction_failed}; + * otherwise null. + */ + @SerializedName("crypto_transaction_failed") + CryptoTransactionFailed cryptoTransactionFailed; + + /** The crypto transaction variant for this array entry. */ + @SerializedName("type") + String type; + + /** + * For more details about CryptoTransactionConfirmed, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CryptoTransactionConfirmed extends StripeObject { + /** The crypto amount for the confirmed transaction. */ + @SerializedName("amount") + String amount; + + /** The upcharged MCC amount, if one was applied. */ + @SerializedName("amount_mcc_upcharged") + String amountMccUpcharged; + + /** The blockchain network for the confirmed transaction. */ + @SerializedName("chain") + String chain; + + /** When the transaction was confirmed onchain. */ + @SerializedName("confirmed_at") + Long confirmedAt; + + /** The currency of the crypto transaction amount. */ + @SerializedName("currency") + String currency; + + /** Fees associated with the transaction. */ + @SerializedName("fees") + List fees; + + /** The source wallet address for the transaction. */ + @SerializedName("from_address") + String fromAddress; + + /** Memo metadata attached to the transaction, if present. */ + @SerializedName("memo") + String memo; + + /** The destination wallet address for the transaction. */ + @SerializedName("to_address") + String toAddress; + + /** The blockchain transaction hash. */ + @SerializedName("transaction_hash") + String transactionHash; + + /** + * For more details about Fee, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Fee extends StripeObject { + /** The fee amount. */ + @SerializedName("amount") + String amount; + + /** The fee currency. */ + @SerializedName("currency") + String currency; + + /** The fee type. */ + @SerializedName("type") + String type; + } + } + + /** + * For more details about CryptoTransactionFailed, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CryptoTransactionFailed extends StripeObject { + /** The crypto amount for the failed transaction. */ + @SerializedName("amount") + String amount; + + /** The upcharged MCC amount, if one was applied. */ + @SerializedName("amount_mcc_upcharged") + String amountMccUpcharged; + + /** The blockchain network for the failed transaction. */ + @SerializedName("chain") + String chain; + + /** The currency of the crypto transaction amount. */ + @SerializedName("currency") + String currency; + + /** When the transaction failed. */ + @SerializedName("failed_at") + Long failedAt; + + /** The reason the transaction failed. */ + @SerializedName("failure_reason") + String failureReason; + + /** Fees associated with the transaction. */ + @SerializedName("fees") + List fees; + + /** The source wallet address for the attempted transaction. */ + @SerializedName("from_address") + String fromAddress; + + /** Memo metadata attached to the transaction, if present. */ + @SerializedName("memo") + String memo; + + /** The destination wallet address for the attempted transaction when one exists. */ + @SerializedName("to_address") + String toAddress; + + /** The blockchain transaction hash when one exists. */ + @SerializedName("transaction_hash") + String transactionHash; + + /** + * For more details about Fee, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Fee extends StripeObject { + /** The fee amount. */ + @SerializedName("amount") + String amount; + + /** The fee currency. */ + @SerializedName("currency") + String currency; + + /** The fee type. */ + @SerializedName("type") + String type; + } + } + } + /** * For more details about Fleet, please refer to the API * Reference. @@ -909,6 +1084,13 @@ public static class MerchantData extends StripeObject { @SerializedName("network_id") String networkId; + /** + * The identifier of the payment facilitator (PayFac) that processed this authorization, as + * assigned by the card network. Null when the transaction was not processed through a PayFac. + */ + @SerializedName("payment_facilitator_id") + String paymentFacilitatorId; + /** Postal code where the seller is located. */ @SerializedName("postal_code") String postalCode; @@ -917,6 +1099,14 @@ public static class MerchantData extends StripeObject { @SerializedName("state") String state; + /** + * The identifier of the sub-merchant involved in this authorization, as assigned by the payment + * facilitator. Null when the transaction was not processed through a PayFac or when no + * sub-merchant ID was provided. + */ + @SerializedName("sub_merchant_id") + String subMerchantId; + /** The seller's tax identification number. Currently populated for French merchants only. */ @SerializedName("tax_id") String taxId; diff --git a/src/main/java/com/stripe/model/issuing/Dispute.java b/src/main/java/com/stripe/model/issuing/Dispute.java index af54b62f4d1..6f9f738cf73 100644 --- a/src/main/java/com/stripe/model/issuing/Dispute.java +++ b/src/main/java/com/stripe/model/issuing/Dispute.java @@ -54,6 +54,10 @@ public class Dispute extends ApiResource @SerializedName("created") Long created; + /** Array of onchain crypto transactions linked to this resource. */ + @SerializedName("crypto_transactions") + List cryptoTransactions; + /** The currency the {@code transaction} was made in. */ @SerializedName("currency") String currency; @@ -410,6 +414,177 @@ public Dispute update(DisputeUpdateParams params, RequestOptions options) throws return getResponseGetter().request(request, Dispute.class); } + /** + * For more details about CryptoTransaction, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CryptoTransaction extends StripeObject { + /** + * The confirmed crypto transaction details when {@code type} is {@code + * crypto_transaction_confirmed}; otherwise null. + */ + @SerializedName("crypto_transaction_confirmed") + CryptoTransactionConfirmed cryptoTransactionConfirmed; + + /** + * The failed crypto transaction details when {@code type} is {@code crypto_transaction_failed}; + * otherwise null. + */ + @SerializedName("crypto_transaction_failed") + CryptoTransactionFailed cryptoTransactionFailed; + + /** The crypto transaction variant for this array entry. */ + @SerializedName("type") + String type; + + /** + * For more details about CryptoTransactionConfirmed, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CryptoTransactionConfirmed extends StripeObject { + /** The crypto amount for the confirmed transaction. */ + @SerializedName("amount") + String amount; + + /** The upcharged MCC amount, if one was applied. */ + @SerializedName("amount_mcc_upcharged") + String amountMccUpcharged; + + /** The blockchain network for the confirmed transaction. */ + @SerializedName("chain") + String chain; + + /** When the transaction was confirmed onchain. */ + @SerializedName("confirmed_at") + Long confirmedAt; + + /** The currency of the crypto transaction amount. */ + @SerializedName("currency") + String currency; + + /** Fees associated with the transaction. */ + @SerializedName("fees") + List fees; + + /** The source wallet address for the transaction. */ + @SerializedName("from_address") + String fromAddress; + + /** Memo metadata attached to the transaction, if present. */ + @SerializedName("memo") + String memo; + + /** The destination wallet address for the transaction. */ + @SerializedName("to_address") + String toAddress; + + /** The blockchain transaction hash. */ + @SerializedName("transaction_hash") + String transactionHash; + + /** + * For more details about Fee, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Fee extends StripeObject { + /** The fee amount. */ + @SerializedName("amount") + String amount; + + /** The fee currency. */ + @SerializedName("currency") + String currency; + + /** The fee type. */ + @SerializedName("type") + String type; + } + } + + /** + * For more details about CryptoTransactionFailed, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CryptoTransactionFailed extends StripeObject { + /** The crypto amount for the failed transaction. */ + @SerializedName("amount") + String amount; + + /** The upcharged MCC amount, if one was applied. */ + @SerializedName("amount_mcc_upcharged") + String amountMccUpcharged; + + /** The blockchain network for the failed transaction. */ + @SerializedName("chain") + String chain; + + /** The currency of the crypto transaction amount. */ + @SerializedName("currency") + String currency; + + /** When the transaction failed. */ + @SerializedName("failed_at") + Long failedAt; + + /** The reason the transaction failed. */ + @SerializedName("failure_reason") + String failureReason; + + /** Fees associated with the transaction. */ + @SerializedName("fees") + List fees; + + /** The source wallet address for the attempted transaction. */ + @SerializedName("from_address") + String fromAddress; + + /** Memo metadata attached to the transaction, if present. */ + @SerializedName("memo") + String memo; + + /** The destination wallet address for the attempted transaction when one exists. */ + @SerializedName("to_address") + String toAddress; + + /** The blockchain transaction hash when one exists. */ + @SerializedName("transaction_hash") + String transactionHash; + + /** + * For more details about Fee, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Fee extends StripeObject { + /** The fee amount. */ + @SerializedName("amount") + String amount; + + /** The fee currency. */ + @SerializedName("currency") + String currency; + + /** The fee type. */ + @SerializedName("type") + String type; + } + } + } + /** * For more details about Evidence, please refer to the API * Reference. diff --git a/src/main/java/com/stripe/model/issuing/Transaction.java b/src/main/java/com/stripe/model/issuing/Transaction.java index 1b0011a27a6..5e90ce91ddb 100644 --- a/src/main/java/com/stripe/model/issuing/Transaction.java +++ b/src/main/java/com/stripe/model/issuing/Transaction.java @@ -86,6 +86,10 @@ public class Transaction extends ApiResource @SerializedName("created") Long created; + /** Array of onchain crypto transactions linked to this resource. */ + @SerializedName("crypto_transactions") + List cryptoTransactions; + /** * Three-letter ISO currency code, * in lowercase. Must be a supported currency. @@ -471,6 +475,177 @@ public static class AmountDetails extends StripeObject { Long cashbackAmount; } + /** + * For more details about CryptoTransaction, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CryptoTransaction extends StripeObject { + /** + * The confirmed crypto transaction details when {@code type} is {@code + * crypto_transaction_confirmed}; otherwise null. + */ + @SerializedName("crypto_transaction_confirmed") + CryptoTransactionConfirmed cryptoTransactionConfirmed; + + /** + * The failed crypto transaction details when {@code type} is {@code crypto_transaction_failed}; + * otherwise null. + */ + @SerializedName("crypto_transaction_failed") + CryptoTransactionFailed cryptoTransactionFailed; + + /** The crypto transaction variant for this array entry. */ + @SerializedName("type") + String type; + + /** + * For more details about CryptoTransactionConfirmed, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CryptoTransactionConfirmed extends StripeObject { + /** The crypto amount for the confirmed transaction. */ + @SerializedName("amount") + String amount; + + /** The upcharged MCC amount, if one was applied. */ + @SerializedName("amount_mcc_upcharged") + String amountMccUpcharged; + + /** The blockchain network for the confirmed transaction. */ + @SerializedName("chain") + String chain; + + /** When the transaction was confirmed onchain. */ + @SerializedName("confirmed_at") + Long confirmedAt; + + /** The currency of the crypto transaction amount. */ + @SerializedName("currency") + String currency; + + /** Fees associated with the transaction. */ + @SerializedName("fees") + List fees; + + /** The source wallet address for the transaction. */ + @SerializedName("from_address") + String fromAddress; + + /** Memo metadata attached to the transaction, if present. */ + @SerializedName("memo") + String memo; + + /** The destination wallet address for the transaction. */ + @SerializedName("to_address") + String toAddress; + + /** The blockchain transaction hash. */ + @SerializedName("transaction_hash") + String transactionHash; + + /** + * For more details about Fee, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Fee extends StripeObject { + /** The fee amount. */ + @SerializedName("amount") + String amount; + + /** The fee currency. */ + @SerializedName("currency") + String currency; + + /** The fee type. */ + @SerializedName("type") + String type; + } + } + + /** + * For more details about CryptoTransactionFailed, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CryptoTransactionFailed extends StripeObject { + /** The crypto amount for the failed transaction. */ + @SerializedName("amount") + String amount; + + /** The upcharged MCC amount, if one was applied. */ + @SerializedName("amount_mcc_upcharged") + String amountMccUpcharged; + + /** The blockchain network for the failed transaction. */ + @SerializedName("chain") + String chain; + + /** The currency of the crypto transaction amount. */ + @SerializedName("currency") + String currency; + + /** When the transaction failed. */ + @SerializedName("failed_at") + Long failedAt; + + /** The reason the transaction failed. */ + @SerializedName("failure_reason") + String failureReason; + + /** Fees associated with the transaction. */ + @SerializedName("fees") + List fees; + + /** The source wallet address for the attempted transaction. */ + @SerializedName("from_address") + String fromAddress; + + /** Memo metadata attached to the transaction, if present. */ + @SerializedName("memo") + String memo; + + /** The destination wallet address for the attempted transaction when one exists. */ + @SerializedName("to_address") + String toAddress; + + /** The blockchain transaction hash when one exists. */ + @SerializedName("transaction_hash") + String transactionHash; + + /** + * For more details about Fee, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Fee extends StripeObject { + /** The fee amount. */ + @SerializedName("amount") + String amount; + + /** The fee currency. */ + @SerializedName("currency") + String currency; + + /** The fee type. */ + @SerializedName("type") + String type; + } + } + } + /** * For more details about MerchantData, please refer to the API Reference. @@ -510,6 +685,13 @@ public static class MerchantData extends StripeObject { @SerializedName("network_id") String networkId; + /** + * The identifier of the payment facilitator (PayFac) that processed this authorization, as + * assigned by the card network. Null when the transaction was not processed through a PayFac. + */ + @SerializedName("payment_facilitator_id") + String paymentFacilitatorId; + /** Postal code where the seller is located. */ @SerializedName("postal_code") String postalCode; @@ -518,6 +700,14 @@ public static class MerchantData extends StripeObject { @SerializedName("state") String state; + /** + * The identifier of the sub-merchant involved in this authorization, as assigned by the payment + * facilitator. Null when the transaction was not processed through a PayFac or when no + * sub-merchant ID was provided. + */ + @SerializedName("sub_merchant_id") + String subMerchantId; + /** The seller's tax identification number. Currently populated for French merchants only. */ @SerializedName("tax_id") String taxId; diff --git a/src/main/java/com/stripe/model/radar/AccountEvaluation.java b/src/main/java/com/stripe/model/radar/AccountEvaluation.java index 366a71779c7..0040a5d9821 100644 --- a/src/main/java/com/stripe/model/radar/AccountEvaluation.java +++ b/src/main/java/com/stripe/model/radar/AccountEvaluation.java @@ -191,6 +191,10 @@ public static class Event extends StripeObject { @SerializedName("login_failed") LoginFailed loginFailed; + /** Data about a succeeded login event. */ + @SerializedName("login_succeeded") + LoginSucceeded loginSucceeded; + /** Time at which the event occurred. Measured in seconds since the Unix epoch. */ @SerializedName("occurred_at") Long occurredAt; @@ -199,6 +203,10 @@ public static class Event extends StripeObject { @SerializedName("registration_failed") RegistrationFailed registrationFailed; + /** Data about a succeeded registration event. */ + @SerializedName("registration_succeeded") + RegistrationSucceeded registrationSucceeded; + /** The type of event that occurred. */ @SerializedName("type") String type; @@ -213,6 +221,16 @@ public static class LoginFailed extends StripeObject { String reason; } + /** Data about a succeeded login event. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class LoginSucceeded extends StripeObject { + /** The qualification for a login success. */ + @SerializedName("qualification") + String qualification; + } + /** Data about a failed registration event. */ @Getter @Setter @@ -222,6 +240,16 @@ public static class RegistrationFailed extends StripeObject { @SerializedName("reason") String reason; } + + /** Data about a succeeded registration event. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class RegistrationSucceeded extends StripeObject { + /** The qualification for a registration success. */ + @SerializedName("qualification") + String qualification; + } } /** Account Evaluation Signal resource returned by the Radar Account Evaluations API. */ diff --git a/src/main/java/com/stripe/model/radar/IssuingAuthorizationEvaluation.java b/src/main/java/com/stripe/model/radar/IssuingAuthorizationEvaluation.java index b1111d327e8..8560e7d0019 100644 --- a/src/main/java/com/stripe/model/radar/IssuingAuthorizationEvaluation.java +++ b/src/main/java/com/stripe/model/radar/IssuingAuthorizationEvaluation.java @@ -168,7 +168,7 @@ public static class AuthorizationDetails extends StripeObject { @SerializedName("entry_mode_raw_code") String entryModeRawCode; - /** The timestamp of the authorization initiated in seconds. */ + /** The time the authorization was initiated, as a Unix timestamp in seconds. */ @SerializedName("initiated_at") Long initiatedAt; @@ -214,7 +214,7 @@ public static class CardDetails extends StripeObject { @SerializedName("card_type") String cardType; - /** The timestamp when the card was created. */ + /** The timestamp when the card was created, as a Unix timestamp in seconds. */ @SerializedName("created_at") Long createdAt; diff --git a/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java b/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java index d727880abeb..193b3a4f8a3 100644 --- a/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java +++ b/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java @@ -7,6 +7,7 @@ import com.stripe.model.Charge; import com.stripe.model.ExpandableField; import com.stripe.model.HasId; +import com.stripe.model.PaymentMethod; import com.stripe.model.SetupAttempt; import com.stripe.model.StripeObject; import com.stripe.net.ApiRequest; @@ -1804,6 +1805,12 @@ public static class GeneratedFrom extends StripeObject { @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 paymentMethod; + /** The ID of the SetupAttempt that generated this PaymentMethod, if any. */ @SerializedName("setup_attempt") @Getter(lombok.AccessLevel.NONE) @@ -1828,6 +1835,25 @@ public void setChargeObject(Charge expandableObject) { this.charge = new ExpandableField(expandableObject.getId(), expandableObject); } + /** Get ID of expandable {@code paymentMethod} object. */ + public String getPaymentMethod() { + return (this.paymentMethod != null) ? this.paymentMethod.getId() : null; + } + + public void setPaymentMethod(String id) { + this.paymentMethod = ApiResource.setExpandableFieldId(id, this.paymentMethod); + } + + /** Get expanded {@code paymentMethod}. */ + public PaymentMethod getPaymentMethodObject() { + return (this.paymentMethod != null) ? this.paymentMethod.getExpanded() : null; + } + + public void setPaymentMethodObject(PaymentMethod expandableObject) { + this.paymentMethod = + new ExpandableField(expandableObject.getId(), expandableObject); + } + /** Get ID of expandable {@code setupAttempt} object. */ public String getSetupAttempt() { return (this.setupAttempt != null) ? this.setupAttempt.getId() : null; diff --git a/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java b/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java index 45f3856b5f2..125074431af 100644 --- a/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java +++ b/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java @@ -25,10 +25,6 @@ public class IssuedToken extends StripeObject implements HasId { @SerializedName("created") Long created; - /** ID of an existing Customer. */ - @SerializedName("customer") - String customer; - /** Time at which this SharedPaymentIssuedToken was deactivated. */ @SerializedName("deactivated_at") Long deactivatedAt; diff --git a/src/main/java/com/stripe/model/terminal/Reader.java b/src/main/java/com/stripe/model/terminal/Reader.java index 521b0c4974b..3efadc90619 100644 --- a/src/main/java/com/stripe/model/terminal/Reader.java +++ b/src/main/java/com/stripe/model/terminal/Reader.java @@ -827,6 +827,10 @@ public static class Action extends StripeObject { @SerializedName("failure_message") String failureMessage; + /** Represents a reader action to print content. */ + @SerializedName("print_content") + PrintContent printContent; + /** Represents a reader action to process a payment intent. */ @SerializedName("process_payment_intent") ProcessPaymentIntent processPaymentIntent; @@ -855,8 +859,8 @@ public static class Action extends StripeObject { * Type of action performed by the reader. * *

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> eventClassLookup = new HashMap<>(); static { + classLookup.put("account", com.stripe.model.Account.class); + classLookup.put("application_fee", com.stripe.model.ApplicationFee.class); + classLookup.put("balance", com.stripe.model.Balance.class); + classLookup.put("capability", com.stripe.model.Capability.class); + classLookup.put("cash_balance", com.stripe.model.CashBalance.class); + classLookup.put("charge", com.stripe.model.Charge.class); + classLookup.put("coupon", com.stripe.model.Coupon.class); + classLookup.put("credit_note", com.stripe.model.CreditNote.class); + classLookup.put("customer", com.stripe.model.Customer.class); + classLookup.put( + "customer_cash_balance_transaction", com.stripe.model.CustomerCashBalanceTransaction.class); + classLookup.put("dispute", com.stripe.model.Dispute.class); + classLookup.put("fee_refund", com.stripe.model.FeeRefund.class); + classLookup.put("file", com.stripe.model.File.class); + classLookup.put("invoice", com.stripe.model.Invoice.class); + classLookup.put("invoice_payment", com.stripe.model.InvoicePayment.class); + classLookup.put("invoiceitem", com.stripe.model.InvoiceItem.class); + classLookup.put("mandate", com.stripe.model.Mandate.class); + classLookup.put("payment_intent", com.stripe.model.PaymentIntent.class); + classLookup.put("payment_link", com.stripe.model.PaymentLink.class); + classLookup.put("payment_method", com.stripe.model.PaymentMethod.class); + classLookup.put("payout", com.stripe.model.Payout.class); + classLookup.put("person", com.stripe.model.Person.class); + classLookup.put("plan", com.stripe.model.Plan.class); + classLookup.put("price", com.stripe.model.Price.class); + classLookup.put("product", com.stripe.model.Product.class); + classLookup.put("promotion_code", com.stripe.model.PromotionCode.class); + classLookup.put("quote", com.stripe.model.Quote.class); + classLookup.put("refund", com.stripe.model.Refund.class); + classLookup.put("review", com.stripe.model.Review.class); + classLookup.put("setup_intent", com.stripe.model.SetupIntent.class); + classLookup.put("source", com.stripe.model.Source.class); + classLookup.put("subscription", com.stripe.model.Subscription.class); + classLookup.put("subscription_schedule", com.stripe.model.SubscriptionSchedule.class); + classLookup.put("tax_id", com.stripe.model.TaxId.class); + classLookup.put("tax_rate", com.stripe.model.TaxRate.class); + classLookup.put("topup", com.stripe.model.Topup.class); + classLookup.put("transfer", com.stripe.model.Transfer.class); + + classLookup.put("billing.alert", com.stripe.model.billing.Alert.class); classLookup.put("billing.meter", com.stripe.model.billing.Meter.class); + classLookup.put( + "billing_portal.configuration", com.stripe.model.billingportal.Configuration.class); + + classLookup.put("checkout.session", com.stripe.model.checkout.Session.class); + + classLookup.put("climate.order", com.stripe.model.climate.Order.class); + classLookup.put("climate.product", com.stripe.model.climate.Product.class); + classLookup.put( "financial_address_credit_simulation", com.stripe.model.v2.FinancialAddressCreditSimulation.class); @@ -26,6 +74,31 @@ public final class EventDataClassLookup { "financial_address_generated_microdeposits", com.stripe.model.v2.FinancialAddressGeneratedMicrodeposits.class); + classLookup.put( + "financial_connections.account", com.stripe.model.financialconnections.Account.class); + + classLookup.put( + "identity.verification_session", com.stripe.model.identity.VerificationSession.class); + + classLookup.put("issuing.authorization", com.stripe.model.issuing.Authorization.class); + classLookup.put("issuing.card", com.stripe.model.issuing.Card.class); + classLookup.put("issuing.cardholder", com.stripe.model.issuing.Cardholder.class); + classLookup.put("issuing.dispute", com.stripe.model.issuing.Dispute.class); + classLookup.put( + "issuing.personalization_design", com.stripe.model.issuing.PersonalizationDesign.class); + classLookup.put("issuing.token", com.stripe.model.issuing.Token.class); + classLookup.put("issuing.transaction", com.stripe.model.issuing.Transaction.class); + + classLookup.put("radar.early_fraud_warning", com.stripe.model.radar.EarlyFraudWarning.class); + + classLookup.put("scheduled_query_run", com.stripe.model.sigma.ScheduledQueryRun.class); + + classLookup.put("tax.settings", com.stripe.model.tax.Settings.class); + + classLookup.put("terminal.reader", com.stripe.model.terminal.Reader.class); + + classLookup.put("test_helpers.test_clock", com.stripe.model.testhelpers.TestClock.class); + classLookup.put("v2.billing.bill_setting", com.stripe.model.v2.billing.BillSetting.class); classLookup.put( "v2.billing.bill_setting_version", com.stripe.model.v2.billing.BillSettingVersion.class); @@ -76,6 +149,10 @@ public final class EventDataClassLookup { "v2.billing.rate_card_version", com.stripe.model.v2.billing.RateCardVersion.class); classLookup.put("v2.billing.service_action", com.stripe.model.v2.billing.ServiceAction.class); + classLookup.put( + "v2.commerce.product_catalog_import", + com.stripe.model.v2.commerce.ProductCatalogImport.class); + classLookup.put("v2.core.account", com.stripe.model.v2.core.Account.class); classLookup.put("v2.core.account_evaluation", com.stripe.model.v2.core.AccountEvaluation.class); classLookup.put("v2.core.account_link", com.stripe.model.v2.core.AccountLink.class); @@ -83,13 +160,12 @@ public final class EventDataClassLookup { classLookup.put( "v2.core.account_person_token", com.stripe.model.v2.core.AccountPersonToken.class); classLookup.put("v2.core.account_token", com.stripe.model.v2.core.AccountToken.class); + classLookup.put("v2.core.approval_request", com.stripe.model.v2.core.ApprovalRequest.class); classLookup.put("v2.core.batch_job", com.stripe.model.v2.core.BatchJob.class); classLookup.put("v2.core.claimable_sandbox", com.stripe.model.v2.core.ClaimableSandbox.class); classLookup.put("v2.core.connection_session", com.stripe.model.v2.core.ConnectionSession.class); classLookup.put("v2.core.event", com.stripe.model.v2.core.Event.class); classLookup.put("v2.core.event_destination", com.stripe.model.v2.core.EventDestination.class); - classLookup.put("v2.core.workflow", com.stripe.model.v2.core.Workflow.class); - classLookup.put("v2.core.workflow_run", com.stripe.model.v2.core.WorkflowRun.class); classLookup.put( "v2.core.vault.gb_bank_account", com.stripe.model.v2.core.vault.GbBankAccount.class); @@ -99,6 +175,10 @@ public final class EventDataClassLookup { classLookup.put( "v2.data.reporting.query_run", com.stripe.model.v2.data.reporting.QueryRun.class); + classLookup.put("v2.extend.workflow", com.stripe.model.v2.extend.Workflow.class); + classLookup.put("v2.extend.workflow_run", com.stripe.model.v2.extend.WorkflowRun.class); + + classLookup.put("v2.iam.activity_log", com.stripe.model.v2.iam.ActivityLog.class); classLookup.put("v2.iam.api_key", com.stripe.model.v2.iam.ApiKey.class); classLookup.put( @@ -148,6 +228,13 @@ public final class EventDataClassLookup { "v2.money_management.transaction_entry", com.stripe.model.v2.moneymanagement.TransactionEntry.class); + classLookup.put( + "v2.network.business_profile", com.stripe.model.v2.network.BusinessProfile.class); + + classLookup.put( + "v2.orchestrated_commerce.agreement", + com.stripe.model.v2.orchestratedcommerce.Agreement.class); + classLookup.put( "v2.payments.off_session_payment", com.stripe.model.v2.payments.OffSessionPayment.class); classLookup.put( @@ -162,14 +249,420 @@ public final class EventDataClassLookup { classLookup.put("v2.tax.manual_rule", com.stripe.model.v2.tax.ManualRule.class); + eventClassLookup.put( + "v1.account.application.authorized", + com.stripe.events.V1AccountApplicationAuthorizedEvent.class); + eventClassLookup.put( + "v1.account.application.deauthorized", + com.stripe.events.V1AccountApplicationDeauthorizedEvent.class); + eventClassLookup.put( + "v1.account.external_account.created", + com.stripe.events.V1AccountExternalAccountCreatedEvent.class); + eventClassLookup.put( + "v1.account.external_account.deleted", + com.stripe.events.V1AccountExternalAccountDeletedEvent.class); + eventClassLookup.put( + "v1.account.external_account.updated", + com.stripe.events.V1AccountExternalAccountUpdatedEvent.class); + eventClassLookup.put("v1.account.updated", com.stripe.events.V1AccountUpdatedEvent.class); eventClassLookup.put( "v1.account_signals[delinquency].created", com.stripe.events.V1AccountSignalsIncludingDelinquencyCreatedEvent.class); + eventClassLookup.put( + "v1.application_fee.created", com.stripe.events.V1ApplicationFeeCreatedEvent.class); + eventClassLookup.put( + "v1.application_fee.refund.updated", + com.stripe.events.V1ApplicationFeeRefundUpdatedEvent.class); + eventClassLookup.put( + "v1.application_fee.refunded", com.stripe.events.V1ApplicationFeeRefundedEvent.class); + eventClassLookup.put("v1.balance.available", com.stripe.events.V1BalanceAvailableEvent.class); + eventClassLookup.put( + "v1.billing.alert.triggered", com.stripe.events.V1BillingAlertTriggeredEvent.class); eventClassLookup.put( "v1.billing.meter.error_report_triggered", com.stripe.events.V1BillingMeterErrorReportTriggeredEvent.class); eventClassLookup.put( "v1.billing.meter.no_meter_found", com.stripe.events.V1BillingMeterNoMeterFoundEvent.class); + eventClassLookup.put( + "v1.billing_portal.configuration.created", + com.stripe.events.V1BillingPortalConfigurationCreatedEvent.class); + eventClassLookup.put( + "v1.billing_portal.configuration.updated", + com.stripe.events.V1BillingPortalConfigurationUpdatedEvent.class); + eventClassLookup.put( + "v1.billing_portal.session.created", + com.stripe.events.V1BillingPortalSessionCreatedEvent.class); + eventClassLookup.put("v1.capability.updated", com.stripe.events.V1CapabilityUpdatedEvent.class); + eventClassLookup.put( + "v1.cash_balance.funds_available", + com.stripe.events.V1CashBalanceFundsAvailableEvent.class); + eventClassLookup.put("v1.charge.captured", com.stripe.events.V1ChargeCapturedEvent.class); + eventClassLookup.put( + "v1.charge.dispute.closed", com.stripe.events.V1ChargeDisputeClosedEvent.class); + eventClassLookup.put( + "v1.charge.dispute.created", com.stripe.events.V1ChargeDisputeCreatedEvent.class); + eventClassLookup.put( + "v1.charge.dispute.funds_reinstated", + com.stripe.events.V1ChargeDisputeFundsReinstatedEvent.class); + eventClassLookup.put( + "v1.charge.dispute.funds_withdrawn", + com.stripe.events.V1ChargeDisputeFundsWithdrawnEvent.class); + eventClassLookup.put( + "v1.charge.dispute.updated", com.stripe.events.V1ChargeDisputeUpdatedEvent.class); + eventClassLookup.put("v1.charge.expired", com.stripe.events.V1ChargeExpiredEvent.class); + eventClassLookup.put("v1.charge.failed", com.stripe.events.V1ChargeFailedEvent.class); + eventClassLookup.put("v1.charge.pending", com.stripe.events.V1ChargePendingEvent.class); + eventClassLookup.put( + "v1.charge.refund.updated", com.stripe.events.V1ChargeRefundUpdatedEvent.class); + eventClassLookup.put("v1.charge.refunded", com.stripe.events.V1ChargeRefundedEvent.class); + eventClassLookup.put("v1.charge.succeeded", com.stripe.events.V1ChargeSucceededEvent.class); + eventClassLookup.put("v1.charge.updated", com.stripe.events.V1ChargeUpdatedEvent.class); + eventClassLookup.put( + "v1.checkout.session.async_payment_failed", + com.stripe.events.V1CheckoutSessionAsyncPaymentFailedEvent.class); + eventClassLookup.put( + "v1.checkout.session.async_payment_succeeded", + com.stripe.events.V1CheckoutSessionAsyncPaymentSucceededEvent.class); + eventClassLookup.put( + "v1.checkout.session.completed", com.stripe.events.V1CheckoutSessionCompletedEvent.class); + eventClassLookup.put( + "v1.checkout.session.expired", com.stripe.events.V1CheckoutSessionExpiredEvent.class); + eventClassLookup.put( + "v1.climate.order.canceled", com.stripe.events.V1ClimateOrderCanceledEvent.class); + eventClassLookup.put( + "v1.climate.order.created", com.stripe.events.V1ClimateOrderCreatedEvent.class); + eventClassLookup.put( + "v1.climate.order.delayed", com.stripe.events.V1ClimateOrderDelayedEvent.class); + eventClassLookup.put( + "v1.climate.order.delivered", com.stripe.events.V1ClimateOrderDeliveredEvent.class); + eventClassLookup.put( + "v1.climate.order.product_substituted", + com.stripe.events.V1ClimateOrderProductSubstitutedEvent.class); + eventClassLookup.put( + "v1.climate.product.created", com.stripe.events.V1ClimateProductCreatedEvent.class); + eventClassLookup.put( + "v1.climate.product.pricing_updated", + com.stripe.events.V1ClimateProductPricingUpdatedEvent.class); + eventClassLookup.put("v1.coupon.created", com.stripe.events.V1CouponCreatedEvent.class); + eventClassLookup.put("v1.coupon.deleted", com.stripe.events.V1CouponDeletedEvent.class); + eventClassLookup.put("v1.coupon.updated", com.stripe.events.V1CouponUpdatedEvent.class); + eventClassLookup.put( + "v1.credit_note.created", com.stripe.events.V1CreditNoteCreatedEvent.class); + eventClassLookup.put( + "v1.credit_note.updated", com.stripe.events.V1CreditNoteUpdatedEvent.class); + eventClassLookup.put("v1.credit_note.voided", com.stripe.events.V1CreditNoteVoidedEvent.class); + eventClassLookup.put("v1.customer.created", com.stripe.events.V1CustomerCreatedEvent.class); + eventClassLookup.put("v1.customer.deleted", com.stripe.events.V1CustomerDeletedEvent.class); + eventClassLookup.put( + "v1.customer.subscription.created", + com.stripe.events.V1CustomerSubscriptionCreatedEvent.class); + eventClassLookup.put( + "v1.customer.subscription.deleted", + com.stripe.events.V1CustomerSubscriptionDeletedEvent.class); + eventClassLookup.put( + "v1.customer.subscription.paused", + com.stripe.events.V1CustomerSubscriptionPausedEvent.class); + eventClassLookup.put( + "v1.customer.subscription.pending_update_applied", + com.stripe.events.V1CustomerSubscriptionPendingUpdateAppliedEvent.class); + eventClassLookup.put( + "v1.customer.subscription.pending_update_expired", + com.stripe.events.V1CustomerSubscriptionPendingUpdateExpiredEvent.class); + eventClassLookup.put( + "v1.customer.subscription.resumed", + com.stripe.events.V1CustomerSubscriptionResumedEvent.class); + eventClassLookup.put( + "v1.customer.subscription.trial_will_end", + com.stripe.events.V1CustomerSubscriptionTrialWillEndEvent.class); + eventClassLookup.put( + "v1.customer.subscription.updated", + com.stripe.events.V1CustomerSubscriptionUpdatedEvent.class); + eventClassLookup.put( + "v1.customer.tax_id.created", com.stripe.events.V1CustomerTaxIdCreatedEvent.class); + eventClassLookup.put( + "v1.customer.tax_id.deleted", com.stripe.events.V1CustomerTaxIdDeletedEvent.class); + eventClassLookup.put( + "v1.customer.tax_id.updated", com.stripe.events.V1CustomerTaxIdUpdatedEvent.class); + eventClassLookup.put("v1.customer.updated", com.stripe.events.V1CustomerUpdatedEvent.class); + eventClassLookup.put( + "v1.customer_cash_balance_transaction.created", + com.stripe.events.V1CustomerCashBalanceTransactionCreatedEvent.class); + eventClassLookup.put( + "v1.entitlements.active_entitlement_summary.updated", + com.stripe.events.V1EntitlementsActiveEntitlementSummaryUpdatedEvent.class); + eventClassLookup.put("v1.file.created", com.stripe.events.V1FileCreatedEvent.class); + eventClassLookup.put( + "v1.financial_connections.account.created", + com.stripe.events.V1FinancialConnectionsAccountCreatedEvent.class); + eventClassLookup.put( + "v1.financial_connections.account.deactivated", + com.stripe.events.V1FinancialConnectionsAccountDeactivatedEvent.class); + eventClassLookup.put( + "v1.financial_connections.account.disconnected", + com.stripe.events.V1FinancialConnectionsAccountDisconnectedEvent.class); + eventClassLookup.put( + "v1.financial_connections.account.reactivated", + com.stripe.events.V1FinancialConnectionsAccountReactivatedEvent.class); + eventClassLookup.put( + "v1.financial_connections.account.refreshed_balance", + com.stripe.events.V1FinancialConnectionsAccountRefreshedBalanceEvent.class); + eventClassLookup.put( + "v1.financial_connections.account.refreshed_ownership", + com.stripe.events.V1FinancialConnectionsAccountRefreshedOwnershipEvent.class); + eventClassLookup.put( + "v1.financial_connections.account.refreshed_transactions", + com.stripe.events.V1FinancialConnectionsAccountRefreshedTransactionsEvent.class); + eventClassLookup.put( + "v1.identity.verification_session.canceled", + com.stripe.events.V1IdentityVerificationSessionCanceledEvent.class); + eventClassLookup.put( + "v1.identity.verification_session.created", + com.stripe.events.V1IdentityVerificationSessionCreatedEvent.class); + eventClassLookup.put( + "v1.identity.verification_session.processing", + com.stripe.events.V1IdentityVerificationSessionProcessingEvent.class); + eventClassLookup.put( + "v1.identity.verification_session.redacted", + com.stripe.events.V1IdentityVerificationSessionRedactedEvent.class); + eventClassLookup.put( + "v1.identity.verification_session.requires_input", + com.stripe.events.V1IdentityVerificationSessionRequiresInputEvent.class); + eventClassLookup.put( + "v1.identity.verification_session.verified", + com.stripe.events.V1IdentityVerificationSessionVerifiedEvent.class); + eventClassLookup.put("v1.invoice.created", com.stripe.events.V1InvoiceCreatedEvent.class); + eventClassLookup.put("v1.invoice.deleted", com.stripe.events.V1InvoiceDeletedEvent.class); + eventClassLookup.put( + "v1.invoice.finalization_failed", com.stripe.events.V1InvoiceFinalizationFailedEvent.class); + eventClassLookup.put("v1.invoice.finalized", com.stripe.events.V1InvoiceFinalizedEvent.class); + eventClassLookup.put( + "v1.invoice.marked_uncollectible", + com.stripe.events.V1InvoiceMarkedUncollectibleEvent.class); + eventClassLookup.put("v1.invoice.overdue", com.stripe.events.V1InvoiceOverdueEvent.class); + eventClassLookup.put("v1.invoice.overpaid", com.stripe.events.V1InvoiceOverpaidEvent.class); + eventClassLookup.put("v1.invoice.paid", com.stripe.events.V1InvoicePaidEvent.class); + eventClassLookup.put( + "v1.invoice.payment_action_required", + com.stripe.events.V1InvoicePaymentActionRequiredEvent.class); + eventClassLookup.put( + "v1.invoice.payment_failed", com.stripe.events.V1InvoicePaymentFailedEvent.class); + eventClassLookup.put( + "v1.invoice.payment_succeeded", com.stripe.events.V1InvoicePaymentSucceededEvent.class); + eventClassLookup.put("v1.invoice.sent", com.stripe.events.V1InvoiceSentEvent.class); + eventClassLookup.put("v1.invoice.upcoming", com.stripe.events.V1InvoiceUpcomingEvent.class); + eventClassLookup.put("v1.invoice.updated", com.stripe.events.V1InvoiceUpdatedEvent.class); + eventClassLookup.put("v1.invoice.voided", com.stripe.events.V1InvoiceVoidedEvent.class); + eventClassLookup.put("v1.invoice.will_be_due", com.stripe.events.V1InvoiceWillBeDueEvent.class); + eventClassLookup.put( + "v1.invoice_payment.paid", com.stripe.events.V1InvoicePaymentPaidEvent.class); + eventClassLookup.put( + "v1.invoiceitem.created", com.stripe.events.V1InvoiceitemCreatedEvent.class); + eventClassLookup.put( + "v1.invoiceitem.deleted", com.stripe.events.V1InvoiceitemDeletedEvent.class); + eventClassLookup.put( + "v1.issuing_authorization.created", + com.stripe.events.V1IssuingAuthorizationCreatedEvent.class); + eventClassLookup.put( + "v1.issuing_authorization.request", + com.stripe.events.V1IssuingAuthorizationRequestEvent.class); + eventClassLookup.put( + "v1.issuing_authorization.updated", + com.stripe.events.V1IssuingAuthorizationUpdatedEvent.class); + eventClassLookup.put( + "v1.issuing_card.created", com.stripe.events.V1IssuingCardCreatedEvent.class); + eventClassLookup.put( + "v1.issuing_card.updated", com.stripe.events.V1IssuingCardUpdatedEvent.class); + eventClassLookup.put( + "v1.issuing_cardholder.created", com.stripe.events.V1IssuingCardholderCreatedEvent.class); + eventClassLookup.put( + "v1.issuing_cardholder.updated", com.stripe.events.V1IssuingCardholderUpdatedEvent.class); + eventClassLookup.put( + "v1.issuing_dispute.closed", com.stripe.events.V1IssuingDisputeClosedEvent.class); + eventClassLookup.put( + "v1.issuing_dispute.created", com.stripe.events.V1IssuingDisputeCreatedEvent.class); + eventClassLookup.put( + "v1.issuing_dispute.funds_reinstated", + com.stripe.events.V1IssuingDisputeFundsReinstatedEvent.class); + eventClassLookup.put( + "v1.issuing_dispute.funds_rescinded", + com.stripe.events.V1IssuingDisputeFundsRescindedEvent.class); + eventClassLookup.put( + "v1.issuing_dispute.submitted", com.stripe.events.V1IssuingDisputeSubmittedEvent.class); + eventClassLookup.put( + "v1.issuing_dispute.updated", com.stripe.events.V1IssuingDisputeUpdatedEvent.class); + eventClassLookup.put( + "v1.issuing_personalization_design.activated", + com.stripe.events.V1IssuingPersonalizationDesignActivatedEvent.class); + eventClassLookup.put( + "v1.issuing_personalization_design.deactivated", + com.stripe.events.V1IssuingPersonalizationDesignDeactivatedEvent.class); + eventClassLookup.put( + "v1.issuing_personalization_design.rejected", + com.stripe.events.V1IssuingPersonalizationDesignRejectedEvent.class); + eventClassLookup.put( + "v1.issuing_personalization_design.updated", + com.stripe.events.V1IssuingPersonalizationDesignUpdatedEvent.class); + eventClassLookup.put( + "v1.issuing_token.created", com.stripe.events.V1IssuingTokenCreatedEvent.class); + eventClassLookup.put( + "v1.issuing_token.updated", com.stripe.events.V1IssuingTokenUpdatedEvent.class); + eventClassLookup.put( + "v1.issuing_transaction.created", com.stripe.events.V1IssuingTransactionCreatedEvent.class); + eventClassLookup.put( + "v1.issuing_transaction.purchase_details_receipt_updated", + com.stripe.events.V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.class); + eventClassLookup.put( + "v1.issuing_transaction.updated", com.stripe.events.V1IssuingTransactionUpdatedEvent.class); + eventClassLookup.put("v1.mandate.updated", com.stripe.events.V1MandateUpdatedEvent.class); + eventClassLookup.put( + "v1.payment_intent.amount_capturable_updated", + com.stripe.events.V1PaymentIntentAmountCapturableUpdatedEvent.class); + eventClassLookup.put( + "v1.payment_intent.canceled", com.stripe.events.V1PaymentIntentCanceledEvent.class); + eventClassLookup.put( + "v1.payment_intent.created", com.stripe.events.V1PaymentIntentCreatedEvent.class); + eventClassLookup.put( + "v1.payment_intent.partially_funded", + com.stripe.events.V1PaymentIntentPartiallyFundedEvent.class); + eventClassLookup.put( + "v1.payment_intent.payment_failed", + com.stripe.events.V1PaymentIntentPaymentFailedEvent.class); + eventClassLookup.put( + "v1.payment_intent.processing", com.stripe.events.V1PaymentIntentProcessingEvent.class); + eventClassLookup.put( + "v1.payment_intent.requires_action", + com.stripe.events.V1PaymentIntentRequiresActionEvent.class); + eventClassLookup.put( + "v1.payment_intent.succeeded", com.stripe.events.V1PaymentIntentSucceededEvent.class); + eventClassLookup.put( + "v1.payment_link.created", com.stripe.events.V1PaymentLinkCreatedEvent.class); + eventClassLookup.put( + "v1.payment_link.updated", com.stripe.events.V1PaymentLinkUpdatedEvent.class); + eventClassLookup.put( + "v1.payment_method.attached", com.stripe.events.V1PaymentMethodAttachedEvent.class); + eventClassLookup.put( + "v1.payment_method.automatically_updated", + com.stripe.events.V1PaymentMethodAutomaticallyUpdatedEvent.class); + eventClassLookup.put( + "v1.payment_method.detached", com.stripe.events.V1PaymentMethodDetachedEvent.class); + eventClassLookup.put( + "v1.payment_method.updated", com.stripe.events.V1PaymentMethodUpdatedEvent.class); + eventClassLookup.put("v1.payout.canceled", com.stripe.events.V1PayoutCanceledEvent.class); + eventClassLookup.put("v1.payout.created", com.stripe.events.V1PayoutCreatedEvent.class); + eventClassLookup.put("v1.payout.failed", com.stripe.events.V1PayoutFailedEvent.class); + eventClassLookup.put("v1.payout.paid", com.stripe.events.V1PayoutPaidEvent.class); + eventClassLookup.put( + "v1.payout.reconciliation_completed", + com.stripe.events.V1PayoutReconciliationCompletedEvent.class); + eventClassLookup.put("v1.payout.updated", com.stripe.events.V1PayoutUpdatedEvent.class); + eventClassLookup.put("v1.person.created", com.stripe.events.V1PersonCreatedEvent.class); + eventClassLookup.put("v1.person.deleted", com.stripe.events.V1PersonDeletedEvent.class); + eventClassLookup.put("v1.person.updated", com.stripe.events.V1PersonUpdatedEvent.class); + eventClassLookup.put("v1.plan.created", com.stripe.events.V1PlanCreatedEvent.class); + eventClassLookup.put("v1.plan.deleted", com.stripe.events.V1PlanDeletedEvent.class); + eventClassLookup.put("v1.plan.updated", com.stripe.events.V1PlanUpdatedEvent.class); + eventClassLookup.put("v1.price.created", com.stripe.events.V1PriceCreatedEvent.class); + eventClassLookup.put("v1.price.deleted", com.stripe.events.V1PriceDeletedEvent.class); + eventClassLookup.put("v1.price.updated", com.stripe.events.V1PriceUpdatedEvent.class); + eventClassLookup.put("v1.product.created", com.stripe.events.V1ProductCreatedEvent.class); + eventClassLookup.put("v1.product.deleted", com.stripe.events.V1ProductDeletedEvent.class); + eventClassLookup.put("v1.product.updated", com.stripe.events.V1ProductUpdatedEvent.class); + eventClassLookup.put( + "v1.promotion_code.created", com.stripe.events.V1PromotionCodeCreatedEvent.class); + eventClassLookup.put( + "v1.promotion_code.updated", com.stripe.events.V1PromotionCodeUpdatedEvent.class); + eventClassLookup.put("v1.quote.accepted", com.stripe.events.V1QuoteAcceptedEvent.class); + eventClassLookup.put("v1.quote.canceled", com.stripe.events.V1QuoteCanceledEvent.class); + eventClassLookup.put("v1.quote.created", com.stripe.events.V1QuoteCreatedEvent.class); + eventClassLookup.put("v1.quote.finalized", com.stripe.events.V1QuoteFinalizedEvent.class); + eventClassLookup.put( + "v1.radar.early_fraud_warning.created", + com.stripe.events.V1RadarEarlyFraudWarningCreatedEvent.class); + eventClassLookup.put( + "v1.radar.early_fraud_warning.updated", + com.stripe.events.V1RadarEarlyFraudWarningUpdatedEvent.class); + eventClassLookup.put("v1.refund.created", com.stripe.events.V1RefundCreatedEvent.class); + eventClassLookup.put("v1.refund.failed", com.stripe.events.V1RefundFailedEvent.class); + eventClassLookup.put("v1.refund.updated", com.stripe.events.V1RefundUpdatedEvent.class); + eventClassLookup.put("v1.review.closed", com.stripe.events.V1ReviewClosedEvent.class); + eventClassLookup.put("v1.review.opened", com.stripe.events.V1ReviewOpenedEvent.class); + eventClassLookup.put( + "v1.setup_intent.canceled", com.stripe.events.V1SetupIntentCanceledEvent.class); + eventClassLookup.put( + "v1.setup_intent.created", com.stripe.events.V1SetupIntentCreatedEvent.class); + eventClassLookup.put( + "v1.setup_intent.requires_action", + com.stripe.events.V1SetupIntentRequiresActionEvent.class); + eventClassLookup.put( + "v1.setup_intent.setup_failed", com.stripe.events.V1SetupIntentSetupFailedEvent.class); + eventClassLookup.put( + "v1.setup_intent.succeeded", com.stripe.events.V1SetupIntentSucceededEvent.class); + eventClassLookup.put( + "v1.sigma.scheduled_query_run.created", + com.stripe.events.V1SigmaScheduledQueryRunCreatedEvent.class); + eventClassLookup.put("v1.source.canceled", com.stripe.events.V1SourceCanceledEvent.class); + eventClassLookup.put("v1.source.chargeable", com.stripe.events.V1SourceChargeableEvent.class); + eventClassLookup.put("v1.source.failed", com.stripe.events.V1SourceFailedEvent.class); + eventClassLookup.put( + "v1.source.refund_attributes_required", + com.stripe.events.V1SourceRefundAttributesRequiredEvent.class); + eventClassLookup.put( + "v1.subscription_schedule.aborted", + com.stripe.events.V1SubscriptionScheduleAbortedEvent.class); + eventClassLookup.put( + "v1.subscription_schedule.canceled", + com.stripe.events.V1SubscriptionScheduleCanceledEvent.class); + eventClassLookup.put( + "v1.subscription_schedule.completed", + com.stripe.events.V1SubscriptionScheduleCompletedEvent.class); + eventClassLookup.put( + "v1.subscription_schedule.created", + com.stripe.events.V1SubscriptionScheduleCreatedEvent.class); + eventClassLookup.put( + "v1.subscription_schedule.expiring", + com.stripe.events.V1SubscriptionScheduleExpiringEvent.class); + eventClassLookup.put( + "v1.subscription_schedule.released", + com.stripe.events.V1SubscriptionScheduleReleasedEvent.class); + eventClassLookup.put( + "v1.subscription_schedule.updated", + com.stripe.events.V1SubscriptionScheduleUpdatedEvent.class); + eventClassLookup.put( + "v1.tax.settings.updated", com.stripe.events.V1TaxSettingsUpdatedEvent.class); + eventClassLookup.put("v1.tax_rate.created", com.stripe.events.V1TaxRateCreatedEvent.class); + eventClassLookup.put("v1.tax_rate.updated", com.stripe.events.V1TaxRateUpdatedEvent.class); + eventClassLookup.put( + "v1.terminal.reader.action_failed", + com.stripe.events.V1TerminalReaderActionFailedEvent.class); + eventClassLookup.put( + "v1.terminal.reader.action_succeeded", + com.stripe.events.V1TerminalReaderActionSucceededEvent.class); + eventClassLookup.put( + "v1.terminal.reader.action_updated", + com.stripe.events.V1TerminalReaderActionUpdatedEvent.class); + eventClassLookup.put( + "v1.test_helpers.test_clock.advancing", + com.stripe.events.V1TestHelpersTestClockAdvancingEvent.class); + eventClassLookup.put( + "v1.test_helpers.test_clock.created", + com.stripe.events.V1TestHelpersTestClockCreatedEvent.class); + eventClassLookup.put( + "v1.test_helpers.test_clock.deleted", + com.stripe.events.V1TestHelpersTestClockDeletedEvent.class); + eventClassLookup.put( + "v1.test_helpers.test_clock.internal_failure", + com.stripe.events.V1TestHelpersTestClockInternalFailureEvent.class); + eventClassLookup.put( + "v1.test_helpers.test_clock.ready", + com.stripe.events.V1TestHelpersTestClockReadyEvent.class); + eventClassLookup.put("v1.topup.canceled", com.stripe.events.V1TopupCanceledEvent.class); + eventClassLookup.put("v1.topup.created", com.stripe.events.V1TopupCreatedEvent.class); + eventClassLookup.put("v1.topup.failed", com.stripe.events.V1TopupFailedEvent.class); + eventClassLookup.put("v1.topup.reversed", com.stripe.events.V1TopupReversedEvent.class); + eventClassLookup.put("v1.topup.succeeded", com.stripe.events.V1TopupSucceededEvent.class); + eventClassLookup.put("v1.transfer.created", com.stripe.events.V1TransferCreatedEvent.class); + eventClassLookup.put("v1.transfer.reversed", com.stripe.events.V1TransferReversedEvent.class); + eventClassLookup.put("v1.transfer.updated", com.stripe.events.V1TransferUpdatedEvent.class); eventClassLookup.put( "v2.billing.cadence.billed", com.stripe.events.V2BillingCadenceBilledEvent.class); eventClassLookup.put( @@ -278,6 +771,18 @@ public final class EventDataClassLookup { eventClassLookup.put( "v2.billing.rate_card_version.created", com.stripe.events.V2BillingRateCardVersionCreatedEvent.class); + eventClassLookup.put( + "v2.commerce.product_catalog.imports.failed", + com.stripe.events.V2CommerceProductCatalogImportsFailedEvent.class); + eventClassLookup.put( + "v2.commerce.product_catalog.imports.processing", + com.stripe.events.V2CommerceProductCatalogImportsProcessingEvent.class); + eventClassLookup.put( + "v2.commerce.product_catalog.imports.succeeded", + com.stripe.events.V2CommerceProductCatalogImportsSucceededEvent.class); + eventClassLookup.put( + "v2.commerce.product_catalog.imports.succeeded_with_errors", + com.stripe.events.V2CommerceProductCatalogImportsSucceededWithErrorsEvent.class); eventClassLookup.put( "v2.core.account.closed", com.stripe.events.V2CoreAccountClosedEvent.class); eventClassLookup.put( @@ -342,6 +847,21 @@ public final class EventDataClassLookup { eventClassLookup.put( "v2.core.account_signals.fraudulent_website_ready", com.stripe.events.V2CoreAccountSignalsFraudulentWebsiteReadyEvent.class); + eventClassLookup.put( + "v2.core.approval_request.approved", + com.stripe.events.V2CoreApprovalRequestApprovedEvent.class); + eventClassLookup.put( + "v2.core.approval_request.canceled", + com.stripe.events.V2CoreApprovalRequestCanceledEvent.class); + eventClassLookup.put( + "v2.core.approval_request.failed", + com.stripe.events.V2CoreApprovalRequestFailedEvent.class); + eventClassLookup.put( + "v2.core.approval_request.rejected", + com.stripe.events.V2CoreApprovalRequestRejectedEvent.class); + eventClassLookup.put( + "v2.core.approval_request.succeeded", + com.stripe.events.V2CoreApprovalRequestSucceededEvent.class); eventClassLookup.put( "v2.core.batch_job.batch_failed", com.stripe.events.V2CoreBatchJobBatchFailedEvent.class); eventClassLookup.put( @@ -378,8 +898,8 @@ public final class EventDataClassLookup { "v2.core.claimable_sandbox.expiring", com.stripe.events.V2CoreClaimableSandboxExpiringEvent.class); eventClassLookup.put( - "v2.core.claimable_sandbox.sandbox_details_owner_account_updated", - com.stripe.events.V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.class); + "v2.core.claimable_sandbox.updated", + com.stripe.events.V2CoreClaimableSandboxUpdatedEvent.class); eventClassLookup.put( "v2.core.event_destination.ping", com.stripe.events.V2CoreEventDestinationPingEvent.class); eventClassLookup.put( @@ -417,6 +937,12 @@ public final class EventDataClassLookup { eventClassLookup.put( "v2.core.health.issuing_authorization_request_timeout.resolved", com.stripe.events.V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.class); + eventClassLookup.put( + "v2.core.health.meter_event_summaries_delayed.firing", + com.stripe.events.V2CoreHealthMeterEventSummariesDelayedFiringEvent.class); + eventClassLookup.put( + "v2.core.health.meter_event_summaries_delayed.resolved", + com.stripe.events.V2CoreHealthMeterEventSummariesDelayedResolvedEvent.class); eventClassLookup.put( "v2.core.health.payment_method_error.firing", com.stripe.events.V2CoreHealthPaymentMethodErrorFiringEvent.class); @@ -453,6 +979,13 @@ public final class EventDataClassLookup { eventClassLookup.put( "v2.data.reporting.query_run.updated", com.stripe.events.V2DataReportingQueryRunUpdatedEvent.class); + eventClassLookup.put( + "v2.extend.workflow_run.failed", com.stripe.events.V2ExtendWorkflowRunFailedEvent.class); + eventClassLookup.put( + "v2.extend.workflow_run.started", com.stripe.events.V2ExtendWorkflowRunStartedEvent.class); + eventClassLookup.put( + "v2.extend.workflow_run.succeeded", + com.stripe.events.V2ExtendWorkflowRunSucceededEvent.class); eventClassLookup.put("v2.iam.api_key.created", com.stripe.events.V2IamApiKeyCreatedEvent.class); eventClassLookup.put( "v2.iam.api_key.default_secret_revealed", @@ -595,6 +1128,18 @@ public final class EventDataClassLookup { eventClassLookup.put( "v2.money_management.transaction.updated", com.stripe.events.V2MoneyManagementTransactionUpdatedEvent.class); + eventClassLookup.put( + "v2.orchestrated_commerce.agreement.confirmed", + com.stripe.events.V2OrchestratedCommerceAgreementConfirmedEvent.class); + eventClassLookup.put( + "v2.orchestrated_commerce.agreement.created", + com.stripe.events.V2OrchestratedCommerceAgreementCreatedEvent.class); + eventClassLookup.put( + "v2.orchestrated_commerce.agreement.partially_confirmed", + com.stripe.events.V2OrchestratedCommerceAgreementPartiallyConfirmedEvent.class); + eventClassLookup.put( + "v2.orchestrated_commerce.agreement.terminated", + com.stripe.events.V2OrchestratedCommerceAgreementTerminatedEvent.class); eventClassLookup.put( "v2.payments.off_session_payment.attempt_failed", com.stripe.events.V2PaymentsOffSessionPaymentAttemptFailedEvent.class); diff --git a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java index 4c1ef6ea777..547232a4cc9 100644 --- a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java +++ b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java @@ -16,15 +16,518 @@ public final class EventNotificationClassLookup { new HashMap<>(); static { + eventClassLookup.put( + "v1.account.application.authorized", + com.stripe.events.V1AccountApplicationAuthorizedEventNotification.class); + eventClassLookup.put( + "v1.account.application.deauthorized", + com.stripe.events.V1AccountApplicationDeauthorizedEventNotification.class); + eventClassLookup.put( + "v1.account.external_account.created", + com.stripe.events.V1AccountExternalAccountCreatedEventNotification.class); + eventClassLookup.put( + "v1.account.external_account.deleted", + com.stripe.events.V1AccountExternalAccountDeletedEventNotification.class); + eventClassLookup.put( + "v1.account.external_account.updated", + com.stripe.events.V1AccountExternalAccountUpdatedEventNotification.class); + eventClassLookup.put( + "v1.account.updated", com.stripe.events.V1AccountUpdatedEventNotification.class); eventClassLookup.put( "v1.account_signals[delinquency].created", com.stripe.events.V1AccountSignalsIncludingDelinquencyCreatedEventNotification.class); + eventClassLookup.put( + "v1.application_fee.created", + com.stripe.events.V1ApplicationFeeCreatedEventNotification.class); + eventClassLookup.put( + "v1.application_fee.refund.updated", + com.stripe.events.V1ApplicationFeeRefundUpdatedEventNotification.class); + eventClassLookup.put( + "v1.application_fee.refunded", + com.stripe.events.V1ApplicationFeeRefundedEventNotification.class); + eventClassLookup.put( + "v1.balance.available", com.stripe.events.V1BalanceAvailableEventNotification.class); + eventClassLookup.put( + "v1.billing.alert.triggered", + com.stripe.events.V1BillingAlertTriggeredEventNotification.class); eventClassLookup.put( "v1.billing.meter.error_report_triggered", com.stripe.events.V1BillingMeterErrorReportTriggeredEventNotification.class); eventClassLookup.put( "v1.billing.meter.no_meter_found", com.stripe.events.V1BillingMeterNoMeterFoundEventNotification.class); + eventClassLookup.put( + "v1.billing_portal.configuration.created", + com.stripe.events.V1BillingPortalConfigurationCreatedEventNotification.class); + eventClassLookup.put( + "v1.billing_portal.configuration.updated", + com.stripe.events.V1BillingPortalConfigurationUpdatedEventNotification.class); + eventClassLookup.put( + "v1.billing_portal.session.created", + com.stripe.events.V1BillingPortalSessionCreatedEventNotification.class); + eventClassLookup.put( + "v1.capability.updated", com.stripe.events.V1CapabilityUpdatedEventNotification.class); + eventClassLookup.put( + "v1.cash_balance.funds_available", + com.stripe.events.V1CashBalanceFundsAvailableEventNotification.class); + eventClassLookup.put( + "v1.charge.captured", com.stripe.events.V1ChargeCapturedEventNotification.class); + eventClassLookup.put( + "v1.charge.dispute.closed", com.stripe.events.V1ChargeDisputeClosedEventNotification.class); + eventClassLookup.put( + "v1.charge.dispute.created", + com.stripe.events.V1ChargeDisputeCreatedEventNotification.class); + eventClassLookup.put( + "v1.charge.dispute.funds_reinstated", + com.stripe.events.V1ChargeDisputeFundsReinstatedEventNotification.class); + eventClassLookup.put( + "v1.charge.dispute.funds_withdrawn", + com.stripe.events.V1ChargeDisputeFundsWithdrawnEventNotification.class); + eventClassLookup.put( + "v1.charge.dispute.updated", + com.stripe.events.V1ChargeDisputeUpdatedEventNotification.class); + eventClassLookup.put( + "v1.charge.expired", com.stripe.events.V1ChargeExpiredEventNotification.class); + eventClassLookup.put( + "v1.charge.failed", com.stripe.events.V1ChargeFailedEventNotification.class); + eventClassLookup.put( + "v1.charge.pending", com.stripe.events.V1ChargePendingEventNotification.class); + eventClassLookup.put( + "v1.charge.refund.updated", com.stripe.events.V1ChargeRefundUpdatedEventNotification.class); + eventClassLookup.put( + "v1.charge.refunded", com.stripe.events.V1ChargeRefundedEventNotification.class); + eventClassLookup.put( + "v1.charge.succeeded", com.stripe.events.V1ChargeSucceededEventNotification.class); + eventClassLookup.put( + "v1.charge.updated", com.stripe.events.V1ChargeUpdatedEventNotification.class); + eventClassLookup.put( + "v1.checkout.session.async_payment_failed", + com.stripe.events.V1CheckoutSessionAsyncPaymentFailedEventNotification.class); + eventClassLookup.put( + "v1.checkout.session.async_payment_succeeded", + com.stripe.events.V1CheckoutSessionAsyncPaymentSucceededEventNotification.class); + eventClassLookup.put( + "v1.checkout.session.completed", + com.stripe.events.V1CheckoutSessionCompletedEventNotification.class); + eventClassLookup.put( + "v1.checkout.session.expired", + com.stripe.events.V1CheckoutSessionExpiredEventNotification.class); + eventClassLookup.put( + "v1.climate.order.canceled", + com.stripe.events.V1ClimateOrderCanceledEventNotification.class); + eventClassLookup.put( + "v1.climate.order.created", com.stripe.events.V1ClimateOrderCreatedEventNotification.class); + eventClassLookup.put( + "v1.climate.order.delayed", com.stripe.events.V1ClimateOrderDelayedEventNotification.class); + eventClassLookup.put( + "v1.climate.order.delivered", + com.stripe.events.V1ClimateOrderDeliveredEventNotification.class); + eventClassLookup.put( + "v1.climate.order.product_substituted", + com.stripe.events.V1ClimateOrderProductSubstitutedEventNotification.class); + eventClassLookup.put( + "v1.climate.product.created", + com.stripe.events.V1ClimateProductCreatedEventNotification.class); + eventClassLookup.put( + "v1.climate.product.pricing_updated", + com.stripe.events.V1ClimateProductPricingUpdatedEventNotification.class); + eventClassLookup.put( + "v1.coupon.created", com.stripe.events.V1CouponCreatedEventNotification.class); + eventClassLookup.put( + "v1.coupon.deleted", com.stripe.events.V1CouponDeletedEventNotification.class); + eventClassLookup.put( + "v1.coupon.updated", com.stripe.events.V1CouponUpdatedEventNotification.class); + eventClassLookup.put( + "v1.credit_note.created", com.stripe.events.V1CreditNoteCreatedEventNotification.class); + eventClassLookup.put( + "v1.credit_note.updated", com.stripe.events.V1CreditNoteUpdatedEventNotification.class); + eventClassLookup.put( + "v1.credit_note.voided", com.stripe.events.V1CreditNoteVoidedEventNotification.class); + eventClassLookup.put( + "v1.customer.created", com.stripe.events.V1CustomerCreatedEventNotification.class); + eventClassLookup.put( + "v1.customer.deleted", com.stripe.events.V1CustomerDeletedEventNotification.class); + eventClassLookup.put( + "v1.customer.subscription.created", + com.stripe.events.V1CustomerSubscriptionCreatedEventNotification.class); + eventClassLookup.put( + "v1.customer.subscription.deleted", + com.stripe.events.V1CustomerSubscriptionDeletedEventNotification.class); + eventClassLookup.put( + "v1.customer.subscription.paused", + com.stripe.events.V1CustomerSubscriptionPausedEventNotification.class); + eventClassLookup.put( + "v1.customer.subscription.pending_update_applied", + com.stripe.events.V1CustomerSubscriptionPendingUpdateAppliedEventNotification.class); + eventClassLookup.put( + "v1.customer.subscription.pending_update_expired", + com.stripe.events.V1CustomerSubscriptionPendingUpdateExpiredEventNotification.class); + eventClassLookup.put( + "v1.customer.subscription.resumed", + com.stripe.events.V1CustomerSubscriptionResumedEventNotification.class); + eventClassLookup.put( + "v1.customer.subscription.trial_will_end", + com.stripe.events.V1CustomerSubscriptionTrialWillEndEventNotification.class); + eventClassLookup.put( + "v1.customer.subscription.updated", + com.stripe.events.V1CustomerSubscriptionUpdatedEventNotification.class); + eventClassLookup.put( + "v1.customer.tax_id.created", + com.stripe.events.V1CustomerTaxIdCreatedEventNotification.class); + eventClassLookup.put( + "v1.customer.tax_id.deleted", + com.stripe.events.V1CustomerTaxIdDeletedEventNotification.class); + eventClassLookup.put( + "v1.customer.tax_id.updated", + com.stripe.events.V1CustomerTaxIdUpdatedEventNotification.class); + eventClassLookup.put( + "v1.customer.updated", com.stripe.events.V1CustomerUpdatedEventNotification.class); + eventClassLookup.put( + "v1.customer_cash_balance_transaction.created", + com.stripe.events.V1CustomerCashBalanceTransactionCreatedEventNotification.class); + eventClassLookup.put( + "v1.entitlements.active_entitlement_summary.updated", + com.stripe.events.V1EntitlementsActiveEntitlementSummaryUpdatedEventNotification.class); + eventClassLookup.put("v1.file.created", com.stripe.events.V1FileCreatedEventNotification.class); + eventClassLookup.put( + "v1.financial_connections.account.created", + com.stripe.events.V1FinancialConnectionsAccountCreatedEventNotification.class); + eventClassLookup.put( + "v1.financial_connections.account.deactivated", + com.stripe.events.V1FinancialConnectionsAccountDeactivatedEventNotification.class); + eventClassLookup.put( + "v1.financial_connections.account.disconnected", + com.stripe.events.V1FinancialConnectionsAccountDisconnectedEventNotification.class); + eventClassLookup.put( + "v1.financial_connections.account.reactivated", + com.stripe.events.V1FinancialConnectionsAccountReactivatedEventNotification.class); + eventClassLookup.put( + "v1.financial_connections.account.refreshed_balance", + com.stripe.events.V1FinancialConnectionsAccountRefreshedBalanceEventNotification.class); + eventClassLookup.put( + "v1.financial_connections.account.refreshed_ownership", + com.stripe.events.V1FinancialConnectionsAccountRefreshedOwnershipEventNotification.class); + eventClassLookup.put( + "v1.financial_connections.account.refreshed_transactions", + com.stripe.events.V1FinancialConnectionsAccountRefreshedTransactionsEventNotification + .class); + eventClassLookup.put( + "v1.identity.verification_session.canceled", + com.stripe.events.V1IdentityVerificationSessionCanceledEventNotification.class); + eventClassLookup.put( + "v1.identity.verification_session.created", + com.stripe.events.V1IdentityVerificationSessionCreatedEventNotification.class); + eventClassLookup.put( + "v1.identity.verification_session.processing", + com.stripe.events.V1IdentityVerificationSessionProcessingEventNotification.class); + eventClassLookup.put( + "v1.identity.verification_session.redacted", + com.stripe.events.V1IdentityVerificationSessionRedactedEventNotification.class); + eventClassLookup.put( + "v1.identity.verification_session.requires_input", + com.stripe.events.V1IdentityVerificationSessionRequiresInputEventNotification.class); + eventClassLookup.put( + "v1.identity.verification_session.verified", + com.stripe.events.V1IdentityVerificationSessionVerifiedEventNotification.class); + eventClassLookup.put( + "v1.invoice.created", com.stripe.events.V1InvoiceCreatedEventNotification.class); + eventClassLookup.put( + "v1.invoice.deleted", com.stripe.events.V1InvoiceDeletedEventNotification.class); + eventClassLookup.put( + "v1.invoice.finalization_failed", + com.stripe.events.V1InvoiceFinalizationFailedEventNotification.class); + eventClassLookup.put( + "v1.invoice.finalized", com.stripe.events.V1InvoiceFinalizedEventNotification.class); + eventClassLookup.put( + "v1.invoice.marked_uncollectible", + com.stripe.events.V1InvoiceMarkedUncollectibleEventNotification.class); + eventClassLookup.put( + "v1.invoice.overdue", com.stripe.events.V1InvoiceOverdueEventNotification.class); + eventClassLookup.put( + "v1.invoice.overpaid", com.stripe.events.V1InvoiceOverpaidEventNotification.class); + eventClassLookup.put("v1.invoice.paid", com.stripe.events.V1InvoicePaidEventNotification.class); + eventClassLookup.put( + "v1.invoice.payment_action_required", + com.stripe.events.V1InvoicePaymentActionRequiredEventNotification.class); + eventClassLookup.put( + "v1.invoice.payment_failed", + com.stripe.events.V1InvoicePaymentFailedEventNotification.class); + eventClassLookup.put( + "v1.invoice.payment_succeeded", + com.stripe.events.V1InvoicePaymentSucceededEventNotification.class); + eventClassLookup.put("v1.invoice.sent", com.stripe.events.V1InvoiceSentEventNotification.class); + eventClassLookup.put( + "v1.invoice.upcoming", com.stripe.events.V1InvoiceUpcomingEventNotification.class); + eventClassLookup.put( + "v1.invoice.updated", com.stripe.events.V1InvoiceUpdatedEventNotification.class); + eventClassLookup.put( + "v1.invoice.voided", com.stripe.events.V1InvoiceVoidedEventNotification.class); + eventClassLookup.put( + "v1.invoice.will_be_due", com.stripe.events.V1InvoiceWillBeDueEventNotification.class); + eventClassLookup.put( + "v1.invoice_payment.paid", com.stripe.events.V1InvoicePaymentPaidEventNotification.class); + eventClassLookup.put( + "v1.invoiceitem.created", com.stripe.events.V1InvoiceitemCreatedEventNotification.class); + eventClassLookup.put( + "v1.invoiceitem.deleted", com.stripe.events.V1InvoiceitemDeletedEventNotification.class); + eventClassLookup.put( + "v1.issuing_authorization.created", + com.stripe.events.V1IssuingAuthorizationCreatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_authorization.request", + com.stripe.events.V1IssuingAuthorizationRequestEventNotification.class); + eventClassLookup.put( + "v1.issuing_authorization.updated", + com.stripe.events.V1IssuingAuthorizationUpdatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_card.created", com.stripe.events.V1IssuingCardCreatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_card.updated", com.stripe.events.V1IssuingCardUpdatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_cardholder.created", + com.stripe.events.V1IssuingCardholderCreatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_cardholder.updated", + com.stripe.events.V1IssuingCardholderUpdatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_dispute.closed", + com.stripe.events.V1IssuingDisputeClosedEventNotification.class); + eventClassLookup.put( + "v1.issuing_dispute.created", + com.stripe.events.V1IssuingDisputeCreatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_dispute.funds_reinstated", + com.stripe.events.V1IssuingDisputeFundsReinstatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_dispute.funds_rescinded", + com.stripe.events.V1IssuingDisputeFundsRescindedEventNotification.class); + eventClassLookup.put( + "v1.issuing_dispute.submitted", + com.stripe.events.V1IssuingDisputeSubmittedEventNotification.class); + eventClassLookup.put( + "v1.issuing_dispute.updated", + com.stripe.events.V1IssuingDisputeUpdatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_personalization_design.activated", + com.stripe.events.V1IssuingPersonalizationDesignActivatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_personalization_design.deactivated", + com.stripe.events.V1IssuingPersonalizationDesignDeactivatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_personalization_design.rejected", + com.stripe.events.V1IssuingPersonalizationDesignRejectedEventNotification.class); + eventClassLookup.put( + "v1.issuing_personalization_design.updated", + com.stripe.events.V1IssuingPersonalizationDesignUpdatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_token.created", com.stripe.events.V1IssuingTokenCreatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_token.updated", com.stripe.events.V1IssuingTokenUpdatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_transaction.created", + com.stripe.events.V1IssuingTransactionCreatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_transaction.purchase_details_receipt_updated", + com.stripe.events.V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification.class); + eventClassLookup.put( + "v1.issuing_transaction.updated", + com.stripe.events.V1IssuingTransactionUpdatedEventNotification.class); + eventClassLookup.put( + "v1.mandate.updated", com.stripe.events.V1MandateUpdatedEventNotification.class); + eventClassLookup.put( + "v1.payment_intent.amount_capturable_updated", + com.stripe.events.V1PaymentIntentAmountCapturableUpdatedEventNotification.class); + eventClassLookup.put( + "v1.payment_intent.canceled", + com.stripe.events.V1PaymentIntentCanceledEventNotification.class); + eventClassLookup.put( + "v1.payment_intent.created", + com.stripe.events.V1PaymentIntentCreatedEventNotification.class); + eventClassLookup.put( + "v1.payment_intent.partially_funded", + com.stripe.events.V1PaymentIntentPartiallyFundedEventNotification.class); + eventClassLookup.put( + "v1.payment_intent.payment_failed", + com.stripe.events.V1PaymentIntentPaymentFailedEventNotification.class); + eventClassLookup.put( + "v1.payment_intent.processing", + com.stripe.events.V1PaymentIntentProcessingEventNotification.class); + eventClassLookup.put( + "v1.payment_intent.requires_action", + com.stripe.events.V1PaymentIntentRequiresActionEventNotification.class); + eventClassLookup.put( + "v1.payment_intent.succeeded", + com.stripe.events.V1PaymentIntentSucceededEventNotification.class); + eventClassLookup.put( + "v1.payment_link.created", com.stripe.events.V1PaymentLinkCreatedEventNotification.class); + eventClassLookup.put( + "v1.payment_link.updated", com.stripe.events.V1PaymentLinkUpdatedEventNotification.class); + eventClassLookup.put( + "v1.payment_method.attached", + com.stripe.events.V1PaymentMethodAttachedEventNotification.class); + eventClassLookup.put( + "v1.payment_method.automatically_updated", + com.stripe.events.V1PaymentMethodAutomaticallyUpdatedEventNotification.class); + eventClassLookup.put( + "v1.payment_method.detached", + com.stripe.events.V1PaymentMethodDetachedEventNotification.class); + eventClassLookup.put( + "v1.payment_method.updated", + com.stripe.events.V1PaymentMethodUpdatedEventNotification.class); + eventClassLookup.put( + "v1.payout.canceled", com.stripe.events.V1PayoutCanceledEventNotification.class); + eventClassLookup.put( + "v1.payout.created", com.stripe.events.V1PayoutCreatedEventNotification.class); + eventClassLookup.put( + "v1.payout.failed", com.stripe.events.V1PayoutFailedEventNotification.class); + eventClassLookup.put("v1.payout.paid", com.stripe.events.V1PayoutPaidEventNotification.class); + eventClassLookup.put( + "v1.payout.reconciliation_completed", + com.stripe.events.V1PayoutReconciliationCompletedEventNotification.class); + eventClassLookup.put( + "v1.payout.updated", com.stripe.events.V1PayoutUpdatedEventNotification.class); + eventClassLookup.put( + "v1.person.created", com.stripe.events.V1PersonCreatedEventNotification.class); + eventClassLookup.put( + "v1.person.deleted", com.stripe.events.V1PersonDeletedEventNotification.class); + eventClassLookup.put( + "v1.person.updated", com.stripe.events.V1PersonUpdatedEventNotification.class); + eventClassLookup.put("v1.plan.created", com.stripe.events.V1PlanCreatedEventNotification.class); + eventClassLookup.put("v1.plan.deleted", com.stripe.events.V1PlanDeletedEventNotification.class); + eventClassLookup.put("v1.plan.updated", com.stripe.events.V1PlanUpdatedEventNotification.class); + eventClassLookup.put( + "v1.price.created", com.stripe.events.V1PriceCreatedEventNotification.class); + eventClassLookup.put( + "v1.price.deleted", com.stripe.events.V1PriceDeletedEventNotification.class); + eventClassLookup.put( + "v1.price.updated", com.stripe.events.V1PriceUpdatedEventNotification.class); + eventClassLookup.put( + "v1.product.created", com.stripe.events.V1ProductCreatedEventNotification.class); + eventClassLookup.put( + "v1.product.deleted", com.stripe.events.V1ProductDeletedEventNotification.class); + eventClassLookup.put( + "v1.product.updated", com.stripe.events.V1ProductUpdatedEventNotification.class); + eventClassLookup.put( + "v1.promotion_code.created", + com.stripe.events.V1PromotionCodeCreatedEventNotification.class); + eventClassLookup.put( + "v1.promotion_code.updated", + com.stripe.events.V1PromotionCodeUpdatedEventNotification.class); + eventClassLookup.put( + "v1.quote.accepted", com.stripe.events.V1QuoteAcceptedEventNotification.class); + eventClassLookup.put( + "v1.quote.canceled", com.stripe.events.V1QuoteCanceledEventNotification.class); + eventClassLookup.put( + "v1.quote.created", com.stripe.events.V1QuoteCreatedEventNotification.class); + eventClassLookup.put( + "v1.quote.finalized", com.stripe.events.V1QuoteFinalizedEventNotification.class); + eventClassLookup.put( + "v1.radar.early_fraud_warning.created", + com.stripe.events.V1RadarEarlyFraudWarningCreatedEventNotification.class); + eventClassLookup.put( + "v1.radar.early_fraud_warning.updated", + com.stripe.events.V1RadarEarlyFraudWarningUpdatedEventNotification.class); + eventClassLookup.put( + "v1.refund.created", com.stripe.events.V1RefundCreatedEventNotification.class); + eventClassLookup.put( + "v1.refund.failed", com.stripe.events.V1RefundFailedEventNotification.class); + eventClassLookup.put( + "v1.refund.updated", com.stripe.events.V1RefundUpdatedEventNotification.class); + eventClassLookup.put( + "v1.review.closed", com.stripe.events.V1ReviewClosedEventNotification.class); + eventClassLookup.put( + "v1.review.opened", com.stripe.events.V1ReviewOpenedEventNotification.class); + eventClassLookup.put( + "v1.setup_intent.canceled", com.stripe.events.V1SetupIntentCanceledEventNotification.class); + eventClassLookup.put( + "v1.setup_intent.created", com.stripe.events.V1SetupIntentCreatedEventNotification.class); + eventClassLookup.put( + "v1.setup_intent.requires_action", + com.stripe.events.V1SetupIntentRequiresActionEventNotification.class); + eventClassLookup.put( + "v1.setup_intent.setup_failed", + com.stripe.events.V1SetupIntentSetupFailedEventNotification.class); + eventClassLookup.put( + "v1.setup_intent.succeeded", + com.stripe.events.V1SetupIntentSucceededEventNotification.class); + eventClassLookup.put( + "v1.sigma.scheduled_query_run.created", + com.stripe.events.V1SigmaScheduledQueryRunCreatedEventNotification.class); + eventClassLookup.put( + "v1.source.canceled", com.stripe.events.V1SourceCanceledEventNotification.class); + eventClassLookup.put( + "v1.source.chargeable", com.stripe.events.V1SourceChargeableEventNotification.class); + eventClassLookup.put( + "v1.source.failed", com.stripe.events.V1SourceFailedEventNotification.class); + eventClassLookup.put( + "v1.source.refund_attributes_required", + com.stripe.events.V1SourceRefundAttributesRequiredEventNotification.class); + eventClassLookup.put( + "v1.subscription_schedule.aborted", + com.stripe.events.V1SubscriptionScheduleAbortedEventNotification.class); + eventClassLookup.put( + "v1.subscription_schedule.canceled", + com.stripe.events.V1SubscriptionScheduleCanceledEventNotification.class); + eventClassLookup.put( + "v1.subscription_schedule.completed", + com.stripe.events.V1SubscriptionScheduleCompletedEventNotification.class); + eventClassLookup.put( + "v1.subscription_schedule.created", + com.stripe.events.V1SubscriptionScheduleCreatedEventNotification.class); + eventClassLookup.put( + "v1.subscription_schedule.expiring", + com.stripe.events.V1SubscriptionScheduleExpiringEventNotification.class); + eventClassLookup.put( + "v1.subscription_schedule.released", + com.stripe.events.V1SubscriptionScheduleReleasedEventNotification.class); + eventClassLookup.put( + "v1.subscription_schedule.updated", + com.stripe.events.V1SubscriptionScheduleUpdatedEventNotification.class); + eventClassLookup.put( + "v1.tax.settings.updated", com.stripe.events.V1TaxSettingsUpdatedEventNotification.class); + eventClassLookup.put( + "v1.tax_rate.created", com.stripe.events.V1TaxRateCreatedEventNotification.class); + eventClassLookup.put( + "v1.tax_rate.updated", com.stripe.events.V1TaxRateUpdatedEventNotification.class); + eventClassLookup.put( + "v1.terminal.reader.action_failed", + com.stripe.events.V1TerminalReaderActionFailedEventNotification.class); + eventClassLookup.put( + "v1.terminal.reader.action_succeeded", + com.stripe.events.V1TerminalReaderActionSucceededEventNotification.class); + eventClassLookup.put( + "v1.terminal.reader.action_updated", + com.stripe.events.V1TerminalReaderActionUpdatedEventNotification.class); + eventClassLookup.put( + "v1.test_helpers.test_clock.advancing", + com.stripe.events.V1TestHelpersTestClockAdvancingEventNotification.class); + eventClassLookup.put( + "v1.test_helpers.test_clock.created", + com.stripe.events.V1TestHelpersTestClockCreatedEventNotification.class); + eventClassLookup.put( + "v1.test_helpers.test_clock.deleted", + com.stripe.events.V1TestHelpersTestClockDeletedEventNotification.class); + eventClassLookup.put( + "v1.test_helpers.test_clock.internal_failure", + com.stripe.events.V1TestHelpersTestClockInternalFailureEventNotification.class); + eventClassLookup.put( + "v1.test_helpers.test_clock.ready", + com.stripe.events.V1TestHelpersTestClockReadyEventNotification.class); + eventClassLookup.put( + "v1.topup.canceled", com.stripe.events.V1TopupCanceledEventNotification.class); + eventClassLookup.put( + "v1.topup.created", com.stripe.events.V1TopupCreatedEventNotification.class); + eventClassLookup.put("v1.topup.failed", com.stripe.events.V1TopupFailedEventNotification.class); + eventClassLookup.put( + "v1.topup.reversed", com.stripe.events.V1TopupReversedEventNotification.class); + eventClassLookup.put( + "v1.topup.succeeded", com.stripe.events.V1TopupSucceededEventNotification.class); + eventClassLookup.put( + "v1.transfer.created", com.stripe.events.V1TransferCreatedEventNotification.class); + eventClassLookup.put( + "v1.transfer.reversed", com.stripe.events.V1TransferReversedEventNotification.class); + eventClassLookup.put( + "v1.transfer.updated", com.stripe.events.V1TransferUpdatedEventNotification.class); eventClassLookup.put( "v2.billing.cadence.billed", com.stripe.events.V2BillingCadenceBilledEventNotification.class); @@ -144,6 +647,19 @@ public final class EventNotificationClassLookup { eventClassLookup.put( "v2.billing.rate_card_version.created", com.stripe.events.V2BillingRateCardVersionCreatedEventNotification.class); + eventClassLookup.put( + "v2.commerce.product_catalog.imports.failed", + com.stripe.events.V2CommerceProductCatalogImportsFailedEventNotification.class); + eventClassLookup.put( + "v2.commerce.product_catalog.imports.processing", + com.stripe.events.V2CommerceProductCatalogImportsProcessingEventNotification.class); + eventClassLookup.put( + "v2.commerce.product_catalog.imports.succeeded", + com.stripe.events.V2CommerceProductCatalogImportsSucceededEventNotification.class); + eventClassLookup.put( + "v2.commerce.product_catalog.imports.succeeded_with_errors", + com.stripe.events.V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification + .class); eventClassLookup.put( "v2.core.account.closed", com.stripe.events.V2CoreAccountClosedEventNotification.class); eventClassLookup.put( @@ -221,6 +737,21 @@ public final class EventNotificationClassLookup { eventClassLookup.put( "v2.core.account_signals.fraudulent_website_ready", com.stripe.events.V2CoreAccountSignalsFraudulentWebsiteReadyEventNotification.class); + eventClassLookup.put( + "v2.core.approval_request.approved", + com.stripe.events.V2CoreApprovalRequestApprovedEventNotification.class); + eventClassLookup.put( + "v2.core.approval_request.canceled", + com.stripe.events.V2CoreApprovalRequestCanceledEventNotification.class); + eventClassLookup.put( + "v2.core.approval_request.failed", + com.stripe.events.V2CoreApprovalRequestFailedEventNotification.class); + eventClassLookup.put( + "v2.core.approval_request.rejected", + com.stripe.events.V2CoreApprovalRequestRejectedEventNotification.class); + eventClassLookup.put( + "v2.core.approval_request.succeeded", + com.stripe.events.V2CoreApprovalRequestSucceededEventNotification.class); eventClassLookup.put( "v2.core.batch_job.batch_failed", com.stripe.events.V2CoreBatchJobBatchFailedEventNotification.class); @@ -264,9 +795,8 @@ public final class EventNotificationClassLookup { "v2.core.claimable_sandbox.expiring", com.stripe.events.V2CoreClaimableSandboxExpiringEventNotification.class); eventClassLookup.put( - "v2.core.claimable_sandbox.sandbox_details_owner_account_updated", - com.stripe.events.V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification - .class); + "v2.core.claimable_sandbox.updated", + com.stripe.events.V2CoreClaimableSandboxUpdatedEventNotification.class); eventClassLookup.put( "v2.core.event_destination.ping", com.stripe.events.V2CoreEventDestinationPingEventNotification.class); @@ -310,6 +840,12 @@ public final class EventNotificationClassLookup { "v2.core.health.issuing_authorization_request_timeout.resolved", com.stripe.events.V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventNotification .class); + eventClassLookup.put( + "v2.core.health.meter_event_summaries_delayed.firing", + com.stripe.events.V2CoreHealthMeterEventSummariesDelayedFiringEventNotification.class); + eventClassLookup.put( + "v2.core.health.meter_event_summaries_delayed.resolved", + com.stripe.events.V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification.class); eventClassLookup.put( "v2.core.health.payment_method_error.firing", com.stripe.events.V2CoreHealthPaymentMethodErrorFiringEventNotification.class); @@ -346,6 +882,15 @@ public final class EventNotificationClassLookup { eventClassLookup.put( "v2.data.reporting.query_run.updated", com.stripe.events.V2DataReportingQueryRunUpdatedEventNotification.class); + eventClassLookup.put( + "v2.extend.workflow_run.failed", + com.stripe.events.V2ExtendWorkflowRunFailedEventNotification.class); + eventClassLookup.put( + "v2.extend.workflow_run.started", + com.stripe.events.V2ExtendWorkflowRunStartedEventNotification.class); + eventClassLookup.put( + "v2.extend.workflow_run.succeeded", + com.stripe.events.V2ExtendWorkflowRunSucceededEventNotification.class); eventClassLookup.put( "v2.iam.api_key.created", com.stripe.events.V2IamApiKeyCreatedEventNotification.class); eventClassLookup.put( @@ -494,6 +1039,18 @@ public final class EventNotificationClassLookup { eventClassLookup.put( "v2.money_management.transaction.updated", com.stripe.events.V2MoneyManagementTransactionUpdatedEventNotification.class); + eventClassLookup.put( + "v2.orchestrated_commerce.agreement.confirmed", + com.stripe.events.V2OrchestratedCommerceAgreementConfirmedEventNotification.class); + eventClassLookup.put( + "v2.orchestrated_commerce.agreement.created", + com.stripe.events.V2OrchestratedCommerceAgreementCreatedEventNotification.class); + eventClassLookup.put( + "v2.orchestrated_commerce.agreement.partially_confirmed", + com.stripe.events.V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification.class); + eventClassLookup.put( + "v2.orchestrated_commerce.agreement.terminated", + com.stripe.events.V2OrchestratedCommerceAgreementTerminatedEventNotification.class); eventClassLookup.put( "v2.payments.off_session_payment.attempt_failed", com.stripe.events.V2PaymentsOffSessionPaymentAttemptFailedEventNotification.class); diff --git a/src/main/java/com/stripe/model/v2/billing/BillSetting.java b/src/main/java/com/stripe/model/v2/billing/BillSetting.java index 822aeafce24..2f6834a9fa4 100644 --- a/src/main/java/com/stripe/model/v2/billing/BillSetting.java +++ b/src/main/java/com/stripe/model/v2/billing/BillSetting.java @@ -44,8 +44,8 @@ public class BillSetting extends StripeObject implements HasId { String invoiceRenderingTemplate; /** - * 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; @@ -95,8 +95,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}. */ @@ -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 billableItems; /** - * The price type that credit grants can apply to. We currently only support the {@code - * metered} price type. This will apply to metered prices and rate cards. Cannot be used - * in combination with {@code billable_items}. + * The price type that credit grants can apply to. Stripe supports the {@code metered} + * price type, which applies to metered prices and rate cards. Cannot be used in + * combination with {@code billable_items}. * *

Equal to {@code metered}. */ @@ -691,9 +691,9 @@ public static class Scope extends StripeObject { List billableItems; /** - * The price type that credit grants can apply to. We currently only support the {@code - * metered} price type. This will apply to metered prices and rate cards. Cannot be used - * in combination with {@code billable_items}. + * The price type that credit grants can apply to. Stripe supports the {@code metered} + * price type, which applies to metered prices and rate cards. Cannot be used in + * combination with {@code billable_items}. * *

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 billableItems; /** - * The price type that credit grants can apply to. We currently only support the {@code - * metered} price type. This will apply to metered prices and rate cards. Cannot be used in - * combination with {@code billable_items}. + * The price type that credit grants can apply to. Stripe supports the {@code metered} price + * type, which applies to metered prices and rate cards. Cannot be used in combination with + * {@code billable_items}. * *

Equal to {@code metered}. */ @@ -316,9 +316,9 @@ public static class Scope extends StripeObject { List billableItems; /** - * The price type that credit grants can apply to. We currently only support the {@code - * metered} price type. This will apply to metered prices and rate cards. Cannot be used in - * combination with {@code billable_items}. + * The price type that credit grants can apply to. Stripe supports the {@code metered} price + * type, which applies to metered prices and rate cards. Cannot be used in combination with + * {@code billable_items}. * *

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 metadata; + + /** + * String representing the object's type. Objects of the same type share the same value of the + * object field. + * + *

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 samples; + + /** The total number of records processed. */ + @SerializedName("success_count") + @JsonAdapter(StringInt64TypeAdapter.class) + Long successCount; + + /** A file containing details about all errors that occurred. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class ErrorFile extends StripeObject { + /** The MIME type of the error file. */ + @SerializedName("content_type") + String contentType; + + /** The pre-signed URL information for downloading the error file. */ + @SerializedName("download_url") + DownloadUrl downloadUrl; + + /** The size of the error file in bytes. */ + @SerializedName("size") + @JsonAdapter(StringInt64TypeAdapter.class) + Long size; + + /** The pre-signed URL information for downloading the error file. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class DownloadUrl extends StripeObject { + /** The timestamp when the download URL expires. */ + @SerializedName("expires_at") + Instant expiresAt; + + /** The pre-signed URL for downloading the error file. */ + @SerializedName("url") + String url; + } + } + + /** + * For more details about Sample, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Sample extends StripeObject implements HasId { + /** A description of what went wrong with this record. */ + @SerializedName("error_message") + String errorMessage; + + /** The name of the field that caused the error. */ + @SerializedName("field") + String field; + + /** The identifier of the record that failed to process. */ + @Getter(onMethod_ = {@Override}) + @SerializedName("id") + String id; + + /** The row number in the import file where the error occurred. */ + @SerializedName("row") + @JsonAdapter(StringInt64TypeAdapter.class) + Long row; + } + } + } +} diff --git a/src/main/java/com/stripe/model/v2/core/Account.java b/src/main/java/com/stripe/model/v2/core/Account.java index 22e69eed313..52d77df4a0a 100644 --- a/src/main/java/com/stripe/model/v2/core/Account.java +++ b/src/main/java/com/stripe/model/v2/core/Account.java @@ -4746,35 +4746,35 @@ public static class DefaultOutboundDestination extends StripeObject implements H * bg_bank_account}, {@code bh_bank_account}, {@code bj_bank_account}, {@code * bn_bank_account}, {@code bs_bank_account}, {@code bt_bank_account}, {@code * bw_bank_account}, {@code card}, {@code ca_bank_account}, {@code ch_bank_account}, {@code - * ci_bank_account}, {@code co_bank_account}, {@code crypto_wallet}, {@code - * cr_bank_account}, {@code cy_bank_account}, {@code cz_bank_account}, {@code - * de_bank_account}, {@code dk_bank_account}, {@code do_bank_account}, {@code - * dz_bank_account}, {@code ec_bank_account}, {@code ee_bank_account}, {@code - * eg_bank_account}, {@code es_bank_account}, {@code et_bank_account}, {@code - * fi_bank_account}, {@code fr_bank_account}, {@code gb_bank_account}, {@code - * gm_bank_account}, {@code gr_bank_account}, {@code gt_bank_account}, {@code - * gy_bank_account}, {@code hk_bank_account}, {@code hr_bank_account}, {@code - * hu_bank_account}, {@code id_bank_account}, {@code ie_bank_account}, {@code - * il_bank_account}, {@code in_bank_account}, {@code is_bank_account}, {@code - * it_bank_account}, {@code jm_bank_account}, {@code jo_bank_account}, {@code - * ke_bank_account}, {@code kh_bank_account}, {@code kw_bank_account}, {@code - * lc_bank_account}, {@code li_bank_account}, {@code lk_bank_account}, {@code - * lt_bank_account}, {@code lu_bank_account}, {@code lv_bank_account}, {@code - * ma_bank_account}, {@code mc_bank_account}, {@code md_bank_account}, {@code - * mg_bank_account}, {@code mk_bank_account}, {@code mn_bank_account}, {@code - * mo_bank_account}, {@code mt_bank_account}, {@code mu_bank_account}, {@code - * mx_bank_account}, {@code my_bank_account}, {@code mz_bank_account}, {@code - * na_bank_account}, {@code nl_bank_account}, {@code no_bank_account}, {@code - * nz_bank_account}, {@code om_bank_account}, {@code pa_bank_account}, {@code - * pe_bank_account}, {@code ph_bank_account}, {@code pk_bank_account}, {@code - * pl_bank_account}, {@code pt_bank_account}, {@code qa_bank_account}, {@code - * ro_bank_account}, {@code rs_bank_account}, {@code rw_bank_account}, {@code - * se_bank_account}, {@code sg_bank_account}, {@code si_bank_account}, {@code - * sk_bank_account}, {@code sn_bank_account}, {@code sv_bank_account}, {@code - * th_bank_account}, {@code tn_bank_account}, {@code tr_bank_account}, {@code - * tt_bank_account}, {@code tw_bank_account}, {@code tz_bank_account}, {@code - * us_bank_account}, {@code uz_bank_account}, {@code vn_bank_account}, or {@code - * za_bank_account}. + * ci_bank_account}, {@code cn_bank_account}, {@code co_bank_account}, {@code + * crypto_wallet}, {@code cr_bank_account}, {@code cy_bank_account}, {@code + * cz_bank_account}, {@code de_bank_account}, {@code dk_bank_account}, {@code + * do_bank_account}, {@code dz_bank_account}, {@code ec_bank_account}, {@code + * ee_bank_account}, {@code eg_bank_account}, {@code es_bank_account}, {@code + * et_bank_account}, {@code fi_bank_account}, {@code fr_bank_account}, {@code + * gb_bank_account}, {@code gm_bank_account}, {@code gr_bank_account}, {@code + * gt_bank_account}, {@code gy_bank_account}, {@code hk_bank_account}, {@code + * hr_bank_account}, {@code hu_bank_account}, {@code id_bank_account}, {@code + * ie_bank_account}, {@code il_bank_account}, {@code in_bank_account}, {@code + * is_bank_account}, {@code it_bank_account}, {@code jm_bank_account}, {@code + * jo_bank_account}, {@code jp_bank_account}, {@code ke_bank_account}, {@code + * kh_bank_account}, {@code kw_bank_account}, {@code lc_bank_account}, {@code + * li_bank_account}, {@code lk_bank_account}, {@code lt_bank_account}, {@code + * lu_bank_account}, {@code lv_bank_account}, {@code ma_bank_account}, {@code + * mc_bank_account}, {@code md_bank_account}, {@code mg_bank_account}, {@code + * mk_bank_account}, {@code mn_bank_account}, {@code mo_bank_account}, {@code + * mt_bank_account}, {@code mu_bank_account}, {@code mx_bank_account}, {@code + * my_bank_account}, {@code mz_bank_account}, {@code na_bank_account}, {@code + * nl_bank_account}, {@code no_bank_account}, {@code nz_bank_account}, {@code + * om_bank_account}, {@code pa_bank_account}, {@code pe_bank_account}, {@code + * ph_bank_account}, {@code pk_bank_account}, {@code pl_bank_account}, {@code + * pt_bank_account}, {@code qa_bank_account}, {@code ro_bank_account}, {@code + * rs_bank_account}, {@code rw_bank_account}, {@code se_bank_account}, {@code + * sg_bank_account}, {@code si_bank_account}, {@code sk_bank_account}, {@code + * sn_bank_account}, {@code sv_bank_account}, {@code th_bank_account}, {@code + * tn_bank_account}, {@code tr_bank_account}, {@code tt_bank_account}, {@code + * tw_bank_account}, {@code tz_bank_account}, {@code us_bank_account}, {@code + * uz_bank_account}, {@code vn_bank_account}, or {@code za_bank_account}. */ @SerializedName("type") String type; @@ -8874,25 +8874,30 @@ public static class IdNumber extends StripeObject { *

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 triggers; @@ -92,6 +92,10 @@ public static class Trigger extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class EventTrigger extends StripeObject { + /** Specifies which accounts' events will trigger this Workflow. */ + @SerializedName("events_from") + List eventsFrom; + /** The Stripe event type that will trigger this Workflow. */ @SerializedName("type") String type; @@ -104,10 +108,6 @@ public static class EventTrigger extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class Manual extends StripeObject { - /** An unprocessed version of the trigger's input parameter schema. */ - @SerializedName("raw_schema") - String rawSchema; - } + public static class Manual extends StripeObject {} } } diff --git a/src/main/java/com/stripe/model/v2/core/WorkflowRun.java b/src/main/java/com/stripe/model/v2/extend/WorkflowRun.java similarity index 88% rename from src/main/java/com/stripe/model/v2/core/WorkflowRun.java rename to src/main/java/com/stripe/model/v2/extend/WorkflowRun.java index 7328e345263..bcbc8b70539 100644 --- a/src/main/java/com/stripe/model/v2/core/WorkflowRun.java +++ b/src/main/java/com/stripe/model/v2/extend/WorkflowRun.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; @@ -35,7 +35,7 @@ public class WorkflowRun 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_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 ipAllowlist; + + /** Information about the entity managing this API key. */ + @SerializedName("managed_by") + ManagedBy managedBy; + + /** Name of the API key. */ + @SerializedName("name") + String name; + + /** Unique identifier of the new API key, set when this key was rotated. */ + @SerializedName("new_key") + String newKey; + + /** Note or description for the API key. */ + @SerializedName("note") + String note; + + /** + * Type of the API key. + * + *

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 roles; + } + + /** Details of a user role change action. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class UserRoles extends StripeObject { + /** Roles the user has after the change. */ + @SerializedName("new_roles") + List newRoles; + + /** Roles the user had before the change. */ + @SerializedName("old_roles") + List oldRoles; + + /** Email address of the user whose roles were changed. */ + @SerializedName("user_email") + String userEmail; + } + } +} diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java b/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java index aac74ce830f..dbf0e56c65b 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java @@ -77,6 +77,13 @@ public class FinancialAccount extends StripeObject implements HasId { @SerializedName("metadata") Map metadata; + /** + * If this is a {@code multiprocessor_settlement} FinancialAccount, this hash includes details + * specific to {@code multiprocessor_settlement} FinancialAccounts. + */ + @SerializedName("multiprocessor_settlement") + MultiprocessorSettlement multiprocessorSettlement; + /** * String representing the object's type. Objects of the same type share the same value of the * object field. @@ -125,7 +132,8 @@ public class FinancialAccount extends StripeObject implements HasId { * name matching this value. It contains additional information specific to the FinancialAccount * type. * - *

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 settlementCurrencies; + } + /** * If this is a {@code other} FinancialAccount, this hash indicates what the actual type is. * Upgrade your API version to see it reflected in {@code type}. diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAddress.java b/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAddress.java index ac4f8652dcd..9154451b036 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAddress.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAddress.java @@ -82,6 +82,14 @@ public class FinancialAddress extends StripeObject implements HasId { @Setter @EqualsAndHashCode(callSuper = false) public static class Credentials extends StripeObject { + /** + * 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. + */ + @SerializedName("ca_bank_account") + CaBankAccount caBankAccount; + /** * 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. @@ -99,7 +107,8 @@ public static class Credentials extends StripeObject { /** * Open Enum. The type of Credentials that are provisioned for the FinancialAddress. * - *

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 lineItems; + + /** Contains information about the shipping portion of the amount. */ + @SerializedName("shipping") + Shipping shipping; + + /** Contains information about the tax portion of the amount. */ + @SerializedName("tax") + Tax tax; + + /** + * 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}. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Errors extends StripeObject { + /** + * The code of the error that occurred when validating the current amount details. + * + *

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 extraParams, String id, + Identifiers identifiers, Object images, Object metadata, String name, @@ -1546,6 +1551,7 @@ private ProductData( this.description = description; this.extraParams = extraParams; this.id = id; + this.identifiers = identifiers; this.images = images; this.metadata = metadata; this.name = name; @@ -1566,6 +1572,8 @@ public static class Builder { private String id; + private Identifiers identifiers; + private Object images; private Object metadata; @@ -1586,6 +1594,7 @@ public OrderCreateParams.LineItem.ProductData build() { this.description, this.extraParams, this.id, + this.identifiers, this.images, this.metadata, this.name, @@ -1658,6 +1667,13 @@ public Builder setId(String id) { return this; } + /** Other identifiers for this product. */ + public Builder setIdentifiers( + OrderCreateParams.LineItem.ProductData.Identifiers identifiers) { + this.identifiers = identifiers; + return this; + } + /** * Add an element to `images` list. A list is initialized for the first `add/addAll` call, * and subsequent calls adds additional elements to the original list. See {@link @@ -1807,6 +1823,285 @@ public Builder setUrl(EmptyParam url) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Identifiers { + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + * check digit. + */ + @SerializedName("ean") + Object ean; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional + * dashes. The final digit is a validated check digit. + */ + @SerializedName("gtin") + Object gtin; + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + * dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be a + * {@code X}. + */ + @SerializedName("isbn") + Object isbn; + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + * digits must either be {@code 45} or {@code 49}. The final digit is a validated check + * digit. + */ + @SerializedName("jan") + Object jan; + + /** + * Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. + */ + @SerializedName("mpn") + Object mpn; + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + @SerializedName("nsn") + Object nsn; + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit + * is a validated check digit. + */ + @SerializedName("upc") + Object upc; + + private Identifiers( + Object ean, + Map extraParams, + Object gtin, + Object isbn, + Object jan, + Object mpn, + Object nsn, + Object upc) { + this.ean = ean; + this.extraParams = extraParams; + this.gtin = gtin; + this.isbn = isbn; + this.jan = jan; + this.mpn = mpn; + this.nsn = nsn; + this.upc = upc; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object ean; + + private Map extraParams; + + private Object gtin; + + private Object isbn; + + private Object jan; + + private Object mpn; + + private Object nsn; + + private Object upc; + + /** Finalize and obtain parameter instance from this builder. */ + public OrderCreateParams.LineItem.ProductData.Identifiers build() { + return new OrderCreateParams.LineItem.ProductData.Identifiers( + this.ean, + this.extraParams, + this.gtin, + this.isbn, + this.jan, + this.mpn, + this.nsn, + this.upc); + } + + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + * check digit. + */ + public Builder setEan(String ean) { + this.ean = ean; + return this; + } + + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + * check digit. + */ + public Builder setEan(EmptyParam ean) { + this.ean = ean; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OrderCreateParams.LineItem.ProductData.Identifiers#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OrderCreateParams.LineItem.ProductData.Identifiers#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional + * dashes. The final digit is a validated check digit. + */ + public Builder setGtin(String gtin) { + this.gtin = gtin; + return this; + } + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional + * dashes. The final digit is a validated check digit. + */ + public Builder setGtin(EmptyParam gtin) { + this.gtin = gtin; + return this; + } + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + * dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be + * a {@code X}. + */ + public Builder setIsbn(String isbn) { + this.isbn = isbn; + return this; + } + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + * dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be + * a {@code X}. + */ + public Builder setIsbn(EmptyParam isbn) { + this.isbn = isbn; + return this; + } + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first + * two digits must either be {@code 45} or {@code 49}. The final digit is a validated + * check digit. + */ + public Builder setJan(String jan) { + this.jan = jan; + return this; + } + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first + * two digits must either be {@code 45} or {@code 49}. The final digit is a validated + * check digit. + */ + public Builder setJan(EmptyParam jan) { + this.jan = jan; + return this; + } + + /** + * Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and + * dashes. + */ + public Builder setMpn(String mpn) { + this.mpn = mpn; + return this; + } + + /** + * Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and + * dashes. + */ + public Builder setMpn(EmptyParam mpn) { + this.mpn = mpn; + return this; + } + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + public Builder setNsn(String nsn) { + this.nsn = nsn; + return this; + } + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + public Builder setNsn(EmptyParam nsn) { + this.nsn = nsn; + return this; + } + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final + * digit is a validated check digit. + */ + public Builder setUpc(String upc) { + this.upc = upc; + return this; + } + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final + * digit is a validated check digit. + */ + public Builder setUpc(EmptyParam upc) { + this.upc = upc; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class PackageDimensions { diff --git a/src/main/java/com/stripe/param/OrderUpdateParams.java b/src/main/java/com/stripe/param/OrderUpdateParams.java index 474779b0baf..1f630cae388 100644 --- a/src/main/java/com/stripe/param/OrderUpdateParams.java +++ b/src/main/java/com/stripe/param/OrderUpdateParams.java @@ -1731,6 +1731,10 @@ public static class ProductData { @SerializedName("id") Object 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. */ @@ -1770,6 +1774,7 @@ private ProductData( Object description, Map extraParams, Object id, + Identifiers identifiers, Object images, Object metadata, Object name, @@ -1780,6 +1785,7 @@ private ProductData( this.description = description; this.extraParams = extraParams; this.id = id; + this.identifiers = identifiers; this.images = images; this.metadata = metadata; this.name = name; @@ -1800,6 +1806,8 @@ public static class Builder { private Object id; + private Identifiers identifiers; + private Object images; private Object metadata; @@ -1820,6 +1828,7 @@ public OrderUpdateParams.LineItem.ProductData build() { this.description, this.extraParams, this.id, + this.identifiers, this.images, this.metadata, this.name, @@ -1907,6 +1916,13 @@ public Builder setId(EmptyParam id) { return this; } + /** Other identifiers for this product. */ + public Builder setIdentifiers( + OrderUpdateParams.LineItem.ProductData.Identifiers identifiers) { + this.identifiers = identifiers; + return this; + } + /** * Add an element to `images` list. A list is initialized for the first `add/addAll` call, * and subsequent calls adds additional elements to the original list. See {@link @@ -2064,6 +2080,285 @@ public Builder setUrl(EmptyParam url) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Identifiers { + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + * check digit. + */ + @SerializedName("ean") + Object ean; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional + * dashes. The final digit is a validated check digit. + */ + @SerializedName("gtin") + Object gtin; + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + * dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be a + * {@code X}. + */ + @SerializedName("isbn") + Object isbn; + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + * digits must either be {@code 45} or {@code 49}. The final digit is a validated check + * digit. + */ + @SerializedName("jan") + Object jan; + + /** + * Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. + */ + @SerializedName("mpn") + Object mpn; + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + @SerializedName("nsn") + Object nsn; + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit + * is a validated check digit. + */ + @SerializedName("upc") + Object upc; + + private Identifiers( + Object ean, + Map extraParams, + Object gtin, + Object isbn, + Object jan, + Object mpn, + Object nsn, + Object upc) { + this.ean = ean; + this.extraParams = extraParams; + this.gtin = gtin; + this.isbn = isbn; + this.jan = jan; + this.mpn = mpn; + this.nsn = nsn; + this.upc = upc; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object ean; + + private Map extraParams; + + private Object gtin; + + private Object isbn; + + private Object jan; + + private Object mpn; + + private Object nsn; + + private Object upc; + + /** Finalize and obtain parameter instance from this builder. */ + public OrderUpdateParams.LineItem.ProductData.Identifiers build() { + return new OrderUpdateParams.LineItem.ProductData.Identifiers( + this.ean, + this.extraParams, + this.gtin, + this.isbn, + this.jan, + this.mpn, + this.nsn, + this.upc); + } + + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + * check digit. + */ + public Builder setEan(String ean) { + this.ean = ean; + return this; + } + + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + * check digit. + */ + public Builder setEan(EmptyParam ean) { + this.ean = ean; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OrderUpdateParams.LineItem.ProductData.Identifiers#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OrderUpdateParams.LineItem.ProductData.Identifiers#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional + * dashes. The final digit is a validated check digit. + */ + public Builder setGtin(String gtin) { + this.gtin = gtin; + return this; + } + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional + * dashes. The final digit is a validated check digit. + */ + public Builder setGtin(EmptyParam gtin) { + this.gtin = gtin; + return this; + } + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + * dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be + * a {@code X}. + */ + public Builder setIsbn(String isbn) { + this.isbn = isbn; + return this; + } + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + * dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be + * a {@code X}. + */ + public Builder setIsbn(EmptyParam isbn) { + this.isbn = isbn; + return this; + } + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first + * two digits must either be {@code 45} or {@code 49}. The final digit is a validated + * check digit. + */ + public Builder setJan(String jan) { + this.jan = jan; + return this; + } + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first + * two digits must either be {@code 45} or {@code 49}. The final digit is a validated + * check digit. + */ + public Builder setJan(EmptyParam jan) { + this.jan = jan; + return this; + } + + /** + * Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and + * dashes. + */ + public Builder setMpn(String mpn) { + this.mpn = mpn; + return this; + } + + /** + * Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and + * dashes. + */ + public Builder setMpn(EmptyParam mpn) { + this.mpn = mpn; + return this; + } + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + public Builder setNsn(String nsn) { + this.nsn = nsn; + return this; + } + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + public Builder setNsn(EmptyParam nsn) { + this.nsn = nsn; + return this; + } + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final + * digit is a validated check digit. + */ + public Builder setUpc(String upc) { + this.upc = upc; + return this; + } + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final + * digit is a validated check digit. + */ + public Builder setUpc(EmptyParam upc) { + this.upc = upc; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class PackageDimensions { diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index c55bd9932a4..72fa0baad1d 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -16551,10 +16551,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. @@ -16677,7 +16673,6 @@ private PaymentMethodData( SamsungPay samsungPay, Satispay satispay, SepaDebit sepaDebit, - String sharedPaymentGrantedToken, Shopeepay shopeepay, Sofort sofort, StripeBalance stripeBalance, @@ -16742,7 +16737,6 @@ private PaymentMethodData( this.samsungPay = samsungPay; this.satispay = satispay; this.sepaDebit = sepaDebit; - this.sharedPaymentGrantedToken = sharedPaymentGrantedToken; this.shopeepay = shopeepay; this.sofort = sofort; this.stripeBalance = stripeBalance; @@ -16868,8 +16862,6 @@ public static class Builder { private SepaDebit sepaDebit; - private String sharedPaymentGrantedToken; - private Shopeepay shopeepay; private Sofort sofort; @@ -16947,7 +16939,6 @@ public PaymentIntentConfirmParams.PaymentMethodData build() { this.samsungPay, this.satispay, this.sepaDebit, - this.sharedPaymentGrantedToken, this.shopeepay, this.sofort, this.stripeBalance, @@ -17503,12 +17494,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/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index 4cf8fa40f03..26e3b2603c6 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -17065,10 +17065,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. @@ -17191,7 +17187,6 @@ private PaymentMethodData( SamsungPay samsungPay, Satispay satispay, SepaDebit sepaDebit, - String sharedPaymentGrantedToken, Shopeepay shopeepay, Sofort sofort, StripeBalance stripeBalance, @@ -17256,7 +17251,6 @@ private PaymentMethodData( this.samsungPay = samsungPay; this.satispay = satispay; this.sepaDebit = sepaDebit; - this.sharedPaymentGrantedToken = sharedPaymentGrantedToken; this.shopeepay = shopeepay; this.sofort = sofort; this.stripeBalance = stripeBalance; @@ -17382,8 +17376,6 @@ public static class Builder { private SepaDebit sepaDebit; - private String sharedPaymentGrantedToken; - private Shopeepay shopeepay; private Sofort sofort; @@ -17461,7 +17453,6 @@ public PaymentIntentCreateParams.PaymentMethodData build() { this.samsungPay, this.satispay, this.sepaDebit, - this.sharedPaymentGrantedToken, this.shopeepay, this.sofort, this.stripeBalance, @@ -18010,12 +18001,6 @@ public Builder setSepaDebit(PaymentIntentCreateParams.PaymentMethodData.SepaDebi 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/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 7bdc9e8caad..9db3869243e 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -18009,10 +18009,6 @@ public static class PaymentMethodData { @SerializedName("sepa_debit") SepaDebit sepaDebit; - /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */ - @SerializedName("shared_payment_granted_token") - Object sharedPaymentGrantedToken; - /** * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment * method. @@ -18135,7 +18131,6 @@ private PaymentMethodData( SamsungPay samsungPay, Satispay satispay, SepaDebit sepaDebit, - Object sharedPaymentGrantedToken, Shopeepay shopeepay, Sofort sofort, StripeBalance stripeBalance, @@ -18200,7 +18195,6 @@ private PaymentMethodData( this.samsungPay = samsungPay; this.satispay = satispay; this.sepaDebit = sepaDebit; - this.sharedPaymentGrantedToken = sharedPaymentGrantedToken; this.shopeepay = shopeepay; this.sofort = sofort; this.stripeBalance = stripeBalance; @@ -18326,8 +18320,6 @@ public static class Builder { private SepaDebit sepaDebit; - private Object sharedPaymentGrantedToken; - private Shopeepay shopeepay; private Sofort sofort; @@ -18405,7 +18397,6 @@ public PaymentIntentUpdateParams.PaymentMethodData build() { this.samsungPay, this.satispay, this.sepaDebit, - this.sharedPaymentGrantedToken, this.shopeepay, this.sofort, this.stripeBalance, @@ -18954,18 +18945,6 @@ public Builder setSepaDebit(PaymentIntentUpdateParams.PaymentMethodData.SepaDebi return this; } - /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */ - public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) { - this.sharedPaymentGrantedToken = sharedPaymentGrantedToken; - return this; - } - - /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */ - public Builder setSharedPaymentGrantedToken(EmptyParam 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/PriceCreateParams.java b/src/main/java/com/stripe/param/PriceCreateParams.java index eeb5222e348..ca05ff96135 100644 --- a/src/main/java/com/stripe/param/PriceCreateParams.java +++ b/src/main/java/com/stripe/param/PriceCreateParams.java @@ -57,6 +57,13 @@ public class PriceCreateParams extends ApiRequestParams { @SerializedName("expand") List expand; + /** + * A custom identifier for this price, such as a SKU number or product code, that can be used to + * reference records from external systems. + */ + @SerializedName("external_reference") + String externalReference; + /** * Map of extra parameters for custom features not available in this client library. The content * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each @@ -164,6 +171,7 @@ private PriceCreateParams( Map currencyOptions, CustomUnitAmount customUnitAmount, List expand, + String externalReference, Map extraParams, String lookupKey, Map metadata, @@ -184,6 +192,7 @@ private PriceCreateParams( this.currencyOptions = currencyOptions; this.customUnitAmount = customUnitAmount; this.expand = expand; + this.externalReference = externalReference; this.extraParams = extraParams; this.lookupKey = lookupKey; this.metadata = metadata; @@ -217,6 +226,8 @@ public static class Builder { private List expand; + private String externalReference; + private Map extraParams; private String lookupKey; @@ -254,6 +265,7 @@ public PriceCreateParams build() { this.currencyOptions, this.customUnitAmount, this.expand, + this.externalReference, this.extraParams, this.lookupKey, this.metadata, @@ -360,6 +372,15 @@ public Builder addAllExpand(List elements) { return this; } + /** + * A custom identifier for this price, such as a SKU number or product code, that can be used to + * reference records from external systems. + */ + public Builder setExternalReference(String externalReference) { + this.externalReference = externalReference; + return this; + } + /** * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link diff --git a/src/main/java/com/stripe/param/PriceUpdateParams.java b/src/main/java/com/stripe/param/PriceUpdateParams.java index 81a991ef6f3..43cec268438 100644 --- a/src/main/java/com/stripe/param/PriceUpdateParams.java +++ b/src/main/java/com/stripe/param/PriceUpdateParams.java @@ -31,6 +31,13 @@ public class PriceUpdateParams extends ApiRequestParams { @SerializedName("expand") List expand; + /** + * A custom identifier for this price, such as a SKU number or product code, that can be used to + * reference records from external systems. + */ + @SerializedName("external_reference") + Object externalReference; + /** * Map of extra parameters for custom features not available in this client library. The content * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each @@ -88,6 +95,7 @@ private PriceUpdateParams( Boolean active, Object currencyOptions, List expand, + Object externalReference, Map extraParams, Object lookupKey, Object metadata, @@ -98,6 +106,7 @@ private PriceUpdateParams( this.active = active; this.currencyOptions = currencyOptions; this.expand = expand; + this.externalReference = externalReference; this.extraParams = extraParams; this.lookupKey = lookupKey; this.metadata = metadata; @@ -118,6 +127,8 @@ public static class Builder { private List expand; + private Object externalReference; + private Map extraParams; private Object lookupKey; @@ -138,6 +149,7 @@ public PriceUpdateParams build() { this.active, this.currencyOptions, this.expand, + this.externalReference, this.extraParams, this.lookupKey, this.metadata, @@ -228,6 +240,24 @@ public Builder addAllExpand(List elements) { return this; } + /** + * A custom identifier for this price, such as a SKU number or product code, that can be used to + * reference records from external systems. + */ + public Builder setExternalReference(String externalReference) { + this.externalReference = externalReference; + return this; + } + + /** + * A custom identifier for this price, such as a SKU number or product code, that can be used to + * reference records from external systems. + */ + public Builder setExternalReference(EmptyParam externalReference) { + this.externalReference = externalReference; + return this; + } + /** * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link diff --git a/src/main/java/com/stripe/param/ProductCreateParams.java b/src/main/java/com/stripe/param/ProductCreateParams.java index 4af7ac26927..1f3480d8b40 100644 --- a/src/main/java/com/stripe/param/ProductCreateParams.java +++ b/src/main/java/com/stripe/param/ProductCreateParams.java @@ -54,6 +54,10 @@ public class ProductCreateParams extends ApiRequestParams { @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. */ @SerializedName("images") List images; @@ -137,6 +141,7 @@ private ProductCreateParams( List expand, Map extraParams, String id, + Identifiers identifiers, List images, List marketingFeatures, Map metadata, @@ -155,6 +160,7 @@ private ProductCreateParams( this.expand = expand; this.extraParams = extraParams; this.id = id; + this.identifiers = identifiers; this.images = images; this.marketingFeatures = marketingFeatures; this.metadata = metadata; @@ -186,6 +192,8 @@ public static class Builder { private String id; + private Identifiers identifiers; + private List images; private List marketingFeatures; @@ -219,6 +227,7 @@ public ProductCreateParams build() { this.expand, this.extraParams, this.id, + this.identifiers, this.images, this.marketingFeatures, this.metadata, @@ -319,6 +328,12 @@ public Builder setId(String id) { return this; } + /** Other identifiers for this product. */ + public Builder setIdentifiers(ProductCreateParams.Identifiers identifiers) { + this.identifiers = identifiers; + return this; + } + /** * Add an element to `images` list. A list is initialized for the first `add/addAll` call, and * subsequent calls adds additional elements to the original list. See {@link @@ -1550,6 +1565,210 @@ public enum TaxBehavior implements ApiRequestParams.EnumParam { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Identifiers { + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated check + * digit. + */ + @SerializedName("ean") + String ean; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes. + * The final digit is a validated check digit. + */ + @SerializedName("gtin") + String gtin; + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional dashes. + * The final digit is a validated check digit. For ISBN-10, the final digit may be a {@code X}. + */ + @SerializedName("isbn") + String isbn; + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + * digits must either be {@code 45} or {@code 49}. The final digit is a validated check digit. + */ + @SerializedName("jan") + String jan; + + /** Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. */ + @SerializedName("mpn") + String mpn; + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + @SerializedName("nsn") + String nsn; + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit is + * a validated check digit. + */ + @SerializedName("upc") + String upc; + + private Identifiers( + String ean, + Map extraParams, + String gtin, + String isbn, + String jan, + String mpn, + String nsn, + String upc) { + this.ean = ean; + this.extraParams = extraParams; + this.gtin = gtin; + this.isbn = isbn; + this.jan = jan; + this.mpn = mpn; + this.nsn = nsn; + this.upc = upc; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String ean; + + private Map extraParams; + + private String gtin; + + private String isbn; + + private String jan; + + private String mpn; + + private String nsn; + + private String upc; + + /** Finalize and obtain parameter instance from this builder. */ + public ProductCreateParams.Identifiers build() { + return new ProductCreateParams.Identifiers( + this.ean, + this.extraParams, + this.gtin, + this.isbn, + this.jan, + this.mpn, + this.nsn, + this.upc); + } + + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + * check digit. + */ + public Builder setEan(String ean) { + this.ean = ean; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ProductCreateParams.Identifiers#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ProductCreateParams.Identifiers#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes. + * The final digit is a validated check digit. + */ + public Builder setGtin(String gtin) { + this.gtin = gtin; + return this; + } + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + * dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be a + * {@code X}. + */ + public Builder setIsbn(String isbn) { + this.isbn = isbn; + return this; + } + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + * digits must either be {@code 45} or {@code 49}. The final digit is a validated check digit. + */ + public Builder setJan(String jan) { + this.jan = jan; + return this; + } + + /** + * Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. + */ + public Builder setMpn(String mpn) { + this.mpn = mpn; + return this; + } + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + public Builder setNsn(String nsn) { + this.nsn = nsn; + return this; + } + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit + * is a validated check digit. + */ + public Builder setUpc(String upc) { + this.upc = upc; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class MarketingFeature { diff --git a/src/main/java/com/stripe/param/ProductUpdateParams.java b/src/main/java/com/stripe/param/ProductUpdateParams.java index da6bbc08e0f..5d3bba43f59 100644 --- a/src/main/java/com/stripe/param/ProductUpdateParams.java +++ b/src/main/java/com/stripe/param/ProductUpdateParams.java @@ -47,6 +47,10 @@ public class ProductUpdateParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** 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. */ @SerializedName("images") Object images; @@ -120,6 +124,7 @@ private ProductUpdateParams( Object description, List expand, Map extraParams, + Identifiers identifiers, Object images, Object marketingFeatures, Object metadata, @@ -136,6 +141,7 @@ private ProductUpdateParams( this.description = description; this.expand = expand; this.extraParams = extraParams; + this.identifiers = identifiers; this.images = images; this.marketingFeatures = marketingFeatures; this.metadata = metadata; @@ -164,6 +170,8 @@ public static class Builder { private Map extraParams; + private Identifiers identifiers; + private Object images; private Object marketingFeatures; @@ -194,6 +202,7 @@ public ProductUpdateParams build() { this.description, this.expand, this.extraParams, + this.identifiers, this.images, this.marketingFeatures, this.metadata, @@ -303,6 +312,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Other identifiers for this product. */ + public Builder setIdentifiers(ProductUpdateParams.Identifiers identifiers) { + this.identifiers = identifiers; + return this; + } + /** * Add an element to `images` list. A list is initialized for the first `add/addAll` call, and * subsequent calls adds additional elements to the original list. See {@link @@ -569,6 +584,274 @@ public Builder setUrl(EmptyParam url) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Identifiers { + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated check + * digit. + */ + @SerializedName("ean") + Object ean; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes. + * The final digit is a validated check digit. + */ + @SerializedName("gtin") + Object gtin; + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional dashes. + * The final digit is a validated check digit. For ISBN-10, the final digit may be a {@code X}. + */ + @SerializedName("isbn") + Object isbn; + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + * digits must either be {@code 45} or {@code 49}. The final digit is a validated check digit. + */ + @SerializedName("jan") + Object jan; + + /** Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. */ + @SerializedName("mpn") + Object mpn; + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + @SerializedName("nsn") + Object nsn; + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit is + * a validated check digit. + */ + @SerializedName("upc") + Object upc; + + private Identifiers( + Object ean, + Map extraParams, + Object gtin, + Object isbn, + Object jan, + Object mpn, + Object nsn, + Object upc) { + this.ean = ean; + this.extraParams = extraParams; + this.gtin = gtin; + this.isbn = isbn; + this.jan = jan; + this.mpn = mpn; + this.nsn = nsn; + this.upc = upc; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object ean; + + private Map extraParams; + + private Object gtin; + + private Object isbn; + + private Object jan; + + private Object mpn; + + private Object nsn; + + private Object upc; + + /** Finalize and obtain parameter instance from this builder. */ + public ProductUpdateParams.Identifiers build() { + return new ProductUpdateParams.Identifiers( + this.ean, + this.extraParams, + this.gtin, + this.isbn, + this.jan, + this.mpn, + this.nsn, + this.upc); + } + + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + * check digit. + */ + public Builder setEan(String ean) { + this.ean = ean; + return this; + } + + /** + * European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + * optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + * check digit. + */ + public Builder setEan(EmptyParam ean) { + this.ean = ean; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ProductUpdateParams.Identifiers#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ProductUpdateParams.Identifiers#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes. + * The final digit is a validated check digit. + */ + public Builder setGtin(String gtin) { + this.gtin = gtin; + return this; + } + + /** + * Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes. + * The final digit is a validated check digit. + */ + public Builder setGtin(EmptyParam gtin) { + this.gtin = gtin; + return this; + } + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + * dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be a + * {@code X}. + */ + public Builder setIsbn(String isbn) { + this.isbn = isbn; + return this; + } + + /** + * International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + * dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be a + * {@code X}. + */ + public Builder setIsbn(EmptyParam isbn) { + this.isbn = isbn; + return this; + } + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + * digits must either be {@code 45} or {@code 49}. The final digit is a validated check digit. + */ + public Builder setJan(String jan) { + this.jan = jan; + return this; + } + + /** + * Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + * digits must either be {@code 45} or {@code 49}. The final digit is a validated check digit. + */ + public Builder setJan(EmptyParam jan) { + this.jan = jan; + return this; + } + + /** + * Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. + */ + public Builder setMpn(String mpn) { + this.mpn = mpn; + return this; + } + + /** + * Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. + */ + public Builder setMpn(EmptyParam mpn) { + this.mpn = mpn; + return this; + } + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + public Builder setNsn(String nsn) { + this.nsn = nsn; + return this; + } + + /** + * National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + * character may also be alphanumeric. + */ + public Builder setNsn(EmptyParam nsn) { + this.nsn = nsn; + return this; + } + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit + * is a validated check digit. + */ + public Builder setUpc(String upc) { + this.upc = upc; + return this; + } + + /** + * Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit + * is a validated check digit. + */ + public Builder setUpc(EmptyParam upc) { + this.upc = upc; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class MarketingFeature { diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index 2dcee68d346..5a0c9f6b16e 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -1025,10 +1025,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. @@ -1151,7 +1147,6 @@ private PaymentMethodData( SamsungPay samsungPay, Satispay satispay, SepaDebit sepaDebit, - String sharedPaymentGrantedToken, Shopeepay shopeepay, Sofort sofort, StripeBalance stripeBalance, @@ -1216,7 +1211,6 @@ private PaymentMethodData( this.samsungPay = samsungPay; this.satispay = satispay; this.sepaDebit = sepaDebit; - this.sharedPaymentGrantedToken = sharedPaymentGrantedToken; this.shopeepay = shopeepay; this.sofort = sofort; this.stripeBalance = stripeBalance; @@ -1342,8 +1336,6 @@ public static class Builder { private SepaDebit sepaDebit; - private String sharedPaymentGrantedToken; - private Shopeepay shopeepay; private Sofort sofort; @@ -1421,7 +1413,6 @@ public SetupIntentConfirmParams.PaymentMethodData build() { this.samsungPay, this.satispay, this.sepaDebit, - this.sharedPaymentGrantedToken, this.shopeepay, this.sofort, this.stripeBalance, @@ -1970,12 +1961,6 @@ public Builder setSepaDebit(SetupIntentConfirmParams.PaymentMethodData.SepaDebit 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/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index 6681d7d7f3d..07003baad4b 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -1563,10 +1563,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. @@ -1689,7 +1685,6 @@ private PaymentMethodData( SamsungPay samsungPay, Satispay satispay, SepaDebit sepaDebit, - String sharedPaymentGrantedToken, Shopeepay shopeepay, Sofort sofort, StripeBalance stripeBalance, @@ -1754,7 +1749,6 @@ private PaymentMethodData( this.samsungPay = samsungPay; this.satispay = satispay; this.sepaDebit = sepaDebit; - this.sharedPaymentGrantedToken = sharedPaymentGrantedToken; this.shopeepay = shopeepay; this.sofort = sofort; this.stripeBalance = stripeBalance; @@ -1880,8 +1874,6 @@ public static class Builder { private SepaDebit sepaDebit; - private String sharedPaymentGrantedToken; - private Shopeepay shopeepay; private Sofort sofort; @@ -1959,7 +1951,6 @@ public SetupIntentCreateParams.PaymentMethodData build() { this.samsungPay, this.satispay, this.sepaDebit, - this.sharedPaymentGrantedToken, this.shopeepay, this.sofort, this.stripeBalance, @@ -2507,12 +2498,6 @@ public Builder setSepaDebit(SetupIntentCreateParams.PaymentMethodData.SepaDebit 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/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index 9e4e45cec66..b5649a6fe49 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -932,10 +932,6 @@ public static class PaymentMethodData { @SerializedName("sepa_debit") SepaDebit sepaDebit; - /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */ - @SerializedName("shared_payment_granted_token") - Object sharedPaymentGrantedToken; - /** * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment * method. @@ -1058,7 +1054,6 @@ private PaymentMethodData( SamsungPay samsungPay, Satispay satispay, SepaDebit sepaDebit, - Object sharedPaymentGrantedToken, Shopeepay shopeepay, Sofort sofort, StripeBalance stripeBalance, @@ -1123,7 +1118,6 @@ private PaymentMethodData( this.samsungPay = samsungPay; this.satispay = satispay; this.sepaDebit = sepaDebit; - this.sharedPaymentGrantedToken = sharedPaymentGrantedToken; this.shopeepay = shopeepay; this.sofort = sofort; this.stripeBalance = stripeBalance; @@ -1249,8 +1243,6 @@ public static class Builder { private SepaDebit sepaDebit; - private Object sharedPaymentGrantedToken; - private Shopeepay shopeepay; private Sofort sofort; @@ -1328,7 +1320,6 @@ public SetupIntentUpdateParams.PaymentMethodData build() { this.samsungPay, this.satispay, this.sepaDebit, - this.sharedPaymentGrantedToken, this.shopeepay, this.sofort, this.stripeBalance, @@ -1876,18 +1867,6 @@ public Builder setSepaDebit(SetupIntentUpdateParams.PaymentMethodData.SepaDebit return this; } - /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */ - public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) { - this.sharedPaymentGrantedToken = sharedPaymentGrantedToken; - return this; - } - - /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */ - public Builder setSharedPaymentGrantedToken(EmptyParam 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/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index 47cbc963942..19297efec91 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -9660,6 +9660,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/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index bf91c1ba478..f7ccdf1ae57 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -9828,6 +9828,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/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 70fefae0b96..d3f820e09ea 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -107,6 +107,19 @@ public class SessionCreateParams extends ApiRequestParams { @SerializedName("custom_fields") List customFields; + /** + * A list of custom payment methods (e.g., {@code cpmt_123}) this Checkout Session can accept. + * + *

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 customPaymentMethodTypes; + /** * Display additional text for your customers using custom text. You can't set this parameter if * {@code ui_mode} is {@code custom}. @@ -483,6 +496,7 @@ private SessionCreateParams( ConsentCollection consentCollection, String currency, List customFields, + List customPaymentMethodTypes, CustomText customText, String customer, String customerAccount, @@ -538,6 +552,7 @@ private SessionCreateParams( this.consentCollection = consentCollection; this.currency = currency; this.customFields = customFields; + this.customPaymentMethodTypes = customPaymentMethodTypes; this.customText = customText; this.customer = customer; this.customerAccount = customerAccount; @@ -614,6 +629,8 @@ public static class Builder { private List customFields; + private List customPaymentMethodTypes; + private CustomText customText; private String customer; @@ -713,6 +730,7 @@ public SessionCreateParams build() { this.consentCollection, this.currency, this.customFields, + this.customPaymentMethodTypes, this.customText, this.customer, this.customerAccount, @@ -916,6 +934,32 @@ public Builder addAllCustomField(List elements) return this; } + /** + * Add an element to `customPaymentMethodTypes` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link SessionCreateParams#customPaymentMethodTypes} for the field documentation. + */ + public Builder addCustomPaymentMethodType(String element) { + if (this.customPaymentMethodTypes == null) { + this.customPaymentMethodTypes = new ArrayList<>(); + } + this.customPaymentMethodTypes.add(element); + return this; + } + + /** + * Add all elements to `customPaymentMethodTypes` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link SessionCreateParams#customPaymentMethodTypes} for the field documentation. + */ + public Builder addAllCustomPaymentMethodType(List elements) { + if (this.customPaymentMethodTypes == null) { + this.customPaymentMethodTypes = new ArrayList<>(); + } + this.customPaymentMethodTypes.addAll(elements); + return this; + } + /** * Display additional text for your customers using custom text. You can't set this parameter if * {@code ui_mode} is {@code custom}. diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java index 7e890cfb752..9faf5597bbc 100644 --- a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java +++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java @@ -34,6 +34,13 @@ public class RequestedSessionConfirmParams extends ApiRequestParams { @SerializedName("payment_method") String paymentMethod; + /** + * The URL to redirect your customer back to after they authenticate or complete a payment action. + * Required for redirect-based payment methods such as Affirm or Klarna. + */ + @SerializedName("return_url") + String returnUrl; + /** Risk details/signals associated with the requested session. */ @SerializedName("risk_details") RiskDetails riskDetails; @@ -43,11 +50,13 @@ private RequestedSessionConfirmParams( List expand, Map extraParams, String paymentMethod, + String returnUrl, RiskDetails riskDetails) { this.affiliateAttribution = affiliateAttribution; this.expand = expand; this.extraParams = extraParams; this.paymentMethod = paymentMethod; + this.returnUrl = returnUrl; this.riskDetails = riskDetails; } @@ -64,6 +73,8 @@ public static class Builder { private String paymentMethod; + private String returnUrl; + private RiskDetails riskDetails; /** Finalize and obtain parameter instance from this builder. */ @@ -73,6 +84,7 @@ public RequestedSessionConfirmParams build() { this.expand, this.extraParams, this.paymentMethod, + this.returnUrl, this.riskDetails); } @@ -141,6 +153,15 @@ public Builder setPaymentMethod(String paymentMethod) { return this; } + /** + * The URL to redirect your customer back to after they authenticate or complete a payment + * action. Required for redirect-based payment methods such as Affirm or Klarna. + */ + public Builder setReturnUrl(String returnUrl) { + this.returnUrl = returnUrl; + return this; + } + /** Risk details/signals associated with the requested session. */ public Builder setRiskDetails(RequestedSessionConfirmParams.RiskDetails riskDetails) { this.riskDetails = riskDetails; diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java index c8e06bc7f85..0cbbf385504 100644 --- a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java +++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java @@ -716,10 +716,10 @@ public static class SelectedFulfillmentOption { /** Required. The type of fulfillment option. */ @SerializedName("type") - Object type; + Type type; private SelectedFulfillmentOption( - Digital digital, Map extraParams, Shipping shipping, Object type) { + Digital digital, Map extraParams, Shipping shipping, Type type) { this.digital = digital; this.extraParams = extraParams; this.shipping = shipping; @@ -737,7 +737,7 @@ public static class Builder { private Shipping shipping; - private Object type; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption build() { @@ -792,13 +792,8 @@ public Builder setShipping( } /** Required. The type of fulfillment option. */ - public Builder setType(String type) { - this.type = type; - return this; - } - - /** Required. The type of fulfillment option. */ - public Builder setType(EmptyParam type) { + public Builder setType( + RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption.Type type) { this.type = type; return this; } @@ -967,6 +962,21 @@ public Builder setShippingOption(EmptyParam shippingOption) { } } } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("digital") + DIGITAL("digital"), + + @SerializedName("shipping") + SHIPPING("shipping"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } } @Getter @@ -998,14 +1008,14 @@ public static class SelectedFulfillmentOptionOverride { /** Required. The type of fulfillment option. */ @SerializedName("type") - Object type; + Type type; private SelectedFulfillmentOptionOverride( Digital digital, Map extraParams, List lineItemKeys, Shipping shipping, - Object type) { + Type type) { this.digital = digital; this.extraParams = extraParams; this.lineItemKeys = lineItemKeys; @@ -1026,7 +1036,7 @@ public static class Builder { private Shipping shipping; - private Object type; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOptionOverride @@ -1113,13 +1123,9 @@ public Builder setShipping( } /** Required. The type of fulfillment option. */ - public Builder setType(String type) { - this.type = type; - return this; - } - - /** Required. The type of fulfillment option. */ - public Builder setType(EmptyParam type) { + public Builder setType( + RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOptionOverride.Type + type) { this.type = type; return this; } @@ -1290,6 +1296,21 @@ public Builder setShippingOption(EmptyParam shippingOption) { } } } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("digital") + DIGITAL("digital"), + + @SerializedName("shipping") + SHIPPING("shipping"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } } } diff --git a/src/main/java/com/stripe/param/radar/AccountEvaluationUpdateParams.java b/src/main/java/com/stripe/param/radar/AccountEvaluationUpdateParams.java index b45e4d2c6b1..ceebcfe59d7 100644 --- a/src/main/java/com/stripe/param/radar/AccountEvaluationUpdateParams.java +++ b/src/main/java/com/stripe/param/radar/AccountEvaluationUpdateParams.java @@ -30,10 +30,18 @@ public class AccountEvaluationUpdateParams extends ApiRequestParams { @SerializedName("login_failed") LoginFailed loginFailed; + /** Event payload for login_succeeded. */ + @SerializedName("login_succeeded") + LoginSucceeded loginSucceeded; + /** Event payload for registration_failed. */ @SerializedName("registration_failed") RegistrationFailed registrationFailed; + /** Event payload for registration_succeeded. */ + @SerializedName("registration_succeeded") + RegistrationSucceeded registrationSucceeded; + /** Required. The type of event to report. */ @SerializedName("type") Type type; @@ -42,12 +50,16 @@ private AccountEvaluationUpdateParams( List expand, Map extraParams, LoginFailed loginFailed, + LoginSucceeded loginSucceeded, RegistrationFailed registrationFailed, + RegistrationSucceeded registrationSucceeded, Type type) { this.expand = expand; this.extraParams = extraParams; this.loginFailed = loginFailed; + this.loginSucceeded = loginSucceeded; this.registrationFailed = registrationFailed; + this.registrationSucceeded = registrationSucceeded; this.type = type; } @@ -62,14 +74,24 @@ public static class Builder { private LoginFailed loginFailed; + private LoginSucceeded loginSucceeded; + private RegistrationFailed registrationFailed; + private RegistrationSucceeded registrationSucceeded; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public AccountEvaluationUpdateParams build() { return new AccountEvaluationUpdateParams( - this.expand, this.extraParams, this.loginFailed, this.registrationFailed, this.type); + this.expand, + this.extraParams, + this.loginFailed, + this.loginSucceeded, + this.registrationFailed, + this.registrationSucceeded, + this.type); } /** @@ -130,6 +152,12 @@ public Builder setLoginFailed(AccountEvaluationUpdateParams.LoginFailed loginFai return this; } + /** Event payload for login_succeeded. */ + public Builder setLoginSucceeded(AccountEvaluationUpdateParams.LoginSucceeded loginSucceeded) { + this.loginSucceeded = loginSucceeded; + return this; + } + /** Event payload for registration_failed. */ public Builder setRegistrationFailed( AccountEvaluationUpdateParams.RegistrationFailed registrationFailed) { @@ -137,6 +165,13 @@ public Builder setRegistrationFailed( return this; } + /** Event payload for registration_succeeded. */ + public Builder setRegistrationSucceeded( + AccountEvaluationUpdateParams.RegistrationSucceeded registrationSucceeded) { + this.registrationSucceeded = registrationSucceeded; + return this; + } + /** Required. The type of event to report. */ public Builder setType(AccountEvaluationUpdateParams.Type type) { this.type = type; @@ -229,6 +264,90 @@ public enum Reason implements ApiRequestParams.EnumParam { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class LoginSucceeded { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** An optional qualification for a login success. */ + @SerializedName("qualification") + Qualification qualification; + + private LoginSucceeded(Map extraParams, Qualification qualification) { + this.extraParams = extraParams; + this.qualification = qualification; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Qualification qualification; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountEvaluationUpdateParams.LoginSucceeded build() { + return new AccountEvaluationUpdateParams.LoginSucceeded( + this.extraParams, this.qualification); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * AccountEvaluationUpdateParams.LoginSucceeded#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link AccountEvaluationUpdateParams.LoginSucceeded#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** An optional qualification for a login success. */ + public Builder setQualification( + AccountEvaluationUpdateParams.LoginSucceeded.Qualification qualification) { + this.qualification = qualification; + return this; + } + } + + public enum Qualification implements ApiRequestParams.EnumParam { + @SerializedName("suspected_account_sharing") + SUSPECTED_ACCOUNT_SHARING("suspected_account_sharing"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Qualification(String value) { + this.value = value; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class RegistrationFailed { @@ -314,6 +433,91 @@ public enum Reason implements ApiRequestParams.EnumParam { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class RegistrationSucceeded { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** An optional qualification for a registration success. */ + @SerializedName("qualification") + Qualification qualification; + + private RegistrationSucceeded(Map extraParams, Qualification qualification) { + this.extraParams = extraParams; + this.qualification = qualification; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Qualification qualification; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountEvaluationUpdateParams.RegistrationSucceeded build() { + return new AccountEvaluationUpdateParams.RegistrationSucceeded( + this.extraParams, this.qualification); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * AccountEvaluationUpdateParams.RegistrationSucceeded#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link AccountEvaluationUpdateParams.RegistrationSucceeded#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** An optional qualification for a registration success. */ + public Builder setQualification( + AccountEvaluationUpdateParams.RegistrationSucceeded.Qualification qualification) { + this.qualification = qualification; + return this; + } + } + + public enum Qualification implements ApiRequestParams.EnumParam { + @SerializedName("suspected_multi_accounting") + SUSPECTED_MULTI_ACCOUNTING("suspected_multi_accounting"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Qualification(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("login_failed") LOGIN_FAILED("login_failed"), diff --git a/src/main/java/com/stripe/param/radar/IssuingAuthorizationEvaluationCreateParams.java b/src/main/java/com/stripe/param/radar/IssuingAuthorizationEvaluationCreateParams.java index efdf595f901..ad6d1f306c8 100644 --- a/src/main/java/com/stripe/param/radar/IssuingAuthorizationEvaluationCreateParams.java +++ b/src/main/java/com/stripe/param/radar/IssuingAuthorizationEvaluationCreateParams.java @@ -300,7 +300,10 @@ public static class AuthorizationDetails { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. The timestamp of the authorization initiated in seconds. */ + /** + * Required. The time the authorization was initiated, as a Unix timestamp in + * seconds. Must not be in the future. + */ @SerializedName("initiated_at") Long initiatedAt; @@ -450,7 +453,10 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. The timestamp of the authorization initiated in seconds. */ + /** + * Required. The time the authorization was initiated, as a Unix timestamp in + * seconds. Must not be in the future. + */ public Builder setInitiatedAt(Long initiatedAt) { this.initiatedAt = initiatedAt; return this; @@ -595,7 +601,10 @@ public static class CardDetails { @SerializedName("card_type") CardType cardType; - /** Required. The timestamp when the card was created. */ + /** + * Required. The timestamp when the card was created, as a Unix timestamp in + * seconds. + */ @SerializedName("created_at") Long createdAt; @@ -686,7 +695,10 @@ public Builder setCardType( return this; } - /** Required. The timestamp when the card was created. */ + /** + * Required. The timestamp when the card was created, as a Unix timestamp in + * seconds. + */ public Builder setCreatedAt(Long createdAt) { this.createdAt = createdAt; return this; diff --git a/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java b/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java index f4f421c5954..20f861024fc 100644 --- a/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java @@ -642,9 +642,9 @@ public static class Scope { Map extraParams; /** - * The price type that credit grants can apply to. We currently only support the {@code - * metered} price type. This will apply to metered prices and rate cards. Cannot be used in - * combination with {@code billable_items}. + * The price type that credit grants can apply to. Stripe supports the {@code metered} price + * type, which applies to metered prices and rate cards. Cannot be used in combination with + * {@code billable_items}. */ @SerializedName("price_type") PriceType priceType; @@ -734,9 +734,9 @@ public Builder putAllExtraParam(Map map) { } /** - * The price type that credit grants can apply to. We currently only support the {@code - * metered} price type. This will apply to metered prices and rate cards. Cannot be used - * in combination with {@code billable_items}. + * The price type that credit grants can apply to. Stripe supports the {@code metered} + * price type, which applies to metered prices and rate cards. Cannot be used in + * combination with {@code billable_items}. */ public Builder setPriceType( ActionServiceCreateParams.CreditGrant.ApplicabilityConfig.Scope.PriceType priceType) { @@ -1357,9 +1357,9 @@ public static class Scope { Map extraParams; /** - * The price type that credit grants can apply to. We currently only support the {@code - * metered} price type. This will apply to metered prices and rate cards. Cannot be used in - * combination with {@code billable_items}. + * The price type that credit grants can apply to. Stripe supports the {@code metered} price + * type, which applies to metered prices and rate cards. Cannot be used in combination with + * {@code billable_items}. */ @SerializedName("price_type") PriceType priceType; @@ -1449,9 +1449,9 @@ public Builder putAllExtraParam(Map map) { } /** - * The price type that credit grants can apply to. We currently only support the {@code - * metered} price type. This will apply to metered prices and rate cards. Cannot be used - * in combination with {@code billable_items}. + * The price type that credit grants can apply to. Stripe supports the {@code metered} + * price type, which applies to metered prices and rate cards. Cannot be used in + * combination with {@code billable_items}. */ public Builder setPriceType( ActionServiceCreateParams.CreditGrantPerTenant.ApplicabilityConfig.Scope.PriceType diff --git a/src/main/java/com/stripe/param/v2/billing/BillSettingCreateParams.java b/src/main/java/com/stripe/param/v2/billing/BillSettingCreateParams.java index 606585fd130..52f5cb43c99 100644 --- a/src/main/java/com/stripe/param/v2/billing/BillSettingCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/BillSettingCreateParams.java @@ -233,8 +233,8 @@ public static class Tax { Map extraParams; /** - * Required. Determines if tax will be calculated automatically based on a - * PTC or manually based on rules defined by the merchant. Defaults to "manual". + * Required. Determines if tax is calculated automatically based on a PTC or + * manually based on rules defined by the business. Defaults to "manual". */ @SerializedName("type") Type type; @@ -287,8 +287,8 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. Determines if tax will be calculated automatically based on a - * PTC or manually based on rules defined by the merchant. Defaults to "manual". + * Required. Determines if tax is calculated automatically based on a PTC + * or manually based on rules defined by the business. Defaults to "manual". */ public Builder setType(BillSettingCreateParams.Calculation.Tax.Type type) { this.type = type; @@ -325,7 +325,7 @@ public static class Invoice { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** 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; @@ -374,7 +374,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The amount of time until the invoice will be overdue for payment. */ + /** The amount of time until the invoice is overdue for payment. */ public Builder setTimeUntilDue(BillSettingCreateParams.Invoice.TimeUntilDue timeUntilDue) { this.timeUntilDue = timeUntilDue; return this; @@ -399,7 +399,7 @@ public static class TimeUntilDue { /** * Required. The number of interval units. For example, if interval=day and - * interval_count=30, the invoice will be due in 30 days. + * interval_count=30, the invoice is due in 30 days. */ @SerializedName("interval_count") Long intervalCount; @@ -463,7 +463,7 @@ public Builder setInterval(BillSettingCreateParams.Invoice.TimeUntilDue.Interval /** * Required. The number of interval units. For example, if interval=day and - * interval_count=30, the invoice will be due in 30 days. + * interval_count=30, the invoice is due in 30 days. */ public Builder setIntervalCount(Long intervalCount) { this.intervalCount = intervalCount; diff --git a/src/main/java/com/stripe/param/v2/billing/BillSettingUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/BillSettingUpdateParams.java index e9aeba82b85..ae7dfd484d2 100644 --- a/src/main/java/com/stripe/param/v2/billing/BillSettingUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/BillSettingUpdateParams.java @@ -42,7 +42,7 @@ public class BillSettingUpdateParams extends ApiRequestParams { /** * Optionally change the live version of the BillSetting. Providing {@code live_version = - * "latest"} will set the BillSetting' {@code live_version} to its latest version. + * "latest"} sets the BillSetting' {@code live_version} to its latest version. */ @SerializedName("live_version") Object liveVersion; @@ -172,7 +172,7 @@ public Builder setInvoiceRenderingTemplate(EmptyParam invoiceRenderingTemplate) /** * Optionally change the live version of the BillSetting. Providing {@code live_version = - * "latest"} will set the BillSetting' {@code live_version} to its latest version. + * "latest"} sets the BillSetting' {@code live_version} to its latest version. */ public Builder setLiveVersion(String liveVersion) { this.liveVersion = liveVersion; @@ -181,7 +181,7 @@ public Builder setLiveVersion(String liveVersion) { /** * Optionally change the live version of the BillSetting. Providing {@code live_version = - * "latest"} will set the BillSetting' {@code live_version} to its latest version. + * "latest"} sets the BillSetting' {@code live_version} to its latest version. */ public Builder setLiveVersion(EmptyParam liveVersion) { this.liveVersion = liveVersion; @@ -288,8 +288,8 @@ public static class Tax { Map extraParams; /** - * Required. Determines if tax will be calculated automatically based on a - * PTC or manually based on rules defined by the merchant. Defaults to "manual". + * Required. Determines if tax is calculated automatically based on a PTC or + * manually based on rules defined by the business. Defaults to "manual". */ @SerializedName("type") Type type; @@ -342,8 +342,8 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. Determines if tax will be calculated automatically based on a - * PTC or manually based on rules defined by the merchant. Defaults to "manual". + * Required. Determines if tax is calculated automatically based on a PTC + * or manually based on rules defined by the business. Defaults to "manual". */ public Builder setType(BillSettingUpdateParams.Calculation.Tax.Type type) { this.type = type; @@ -380,7 +380,7 @@ public static class Invoice { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** 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; @@ -429,7 +429,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The amount of time until the invoice will be overdue for payment. */ + /** The amount of time until the invoice is overdue for payment. */ public Builder setTimeUntilDue(BillSettingUpdateParams.Invoice.TimeUntilDue timeUntilDue) { this.timeUntilDue = timeUntilDue; return this; @@ -454,7 +454,7 @@ public static class TimeUntilDue { /** * Required. The number of interval units. For example, if interval=day and - * interval_count=30, the invoice will be due in 30 days. + * interval_count=30, the invoice is due in 30 days. */ @SerializedName("interval_count") Long intervalCount; @@ -518,7 +518,7 @@ public Builder setInterval(BillSettingUpdateParams.Invoice.TimeUntilDue.Interval /** * Required. The number of interval units. For example, if interval=day and - * interval_count=30, the invoice will be due in 30 days. + * interval_count=30, the invoice is due in 30 days. */ public Builder setIntervalCount(Long intervalCount) { this.intervalCount = intervalCount; diff --git a/src/main/java/com/stripe/param/v2/billing/CadenceCreateParams.java b/src/main/java/com/stripe/param/v2/billing/CadenceCreateParams.java index e659e289508..c773d489d10 100644 --- a/src/main/java/com/stripe/param/v2/billing/CadenceCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CadenceCreateParams.java @@ -237,8 +237,8 @@ public static class BillingCycle { /** * The number of intervals (specified in the interval attribute) between cadence billings. For - * example, type=month and interval_count=3 bills every 3 months. If this is not provided, it - * will default to 1. + * example, type=month and interval_count=3 bills every 3 months. If not provided, this defaults + * to 1. */ @SerializedName("interval_count") Long intervalCount; @@ -341,8 +341,8 @@ public Builder putAllExtraParam(Map map) { /** * The number of intervals (specified in the interval attribute) between cadence billings. For - * example, type=month and interval_count=3 bills every 3 months. If this is not provided, it - * will default to 1. + * example, type=month and interval_count=3 bills every 3 months. If not provided, this + * defaults to 1. */ public Builder setIntervalCount(Long intervalCount) { this.intervalCount = intervalCount; @@ -388,7 +388,7 @@ public static class Day { /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ @SerializedName("time") Time time; @@ -442,7 +442,7 @@ public Builder putAllExtraParam(Map map) { /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ public Builder setTime(CadenceCreateParams.BillingCycle.Day.Time time) { this.time = time; @@ -574,8 +574,8 @@ public static class Month { /** * Required. 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. If not provided, this will - * default to the day the cadence was created. + * being billed, this anchors to the last day of the month. If not provided, this defaults to + * the day the cadence was created. */ @SerializedName("day_of_month") Long dayOfMonth; @@ -591,16 +591,16 @@ public static class Month { /** * The month to anchor the billing on for a type="month" billing cycle from 1-12. If - * not provided, this will default to the month the cadence was created. This setting can only - * be used for monthly billing cycles with {@code interval_count} of 2, 3, 4 or 6. All - * occurrences will be calculated from month provided. + * not provided, this defaults to the month the cadence was created. This setting can only be + * used for monthly billing cycles with {@code interval_count} of 2, 3, 4 or 6. All + * occurrences are calculated from the month provided. */ @SerializedName("month_of_year") Long monthOfYear; /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ @SerializedName("time") Time time; @@ -634,8 +634,8 @@ public CadenceCreateParams.BillingCycle.Month build() { /** * Required. 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. If not provided, this will - * default to the day the cadence was created. + * being billed, this anchors to the last day of the month. If not provided, this defaults + * to the day the cadence was created. */ public Builder setDayOfMonth(Long dayOfMonth) { this.dayOfMonth = dayOfMonth; @@ -672,9 +672,9 @@ public Builder putAllExtraParam(Map map) { /** * The month to anchor the billing on for a type="month" billing cycle from 1-12. - * If not provided, this will default to the month the cadence was created. This setting can + * If not provided, this defaults to the month the cadence was created. This setting can * only be used for monthly billing cycles with {@code interval_count} of 2, 3, 4 or 6. All - * occurrences will be calculated from month provided. + * occurrences are calculated from the month provided. */ public Builder setMonthOfYear(Long monthOfYear) { this.monthOfYear = monthOfYear; @@ -683,7 +683,7 @@ public Builder setMonthOfYear(Long monthOfYear) { /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ public Builder setTime(CadenceCreateParams.BillingCycle.Month.Time time) { this.time = time; @@ -815,7 +815,7 @@ public static class Week { /** * Required. The day of the week to bill the type=week billing cycle on. * Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601 week day - * numbering. If not provided, this will default to the day the cadence was created. + * numbering. If not provided, this defaults to the day the cadence was created. */ @SerializedName("day_of_week") Long dayOfWeek; @@ -831,7 +831,7 @@ public static class Week { /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ @SerializedName("time") Time time; @@ -862,7 +862,7 @@ public CadenceCreateParams.BillingCycle.Week build() { /** * Required. The day of the week to bill the type=week billing cycle on. * Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601 week day - * numbering. If not provided, this will default to the day the cadence was created. + * numbering. If not provided, this defaults to the day the cadence was created. */ public Builder setDayOfWeek(Long dayOfWeek) { this.dayOfWeek = dayOfWeek; @@ -899,7 +899,7 @@ public Builder putAllExtraParam(Map map) { /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ public Builder setTime(CadenceCreateParams.BillingCycle.Week.Time time) { this.time = time; @@ -1030,8 +1030,8 @@ public Builder setSecond(Long second) { public static class Year { /** * 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. If not provided, this will default to the day the cadence was + * this number is greater than the number of days in the month being billed, this anchors to + * the last day of the month. If not provided, this defaults to the day the cadence was * created. */ @SerializedName("day_of_month") @@ -1047,15 +1047,15 @@ public static class Year { Map extraParams; /** - * 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; /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ @SerializedName("time") Time time; @@ -1088,9 +1088,9 @@ public CadenceCreateParams.BillingCycle.Year build() { /** * 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. If not provided, this will default to the day the - * cadence was created. + * this number is greater than the number of days in the month being billed, this anchors to + * the last day of the month. If not provided, this defaults to the day the cadence was + * created. */ public Builder setDayOfMonth(Long dayOfMonth) { this.dayOfMonth = dayOfMonth; @@ -1126,8 +1126,8 @@ public Builder putAllExtraParam(Map map) { } /** - * 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. */ public Builder setMonthOfYear(Long monthOfYear) { this.monthOfYear = monthOfYear; @@ -1136,7 +1136,7 @@ public Builder setMonthOfYear(Long monthOfYear) { /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ public Builder setTime(CadenceCreateParams.BillingCycle.Year.Time time) { this.time = time; @@ -1289,7 +1289,7 @@ public enum Type implements ApiRequestParams.EnumParam { public static class Payer { /** * Required. The ID of the Billing Profile object which determines how a bill - * will be paid. + * is paid. */ @SerializedName("billing_profile") String billingProfile; @@ -1324,7 +1324,7 @@ public CadenceCreateParams.Payer build() { /** * Required. The ID of the Billing Profile object which determines how a bill - * will be paid. + * is paid. */ public Builder setBillingProfile(String billingProfile) { this.billingProfile = billingProfile; @@ -1476,8 +1476,8 @@ public static class Bill { String id; /** - * An optional field to specify the version of the Settings to use. If not provided, this will - * always default to the live version any time the settings are used. + * An optional field to specify the version of the Settings to use. If not provided, this + * defaults to the live version any time the settings are used. */ @SerializedName("version") String version; @@ -1540,7 +1540,7 @@ public Builder setId(String id) { /** * An optional field to specify the version of the Settings to use. If not provided, this - * will always default to the live version any time the settings are used. + * defaults to the live version any time the settings are used. */ public Builder setVersion(String version) { this.version = version; @@ -1566,8 +1566,8 @@ public static class Collection { String id; /** - * An optional field to specify the version of the Settings to use. If not provided, this will - * always default to the live version any time the settings are used. + * An optional field to specify the version of the Settings to use. If not provided, this + * defaults to the live version any time the settings are used. */ @SerializedName("version") String version; @@ -1631,7 +1631,7 @@ public Builder setId(String id) { /** * An optional field to specify the version of the Settings to use. If not provided, this - * will always default to the live version any time the settings are used. + * defaults to the live version any time the settings are used. */ public Builder setVersion(String version) { this.version = version; diff --git a/src/main/java/com/stripe/param/v2/billing/CadenceUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/CadenceUpdateParams.java index 6879e3955d8..a35cd22dc3b 100644 --- a/src/main/java/com/stripe/param/v2/billing/CadenceUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CadenceUpdateParams.java @@ -218,7 +218,7 @@ public Builder setSettings(CadenceUpdateParams.Settings settings) { @Getter @EqualsAndHashCode(callSuper = false) public static class Payer { - /** 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") Object billingProfile; @@ -250,13 +250,13 @@ public CadenceUpdateParams.Payer build() { return new CadenceUpdateParams.Payer(this.billingProfile, this.extraParams); } - /** 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. */ public Builder setBillingProfile(String billingProfile) { this.billingProfile = billingProfile; return this; } - /** 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. */ public Builder setBillingProfile(EmptyParam billingProfile) { this.billingProfile = billingProfile; return this; @@ -402,10 +402,10 @@ public static class Bill { Object id; /** - * An optional field to specify the version of Settings to use. If not provided, this will - * always default to the {@code live_version} specified on the setting, any time the settings - * are used. Using a specific version here will prevent the settings from updating, and is - * discouraged for cadences. To clear a pinned version, set the version to null. + * An optional field to specify the version of Settings to use. If not provided, this defaults + * to the {@code live_version} specified on the setting, any time the settings are used. Using + * a specific version here prevents the settings from updating, and is discouraged for + * cadences. To clear a pinned version, set the version to null. */ @SerializedName("version") Object version; @@ -473,10 +473,10 @@ public Builder setId(EmptyParam id) { } /** - * An optional field to specify the version of Settings to use. If not provided, this will - * always default to the {@code live_version} specified on the setting, any time the - * settings are used. Using a specific version here will prevent the settings from updating, - * and is discouraged for cadences. To clear a pinned version, set the version to null. + * An optional field to specify the version of Settings to use. If not provided, this + * defaults to the {@code live_version} specified on the setting, any time the settings are + * used. Using a specific version here prevents the settings from updating, and is + * discouraged for cadences. To clear a pinned version, set the version to null. */ public Builder setVersion(String version) { this.version = version; @@ -484,10 +484,10 @@ public Builder setVersion(String version) { } /** - * An optional field to specify the version of Settings to use. If not provided, this will - * always default to the {@code live_version} specified on the setting, any time the - * settings are used. Using a specific version here will prevent the settings from updating, - * and is discouraged for cadences. To clear a pinned version, set the version to null. + * An optional field to specify the version of Settings to use. If not provided, this + * defaults to the {@code live_version} specified on the setting, any time the settings are + * used. Using a specific version here prevents the settings from updating, and is + * discouraged for cadences. To clear a pinned version, set the version to null. */ public Builder setVersion(EmptyParam version) { this.version = version; @@ -513,10 +513,10 @@ public static class Collection { Object id; /** - * An optional field to specify the version of Settings to use. If not provided, this will - * always default to the {@code live_version} specified on the setting, any time the settings - * are used. Using a specific version here will prevent the settings from updating, and is - * discouraged for cadences. To clear a pinned version, set the version to null. + * An optional field to specify the version of Settings to use. If not provided, this defaults + * to the {@code live_version} specified on the setting, any time the settings are used. Using + * a specific version here prevents the settings from updating, and is discouraged for + * cadences. To clear a pinned version, set the version to null. */ @SerializedName("version") Object version; @@ -585,10 +585,10 @@ public Builder setId(EmptyParam id) { } /** - * An optional field to specify the version of Settings to use. If not provided, this will - * always default to the {@code live_version} specified on the setting, any time the - * settings are used. Using a specific version here will prevent the settings from updating, - * and is discouraged for cadences. To clear a pinned version, set the version to null. + * An optional field to specify the version of Settings to use. If not provided, this + * defaults to the {@code live_version} specified on the setting, any time the settings are + * used. Using a specific version here prevents the settings from updating, and is + * discouraged for cadences. To clear a pinned version, set the version to null. */ public Builder setVersion(String version) { this.version = version; @@ -596,10 +596,10 @@ public Builder setVersion(String version) { } /** - * An optional field to specify the version of Settings to use. If not provided, this will - * always default to the {@code live_version} specified on the setting, any time the - * settings are used. Using a specific version here will prevent the settings from updating, - * and is discouraged for cadences. To clear a pinned version, set the version to null. + * An optional field to specify the version of Settings to use. If not provided, this + * defaults to the {@code live_version} specified on the setting, any time the settings are + * used. Using a specific version here prevents the settings from updating, and is + * discouraged for cadences. To clear a pinned version, set the version to null. */ public Builder setVersion(EmptyParam version) { this.version = version; diff --git a/src/main/java/com/stripe/param/v2/billing/CollectionSettingCreateParams.java b/src/main/java/com/stripe/param/v2/billing/CollectionSettingCreateParams.java index 0ffa91e4a36..32dfaca1813 100644 --- a/src/main/java/com/stripe/param/v2/billing/CollectionSettingCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CollectionSettingCreateParams.java @@ -16,9 +16,9 @@ @EqualsAndHashCode(callSuper = false) public class CollectionSettingCreateParams extends ApiRequestParams { /** - * 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. */ @SerializedName("collection_method") @@ -111,10 +111,10 @@ public CollectionSettingCreateParams build() { } /** - * 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. Defaults to automatic. + * 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. */ public Builder setCollectionMethod( CollectionSettingCreateParams.CollectionMethod collectionMethod) { diff --git a/src/main/java/com/stripe/param/v2/billing/CollectionSettingUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/CollectionSettingUpdateParams.java index 12c0d568e2f..9c520c61bf6 100644 --- a/src/main/java/com/stripe/param/v2/billing/CollectionSettingUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CollectionSettingUpdateParams.java @@ -17,9 +17,9 @@ @EqualsAndHashCode(callSuper = false) public class CollectionSettingUpdateParams extends ApiRequestParams { /** - * 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. */ @SerializedName("collection_method") CollectionMethod collectionMethod; @@ -46,9 +46,9 @@ public class CollectionSettingUpdateParams extends ApiRequestParams { /** * Optionally change the live version of the CollectionSetting. Billing Cadences and other objects - * that refer to this CollectionSetting will use this version when no overrides are set. Providing - * {@code live_version = "latest"} will set the CollectionSetting's {@code live_version} to its - * latest version. + * that refer to this CollectionSetting uses this version when no overrides are set. Providing + * {@code live_version = "latest"} sets the CollectionSetting's {@code live_version} to its latest + * version. */ @SerializedName("live_version") Object liveVersion; @@ -125,10 +125,9 @@ public CollectionSettingUpdateParams build() { } /** - * 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. */ public Builder setCollectionMethod( CollectionSettingUpdateParams.CollectionMethod collectionMethod) { @@ -188,9 +187,9 @@ public Builder putAllExtraParam(Map map) { /** * Optionally change the live version of the CollectionSetting. Billing Cadences and other - * objects that refer to this CollectionSetting will use this version when no overrides are set. - * Providing {@code live_version = "latest"} will set the CollectionSetting's {@code - * live_version} to its latest version. + * objects that refer to this CollectionSetting uses this version when no overrides are set. + * Providing {@code live_version = "latest"} sets the CollectionSetting's {@code live_version} + * to its latest version. */ public Builder setLiveVersion(String liveVersion) { this.liveVersion = liveVersion; @@ -199,9 +198,9 @@ public Builder setLiveVersion(String liveVersion) { /** * Optionally change the live version of the CollectionSetting. Billing Cadences and other - * objects that refer to this CollectionSetting will use this version when no overrides are set. - * Providing {@code live_version = "latest"} will set the CollectionSetting's {@code - * live_version} to its latest version. + * objects that refer to this CollectionSetting uses this version when no overrides are set. + * Providing {@code live_version = "latest"} sets the CollectionSetting's {@code live_version} + * to its latest version. */ public Builder setLiveVersion(EmptyParam liveVersion) { this.liveVersion = liveVersion; diff --git a/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitCreateParams.java b/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitCreateParams.java index ddd5ddcf177..e2ec24517dd 100644 --- a/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitCreateParams.java @@ -12,8 +12,8 @@ @EqualsAndHashCode(callSuper = false) public class CustomPricingUnitCreateParams extends ApiRequestParams { /** - * Required. Description that customers will see in the invoice line item. - * Maximum length of 10 characters. + * Required. Description that customers see in the invoice line item. Maximum + * length of 10 characters. */ @SerializedName("display_name") String displayName; @@ -73,8 +73,8 @@ public CustomPricingUnitCreateParams build() { } /** - * Required. Description that customers will see in the invoice line item. - * Maximum length of 10 characters. + * Required. Description that customers see in the invoice line item. Maximum + * length of 10 characters. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; diff --git a/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitUpdateParams.java index f0d22673a5f..0ce6196b6ba 100644 --- a/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitUpdateParams.java @@ -16,7 +16,7 @@ public class CustomPricingUnitUpdateParams extends ApiRequestParams { @SerializedName("active") Boolean active; - /** Description that customers will see in the invoice line item. */ + /** Description that customers see in the invoice line item. */ @SerializedName("display_name") Object displayName; @@ -77,13 +77,13 @@ public Builder setActive(Boolean active) { return this; } - /** Description that customers will see in the invoice line item. */ + /** Description that customers see in the invoice line item. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; return this; } - /** Description that customers will see in the invoice line item. */ + /** Description that customers see in the invoice line item. */ public Builder setDisplayName(EmptyParam displayName) { this.displayName = displayName; return this; diff --git a/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java b/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java index 083cc344ed7..4b52bfebb39 100644 --- a/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java @@ -305,7 +305,7 @@ public static class Apply { @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; @@ -381,7 +381,7 @@ public Builder setDiscount(IntentCreateParams.Action.Apply.Discount discount) { return this; } - /** 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. */ public Builder setEffectiveAt(IntentCreateParams.Action.Apply.EffectiveAt effectiveAt) { this.effectiveAt = effectiveAt; return this; @@ -565,13 +565,13 @@ public static class EffectiveAt { Map extraParams; /** - * 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; - /** Required. When the apply action will take effect. */ + /** Required. When the apply action takes effect. */ @SerializedName("type") Type type; @@ -627,7 +627,7 @@ public Builder putAllExtraParam(Map map) { } /** - * The timestamp at which the apply action will take effect. Only present if type is + * The timestamp at which the apply action takes effect. Only present if type is * timestamp. Only allowed for discount actions. */ public Builder setTimestamp(Instant timestamp) { @@ -635,7 +635,7 @@ public Builder setTimestamp(Instant timestamp) { return this; } - /** Required. When the apply action will take effect. */ + /** Required. When the apply action takes effect. */ public Builder setType(IntentCreateParams.Action.Apply.EffectiveAt.Type type) { this.type = type; return this; @@ -798,8 +798,8 @@ public static class PercentOff { MaximumApplications maximumApplications; /** - * Required. Percent that will be taken off of the amount. For example, - * percent_off of 50.0 will make $100 amount $50 instead. + * Required. 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; @@ -872,8 +872,8 @@ public Builder setMaximumApplications( } /** - * Required. Percent that will be taken off of the amount. For example, - * percent_off of 50.0 will make $100 amount $50 instead. + * Required. Percent that is taken off the amount. For example, a + * percent_off of 50.0 reduces a 100 USD amount to 50 USD. */ public Builder setPercentOff(BigDecimal percentOff) { this.percentOff = percentOff; @@ -1539,14 +1539,13 @@ public static class Deactivate { CancellationDetails cancellationDetails; /** - * When the invoice will be collected. If not specified, the default behavior is - * on_effective_at. + * When the invoice is collected. If not specified, the default behavior is on_effective_at. */ @SerializedName("collect_at") CollectAt 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") @@ -1620,8 +1619,7 @@ public Builder setCancellationDetails( } /** - * When the invoice will be collected. If not specified, the default behavior is - * on_effective_at. + * When the invoice is collected. If not specified, the default behavior is on_effective_at. */ public Builder setCollectAt(IntentCreateParams.Action.Deactivate.CollectAt collectAt) { this.collectAt = collectAt; @@ -1629,7 +1627,7 @@ public Builder setCollectAt(IntentCreateParams.Action.Deactivate.CollectAt colle } /** - * 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. */ public Builder setEffectiveAt( @@ -1828,13 +1826,13 @@ public static class EffectiveAt { Map extraParams; /** - * 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; - /** Required. When the deactivate action will take effect. */ + /** Required. When the deactivate action takes effect. */ @SerializedName("type") Type type; @@ -1890,7 +1888,7 @@ public Builder putAllExtraParam(Map map) { } /** - * 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. */ public Builder setTimestamp(Instant timestamp) { @@ -1898,7 +1896,7 @@ public Builder setTimestamp(Instant timestamp) { return this; } - /** Required. When the deactivate action will take effect. */ + /** Required. When the deactivate action takes effect. */ public Builder setType(IntentCreateParams.Action.Deactivate.EffectiveAt.Type type) { this.type = type; return this; @@ -2398,15 +2396,13 @@ public enum Type implements ApiRequestParams.EnumParam { @EqualsAndHashCode(callSuper = false) public static class Modify { /** - * When the invoice will be collected. If not specified, the default behavior is - * next_billing_date. + * When the invoice is collected. If not specified, the default behavior is next_billing_date. */ @SerializedName("collect_at") CollectAt 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; @@ -2467,7 +2463,7 @@ public IntentCreateParams.Action.Modify build() { } /** - * When the invoice will be collected. If not specified, the default behavior is + * When the invoice is collected. If not specified, the default behavior is * next_billing_date. */ public Builder setCollectAt(IntentCreateParams.Action.Modify.CollectAt collectAt) { @@ -2476,7 +2472,7 @@ public Builder setCollectAt(IntentCreateParams.Action.Modify.CollectAt collectAt } /** - * When the modify action will take effect. If not specified, the default behavior is + * When the modify action takes effect. If not specified, the default behavior is * on_reserve. */ public Builder setEffectiveAt(IntentCreateParams.Action.Modify.EffectiveAt effectiveAt) { @@ -2541,13 +2537,12 @@ public static class EffectiveAt { Map extraParams; /** - * 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; - /** Required. When the modify action will take effect. */ + /** Required. When the modify action takes effect. */ @SerializedName("type") Type type; @@ -2603,7 +2598,7 @@ public Builder putAllExtraParam(Map map) { } /** - * The timestamp at which the modify action will take effect. Only present if type is + * The timestamp at which the modify action takes effect. Only present if type is * timestamp. */ public Builder setTimestamp(Instant timestamp) { @@ -2611,7 +2606,7 @@ public Builder setTimestamp(Instant timestamp) { return this; } - /** Required. When the modify action will take effect. */ + /** Required. When the modify action takes effect. */ public Builder setType(IntentCreateParams.Action.Modify.EffectiveAt.Type type) { this.type = type; return this; @@ -3469,7 +3464,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) public static class Remove { - /** 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; @@ -3532,7 +3527,7 @@ public IntentCreateParams.Action.Remove build() { this.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. */ public Builder setEffectiveAt(IntentCreateParams.Action.Remove.EffectiveAt effectiveAt) { this.effectiveAt = effectiveAt; return this; @@ -3598,7 +3593,7 @@ public static class EffectiveAt { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. When the remove action will take effect. */ + /** Required. When the remove action takes effect. */ @SerializedName("type") Type type; @@ -3649,7 +3644,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. When the remove action will take effect. */ + /** Required. When the remove action takes effect. */ public Builder setType(IntentCreateParams.Action.Remove.EffectiveAt.Type type) { this.type = type; return this; @@ -3691,12 +3686,12 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) public static class Subscribe { - /** When the invoice will be collected. If not specified, defaults to on_effective_at. */ + /** When the invoice is collected. If not specified, defaults to on_effective_at. */ @SerializedName("collect_at") CollectAt collectAt; /** - * When the subscribe action will take effect. If not specified, the default behavior is + * When the subscribe action takes effect. If not specified, the default behavior is * on_reserve. */ @SerializedName("effective_at") @@ -3766,14 +3761,14 @@ public IntentCreateParams.Action.Subscribe build() { this.v1SubscriptionDetails); } - /** When the invoice will be collected. If not specified, defaults to on_effective_at. */ + /** When the invoice is collected. If not specified, defaults to on_effective_at. */ public Builder setCollectAt(IntentCreateParams.Action.Subscribe.CollectAt collectAt) { this.collectAt = collectAt; return this; } /** - * When the subscribe action will take effect. If not specified, the default behavior is + * When the subscribe action takes effect. If not specified, the default behavior is * on_reserve. */ public Builder setEffectiveAt(IntentCreateParams.Action.Subscribe.EffectiveAt effectiveAt) { @@ -3845,13 +3840,13 @@ public static class EffectiveAt { Map extraParams; /** - * 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; - /** Required. When the subscribe action will take effect. */ + /** Required. When the subscribe action takes effect. */ @SerializedName("type") Type type; @@ -3907,7 +3902,7 @@ public Builder putAllExtraParam(Map map) { } /** - * 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. */ public Builder setTimestamp(Instant timestamp) { @@ -3915,7 +3910,7 @@ public Builder setTimestamp(Instant timestamp) { return this; } - /** Required. When the subscribe action will take effect. */ + /** Required. When the subscribe action takes effect. */ public Builder setType(IntentCreateParams.Action.Subscribe.EffectiveAt.Type type) { this.type = type; return this; @@ -5197,8 +5192,8 @@ public static class BillingCycle { /** * The number of intervals (specified in the interval attribute) between cadence billings. For - * example, type=month and interval_count=3 bills every 3 months. If this is not provided, it - * will default to 1. + * example, type=month and interval_count=3 bills every 3 months. If not provided, this + * defaults to 1. */ @SerializedName("interval_count") Long intervalCount; @@ -5303,8 +5298,8 @@ public Builder putAllExtraParam(Map map) { /** * The number of intervals (specified in the interval attribute) between cadence billings. - * For example, type=month and interval_count=3 bills every 3 months. If this is not - * provided, it will default to 1. + * For example, type=month and interval_count=3 bills every 3 months. If not provided, this + * defaults to 1. */ public Builder setIntervalCount(Long intervalCount) { this.intervalCount = intervalCount; @@ -5351,7 +5346,7 @@ public static class Day { /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ @SerializedName("time") Time time; @@ -5405,7 +5400,7 @@ public Builder putAllExtraParam(Map map) { /** * The time at which the billing cycle ends. This field is optional, and if not provided, - * it will default to the time at which the cadence was created in UTC timezone. + * it defaults to the time at which the cadence was created in UTC timezone. */ public Builder setTime(IntentCreateParams.CadenceData.BillingCycle.Day.Time time) { this.time = time; @@ -5539,8 +5534,8 @@ public static class Month { /** * Required. 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. If not provided, this will - * default to the day the cadence was created. + * being billed, this anchors to the last day of the month. If not provided, this defaults + * to the day the cadence was created. */ @SerializedName("day_of_month") Long dayOfMonth; @@ -5557,16 +5552,16 @@ public static class Month { /** * The month to anchor the billing on for a type="month" billing cycle from 1-12. - * If not provided, this will default to the month the cadence was created. This setting can + * If not provided, this defaults to the month the cadence was created. This setting can * only be used for monthly billing cycles with {@code interval_count} of 2, 3, 4 or 6. All - * occurrences will be calculated from month provided. + * occurrences are calculated from the month provided. */ @SerializedName("month_of_year") Long monthOfYear; /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ @SerializedName("time") Time time; @@ -5601,8 +5596,8 @@ public IntentCreateParams.CadenceData.BillingCycle.Month build() { /** * Required. 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. If not provided, this will default to the day the cadence was created. + * number of days in the month being billed, this anchors to the last day of the month. If + * not provided, this defaults to the day the cadence was created. */ public Builder setDayOfMonth(Long dayOfMonth) { this.dayOfMonth = dayOfMonth; @@ -5639,9 +5634,9 @@ public Builder putAllExtraParam(Map map) { /** * The month to anchor the billing on for a type="month" billing cycle from - * 1-12. If not provided, this will default to the month the cadence was created. This - * setting can only be used for monthly billing cycles with {@code interval_count} of 2, - * 3, 4 or 6. All occurrences will be calculated from month provided. + * 1-12. If not provided, this defaults to the month the cadence was created. This setting + * can only be used for monthly billing cycles with {@code interval_count} of 2, 3, 4 or + * 6. All occurrences are calculated from the month provided. */ public Builder setMonthOfYear(Long monthOfYear) { this.monthOfYear = monthOfYear; @@ -5650,7 +5645,7 @@ public Builder setMonthOfYear(Long monthOfYear) { /** * The time at which the billing cycle ends. This field is optional, and if not provided, - * it will default to the time at which the cadence was created in UTC timezone. + * it defaults to the time at which the cadence was created in UTC timezone. */ public Builder setTime(IntentCreateParams.CadenceData.BillingCycle.Month.Time time) { this.time = time; @@ -5784,7 +5779,7 @@ public static class Week { /** * Required. The day of the week to bill the type=week billing cycle on. * Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601 week day - * numbering. If not provided, this will default to the day the cadence was created. + * numbering. If not provided, this defaults to the day the cadence was created. */ @SerializedName("day_of_week") Long dayOfWeek; @@ -5801,7 +5796,7 @@ public static class Week { /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ @SerializedName("time") Time time; @@ -5832,7 +5827,7 @@ public IntentCreateParams.CadenceData.BillingCycle.Week build() { /** * Required. The day of the week to bill the type=week billing cycle on. * Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601 week day - * numbering. If not provided, this will default to the day the cadence was created. + * numbering. If not provided, this defaults to the day the cadence was created. */ public Builder setDayOfWeek(Long dayOfWeek) { this.dayOfWeek = dayOfWeek; @@ -5869,7 +5864,7 @@ public Builder putAllExtraParam(Map map) { /** * The time at which the billing cycle ends. This field is optional, and if not provided, - * it will default to the time at which the cadence was created in UTC timezone. + * it defaults to the time at which the cadence was created in UTC timezone. */ public Builder setTime(IntentCreateParams.CadenceData.BillingCycle.Week.Time time) { this.time = time; @@ -6002,9 +5997,9 @@ public Builder setSecond(Long second) { public static class Year { /** * 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. If not provided, this will default to the day the - * cadence was created. + * this number is greater than the number of days in the month being billed, this anchors to + * the last day of the month. If not provided, this defaults to the day the cadence was + * created. */ @SerializedName("day_of_month") Long dayOfMonth; @@ -6020,15 +6015,15 @@ public static class Year { Map extraParams; /** - * 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; /** * The time at which the billing cycle ends. This field is optional, and if not provided, it - * will default to the time at which the cadence was created in UTC timezone. + * defaults to the time at which the cadence was created in UTC timezone. */ @SerializedName("time") Time time; @@ -6062,8 +6057,8 @@ public IntentCreateParams.CadenceData.BillingCycle.Year build() { /** * 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. If not provided, this will default to the day the + * If this number is greater than the number of days in the month being billed, this + * anchors to the last day of the month. If not provided, this defaults to the day the * cadence was created. */ public Builder setDayOfMonth(Long dayOfMonth) { @@ -6100,8 +6095,8 @@ public Builder putAllExtraParam(Map map) { } /** - * 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. */ public Builder setMonthOfYear(Long monthOfYear) { this.monthOfYear = monthOfYear; @@ -6110,7 +6105,7 @@ public Builder setMonthOfYear(Long monthOfYear) { /** * The time at which the billing cycle ends. This field is optional, and if not provided, - * it will default to the time at which the cadence was created in UTC timezone. + * it defaults to the time at which the cadence was created in UTC timezone. */ public Builder setTime(IntentCreateParams.CadenceData.BillingCycle.Year.Time time) { this.time = time; @@ -6263,7 +6258,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) public static class Payer { - /** 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; @@ -6306,7 +6301,7 @@ public IntentCreateParams.CadenceData.Payer build() { this.billingProfile, this.billingProfileData, this.extraParams); } - /** 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. */ public Builder setBillingProfile(String billingProfile) { this.billingProfile = billingProfile; return this; @@ -6357,8 +6352,8 @@ public static class BillingProfileData { /** * The default payment method to use when billing this profile. If left blank, the {@code - * PaymentMethod} from the {@code PaymentIntent} provided on commit will be used to create - * the profile. + * PaymentMethod} from the {@code PaymentIntent} provided on commit is used to create the + * profile. */ @SerializedName("default_payment_method") String defaultPaymentMethod; @@ -6405,8 +6400,8 @@ public Builder setCustomer(String customer) { /** * The default payment method to use when billing this profile. If left blank, the {@code - * PaymentMethod} from the {@code PaymentIntent} provided on commit will be used to create - * the profile. + * PaymentMethod} from the {@code PaymentIntent} provided on commit is used to create the + * profile. */ public Builder setDefaultPaymentMethod(String defaultPaymentMethod) { this.defaultPaymentMethod = defaultPaymentMethod; @@ -6568,7 +6563,7 @@ public static class Bill { /** * An optional field to specify the version of the Settings to use. If not provided, this - * will always default to the live version any time the settings are used. + * defaults to the live version any time the settings are used. */ @SerializedName("version") String version; @@ -6632,7 +6627,7 @@ public Builder setId(String id) { /** * An optional field to specify the version of the Settings to use. If not provided, this - * will always default to the live version any time the settings are used. + * defaults to the live version any time the settings are used. */ public Builder setVersion(String version) { this.version = version; @@ -6660,7 +6655,7 @@ public static class Collection { /** * An optional field to specify the version of the Settings to use. If not provided, this - * will always default to the live version any time the settings are used. + * defaults to the live version any time the settings are used. */ @SerializedName("version") String version; @@ -6724,7 +6719,7 @@ public Builder setId(String id) { /** * An optional field to specify the version of the Settings to use. If not provided, this - * will always default to the live version any time the settings are used. + * defaults to the live version any time the settings are used. */ public Builder setVersion(String version) { this.version = version; diff --git a/src/main/java/com/stripe/param/v2/billing/LicenseFeeCreateParams.java b/src/main/java/com/stripe/param/v2/billing/LicenseFeeCreateParams.java index 2a9620309ba..65e97533e28 100644 --- a/src/main/java/com/stripe/param/v2/billing/LicenseFeeCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/LicenseFeeCreateParams.java @@ -61,33 +61,32 @@ public class LicenseFeeCreateParams extends ApiRequestParams { /** * Required. The interval for assessing service. For example, a monthly license - * fee 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. + * fee 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. */ @SerializedName("service_interval") ServiceInterval serviceInterval; /** * Required. 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. + * this to 3 and {@code service_interval} to {@code "month"} to specify quarterly service. */ @SerializedName("service_interval_count") Long serviceIntervalCount; /** - * Required. The Stripe Tax tax behavior - whether the license fee is inclusive - * or exclusive of tax. + * Required. The tax behavior for Stripe Tax — whether the license fee price + * includes or excludes tax. */ @SerializedName("tax_behavior") TaxBehavior taxBehavior; /** - * Defines whether the tiered 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 tiered 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. */ @SerializedName("tiering_mode") @@ -277,9 +276,9 @@ public Builder putAllMetadata(Map map) { /** * Required. The interval for assessing service. For example, a monthly license - * fee 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 + * fee 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. */ @@ -290,8 +289,7 @@ public Builder setServiceInterval(LicenseFeeCreateParams.ServiceInterval service /** * Required. 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. + * this to 3 and {@code service_interval} to {@code "month"} to specify quarterly service. */ public Builder setServiceIntervalCount(Long serviceIntervalCount) { this.serviceIntervalCount = serviceIntervalCount; @@ -299,8 +297,8 @@ public Builder setServiceIntervalCount(Long serviceIntervalCount) { } /** - * Required. The Stripe Tax tax behavior - whether the license fee is inclusive - * or exclusive of tax. + * Required. The tax behavior for Stripe Tax — whether the license fee price + * includes or excludes tax. */ public Builder setTaxBehavior(LicenseFeeCreateParams.TaxBehavior taxBehavior) { this.taxBehavior = taxBehavior; @@ -308,10 +306,10 @@ public Builder setTaxBehavior(LicenseFeeCreateParams.TaxBehavior taxBehavior) { } /** - * Defines whether the tiered 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 pricing changes as the quantity grows into new tiers. Can only be set if {@code - * tiers} is set. + * Defines whether the tiered 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. */ public Builder setTieringMode(LicenseFeeCreateParams.TieringMode tieringMode) { this.tieringMode = tieringMode; @@ -391,8 +389,8 @@ public static class Tier { 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; @@ -483,7 +481,7 @@ public Builder setUnitAmount(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. */ public Builder setUpToDecimal(BigDecimal upToDecimal) { diff --git a/src/main/java/com/stripe/param/v2/billing/LicenseFeeUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/LicenseFeeUpdateParams.java index bde2a29bdd9..3b3b13077e7 100644 --- a/src/main/java/com/stripe/param/v2/billing/LicenseFeeUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/LicenseFeeUpdateParams.java @@ -35,8 +35,8 @@ public class LicenseFeeUpdateParams extends ApiRequestParams { Map extraParams; /** - * Changes the version that new license fee will use. Providing {@code live_version = "latest"} - * will set the license fee's {@code live_version} to its latest version. + * Changes the version that new license fee activations use. Providing {@code live_version = + * "latest"} sets the license fee's {@code live_version} to its latest version. */ @SerializedName("live_version") Object liveVersion; @@ -57,8 +57,8 @@ public class LicenseFeeUpdateParams extends ApiRequestParams { Map metadata; /** - * Defines whether the tiered 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 tiered 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. */ @SerializedName("tiering_mode") @@ -187,8 +187,8 @@ public Builder putAllExtraParam(Map map) { } /** - * Changes the version that new license fee will use. Providing {@code live_version = "latest"} - * will set the license fee's {@code live_version} to its latest version. + * Changes the version that new license fee activations use. Providing {@code live_version = + * "latest"} sets the license fee's {@code live_version} to its latest version. */ public Builder setLiveVersion(String liveVersion) { this.liveVersion = liveVersion; @@ -196,8 +196,8 @@ public Builder setLiveVersion(String liveVersion) { } /** - * Changes the version that new license fee will use. Providing {@code live_version = "latest"} - * will set the license fee's {@code live_version} to its latest version. + * Changes the version that new license fee activations use. Providing {@code live_version = + * "latest"} sets the license fee's {@code live_version} to its latest version. */ public Builder setLiveVersion(EmptyParam liveVersion) { this.liveVersion = liveVersion; @@ -267,10 +267,10 @@ public Builder putAllMetadata(Map map) { } /** - * Defines whether the tiered 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 pricing changes as the quantity grows into new tiers. Can only be set if {@code - * tiers} is set. + * Defines whether the tiered 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. */ public Builder setTieringMode(LicenseFeeUpdateParams.TieringMode tieringMode) { this.tieringMode = tieringMode; @@ -359,8 +359,8 @@ public static class Tier { Object 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") Object upToDecimal; @@ -469,7 +469,7 @@ public Builder setUnitAmount(EmptyParam 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. */ public Builder setUpToDecimal(BigDecimal upToDecimal) { @@ -478,7 +478,7 @@ public Builder setUpToDecimal(BigDecimal upToDecimal) { } /** - * 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. */ public Builder setUpToDecimal(EmptyParam upToDecimal) { diff --git a/src/main/java/com/stripe/param/v2/billing/LicensedItemCreateParams.java b/src/main/java/com/stripe/param/v2/billing/LicensedItemCreateParams.java index 7a8d2be36ba..3089aad9884 100644 --- a/src/main/java/com/stripe/param/v2/billing/LicensedItemCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/LicensedItemCreateParams.java @@ -12,8 +12,8 @@ @EqualsAndHashCode(callSuper = false) public class LicensedItemCreateParams extends ApiRequestParams { /** - * Required. Description that customers will see in the invoice line item. - * Maximum length of 250 characters. + * Required. Description that customers see in the invoice line item. Maximum + * length of 250 characters. */ @SerializedName("display_name") String displayName; @@ -99,8 +99,8 @@ public LicensedItemCreateParams build() { } /** - * Required. Description that customers will see in the invoice line item. - * Maximum length of 250 characters. + * Required. Description that customers see in the invoice line item. Maximum + * length of 250 characters. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; diff --git a/src/main/java/com/stripe/param/v2/billing/LicensedItemUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/LicensedItemUpdateParams.java index 730c53c18f1..d2662665122 100644 --- a/src/main/java/com/stripe/param/v2/billing/LicensedItemUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/LicensedItemUpdateParams.java @@ -12,9 +12,7 @@ @Getter @EqualsAndHashCode(callSuper = false) public class LicensedItemUpdateParams extends ApiRequestParams { - /** - * 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") Object displayName; @@ -99,8 +97,7 @@ public LicensedItemUpdateParams build() { } /** - * 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. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; @@ -108,8 +105,7 @@ public Builder setDisplayName(String displayName) { } /** - * 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. */ public Builder setDisplayName(EmptyParam displayName) { this.displayName = displayName; diff --git a/src/main/java/com/stripe/param/v2/billing/MeterEventAdjustmentCreateParams.java b/src/main/java/com/stripe/param/v2/billing/MeterEventAdjustmentCreateParams.java index 60fac7a0f06..9f92ba5a7dc 100644 --- a/src/main/java/com/stripe/param/v2/billing/MeterEventAdjustmentCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/MeterEventAdjustmentCreateParams.java @@ -32,8 +32,8 @@ public class MeterEventAdjustmentCreateParams extends ApiRequestParams { Map extraParams; /** - * Required. Specifies whether to cancel a single event or a range of events for - * a time period. Time period cancellation is not supported yet. + * Required. Specifies the type of cancellation. Currently supports canceling a + * single event. */ @SerializedName("type") Type type; @@ -107,8 +107,8 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. Specifies whether to cancel a single event or a range of events - * for a time period. Time period cancellation is not supported yet. + * Required. Specifies the type of cancellation. Currently supports canceling a + * single event. */ public Builder setType(MeterEventAdjustmentCreateParams.Type type) { this.type = type; @@ -129,8 +129,8 @@ public static class Cancel { Map extraParams; /** - * Required. Unique identifier for the event. You can only cancel events within - * 24 hours of Stripe receiving them. + * Required. 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; @@ -182,8 +182,8 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. Unique identifier for the event. You can only cancel events - * within 24 hours of Stripe receiving them. + * Required. The identifier that was originally assigned to the meter event. + * You can only cancel events within 24 hours of Stripe receiving them. */ public Builder setIdentifier(String identifier) { this.identifier = identifier; diff --git a/src/main/java/com/stripe/param/v2/billing/MeteredItemCreateParams.java b/src/main/java/com/stripe/param/v2/billing/MeteredItemCreateParams.java index 29f990f702b..2d04560cd04 100644 --- a/src/main/java/com/stripe/param/v2/billing/MeteredItemCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/MeteredItemCreateParams.java @@ -14,8 +14,8 @@ @EqualsAndHashCode(callSuper = false) public class MeteredItemCreateParams extends ApiRequestParams { /** - * Required. Description that customers will see in the invoice line item. - * Maximum length of 250 characters. + * Required. Description that customers see in the invoice line item. Maximum + * length of 250 characters. */ @SerializedName("display_name") String displayName; @@ -128,8 +128,8 @@ public MeteredItemCreateParams build() { } /** - * Required. Description that customers will see in the invoice line item. - * Maximum length of 250 characters. + * Required. Description that customers see in the invoice line item. Maximum + * length of 250 characters. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; diff --git a/src/main/java/com/stripe/param/v2/billing/MeteredItemUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/MeteredItemUpdateParams.java index 313f2feb53c..c3f4b201bfe 100644 --- a/src/main/java/com/stripe/param/v2/billing/MeteredItemUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/MeteredItemUpdateParams.java @@ -12,9 +12,7 @@ @Getter @EqualsAndHashCode(callSuper = false) public class MeteredItemUpdateParams extends ApiRequestParams { - /** - * 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") Object displayName; @@ -100,8 +98,7 @@ public MeteredItemUpdateParams build() { } /** - * 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. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; @@ -109,8 +106,7 @@ public Builder setDisplayName(String displayName) { } /** - * 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. */ public Builder setDisplayName(EmptyParam displayName) { this.displayName = displayName; diff --git a/src/main/java/com/stripe/param/v2/billing/OneTimeItemCreateParams.java b/src/main/java/com/stripe/param/v2/billing/OneTimeItemCreateParams.java index 832518f1e90..4d859bb7bc4 100644 --- a/src/main/java/com/stripe/param/v2/billing/OneTimeItemCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/OneTimeItemCreateParams.java @@ -12,8 +12,8 @@ @EqualsAndHashCode(callSuper = false) public class OneTimeItemCreateParams extends ApiRequestParams { /** - * Required. Description that customers will see in the invoice line item. - * Maximum length of 250 characters. + * Required. Description that customers see in the invoice line item. Maximum + * length of 250 characters. */ @SerializedName("display_name") String displayName; @@ -98,8 +98,8 @@ public OneTimeItemCreateParams build() { } /** - * Required. Description that customers will see in the invoice line item. - * Maximum length of 250 characters. + * Required. Description that customers see in the invoice line item. Maximum + * length of 250 characters. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; diff --git a/src/main/java/com/stripe/param/v2/billing/OneTimeItemUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/OneTimeItemUpdateParams.java index ab1e20f04bd..4e53f2e0e39 100644 --- a/src/main/java/com/stripe/param/v2/billing/OneTimeItemUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/OneTimeItemUpdateParams.java @@ -12,9 +12,7 @@ @Getter @EqualsAndHashCode(callSuper = false) public class OneTimeItemUpdateParams extends ApiRequestParams { - /** - * 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") Object displayName; @@ -98,8 +96,7 @@ public OneTimeItemUpdateParams build() { } /** - * 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. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; @@ -107,8 +104,7 @@ public Builder setDisplayName(String displayName) { } /** - * 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. */ public Builder setDisplayName(EmptyParam displayName) { this.displayName = displayName; diff --git a/src/main/java/com/stripe/param/v2/billing/PricingPlanCreateParams.java b/src/main/java/com/stripe/param/v2/billing/PricingPlanCreateParams.java index 0f06b9196eb..583a6c315e3 100644 --- a/src/main/java/com/stripe/param/v2/billing/PricingPlanCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/PricingPlanCreateParams.java @@ -15,7 +15,7 @@ public class PricingPlanCreateParams extends ApiRequestParams { @SerializedName("currency") String currency; - /** Description of pricing plan subscription. */ + /** Description of the pricing plan. Maximum length of 500 characters. */ @SerializedName("description") String description; @@ -48,8 +48,8 @@ public class PricingPlanCreateParams extends ApiRequestParams { Map metadata; /** - * Required. The Stripe Tax tax behavior - whether the PricingPlan is inclusive - * or exclusive of tax. + * Required. The tax behavior for Stripe Tax — whether the pricing plan price + * includes or excludes tax. */ @SerializedName("tax_behavior") TaxBehavior taxBehavior; @@ -108,7 +108,7 @@ public Builder setCurrency(String currency) { return this; } - /** Description of pricing plan subscription. */ + /** Description of the pricing plan. Maximum length of 500 characters. */ public Builder setDescription(String description) { this.description = description; return this; @@ -182,8 +182,8 @@ public Builder putAllMetadata(Map map) { } /** - * Required. The Stripe Tax tax behavior - whether the PricingPlan is inclusive - * or exclusive of tax. + * Required. The tax behavior for Stripe Tax — whether the pricing plan price + * includes or excludes tax. */ public Builder setTaxBehavior(PricingPlanCreateParams.TaxBehavior taxBehavior) { this.taxBehavior = taxBehavior; diff --git a/src/main/java/com/stripe/param/v2/billing/PricingPlanSubscriptionUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/PricingPlanSubscriptionUpdateParams.java index e83b23f7e0e..cfc8eca6448 100644 --- a/src/main/java/com/stripe/param/v2/billing/PricingPlanSubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/PricingPlanSubscriptionUpdateParams.java @@ -12,9 +12,7 @@ @Getter @EqualsAndHashCode(callSuper = false) public class PricingPlanSubscriptionUpdateParams extends ApiRequestParams { - /** - * When set to true, the {@code servicing_status_transition.will_cancel_at} field will be cleared. - */ + /** When set to true, the {@code servicing_status_transition.will_cancel_at} field is cleared. */ @SerializedName("clear_cancel_at") Boolean clearCancelAt; @@ -60,8 +58,7 @@ public PricingPlanSubscriptionUpdateParams build() { } /** - * When set to true, the {@code servicing_status_transition.will_cancel_at} field will be - * cleared. + * When set to true, the {@code servicing_status_transition.will_cancel_at} field is cleared. */ public Builder setClearCancelAt(Boolean clearCancelAt) { this.clearCancelAt = clearCancelAt; diff --git a/src/main/java/com/stripe/param/v2/billing/PricingPlanUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/PricingPlanUpdateParams.java index 0655af0311b..3fa73906b38 100644 --- a/src/main/java/com/stripe/param/v2/billing/PricingPlanUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/PricingPlanUpdateParams.java @@ -16,7 +16,7 @@ public class PricingPlanUpdateParams extends ApiRequestParams { @SerializedName("active") Boolean active; - /** Description of pricing plan subscription. */ + /** Description of the pricing plan. Maximum length of 500 characters. */ @SerializedName("description") Object description; @@ -102,13 +102,13 @@ public Builder setActive(Boolean active) { return this; } - /** Description of pricing plan subscription. */ + /** Description of the pricing plan. Maximum length of 500 characters. */ public Builder setDescription(String description) { this.description = description; return this; } - /** Description of pricing plan subscription. */ + /** Description of the pricing plan. Maximum length of 500 characters. */ public Builder setDescription(EmptyParam description) { this.description = description; return this; diff --git a/src/main/java/com/stripe/param/v2/billing/ProfileListParams.java b/src/main/java/com/stripe/param/v2/billing/ProfileListParams.java index 07204f7c48b..e991fee13cf 100644 --- a/src/main/java/com/stripe/param/v2/billing/ProfileListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/ProfileListParams.java @@ -49,7 +49,7 @@ public class ProfileListParams extends ApiRequestParams { /** * Filter billing profiles by status. Can be combined with all other filters. If not provided, all - * billing profiles will be returned. + * billing profiles are returned. */ @SerializedName("status") Status status; @@ -175,7 +175,7 @@ public Builder addAllLookupKey(List elements) { /** * Filter billing profiles by status. Can be combined with all other filters. If not provided, - * all billing profiles will be returned. + * all billing profiles are returned. */ public Builder setStatus(ProfileListParams.Status status) { this.status = status; diff --git a/src/main/java/com/stripe/param/v2/billing/RateCardCreateParams.java b/src/main/java/com/stripe/param/v2/billing/RateCardCreateParams.java index 2acb14d96b7..e5c9c540061 100644 --- a/src/main/java/com/stripe/param/v2/billing/RateCardCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/RateCardCreateParams.java @@ -49,9 +49,9 @@ public class RateCardCreateParams extends ApiRequestParams { /** * Required. The interval for assessing service. For example, a monthly RateCard - * 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 + * 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. */ @@ -60,15 +60,14 @@ public class RateCardCreateParams extends ApiRequestParams { /** * Required. 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. + * this to 3 and {@code service_interval} to {@code "month"} to specify quarterly service. */ @SerializedName("service_interval_count") Long serviceIntervalCount; /** - * Required. The Stripe Tax tax behavior - whether the rates are inclusive or - * exclusive of tax. + * Required. The tax behavior for Stripe Tax — whether the rate card price + * includes or excludes tax. */ @SerializedName("tax_behavior") TaxBehavior taxBehavior; @@ -205,11 +204,11 @@ public Builder putAllMetadata(Map map) { /** * Required. The interval for assessing service. For example, a monthly - * RateCard 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. + * RateCard 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. */ public Builder setServiceInterval(RateCardCreateParams.ServiceInterval serviceInterval) { this.serviceInterval = serviceInterval; @@ -218,8 +217,7 @@ public Builder setServiceInterval(RateCardCreateParams.ServiceInterval serviceIn /** * Required. 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. + * this to 3 and {@code service_interval} to {@code "month"} to specify quarterly service. */ public Builder setServiceIntervalCount(Long serviceIntervalCount) { this.serviceIntervalCount = serviceIntervalCount; @@ -227,8 +225,8 @@ public Builder setServiceIntervalCount(Long serviceIntervalCount) { } /** - * Required. The Stripe Tax tax behavior - whether the rates are inclusive or - * exclusive of tax. + * Required. The tax behavior for Stripe Tax — whether the rate card price + * includes or excludes tax. */ public Builder setTaxBehavior(RateCardCreateParams.TaxBehavior taxBehavior) { this.taxBehavior = taxBehavior; diff --git a/src/main/java/com/stripe/param/v2/billing/RateCardModifyRatesParams.java b/src/main/java/com/stripe/param/v2/billing/RateCardModifyRatesParams.java index 0e1c1791ab8..48336c54677 100644 --- a/src/main/java/com/stripe/param/v2/billing/RateCardModifyRatesParams.java +++ b/src/main/java/com/stripe/param/v2/billing/RateCardModifyRatesParams.java @@ -176,10 +176,10 @@ public static class RatesToCreate { MeteredItemData meteredItemData; /** - * Defines whether the tiered 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 pricing changes as the quantity grows into new tiers. Can only be set if {@code - * tiers} is set. + * Defines whether the tiered 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. */ @SerializedName("tiering_mode") TieringMode tieringMode; @@ -328,10 +328,10 @@ public Builder setMeteredItemData( } /** - * Defines whether the tiered 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 pricing changes as the quantity grows into new tiers. Can only be set if - * {@code tiers} is set. + * Defines whether the tiered 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. */ public Builder setTieringMode( RateCardModifyRatesParams.RatesToCreate.TieringMode tieringMode) { @@ -389,8 +389,8 @@ public Builder setUnitAmount(String unitAmount) { @EqualsAndHashCode(callSuper = false) public static class MeteredItemData { /** - * Required. Description that customers will see in the invoice line item. - * Maximum length of 250 characters. + * Required. Description that customers see in the invoice line item. Maximum + * length of 250 characters. */ @SerializedName("display_name") String displayName; @@ -478,7 +478,7 @@ public RateCardModifyRatesParams.RatesToCreate.MeteredItemData build() { } /** - * Required. Description that customers will see in the invoice line item. + * Required. Description that customers see in the invoice line item. * Maximum length of 250 characters. */ public Builder setDisplayName(String displayName) { @@ -698,7 +698,7 @@ public static class Tier { 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") @@ -792,7 +792,7 @@ public Builder setUnitAmount(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. */ public Builder setUpToDecimal(BigDecimal upToDecimal) { diff --git a/src/main/java/com/stripe/param/v2/billing/RateCardUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/RateCardUpdateParams.java index 6820c43f089..7b46f3aa468 100644 --- a/src/main/java/com/stripe/param/v2/billing/RateCardUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/RateCardUpdateParams.java @@ -37,8 +37,8 @@ public class RateCardUpdateParams extends ApiRequestParams { Map extraParams; /** - * Changes the version that new RateCard activations will use. Providing {@code live_version = - * "latest"} will set the RateCard's {@code live_version} to its latest version. + * Changes the version that new RateCard activations use. Providing {@code live_version = + * "latest"} sets the RateCard's {@code live_version} to its latest version. */ @SerializedName("live_version") Object liveVersion; @@ -157,8 +157,8 @@ public Builder putAllExtraParam(Map map) { } /** - * Changes the version that new RateCard activations will use. Providing {@code live_version = - * "latest"} will set the RateCard's {@code live_version} to its latest version. + * Changes the version that new RateCard activations use. Providing {@code live_version = + * "latest"} sets the RateCard's {@code live_version} to its latest version. */ public Builder setLiveVersion(String liveVersion) { this.liveVersion = liveVersion; @@ -166,8 +166,8 @@ public Builder setLiveVersion(String liveVersion) { } /** - * Changes the version that new RateCard activations will use. Providing {@code live_version = - * "latest"} will set the RateCard's {@code live_version} to its latest version. + * Changes the version that new RateCard activations use. Providing {@code live_version = + * "latest"} sets the RateCard's {@code live_version} to its latest version. */ public Builder setLiveVersion(EmptyParam liveVersion) { this.liveVersion = liveVersion; diff --git a/src/main/java/com/stripe/param/v2/billing/ratecards/RateCreateParams.java b/src/main/java/com/stripe/param/v2/billing/ratecards/RateCreateParams.java index e9286bce9c8..9c123e2806d 100644 --- a/src/main/java/com/stripe/param/v2/billing/ratecards/RateCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/ratecards/RateCreateParams.java @@ -45,10 +45,9 @@ public class RateCreateParams extends ApiRequestParams { String meteredItem; /** - * Defines whether the tiered 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 - * pricing changes as the quantity grows into new tiers. One of {@code unit_amount}, {@code - * tiers}, or {@code custom_pricing_unit_amount} is required. + * Defines whether the tiered 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. */ @SerializedName("tiering_mode") TieringMode tieringMode; @@ -197,10 +196,10 @@ public Builder setMeteredItem(String meteredItem) { } /** - * Defines whether the tiered 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 pricing changes as the quantity grows into new tiers. One of {@code - * unit_amount}, {@code tiers}, or {@code custom_pricing_unit_amount} is required. + * Defines whether the tiered 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. */ public Builder setTieringMode(RateCreateParams.TieringMode tieringMode) { this.tieringMode = tieringMode; @@ -363,8 +362,8 @@ public static class Tier { 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; @@ -455,7 +454,7 @@ public Builder setUnitAmount(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. */ public Builder setUpToDecimal(BigDecimal upToDecimal) { diff --git a/src/main/java/com/stripe/param/v2/commerce/productcatalog/ImportCreateParams.java b/src/main/java/com/stripe/param/v2/commerce/productcatalog/ImportCreateParams.java new file mode 100644 index 00000000000..0e2c5950d38 --- /dev/null +++ b/src/main/java/com/stripe/param/v2/commerce/productcatalog/ImportCreateParams.java @@ -0,0 +1,158 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.commerce.productcatalog; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.HashMap; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class ImportCreateParams extends ApiRequestParams { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. The type of catalog data to import. */ + @SerializedName("feed_type") + FeedType feedType; + + /** Required. Additional information about the import in a structured format. */ + @SerializedName("metadata") + Map metadata; + + /** Required. The strategy for handling existing catalog data during import. */ + @SerializedName("mode") + Mode mode; + + private ImportCreateParams( + Map extraParams, FeedType feedType, Map metadata, Mode mode) { + this.extraParams = extraParams; + this.feedType = feedType; + this.metadata = metadata; + this.mode = mode; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private FeedType feedType; + + private Map metadata; + + private Mode mode; + + /** Finalize and obtain parameter instance from this builder. */ + public ImportCreateParams build() { + return new ImportCreateParams(this.extraParams, this.feedType, this.metadata, this.mode); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ImportCreateParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ImportCreateParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. The type of catalog data to import. */ + public Builder setFeedType(ImportCreateParams.FeedType feedType) { + this.feedType = feedType; + return this; + } + + /** + * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, + * and subsequent calls add additional key/value pairs to the original map. See {@link + * ImportCreateParams#metadata} for the field documentation. + */ + public Builder putMetadata(String key, String value) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `metadata` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ImportCreateParams#metadata} for the field documentation. + */ + public Builder putAllMetadata(Map map) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.putAll(map); + return this; + } + + /** Required. The strategy for handling existing catalog data during import. */ + public Builder setMode(ImportCreateParams.Mode mode) { + this.mode = mode; + return this; + } + } + + public enum FeedType implements ApiRequestParams.EnumParam { + @SerializedName("inventory") + INVENTORY("inventory"), + + @SerializedName("pricing") + PRICING("pricing"), + + @SerializedName("product") + PRODUCT("product"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + FeedType(String value) { + this.value = value; + } + } + + public enum Mode implements ApiRequestParams.EnumParam { + @SerializedName("replace") + REPLACE("replace"), + + @SerializedName("upsert") + UPSERT("upsert"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Mode(String value) { + this.value = value; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/commerce/productcatalog/ImportListParams.java b/src/main/java/com/stripe/param/v2/commerce/productcatalog/ImportListParams.java new file mode 100644 index 00000000000..b36fd6a08c0 --- /dev/null +++ b/src/main/java/com/stripe/param/v2/commerce/productcatalog/ImportListParams.java @@ -0,0 +1,260 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.commerce.productcatalog; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.time.Instant; +import java.util.HashMap; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class ImportListParams extends ApiRequestParams { + /** + * Filter for objects created at the specified timestamp. Must be an RFC 3339 date & time + * value, for example: 2022-09-18T13:22:00Z. + */ + @SerializedName("created") + Instant created; + + /** + * Filter for objects created after the specified timestamp. Must be an RFC 3339 date & time + * value, for example: 2022-09-18T13:22:00Z. + */ + @SerializedName("created_gt") + Instant createdGt; + + /** + * Filter for objects created on or after the specified timestamp. Must be an RFC 3339 date & + * time value, for example: 2022-09-18T13:22:00Z. + */ + @SerializedName("created_gte") + Instant createdGte; + + /** + * Filter for objects created before the specified timestamp. Must be an RFC 3339 date & time + * value, for example: 2022-09-18T13:22:00Z. + */ + @SerializedName("created_lt") + Instant createdLt; + + /** + * Filter for objects created on or before the specified timestamp. Must be an RFC 3339 date & + * time value, for example: 2022-09-18T13:22:00Z. + */ + @SerializedName("created_lte") + Instant createdLte; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Filter by the type of feed data being imported. */ + @SerializedName("feed_type") + FeedType feedType; + + /** The maximum number of results per page. */ + @SerializedName("limit") + Long limit; + + /** Filter by import status. */ + @SerializedName("status") + Status status; + + private ImportListParams( + Instant created, + Instant createdGt, + Instant createdGte, + Instant createdLt, + Instant createdLte, + Map extraParams, + FeedType feedType, + Long limit, + Status status) { + this.created = created; + this.createdGt = createdGt; + this.createdGte = createdGte; + this.createdLt = createdLt; + this.createdLte = createdLte; + this.extraParams = extraParams; + this.feedType = feedType; + this.limit = limit; + this.status = status; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Instant created; + + private Instant createdGt; + + private Instant createdGte; + + private Instant createdLt; + + private Instant createdLte; + + private Map extraParams; + + private FeedType feedType; + + private Long limit; + + private Status status; + + /** Finalize and obtain parameter instance from this builder. */ + public ImportListParams build() { + return new ImportListParams( + this.created, + this.createdGt, + this.createdGte, + this.createdLt, + this.createdLte, + this.extraParams, + this.feedType, + this.limit, + this.status); + } + + /** + * Filter for objects created at the specified timestamp. Must be an RFC 3339 date & time + * value, for example: 2022-09-18T13:22:00Z. + */ + public Builder setCreated(Instant created) { + this.created = created; + return this; + } + + /** + * Filter for objects created after the specified timestamp. Must be an RFC 3339 date & time + * value, for example: 2022-09-18T13:22:00Z. + */ + public Builder setCreatedGt(Instant createdGt) { + this.createdGt = createdGt; + return this; + } + + /** + * Filter for objects created on or after the specified timestamp. Must be an RFC 3339 date + * & time value, for example: 2022-09-18T13:22:00Z. + */ + public Builder setCreatedGte(Instant createdGte) { + this.createdGte = createdGte; + return this; + } + + /** + * Filter for objects created before the specified timestamp. Must be an RFC 3339 date & + * time value, for example: 2022-09-18T13:22:00Z. + */ + public Builder setCreatedLt(Instant createdLt) { + this.createdLt = createdLt; + return this; + } + + /** + * Filter for objects created on or before the specified timestamp. Must be an RFC 3339 date + * & time value, for example: 2022-09-18T13:22:00Z. + */ + public Builder setCreatedLte(Instant createdLte) { + this.createdLte = createdLte; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ImportListParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ImportListParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Filter by the type of feed data being imported. */ + public Builder setFeedType(ImportListParams.FeedType feedType) { + this.feedType = feedType; + return this; + } + + /** The maximum number of results per page. */ + public Builder setLimit(Long limit) { + this.limit = limit; + return this; + } + + /** Filter by import status. */ + public Builder setStatus(ImportListParams.Status status) { + this.status = status; + return this; + } + } + + public enum FeedType implements ApiRequestParams.EnumParam { + @SerializedName("inventory") + INVENTORY("inventory"), + + @SerializedName("pricing") + PRICING("pricing"), + + @SerializedName("product") + PRODUCT("product"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + FeedType(String value) { + this.value = value; + } + } + + public enum Status implements ApiRequestParams.EnumParam { + @SerializedName("awaiting_upload") + AWAITING_UPLOAD("awaiting_upload"), + + @SerializedName("failed") + FAILED("failed"), + + @SerializedName("processing") + PROCESSING("processing"), + + @SerializedName("succeeded") + SUCCEEDED("succeeded"), + + @SerializedName("succeeded_with_errors") + SUCCEEDED_WITH_ERRORS("succeeded_with_errors"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Status(String value) { + this.value = value; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java index 3a445207e0b..0cd6fcf0b2f 100644 --- a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java @@ -25434,9 +25434,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("bg_vat") BG_VAT("bg_vat"), + @SerializedName("bm_crn") + BM_CRN("bm_crn"), + + @SerializedName("bo_tin") + BO_TIN("bo_tin"), + @SerializedName("br_cnpj") BR_CNPJ("br_cnpj"), + @SerializedName("bt_tpn") + BT_TPN("bt_tpn"), + @SerializedName("ca_cn") CA_CN("ca_cn"), @@ -25458,6 +25467,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ch_uid") CH_UID("ch_uid"), + @SerializedName("co_nit") + CO_NIT("co_nit"), + @SerializedName("cr_cpj") CR_CPJ("cr_cpj"), @@ -25497,12 +25509,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("do_rcn") DO_RCN("do_rcn"), + @SerializedName("ec_ruc") + EC_RUC("ec_ruc"), + @SerializedName("ee_rk") EE_RK("ee_rk"), @SerializedName("ee_vat") EE_VAT("ee_vat"), + @SerializedName("eg_tin") + EG_TIN("eg_tin"), + @SerializedName("es_cif") ES_CIF("es_cif"), @@ -25530,6 +25548,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gb_vat") GB_VAT("gb_vat"), + @SerializedName("gh_tin") + GH_TIN("gh_tin"), + @SerializedName("gi_crn") GI_CRN("gi_crn"), @@ -25545,12 +25566,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gt_nit") GT_NIT("gt_nit"), + @SerializedName("gy_tin") + GY_TIN("gy_tin"), + @SerializedName("hk_br") HK_BR("hk_br"), @SerializedName("hk_cr") HK_CR("hk_cr"), + @SerializedName("hn_rtn") + HN_RTN("hn_rtn"), + @SerializedName("hr_mbs") HR_MBS("hr_mbs"), @@ -25584,15 +25611,30 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("it_vat") IT_VAT("it_vat"), + @SerializedName("jm_trn") + JM_TRN("jm_trn"), + + @SerializedName("jo_crn") + JO_CRN("jo_crn"), + @SerializedName("jp_cn") JP_CN("jp_cn"), + @SerializedName("ke_pin") + KE_PIN("ke_pin"), + + @SerializedName("ky_crn") + KY_CRN("ky_crn"), + @SerializedName("kz_bin") KZ_BIN("kz_bin"), @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("lk_tin") + LK_TIN("lk_tin"), + @SerializedName("lt_ccrn") LT_CCRN("lt_ccrn"), @@ -25614,6 +25656,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("lv_vat") LV_VAT("lv_vat"), + @SerializedName("mo_tin") + MO_TIN("mo_tin"), + @SerializedName("mt_crn") MT_CRN("mt_crn"), @@ -25623,6 +25668,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("mt_vat") MT_VAT("mt_vat"), + @SerializedName("mv_tin") + MV_TIN("mv_tin"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -25641,6 +25689,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("mz_nuit") MZ_NUIT("mz_nuit"), + @SerializedName("ng_tin") + NG_TIN("ng_tin"), + @SerializedName("nl_kvk") NL_KVK("nl_kvk"), @@ -25659,9 +25710,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("nz_ird") NZ_IRD("nz_ird"), + @SerializedName("pa_ruc") + PA_RUC("pa_ruc"), + @SerializedName("pe_ruc") PE_RUC("pe_ruc"), + @SerializedName("ph_tin") + PH_TIN("ph_tin"), + @SerializedName("pk_ntn") PK_NTN("pk_ntn"), @@ -25677,6 +25734,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("pt_vat") PT_VAT("pt_vat"), + @SerializedName("py_ruc") + PY_RUC("py_ruc"), + @SerializedName("ro_cui") RO_CUI("ro_cui"), @@ -25719,6 +25779,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sk_vat") SK_VAT("sk_vat"), + @SerializedName("sl_tin") + SL_TIN("sl_tin"), + + @SerializedName("sv_nit") + SV_NIT("sv_nit"), + @SerializedName("th_crn") TH_CRN("th_crn"), @@ -25729,7 +25795,16 @@ public enum Type implements ApiRequestParams.EnumParam { TH_TIN("th_tin"), @SerializedName("us_ein") - US_EIN("us_ein"); + US_EIN("us_ein"), + + @SerializedName("uy_ruc") + UY_RUC("uy_ruc"), + + @SerializedName("vg_cn") + VG_CN("vg_cn"), + + @SerializedName("za_tin") + ZA_TIN("za_tin"); @Getter(onMethod_ = {@Override}) private final String value; @@ -28883,12 +28958,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("bg_ucn") BG_UCN("bg_ucn"), + @SerializedName("bm_pp") + BM_PP("bm_pp"), + @SerializedName("bn_nric") BN_NRIC("bn_nric"), + @SerializedName("bo_ci") + BO_CI("bo_ci"), + @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bt_cid") + BT_CID("bt_cid"), + @SerializedName("ca_sin") CA_SIN("ca_sin"), @@ -28940,6 +29024,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ee_ik") EE_IK("ee_ik"), + @SerializedName("eg_tin") + EG_TIN("eg_tin"), + @SerializedName("es_nif") ES_NIF("es_nif"), @@ -28952,15 +29039,24 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gb_nino") GB_NINO("gb_nino"), + @SerializedName("gh_pin") + GH_PIN("gh_pin"), + @SerializedName("gr_afm") GR_AFM("gr_afm"), @SerializedName("gt_nit") GT_NIT("gt_nit"), + @SerializedName("gy_tin") + GY_TIN("gy_tin"), + @SerializedName("hk_id") HK_ID("hk_id"), + @SerializedName("hn_rtn") + HN_RTN("hn_rtn"), + @SerializedName("hr_oib") HR_OIB("hr_oib"), @@ -28979,18 +29075,30 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("it_cf") IT_CF("it_cf"), + @SerializedName("jm_trn") + JM_TRN("jm_trn"), + + @SerializedName("jo_pin") + JO_PIN("jo_pin"), + @SerializedName("jp_inc") JP_INC("jp_inc"), @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("ky_pp") + KY_PP("ky_pp"), + @SerializedName("kz_iin") KZ_IIN("kz_iin"), @SerializedName("li_peid") LI_PEID("li_peid"), + @SerializedName("lk_nic") + LK_NIC("lk_nic"), + @SerializedName("lt_ak") LT_AK("lt_ak"), @@ -29000,6 +29108,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("lv_pk") LV_PK("lv_pk"), + @SerializedName("mo_bir") + MO_BIR("mo_bir"), + + @SerializedName("mt_nic") + MT_NIC("mt_nic"), + + @SerializedName("mv_tin") + MV_TIN("mv_tin"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -29021,9 +29138,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("nz_ird") NZ_IRD("nz_ird"), + @SerializedName("pa_ruc") + PA_RUC("pa_ruc"), + @SerializedName("pe_dni") PE_DNI("pe_dni"), + @SerializedName("ph_tin") + PH_TIN("ph_tin"), + @SerializedName("pk_cnic") PK_CNIC("pk_cnic"), @@ -29036,6 +29159,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("pt_nif") PT_NIF("pt_nif"), + @SerializedName("py_ruc") + PY_RUC("py_ruc"), + @SerializedName("ro_cnp") RO_CNP("ro_cnp"), @@ -29051,9 +29177,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sg_nric") SG_NRIC("sg_nric"), + @SerializedName("si_pin") + SI_PIN("si_pin"), + @SerializedName("sk_dic") SK_DIC("sk_dic"), + @SerializedName("sv_nit") + SV_NIT("sv_nit"), + @SerializedName("th_lc") TH_LC("th_lc"), @@ -29078,6 +29210,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_dni") UY_DNI("uy_dni"), + @SerializedName("vg_pp") + VG_PP("vg_pp"), + @SerializedName("za_id") ZA_ID("za_id"); diff --git a/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java b/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java index ee37187eb92..406a28dfa91 100644 --- a/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java @@ -5619,9 +5619,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("bg_vat") BG_VAT("bg_vat"), + @SerializedName("bm_crn") + BM_CRN("bm_crn"), + + @SerializedName("bo_tin") + BO_TIN("bo_tin"), + @SerializedName("br_cnpj") BR_CNPJ("br_cnpj"), + @SerializedName("bt_tpn") + BT_TPN("bt_tpn"), + @SerializedName("ca_cn") CA_CN("ca_cn"), @@ -5643,6 +5652,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ch_uid") CH_UID("ch_uid"), + @SerializedName("co_nit") + CO_NIT("co_nit"), + @SerializedName("cr_cpj") CR_CPJ("cr_cpj"), @@ -5682,12 +5694,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("do_rcn") DO_RCN("do_rcn"), + @SerializedName("ec_ruc") + EC_RUC("ec_ruc"), + @SerializedName("ee_rk") EE_RK("ee_rk"), @SerializedName("ee_vat") EE_VAT("ee_vat"), + @SerializedName("eg_tin") + EG_TIN("eg_tin"), + @SerializedName("es_cif") ES_CIF("es_cif"), @@ -5715,6 +5733,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gb_vat") GB_VAT("gb_vat"), + @SerializedName("gh_tin") + GH_TIN("gh_tin"), + @SerializedName("gi_crn") GI_CRN("gi_crn"), @@ -5730,12 +5751,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gt_nit") GT_NIT("gt_nit"), + @SerializedName("gy_tin") + GY_TIN("gy_tin"), + @SerializedName("hk_br") HK_BR("hk_br"), @SerializedName("hk_cr") HK_CR("hk_cr"), + @SerializedName("hn_rtn") + HN_RTN("hn_rtn"), + @SerializedName("hr_mbs") HR_MBS("hr_mbs"), @@ -5769,15 +5796,30 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("it_vat") IT_VAT("it_vat"), + @SerializedName("jm_trn") + JM_TRN("jm_trn"), + + @SerializedName("jo_crn") + JO_CRN("jo_crn"), + @SerializedName("jp_cn") JP_CN("jp_cn"), + @SerializedName("ke_pin") + KE_PIN("ke_pin"), + + @SerializedName("ky_crn") + KY_CRN("ky_crn"), + @SerializedName("kz_bin") KZ_BIN("kz_bin"), @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("lk_tin") + LK_TIN("lk_tin"), + @SerializedName("lt_ccrn") LT_CCRN("lt_ccrn"), @@ -5799,6 +5841,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("lv_vat") LV_VAT("lv_vat"), + @SerializedName("mo_tin") + MO_TIN("mo_tin"), + @SerializedName("mt_crn") MT_CRN("mt_crn"), @@ -5808,6 +5853,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("mt_vat") MT_VAT("mt_vat"), + @SerializedName("mv_tin") + MV_TIN("mv_tin"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -5826,6 +5874,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("mz_nuit") MZ_NUIT("mz_nuit"), + @SerializedName("ng_tin") + NG_TIN("ng_tin"), + @SerializedName("nl_kvk") NL_KVK("nl_kvk"), @@ -5844,9 +5895,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("nz_ird") NZ_IRD("nz_ird"), + @SerializedName("pa_ruc") + PA_RUC("pa_ruc"), + @SerializedName("pe_ruc") PE_RUC("pe_ruc"), + @SerializedName("ph_tin") + PH_TIN("ph_tin"), + @SerializedName("pk_ntn") PK_NTN("pk_ntn"), @@ -5862,6 +5919,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("pt_vat") PT_VAT("pt_vat"), + @SerializedName("py_ruc") + PY_RUC("py_ruc"), + @SerializedName("ro_cui") RO_CUI("ro_cui"), @@ -5904,6 +5964,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sk_vat") SK_VAT("sk_vat"), + @SerializedName("sl_tin") + SL_TIN("sl_tin"), + + @SerializedName("sv_nit") + SV_NIT("sv_nit"), + @SerializedName("th_crn") TH_CRN("th_crn"), @@ -5914,7 +5980,16 @@ public enum Type implements ApiRequestParams.EnumParam { TH_TIN("th_tin"), @SerializedName("us_ein") - US_EIN("us_ein"); + US_EIN("us_ein"), + + @SerializedName("uy_ruc") + UY_RUC("uy_ruc"), + + @SerializedName("vg_cn") + VG_CN("vg_cn"), + + @SerializedName("za_tin") + ZA_TIN("za_tin"); @Getter(onMethod_ = {@Override}) private final String value; @@ -9101,12 +9176,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("bg_ucn") BG_UCN("bg_ucn"), + @SerializedName("bm_pp") + BM_PP("bm_pp"), + @SerializedName("bn_nric") BN_NRIC("bn_nric"), + @SerializedName("bo_ci") + BO_CI("bo_ci"), + @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bt_cid") + BT_CID("bt_cid"), + @SerializedName("ca_sin") CA_SIN("ca_sin"), @@ -9158,6 +9242,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ee_ik") EE_IK("ee_ik"), + @SerializedName("eg_tin") + EG_TIN("eg_tin"), + @SerializedName("es_nif") ES_NIF("es_nif"), @@ -9170,15 +9257,24 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gb_nino") GB_NINO("gb_nino"), + @SerializedName("gh_pin") + GH_PIN("gh_pin"), + @SerializedName("gr_afm") GR_AFM("gr_afm"), @SerializedName("gt_nit") GT_NIT("gt_nit"), + @SerializedName("gy_tin") + GY_TIN("gy_tin"), + @SerializedName("hk_id") HK_ID("hk_id"), + @SerializedName("hn_rtn") + HN_RTN("hn_rtn"), + @SerializedName("hr_oib") HR_OIB("hr_oib"), @@ -9197,18 +9293,30 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("it_cf") IT_CF("it_cf"), + @SerializedName("jm_trn") + JM_TRN("jm_trn"), + + @SerializedName("jo_pin") + JO_PIN("jo_pin"), + @SerializedName("jp_inc") JP_INC("jp_inc"), @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("ky_pp") + KY_PP("ky_pp"), + @SerializedName("kz_iin") KZ_IIN("kz_iin"), @SerializedName("li_peid") LI_PEID("li_peid"), + @SerializedName("lk_nic") + LK_NIC("lk_nic"), + @SerializedName("lt_ak") LT_AK("lt_ak"), @@ -9218,6 +9326,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("lv_pk") LV_PK("lv_pk"), + @SerializedName("mo_bir") + MO_BIR("mo_bir"), + + @SerializedName("mt_nic") + MT_NIC("mt_nic"), + + @SerializedName("mv_tin") + MV_TIN("mv_tin"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -9239,9 +9356,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("nz_ird") NZ_IRD("nz_ird"), + @SerializedName("pa_ruc") + PA_RUC("pa_ruc"), + @SerializedName("pe_dni") PE_DNI("pe_dni"), + @SerializedName("ph_tin") + PH_TIN("ph_tin"), + @SerializedName("pk_cnic") PK_CNIC("pk_cnic"), @@ -9254,6 +9377,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("pt_nif") PT_NIF("pt_nif"), + @SerializedName("py_ruc") + PY_RUC("py_ruc"), + @SerializedName("ro_cnp") RO_CNP("ro_cnp"), @@ -9269,9 +9395,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sg_nric") SG_NRIC("sg_nric"), + @SerializedName("si_pin") + SI_PIN("si_pin"), + @SerializedName("sk_dic") SK_DIC("sk_dic"), + @SerializedName("sv_nit") + SV_NIT("sv_nit"), + @SerializedName("th_lc") TH_LC("th_lc"), @@ -9296,6 +9428,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_dni") UY_DNI("uy_dni"), + @SerializedName("vg_pp") + VG_PP("vg_pp"), + @SerializedName("za_id") ZA_ID("za_id"); diff --git a/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java b/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java index 97443bedc14..0496cd0ad75 100644 --- a/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java @@ -26995,9 +26995,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("bg_vat") BG_VAT("bg_vat"), + @SerializedName("bm_crn") + BM_CRN("bm_crn"), + + @SerializedName("bo_tin") + BO_TIN("bo_tin"), + @SerializedName("br_cnpj") BR_CNPJ("br_cnpj"), + @SerializedName("bt_tpn") + BT_TPN("bt_tpn"), + @SerializedName("ca_cn") CA_CN("ca_cn"), @@ -27019,6 +27028,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ch_uid") CH_UID("ch_uid"), + @SerializedName("co_nit") + CO_NIT("co_nit"), + @SerializedName("cr_cpj") CR_CPJ("cr_cpj"), @@ -27058,12 +27070,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("do_rcn") DO_RCN("do_rcn"), + @SerializedName("ec_ruc") + EC_RUC("ec_ruc"), + @SerializedName("ee_rk") EE_RK("ee_rk"), @SerializedName("ee_vat") EE_VAT("ee_vat"), + @SerializedName("eg_tin") + EG_TIN("eg_tin"), + @SerializedName("es_cif") ES_CIF("es_cif"), @@ -27091,6 +27109,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gb_vat") GB_VAT("gb_vat"), + @SerializedName("gh_tin") + GH_TIN("gh_tin"), + @SerializedName("gi_crn") GI_CRN("gi_crn"), @@ -27106,12 +27127,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gt_nit") GT_NIT("gt_nit"), + @SerializedName("gy_tin") + GY_TIN("gy_tin"), + @SerializedName("hk_br") HK_BR("hk_br"), @SerializedName("hk_cr") HK_CR("hk_cr"), + @SerializedName("hn_rtn") + HN_RTN("hn_rtn"), + @SerializedName("hr_mbs") HR_MBS("hr_mbs"), @@ -27145,15 +27172,30 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("it_vat") IT_VAT("it_vat"), + @SerializedName("jm_trn") + JM_TRN("jm_trn"), + + @SerializedName("jo_crn") + JO_CRN("jo_crn"), + @SerializedName("jp_cn") JP_CN("jp_cn"), + @SerializedName("ke_pin") + KE_PIN("ke_pin"), + + @SerializedName("ky_crn") + KY_CRN("ky_crn"), + @SerializedName("kz_bin") KZ_BIN("kz_bin"), @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("lk_tin") + LK_TIN("lk_tin"), + @SerializedName("lt_ccrn") LT_CCRN("lt_ccrn"), @@ -27175,6 +27217,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("lv_vat") LV_VAT("lv_vat"), + @SerializedName("mo_tin") + MO_TIN("mo_tin"), + @SerializedName("mt_crn") MT_CRN("mt_crn"), @@ -27184,6 +27229,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("mt_vat") MT_VAT("mt_vat"), + @SerializedName("mv_tin") + MV_TIN("mv_tin"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -27202,6 +27250,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("mz_nuit") MZ_NUIT("mz_nuit"), + @SerializedName("ng_tin") + NG_TIN("ng_tin"), + @SerializedName("nl_kvk") NL_KVK("nl_kvk"), @@ -27220,9 +27271,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("nz_ird") NZ_IRD("nz_ird"), + @SerializedName("pa_ruc") + PA_RUC("pa_ruc"), + @SerializedName("pe_ruc") PE_RUC("pe_ruc"), + @SerializedName("ph_tin") + PH_TIN("ph_tin"), + @SerializedName("pk_ntn") PK_NTN("pk_ntn"), @@ -27238,6 +27295,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("pt_vat") PT_VAT("pt_vat"), + @SerializedName("py_ruc") + PY_RUC("py_ruc"), + @SerializedName("ro_cui") RO_CUI("ro_cui"), @@ -27280,6 +27340,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sk_vat") SK_VAT("sk_vat"), + @SerializedName("sl_tin") + SL_TIN("sl_tin"), + + @SerializedName("sv_nit") + SV_NIT("sv_nit"), + @SerializedName("th_crn") TH_CRN("th_crn"), @@ -27290,7 +27356,16 @@ public enum Type implements ApiRequestParams.EnumParam { TH_TIN("th_tin"), @SerializedName("us_ein") - US_EIN("us_ein"); + US_EIN("us_ein"), + + @SerializedName("uy_ruc") + UY_RUC("uy_ruc"), + + @SerializedName("vg_cn") + VG_CN("vg_cn"), + + @SerializedName("za_tin") + ZA_TIN("za_tin"); @Getter(onMethod_ = {@Override}) private final String value; @@ -30748,12 +30823,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("bg_ucn") BG_UCN("bg_ucn"), + @SerializedName("bm_pp") + BM_PP("bm_pp"), + @SerializedName("bn_nric") BN_NRIC("bn_nric"), + @SerializedName("bo_ci") + BO_CI("bo_ci"), + @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bt_cid") + BT_CID("bt_cid"), + @SerializedName("ca_sin") CA_SIN("ca_sin"), @@ -30805,6 +30889,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ee_ik") EE_IK("ee_ik"), + @SerializedName("eg_tin") + EG_TIN("eg_tin"), + @SerializedName("es_nif") ES_NIF("es_nif"), @@ -30817,15 +30904,24 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gb_nino") GB_NINO("gb_nino"), + @SerializedName("gh_pin") + GH_PIN("gh_pin"), + @SerializedName("gr_afm") GR_AFM("gr_afm"), @SerializedName("gt_nit") GT_NIT("gt_nit"), + @SerializedName("gy_tin") + GY_TIN("gy_tin"), + @SerializedName("hk_id") HK_ID("hk_id"), + @SerializedName("hn_rtn") + HN_RTN("hn_rtn"), + @SerializedName("hr_oib") HR_OIB("hr_oib"), @@ -30844,18 +30940,30 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("it_cf") IT_CF("it_cf"), + @SerializedName("jm_trn") + JM_TRN("jm_trn"), + + @SerializedName("jo_pin") + JO_PIN("jo_pin"), + @SerializedName("jp_inc") JP_INC("jp_inc"), @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("ky_pp") + KY_PP("ky_pp"), + @SerializedName("kz_iin") KZ_IIN("kz_iin"), @SerializedName("li_peid") LI_PEID("li_peid"), + @SerializedName("lk_nic") + LK_NIC("lk_nic"), + @SerializedName("lt_ak") LT_AK("lt_ak"), @@ -30865,6 +30973,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("lv_pk") LV_PK("lv_pk"), + @SerializedName("mo_bir") + MO_BIR("mo_bir"), + + @SerializedName("mt_nic") + MT_NIC("mt_nic"), + + @SerializedName("mv_tin") + MV_TIN("mv_tin"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -30886,9 +31003,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("nz_ird") NZ_IRD("nz_ird"), + @SerializedName("pa_ruc") + PA_RUC("pa_ruc"), + @SerializedName("pe_dni") PE_DNI("pe_dni"), + @SerializedName("ph_tin") + PH_TIN("ph_tin"), + @SerializedName("pk_cnic") PK_CNIC("pk_cnic"), @@ -30901,6 +31024,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("pt_nif") PT_NIF("pt_nif"), + @SerializedName("py_ruc") + PY_RUC("py_ruc"), + @SerializedName("ro_cnp") RO_CNP("ro_cnp"), @@ -30916,9 +31042,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sg_nric") SG_NRIC("sg_nric"), + @SerializedName("si_pin") + SI_PIN("si_pin"), + @SerializedName("sk_dic") SK_DIC("sk_dic"), + @SerializedName("sv_nit") + SV_NIT("sv_nit"), + @SerializedName("th_lc") TH_LC("th_lc"), @@ -30943,6 +31075,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_dni") UY_DNI("uy_dni"), + @SerializedName("vg_pp") + VG_PP("vg_pp"), + @SerializedName("za_id") ZA_ID("za_id"); diff --git a/src/main/java/com/stripe/param/v2/core/ApprovalRequestListParams.java b/src/main/java/com/stripe/param/v2/core/ApprovalRequestListParams.java new file mode 100644 index 00000000000..c4627ee80c1 --- /dev/null +++ b/src/main/java/com/stripe/param/v2/core/ApprovalRequestListParams.java @@ -0,0 +1,78 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.core; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.HashMap; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class ApprovalRequestListParams extends ApiRequestParams { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Maximum number of results to return. */ + @SerializedName("limit") + Long limit; + + private ApprovalRequestListParams(Map extraParams, Long limit) { + this.extraParams = extraParams; + this.limit = limit; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long limit; + + /** Finalize and obtain parameter instance from this builder. */ + public ApprovalRequestListParams build() { + return new ApprovalRequestListParams(this.extraParams, this.limit); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ApprovalRequestListParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ApprovalRequestListParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Maximum number of results to return. */ + public Builder setLimit(Long limit) { + this.limit = limit; + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/core/ApprovalRequestSubmitParams.java b/src/main/java/com/stripe/param/v2/core/ApprovalRequestSubmitParams.java new file mode 100644 index 00000000000..6eb93c1ecab --- /dev/null +++ b/src/main/java/com/stripe/param/v2/core/ApprovalRequestSubmitParams.java @@ -0,0 +1,78 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.core; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.HashMap; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class ApprovalRequestSubmitParams extends ApiRequestParams { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** The reason for submitting the approval request. */ + @SerializedName("reason") + String reason; + + private ApprovalRequestSubmitParams(Map extraParams, String reason) { + this.extraParams = extraParams; + this.reason = reason; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String reason; + + /** Finalize and obtain parameter instance from this builder. */ + public ApprovalRequestSubmitParams build() { + return new ApprovalRequestSubmitParams(this.extraParams, this.reason); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ApprovalRequestSubmitParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ApprovalRequestSubmitParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** The reason for submitting the approval request. */ + public Builder setReason(String reason) { + this.reason = reason; + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/core/BatchJobCreateParams.java b/src/main/java/com/stripe/param/v2/core/BatchJobCreateParams.java index 7e66ea6a2ac..254627dbfb6 100644 --- a/src/main/java/com/stripe/param/v2/core/BatchJobCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/BatchJobCreateParams.java @@ -257,6 +257,9 @@ public Builder setPath(BatchJobCreateParams.Endpoint.Path path) { } public enum HttpMethod implements ApiRequestParams.EnumParam { + @SerializedName("delete") + DELETE("delete"), + @SerializedName("post") POST("post"); diff --git a/src/main/java/com/stripe/param/v2/core/ClaimableSandboxCreateParams.java b/src/main/java/com/stripe/param/v2/core/ClaimableSandboxCreateParams.java index 236b15c7297..11e8de7884f 100644 --- a/src/main/java/com/stripe/param/v2/core/ClaimableSandboxCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/ClaimableSandboxCreateParams.java @@ -11,6 +11,13 @@ @Getter @EqualsAndHashCode(callSuper = false) public class ClaimableSandboxCreateParams extends ApiRequestParams { + /** + * The app channel that will be used when pre-installing your app on the claimable sandbox. This + * field defaults to {@code public} if omitted. + */ + @SerializedName("app_channel") + AppChannel appChannel; + /** * Required. If true, returns a key that can be used with Stripe's MCP server. @@ -27,6 +34,10 @@ public class ClaimableSandboxCreateParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Required. Details about the onboarding link. */ + @SerializedName("onboarding_link_details") + OnboardingLinkDetails onboardingLinkDetails; + /** * Required. Values that are prefilled when a user claims the sandbox. When a * user claims the sandbox, they will be able to update these values. @@ -35,9 +46,15 @@ public class ClaimableSandboxCreateParams extends ApiRequestParams { Prefill prefill; private ClaimableSandboxCreateParams( - Boolean enableMcpAccess, Map extraParams, Prefill prefill) { + AppChannel appChannel, + Boolean enableMcpAccess, + Map extraParams, + OnboardingLinkDetails onboardingLinkDetails, + Prefill prefill) { + this.appChannel = appChannel; this.enableMcpAccess = enableMcpAccess; this.extraParams = extraParams; + this.onboardingLinkDetails = onboardingLinkDetails; this.prefill = prefill; } @@ -46,15 +63,33 @@ public static Builder builder() { } public static class Builder { + private AppChannel appChannel; + private Boolean enableMcpAccess; private Map extraParams; + private OnboardingLinkDetails onboardingLinkDetails; + private Prefill prefill; /** Finalize and obtain parameter instance from this builder. */ public ClaimableSandboxCreateParams build() { - return new ClaimableSandboxCreateParams(this.enableMcpAccess, this.extraParams, this.prefill); + return new ClaimableSandboxCreateParams( + this.appChannel, + this.enableMcpAccess, + this.extraParams, + this.onboardingLinkDetails, + this.prefill); + } + + /** + * The app channel that will be used when pre-installing your app on the claimable sandbox. This + * field defaults to {@code public} if omitted. + */ + public Builder setAppChannel(ClaimableSandboxCreateParams.AppChannel appChannel) { + this.appChannel = appChannel; + return this; } /** @@ -92,6 +127,13 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Required. Details about the onboarding link. */ + public Builder setOnboardingLinkDetails( + ClaimableSandboxCreateParams.OnboardingLinkDetails onboardingLinkDetails) { + this.onboardingLinkDetails = onboardingLinkDetails; + return this; + } + /** * Required. Values that are prefilled when a user claims the sandbox. When a * user claims the sandbox, they will be able to update these values. @@ -102,6 +144,88 @@ public Builder setPrefill(ClaimableSandboxCreateParams.Prefill prefill) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class OnboardingLinkDetails { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Required. 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; + + private OnboardingLinkDetails(Map extraParams, String refreshUrl) { + this.extraParams = extraParams; + this.refreshUrl = refreshUrl; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String refreshUrl; + + /** Finalize and obtain parameter instance from this builder. */ + public ClaimableSandboxCreateParams.OnboardingLinkDetails build() { + return new ClaimableSandboxCreateParams.OnboardingLinkDetails( + this.extraParams, this.refreshUrl); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ClaimableSandboxCreateParams.OnboardingLinkDetails#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ClaimableSandboxCreateParams.OnboardingLinkDetails#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. 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. + */ + public Builder setRefreshUrl(String refreshUrl) { + this.refreshUrl = refreshUrl; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Prefill { @@ -211,4 +335,19 @@ public Builder setName(String name) { } } } + + public enum AppChannel implements ApiRequestParams.EnumParam { + @SerializedName("public") + PUBLIC("public"), + + @SerializedName("testing") + TESTING("testing"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + AppChannel(String value) { + this.value = value; + } + } } diff --git a/src/main/java/com/stripe/param/v2/core/ClaimableSandboxRenewOnboardingLinkParams.java b/src/main/java/com/stripe/param/v2/core/ClaimableSandboxRenewOnboardingLinkParams.java new file mode 100644 index 00000000000..40ab16e8d5c --- /dev/null +++ b/src/main/java/com/stripe/param/v2/core/ClaimableSandboxRenewOnboardingLinkParams.java @@ -0,0 +1,170 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.core; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.HashMap; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class ClaimableSandboxRenewOnboardingLinkParams extends ApiRequestParams { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Details about the onboarding link. If omitted, the existing onboarding link details will be + * reused. + */ + @SerializedName("onboarding_link_details") + OnboardingLinkDetails onboardingLinkDetails; + + private ClaimableSandboxRenewOnboardingLinkParams( + Map extraParams, OnboardingLinkDetails onboardingLinkDetails) { + this.extraParams = extraParams; + this.onboardingLinkDetails = onboardingLinkDetails; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private OnboardingLinkDetails onboardingLinkDetails; + + /** Finalize and obtain parameter instance from this builder. */ + public ClaimableSandboxRenewOnboardingLinkParams build() { + return new ClaimableSandboxRenewOnboardingLinkParams( + this.extraParams, this.onboardingLinkDetails); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ClaimableSandboxRenewOnboardingLinkParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ClaimableSandboxRenewOnboardingLinkParams#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Details about the onboarding link. If omitted, the existing onboarding link details will be + * reused. + */ + public Builder setOnboardingLinkDetails( + ClaimableSandboxRenewOnboardingLinkParams.OnboardingLinkDetails onboardingLinkDetails) { + this.onboardingLinkDetails = onboardingLinkDetails; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class OnboardingLinkDetails { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Required. 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; + + private OnboardingLinkDetails(Map extraParams, String refreshUrl) { + this.extraParams = extraParams; + this.refreshUrl = refreshUrl; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String refreshUrl; + + /** Finalize and obtain parameter instance from this builder. */ + public ClaimableSandboxRenewOnboardingLinkParams.OnboardingLinkDetails build() { + return new ClaimableSandboxRenewOnboardingLinkParams.OnboardingLinkDetails( + this.extraParams, this.refreshUrl); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ClaimableSandboxRenewOnboardingLinkParams.OnboardingLinkDetails#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ClaimableSandboxRenewOnboardingLinkParams.OnboardingLinkDetails#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. 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. + */ + public Builder setRefreshUrl(String refreshUrl) { + this.refreshUrl = refreshUrl; + return this; + } + } + } +} diff --git a/src/main/java/com/stripe/param/v2/core/accounts/PersonCreateParams.java b/src/main/java/com/stripe/param/v2/core/accounts/PersonCreateParams.java index 23964e137e1..2c10a824029 100644 --- a/src/main/java/com/stripe/param/v2/core/accounts/PersonCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/accounts/PersonCreateParams.java @@ -2335,12 +2335,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("bg_ucn") BG_UCN("bg_ucn"), + @SerializedName("bm_pp") + BM_PP("bm_pp"), + @SerializedName("bn_nric") BN_NRIC("bn_nric"), + @SerializedName("bo_ci") + BO_CI("bo_ci"), + @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bt_cid") + BT_CID("bt_cid"), + @SerializedName("ca_sin") CA_SIN("ca_sin"), @@ -2392,6 +2401,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ee_ik") EE_IK("ee_ik"), + @SerializedName("eg_tin") + EG_TIN("eg_tin"), + @SerializedName("es_nif") ES_NIF("es_nif"), @@ -2404,15 +2416,24 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gb_nino") GB_NINO("gb_nino"), + @SerializedName("gh_pin") + GH_PIN("gh_pin"), + @SerializedName("gr_afm") GR_AFM("gr_afm"), @SerializedName("gt_nit") GT_NIT("gt_nit"), + @SerializedName("gy_tin") + GY_TIN("gy_tin"), + @SerializedName("hk_id") HK_ID("hk_id"), + @SerializedName("hn_rtn") + HN_RTN("hn_rtn"), + @SerializedName("hr_oib") HR_OIB("hr_oib"), @@ -2431,18 +2452,30 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("it_cf") IT_CF("it_cf"), + @SerializedName("jm_trn") + JM_TRN("jm_trn"), + + @SerializedName("jo_pin") + JO_PIN("jo_pin"), + @SerializedName("jp_inc") JP_INC("jp_inc"), @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("ky_pp") + KY_PP("ky_pp"), + @SerializedName("kz_iin") KZ_IIN("kz_iin"), @SerializedName("li_peid") LI_PEID("li_peid"), + @SerializedName("lk_nic") + LK_NIC("lk_nic"), + @SerializedName("lt_ak") LT_AK("lt_ak"), @@ -2452,6 +2485,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("lv_pk") LV_PK("lv_pk"), + @SerializedName("mo_bir") + MO_BIR("mo_bir"), + + @SerializedName("mt_nic") + MT_NIC("mt_nic"), + + @SerializedName("mv_tin") + MV_TIN("mv_tin"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -2473,9 +2515,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("nz_ird") NZ_IRD("nz_ird"), + @SerializedName("pa_ruc") + PA_RUC("pa_ruc"), + @SerializedName("pe_dni") PE_DNI("pe_dni"), + @SerializedName("ph_tin") + PH_TIN("ph_tin"), + @SerializedName("pk_cnic") PK_CNIC("pk_cnic"), @@ -2488,6 +2536,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("pt_nif") PT_NIF("pt_nif"), + @SerializedName("py_ruc") + PY_RUC("py_ruc"), + @SerializedName("ro_cnp") RO_CNP("ro_cnp"), @@ -2503,9 +2554,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sg_nric") SG_NRIC("sg_nric"), + @SerializedName("si_pin") + SI_PIN("si_pin"), + @SerializedName("sk_dic") SK_DIC("sk_dic"), + @SerializedName("sv_nit") + SV_NIT("sv_nit"), + @SerializedName("th_lc") TH_LC("th_lc"), @@ -2530,6 +2587,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_dni") UY_DNI("uy_dni"), + @SerializedName("vg_pp") + VG_PP("vg_pp"), + @SerializedName("za_id") ZA_ID("za_id"); diff --git a/src/main/java/com/stripe/param/v2/core/accounts/PersonTokenCreateParams.java b/src/main/java/com/stripe/param/v2/core/accounts/PersonTokenCreateParams.java index 47d2c7f0f15..f63fa28f248 100644 --- a/src/main/java/com/stripe/param/v2/core/accounts/PersonTokenCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/accounts/PersonTokenCreateParams.java @@ -2305,12 +2305,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("bg_ucn") BG_UCN("bg_ucn"), + @SerializedName("bm_pp") + BM_PP("bm_pp"), + @SerializedName("bn_nric") BN_NRIC("bn_nric"), + @SerializedName("bo_ci") + BO_CI("bo_ci"), + @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bt_cid") + BT_CID("bt_cid"), + @SerializedName("ca_sin") CA_SIN("ca_sin"), @@ -2362,6 +2371,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ee_ik") EE_IK("ee_ik"), + @SerializedName("eg_tin") + EG_TIN("eg_tin"), + @SerializedName("es_nif") ES_NIF("es_nif"), @@ -2374,15 +2386,24 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gb_nino") GB_NINO("gb_nino"), + @SerializedName("gh_pin") + GH_PIN("gh_pin"), + @SerializedName("gr_afm") GR_AFM("gr_afm"), @SerializedName("gt_nit") GT_NIT("gt_nit"), + @SerializedName("gy_tin") + GY_TIN("gy_tin"), + @SerializedName("hk_id") HK_ID("hk_id"), + @SerializedName("hn_rtn") + HN_RTN("hn_rtn"), + @SerializedName("hr_oib") HR_OIB("hr_oib"), @@ -2401,18 +2422,30 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("it_cf") IT_CF("it_cf"), + @SerializedName("jm_trn") + JM_TRN("jm_trn"), + + @SerializedName("jo_pin") + JO_PIN("jo_pin"), + @SerializedName("jp_inc") JP_INC("jp_inc"), @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("ky_pp") + KY_PP("ky_pp"), + @SerializedName("kz_iin") KZ_IIN("kz_iin"), @SerializedName("li_peid") LI_PEID("li_peid"), + @SerializedName("lk_nic") + LK_NIC("lk_nic"), + @SerializedName("lt_ak") LT_AK("lt_ak"), @@ -2422,6 +2455,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("lv_pk") LV_PK("lv_pk"), + @SerializedName("mo_bir") + MO_BIR("mo_bir"), + + @SerializedName("mt_nic") + MT_NIC("mt_nic"), + + @SerializedName("mv_tin") + MV_TIN("mv_tin"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -2443,9 +2485,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("nz_ird") NZ_IRD("nz_ird"), + @SerializedName("pa_ruc") + PA_RUC("pa_ruc"), + @SerializedName("pe_dni") PE_DNI("pe_dni"), + @SerializedName("ph_tin") + PH_TIN("ph_tin"), + @SerializedName("pk_cnic") PK_CNIC("pk_cnic"), @@ -2458,6 +2506,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("pt_nif") PT_NIF("pt_nif"), + @SerializedName("py_ruc") + PY_RUC("py_ruc"), + @SerializedName("ro_cnp") RO_CNP("ro_cnp"), @@ -2473,9 +2524,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sg_nric") SG_NRIC("sg_nric"), + @SerializedName("si_pin") + SI_PIN("si_pin"), + @SerializedName("sk_dic") SK_DIC("sk_dic"), + @SerializedName("sv_nit") + SV_NIT("sv_nit"), + @SerializedName("th_lc") TH_LC("th_lc"), @@ -2500,6 +2557,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_dni") UY_DNI("uy_dni"), + @SerializedName("vg_pp") + VG_PP("vg_pp"), + @SerializedName("za_id") ZA_ID("za_id"); diff --git a/src/main/java/com/stripe/param/v2/core/accounts/PersonUpdateParams.java b/src/main/java/com/stripe/param/v2/core/accounts/PersonUpdateParams.java index 001c826555a..f0a7b7f98a6 100644 --- a/src/main/java/com/stripe/param/v2/core/accounts/PersonUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/core/accounts/PersonUpdateParams.java @@ -2553,12 +2553,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("bg_ucn") BG_UCN("bg_ucn"), + @SerializedName("bm_pp") + BM_PP("bm_pp"), + @SerializedName("bn_nric") BN_NRIC("bn_nric"), + @SerializedName("bo_ci") + BO_CI("bo_ci"), + @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bt_cid") + BT_CID("bt_cid"), + @SerializedName("ca_sin") CA_SIN("ca_sin"), @@ -2610,6 +2619,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ee_ik") EE_IK("ee_ik"), + @SerializedName("eg_tin") + EG_TIN("eg_tin"), + @SerializedName("es_nif") ES_NIF("es_nif"), @@ -2622,15 +2634,24 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("gb_nino") GB_NINO("gb_nino"), + @SerializedName("gh_pin") + GH_PIN("gh_pin"), + @SerializedName("gr_afm") GR_AFM("gr_afm"), @SerializedName("gt_nit") GT_NIT("gt_nit"), + @SerializedName("gy_tin") + GY_TIN("gy_tin"), + @SerializedName("hk_id") HK_ID("hk_id"), + @SerializedName("hn_rtn") + HN_RTN("hn_rtn"), + @SerializedName("hr_oib") HR_OIB("hr_oib"), @@ -2649,18 +2670,30 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("it_cf") IT_CF("it_cf"), + @SerializedName("jm_trn") + JM_TRN("jm_trn"), + + @SerializedName("jo_pin") + JO_PIN("jo_pin"), + @SerializedName("jp_inc") JP_INC("jp_inc"), @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("ky_pp") + KY_PP("ky_pp"), + @SerializedName("kz_iin") KZ_IIN("kz_iin"), @SerializedName("li_peid") LI_PEID("li_peid"), + @SerializedName("lk_nic") + LK_NIC("lk_nic"), + @SerializedName("lt_ak") LT_AK("lt_ak"), @@ -2670,6 +2703,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("lv_pk") LV_PK("lv_pk"), + @SerializedName("mo_bir") + MO_BIR("mo_bir"), + + @SerializedName("mt_nic") + MT_NIC("mt_nic"), + + @SerializedName("mv_tin") + MV_TIN("mv_tin"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -2691,9 +2733,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("nz_ird") NZ_IRD("nz_ird"), + @SerializedName("pa_ruc") + PA_RUC("pa_ruc"), + @SerializedName("pe_dni") PE_DNI("pe_dni"), + @SerializedName("ph_tin") + PH_TIN("ph_tin"), + @SerializedName("pk_cnic") PK_CNIC("pk_cnic"), @@ -2706,6 +2754,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("pt_nif") PT_NIF("pt_nif"), + @SerializedName("py_ruc") + PY_RUC("py_ruc"), + @SerializedName("ro_cnp") RO_CNP("ro_cnp"), @@ -2721,9 +2772,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sg_nric") SG_NRIC("sg_nric"), + @SerializedName("si_pin") + SI_PIN("si_pin"), + @SerializedName("sk_dic") SK_DIC("sk_dic"), + @SerializedName("sv_nit") + SV_NIT("sv_nit"), + @SerializedName("th_lc") TH_LC("th_lc"), @@ -2748,6 +2805,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_dni") UY_DNI("uy_dni"), + @SerializedName("vg_pp") + VG_PP("vg_pp"), + @SerializedName("za_id") ZA_ID("za_id"); diff --git a/src/main/java/com/stripe/param/v2/core/vault/GbBankAccountCreateParams.java b/src/main/java/com/stripe/param/v2/core/vault/GbBankAccountCreateParams.java index d2d92082548..33864c0cda5 100644 --- a/src/main/java/com/stripe/param/v2/core/vault/GbBankAccountCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/vault/GbBankAccountCreateParams.java @@ -294,8 +294,14 @@ public enum BankAccountType implements ApiRequestParams.EnumParam { @SerializedName("checking") CHECKING("checking"), + @SerializedName("futsu") + FUTSU("futsu"), + @SerializedName("savings") - SAVINGS("savings"); + SAVINGS("savings"), + + @SerializedName("toza") + TOZA("toza"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/v2/core/WorkflowInvokeParams.java b/src/main/java/com/stripe/param/v2/extend/WorkflowInvokeParams.java similarity index 99% rename from src/main/java/com/stripe/param/v2/core/WorkflowInvokeParams.java rename to src/main/java/com/stripe/param/v2/extend/WorkflowInvokeParams.java index f2be64aced2..2793fb904cf 100644 --- a/src/main/java/com/stripe/param/v2/core/WorkflowInvokeParams.java +++ b/src/main/java/com/stripe/param/v2/extend/WorkflowInvokeParams.java @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -package com.stripe.param.v2.core; +package com.stripe.param.v2.extend; import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; diff --git a/src/main/java/com/stripe/param/v2/core/WorkflowListParams.java b/src/main/java/com/stripe/param/v2/extend/WorkflowListParams.java similarity index 94% rename from src/main/java/com/stripe/param/v2/core/WorkflowListParams.java rename to src/main/java/com/stripe/param/v2/extend/WorkflowListParams.java index 7942cfd5a08..167bcefb6d9 100644 --- a/src/main/java/com/stripe/param/v2/core/WorkflowListParams.java +++ b/src/main/java/com/stripe/param/v2/extend/WorkflowListParams.java @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -package com.stripe.param.v2.core; +package com.stripe.param.v2.extend; import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; @@ -27,8 +27,8 @@ public class WorkflowListParams extends ApiRequestParams { Long limit; /** - * Required. When retrieving Workflows, include only those with the specified - * status values. If not specified, all Workflows in active and inactive status are returned. + * When retrieving Workflows, include only those with the specified status values. If not + * specified, all Workflows in active and inactive status are returned. */ @SerializedName("status") List status; diff --git a/src/main/java/com/stripe/param/v2/core/WorkflowRunListParams.java b/src/main/java/com/stripe/param/v2/extend/WorkflowRunListParams.java similarity index 93% rename from src/main/java/com/stripe/param/v2/core/WorkflowRunListParams.java rename to src/main/java/com/stripe/param/v2/extend/WorkflowRunListParams.java index 73580945141..498d31052bc 100644 --- a/src/main/java/com/stripe/param/v2/core/WorkflowRunListParams.java +++ b/src/main/java/com/stripe/param/v2/extend/WorkflowRunListParams.java @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -package com.stripe.param.v2.core; +package com.stripe.param.v2.extend; import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; @@ -27,15 +27,15 @@ public class WorkflowRunListParams extends ApiRequestParams { Long limit; /** - * Required. When retrieving Workflow Runs, include only those with the specified - * status values. If not specified, all Runs are returned. + * When retrieving Workflow Runs, include only those with the specified status values. If not + * specified, all Runs are returned. */ @SerializedName("status") List status; /** - * Required. When retrieving Workflow Runs, include only those associated with - * the Workflows specified. If not specified, all Runs are returned. + * When retrieving Workflow Runs, include only those associated with the Workflows specified. If + * not specified, all Runs are returned. */ @SerializedName("workflow") List workflow; diff --git a/src/main/java/com/stripe/param/v2/iam/ActivityLogListParams.java b/src/main/java/com/stripe/param/v2/iam/ActivityLogListParams.java new file mode 100644 index 00000000000..66105f56bec --- /dev/null +++ b/src/main/java/com/stripe/param/v2/iam/ActivityLogListParams.java @@ -0,0 +1,205 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.iam; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class ActivityLogListParams extends ApiRequestParams { + /** Filter results to only include activity logs for the specified action group types. */ + @SerializedName("action_groups") + List actionGroups; + + /** Filter results to only include activity logs for the specified action types. */ + @SerializedName("actions") + List actions; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Maximum number of results to return per page. */ + @SerializedName("limit") + Long limit; + + private ActivityLogListParams( + List actionGroups, + List actions, + Map extraParams, + Long limit) { + this.actionGroups = actionGroups; + this.actions = actions; + this.extraParams = extraParams; + this.limit = limit; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List actionGroups; + + private List actions; + + private Map extraParams; + + private Long limit; + + /** Finalize and obtain parameter instance from this builder. */ + public ActivityLogListParams build() { + return new ActivityLogListParams( + this.actionGroups, this.actions, this.extraParams, this.limit); + } + + /** + * Add an element to `actionGroups` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * ActivityLogListParams#actionGroups} for the field documentation. + */ + public Builder addActionGroup(ActivityLogListParams.ActionGroup element) { + if (this.actionGroups == null) { + this.actionGroups = new ArrayList<>(); + } + this.actionGroups.add(element); + return this; + } + + /** + * Add all elements to `actionGroups` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ActivityLogListParams#actionGroups} for the field documentation. + */ + public Builder addAllActionGroup(List elements) { + if (this.actionGroups == null) { + this.actionGroups = new ArrayList<>(); + } + this.actionGroups.addAll(elements); + return this; + } + + /** + * Add an element to `actions` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * ActivityLogListParams#actions} for the field documentation. + */ + public Builder addAction(ActivityLogListParams.Action element) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add(element); + return this; + } + + /** + * Add all elements to `actions` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * ActivityLogListParams#actions} for the field documentation. + */ + public Builder addAllAction(List elements) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.addAll(elements); + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ActivityLogListParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ActivityLogListParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Maximum number of results to return per page. */ + public Builder setLimit(Long limit) { + this.limit = limit; + return this; + } + } + + public enum Action implements ApiRequestParams.EnumParam { + @SerializedName("api_key_created") + API_KEY_CREATED("api_key_created"), + + @SerializedName("api_key_deleted") + API_KEY_DELETED("api_key_deleted"), + + @SerializedName("api_key_updated") + API_KEY_UPDATED("api_key_updated"), + + @SerializedName("api_key_viewed") + API_KEY_VIEWED("api_key_viewed"), + + @SerializedName("user_invite_accepted") + USER_INVITE_ACCEPTED("user_invite_accepted"), + + @SerializedName("user_invite_created") + USER_INVITE_CREATED("user_invite_created"), + + @SerializedName("user_invite_deleted") + USER_INVITE_DELETED("user_invite_deleted"), + + @SerializedName("user_roles_deleted") + USER_ROLES_DELETED("user_roles_deleted"), + + @SerializedName("user_roles_updated") + USER_ROLES_UPDATED("user_roles_updated"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Action(String value) { + this.value = value; + } + } + + public enum ActionGroup implements ApiRequestParams.EnumParam { + @SerializedName("api_key") + API_KEY("api_key"), + + @SerializedName("user_invite") + USER_INVITE("user_invite"), + + @SerializedName("user_roles") + USER_ROLES("user_roles"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + ActionGroup(String value) { + this.value = value; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java index b09290b3fb8..7f18d34b927 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java @@ -21,7 +21,7 @@ public class CurrencyConversionCreateParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. The FinancialAccount id to create the CurrencyConversion on. */ + /** The FinancialAccount id to create the CurrencyConversion on. */ @SerializedName("financial_account") String financialAccount; @@ -31,15 +31,20 @@ public class CurrencyConversionCreateParams extends ApiRequestParams { @SerializedName("from") From from; + /** The FX quote to use for the conversion. */ + @SerializedName("fx_quote") + String fxQuote; + /** Required. To amount object indicating the to currency or optional amount. */ @SerializedName("to") To to; private CurrencyConversionCreateParams( - Map extraParams, String financialAccount, From from, To to) { + Map extraParams, String financialAccount, From from, String fxQuote, To to) { this.extraParams = extraParams; this.financialAccount = financialAccount; this.from = from; + this.fxQuote = fxQuote; this.to = to; } @@ -54,12 +59,14 @@ public static class Builder { private From from; + private String fxQuote; + private To to; /** Finalize and obtain parameter instance from this builder. */ public CurrencyConversionCreateParams build() { return new CurrencyConversionCreateParams( - this.extraParams, this.financialAccount, this.from, this.to); + this.extraParams, this.financialAccount, this.from, this.fxQuote, this.to); } /** @@ -88,7 +95,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. The FinancialAccount id to create the CurrencyConversion on. */ + /** The FinancialAccount id to create the CurrencyConversion on. */ public Builder setFinancialAccount(String financialAccount) { this.financialAccount = financialAccount; return this; @@ -103,6 +110,12 @@ public Builder setFrom(CurrencyConversionCreateParams.From from) { return this; } + /** The FX quote to use for the conversion. */ + public Builder setFxQuote(String fxQuote) { + this.fxQuote = fxQuote; + return this; + } + /** * Required. To amount object indicating the to currency or optional amount. */ diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountListParams.java index 66e16693045..7d377fd8886 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountListParams.java @@ -206,6 +206,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("accrued_fees") ACCRUED_FEES("accrued_fees"), + @SerializedName("multiprocessor_settlement") + MULTIPROCESSOR_SETTLEMENT("multiprocessor_settlement"), + @SerializedName("payments") PAYMENTS("payments"), diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountUpdateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountUpdateParams.java index 8c023e0b68c..ad3e4095600 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountUpdateParams.java @@ -4,7 +4,9 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; import com.stripe.param.common.EmptyParam; +import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; import lombok.EqualsAndHashCode; import lombok.Getter; @@ -32,11 +34,19 @@ public class FinancialAccountUpdateParams extends ApiRequestParams { @SerializedName("metadata") Map metadata; + /** Parameters for updating storage-specific fields on the FinancialAccount. */ + @SerializedName("storage") + Storage storage; + private FinancialAccountUpdateParams( - Object displayName, Map extraParams, Map metadata) { + Object displayName, + Map extraParams, + Map metadata, + Storage storage) { this.displayName = displayName; this.extraParams = extraParams; this.metadata = metadata; + this.storage = storage; } public static Builder builder() { @@ -50,9 +60,12 @@ public static class Builder { private Map metadata; + private Storage storage; + /** Finalize and obtain parameter instance from this builder. */ public FinancialAccountUpdateParams build() { - return new FinancialAccountUpdateParams(this.displayName, this.extraParams, this.metadata); + return new FinancialAccountUpdateParams( + this.displayName, this.extraParams, this.metadata, this.storage); } /** @@ -142,5 +155,104 @@ public Builder putAllMetadata(Map map) { this.metadata.putAll(map); return this; } + + /** Parameters for updating storage-specific fields on the FinancialAccount. */ + public Builder setStorage(FinancialAccountUpdateParams.Storage storage) { + this.storage = storage; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Storage { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * The currencies that this storage FinancialAccount can hold a balance in. Three-letter ISO + * currency code, in lowercase. Adding currencies requires the corresponding holds_currencies + * storer capabilities to be enabled. Removing currencies is not supported as of March 2026. + */ + @SerializedName("holds_currencies") + List holdsCurrencies; + + private Storage(Map extraParams, List holdsCurrencies) { + this.extraParams = extraParams; + this.holdsCurrencies = holdsCurrencies; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List holdsCurrencies; + + /** Finalize and obtain parameter instance from this builder. */ + public FinancialAccountUpdateParams.Storage build() { + return new FinancialAccountUpdateParams.Storage(this.extraParams, this.holdsCurrencies); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * FinancialAccountUpdateParams.Storage#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link FinancialAccountUpdateParams.Storage#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add an element to `holdsCurrencies` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * FinancialAccountUpdateParams.Storage#holdsCurrencies} for the field documentation. + */ + public Builder addHoldsCurrency(String element) { + if (this.holdsCurrencies == null) { + this.holdsCurrencies = new ArrayList<>(); + } + this.holdsCurrencies.add(element); + return this; + } + + /** + * Add all elements to `holdsCurrencies` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link FinancialAccountUpdateParams.Storage#holdsCurrencies} for the field documentation. + */ + public Builder addAllHoldsCurrency(List elements) { + if (this.holdsCurrencies == null) { + this.holdsCurrencies = new ArrayList<>(); + } + this.holdsCurrencies.addAll(elements); + return this; + } + } } } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressCreateParams.java index e4d3404c87b..3611289aa36 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressCreateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressCreateParams.java @@ -191,6 +191,9 @@ public Builder putAllExtraParam(Map map) { } public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ca_bank_account") + CA_BANK_ACCOUNT("ca_bank_account"), + @SerializedName("gb_bank_account") GB_BANK_ACCOUNT("gb_bank_account"), diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressListParams.java index cb6aed72fa9..1fb2ccf78bf 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressListParams.java @@ -130,6 +130,9 @@ public Builder setLimit(Long limit) { } public enum Include implements ApiRequestParams.EnumParam { + @SerializedName("credentials.ca_bank_account.account_number") + CREDENTIALS__CA_BANK_ACCOUNT__ACCOUNT_NUMBER("credentials.ca_bank_account.account_number"), + @SerializedName("credentials.gb_bank_account.account_number") CREDENTIALS__GB_BANK_ACCOUNT__ACCOUNT_NUMBER("credentials.gb_bank_account.account_number"), diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressRetrieveParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressRetrieveParams.java index d16b2d0820d..51f9eafc486 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressRetrieveParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressRetrieveParams.java @@ -100,6 +100,9 @@ public Builder addAllInclude(List elemen } public enum Include implements ApiRequestParams.EnumParam { + @SerializedName("credentials.ca_bank_account.account_number") + CREDENTIALS__CA_BANK_ACCOUNT__ACCOUNT_NUMBER("credentials.ca_bank_account.account_number"), + @SerializedName("credentials.gb_bank_account.account_number") CREDENTIALS__GB_BANK_ACCOUNT__ACCOUNT_NUMBER("credentials.gb_bank_account.account_number"), diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentCreateParams.java index 8f7a6c6b4b6..a1eb56b9244 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentCreateParams.java @@ -416,8 +416,14 @@ public enum BankAccountType implements ApiRequestParams.EnumParam { @SerializedName("checking") CHECKING("checking"), + @SerializedName("futsu") + FUTSU("futsu"), + @SerializedName("savings") - SAVINGS("savings"); + SAVINGS("savings"), + + @SerializedName("toza") + TOZA("toza"); @Getter(onMethod_ = {@Override}) private final String value; @@ -678,7 +684,10 @@ public enum Network implements ApiRequestParams.EnumParam { SOLANA("solana"), @SerializedName("stellar") - STELLAR("stellar"); + STELLAR("stellar"), + + @SerializedName("tempo") + TEMPO("tempo"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentUpdateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentUpdateParams.java index 6b0199fbf5d..3fd1e6d5519 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentUpdateParams.java @@ -413,8 +413,14 @@ public enum BankAccountType implements ApiRequestParams.EnumParam { @SerializedName("checking") CHECKING("checking"), + @SerializedName("futsu") + FUTSU("futsu"), + @SerializedName("savings") - SAVINGS("savings"); + SAVINGS("savings"), + + @SerializedName("toza") + TOZA("toza"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/v2/orchestratedcommerce/AgreementCreateParams.java b/src/main/java/com/stripe/param/v2/orchestratedcommerce/AgreementCreateParams.java new file mode 100644 index 00000000000..9f1413401bb --- /dev/null +++ b/src/main/java/com/stripe/param/v2/orchestratedcommerce/AgreementCreateParams.java @@ -0,0 +1,80 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.orchestratedcommerce; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.HashMap; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class AgreementCreateParams extends ApiRequestParams { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. The Network ID of the orchestrator to create an agreement with. */ + @SerializedName("orchestrator") + String orchestrator; + + private AgreementCreateParams(Map extraParams, String orchestrator) { + this.extraParams = extraParams; + this.orchestrator = orchestrator; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String orchestrator; + + /** Finalize and obtain parameter instance from this builder. */ + public AgreementCreateParams build() { + return new AgreementCreateParams(this.extraParams, this.orchestrator); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * AgreementCreateParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link AgreementCreateParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. The Network ID of the orchestrator to create an agreement with. + */ + public Builder setOrchestrator(String orchestrator) { + this.orchestrator = orchestrator; + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/orchestratedcommerce/AgreementListParams.java b/src/main/java/com/stripe/param/v2/orchestratedcommerce/AgreementListParams.java new file mode 100644 index 00000000000..437c607e8ba --- /dev/null +++ b/src/main/java/com/stripe/param/v2/orchestratedcommerce/AgreementListParams.java @@ -0,0 +1,92 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.orchestratedcommerce; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.HashMap; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class AgreementListParams extends ApiRequestParams { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** The limit for the number of results per page. */ + @SerializedName("limit") + Long limit; + + /** Filter list to Orchestrated Commerce Agreements with a specific counterparty. */ + @SerializedName("network_business_profile") + String networkBusinessProfile; + + private AgreementListParams( + Map extraParams, Long limit, String networkBusinessProfile) { + this.extraParams = extraParams; + this.limit = limit; + this.networkBusinessProfile = networkBusinessProfile; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long limit; + + private String networkBusinessProfile; + + /** Finalize and obtain parameter instance from this builder. */ + public AgreementListParams build() { + return new AgreementListParams(this.extraParams, this.limit, this.networkBusinessProfile); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * AgreementListParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link AgreementListParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** The limit for the number of results per page. */ + public Builder setLimit(Long limit) { + this.limit = limit; + return this; + } + + /** Filter list to Orchestrated Commerce Agreements with a specific counterparty. */ + public Builder setNetworkBusinessProfile(String networkBusinessProfile) { + this.networkBusinessProfile = networkBusinessProfile; + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCaptureParams.java b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCaptureParams.java index bd8b24b3190..ed26ce34d8a 100644 --- a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCaptureParams.java +++ b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCaptureParams.java @@ -4,7 +4,9 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; import com.stripe.v2.Amount; +import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; import lombok.EqualsAndHashCode; import lombok.Getter; @@ -12,6 +14,10 @@ @Getter @EqualsAndHashCode(callSuper = false) public class OffSessionPaymentCaptureParams extends ApiRequestParams { + /** Provides industry-specific information about the amount. */ + @SerializedName("amount_details") + AmountDetails amountDetails; + /** The amount to capture. */ @SerializedName("amount_to_capture") Long amountToCapture; @@ -39,6 +45,10 @@ public class OffSessionPaymentCaptureParams extends ApiRequestParams { @SerializedName("metadata") Map metadata; + /** Provides industry-specific information about the payment. */ + @SerializedName("payment_details") + PaymentDetails paymentDetails; + /** * Text that appears on the customer’s statement as the statement descriptor for a non-card * charge. This value overrides the account’s default statement descriptor. For information about @@ -50,9 +60,9 @@ public class OffSessionPaymentCaptureParams extends ApiRequestParams { String statementDescriptor; /** - * Provides information about a card charge. Concatenated to the account’s statement - * descriptor prefix to form the complete statement descriptor that appears on the customer’s + * descriptor prefix to form the complete statement descriptor that appears on the customer's * statement. */ @SerializedName("statement_descriptor_suffix") @@ -67,17 +77,21 @@ public class OffSessionPaymentCaptureParams extends ApiRequestParams { TransferData transferData; private OffSessionPaymentCaptureParams( + AmountDetails amountDetails, Long amountToCapture, Amount applicationFeeAmount, Map extraParams, Map metadata, + PaymentDetails paymentDetails, String statementDescriptor, String statementDescriptorSuffix, TransferData transferData) { + this.amountDetails = amountDetails; this.amountToCapture = amountToCapture; this.applicationFeeAmount = applicationFeeAmount; this.extraParams = extraParams; this.metadata = metadata; + this.paymentDetails = paymentDetails; this.statementDescriptor = statementDescriptor; this.statementDescriptorSuffix = statementDescriptorSuffix; this.transferData = transferData; @@ -88,6 +102,8 @@ public static Builder builder() { } public static class Builder { + private AmountDetails amountDetails; + private Long amountToCapture; private Amount applicationFeeAmount; @@ -96,6 +112,8 @@ public static class Builder { private Map metadata; + private PaymentDetails paymentDetails; + private String statementDescriptor; private String statementDescriptorSuffix; @@ -105,15 +123,23 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public OffSessionPaymentCaptureParams build() { return new OffSessionPaymentCaptureParams( + this.amountDetails, this.amountToCapture, this.applicationFeeAmount, this.extraParams, this.metadata, + this.paymentDetails, this.statementDescriptor, this.statementDescriptorSuffix, this.transferData); } + /** Provides industry-specific information about the amount. */ + public Builder setAmountDetails(OffSessionPaymentCaptureParams.AmountDetails amountDetails) { + this.amountDetails = amountDetails; + return this; + } + /** The amount to capture. */ public Builder setAmountToCapture(Long amountToCapture) { this.amountToCapture = amountToCapture; @@ -178,6 +204,12 @@ public Builder putAllMetadata(Map map) { return this; } + /** Provides industry-specific information about the payment. */ + public Builder setPaymentDetails(OffSessionPaymentCaptureParams.PaymentDetails paymentDetails) { + this.paymentDetails = paymentDetails; + return this; + } + /** * Text that appears on the customer’s statement as the statement descriptor for a non-card * charge. This value overrides the account’s default statement descriptor. For information @@ -191,10 +223,10 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * Provides information about a card charge. Concatenated to the account’s statement * descriptor prefix to form the complete statement descriptor that appears on the - * customer’s statement. + * customer's statement. */ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; @@ -212,6 +244,697 @@ public Builder setTransferData(OffSessionPaymentCaptureParams.TransferData trans } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AmountDetails { + /** The amount the total transaction was discounted for. */ + @SerializedName("discount_amount") + Long discountAmount; + + /** + * Set to {@code false} to return arithmetic validation errors in the response without failing + * the request. Use this when you want the operation to proceed regardless of arithmetic errors + * in the line item data. Omit or set to {@code true} to immediately return a 400 error when + * arithmetic validation fails. Use this for strict validation that prevents processing with + * line item data that has arithmetic inconsistencies. For card payments, Stripe doesn't send + * line item data to card networks if there's an arithmetic validation error. + */ + @SerializedName("enforce_arithmetic_validation") + Boolean enforceArithmeticValidation; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * A list of line items, each containing information about a product in the OffSessionPayment. + * There is a maximum of 10 line items. + */ + @SerializedName("line_items") + List lineItems; + + /** Contains information about the shipping portion of the amount. */ + @SerializedName("shipping") + Shipping shipping; + + /** Contains information about the tax portion of the amount. */ + @SerializedName("tax") + Tax tax; + + private AmountDetails( + Long discountAmount, + Boolean enforceArithmeticValidation, + Map extraParams, + List lineItems, + Shipping shipping, + Tax tax) { + this.discountAmount = discountAmount; + this.enforceArithmeticValidation = enforceArithmeticValidation; + this.extraParams = extraParams; + this.lineItems = lineItems; + this.shipping = shipping; + this.tax = tax; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long discountAmount; + + private Boolean enforceArithmeticValidation; + + private Map extraParams; + + private List lineItems; + + private Shipping shipping; + + private Tax tax; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCaptureParams.AmountDetails build() { + return new OffSessionPaymentCaptureParams.AmountDetails( + this.discountAmount, + this.enforceArithmeticValidation, + this.extraParams, + this.lineItems, + this.shipping, + this.tax); + } + + /** The amount the total transaction was discounted for. */ + public Builder setDiscountAmount(Long discountAmount) { + this.discountAmount = discountAmount; + return this; + } + + /** + * Set to {@code false} to return arithmetic validation errors in the response without failing + * the request. Use this when you want the operation to proceed regardless of arithmetic + * errors in the line item data. Omit or set to {@code true} to immediately return a 400 error + * when arithmetic validation fails. Use this for strict validation that prevents processing + * with line item data that has arithmetic inconsistencies. For card payments, Stripe doesn't + * send line item data to card networks if there's an arithmetic validation error. + */ + public Builder setEnforceArithmeticValidation(Boolean enforceArithmeticValidation) { + this.enforceArithmeticValidation = enforceArithmeticValidation; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * OffSessionPaymentCaptureParams.AmountDetails#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link OffSessionPaymentCaptureParams.AmountDetails#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * OffSessionPaymentCaptureParams.AmountDetails#lineItems} for the field documentation. + */ + public Builder addLineItem(OffSessionPaymentCaptureParams.AmountDetails.LineItem element) { + if (this.lineItems == null) { + this.lineItems = new ArrayList<>(); + } + this.lineItems.add(element); + return this; + } + + /** + * Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * OffSessionPaymentCaptureParams.AmountDetails#lineItems} for the field documentation. + */ + public Builder addAllLineItem( + List elements) { + if (this.lineItems == null) { + this.lineItems = new ArrayList<>(); + } + this.lineItems.addAll(elements); + return this; + } + + /** Contains information about the shipping portion of the amount. */ + public Builder setShipping(OffSessionPaymentCaptureParams.AmountDetails.Shipping shipping) { + this.shipping = shipping; + return this; + } + + /** Contains information about the tax portion of the amount. */ + public Builder setTax(OffSessionPaymentCaptureParams.AmountDetails.Tax tax) { + this.tax = tax; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class LineItem { + /** The amount an item was discounted for. Positive integer. */ + @SerializedName("discount_amount") + Long discountAmount; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Unique identifier of the product. At most 12 characters long. */ + @SerializedName("product_code") + String productCode; + + /** Required. Name of the product. At most 100 characters long. */ + @SerializedName("product_name") + String productName; + + /** Required. Number of items of the product. Positive integer. */ + @SerializedName("quantity") + Long quantity; + + /** Contains information about the tax on the item. */ + @SerializedName("tax") + Tax tax; + + /** Required. Cost of the product. Positive integer. */ + @SerializedName("unit_cost") + Long unitCost; + + /** + * A unit of measure for the line item, such as gallons, feet, meters, etc. The maximum length + * is 12 characters. + */ + @SerializedName("unit_of_measure") + String unitOfMeasure; + + private LineItem( + Long discountAmount, + Map extraParams, + String productCode, + String productName, + Long quantity, + Tax tax, + Long unitCost, + String unitOfMeasure) { + this.discountAmount = discountAmount; + this.extraParams = extraParams; + this.productCode = productCode; + this.productName = productName; + this.quantity = quantity; + this.tax = tax; + this.unitCost = unitCost; + this.unitOfMeasure = unitOfMeasure; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long discountAmount; + + private Map extraParams; + + private String productCode; + + private String productName; + + private Long quantity; + + private Tax tax; + + private Long unitCost; + + private String unitOfMeasure; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCaptureParams.AmountDetails.LineItem build() { + return new OffSessionPaymentCaptureParams.AmountDetails.LineItem( + this.discountAmount, + this.extraParams, + this.productCode, + this.productName, + this.quantity, + this.tax, + this.unitCost, + this.unitOfMeasure); + } + + /** The amount an item was discounted for. Positive integer. */ + public Builder setDiscountAmount(Long discountAmount) { + this.discountAmount = discountAmount; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCaptureParams.AmountDetails.LineItem#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCaptureParams.AmountDetails.LineItem#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Unique identifier of the product. At most 12 characters long. */ + public Builder setProductCode(String productCode) { + this.productCode = productCode; + return this; + } + + /** Required. Name of the product. At most 100 characters long. */ + public Builder setProductName(String productName) { + this.productName = productName; + return this; + } + + /** Required. Number of items of the product. Positive integer. */ + public Builder setQuantity(Long quantity) { + this.quantity = quantity; + return this; + } + + /** Contains information about the tax on the item. */ + public Builder setTax(OffSessionPaymentCaptureParams.AmountDetails.LineItem.Tax tax) { + this.tax = tax; + return this; + } + + /** Required. Cost of the product. Positive integer. */ + public Builder setUnitCost(Long unitCost) { + this.unitCost = unitCost; + return this; + } + + /** + * A unit of measure for the line item, such as gallons, feet, meters, etc. The maximum + * length is 12 characters. + */ + public Builder setUnitOfMeasure(String unitOfMeasure) { + this.unitOfMeasure = unitOfMeasure; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Tax { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. Total portion of the amount that is for tax. */ + @SerializedName("total_tax_amount") + Long totalTaxAmount; + + private Tax(Map extraParams, Long totalTaxAmount) { + this.extraParams = extraParams; + this.totalTaxAmount = totalTaxAmount; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long totalTaxAmount; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCaptureParams.AmountDetails.LineItem.Tax build() { + return new OffSessionPaymentCaptureParams.AmountDetails.LineItem.Tax( + this.extraParams, this.totalTaxAmount); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCaptureParams.AmountDetails.LineItem.Tax#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCaptureParams.AmountDetails.LineItem.Tax#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Total portion of the amount that is for tax. */ + public Builder setTotalTaxAmount(Long totalTaxAmount) { + this.totalTaxAmount = totalTaxAmount; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Shipping { + /** Portion of the amount that is for shipping. */ + @SerializedName("amount") + Long amount; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** 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; + + private Shipping( + Long amount, + Map extraParams, + String fromPostalCode, + String toPostalCode) { + this.amount = amount; + this.extraParams = extraParams; + this.fromPostalCode = fromPostalCode; + this.toPostalCode = toPostalCode; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long amount; + + private Map extraParams; + + private String fromPostalCode; + + private String toPostalCode; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCaptureParams.AmountDetails.Shipping build() { + return new OffSessionPaymentCaptureParams.AmountDetails.Shipping( + this.amount, this.extraParams, this.fromPostalCode, this.toPostalCode); + } + + /** Portion of the amount that is for shipping. */ + public Builder setAmount(Long amount) { + this.amount = amount; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCaptureParams.AmountDetails.Shipping#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCaptureParams.AmountDetails.Shipping#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** The postal code that represents the shipping source. */ + public Builder setFromPostalCode(String fromPostalCode) { + this.fromPostalCode = fromPostalCode; + return this; + } + + /** The postal code that represents the shipping destination. */ + public Builder setToPostalCode(String toPostalCode) { + this.toPostalCode = toPostalCode; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Tax { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. Total portion of the amount that is for tax. */ + @SerializedName("total_tax_amount") + Long totalTaxAmount; + + private Tax(Map extraParams, Long totalTaxAmount) { + this.extraParams = extraParams; + this.totalTaxAmount = totalTaxAmount; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long totalTaxAmount; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCaptureParams.AmountDetails.Tax build() { + return new OffSessionPaymentCaptureParams.AmountDetails.Tax( + this.extraParams, this.totalTaxAmount); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCaptureParams.AmountDetails.Tax#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCaptureParams.AmountDetails.Tax#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Total portion of the amount that is for tax. */ + public Builder setTotalTaxAmount(Long totalTaxAmount) { + this.totalTaxAmount = totalTaxAmount; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PaymentDetails { + /** + * 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; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * 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; + + private PaymentDetails( + String customerReference, Map extraParams, String orderReference) { + this.customerReference = customerReference; + this.extraParams = extraParams; + this.orderReference = orderReference; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String customerReference; + + private Map extraParams; + + private String orderReference; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCaptureParams.PaymentDetails build() { + return new OffSessionPaymentCaptureParams.PaymentDetails( + this.customerReference, this.extraParams, this.orderReference); + } + + /** + * 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. + */ + public Builder setCustomerReference(String customerReference) { + this.customerReference = customerReference; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * OffSessionPaymentCaptureParams.PaymentDetails#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link OffSessionPaymentCaptureParams.PaymentDetails#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * 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. + */ + public Builder setOrderReference(String orderReference) { + this.orderReference = orderReference; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class TransferData { diff --git a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java index 19ab90145bc..3e66d0cdb9d 100644 --- a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java +++ b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java @@ -4,7 +4,9 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; import com.stripe.v2.Amount; +import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; import lombok.EqualsAndHashCode; import lombok.Getter; @@ -16,6 +18,10 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams { @SerializedName("amount") Amount amount; + /** Provides industry-specific information about the amount. */ + @SerializedName("amount_details") + AmountDetails amountDetails; + /** * The amount of the application fee (if any) that will be requested to be applied to the payment * and transferred to the application owner's Stripe account. @@ -35,6 +41,10 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams { @SerializedName("customer") String customer; + /** An arbitrary string attached to the object. Often useful for displaying to users. */ + @SerializedName("description") + String description; + /** * Map of extra parameters for custom features not available in this client library. The content * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each @@ -58,6 +68,10 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams { @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; @@ -114,13 +128,16 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams { private OffSessionPaymentCreateParams( Amount amount, + AmountDetails amountDetails, Amount applicationFeeAmount, Cadence cadence, Capture capture, String customer, + String description, Map extraParams, Map metadata, String onBehalfOf, + PaymentDetails paymentDetails, String paymentMethod, PaymentMethodData paymentMethodData, PaymentMethodOptions paymentMethodOptions, @@ -131,13 +148,16 @@ private OffSessionPaymentCreateParams( String testClock, TransferData transferData) { this.amount = amount; + this.amountDetails = amountDetails; this.applicationFeeAmount = applicationFeeAmount; this.cadence = cadence; this.capture = capture; this.customer = customer; + this.description = description; this.extraParams = extraParams; this.metadata = metadata; this.onBehalfOf = onBehalfOf; + this.paymentDetails = paymentDetails; this.paymentMethod = paymentMethod; this.paymentMethodData = paymentMethodData; this.paymentMethodOptions = paymentMethodOptions; @@ -156,6 +176,8 @@ public static Builder builder() { public static class Builder { private Amount amount; + private AmountDetails amountDetails; + private Amount applicationFeeAmount; private Cadence cadence; @@ -164,12 +186,16 @@ public static class Builder { private String customer; + private String description; + private Map extraParams; private Map metadata; private String onBehalfOf; + private PaymentDetails paymentDetails; + private String paymentMethod; private PaymentMethodData paymentMethodData; @@ -192,13 +218,16 @@ public static class Builder { public OffSessionPaymentCreateParams build() { return new OffSessionPaymentCreateParams( this.amount, + this.amountDetails, this.applicationFeeAmount, this.cadence, this.capture, this.customer, + this.description, this.extraParams, this.metadata, this.onBehalfOf, + this.paymentDetails, this.paymentMethod, this.paymentMethodData, this.paymentMethodOptions, @@ -216,6 +245,12 @@ public Builder setAmount(Amount amount) { return this; } + /** Provides industry-specific information about the amount. */ + public Builder setAmountDetails(OffSessionPaymentCreateParams.AmountDetails amountDetails) { + this.amountDetails = amountDetails; + return this; + } + /** * The amount of the application fee (if any) that will be requested to be applied to the * payment and transferred to the application owner's Stripe account. @@ -243,6 +278,12 @@ public Builder setCustomer(String customer) { return this; } + /** An arbitrary string attached to the object. Often useful for displaying to users. */ + public Builder setDescription(String description) { + this.description = description; + return this; + } + /** * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link @@ -301,6 +342,12 @@ public Builder setOnBehalfOf(String onBehalfOf) { return this; } + /** Provides industry-specific information about the payment. */ + public Builder setPaymentDetails(OffSessionPaymentCreateParams.PaymentDetails paymentDetails) { + this.paymentDetails = paymentDetails; + return this; + } + /** ID of the payment method used in this OffSessionPayment. */ public Builder setPaymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; @@ -377,6 +424,596 @@ public Builder setTransferData(OffSessionPaymentCreateParams.TransferData transf } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AmountDetails { + /** The amount the total transaction was discounted for. */ + @SerializedName("discount_amount") + Long discountAmount; + + /** + * Set to {@code false} to return arithmetic validation errors in the response without failing + * the request. Use this when you want the operation to proceed regardless of arithmetic errors + * in the line item data. Omit or set to {@code true} to immediately return a 400 error when + * arithmetic validation fails. Use this for strict validation that prevents processing with + * line item data that has arithmetic inconsistencies. For card payments, Stripe doesn't send + * line item data to card networks if there's an arithmetic validation error. + */ + @SerializedName("enforce_arithmetic_validation") + Boolean enforceArithmeticValidation; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * A list of line items, each containing information about a product in the OffSessionPayment. + * There is a maximum of 10 line items. + */ + @SerializedName("line_items") + List lineItems; + + /** Contains information about the shipping portion of the amount. */ + @SerializedName("shipping") + Shipping shipping; + + /** Contains information about the tax portion of the amount. */ + @SerializedName("tax") + Tax tax; + + private AmountDetails( + Long discountAmount, + Boolean enforceArithmeticValidation, + Map extraParams, + List lineItems, + Shipping shipping, + Tax tax) { + this.discountAmount = discountAmount; + this.enforceArithmeticValidation = enforceArithmeticValidation; + this.extraParams = extraParams; + this.lineItems = lineItems; + this.shipping = shipping; + this.tax = tax; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long discountAmount; + + private Boolean enforceArithmeticValidation; + + private Map extraParams; + + private List lineItems; + + private Shipping shipping; + + private Tax tax; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCreateParams.AmountDetails build() { + return new OffSessionPaymentCreateParams.AmountDetails( + this.discountAmount, + this.enforceArithmeticValidation, + this.extraParams, + this.lineItems, + this.shipping, + this.tax); + } + + /** The amount the total transaction was discounted for. */ + public Builder setDiscountAmount(Long discountAmount) { + this.discountAmount = discountAmount; + return this; + } + + /** + * Set to {@code false} to return arithmetic validation errors in the response without failing + * the request. Use this when you want the operation to proceed regardless of arithmetic + * errors in the line item data. Omit or set to {@code true} to immediately return a 400 error + * when arithmetic validation fails. Use this for strict validation that prevents processing + * with line item data that has arithmetic inconsistencies. For card payments, Stripe doesn't + * send line item data to card networks if there's an arithmetic validation error. + */ + public Builder setEnforceArithmeticValidation(Boolean enforceArithmeticValidation) { + this.enforceArithmeticValidation = enforceArithmeticValidation; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * OffSessionPaymentCreateParams.AmountDetails#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link OffSessionPaymentCreateParams.AmountDetails#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * OffSessionPaymentCreateParams.AmountDetails#lineItems} for the field documentation. + */ + public Builder addLineItem(OffSessionPaymentCreateParams.AmountDetails.LineItem element) { + if (this.lineItems == null) { + this.lineItems = new ArrayList<>(); + } + this.lineItems.add(element); + return this; + } + + /** + * Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * OffSessionPaymentCreateParams.AmountDetails#lineItems} for the field documentation. + */ + public Builder addAllLineItem( + List elements) { + if (this.lineItems == null) { + this.lineItems = new ArrayList<>(); + } + this.lineItems.addAll(elements); + return this; + } + + /** Contains information about the shipping portion of the amount. */ + public Builder setShipping(OffSessionPaymentCreateParams.AmountDetails.Shipping shipping) { + this.shipping = shipping; + return this; + } + + /** Contains information about the tax portion of the amount. */ + public Builder setTax(OffSessionPaymentCreateParams.AmountDetails.Tax tax) { + this.tax = tax; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class LineItem { + /** The amount an item was discounted for. Positive integer. */ + @SerializedName("discount_amount") + Long discountAmount; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Unique identifier of the product. At most 12 characters long. */ + @SerializedName("product_code") + String productCode; + + /** Required. Name of the product. At most 100 characters long. */ + @SerializedName("product_name") + String productName; + + /** Required. Number of items of the product. Positive integer. */ + @SerializedName("quantity") + Long quantity; + + /** Contains information about the tax on the item. */ + @SerializedName("tax") + Tax tax; + + /** Required. Cost of the product. Positive integer. */ + @SerializedName("unit_cost") + Long unitCost; + + /** + * A unit of measure for the line item, such as gallons, feet, meters, etc. The maximum length + * is 12 characters. + */ + @SerializedName("unit_of_measure") + String unitOfMeasure; + + private LineItem( + Long discountAmount, + Map extraParams, + String productCode, + String productName, + Long quantity, + Tax tax, + Long unitCost, + String unitOfMeasure) { + this.discountAmount = discountAmount; + this.extraParams = extraParams; + this.productCode = productCode; + this.productName = productName; + this.quantity = quantity; + this.tax = tax; + this.unitCost = unitCost; + this.unitOfMeasure = unitOfMeasure; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long discountAmount; + + private Map extraParams; + + private String productCode; + + private String productName; + + private Long quantity; + + private Tax tax; + + private Long unitCost; + + private String unitOfMeasure; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCreateParams.AmountDetails.LineItem build() { + return new OffSessionPaymentCreateParams.AmountDetails.LineItem( + this.discountAmount, + this.extraParams, + this.productCode, + this.productName, + this.quantity, + this.tax, + this.unitCost, + this.unitOfMeasure); + } + + /** The amount an item was discounted for. Positive integer. */ + public Builder setDiscountAmount(Long discountAmount) { + this.discountAmount = discountAmount; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCreateParams.AmountDetails.LineItem#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCreateParams.AmountDetails.LineItem#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Unique identifier of the product. At most 12 characters long. */ + public Builder setProductCode(String productCode) { + this.productCode = productCode; + return this; + } + + /** Required. Name of the product. At most 100 characters long. */ + public Builder setProductName(String productName) { + this.productName = productName; + return this; + } + + /** Required. Number of items of the product. Positive integer. */ + public Builder setQuantity(Long quantity) { + this.quantity = quantity; + return this; + } + + /** Contains information about the tax on the item. */ + public Builder setTax(OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax tax) { + this.tax = tax; + return this; + } + + /** Required. Cost of the product. Positive integer. */ + public Builder setUnitCost(Long unitCost) { + this.unitCost = unitCost; + return this; + } + + /** + * A unit of measure for the line item, such as gallons, feet, meters, etc. The maximum + * length is 12 characters. + */ + public Builder setUnitOfMeasure(String unitOfMeasure) { + this.unitOfMeasure = unitOfMeasure; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Tax { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. Total portion of the amount that is for tax. */ + @SerializedName("total_tax_amount") + Long totalTaxAmount; + + private Tax(Map extraParams, Long totalTaxAmount) { + this.extraParams = extraParams; + this.totalTaxAmount = totalTaxAmount; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long totalTaxAmount; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax build() { + return new OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax( + this.extraParams, this.totalTaxAmount); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Total portion of the amount that is for tax. */ + public Builder setTotalTaxAmount(Long totalTaxAmount) { + this.totalTaxAmount = totalTaxAmount; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Shipping { + /** Portion of the amount that is for shipping. */ + @SerializedName("amount") + Long amount; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** 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; + + private Shipping( + Long amount, + Map extraParams, + String fromPostalCode, + String toPostalCode) { + this.amount = amount; + this.extraParams = extraParams; + this.fromPostalCode = fromPostalCode; + this.toPostalCode = toPostalCode; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long amount; + + private Map extraParams; + + private String fromPostalCode; + + private String toPostalCode; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCreateParams.AmountDetails.Shipping build() { + return new OffSessionPaymentCreateParams.AmountDetails.Shipping( + this.amount, this.extraParams, this.fromPostalCode, this.toPostalCode); + } + + /** Portion of the amount that is for shipping. */ + public Builder setAmount(Long amount) { + this.amount = amount; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCreateParams.AmountDetails.Shipping#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCreateParams.AmountDetails.Shipping#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** The postal code that represents the shipping source. */ + public Builder setFromPostalCode(String fromPostalCode) { + this.fromPostalCode = fromPostalCode; + return this; + } + + /** The postal code that represents the shipping destination. */ + public Builder setToPostalCode(String toPostalCode) { + this.toPostalCode = toPostalCode; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Tax { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. Total portion of the amount that is for tax. */ + @SerializedName("total_tax_amount") + Long totalTaxAmount; + + private Tax(Map extraParams, Long totalTaxAmount) { + this.extraParams = extraParams; + this.totalTaxAmount = totalTaxAmount; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long totalTaxAmount; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCreateParams.AmountDetails.Tax build() { + return new OffSessionPaymentCreateParams.AmountDetails.Tax( + this.extraParams, this.totalTaxAmount); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCreateParams.AmountDetails.Tax#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link OffSessionPaymentCreateParams.AmountDetails.Tax#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Total portion of the amount that is for tax. */ + public Builder setTotalTaxAmount(Long totalTaxAmount) { + this.totalTaxAmount = totalTaxAmount; + return this; + } + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Capture { @@ -462,6 +1099,107 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PaymentDetails { + /** + * 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; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * 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; + + private PaymentDetails( + String customerReference, Map extraParams, String orderReference) { + this.customerReference = customerReference; + this.extraParams = extraParams; + this.orderReference = orderReference; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String customerReference; + + private Map extraParams; + + private String orderReference; + + /** Finalize and obtain parameter instance from this builder. */ + public OffSessionPaymentCreateParams.PaymentDetails build() { + return new OffSessionPaymentCreateParams.PaymentDetails( + this.customerReference, this.extraParams, this.orderReference); + } + + /** + * 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. + */ + public Builder setCustomerReference(String customerReference) { + this.customerReference = customerReference; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * OffSessionPaymentCreateParams.PaymentDetails#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link OffSessionPaymentCreateParams.PaymentDetails#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * 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. + */ + public Builder setOrderReference(String orderReference) { + this.orderReference = orderReference; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class PaymentMethodData { @@ -1058,21 +1796,28 @@ public static class Card { Map extraParams; /** - * Required. If you are making a Credential On File transaction with a - * previously saved card, you should pass the Network Transaction ID from a prior initial - * authorization on Stripe (from a successful SetupIntent or a PaymentIntent with {@code - * setup_future_usage} set), or one that you have obtained from another payment processor. - * This is a token from the network which uniquely identifies the transaction. Visa calls this - * the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the - * Acquirer Reference Data. Note that you should pass in a Network Transaction ID if you have - * one, regardless of whether this is a Customer-Initiated Transaction (CIT) or a - * Merchant-Initiated Transaction (MIT). + * The merchant category code for this transaction. Used in interchange and authorization to + * improve auth rates. + */ + @SerializedName("mcc") + String mcc; + + /** + * If you are making a Credential On File transaction with a previously saved card, you should + * pass the Network Transaction ID from a prior initial authorization on Stripe (from a + * successful SetupIntent or a PaymentIntent with {@code setup_future_usage} set), or one that + * you have obtained from another payment processor. This is a token from the network which + * uniquely identifies the transaction. Visa calls this the Transaction ID, Mastercard calls + * this the Trace ID, and American Express calls this the Acquirer Reference Data. Note that + * you should pass in a Network Transaction ID if you have one, regardless of whether this is + * a Customer-Initiated Transaction (CIT) or a Merchant-Initiated Transaction (MIT). */ @SerializedName("network_transaction_id") String networkTransactionId; - private Card(Map extraParams, String networkTransactionId) { + private Card(Map extraParams, String mcc, String networkTransactionId) { this.extraParams = extraParams; + this.mcc = mcc; this.networkTransactionId = networkTransactionId; } @@ -1083,12 +1828,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private String mcc; + private String networkTransactionId; /** Finalize and obtain parameter instance from this builder. */ public OffSessionPaymentCreateParams.PaymentMethodOptions.Card build() { return new OffSessionPaymentCreateParams.PaymentMethodOptions.Card( - this.extraParams, this.networkTransactionId); + this.extraParams, this.mcc, this.networkTransactionId); } /** @@ -1120,15 +1867,24 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. If you are making a Credential On File transaction with a - * previously saved card, you should pass the Network Transaction ID from a prior initial - * authorization on Stripe (from a successful SetupIntent or a PaymentIntent with {@code - * setup_future_usage} set), or one that you have obtained from another payment processor. - * This is a token from the network which uniquely identifies the transaction. Visa calls - * this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls - * this the Acquirer Reference Data. Note that you should pass in a Network Transaction ID - * if you have one, regardless of whether this is a Customer-Initiated Transaction (CIT) or - * a Merchant-Initiated Transaction (MIT). + * The merchant category code for this transaction. Used in interchange and authorization to + * improve auth rates. + */ + public Builder setMcc(String mcc) { + this.mcc = mcc; + return this; + } + + /** + * If you are making a Credential On File transaction with a previously saved card, you + * should pass the Network Transaction ID from a prior initial authorization on Stripe (from + * a successful SetupIntent or a PaymentIntent with {@code setup_future_usage} set), or one + * that you have obtained from another payment processor. This is a token from the network + * which uniquely identifies the transaction. Visa calls this the Transaction ID, Mastercard + * calls this the Trace ID, and American Express calls this the Acquirer Reference Data. + * Note that you should pass in a Network Transaction ID if you have one, regardless of + * whether this is a Customer-Initiated Transaction (CIT) or a Merchant-Initiated + * Transaction (MIT). */ public Builder setNetworkTransactionId(String networkTransactionId) { this.networkTransactionId = networkTransactionId; diff --git a/src/main/java/com/stripe/param/v2/testhelpers/FinancialAddressCreditParams.java b/src/main/java/com/stripe/param/v2/testhelpers/FinancialAddressCreditParams.java index b76549eb9e0..2aa3b8bf5ff 100644 --- a/src/main/java/com/stripe/param/v2/testhelpers/FinancialAddressCreditParams.java +++ b/src/main/java/com/stripe/param/v2/testhelpers/FinancialAddressCreditParams.java @@ -121,6 +121,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("ach") ACH("ach"), + @SerializedName("acss") + ACSS("acss"), + @SerializedName("fps") FPS("fps"), diff --git a/src/main/java/com/stripe/service/V2Services.java b/src/main/java/com/stripe/service/V2Services.java index 70c96d016b0..a669b8da96f 100644 --- a/src/main/java/com/stripe/service/V2Services.java +++ b/src/main/java/com/stripe/service/V2Services.java @@ -13,6 +13,10 @@ public com.stripe.service.v2.BillingService billing() { return new com.stripe.service.v2.BillingService(this.getResponseGetter()); } + public com.stripe.service.v2.CommerceService commerce() { + return new com.stripe.service.v2.CommerceService(this.getResponseGetter()); + } + public com.stripe.service.v2.CoreService core() { return new com.stripe.service.v2.CoreService(this.getResponseGetter()); } @@ -21,6 +25,10 @@ public com.stripe.service.v2.DatumService data() { return new com.stripe.service.v2.DatumService(this.getResponseGetter()); } + public com.stripe.service.v2.ExtendService extend() { + return new com.stripe.service.v2.ExtendService(this.getResponseGetter()); + } + public com.stripe.service.v2.IamService iam() { return new com.stripe.service.v2.IamService(this.getResponseGetter()); } @@ -29,6 +37,14 @@ public com.stripe.service.v2.MoneyManagementService moneyManagement() { return new com.stripe.service.v2.MoneyManagementService(this.getResponseGetter()); } + public com.stripe.service.v2.NetworkService network() { + return new com.stripe.service.v2.NetworkService(this.getResponseGetter()); + } + + public com.stripe.service.v2.OrchestratedCommerceService orchestratedCommerce() { + return new com.stripe.service.v2.OrchestratedCommerceService(this.getResponseGetter()); + } + public com.stripe.service.v2.PaymentService payments() { return new com.stripe.service.v2.PaymentService(this.getResponseGetter()); } diff --git a/src/main/java/com/stripe/service/v2/CommerceService.java b/src/main/java/com/stripe/service/v2/CommerceService.java new file mode 100644 index 00000000000..75500c1055d --- /dev/null +++ b/src/main/java/com/stripe/service/v2/CommerceService.java @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2; + +import com.stripe.net.ApiService; +import com.stripe.net.StripeResponseGetter; + +public final class CommerceService extends ApiService { + public CommerceService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + public com.stripe.service.v2.commerce.ProductCatalogService productCatalog() { + return new com.stripe.service.v2.commerce.ProductCatalogService(this.getResponseGetter()); + } +} diff --git a/src/main/java/com/stripe/service/v2/CoreService.java b/src/main/java/com/stripe/service/v2/CoreService.java index f85171feb5e..68394828907 100644 --- a/src/main/java/com/stripe/service/v2/CoreService.java +++ b/src/main/java/com/stripe/service/v2/CoreService.java @@ -25,6 +25,10 @@ public com.stripe.service.v2.core.AccountService accounts() { return new com.stripe.service.v2.core.AccountService(this.getResponseGetter()); } + public com.stripe.service.v2.core.ApprovalRequestService approvalRequests() { + return new com.stripe.service.v2.core.ApprovalRequestService(this.getResponseGetter()); + } + public com.stripe.service.v2.core.BatchJobService batchJobs() { return new com.stripe.service.v2.core.BatchJobService(this.getResponseGetter()); } @@ -48,12 +52,4 @@ public com.stripe.service.v2.core.EventService events() { public com.stripe.service.v2.core.VaultService vault() { return new com.stripe.service.v2.core.VaultService(this.getResponseGetter()); } - - public com.stripe.service.v2.core.WorkflowRunService workflowRuns() { - return new com.stripe.service.v2.core.WorkflowRunService(this.getResponseGetter()); - } - - public com.stripe.service.v2.core.WorkflowService workflows() { - return new com.stripe.service.v2.core.WorkflowService(this.getResponseGetter()); - } } diff --git a/src/main/java/com/stripe/service/v2/ExtendService.java b/src/main/java/com/stripe/service/v2/ExtendService.java new file mode 100644 index 00000000000..58c3993e6b2 --- /dev/null +++ b/src/main/java/com/stripe/service/v2/ExtendService.java @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2; + +import com.stripe.net.ApiService; +import com.stripe.net.StripeResponseGetter; + +public final class ExtendService extends ApiService { + public ExtendService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + public com.stripe.service.v2.extend.WorkflowRunService workflowRuns() { + return new com.stripe.service.v2.extend.WorkflowRunService(this.getResponseGetter()); + } + + public com.stripe.service.v2.extend.WorkflowService workflows() { + return new com.stripe.service.v2.extend.WorkflowService(this.getResponseGetter()); + } +} diff --git a/src/main/java/com/stripe/service/v2/IamService.java b/src/main/java/com/stripe/service/v2/IamService.java index b78e09994f4..4b94ba2cec2 100644 --- a/src/main/java/com/stripe/service/v2/IamService.java +++ b/src/main/java/com/stripe/service/v2/IamService.java @@ -9,6 +9,10 @@ public IamService(StripeResponseGetter responseGetter) { super(responseGetter); } + public com.stripe.service.v2.iam.ActivityLogService activityLogs() { + return new com.stripe.service.v2.iam.ActivityLogService(this.getResponseGetter()); + } + public com.stripe.service.v2.iam.ApiKeyService apiKeys() { return new com.stripe.service.v2.iam.ApiKeyService(this.getResponseGetter()); } diff --git a/src/main/java/com/stripe/service/v2/NetworkService.java b/src/main/java/com/stripe/service/v2/NetworkService.java new file mode 100644 index 00000000000..c2029dc261c --- /dev/null +++ b/src/main/java/com/stripe/service/v2/NetworkService.java @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2; + +import com.stripe.net.ApiService; +import com.stripe.net.StripeResponseGetter; + +public final class NetworkService extends ApiService { + public NetworkService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + public com.stripe.service.v2.network.BusinessProfileService businessProfiles() { + return new com.stripe.service.v2.network.BusinessProfileService(this.getResponseGetter()); + } +} diff --git a/src/main/java/com/stripe/service/v2/OrchestratedCommerceService.java b/src/main/java/com/stripe/service/v2/OrchestratedCommerceService.java new file mode 100644 index 00000000000..844612d0270 --- /dev/null +++ b/src/main/java/com/stripe/service/v2/OrchestratedCommerceService.java @@ -0,0 +1,16 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2; + +import com.stripe.net.ApiService; +import com.stripe.net.StripeResponseGetter; + +public final class OrchestratedCommerceService extends ApiService { + public OrchestratedCommerceService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + public com.stripe.service.v2.orchestratedcommerce.AgreementService agreements() { + return new com.stripe.service.v2.orchestratedcommerce.AgreementService( + this.getResponseGetter()); + } +} diff --git a/src/main/java/com/stripe/service/v2/billing/MeterEventSessionService.java b/src/main/java/com/stripe/service/v2/billing/MeterEventSessionService.java index 31658d1ebc0..f583764b5ef 100644 --- a/src/main/java/com/stripe/service/v2/billing/MeterEventSessionService.java +++ b/src/main/java/com/stripe/service/v2/billing/MeterEventSessionService.java @@ -17,16 +17,16 @@ public MeterEventSessionService(StripeResponseGetter responseGetter) { /** * Creates a meter event session to send usage on the high-throughput meter event stream. - * Authentication tokens are only valid for 15 minutes, so you will need to create a new meter - * event session when your token expires. + * Authentication tokens are only valid for 15 minutes, so you need to create a new meter event + * session when your token expires. */ public MeterEventSession create() throws StripeException { return create((RequestOptions) null); } /** * Creates a meter event session to send usage on the high-throughput meter event stream. - * Authentication tokens are only valid for 15 minutes, so you will need to create a new meter - * event session when your token expires. + * Authentication tokens are only valid for 15 minutes, so you need to create a new meter event + * session when your token expires. */ public MeterEventSession create(RequestOptions options) throws StripeException { String path = "/v2/billing/meter_event_session"; diff --git a/src/main/java/com/stripe/service/v2/billing/ratecards/RateService.java b/src/main/java/com/stripe/service/v2/billing/ratecards/RateService.java index b89c10a866c..40e166ae6bf 100644 --- a/src/main/java/com/stripe/service/v2/billing/ratecards/RateService.java +++ b/src/main/java/com/stripe/service/v2/billing/ratecards/RateService.java @@ -66,15 +66,15 @@ public StripeCollection list( return this.request(request, new TypeToken>() {}.getType()); } /** - * Set the Rate for a Metered Item on the latest version of a Rate Card object. This will create a - * new Rate Card version if the Metered Item already has a rate on the Rate Card. + * Set the Rate for a Metered Item on the latest version of a Rate Card object. This creates a new + * Rate Card version if the Metered Item already has a rate on the Rate Card. */ public RateCardRate create(String rateCardId, RateCreateParams params) throws StripeException { return create(rateCardId, params, (RequestOptions) null); } /** - * Set the Rate for a Metered Item on the latest version of a Rate Card object. This will create a - * new Rate Card version if the Metered Item already has a rate on the Rate Card. + * Set the Rate for a Metered Item on the latest version of a Rate Card object. This creates a new + * Rate Card version if the Metered Item already has a rate on the Rate Card. */ public RateCardRate create(String rateCardId, RateCreateParams params, RequestOptions options) throws StripeException { @@ -90,14 +90,14 @@ public RateCardRate create(String rateCardId, RateCreateParams params, RequestOp return this.request(request, RateCardRate.class); } /** - * Remove an existing Rate from a Rate Card. This will create a new Rate Card Version without that + * Remove an existing Rate from a Rate Card. This creates a new Rate Card Version without that * Rate. */ public DeletedObject delete(String rateCardId, String id) throws StripeException { return delete(rateCardId, id, (RequestOptions) null); } /** - * Remove an existing Rate from a Rate Card. This will create a new Rate Card Version without that + * Remove an existing Rate from a Rate Card. This creates a new Rate Card Version without that * Rate. */ public DeletedObject delete(String rateCardId, String id, RequestOptions options) diff --git a/src/main/java/com/stripe/service/v2/commerce/ProductCatalogService.java b/src/main/java/com/stripe/service/v2/commerce/ProductCatalogService.java new file mode 100644 index 00000000000..a122b86b99a --- /dev/null +++ b/src/main/java/com/stripe/service/v2/commerce/ProductCatalogService.java @@ -0,0 +1,16 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2.commerce; + +import com.stripe.net.ApiService; +import com.stripe.net.StripeResponseGetter; + +public final class ProductCatalogService extends ApiService { + public ProductCatalogService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + public com.stripe.service.v2.commerce.productcatalog.ImportService imports() { + return new com.stripe.service.v2.commerce.productcatalog.ImportService( + this.getResponseGetter()); + } +} diff --git a/src/main/java/com/stripe/service/v2/commerce/productcatalog/ImportService.java b/src/main/java/com/stripe/service/v2/commerce/productcatalog/ImportService.java new file mode 100644 index 00000000000..43e0d403812 --- /dev/null +++ b/src/main/java/com/stripe/service/v2/commerce/productcatalog/ImportService.java @@ -0,0 +1,80 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2.commerce.productcatalog; + +import com.google.gson.reflect.TypeToken; +import com.stripe.exception.StripeException; +import com.stripe.model.v2.StripeCollection; +import com.stripe.model.v2.commerce.ProductCatalogImport; +import com.stripe.net.ApiRequest; +import com.stripe.net.ApiRequestParams; +import com.stripe.net.ApiResource; +import com.stripe.net.ApiService; +import com.stripe.net.BaseAddress; +import com.stripe.net.RequestOptions; +import com.stripe.net.StripeResponseGetter; +import com.stripe.param.v2.commerce.productcatalog.ImportCreateParams; +import com.stripe.param.v2.commerce.productcatalog.ImportListParams; + +public final class ImportService extends ApiService { + public ImportService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** Returns a list of ProductCatalogImport objects. */ + public StripeCollection list(ImportListParams params) + throws StripeException { + return list(params, (RequestOptions) null); + } + /** Returns a list of ProductCatalogImport objects. */ + public StripeCollection list(RequestOptions options) + throws StripeException { + return list((ImportListParams) null, options); + } + /** Returns a list of ProductCatalogImport objects. */ + public StripeCollection list() throws StripeException { + return list((ImportListParams) null, (RequestOptions) null); + } + /** Returns a list of ProductCatalogImport objects. */ + public StripeCollection list( + ImportListParams params, RequestOptions options) throws StripeException { + String path = "/v2/commerce/product_catalog/imports"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request( + request, new TypeToken>() {}.getType()); + } + /** Creates a ProductCatalogImport. */ + public ProductCatalogImport create(ImportCreateParams params) throws StripeException { + return create(params, (RequestOptions) null); + } + /** Creates a ProductCatalogImport. */ + public ProductCatalogImport create(ImportCreateParams params, RequestOptions options) + throws StripeException { + String path = "/v2/commerce/product_catalog/imports"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, ProductCatalogImport.class); + } + /** Retrieves a ProductCatalogImport by ID. */ + public ProductCatalogImport retrieve(String id) throws StripeException { + return retrieve(id, (RequestOptions) null); + } + /** Retrieves a ProductCatalogImport by ID. */ + public ProductCatalogImport retrieve(String id, RequestOptions options) throws StripeException { + String path = + String.format("/v2/commerce/product_catalog/imports/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); + return this.request(request, ProductCatalogImport.class); + } +} diff --git a/src/main/java/com/stripe/service/v2/core/ApprovalRequestService.java b/src/main/java/com/stripe/service/v2/core/ApprovalRequestService.java new file mode 100644 index 00000000000..b0f2a9e2a3f --- /dev/null +++ b/src/main/java/com/stripe/service/v2/core/ApprovalRequestService.java @@ -0,0 +1,124 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2.core; + +import com.google.gson.reflect.TypeToken; +import com.stripe.exception.StripeException; +import com.stripe.model.v2.StripeCollection; +import com.stripe.model.v2.core.ApprovalRequest; +import com.stripe.net.ApiRequest; +import com.stripe.net.ApiRequestParams; +import com.stripe.net.ApiResource; +import com.stripe.net.ApiService; +import com.stripe.net.BaseAddress; +import com.stripe.net.RequestOptions; +import com.stripe.net.StripeResponseGetter; +import com.stripe.param.v2.core.ApprovalRequestListParams; +import com.stripe.param.v2.core.ApprovalRequestSubmitParams; + +public final class ApprovalRequestService extends ApiService { + public ApprovalRequestService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** GET /v2/core/approval_requests Lists approval requests with optional filtering. */ + public StripeCollection list(ApprovalRequestListParams params) + throws StripeException { + return list(params, (RequestOptions) null); + } + /** GET /v2/core/approval_requests Lists approval requests with optional filtering. */ + public StripeCollection list(RequestOptions options) throws StripeException { + return list((ApprovalRequestListParams) null, options); + } + /** GET /v2/core/approval_requests Lists approval requests with optional filtering. */ + public StripeCollection list() throws StripeException { + return list((ApprovalRequestListParams) null, (RequestOptions) null); + } + /** GET /v2/core/approval_requests Lists approval requests with optional filtering. */ + public StripeCollection list( + ApprovalRequestListParams params, RequestOptions options) throws StripeException { + String path = "/v2/core/approval_requests"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, new TypeToken>() {}.getType()); + } + /** GET /v2/core/approval_requests/:id Retrieves an approval request by ID. */ + public ApprovalRequest retrieve(String id) throws StripeException { + return retrieve(id, (RequestOptions) null); + } + /** GET /v2/core/approval_requests/:id Retrieves an approval request by ID. */ + public ApprovalRequest retrieve(String id, RequestOptions options) throws StripeException { + String path = String.format("/v2/core/approval_requests/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); + return this.request(request, ApprovalRequest.class); + } + /** POST /v2/core/approval_requests/:id/cancel Cancels a pending approval request. */ + public ApprovalRequest cancel(String id) throws StripeException { + return cancel(id, (RequestOptions) null); + } + /** POST /v2/core/approval_requests/:id/cancel Cancels a pending approval request. */ + public ApprovalRequest cancel(String id, RequestOptions options) throws StripeException { + String path = + String.format("/v2/core/approval_requests/%s/cancel", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, null, options); + return this.request(request, ApprovalRequest.class); + } + /** POST /v2/core/approval_requests/:id/execute Executes an approved approval request. */ + public ApprovalRequest execute(String id) throws StripeException { + return execute(id, (RequestOptions) null); + } + /** POST /v2/core/approval_requests/:id/execute Executes an approved approval request. */ + public ApprovalRequest execute(String id, RequestOptions options) throws StripeException { + String path = + String.format("/v2/core/approval_requests/%s/execute", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, null, options); + return this.request(request, ApprovalRequest.class); + } + /** + * POST /v2/core/approval_requests/:id/submit Moves a pending approval request into the reviewer + * queue for auto-execution upon approval. + */ + public ApprovalRequest submit(String id, ApprovalRequestSubmitParams params) + throws StripeException { + return submit(id, params, (RequestOptions) null); + } + /** + * POST /v2/core/approval_requests/:id/submit Moves a pending approval request into the reviewer + * queue for auto-execution upon approval. + */ + public ApprovalRequest submit(String id, RequestOptions options) throws StripeException { + return submit(id, (ApprovalRequestSubmitParams) null, options); + } + /** + * POST /v2/core/approval_requests/:id/submit Moves a pending approval request into the reviewer + * queue for auto-execution upon approval. + */ + public ApprovalRequest submit(String id) throws StripeException { + return submit(id, (ApprovalRequestSubmitParams) null, (RequestOptions) null); + } + /** + * POST /v2/core/approval_requests/:id/submit Moves a pending approval request into the reviewer + * queue for auto-execution upon approval. + */ + public ApprovalRequest submit( + String id, ApprovalRequestSubmitParams params, RequestOptions options) + throws StripeException { + String path = + String.format("/v2/core/approval_requests/%s/submit", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, ApprovalRequest.class); + } +} diff --git a/src/main/java/com/stripe/service/v2/core/ClaimableSandboxService.java b/src/main/java/com/stripe/service/v2/core/ClaimableSandboxService.java index 1b446abbd10..66895f66e91 100644 --- a/src/main/java/com/stripe/service/v2/core/ClaimableSandboxService.java +++ b/src/main/java/com/stripe/service/v2/core/ClaimableSandboxService.java @@ -11,6 +11,7 @@ import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponseGetter; import com.stripe.param.v2.core.ClaimableSandboxCreateParams; +import com.stripe.param.v2.core.ClaimableSandboxRenewOnboardingLinkParams; public final class ClaimableSandboxService extends ApiService { public ClaimableSandboxService(StripeResponseGetter responseGetter) { @@ -59,4 +60,51 @@ public ClaimableSandbox retrieve(String id, RequestOptions options) throws Strip new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); return this.request(request, ClaimableSandbox.class); } + /** + * Renew the claimable sandbox onboarding link. This will invalidate any existing onboarding + * links. The endpoint only works on a claimable sandbox with status {@code unclaimed} or {@code + * claimed}. + */ + public ClaimableSandbox renewOnboardingLink( + String id, ClaimableSandboxRenewOnboardingLinkParams params) throws StripeException { + return renewOnboardingLink(id, params, (RequestOptions) null); + } + /** + * Renew the claimable sandbox onboarding link. This will invalidate any existing onboarding + * links. The endpoint only works on a claimable sandbox with status {@code unclaimed} or {@code + * claimed}. + */ + public ClaimableSandbox renewOnboardingLink(String id, RequestOptions options) + throws StripeException { + return renewOnboardingLink(id, (ClaimableSandboxRenewOnboardingLinkParams) null, options); + } + /** + * Renew the claimable sandbox onboarding link. This will invalidate any existing onboarding + * links. The endpoint only works on a claimable sandbox with status {@code unclaimed} or {@code + * claimed}. + */ + public ClaimableSandbox renewOnboardingLink(String id) throws StripeException { + return renewOnboardingLink( + id, (ClaimableSandboxRenewOnboardingLinkParams) null, (RequestOptions) null); + } + /** + * Renew the claimable sandbox onboarding link. This will invalidate any existing onboarding + * links. The endpoint only works on a claimable sandbox with status {@code unclaimed} or {@code + * claimed}. + */ + public ClaimableSandbox renewOnboardingLink( + String id, ClaimableSandboxRenewOnboardingLinkParams params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v2/core/claimable_sandboxes/%s/renew_onboarding_link", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, ClaimableSandbox.class); + } } diff --git a/src/main/java/com/stripe/service/v2/core/accounts/PersonTokenService.java b/src/main/java/com/stripe/service/v2/core/accounts/PersonTokenService.java index b6180a4b7d7..e2564c1cdcf 100644 --- a/src/main/java/com/stripe/service/v2/core/accounts/PersonTokenService.java +++ b/src/main/java/com/stripe/service/v2/core/accounts/PersonTokenService.java @@ -18,21 +18,45 @@ public PersonTokenService(StripeResponseGetter responseGetter) { super(responseGetter); } - /** Creates a Person Token associated with an Account. */ + /** + * Creates a single-use token that represents the details for a person. Use this when you create + * or update persons associated with an Account v2. Learn more about account tokens. You can only create + * person tokens with your application's publishable key and in live mode. You can use your + * application's secret key to create person tokens only in test mode. + */ public AccountPersonToken create(String accountId, PersonTokenCreateParams params) throws StripeException, RateLimitException { return create(accountId, params, (RequestOptions) null); } - /** Creates a Person Token associated with an Account. */ + /** + * Creates a single-use token that represents the details for a person. Use this when you create + * or update persons associated with an Account v2. Learn more about account tokens. You can only create + * person tokens with your application's publishable key and in live mode. You can use your + * application's secret key to create person tokens only in test mode. + */ public AccountPersonToken create(String accountId, RequestOptions options) throws StripeException, RateLimitException { return create(accountId, (PersonTokenCreateParams) null, options); } - /** Creates a Person Token associated with an Account. */ + /** + * Creates a single-use token that represents the details for a person. Use this when you create + * or update persons associated with an Account v2. Learn more about account tokens. You can only create + * person tokens with your application's publishable key and in live mode. You can use your + * application's secret key to create person tokens only in test mode. + */ public AccountPersonToken create(String accountId) throws StripeException, RateLimitException { return create(accountId, (PersonTokenCreateParams) null, (RequestOptions) null); } - /** Creates a Person Token associated with an Account. */ + /** + * Creates a single-use token that represents the details for a person. Use this when you create + * or update persons associated with an Account v2. Learn more about account tokens. You can only create + * person tokens with your application's publishable key and in live mode. You can use your + * application's secret key to create person tokens only in test mode. + */ public AccountPersonToken create( String accountId, PersonTokenCreateParams params, RequestOptions options) throws StripeException, RateLimitException { diff --git a/src/main/java/com/stripe/service/v2/core/WorkflowRunService.java b/src/main/java/com/stripe/service/v2/extend/WorkflowRunService.java similarity index 73% rename from src/main/java/com/stripe/service/v2/core/WorkflowRunService.java rename to src/main/java/com/stripe/service/v2/extend/WorkflowRunService.java index 424d714dced..d19fd3c485b 100644 --- a/src/main/java/com/stripe/service/v2/core/WorkflowRunService.java +++ b/src/main/java/com/stripe/service/v2/extend/WorkflowRunService.java @@ -1,10 +1,10 @@ // File generated from our OpenAPI spec -package com.stripe.service.v2.core; +package com.stripe.service.v2.extend; import com.google.gson.reflect.TypeToken; import com.stripe.exception.StripeException; import com.stripe.model.v2.StripeCollection; -import com.stripe.model.v2.core.WorkflowRun; +import com.stripe.model.v2.extend.WorkflowRun; import com.stripe.net.ApiRequest; import com.stripe.net.ApiRequestParams; import com.stripe.net.ApiResource; @@ -12,7 +12,7 @@ import com.stripe.net.BaseAddress; import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponseGetter; -import com.stripe.param.v2.core.WorkflowRunListParams; +import com.stripe.param.v2.extend.WorkflowRunListParams; public final class WorkflowRunService extends ApiService { public WorkflowRunService(StripeResponseGetter responseGetter) { @@ -24,9 +24,17 @@ public StripeCollection list(WorkflowRunListParams params) throws S return list(params, (RequestOptions) null); } /** List all Workflow Runs. */ + public StripeCollection list(RequestOptions options) throws StripeException { + return list((WorkflowRunListParams) null, options); + } + /** List all Workflow Runs. */ + public StripeCollection list() throws StripeException { + return list((WorkflowRunListParams) null, (RequestOptions) null); + } + /** List all Workflow Runs. */ public StripeCollection list(WorkflowRunListParams params, RequestOptions options) throws StripeException { - String path = "/v2/core/workflow_runs"; + String path = "/v2/extend/workflow_runs"; ApiRequest request = new ApiRequest( BaseAddress.API, @@ -42,7 +50,7 @@ public WorkflowRun retrieve(String id) throws StripeException { } /** Retrieves the details of a Workflow Run by ID. */ public WorkflowRun retrieve(String id, RequestOptions options) throws StripeException { - String path = String.format("/v2/core/workflow_runs/%s", ApiResource.urlEncodeId(id)); + String path = String.format("/v2/extend/workflow_runs/%s", ApiResource.urlEncodeId(id)); ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); return this.request(request, WorkflowRun.class); diff --git a/src/main/java/com/stripe/service/v2/core/WorkflowService.java b/src/main/java/com/stripe/service/v2/extend/WorkflowService.java similarity index 70% rename from src/main/java/com/stripe/service/v2/core/WorkflowService.java rename to src/main/java/com/stripe/service/v2/extend/WorkflowService.java index b6ff580a336..f7145ae6c31 100644 --- a/src/main/java/com/stripe/service/v2/core/WorkflowService.java +++ b/src/main/java/com/stripe/service/v2/extend/WorkflowService.java @@ -1,11 +1,12 @@ // File generated from our OpenAPI spec -package com.stripe.service.v2.core; +package com.stripe.service.v2.extend; import com.google.gson.reflect.TypeToken; +import com.stripe.exception.CannotProceedException; import com.stripe.exception.StripeException; import com.stripe.model.v2.StripeCollection; -import com.stripe.model.v2.core.Workflow; -import com.stripe.model.v2.core.WorkflowRun; +import com.stripe.model.v2.extend.Workflow; +import com.stripe.model.v2.extend.WorkflowRun; import com.stripe.net.ApiRequest; import com.stripe.net.ApiRequestParams; import com.stripe.net.ApiResource; @@ -13,8 +14,8 @@ import com.stripe.net.BaseAddress; import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponseGetter; -import com.stripe.param.v2.core.WorkflowInvokeParams; -import com.stripe.param.v2.core.WorkflowListParams; +import com.stripe.param.v2.extend.WorkflowInvokeParams; +import com.stripe.param.v2.extend.WorkflowListParams; public final class WorkflowService extends ApiService { public WorkflowService(StripeResponseGetter responseGetter) { @@ -26,9 +27,17 @@ public StripeCollection list(WorkflowListParams params) throws StripeE return list(params, (RequestOptions) null); } /** List all Workflows. */ + public StripeCollection list(RequestOptions options) throws StripeException { + return list((WorkflowListParams) null, options); + } + /** List all Workflows. */ + public StripeCollection list() throws StripeException { + return list((WorkflowListParams) null, (RequestOptions) null); + } + /** List all Workflows. */ public StripeCollection list(WorkflowListParams params, RequestOptions options) throws StripeException { - String path = "/v2/core/workflows"; + String path = "/v2/extend/workflows"; ApiRequest request = new ApiRequest( BaseAddress.API, @@ -44,19 +53,20 @@ public Workflow retrieve(String id) throws StripeException { } /** Retrieves the details of a Workflow by ID. */ public Workflow retrieve(String id, RequestOptions options) throws StripeException { - String path = String.format("/v2/core/workflows/%s", ApiResource.urlEncodeId(id)); + String path = String.format("/v2/extend/workflows/%s", ApiResource.urlEncodeId(id)); ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); return this.request(request, Workflow.class); } /** Invokes an on-demand Workflow with parameters, to launch a new Workflow Run. */ - public WorkflowRun invoke(String id, WorkflowInvokeParams params) throws StripeException { + public WorkflowRun invoke(String id, WorkflowInvokeParams params) + throws StripeException, CannotProceedException { return invoke(id, params, (RequestOptions) null); } /** Invokes an on-demand Workflow with parameters, to launch a new Workflow Run. */ public WorkflowRun invoke(String id, WorkflowInvokeParams params, RequestOptions options) - throws StripeException { - String path = String.format("/v2/core/workflows/%s/invoke", ApiResource.urlEncodeId(id)); + throws StripeException, CannotProceedException { + String path = String.format("/v2/extend/workflows/%s/invoke", ApiResource.urlEncodeId(id)); ApiRequest request = new ApiRequest( BaseAddress.API, diff --git a/src/main/java/com/stripe/service/v2/iam/ActivityLogService.java b/src/main/java/com/stripe/service/v2/iam/ActivityLogService.java new file mode 100644 index 00000000000..ce305b51b32 --- /dev/null +++ b/src/main/java/com/stripe/service/v2/iam/ActivityLogService.java @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2.iam; + +import com.google.gson.reflect.TypeToken; +import com.stripe.exception.StripeException; +import com.stripe.model.v2.StripeCollection; +import com.stripe.model.v2.iam.ActivityLog; +import com.stripe.net.ApiRequest; +import com.stripe.net.ApiRequestParams; +import com.stripe.net.ApiResource; +import com.stripe.net.ApiService; +import com.stripe.net.BaseAddress; +import com.stripe.net.RequestOptions; +import com.stripe.net.StripeResponseGetter; +import com.stripe.param.v2.iam.ActivityLogListParams; + +public final class ActivityLogService extends ApiService { + public ActivityLogService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** List activity logs of an account. */ + public StripeCollection list(ActivityLogListParams params) throws StripeException { + return list(params, (RequestOptions) null); + } + /** List activity logs of an account. */ + public StripeCollection list(RequestOptions options) throws StripeException { + return list((ActivityLogListParams) null, options); + } + /** List activity logs of an account. */ + public StripeCollection list() throws StripeException { + return list((ActivityLogListParams) null, (RequestOptions) null); + } + /** List activity logs of an account. */ + public StripeCollection list(ActivityLogListParams params, RequestOptions options) + throws StripeException { + String path = "/v2/iam/activity_logs"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, new TypeToken>() {}.getType()); + } +} diff --git a/src/main/java/com/stripe/service/v2/moneymanagement/CurrencyConversionService.java b/src/main/java/com/stripe/service/v2/moneymanagement/CurrencyConversionService.java index 8a7684520c5..d76afbe8945 100644 --- a/src/main/java/com/stripe/service/v2/moneymanagement/CurrencyConversionService.java +++ b/src/main/java/com/stripe/service/v2/moneymanagement/CurrencyConversionService.java @@ -3,6 +3,7 @@ import com.google.gson.reflect.TypeToken; import com.stripe.exception.FeatureNotEnabledException; +import com.stripe.exception.FxQuoteExpiredException; import com.stripe.exception.StripeException; import com.stripe.model.v2.StripeCollection; import com.stripe.model.v2.moneymanagement.CurrencyConversion; @@ -50,12 +51,12 @@ public StripeCollection list( } /** Create a CurrencyConversion. */ public CurrencyConversion create(CurrencyConversionCreateParams params) - throws StripeException, FeatureNotEnabledException { + throws StripeException, FxQuoteExpiredException, FeatureNotEnabledException { return create(params, (RequestOptions) null); } /** Create a CurrencyConversion. */ public CurrencyConversion create(CurrencyConversionCreateParams params, RequestOptions options) - throws StripeException, FeatureNotEnabledException { + throws StripeException, FxQuoteExpiredException, FeatureNotEnabledException { String path = "/v2/money_management/currency_conversions"; ApiRequest request = new ApiRequest( diff --git a/src/main/java/com/stripe/service/v2/network/BusinessProfileService.java b/src/main/java/com/stripe/service/v2/network/BusinessProfileService.java new file mode 100644 index 00000000000..c67102754e3 --- /dev/null +++ b/src/main/java/com/stripe/service/v2/network/BusinessProfileService.java @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2.network; + +import com.stripe.exception.StripeException; +import com.stripe.model.v2.network.BusinessProfile; +import com.stripe.net.ApiRequest; +import com.stripe.net.ApiResource; +import com.stripe.net.ApiService; +import com.stripe.net.BaseAddress; +import com.stripe.net.RequestOptions; +import com.stripe.net.StripeResponseGetter; + +public final class BusinessProfileService extends ApiService { + public BusinessProfileService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** Retrieve the Stripe profile associated with the requesting merchant and livemode. */ + public BusinessProfile me() throws StripeException { + return me((RequestOptions) null); + } + /** Retrieve the Stripe profile associated with the requesting merchant and livemode. */ + public BusinessProfile me(RequestOptions options) throws StripeException { + String path = "/v2/network/business_profiles/me"; + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); + return this.request(request, BusinessProfile.class); + } + /** Retrieve a Stripe profile by its Network ID. */ + public BusinessProfile retrieve(String id) throws StripeException { + return retrieve(id, (RequestOptions) null); + } + /** Retrieve a Stripe profile by its Network ID. */ + public BusinessProfile retrieve(String id, RequestOptions options) throws StripeException { + String path = String.format("/v2/network/business_profiles/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); + return this.request(request, BusinessProfile.class); + } +} diff --git a/src/main/java/com/stripe/service/v2/orchestratedcommerce/AgreementService.java b/src/main/java/com/stripe/service/v2/orchestratedcommerce/AgreementService.java new file mode 100644 index 00000000000..ad906ee45ad --- /dev/null +++ b/src/main/java/com/stripe/service/v2/orchestratedcommerce/AgreementService.java @@ -0,0 +1,103 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2.orchestratedcommerce; + +import com.google.gson.reflect.TypeToken; +import com.stripe.exception.StripeException; +import com.stripe.model.v2.StripeCollection; +import com.stripe.model.v2.orchestratedcommerce.Agreement; +import com.stripe.net.ApiRequest; +import com.stripe.net.ApiRequestParams; +import com.stripe.net.ApiResource; +import com.stripe.net.ApiService; +import com.stripe.net.BaseAddress; +import com.stripe.net.RequestOptions; +import com.stripe.net.StripeResponseGetter; +import com.stripe.param.v2.orchestratedcommerce.AgreementCreateParams; +import com.stripe.param.v2.orchestratedcommerce.AgreementListParams; + +public final class AgreementService extends ApiService { + public AgreementService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** List Agreements for the profile associated with the authenticated merchant. */ + public StripeCollection list(AgreementListParams params) throws StripeException { + return list(params, (RequestOptions) null); + } + /** List Agreements for the profile associated with the authenticated merchant. */ + public StripeCollection list(RequestOptions options) throws StripeException { + return list((AgreementListParams) null, options); + } + /** List Agreements for the profile associated with the authenticated merchant. */ + public StripeCollection list() throws StripeException { + return list((AgreementListParams) null, (RequestOptions) null); + } + /** List Agreements for the profile associated with the authenticated merchant. */ + public StripeCollection list(AgreementListParams params, RequestOptions options) + throws StripeException { + String path = "/v2/orchestrated_commerce/agreements"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, new TypeToken>() {}.getType()); + } + /** Create a new Agreement. */ + public Agreement create(AgreementCreateParams params) throws StripeException { + return create(params, (RequestOptions) null); + } + /** Create a new Agreement. */ + public Agreement create(AgreementCreateParams params, RequestOptions options) + throws StripeException { + String path = "/v2/orchestrated_commerce/agreements"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, Agreement.class); + } + /** Retrieve an Agreement by ID. */ + public Agreement retrieve(String id) throws StripeException { + return retrieve(id, (RequestOptions) null); + } + /** Retrieve an Agreement by ID. */ + public Agreement retrieve(String id, RequestOptions options) throws StripeException { + String path = + String.format("/v2/orchestrated_commerce/agreements/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); + return this.request(request, Agreement.class); + } + /** Confirm an Agreement. */ + public Agreement confirm(String id) throws StripeException { + return confirm(id, (RequestOptions) null); + } + /** Confirm an Agreement. */ + public Agreement confirm(String id, RequestOptions options) throws StripeException { + String path = + String.format( + "/v2/orchestrated_commerce/agreements/%s/confirm", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, null, options); + return this.request(request, Agreement.class); + } + /** Terminate an Agreement. */ + public Agreement terminate(String id) throws StripeException { + return terminate(id, (RequestOptions) null); + } + /** Terminate an Agreement. */ + public Agreement terminate(String id, RequestOptions options) throws StripeException { + String path = + String.format( + "/v2/orchestrated_commerce/agreements/%s/terminate", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, null, options); + return this.request(request, Agreement.class); + } +} diff --git a/src/test/java/com/stripe/functional/GeneratedExamples.java b/src/test/java/com/stripe/functional/GeneratedExamples.java index 0a1650ea1fc..e6d2eec02fb 100644 --- a/src/test/java/com/stripe/functional/GeneratedExamples.java +++ b/src/test/java/com/stripe/functional/GeneratedExamples.java @@ -3211,7 +3211,7 @@ public void testCoreEventsGetServices() throws StripeException { null, null, com.stripe.model.v2.core.Event.class, - "{\"object\":\"v2.core.event\",\"changes\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"reason\":{\"request\":{\"client\":{\"api_key\":{\"id\":\"obj_123\"},\"dashboard_user\":{\"email\":\"email\",\"ip_address\":\"ip_address\",\"machine_identifier\":\"machine_identifier\"},\"stripe_action\":{},\"type\":\"api_key\"},\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"},\"type\":\"request\"},\"type\":\"type\"}"); + "{\"object\":\"v2.core.event\",\"changes\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"reason\":{\"request\":{\"client\":{\"api_key\":{\"id\":\"obj_123\"},\"dashboard_user\":{\"email\":\"email\",\"ip_address\":\"ip_address\",\"machine_identifier\":\"machine_identifier\"},\"stripe_action\":{},\"type\":\"api_key\"},\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"},\"type\":\"request\"},\"snapshot_event\":\"snapshot_event\",\"type\":\"type\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.EventRetrieveParams params = @@ -27386,6 +27386,88 @@ public void testV2BillingServiceActionPost2Services() throws StripeException { null); } + @Test + public void testV2CommerceProductCatalogImportGetServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/commerce/product_catalog/imports", + null, + null, + new TypeToken< + com.stripe.model.v2.StripeCollection< + com.stripe.model.v2.commerce.ProductCatalogImport>>() {}.getType(), + "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.commerce.productcatalog.ImportListParams params = + com.stripe.param.v2.commerce.productcatalog.ImportListParams.builder().build(); + + com.stripe.model.v2.StripeCollection + stripeCollection = client.v2().commerce().productCatalog().imports().list(params); + assertNotNull(stripeCollection); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/commerce/product_catalog/imports", + params.toMap(), + null); + } + + @Test + public void testV2CommerceProductCatalogImportPostServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/commerce/product_catalog/imports", + null, + null, + com.stripe.model.v2.commerce.ProductCatalogImport.class, + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.commerce.productcatalog.ImportCreateParams params = + com.stripe.param.v2.commerce.productcatalog.ImportCreateParams.builder() + .setFeedType( + com.stripe.param.v2.commerce.productcatalog.ImportCreateParams.FeedType.PRICING) + .putMetadata("key", "metadata") + .setMode(com.stripe.param.v2.commerce.productcatalog.ImportCreateParams.Mode.UPSERT) + .build(); + + com.stripe.model.v2.commerce.ProductCatalogImport productCatalogImport = + client.v2().commerce().productCatalog().imports().create(params); + assertNotNull(productCatalogImport); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/commerce/product_catalog/imports", + params.toMap(), + null); + } + + @Test + public void testV2CommerceProductCatalogImportGet2Services() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/commerce/product_catalog/imports/id_123", + null, + null, + com.stripe.model.v2.commerce.ProductCatalogImport.class, + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.commerce.ProductCatalogImport productCatalogImport = + client.v2().commerce().productCatalog().imports().retrieve("id_123"); + assertNotNull(productCatalogImport); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/commerce/product_catalog/imports/id_123", + null, + null); + } + @Test public void testV2CoreAccountGetServices() throws StripeException { stubRequest( @@ -27878,6 +27960,129 @@ public void testV2CoreAccountTokenGetServices() throws StripeException { null); } + @Test + public void testV2CoreApprovalRequestGetServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/core/approval_requests", + null, + null, + new TypeToken< + com.stripe.model.v2.StripeCollection< + com.stripe.model.v2.core.ApprovalRequest>>() {}.getType(), + "{\"data\":[{\"object\":\"v2.core.approval_request\",\"action\":\"refund.create\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"requested_by\":{\"id\":\"obj_123\"},\"status\":\"failed\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.core.ApprovalRequestListParams params = + com.stripe.param.v2.core.ApprovalRequestListParams.builder().build(); + + com.stripe.model.v2.StripeCollection + stripeCollection = client.v2().core().approvalRequests().list(params); + assertNotNull(stripeCollection); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/core/approval_requests", + params.toMap(), + null); + } + + @Test + public void testV2CoreApprovalRequestGet2Services() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/core/approval_requests/id_123", + null, + null, + com.stripe.model.v2.core.ApprovalRequest.class, + "{\"object\":\"v2.core.approval_request\",\"action\":\"refund.create\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"requested_by\":{\"id\":\"obj_123\"},\"status\":\"failed\"}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.core.ApprovalRequest approvalRequest = + client.v2().core().approvalRequests().retrieve("id_123"); + assertNotNull(approvalRequest); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/core/approval_requests/id_123", + null, + null); + } + + @Test + public void testV2CoreApprovalRequestPostServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/approval_requests/id_123/cancel", + null, + null, + com.stripe.model.v2.core.ApprovalRequest.class, + "{\"object\":\"v2.core.approval_request\",\"action\":\"refund.create\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"requested_by\":{\"id\":\"obj_123\"},\"status\":\"failed\"}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.core.ApprovalRequest approvalRequest = + client.v2().core().approvalRequests().cancel("id_123"); + assertNotNull(approvalRequest); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/approval_requests/id_123/cancel", + null, + null); + } + + @Test + public void testV2CoreApprovalRequestPost2Services() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/approval_requests/id_123/execute", + null, + null, + com.stripe.model.v2.core.ApprovalRequest.class, + "{\"object\":\"v2.core.approval_request\",\"action\":\"refund.create\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"requested_by\":{\"id\":\"obj_123\"},\"status\":\"failed\"}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.core.ApprovalRequest approvalRequest = + client.v2().core().approvalRequests().execute("id_123"); + assertNotNull(approvalRequest); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/approval_requests/id_123/execute", + null, + null); + } + + @Test + public void testV2CoreApprovalRequestPost3Services() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/approval_requests/id_123/submit", + null, + null, + com.stripe.model.v2.core.ApprovalRequest.class, + "{\"object\":\"v2.core.approval_request\",\"action\":\"refund.create\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"requested_by\":{\"id\":\"obj_123\"},\"status\":\"failed\"}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.core.ApprovalRequestSubmitParams params = + com.stripe.param.v2.core.ApprovalRequestSubmitParams.builder().build(); + + com.stripe.model.v2.core.ApprovalRequest approvalRequest = + client.v2().core().approvalRequests().submit("id_123", params); + assertNotNull(approvalRequest); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/approval_requests/id_123/submit", + params.toMap(), + null); + } + @Test public void testV2CoreBatchJobPostServices() throws StripeException { stubRequest( @@ -27895,7 +28100,7 @@ public void testV2CoreBatchJobPostServices() throws StripeException { .setEndpoint( com.stripe.param.v2.core.BatchJobCreateParams.Endpoint.builder() .setHttpMethod( - com.stripe.param.v2.core.BatchJobCreateParams.Endpoint.HttpMethod.POST) + com.stripe.param.v2.core.BatchJobCreateParams.Endpoint.HttpMethod.DELETE) .setPath( com.stripe.param.v2.core.BatchJobCreateParams.Endpoint.Path .V1_SUBSCRIPTION_SCHEDULE_CREATE) @@ -27963,12 +28168,17 @@ public void testV2CoreClaimableSandboxPostServices() throws StripeException { null, null, com.stripe.model.v2.core.ClaimableSandbox.class, - "{\"object\":\"v2.core.claimable_sandbox\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\"}"); + "{\"object\":\"v2.core.claimable_sandbox\",\"app_channel\":\"testing\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"onboarding_link_details\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"refresh_url\":\"refresh_url\",\"url\":\"url\"},\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"live\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.ClaimableSandboxCreateParams params = com.stripe.param.v2.core.ClaimableSandboxCreateParams.builder() .setEnableMcpAccess(true) + .setOnboardingLinkDetails( + com.stripe.param.v2.core.ClaimableSandboxCreateParams.OnboardingLinkDetails + .builder() + .setRefreshUrl("refresh_url") + .build()) .setPrefill( com.stripe.param.v2.core.ClaimableSandboxCreateParams.Prefill.builder() .setCountry("country") @@ -27997,7 +28207,7 @@ public void testV2CoreClaimableSandboxGetServices() throws StripeException { null, null, com.stripe.model.v2.core.ClaimableSandbox.class, - "{\"object\":\"v2.core.claimable_sandbox\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\"}"); + "{\"object\":\"v2.core.claimable_sandbox\",\"app_channel\":\"testing\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"onboarding_link_details\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"refresh_url\":\"refresh_url\",\"url\":\"url\"},\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"live\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.ClaimableSandbox claimableSandbox = @@ -28011,6 +28221,32 @@ public void testV2CoreClaimableSandboxGetServices() throws StripeException { null); } + @Test + public void testV2CoreClaimableSandboxPost2Services() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/claimable_sandboxes/id_123/renew_onboarding_link", + null, + null, + com.stripe.model.v2.core.ClaimableSandbox.class, + "{\"object\":\"v2.core.claimable_sandbox\",\"app_channel\":\"testing\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"onboarding_link_details\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"refresh_url\":\"refresh_url\",\"url\":\"url\"},\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"live\"}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.core.ClaimableSandboxRenewOnboardingLinkParams params = + com.stripe.param.v2.core.ClaimableSandboxRenewOnboardingLinkParams.builder().build(); + + com.stripe.model.v2.core.ClaimableSandbox claimableSandbox = + client.v2().core().claimableSandboxes().renewOnboardingLink("id_123", params); + assertNotNull(claimableSandbox); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/claimable_sandboxes/id_123/renew_onboarding_link", + params.toMap(), + null); + } + @Test public void testV2CoreConnectionSessionPostServices() throws StripeException { stubRequest( @@ -28324,7 +28560,7 @@ public void testV2CoreVaultGbBankAccountGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.core.vault.GbBankAccount>>() {}.getType(), - "{\"data\":[{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.vault.GbBankAccountListParams params = @@ -28350,7 +28586,7 @@ public void testV2CoreVaultGbBankAccountPostServices() throws StripeException { null, null, com.stripe.model.v2.core.vault.GbBankAccount.class, - "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.vault.GbBankAccountCreateParams params = @@ -28378,7 +28614,7 @@ public void testV2CoreVaultGbBankAccountGet2Services() throws StripeException { null, null, com.stripe.model.v2.core.vault.GbBankAccount.class, - "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.vault.GbBankAccount gbBankAccount = @@ -28401,7 +28637,7 @@ public void testV2CoreVaultGbBankAccountPost2Services() throws StripeException { null, null, com.stripe.model.v2.core.vault.GbBankAccount.class, - "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.vault.GbBankAccount gbBankAccount = @@ -28424,7 +28660,7 @@ public void testV2CoreVaultGbBankAccountPost3Services() throws StripeException { null, null, com.stripe.model.v2.core.vault.GbBankAccount.class, - "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.vault.GbBankAccount gbBankAccount = @@ -28447,7 +28683,7 @@ public void testV2CoreVaultGbBankAccountPost4Services() throws StripeException { null, null, com.stripe.model.v2.core.vault.GbBankAccount.class, - "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.vault.GbBankAccountInitiateConfirmationOfPayeeParams params = @@ -28644,62 +28880,115 @@ public void testV2CoreVaultUsBankAccountPost5Services() throws StripeException { } @Test - public void testV2CoreWorkflowGetServices() throws StripeException { + public void testV2DataReportingQueryRunPostServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/data/reporting/query_runs", + null, + null, + com.stripe.model.v2.data.reporting.QueryRun.class, + "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.data.reporting.QueryRunCreateParams params = + com.stripe.param.v2.data.reporting.QueryRunCreateParams.builder().setSql("sql").build(); + + com.stripe.model.v2.data.reporting.QueryRun queryRun = + client.v2().data().reporting().queryRuns().create(params); + assertNotNull(queryRun); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/data/reporting/query_runs", + params.toMap(), + null); + } + + @Test + public void testV2DataReportingQueryRunGetServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/data/reporting/query_runs/id_123", + null, + null, + com.stripe.model.v2.data.reporting.QueryRun.class, + "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.data.reporting.QueryRun queryRun = + client.v2().data().reporting().queryRuns().retrieve("id_123"); + assertNotNull(queryRun); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/data/reporting/query_runs/id_123", + null, + null); + } + + @Test + public void testV2ExtendWorkflowGetServices() throws StripeException { stubRequest( BaseAddress.API, ApiResource.RequestMethod.GET, - "/v2/core/workflows", + "/v2/extend/workflows", null, null, new TypeToken< - com.stripe.model.v2.StripeCollection>() {}.getType(), - "{\"data\":[{\"object\":\"v2.core.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"triggers\":[{\"type\":\"event_trigger\"}]}],\"next_page_url\":null,\"previous_page_url\":null}"); + com.stripe.model.v2.StripeCollection< + com.stripe.model.v2.extend.Workflow>>() {}.getType(), + "{\"data\":[{\"object\":\"v2.extend.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"title\":\"title\",\"triggers\":[{\"type\":\"event_trigger\"}]}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.param.v2.core.WorkflowListParams params = - com.stripe.param.v2.core.WorkflowListParams.builder() - .addStatus(com.stripe.param.v2.core.WorkflowListParams.Status.DRAFT) - .build(); + com.stripe.param.v2.extend.WorkflowListParams params = + com.stripe.param.v2.extend.WorkflowListParams.builder().build(); - com.stripe.model.v2.StripeCollection stripeCollection = - client.v2().core().workflows().list(params); + com.stripe.model.v2.StripeCollection stripeCollection = + client.v2().extend().workflows().list(params); assertNotNull(stripeCollection); verifyRequest( - BaseAddress.API, ApiResource.RequestMethod.GET, "/v2/core/workflows", params.toMap(), null); + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/extend/workflows", + params.toMap(), + null); } @Test - public void testV2CoreWorkflowGet2Services() throws StripeException { + public void testV2ExtendWorkflowGet2Services() throws StripeException { stubRequest( BaseAddress.API, ApiResource.RequestMethod.GET, - "/v2/core/workflows/id_123", + "/v2/extend/workflows/id_123", null, null, - com.stripe.model.v2.core.Workflow.class, - "{\"object\":\"v2.core.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"triggers\":[{\"type\":\"event_trigger\"}]}"); + com.stripe.model.v2.extend.Workflow.class, + "{\"object\":\"v2.extend.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"title\":\"title\",\"triggers\":[{\"type\":\"event_trigger\"}]}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.model.v2.core.Workflow workflow = client.v2().core().workflows().retrieve("id_123"); + com.stripe.model.v2.extend.Workflow workflow = + client.v2().extend().workflows().retrieve("id_123"); assertNotNull(workflow); verifyRequest( - BaseAddress.API, ApiResource.RequestMethod.GET, "/v2/core/workflows/id_123", null, null); + BaseAddress.API, ApiResource.RequestMethod.GET, "/v2/extend/workflows/id_123", null, null); } @Test - public void testV2CoreWorkflowPostServices() throws StripeException { + public void testV2ExtendWorkflowPostServices() throws StripeException { stubRequest( BaseAddress.API, ApiResource.RequestMethod.POST, - "/v2/core/workflows/id_123/invoke", + "/v2/extend/workflows/id_123/invoke", null, null, - com.stripe.model.v2.core.WorkflowRun.class, - "{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}"); + com.stripe.model.v2.extend.WorkflowRun.class, + "{\"object\":\"v2.extend.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.param.v2.core.WorkflowInvokeParams params = - com.stripe.param.v2.core.WorkflowInvokeParams.builder() + com.stripe.param.v2.extend.WorkflowInvokeParams params = + com.stripe.param.v2.extend.WorkflowInvokeParams.builder() .putInputParameter("int_key", new BigDecimal(123)) .putInputParameter("string_key", "value") .putInputParameter("boolean_key", true) @@ -28718,117 +29007,93 @@ public void testV2CoreWorkflowPostServices() throws StripeException { Arrays.asList(new BigDecimal(1), new BigDecimal(2), new BigDecimal(3)))) .build(); - com.stripe.model.v2.core.WorkflowRun workflowRun = - client.v2().core().workflows().invoke("id_123", params); + com.stripe.model.v2.extend.WorkflowRun workflowRun = + client.v2().extend().workflows().invoke("id_123", params); assertNotNull(workflowRun); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.POST, - "/v2/core/workflows/id_123/invoke", + "/v2/extend/workflows/id_123/invoke", params.toMap(), null); } @Test - public void testV2CoreWorkflowRunGetServices() throws StripeException { + public void testV2ExtendWorkflowRunGetServices() throws StripeException { stubRequest( BaseAddress.API, ApiResource.RequestMethod.GET, - "/v2/core/workflow_runs", + "/v2/extend/workflow_runs", null, null, new TypeToken< com.stripe.model.v2.StripeCollection< - com.stripe.model.v2.core.WorkflowRun>>() {}.getType(), - "{\"data\":[{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + com.stripe.model.v2.extend.WorkflowRun>>() {}.getType(), + "{\"data\":[{\"object\":\"v2.extend.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.param.v2.core.WorkflowRunListParams params = - com.stripe.param.v2.core.WorkflowRunListParams.builder() - .addStatus(com.stripe.param.v2.core.WorkflowRunListParams.Status.FAILED) - .addWorkflow("workflow") - .build(); + com.stripe.param.v2.extend.WorkflowRunListParams params = + com.stripe.param.v2.extend.WorkflowRunListParams.builder().build(); - com.stripe.model.v2.StripeCollection stripeCollection = - client.v2().core().workflowRuns().list(params); + com.stripe.model.v2.StripeCollection stripeCollection = + client.v2().extend().workflowRuns().list(params); assertNotNull(stripeCollection); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.GET, - "/v2/core/workflow_runs", + "/v2/extend/workflow_runs", params.toMap(), null); } @Test - public void testV2CoreWorkflowRunGet2Services() throws StripeException { + public void testV2ExtendWorkflowRunGet2Services() throws StripeException { stubRequest( BaseAddress.API, ApiResource.RequestMethod.GET, - "/v2/core/workflow_runs/id_123", + "/v2/extend/workflow_runs/id_123", null, null, - com.stripe.model.v2.core.WorkflowRun.class, - "{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}"); + com.stripe.model.v2.extend.WorkflowRun.class, + "{\"object\":\"v2.extend.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.model.v2.core.WorkflowRun workflowRun = - client.v2().core().workflowRuns().retrieve("id_123"); + com.stripe.model.v2.extend.WorkflowRun workflowRun = + client.v2().extend().workflowRuns().retrieve("id_123"); assertNotNull(workflowRun); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.GET, - "/v2/core/workflow_runs/id_123", + "/v2/extend/workflow_runs/id_123", null, null); } @Test - public void testV2DataReportingQueryRunPostServices() throws StripeException { - stubRequest( - BaseAddress.API, - ApiResource.RequestMethod.POST, - "/v2/data/reporting/query_runs", - null, - null, - com.stripe.model.v2.data.reporting.QueryRun.class, - "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); - StripeClient client = new StripeClient(networkSpy); - - com.stripe.param.v2.data.reporting.QueryRunCreateParams params = - com.stripe.param.v2.data.reporting.QueryRunCreateParams.builder().setSql("sql").build(); - - com.stripe.model.v2.data.reporting.QueryRun queryRun = - client.v2().data().reporting().queryRuns().create(params); - assertNotNull(queryRun); - verifyRequest( - BaseAddress.API, - ApiResource.RequestMethod.POST, - "/v2/data/reporting/query_runs", - params.toMap(), - null); - } - - @Test - public void testV2DataReportingQueryRunGetServices() throws StripeException { + public void testV2IamActivityLogGetServices() throws StripeException { stubRequest( BaseAddress.API, ApiResource.RequestMethod.GET, - "/v2/data/reporting/query_runs/id_123", + "/v2/iam/activity_logs", null, null, - com.stripe.model.v2.data.reporting.QueryRun.class, - "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); + new TypeToken< + com.stripe.model.v2.StripeCollection< + com.stripe.model.v2.iam.ActivityLog>>() {}.getType(), + "{\"data\":[{\"object\":\"v2.iam.activity_log\",\"actor\":{\"type\":\"api_key\"},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"details\":{\"type\":\"api_key\"},\"id\":\"obj_123\",\"livemode\":true,\"type\":\"api_key_created\"}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.model.v2.data.reporting.QueryRun queryRun = - client.v2().data().reporting().queryRuns().retrieve("id_123"); - assertNotNull(queryRun); + com.stripe.param.v2.iam.ActivityLogListParams params = + com.stripe.param.v2.iam.ActivityLogListParams.builder().build(); + + com.stripe.model.v2.StripeCollection stripeCollection = + client.v2().iam().activityLogs().list(params); + assertNotNull(stripeCollection); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.GET, - "/v2/data/reporting/query_runs/id_123", - null, + "/v2/iam/activity_logs", + params.toMap(), null); } @@ -29030,7 +29295,7 @@ public void testV2MoneyManagementCurrencyConversionGetServices() throws StripeEx new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.CurrencyConversion>>() {}.getType(), - "{\"data\":[{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.CurrencyConversionListParams params = @@ -29056,12 +29321,11 @@ public void testV2MoneyManagementCurrencyConversionPostServices() throws StripeE null, null, com.stripe.model.v2.moneymanagement.CurrencyConversion.class, - "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); + "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams params = com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.builder() - .setFinancialAccount("financial_account") .setFrom( com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.From.builder() .setAmount(new com.stripe.v2.Amount(96, "USD")) @@ -29094,7 +29358,7 @@ public void testV2MoneyManagementCurrencyConversionGet2Services() throws StripeE null, null, com.stripe.model.v2.moneymanagement.CurrencyConversion.class, - "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); + "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.CurrencyConversion currencyConversion = @@ -29119,7 +29383,7 @@ public void testV2MoneyManagementFinancialAccountGetServices() throws StripeExce new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.FinancialAccount>>() {}.getType(), - "{\"data\":[{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"accrued_fees\"}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountListParams params = @@ -29145,7 +29409,7 @@ public void testV2MoneyManagementFinancialAccountPostServices() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"accrued_fees\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountCreateParams params = @@ -29173,7 +29437,7 @@ public void testV2MoneyManagementFinancialAccountGet2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"accrued_fees\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountRetrieveParams params = @@ -29199,7 +29463,7 @@ public void testV2MoneyManagementFinancialAccountPost2Services() throws StripeEx null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"accrued_fees\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountUpdateParams params = @@ -29225,7 +29489,7 @@ public void testV2MoneyManagementFinancialAccountPost3Services() throws StripeEx null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"accrued_fees\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountCloseParams params = @@ -29287,7 +29551,7 @@ public void testV2MoneyManagementFinancialAddressPostServices() throws StripeExc .setFinancialAccount("financial_account") .setType( com.stripe.param.v2.moneymanagement.FinancialAddressCreateParams.Type - .GB_BANK_ACCOUNT) + .SEPA_BANK_ACCOUNT) .build(); com.stripe.model.v2.moneymanagement.FinancialAddress financialAddress = @@ -30141,7 +30405,7 @@ public void testV2MoneyManagementTransactionGetServices() throws StripeException new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.Transaction>>() {}.getType(), - "{\"data\":[{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"anticipation_repayment\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.TransactionListParams params = @@ -30167,7 +30431,7 @@ public void testV2MoneyManagementTransactionGet2Services() throws StripeExceptio null, null, com.stripe.model.v2.moneymanagement.Transaction.class, - "{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}"); + "{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"anticipation_repayment\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.Transaction transaction = @@ -30192,7 +30456,7 @@ public void testV2MoneyManagementTransactionEntryGetServices() throws StripeExce new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.TransactionEntry>>() {}.getType(), - "{\"data\":[{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"anticipation_repayment\",\"financial_account\":\"financial_account\"}}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.TransactionEntryListParams params = @@ -30218,7 +30482,7 @@ public void testV2MoneyManagementTransactionEntryGet2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.TransactionEntry.class, - "{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"}}"); + "{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"anticipation_repayment\",\"financial_account\":\"financial_account\"}}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.TransactionEntry transactionEntry = @@ -30232,6 +30496,177 @@ public void testV2MoneyManagementTransactionEntryGet2Services() throws StripeExc null); } + @Test + public void testV2NetworkBusinessProfileGetServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/network/business_profiles/me", + null, + null, + com.stripe.model.v2.network.BusinessProfile.class, + "{\"object\":\"v2.network.business_profile\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"username\":\"username\"}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.network.BusinessProfile businessProfile = + client.v2().network().businessProfiles().me(); + assertNotNull(businessProfile); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/network/business_profiles/me", + null, + null); + } + + @Test + public void testV2NetworkBusinessProfileGet2Services() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/network/business_profiles/id_123", + null, + null, + com.stripe.model.v2.network.BusinessProfile.class, + "{\"object\":\"v2.network.business_profile\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"username\":\"username\"}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.network.BusinessProfile businessProfile = + client.v2().network().businessProfiles().retrieve("id_123"); + assertNotNull(businessProfile); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/network/business_profiles/id_123", + null, + null); + } + + @Test + public void testV2OrchestratedCommerceAgreementGetServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/orchestrated_commerce/agreements", + null, + null, + new TypeToken< + com.stripe.model.v2.StripeCollection< + com.stripe.model.v2.orchestratedcommerce.Agreement>>() {}.getType(), + "{\"data\":[{\"object\":\"v2.orchestrated_commerce.agreement\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"initiated_by\":\"seller\",\"livemode\":true,\"orchestrator_details\":{\"name\":\"name\",\"network_business_profile\":\"network_business_profile\"},\"seller_details\":{\"network_business_profile\":\"network_business_profile\"},\"status\":\"partially_confirmed\",\"status_transitions\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.orchestratedcommerce.AgreementListParams params = + com.stripe.param.v2.orchestratedcommerce.AgreementListParams.builder().build(); + + com.stripe.model.v2.StripeCollection + stripeCollection = client.v2().orchestratedCommerce().agreements().list(params); + assertNotNull(stripeCollection); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/orchestrated_commerce/agreements", + params.toMap(), + null); + } + + @Test + public void testV2OrchestratedCommerceAgreementPostServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/orchestrated_commerce/agreements", + null, + null, + com.stripe.model.v2.orchestratedcommerce.Agreement.class, + "{\"object\":\"v2.orchestrated_commerce.agreement\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"initiated_by\":\"seller\",\"livemode\":true,\"orchestrator_details\":{\"name\":\"name\",\"network_business_profile\":\"network_business_profile\"},\"seller_details\":{\"network_business_profile\":\"network_business_profile\"},\"status\":\"partially_confirmed\",\"status_transitions\":{}}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.orchestratedcommerce.AgreementCreateParams params = + com.stripe.param.v2.orchestratedcommerce.AgreementCreateParams.builder() + .setOrchestrator("orchestrator") + .build(); + + com.stripe.model.v2.orchestratedcommerce.Agreement agreement = + client.v2().orchestratedCommerce().agreements().create(params); + assertNotNull(agreement); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/orchestrated_commerce/agreements", + params.toMap(), + null); + } + + @Test + public void testV2OrchestratedCommerceAgreementGet2Services() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/orchestrated_commerce/agreements/id_123", + null, + null, + com.stripe.model.v2.orchestratedcommerce.Agreement.class, + "{\"object\":\"v2.orchestrated_commerce.agreement\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"initiated_by\":\"seller\",\"livemode\":true,\"orchestrator_details\":{\"name\":\"name\",\"network_business_profile\":\"network_business_profile\"},\"seller_details\":{\"network_business_profile\":\"network_business_profile\"},\"status\":\"partially_confirmed\",\"status_transitions\":{}}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.orchestratedcommerce.Agreement agreement = + client.v2().orchestratedCommerce().agreements().retrieve("id_123"); + assertNotNull(agreement); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/orchestrated_commerce/agreements/id_123", + null, + null); + } + + @Test + public void testV2OrchestratedCommerceAgreementPost2Services() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/orchestrated_commerce/agreements/id_123/confirm", + null, + null, + com.stripe.model.v2.orchestratedcommerce.Agreement.class, + "{\"object\":\"v2.orchestrated_commerce.agreement\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"initiated_by\":\"seller\",\"livemode\":true,\"orchestrator_details\":{\"name\":\"name\",\"network_business_profile\":\"network_business_profile\"},\"seller_details\":{\"network_business_profile\":\"network_business_profile\"},\"status\":\"partially_confirmed\",\"status_transitions\":{}}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.orchestratedcommerce.Agreement agreement = + client.v2().orchestratedCommerce().agreements().confirm("id_123"); + assertNotNull(agreement); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/orchestrated_commerce/agreements/id_123/confirm", + null, + null); + } + + @Test + public void testV2OrchestratedCommerceAgreementPost3Services() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/orchestrated_commerce/agreements/id_123/terminate", + null, + null, + com.stripe.model.v2.orchestratedcommerce.Agreement.class, + "{\"object\":\"v2.orchestrated_commerce.agreement\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"initiated_by\":\"seller\",\"livemode\":true,\"orchestrator_details\":{\"name\":\"name\",\"network_business_profile\":\"network_business_profile\"},\"seller_details\":{\"network_business_profile\":\"network_business_profile\"},\"status\":\"partially_confirmed\",\"status_transitions\":{}}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.orchestratedcommerce.Agreement agreement = + client.v2().orchestratedCommerce().agreements().terminate("id_123"); + assertNotNull(agreement); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/orchestrated_commerce/agreements/id_123/terminate", + null, + null); + } + @Test public void testV2PaymentsOffSessionPaymentGetServices() throws StripeException { stubRequest( @@ -30946,7 +31381,7 @@ public void testV2TestHelpersFinancialAddressPostServices() throws StripeExcepti com.stripe.param.v2.testhelpers.FinancialAddressCreditParams params = com.stripe.param.v2.testhelpers.FinancialAddressCreditParams.builder() .setAmount(new com.stripe.v2.Amount(96, "USD")) - .setNetwork(com.stripe.param.v2.testhelpers.FinancialAddressCreditParams.Network.ACH) + .setNetwork(com.stripe.param.v2.testhelpers.FinancialAddressCreditParams.Network.FPS) .build(); com.stripe.model.v2.FinancialAddressCreditSimulation financialAddressCreditSimulation = @@ -31109,15 +31544,35 @@ public void testCannotProceedErrorServices() throws StripeException { stubRequestReturnError( BaseAddress.API, ApiResource.RequestMethod.POST, - "/v2/money_management/payout_methods/id_123/archive", + "/v2/extend/workflows/id_123/invoke", null, null, "{\"error\":{\"type\":\"cannot_proceed\",\"code\":\"default_payout_method_cannot_be_archived\"}}", 400); StripeClient client = new StripeClient(networkSpy); + com.stripe.param.v2.extend.WorkflowInvokeParams params = + com.stripe.param.v2.extend.WorkflowInvokeParams.builder() + .putInputParameter("int_key", new BigDecimal(123)) + .putInputParameter("string_key", "value") + .putInputParameter("boolean_key", true) + .putInputParameter( + "object_key", + new HashMap() { + { + put("object_int_key", new BigDecimal(123)); + put("object_string_key", "value"); + put("object_boolean_key", true); + } + }) + .putInputParameter( + "array_key", + new ArrayList<>( + Arrays.asList(new BigDecimal(1), new BigDecimal(2), new BigDecimal(3)))) + .build(); + try { - client.v2().moneyManagement().payoutMethods().archive("id_123"); + client.v2().extend().workflows().invoke("id_123", params); } catch (CannotProceedException e) { } @@ -31125,8 +31580,8 @@ public void testCannotProceedErrorServices() throws StripeException { verifyRequest( BaseAddress.API, ApiResource.RequestMethod.POST, - "/v2/money_management/payout_methods/id_123/archive", - null, + "/v2/extend/workflows/id_123/invoke", + params.toMap(), null); } @@ -31199,7 +31654,6 @@ public void testFeatureNotEnabledErrorServices() throws StripeException { com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams params = com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.builder() - .setFinancialAccount("financial_account") .setFrom( com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.From.builder() .build()) @@ -31239,7 +31693,7 @@ public void testFinancialAccountNotOpenErrorServices() throws StripeException { .setFinancialAccount("financial_account") .setType( com.stripe.param.v2.moneymanagement.FinancialAddressCreateParams.Type - .GB_BANK_ACCOUNT) + .SEPA_BANK_ACCOUNT) .build(); try { @@ -31256,6 +31710,42 @@ public void testFinancialAccountNotOpenErrorServices() throws StripeException { null); } + @Test + public void testFxQuoteExpiredErrorServices() throws StripeException { + stubRequestReturnError( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/money_management/currency_conversions", + null, + null, + "{\"error\":{\"type\":\"fx_quote_expired\",\"code\":\"currency_conversion_fx_quote_expired\"}}", + 400); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams params = + com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.builder() + .setFrom( + com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.From.builder() + .build()) + .setTo( + com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.To.builder() + .build()) + .build(); + + try { + client.v2().moneyManagement().currencyConversions().create(params); + } catch (FxQuoteExpiredException e) { + + } + ; + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/money_management/currency_conversions", + params.toMap(), + null); + } + @Test public void testInsufficientFundsErrorServices() throws StripeException { stubRequestReturnError( diff --git a/src/test/java/com/stripe/net/RequestOptionsTest.java b/src/test/java/com/stripe/net/RequestOptionsTest.java index 1bc9f15d503..9b0de96ae54 100644 --- a/src/test/java/com/stripe/net/RequestOptionsTest.java +++ b/src/test/java/com/stripe/net/RequestOptionsTest.java @@ -61,6 +61,8 @@ public void testToBuilderFullCopy() { .setClientId("123") .setIdempotencyKey("123") .setStripeAccount("acct_bar") + .setStripeContext("acct_context_123") + .setStripeRequestTrigger("some_trigger") .setConnectTimeout(100) .setReadTimeout(100) .setConnectionProxy( @@ -73,6 +75,8 @@ public void testToBuilderFullCopy() { RequestOptions optsRebuilt = opts.toBuilderFullCopy().build(); assertEquals(opts, optsRebuilt); + assertEquals("acct_context_123", optsRebuilt.getStripeContext()); + assertEquals("some_trigger", optsRebuilt.getStripeRequestTrigger()); } @Test