From d91240b41e5dda46435608d83c40d974914294f3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 20:12:10 +0000 Subject: [PATCH 1/4] Update generated code for v2126 and --- OPENAPI_VERSION | 2 +- .../QuotePreviewSubscriptionSchedule.java | 13 ++++++ .../stripe/model/SubscriptionSchedule.java | 13 ++++++ .../param/InvoiceCreatePreviewParams.java | 45 +++++++++++++++++++ .../SubscriptionScheduleCreateParams.java | 45 +++++++++++++++++++ .../SubscriptionScheduleUpdateParams.java | 45 +++++++++++++++++++ 6 files changed, 162 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 927a37ae781..62acd598113 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2125 \ No newline at end of file +v2126 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java b/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java index 4f440955944..3581d400dc6 100644 --- a/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java +++ b/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java @@ -1141,6 +1141,19 @@ public static class Phase extends StripeObject { @SerializedName("discounts") List discounts; + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} + * bills based on the current state of the subscription, ignoring changes scheduled in future + * phases. {@code billing_period_start} bills predictively for upcoming phase transitions within + * the current billing cycle, including pricing changes and service period adjustments that will + * occur before the next invoice. + * + *

One of {@code billing_period_start}, or {@code phase_start}. + */ + @SerializedName("effective_at") + String effectiveAt; + /** The end of this phase of the subscription schedule. */ @SerializedName("end_date") Long endDate; diff --git a/src/main/java/com/stripe/model/SubscriptionSchedule.java b/src/main/java/com/stripe/model/SubscriptionSchedule.java index f55675609d5..bf001940101 100644 --- a/src/main/java/com/stripe/model/SubscriptionSchedule.java +++ b/src/main/java/com/stripe/model/SubscriptionSchedule.java @@ -1455,6 +1455,19 @@ public static class Phase extends StripeObject { @SerializedName("discounts") List discounts; + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} + * bills based on the current state of the subscription, ignoring changes scheduled in future + * phases. {@code billing_period_start} bills predictively for upcoming phase transitions within + * the current billing cycle, including pricing changes and service period adjustments that will + * occur before the next invoice. + * + *

One of {@code billing_period_start}, or {@code phase_start}. + */ + @SerializedName("effective_at") + String effectiveAt; + /** The end of this phase of the subscription schedule. */ @SerializedName("end_date") Long endDate; diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index 3c66b4a9830..992cd94aeb0 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -8997,6 +8997,17 @@ public static class Phase { @SerializedName("duration") Duration duration; + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code + * phase_start} bills based on the current state of the subscription, ignoring changes + * scheduled in future phases. {@code billing_period_start} bills predictively for upcoming + * phase transitions within the current billing cycle, including pricing changes and service + * period adjustments that will occur before the next invoice. + */ + @SerializedName("effective_at") + EffectiveAt effectiveAt; + /** * The date at which this phase of the subscription schedule ends. If set, {@code iterations} * must not be set. @@ -9113,6 +9124,7 @@ private Phase( Object description, Object discounts, Duration duration, + EffectiveAt effectiveAt, Object endDate, Map extraParams, InvoiceSettings invoiceSettings, @@ -9139,6 +9151,7 @@ private Phase( this.description = description; this.discounts = discounts; this.duration = duration; + this.effectiveAt = effectiveAt; this.endDate = endDate; this.extraParams = extraParams; this.invoiceSettings = invoiceSettings; @@ -9185,6 +9198,8 @@ public static class Builder { private Duration duration; + private EffectiveAt effectiveAt; + private Object endDate; private Map extraParams; @@ -9228,6 +9243,7 @@ public InvoiceCreatePreviewParams.ScheduleDetails.Phase build() { this.description, this.discounts, this.duration, + this.effectiveAt, this.endDate, this.extraParams, this.invoiceSettings, @@ -9499,6 +9515,20 @@ public Builder setDuration( return this; } + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code + * phase_start} bills based on the current state of the subscription, ignoring changes + * scheduled in future phases. {@code billing_period_start} bills predictively for upcoming + * phase transitions within the current billing cycle, including pricing changes and service + * period adjustments that will occur before the next invoice. + */ + public Builder setEffectiveAt( + InvoiceCreatePreviewParams.ScheduleDetails.Phase.EffectiveAt effectiveAt) { + this.effectiveAt = effectiveAt; + return this; + } + /** * The date at which this phase of the subscription schedule ends. If set, {@code * iterations} must not be set. @@ -13704,6 +13734,21 @@ public enum CollectionMethod implements ApiRequestParams.EnumParam { } } + public enum EffectiveAt implements ApiRequestParams.EnumParam { + @SerializedName("billing_period_start") + BILLING_PERIOD_START("billing_period_start"), + + @SerializedName("phase_start") + PHASE_START("phase_start"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + EffectiveAt(String value) { + this.value = value; + } + } + public enum EndDate implements ApiRequestParams.EnumParam { @SerializedName("now") NOW("now"); diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java index 2a1257e225d..260597ee539 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java @@ -2271,6 +2271,17 @@ public static class Phase { @SerializedName("duration") Duration duration; + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} + * bills based on the current state of the subscription, ignoring changes scheduled in future + * phases. {@code billing_period_start} bills predictively for upcoming phase transitions within + * the current billing cycle, including pricing changes and service period adjustments that will + * occur before the next invoice. + */ + @SerializedName("effective_at") + EffectiveAt effectiveAt; + /** * The date at which this phase of the subscription schedule ends. If set, {@code iterations} * must not be set. @@ -2379,6 +2390,7 @@ private Phase( Object description, Object discounts, Duration duration, + EffectiveAt effectiveAt, Long endDate, Map extraParams, InvoiceSettings invoiceSettings, @@ -2404,6 +2416,7 @@ private Phase( this.description = description; this.discounts = discounts; this.duration = duration; + this.effectiveAt = effectiveAt; this.endDate = endDate; this.extraParams = extraParams; this.invoiceSettings = invoiceSettings; @@ -2448,6 +2461,8 @@ public static class Builder { private Duration duration; + private EffectiveAt effectiveAt; + private Long endDate; private Map extraParams; @@ -2489,6 +2504,7 @@ public SubscriptionScheduleCreateParams.Phase build() { this.description, this.discounts, this.duration, + this.effectiveAt, this.endDate, this.extraParams, this.invoiceSettings, @@ -2747,6 +2763,20 @@ public Builder setDuration(SubscriptionScheduleCreateParams.Phase.Duration durat return this; } + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code + * phase_start} bills based on the current state of the subscription, ignoring changes + * scheduled in future phases. {@code billing_period_start} bills predictively for upcoming + * phase transitions within the current billing cycle, including pricing changes and service + * period adjustments that will occur before the next invoice. + */ + public Builder setEffectiveAt( + SubscriptionScheduleCreateParams.Phase.EffectiveAt effectiveAt) { + this.effectiveAt = effectiveAt; + return this; + } + /** * The date at which this phase of the subscription schedule ends. If set, {@code iterations} * must not be set. @@ -6811,6 +6841,21 @@ public enum CollectionMethod implements ApiRequestParams.EnumParam { } } + public enum EffectiveAt implements ApiRequestParams.EnumParam { + @SerializedName("billing_period_start") + BILLING_PERIOD_START("billing_period_start"), + + @SerializedName("phase_start") + PHASE_START("phase_start"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + EffectiveAt(String value) { + this.value = value; + } + } + public enum ProrationBehavior implements ApiRequestParams.EnumParam { @SerializedName("always_invoice") ALWAYS_INVOICE("always_invoice"), diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java index d30c4c34d0d..5d5c92f1ae1 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java @@ -2054,6 +2054,17 @@ public static class Phase { @SerializedName("duration") Duration duration; + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} + * bills based on the current state of the subscription, ignoring changes scheduled in future + * phases. {@code billing_period_start} bills predictively for upcoming phase transitions within + * the current billing cycle, including pricing changes and service period adjustments that will + * occur before the next invoice. + */ + @SerializedName("effective_at") + EffectiveAt effectiveAt; + /** * The date at which this phase of the subscription schedule ends. If set, {@code iterations} * must not be set. @@ -2169,6 +2180,7 @@ private Phase( Object description, Object discounts, Duration duration, + EffectiveAt effectiveAt, Object endDate, Map extraParams, InvoiceSettings invoiceSettings, @@ -2195,6 +2207,7 @@ private Phase( this.description = description; this.discounts = discounts; this.duration = duration; + this.effectiveAt = effectiveAt; this.endDate = endDate; this.extraParams = extraParams; this.invoiceSettings = invoiceSettings; @@ -2240,6 +2253,8 @@ public static class Builder { private Duration duration; + private EffectiveAt effectiveAt; + private Object endDate; private Map extraParams; @@ -2283,6 +2298,7 @@ public SubscriptionScheduleUpdateParams.Phase build() { this.description, this.discounts, this.duration, + this.effectiveAt, this.endDate, this.extraParams, this.invoiceSettings, @@ -2562,6 +2578,20 @@ public Builder setDuration(SubscriptionScheduleUpdateParams.Phase.Duration durat return this; } + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code + * phase_start} bills based on the current state of the subscription, ignoring changes + * scheduled in future phases. {@code billing_period_start} bills predictively for upcoming + * phase transitions within the current billing cycle, including pricing changes and service + * period adjustments that will occur before the next invoice. + */ + public Builder setEffectiveAt( + SubscriptionScheduleUpdateParams.Phase.EffectiveAt effectiveAt) { + this.effectiveAt = effectiveAt; + return this; + } + /** * The date at which this phase of the subscription schedule ends. If set, {@code iterations} * must not be set. @@ -6826,6 +6856,21 @@ public enum CollectionMethod implements ApiRequestParams.EnumParam { } } + public enum EffectiveAt implements ApiRequestParams.EnumParam { + @SerializedName("billing_period_start") + BILLING_PERIOD_START("billing_period_start"), + + @SerializedName("phase_start") + PHASE_START("phase_start"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + EffectiveAt(String value) { + this.value = value; + } + } + public enum EndDate implements ApiRequestParams.EnumParam { @SerializedName("now") NOW("now"); From 85c763dcb78450ed51972b2e04efce3e783f6de0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 19 Nov 2025 17:44:34 +0000 Subject: [PATCH 2/4] Update generated code for v2127 and --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/ApiVersion.java | 2 +- .../java/com/stripe/model/PaymentMethod.java | 12 +- src/main/java/com/stripe/model/Quote.java | 174 +++-------- src/main/java/com/stripe/model/QuoteLine.java | 21 ++ .../QuotePreviewSubscriptionSchedule.java | 95 +----- .../java/com/stripe/model/Subscription.java | 91 +----- .../com/stripe/model/SubscriptionItem.java | 20 ++ .../stripe/model/SubscriptionSchedule.java | 95 +----- .../delegatedcheckout/RequestedSession.java | 30 +- .../param/InvoiceCreatePreviewParams.java | 283 +++++++++++++++--- .../com/stripe/param/QuoteCreateParams.java | 176 ++++++----- .../com/stripe/param/QuoteUpdateParams.java | 102 ++++++- .../param/SubscriptionCreateParams.java | 124 +++++++- .../param/SubscriptionItemCreateParams.java | 106 +++++++ .../param/SubscriptionItemUpdateParams.java | 112 +++++++ .../SubscriptionScheduleAmendParams.java | 83 ++++- .../SubscriptionScheduleCreateParams.java | 33 +- .../SubscriptionScheduleUpdateParams.java | 39 ++- .../param/SubscriptionUpdateParams.java | 132 +++++++- .../stripe/service/PaymentMethodService.java | 8 +- 22 files changed, 1145 insertions(+), 597 deletions(-) diff --git a/API_VERSION b/API_VERSION index e91c9d844e2..a49631fe1c3 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -91ef4c6abe8dcdab3a855d81aa624693a6a4da9f \ No newline at end of file +0dd134c7389483bd3510fb0bdfca6eef85688924 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 62acd598113..114ac0579b5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2126 \ No newline at end of file +v2127 \ 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 b71201060b4..afd35346caf 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 = "2025-11-17.preview"; + public static final String CURRENT = "2025-10-29.preview"; } diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index 3bf09d78db5..463896be774 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -466,22 +466,22 @@ public PaymentMethod attach(PaymentMethodAttachParams params, RequestOptions opt return getResponseGetter().request(request, PaymentMethod.class); } - /** Retrieves a payment method’s balance. */ + /** Retrieves a PaymentMethod’s Balance. */ public PaymentMethodBalance checkBalance() throws StripeException { return checkBalance((Map) null, (RequestOptions) null); } - /** Retrieves a payment method’s balance. */ + /** Retrieves a PaymentMethod’s Balance. */ public PaymentMethodBalance checkBalance(RequestOptions options) throws StripeException { return checkBalance((Map) null, options); } - /** Retrieves a payment method’s balance. */ + /** Retrieves a PaymentMethod’s Balance. */ public PaymentMethodBalance checkBalance(Map params) throws StripeException { return checkBalance(params, (RequestOptions) null); } - /** Retrieves a payment method’s balance. */ + /** Retrieves a PaymentMethod’s Balance. */ public PaymentMethodBalance checkBalance(Map params, RequestOptions options) throws StripeException { String path = @@ -492,13 +492,13 @@ public PaymentMethodBalance checkBalance(Map params, RequestOpti return getResponseGetter().request(request, PaymentMethodBalance.class); } - /** Retrieves a payment method’s balance. */ + /** Retrieves a PaymentMethod’s Balance. */ public PaymentMethodBalance checkBalance(PaymentMethodCheckBalanceParams params) throws StripeException { return checkBalance(params, (RequestOptions) null); } - /** Retrieves a payment method’s balance. */ + /** Retrieves a PaymentMethod’s Balance. */ public PaymentMethodBalance checkBalance( PaymentMethodCheckBalanceParams params, RequestOptions options) throws StripeException { String path = diff --git a/src/main/java/com/stripe/model/Quote.java b/src/main/java/com/stripe/model/Quote.java index d2637f34bac..e50fe47af9c 100644 --- a/src/main/java/com/stripe/model/Quote.java +++ b/src/main/java/com/stripe/model/Quote.java @@ -2027,14 +2027,14 @@ public static class SubscriptionData extends StripeObject { Map metadata; /** - * Configures how the subscription schedule handles billing for phase transitions. Possible - * values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} - * bills based on the current state of the subscription, ignoring changes scheduled in future - * phases. {@code billing_period_start} bills predictively for upcoming phase transitions within - * the current billing cycle, including pricing changes and service period adjustments that will - * occur before the next invoice. + * Configures how the quote handles billing for line transitions. Possible values are {@code + * line_start} (default) or {@code billing_period_start}. {@code line_start} bills based on the + * current state of the line, ignoring changes scheduled for future lines. {@code + * billing_period_start} bills predictively for upcoming line transitions within the current + * billing cycle, including pricing changes and service period adjustments that will occur + * before the next invoice. * - *

One of {@code billing_period_start}, or {@code phase_start}. + *

One of {@code billing_period_start}, or {@code line_start}. */ @SerializedName("phase_effective_at") String phaseEffectiveAt; @@ -2250,7 +2250,7 @@ public static class Flexible extends StripeObject { } } - /** Sets the billing schedule for the subscription. */ + /** Sets the billing schedule for the quote. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2263,7 +2263,6 @@ public static class BillingSchedule extends StripeObject { @SerializedName("bill_from") BillFrom billFrom; - /** Specifies the end of billing period. */ @SerializedName("bill_until") BillUntil billUntil; @@ -2309,15 +2308,14 @@ public void setPriceObject(Price expandableObject) { } } - /** Specifies the start of the billing period. */ + /** + * For more details about BillFrom, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class BillFrom extends StripeObject { - /** Use an index to specify the position of an amendment to start prebilling with. */ - @SerializedName("amendment_start") - AmendmentStart amendmentStart; - /** The time the billing schedule applies from. */ @SerializedName("computed_timestamp") Long computedTimestamp; @@ -2326,10 +2324,6 @@ public static class BillFrom extends StripeObject { @SerializedName("line_starts_at") LineStartsAt lineStartsAt; - /** Timestamp is calculated from the request time. */ - @SerializedName("relative") - Relative relative; - /** * Use a precise Unix timestamp for prebilling to start. Must be earlier than {@code * bill_until}. @@ -2342,23 +2336,12 @@ public static class BillFrom extends StripeObject { * timestamp}, {@code relative}, {@code amendment_start}, {@code now}, {@code * quote_acceptance_date}, {@code line_starts_at}, or {@code pause_collection_start}. * - *

One of {@code amendment_start}, {@code line_starts_at}, {@code now}, {@code - * pause_collection_start}, {@code quote_acceptance_date}, {@code relative}, or {@code - * timestamp}. + *

One of {@code line_starts_at}, {@code pause_collection_start}, {@code + * quote_acceptance_date}, or {@code timestamp}. */ @SerializedName("type") String type; - /** Use an index to specify the position of an amendment to start prebilling with. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmendmentStart extends StripeObject { - /** Use an index to specify the position of an amendment to start prebilling with. */ - @SerializedName("index") - Long index; - } - /** The timestamp the given line starts at. */ @Getter @Setter @@ -2369,36 +2352,16 @@ public static class LineStartsAt extends StripeObject implements HasId { @SerializedName("id") String id; } - - /** Timestamp is calculated from the request time. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Relative extends StripeObject { - /** - * Specifies billing duration. Possible values are {@code day}, {@code week}, {@code - * month}, or {@code year}. - * - *

One of {@code day}, {@code month}, {@code week}, or {@code year}. - */ - @SerializedName("interval") - String interval; - - /** The multiplier applied to the interval. */ - @SerializedName("interval_count") - Long intervalCount; - } } - /** Specifies the end of billing period. */ + /** + * For more details about BillUntil, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class BillUntil extends StripeObject { - /** Use an index to specify the position of an amendment to end prebilling with. */ - @SerializedName("amendment_end") - AmendmentEnd amendmentEnd; - /** The timestamp the billing schedule will apply until. */ @SerializedName("computed_timestamp") Long computedTimestamp; @@ -2419,22 +2382,12 @@ public static class BillUntil extends StripeObject { * Describes how the billing schedule will determine the end date. Either {@code duration} * or {@code timestamp}. * - *

One of {@code amendment_end}, {@code duration}, {@code line_ends_at}, {@code - * schedule_end}, {@code timestamp}, or {@code upcoming_invoice}. + *

One of {@code duration}, {@code line_ends_at}, {@code schedule_end}, {@code + * timestamp}, or {@code upcoming_invoice}. */ @SerializedName("type") String type; - /** Use an index to specify the position of an amendment to end prebilling with. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmendmentEnd extends StripeObject { - /** Use an index to specify the position of an amendment to end prebilling with. */ - @SerializedName("index") - Long index; - } - /** * Configures the {@code bill_until} date based on the provided {@code interval} and {@code * interval_count}. @@ -2541,14 +2494,14 @@ public static class SubscriptionDataOverride extends StripeObject { String endBehavior; /** - * Configures how the subscription schedule handles billing for phase transitions. Possible - * values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} - * bills based on the current state of the subscription, ignoring changes scheduled in future - * phases. {@code billing_period_start} bills predictively for upcoming phase transitions within - * the current billing cycle, including pricing changes and service period adjustments that will - * occur before the next invoice. + * Configures how the quote handles billing for line transitions. Possible values are {@code + * line_start} (default) or {@code billing_period_start}. {@code line_start} bills based on the + * current state of the line, ignoring changes scheduled for future lines. {@code + * billing_period_start} bills predictively for upcoming line transitions within the current + * billing cycle, including pricing changes and service period adjustments that will occur + * before the next invoice. * - *

One of {@code billing_period_start}, or {@code phase_start}. + *

One of {@code billing_period_start}, or {@code line_start}. */ @SerializedName("phase_effective_at") String phaseEffectiveAt; @@ -2726,7 +2679,7 @@ public static class LineEndsAt extends StripeObject implements HasId { } } - /** Sets the billing schedule for the subscription. */ + /** Sets the billing schedule for the quote. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2739,7 +2692,6 @@ public static class BillingSchedule extends StripeObject { @SerializedName("bill_from") BillFrom billFrom; - /** Specifies the end of billing period. */ @SerializedName("bill_until") BillUntil billUntil; @@ -2785,15 +2737,14 @@ public void setPriceObject(Price expandableObject) { } } - /** Specifies the start of the billing period. */ + /** + * For more details about BillFrom, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class BillFrom extends StripeObject { - /** Use an index to specify the position of an amendment to start prebilling with. */ - @SerializedName("amendment_start") - AmendmentStart amendmentStart; - /** The time the billing schedule applies from. */ @SerializedName("computed_timestamp") Long computedTimestamp; @@ -2802,10 +2753,6 @@ public static class BillFrom extends StripeObject { @SerializedName("line_starts_at") LineStartsAt lineStartsAt; - /** Timestamp is calculated from the request time. */ - @SerializedName("relative") - Relative relative; - /** * Use a precise Unix timestamp for prebilling to start. Must be earlier than {@code * bill_until}. @@ -2818,23 +2765,12 @@ public static class BillFrom extends StripeObject { * timestamp}, {@code relative}, {@code amendment_start}, {@code now}, {@code * quote_acceptance_date}, {@code line_starts_at}, or {@code pause_collection_start}. * - *

One of {@code amendment_start}, {@code line_starts_at}, {@code now}, {@code - * pause_collection_start}, {@code quote_acceptance_date}, {@code relative}, or {@code - * timestamp}. + *

One of {@code line_starts_at}, {@code pause_collection_start}, {@code + * quote_acceptance_date}, or {@code timestamp}. */ @SerializedName("type") String type; - /** Use an index to specify the position of an amendment to start prebilling with. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmendmentStart extends StripeObject { - /** Use an index to specify the position of an amendment to start prebilling with. */ - @SerializedName("index") - Long index; - } - /** The timestamp the given line starts at. */ @Getter @Setter @@ -2845,36 +2781,16 @@ public static class LineStartsAt extends StripeObject implements HasId { @SerializedName("id") String id; } - - /** Timestamp is calculated from the request time. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Relative extends StripeObject { - /** - * Specifies billing duration. Possible values are {@code day}, {@code week}, {@code - * month}, or {@code year}. - * - *

One of {@code day}, {@code month}, {@code week}, or {@code year}. - */ - @SerializedName("interval") - String interval; - - /** The multiplier applied to the interval. */ - @SerializedName("interval_count") - Long intervalCount; - } } - /** Specifies the end of billing period. */ + /** + * For more details about BillUntil, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class BillUntil extends StripeObject { - /** Use an index to specify the position of an amendment to end prebilling with. */ - @SerializedName("amendment_end") - AmendmentEnd amendmentEnd; - /** The timestamp the billing schedule will apply until. */ @SerializedName("computed_timestamp") Long computedTimestamp; @@ -2895,22 +2811,12 @@ public static class BillUntil extends StripeObject { * Describes how the billing schedule will determine the end date. Either {@code duration} * or {@code timestamp}. * - *

One of {@code amendment_end}, {@code duration}, {@code line_ends_at}, {@code - * schedule_end}, {@code timestamp}, or {@code upcoming_invoice}. + *

One of {@code duration}, {@code line_ends_at}, {@code schedule_end}, {@code + * timestamp}, or {@code upcoming_invoice}. */ @SerializedName("type") String type; - /** Use an index to specify the position of an amendment to end prebilling with. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmendmentEnd extends StripeObject { - /** Use an index to specify the position of an amendment to end prebilling with. */ - @SerializedName("index") - Long index; - } - /** * Configures the {@code bill_until} date based on the provided {@code interval} and {@code * interval_count}. diff --git a/src/main/java/com/stripe/model/QuoteLine.java b/src/main/java/com/stripe/model/QuoteLine.java index 4e85447bcd9..c6dad65ddd8 100644 --- a/src/main/java/com/stripe/model/QuoteLine.java +++ b/src/main/java/com/stripe/model/QuoteLine.java @@ -47,6 +47,19 @@ public class QuoteLine extends StripeObject implements HasId { @SerializedName("cancel_subscription_schedule") CancelSubscriptionSchedule cancelSubscriptionSchedule; + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible values + * are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} bills + * based on the current state of the subscription, ignoring changes scheduled in future phases. + * {@code billing_period_start} bills predictively for upcoming phase transitions within the + * current billing cycle, including pricing changes and service period adjustments that will occur + * before the next invoice. + * + *

One of {@code billing_period_start}, or {@code line_start}. + */ + @SerializedName("effective_at") + String effectiveAt; + /** * Details to identify the end of the time range modified by the proposed change. If not supplied, * the quote line is considered a point-in-time operation that only affects the exact timestamp at @@ -308,6 +321,10 @@ public static class AddItem extends StripeObject { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + /** Get ID of expandable {@code price} object. */ public String getPrice() { return (this.price != null) ? this.price.getId() : null; @@ -755,6 +772,10 @@ public static class SetItem extends StripeObject { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + /** Get ID of expandable {@code price} object. */ public String getPrice() { return (this.price != null) ? this.price.getId() : null; diff --git a/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java b/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java index 3581d400dc6..3d70f7c696c 100644 --- a/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java +++ b/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java @@ -446,22 +446,10 @@ public void setPriceObject(Price expandableObject) { @Setter @EqualsAndHashCode(callSuper = false) public static class BillFrom extends StripeObject { - /** Use an index to specify the position of an amendment to start prebilling with. */ - @SerializedName("amendment_start") - AmendmentStart amendmentStart; - /** The time the billing schedule applies from. */ @SerializedName("computed_timestamp") Long computedTimestamp; - /** Lets you bill the period starting from a particular Quote line. */ - @SerializedName("line_starts_at") - LineStartsAt lineStartsAt; - - /** Timestamp is calculated from the request time. */ - @SerializedName("relative") - Relative relative; - /** * Use a precise Unix timestamp for prebilling to start. Must be earlier than {@code * bill_until}. @@ -471,55 +459,12 @@ public static class BillFrom extends StripeObject { /** * Describes how the billing schedule determines the start date. Possible values are {@code - * timestamp}, {@code relative}, {@code amendment_start}, {@code now}, {@code - * quote_acceptance_date}, {@code line_starts_at}, or {@code pause_collection_start}. - * - *

One of {@code amendment_start}, {@code line_starts_at}, {@code now}, {@code - * pause_collection_start}, {@code quote_acceptance_date}, {@code relative}, or {@code * timestamp}. + * + *

Equal to {@code timestamp}. */ @SerializedName("type") String type; - - /** Use an index to specify the position of an amendment to start prebilling with. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmendmentStart extends StripeObject { - /** Use an index to specify the position of an amendment to start prebilling with. */ - @SerializedName("index") - Long index; - } - - /** The timestamp the given line starts at. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class LineStartsAt extends StripeObject implements HasId { - /** Unique identifier for the object. */ - @Getter(onMethod_ = {@Override}) - @SerializedName("id") - String id; - } - - /** Timestamp is calculated from the request time. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Relative extends StripeObject { - /** - * Specifies billing duration. Possible values are {@code day}, {@code week}, {@code month}, - * or {@code year}. - * - *

One of {@code day}, {@code month}, {@code week}, or {@code year}. - */ - @SerializedName("interval") - String interval; - - /** The multiplier applied to the interval. */ - @SerializedName("interval_count") - Long intervalCount; - } } /** Specifies the end of billing period. */ @@ -527,10 +472,6 @@ public static class Relative extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class BillUntil extends StripeObject { - /** Use an index to specify the position of an amendment to end prebilling with. */ - @SerializedName("amendment_end") - AmendmentEnd amendmentEnd; - /** The timestamp the billing schedule will apply until. */ @SerializedName("computed_timestamp") Long computedTimestamp; @@ -539,10 +480,6 @@ public static class BillUntil extends StripeObject { @SerializedName("duration") Duration duration; - /** Lets you bill the period ending at a particular Quote line. */ - @SerializedName("line_ends_at") - LineEndsAt lineEndsAt; - /** If specified, the billing schedule will apply until the specified timestamp. */ @SerializedName("timestamp") Long timestamp; @@ -551,22 +488,11 @@ public static class BillUntil extends StripeObject { * Describes how the billing schedule will determine the end date. Either {@code duration} or * {@code timestamp}. * - *

One of {@code amendment_end}, {@code duration}, {@code line_ends_at}, {@code - * schedule_end}, {@code timestamp}, or {@code upcoming_invoice}. + *

One of {@code duration}, or {@code timestamp}. */ @SerializedName("type") String type; - /** Use an index to specify the position of an amendment to end prebilling with. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmendmentEnd extends StripeObject { - /** Use an index to specify the position of an amendment to end prebilling with. */ - @SerializedName("index") - Long index; - } - /** * Configures the {@code bill_until} date based on the provided {@code interval} and {@code * interval_count}. @@ -588,17 +514,6 @@ public static class Duration extends StripeObject { @SerializedName("interval_count") Long intervalCount; } - - /** The timestamp the given line ends at. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class LineEndsAt extends StripeObject implements HasId { - /** Unique identifier for the object. */ - @Getter(onMethod_ = {@Override}) - @SerializedName("id") - String id; - } } } @@ -1873,6 +1788,10 @@ public static class Item extends StripeObject { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + /** Get ID of expandable {@code plan} object. */ public String getPlan() { return (this.plan != null) ? this.plan.getId() : null; diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index fb85694206a..684e88f9d54 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -1577,22 +1577,10 @@ public void setPriceObject(Price expandableObject) { @Setter @EqualsAndHashCode(callSuper = false) public static class BillFrom extends StripeObject { - /** Use an index to specify the position of an amendment to start prebilling with. */ - @SerializedName("amendment_start") - AmendmentStart amendmentStart; - /** The time the billing schedule applies from. */ @SerializedName("computed_timestamp") Long computedTimestamp; - /** Lets you bill the period starting from a particular Quote line. */ - @SerializedName("line_starts_at") - LineStartsAt lineStartsAt; - - /** Timestamp is calculated from the request time. */ - @SerializedName("relative") - Relative relative; - /** * Use a precise Unix timestamp for prebilling to start. Must be earlier than {@code * bill_until}. @@ -1602,55 +1590,12 @@ public static class BillFrom extends StripeObject { /** * Describes how the billing schedule determines the start date. Possible values are {@code - * timestamp}, {@code relative}, {@code amendment_start}, {@code now}, {@code - * quote_acceptance_date}, {@code line_starts_at}, or {@code pause_collection_start}. - * - *

One of {@code amendment_start}, {@code line_starts_at}, {@code now}, {@code - * pause_collection_start}, {@code quote_acceptance_date}, {@code relative}, or {@code * timestamp}. + * + *

Equal to {@code timestamp}. */ @SerializedName("type") String type; - - /** Use an index to specify the position of an amendment to start prebilling with. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmendmentStart extends StripeObject { - /** Use an index to specify the position of an amendment to start prebilling with. */ - @SerializedName("index") - Long index; - } - - /** The timestamp the given line starts at. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class LineStartsAt extends StripeObject implements HasId { - /** Unique identifier for the object. */ - @Getter(onMethod_ = {@Override}) - @SerializedName("id") - String id; - } - - /** Timestamp is calculated from the request time. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Relative extends StripeObject { - /** - * Specifies billing duration. Possible values are {@code day}, {@code week}, {@code month}, - * or {@code year}. - * - *

One of {@code day}, {@code month}, {@code week}, or {@code year}. - */ - @SerializedName("interval") - String interval; - - /** The multiplier applied to the interval. */ - @SerializedName("interval_count") - Long intervalCount; - } } /** Specifies the end of billing period. */ @@ -1658,10 +1603,6 @@ public static class Relative extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class BillUntil extends StripeObject { - /** Use an index to specify the position of an amendment to end prebilling with. */ - @SerializedName("amendment_end") - AmendmentEnd amendmentEnd; - /** The timestamp the billing schedule will apply until. */ @SerializedName("computed_timestamp") Long computedTimestamp; @@ -1670,10 +1611,6 @@ public static class BillUntil extends StripeObject { @SerializedName("duration") Duration duration; - /** Lets you bill the period ending at a particular Quote line. */ - @SerializedName("line_ends_at") - LineEndsAt lineEndsAt; - /** If specified, the billing schedule will apply until the specified timestamp. */ @SerializedName("timestamp") Long timestamp; @@ -1682,22 +1619,11 @@ public static class BillUntil extends StripeObject { * Describes how the billing schedule will determine the end date. Either {@code duration} or * {@code timestamp}. * - *

One of {@code amendment_end}, {@code duration}, {@code line_ends_at}, {@code - * schedule_end}, {@code timestamp}, or {@code upcoming_invoice}. + *

One of {@code duration}, or {@code timestamp}. */ @SerializedName("type") String type; - /** Use an index to specify the position of an amendment to end prebilling with. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmendmentEnd extends StripeObject { - /** Use an index to specify the position of an amendment to end prebilling with. */ - @SerializedName("index") - Long index; - } - /** * Configures the {@code bill_until} date based on the provided {@code interval} and {@code * interval_count}. @@ -1719,17 +1645,6 @@ public static class Duration extends StripeObject { @SerializedName("interval_count") Long intervalCount; } - - /** The timestamp the given line ends at. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class LineEndsAt extends StripeObject implements HasId { - /** Unique identifier for the object. */ - @Getter(onMethod_ = {@Override}) - @SerializedName("id") - String id; - } } } diff --git a/src/main/java/com/stripe/model/SubscriptionItem.java b/src/main/java/com/stripe/model/SubscriptionItem.java index e525396e6d4..a8e5a103ab7 100644 --- a/src/main/java/com/stripe/model/SubscriptionItem.java +++ b/src/main/java/com/stripe/model/SubscriptionItem.java @@ -53,6 +53,10 @@ public class SubscriptionItem extends ApiResource @SerializedName("current_period_start") Long currentPeriodStart; + /** The current trial that is applied to this subscription item. */ + @SerializedName("current_trial") + CurrentTrial currentTrial; + /** Always true for a deleted object. */ @SerializedName("deleted") Boolean deleted; @@ -408,6 +412,21 @@ public static class BillingThresholds extends StripeObject { Long usageGte; } + /** The current trial attached to the subscription item. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CurrentTrial extends StripeObject { + @SerializedName("end_date") + Long endDate; + + @SerializedName("start_date") + Long startDate; + + @SerializedName("trial_offer") + String trialOffer; + } + /** * For more details about Trial, please refer to the API * Reference. @@ -436,6 +455,7 @@ public static class Trial extends StripeObject { public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); trySetResponseGetter(billingThresholds, responseGetter); + trySetResponseGetter(currentTrial, responseGetter); trySetResponseGetter(plan, responseGetter); trySetResponseGetter(price, responseGetter); trySetResponseGetter(trial, responseGetter); diff --git a/src/main/java/com/stripe/model/SubscriptionSchedule.java b/src/main/java/com/stripe/model/SubscriptionSchedule.java index bf001940101..75ba60e99f9 100644 --- a/src/main/java/com/stripe/model/SubscriptionSchedule.java +++ b/src/main/java/com/stripe/model/SubscriptionSchedule.java @@ -761,22 +761,10 @@ public void setPriceObject(Price expandableObject) { @Setter @EqualsAndHashCode(callSuper = false) public static class BillFrom extends StripeObject { - /** Use an index to specify the position of an amendment to start prebilling with. */ - @SerializedName("amendment_start") - AmendmentStart amendmentStart; - /** The time the billing schedule applies from. */ @SerializedName("computed_timestamp") Long computedTimestamp; - /** Lets you bill the period starting from a particular Quote line. */ - @SerializedName("line_starts_at") - LineStartsAt lineStartsAt; - - /** Timestamp is calculated from the request time. */ - @SerializedName("relative") - Relative relative; - /** * Use a precise Unix timestamp for prebilling to start. Must be earlier than {@code * bill_until}. @@ -786,55 +774,12 @@ public static class BillFrom extends StripeObject { /** * Describes how the billing schedule determines the start date. Possible values are {@code - * timestamp}, {@code relative}, {@code amendment_start}, {@code now}, {@code - * quote_acceptance_date}, {@code line_starts_at}, or {@code pause_collection_start}. - * - *

One of {@code amendment_start}, {@code line_starts_at}, {@code now}, {@code - * pause_collection_start}, {@code quote_acceptance_date}, {@code relative}, or {@code * timestamp}. + * + *

Equal to {@code timestamp}. */ @SerializedName("type") String type; - - /** Use an index to specify the position of an amendment to start prebilling with. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmendmentStart extends StripeObject { - /** Use an index to specify the position of an amendment to start prebilling with. */ - @SerializedName("index") - Long index; - } - - /** The timestamp the given line starts at. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class LineStartsAt extends StripeObject implements HasId { - /** Unique identifier for the object. */ - @Getter(onMethod_ = {@Override}) - @SerializedName("id") - String id; - } - - /** Timestamp is calculated from the request time. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Relative extends StripeObject { - /** - * Specifies billing duration. Possible values are {@code day}, {@code week}, {@code month}, - * or {@code year}. - * - *

One of {@code day}, {@code month}, {@code week}, or {@code year}. - */ - @SerializedName("interval") - String interval; - - /** The multiplier applied to the interval. */ - @SerializedName("interval_count") - Long intervalCount; - } } /** Specifies the end of billing period. */ @@ -842,10 +787,6 @@ public static class Relative extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class BillUntil extends StripeObject { - /** Use an index to specify the position of an amendment to end prebilling with. */ - @SerializedName("amendment_end") - AmendmentEnd amendmentEnd; - /** The timestamp the billing schedule will apply until. */ @SerializedName("computed_timestamp") Long computedTimestamp; @@ -854,10 +795,6 @@ public static class BillUntil extends StripeObject { @SerializedName("duration") Duration duration; - /** Lets you bill the period ending at a particular Quote line. */ - @SerializedName("line_ends_at") - LineEndsAt lineEndsAt; - /** If specified, the billing schedule will apply until the specified timestamp. */ @SerializedName("timestamp") Long timestamp; @@ -866,22 +803,11 @@ public static class BillUntil extends StripeObject { * Describes how the billing schedule will determine the end date. Either {@code duration} or * {@code timestamp}. * - *

One of {@code amendment_end}, {@code duration}, {@code line_ends_at}, {@code - * schedule_end}, {@code timestamp}, or {@code upcoming_invoice}. + *

One of {@code duration}, or {@code timestamp}. */ @SerializedName("type") String type; - /** Use an index to specify the position of an amendment to end prebilling with. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmendmentEnd extends StripeObject { - /** Use an index to specify the position of an amendment to end prebilling with. */ - @SerializedName("index") - Long index; - } - /** * Configures the {@code bill_until} date based on the provided {@code interval} and {@code * interval_count}. @@ -903,17 +829,6 @@ public static class Duration extends StripeObject { @SerializedName("interval_count") Long intervalCount; } - - /** The timestamp the given line ends at. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class LineEndsAt extends StripeObject implements HasId { - /** Unique identifier for the object. */ - @Getter(onMethod_ = {@Override}) - @SerializedName("id") - String id; - } } } @@ -2187,6 +2102,10 @@ public static class Item extends StripeObject { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + /** Get ID of expandable {@code plan} object. */ public String getPlan() { return (this.plan != null) ? this.plan.getId() : null; diff --git a/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java b/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java index ef1a1210d9a..4372976121f 100644 --- a/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java +++ b/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java @@ -528,6 +528,22 @@ public static class Shipping extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class LineItemDetail extends StripeObject { + /** The total discount for this line item. If no discount were applied, defaults to 0. */ + @SerializedName("amount_discount") + Long amountDiscount; + + /** The total before any discounts or taxes are applied. */ + @SerializedName("amount_subtotal") + Long amountSubtotal; + + /** The total after discounts but before taxes are applied. */ + @SerializedName("amount_subtotal_after_discount") + Long amountSubtotalAfterDiscount; + + /** The total after discounts and taxes. */ + @SerializedName("amount_total") + Long amountTotal; + /** The description of the line item. */ @SerializedName("description") String description; @@ -552,9 +568,17 @@ public static class LineItemDetail extends StripeObject { @SerializedName("sku_id") String skuId; - /** The unit amount of the line item. */ + /** The per-unit amount of the item before any discounts or taxes are applied. */ @SerializedName("unit_amount") Long unitAmount; + + /** The per-unit amount of the item after discounts but before taxes are applied. */ + @SerializedName("unit_amount_after_discount") + Long unitAmountAfterDiscount; + + /** The per-unit discount amount. If no discount were applied, defaults to 0. */ + @SerializedName("unit_discount") + Long unitDiscount; } /** @@ -702,6 +726,10 @@ public static class TotalDetails extends StripeObject { @SerializedName("amount_fulfillment") Long amountFulfillment; + /** Total of all items after discounts but before taxes are applied. */ + @SerializedName("amount_subtotal_after_discount") + Long amountSubtotalAfterDiscount; + /** The amount tax of the total details. */ @SerializedName("amount_tax") Long amountTax; diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index 992cd94aeb0..66be2939fa3 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -3521,7 +3521,7 @@ public static class ScheduleDetails { /** Sets the billing schedules for the subscription schedule. */ @SerializedName("billing_schedules") - List billingSchedules; + Object billingSchedules; /** * Behavior of the subscription schedule and underlying subscription when it ends. Possible @@ -3564,7 +3564,7 @@ private ScheduleDetails( List amendments, BillingBehavior billingBehavior, BillingMode billingMode, - List billingSchedules, + Object billingSchedules, EndBehavior endBehavior, Map extraParams, List phases, @@ -3592,7 +3592,7 @@ public static class Builder { private BillingMode billingMode; - private List billingSchedules; + private Object billingSchedules; private EndBehavior endBehavior; @@ -3670,12 +3670,15 @@ public Builder setBillingMode( * call, and subsequent calls adds additional elements to the original list. See {@link * InvoiceCreatePreviewParams.ScheduleDetails#billingSchedules} for the field documentation. */ + @SuppressWarnings("unchecked") public Builder addBillingSchedule( InvoiceCreatePreviewParams.ScheduleDetails.BillingSchedule element) { - if (this.billingSchedules == null) { - this.billingSchedules = new ArrayList<>(); + if (this.billingSchedules == null || this.billingSchedules instanceof EmptyParam) { + this.billingSchedules = + new ArrayList(); } - this.billingSchedules.add(element); + ((List) this.billingSchedules) + .add(element); return this; } @@ -3685,12 +3688,28 @@ public Builder addBillingSchedule( * {@link InvoiceCreatePreviewParams.ScheduleDetails#billingSchedules} for the field * documentation. */ + @SuppressWarnings("unchecked") public Builder addAllBillingSchedule( List elements) { - if (this.billingSchedules == null) { - this.billingSchedules = new ArrayList<>(); + if (this.billingSchedules == null || this.billingSchedules instanceof EmptyParam) { + this.billingSchedules = + new ArrayList(); } - this.billingSchedules.addAll(elements); + ((List) this.billingSchedules) + .addAll(elements); + return this; + } + + /** Sets the billing schedules for the subscription schedule. */ + public Builder setBillingSchedules(EmptyParam billingSchedules) { + this.billingSchedules = billingSchedules; + return this; + } + + /** Sets the billing schedules for the subscription schedule. */ + public Builder setBillingSchedules( + List billingSchedules) { + this.billingSchedules = billingSchedules; return this; } @@ -3856,6 +3875,17 @@ public static class Amendment { @SerializedName("discount_actions") List discountActions; + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code + * phase_start} bills based on the current state of the subscription, ignoring changes + * scheduled in future phases. {@code billing_period_start} bills predictively for upcoming + * phase transitions within the current billing cycle, including pricing changes and service + * period adjustments that will occur before the next invoice. + */ + @SerializedName("effective_at") + EffectiveAt effectiveAt; + /** * 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. @@ -3908,6 +3938,7 @@ private Amendment( List billingSchedulesActions, List discountActions, + EffectiveAt effectiveAt, Map extraParams, List itemActions, List metadataActions, @@ -3920,6 +3951,7 @@ private Amendment( this.billingCycleAnchor = billingCycleAnchor; this.billingSchedulesActions = billingSchedulesActions; this.discountActions = discountActions; + this.effectiveAt = effectiveAt; this.extraParams = extraParams; this.itemActions = itemActions; this.metadataActions = metadataActions; @@ -3946,6 +3978,8 @@ public static class Builder { private List discountActions; + private EffectiveAt effectiveAt; + private Map extraParams; private List itemActions; @@ -3969,6 +4003,7 @@ public InvoiceCreatePreviewParams.ScheduleDetails.Amendment build() { this.billingCycleAnchor, this.billingSchedulesActions, this.discountActions, + this.effectiveAt, this.extraParams, this.itemActions, this.metadataActions, @@ -4076,6 +4111,20 @@ public Builder addAllDiscountAction( return this; } + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code + * phase_start} bills based on the current state of the subscription, ignoring changes + * scheduled in future phases. {@code billing_period_start} bills predictively for upcoming + * phase transitions within the current billing cycle, including pricing changes and service + * period adjustments that will occur before the next invoice. + */ + public Builder setEffectiveAt( + InvoiceCreatePreviewParams.ScheduleDetails.Amendment.EffectiveAt effectiveAt) { + this.effectiveAt = effectiveAt; + 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 @@ -5928,6 +5977,10 @@ public static class Add { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + private Add( List discounts, @@ -5936,7 +5989,8 @@ private Add( String price, Long quantity, List taxRates, - Trial trial) { + Trial trial, + String trialOffer) { this.discounts = discounts; this.extraParams = extraParams; this.metadata = metadata; @@ -5944,6 +5998,7 @@ private Add( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -5967,6 +6022,8 @@ public static class Builder { private Trial trial; + private String trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add build() { return new InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add( @@ -5976,7 +6033,8 @@ public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add build this.price, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -6118,6 +6176,12 @@ public Builder setTrial( this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter @@ -6780,6 +6844,10 @@ public static class Set { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + private Set( List discounts, @@ -6788,7 +6856,8 @@ private Set( String price, Long quantity, List taxRates, - Trial trial) { + Trial trial, + String trialOffer) { this.discounts = discounts; this.extraParams = extraParams; this.metadata = metadata; @@ -6796,6 +6865,7 @@ private Set( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -6819,6 +6889,8 @@ public static class Builder { private Trial trial; + private String trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set build() { return new InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set( @@ -6828,7 +6900,8 @@ public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set build this.price, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -6980,6 +7053,12 @@ public Builder setTrial( this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter @@ -8162,6 +8241,21 @@ public enum BillingCycleAnchor implements ApiRequestParams.EnumParam { } } + public enum EffectiveAt implements ApiRequestParams.EnumParam { + @SerializedName("amendment_start") + AMENDMENT_START("amendment_start"), + + @SerializedName("billing_period_start") + BILLING_PERIOD_START("billing_period_start"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + EffectiveAt(String value) { + this.value = value; + } + } + public enum ProrationBehavior implements ApiRequestParams.EnumParam { @SerializedName("always_invoice") ALWAYS_INVOICE("always_invoice"), @@ -8869,23 +8963,11 @@ public enum Interval implements ApiRequestParams.EnumParam { } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("amendment_end") - AMENDMENT_END("amendment_end"), - @SerializedName("duration") DURATION("duration"), - @SerializedName("line_ends_at") - LINE_ENDS_AT("line_ends_at"), - - @SerializedName("schedule_end") - SCHEDULE_END("schedule_end"), - @SerializedName("timestamp") - TIMESTAMP("timestamp"), - - @SerializedName("upcoming_invoice") - UPCOMING_INVOICE("upcoming_invoice"); + TIMESTAMP("timestamp"); @Getter(onMethod_ = {@Override}) private final String value; @@ -12093,6 +12175,10 @@ public static class Item { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + private Item( Object billingThresholds, Object discounts, @@ -12103,7 +12189,8 @@ private Item( PriceData priceData, Long quantity, Object taxRates, - Trial trial) { + Trial trial, + String trialOffer) { this.billingThresholds = billingThresholds; this.discounts = discounts; this.extraParams = extraParams; @@ -12114,6 +12201,7 @@ private Item( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -12141,6 +12229,8 @@ public static class Builder { private Trial trial; + private String trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item build() { return new InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item( @@ -12153,7 +12243,8 @@ public InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item build() { this.priceData, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -12375,6 +12466,12 @@ public Builder setTrial( this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter @@ -15493,23 +15590,11 @@ public enum Interval implements ApiRequestParams.EnumParam { } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("amendment_end") - AMENDMENT_END("amendment_end"), - @SerializedName("duration") DURATION("duration"), - @SerializedName("line_ends_at") - LINE_ENDS_AT("line_ends_at"), - - @SerializedName("schedule_end") - SCHEDULE_END("schedule_end"), - @SerializedName("timestamp") - TIMESTAMP("timestamp"), - - @SerializedName("upcoming_invoice") - UPCOMING_INVOICE("upcoming_invoice"); + TIMESTAMP("timestamp"); @Getter(onMethod_ = {@Override}) private final String value; @@ -15539,6 +15624,10 @@ public static class Item { @SerializedName("clear_usage") Boolean clearUsage; + /** The trial offer to apply to this subscription item. */ + @SerializedName("current_trial") + CurrentTrial currentTrial; + /** A flag that, if set to {@code true}, will delete the specified item. */ @SerializedName("deleted") Boolean deleted; @@ -15605,6 +15694,7 @@ public static class Item { private Item( Object billingThresholds, Boolean clearUsage, + CurrentTrial currentTrial, Boolean deleted, Object discounts, Map extraParams, @@ -15617,6 +15707,7 @@ private Item( Object taxRates) { this.billingThresholds = billingThresholds; this.clearUsage = clearUsage; + this.currentTrial = currentTrial; this.deleted = deleted; this.discounts = discounts; this.extraParams = extraParams; @@ -15638,6 +15729,8 @@ public static class Builder { private Boolean clearUsage; + private CurrentTrial currentTrial; + private Boolean deleted; private Object discounts; @@ -15663,6 +15756,7 @@ public InvoiceCreatePreviewParams.SubscriptionDetails.Item build() { return new InvoiceCreatePreviewParams.SubscriptionDetails.Item( this.billingThresholds, this.clearUsage, + this.currentTrial, this.deleted, this.discounts, this.extraParams, @@ -15705,6 +15799,13 @@ public Builder setClearUsage(Boolean clearUsage) { return this; } + /** The trial offer to apply to this subscription item. */ + public Builder setCurrentTrial( + InvoiceCreatePreviewParams.SubscriptionDetails.Item.CurrentTrial currentTrial) { + this.currentTrial = currentTrial; + return this; + } + /** A flag that, if set to {@code true}, will delete the specified item. */ public Builder setDeleted(Boolean deleted) { this.deleted = deleted; @@ -16018,6 +16119,106 @@ public Builder setUsageGte(Long usageGte) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CurrentTrial { + /** + * 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; + + /** + * Unix timestamp representing the end of the trial offer period. Required when the trial + * offer has {@code duration.type=timestamp}. Cannot be specified when {@code + * duration.type=relative}. + */ + @SerializedName("trial_end") + Long trialEnd; + + /** + * Required. The ID of the trial offer to apply to the subscription item. + */ + @SerializedName("trial_offer") + String trialOffer; + + private CurrentTrial(Map extraParams, Long trialEnd, String trialOffer) { + this.extraParams = extraParams; + this.trialEnd = trialEnd; + this.trialOffer = trialOffer; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long trialEnd; + + private String trialOffer; + + /** Finalize and obtain parameter instance from this builder. */ + public InvoiceCreatePreviewParams.SubscriptionDetails.Item.CurrentTrial build() { + return new InvoiceCreatePreviewParams.SubscriptionDetails.Item.CurrentTrial( + this.extraParams, this.trialEnd, this.trialOffer); + } + + /** + * 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 + * InvoiceCreatePreviewParams.SubscriptionDetails.Item.CurrentTrial#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 + * InvoiceCreatePreviewParams.SubscriptionDetails.Item.CurrentTrial#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Unix timestamp representing the end of the trial offer period. Required when the trial + * offer has {@code duration.type=timestamp}. Cannot be specified when {@code + * duration.type=relative}. + */ + public Builder setTrialEnd(Long trialEnd) { + this.trialEnd = trialEnd; + return this; + } + + /** + * Required. The ID of the trial offer to apply to the subscription item. + */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Discount { diff --git a/src/main/java/com/stripe/param/QuoteCreateParams.java b/src/main/java/com/stripe/param/QuoteCreateParams.java index 38f4080dd9c..a501aaf96c7 100644 --- a/src/main/java/com/stripe/param/QuoteCreateParams.java +++ b/src/main/java/com/stripe/param/QuoteCreateParams.java @@ -1640,6 +1640,17 @@ public static class Line { @SerializedName("cancel_subscription_schedule") CancelSubscriptionSchedule cancelSubscriptionSchedule; + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} + * bills based on the current state of the subscription, ignoring changes scheduled in future + * phases. {@code billing_period_start} bills predictively for upcoming phase transitions within + * the current billing cycle, including pricing changes and service period adjustments that will + * occur before the next invoice. + */ + @SerializedName("effective_at") + EffectiveAt effectiveAt; + /** * Details to identify the end of the time range modified by the proposed change. If not * supplied, the quote line is considered a point-in-time operation that only affects the exact @@ -1692,6 +1703,7 @@ private Line( AppliesTo appliesTo, BillingCycleAnchor billingCycleAnchor, CancelSubscriptionSchedule cancelSubscriptionSchedule, + EffectiveAt effectiveAt, EndsAt endsAt, Map extraParams, ProrationBehavior prorationBehavior, @@ -1703,6 +1715,7 @@ private Line( this.appliesTo = appliesTo; this.billingCycleAnchor = billingCycleAnchor; this.cancelSubscriptionSchedule = cancelSubscriptionSchedule; + this.effectiveAt = effectiveAt; this.endsAt = endsAt; this.extraParams = extraParams; this.prorationBehavior = prorationBehavior; @@ -1725,6 +1738,8 @@ public static class Builder { private CancelSubscriptionSchedule cancelSubscriptionSchedule; + private EffectiveAt effectiveAt; + private EndsAt endsAt; private Map extraParams; @@ -1746,6 +1761,7 @@ public QuoteCreateParams.Line build() { this.appliesTo, this.billingCycleAnchor, this.cancelSubscriptionSchedule, + this.effectiveAt, this.endsAt, this.extraParams, this.prorationBehavior, @@ -1814,6 +1830,19 @@ public Builder setCancelSubscriptionSchedule( return this; } + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code + * phase_start} bills based on the current state of the subscription, ignoring changes + * scheduled in future phases. {@code billing_period_start} bills predictively for upcoming + * phase transitions within the current billing cycle, including pricing changes and service + * period adjustments that will occur before the next invoice. + */ + public Builder setEffectiveAt(QuoteCreateParams.Line.EffectiveAt effectiveAt) { + this.effectiveAt = effectiveAt; + return this; + } + /** * Details to identify the end of the time range modified by the proposed change. If not * supplied, the quote line is considered a point-in-time operation that only affects the @@ -2502,6 +2531,10 @@ public static class AddItem { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + private AddItem( List discounts, Map extraParams, @@ -2509,7 +2542,8 @@ private AddItem( String price, Long quantity, List taxRates, - Trial trial) { + Trial trial, + String trialOffer) { this.discounts = discounts; this.extraParams = extraParams; this.metadata = metadata; @@ -2517,6 +2551,7 @@ private AddItem( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -2538,6 +2573,8 @@ public static class Builder { private Trial trial; + private String trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public QuoteCreateParams.Line.Action.AddItem build() { return new QuoteCreateParams.Line.Action.AddItem( @@ -2547,7 +2584,8 @@ public QuoteCreateParams.Line.Action.AddItem build() { this.price, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -2675,6 +2713,12 @@ public Builder setTrial(QuoteCreateParams.Line.Action.AddItem.Trial trial) { this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter @@ -3506,6 +3550,10 @@ public static class SetItem { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + private SetItem( List discounts, Map extraParams, @@ -3513,7 +3561,8 @@ private SetItem( String price, Long quantity, List taxRates, - Trial trial) { + Trial trial, + String trialOffer) { this.discounts = discounts; this.extraParams = extraParams; this.metadata = metadata; @@ -3521,6 +3570,7 @@ private SetItem( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -3542,6 +3592,8 @@ public static class Builder { private Trial trial; + private String trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public QuoteCreateParams.Line.Action.SetItem build() { return new QuoteCreateParams.Line.Action.SetItem( @@ -3551,7 +3603,8 @@ public QuoteCreateParams.Line.Action.SetItem build() { this.price, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -3688,6 +3741,12 @@ public Builder setTrial(QuoteCreateParams.Line.Action.SetItem.Trial trial) { this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter @@ -5504,6 +5563,21 @@ public enum BillingCycleAnchor implements ApiRequestParams.EnumParam { } } + public enum EffectiveAt implements ApiRequestParams.EnumParam { + @SerializedName("billing_period_start") + BILLING_PERIOD_START("billing_period_start"), + + @SerializedName("line_start") + LINE_START("line_start"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + EffectiveAt(String value) { + this.value = value; + } + } + public enum ProrationBehavior implements ApiRequestParams.EnumParam { @SerializedName("always_invoice") ALWAYS_INVOICE("always_invoice"), @@ -6486,7 +6560,7 @@ public static class SubscriptionData { * when the quote is accepted. */ @SerializedName("billing_schedules") - Object billingSchedules; + List billingSchedules; /** * The subscription's description, meant to be displayable to the customer. Use this field to @@ -6588,7 +6662,7 @@ private SubscriptionData( BillingBehavior billingBehavior, ApiRequestParams.EnumParam billingCycleAnchor, BillingMode billingMode, - Object billingSchedules, + List billingSchedules, String description, Object effectiveDate, EndBehavior endBehavior, @@ -6629,7 +6703,7 @@ public static class Builder { private BillingMode billingMode; - private Object billingSchedules; + private List billingSchedules; private String description; @@ -6721,15 +6795,12 @@ public Builder setBillingMode(QuoteCreateParams.SubscriptionData.BillingMode bil * call, and subsequent calls adds additional elements to the original list. See {@link * QuoteCreateParams.SubscriptionData#billingSchedules} for the field documentation. */ - @SuppressWarnings("unchecked") public Builder addBillingSchedule( QuoteCreateParams.SubscriptionData.BillingSchedule element) { - if (this.billingSchedules == null || this.billingSchedules instanceof EmptyParam) { - this.billingSchedules = - new ArrayList(); + if (this.billingSchedules == null) { + this.billingSchedules = new ArrayList<>(); } - ((List) this.billingSchedules) - .add(element); + this.billingSchedules.add(element); return this; } @@ -6738,34 +6809,12 @@ public Builder addBillingSchedule( * `add/addAll` call, and subsequent calls adds additional elements to the original list. See * {@link QuoteCreateParams.SubscriptionData#billingSchedules} for the field documentation. */ - @SuppressWarnings("unchecked") public Builder addAllBillingSchedule( List elements) { - if (this.billingSchedules == null || this.billingSchedules instanceof EmptyParam) { - this.billingSchedules = - new ArrayList(); + if (this.billingSchedules == null) { + this.billingSchedules = new ArrayList<>(); } - ((List) this.billingSchedules) - .addAll(elements); - return this; - } - - /** - * Billing schedules that will be applied to the subscription or subscription schedule created - * when the quote is accepted. - */ - public Builder setBillingSchedules(EmptyParam billingSchedules) { - this.billingSchedules = billingSchedules; - return this; - } - - /** - * Billing schedules that will be applied to the subscription or subscription schedule created - * when the quote is accepted. - */ - public Builder setBillingSchedules( - List billingSchedules) { - this.billingSchedules = billingSchedules; + this.billingSchedules.addAll(elements); return this; } @@ -8842,8 +8891,8 @@ public enum PhaseEffectiveAt implements ApiRequestParams.EnumParam { @SerializedName("billing_period_start") BILLING_PERIOD_START("billing_period_start"), - @SerializedName("phase_start") - PHASE_START("phase_start"); + @SerializedName("line_start") + LINE_START("line_start"); @Getter(onMethod_ = {@Override}) private final String value; @@ -8901,7 +8950,7 @@ public static class SubscriptionDataOverride { * when the quote is accepted. */ @SerializedName("billing_schedules") - Object billingSchedules; + List billingSchedules; /** * The customer the Subscription Data override applies to. This is only relevant when {@code @@ -8965,7 +9014,7 @@ private SubscriptionDataOverride( AppliesTo appliesTo, BillOnAcceptance billOnAcceptance, BillingBehavior billingBehavior, - Object billingSchedules, + List billingSchedules, String customer, String description, EndBehavior endBehavior, @@ -8995,7 +9044,7 @@ public static class Builder { private BillingBehavior billingBehavior; - private Object billingSchedules; + private List billingSchedules; private String customer; @@ -9058,15 +9107,12 @@ public Builder setBillingBehavior( * call, and subsequent calls adds additional elements to the original list. See {@link * QuoteCreateParams.SubscriptionDataOverride#billingSchedules} for the field documentation. */ - @SuppressWarnings("unchecked") public Builder addBillingSchedule( QuoteCreateParams.SubscriptionDataOverride.BillingSchedule element) { - if (this.billingSchedules == null || this.billingSchedules instanceof EmptyParam) { - this.billingSchedules = - new ArrayList(); + if (this.billingSchedules == null) { + this.billingSchedules = new ArrayList<>(); } - ((List) this.billingSchedules) - .add(element); + this.billingSchedules.add(element); return this; } @@ -9076,34 +9122,12 @@ public Builder addBillingSchedule( * {@link QuoteCreateParams.SubscriptionDataOverride#billingSchedules} for the field * documentation. */ - @SuppressWarnings("unchecked") public Builder addAllBillingSchedule( List elements) { - if (this.billingSchedules == null || this.billingSchedules instanceof EmptyParam) { - this.billingSchedules = - new ArrayList(); + if (this.billingSchedules == null) { + this.billingSchedules = new ArrayList<>(); } - ((List) this.billingSchedules) - .addAll(elements); - return this; - } - - /** - * Billing schedules that will be applied to the subscription or subscription schedule created - * when the quote is accepted. - */ - public Builder setBillingSchedules(EmptyParam billingSchedules) { - this.billingSchedules = billingSchedules; - return this; - } - - /** - * Billing schedules that will be applied to the subscription or subscription schedule created - * when the quote is accepted. - */ - public Builder setBillingSchedules( - List billingSchedules) { - this.billingSchedules = billingSchedules; + this.billingSchedules.addAll(elements); return this; } @@ -10917,8 +10941,8 @@ public enum PhaseEffectiveAt implements ApiRequestParams.EnumParam { @SerializedName("billing_period_start") BILLING_PERIOD_START("billing_period_start"), - @SerializedName("phase_start") - PHASE_START("phase_start"); + @SerializedName("line_start") + LINE_START("line_start"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/QuoteUpdateParams.java b/src/main/java/com/stripe/param/QuoteUpdateParams.java index e5d0bb67025..7564dd5a360 100644 --- a/src/main/java/com/stripe/param/QuoteUpdateParams.java +++ b/src/main/java/com/stripe/param/QuoteUpdateParams.java @@ -1553,6 +1553,17 @@ public static class Line { @SerializedName("cancel_subscription_schedule") CancelSubscriptionSchedule cancelSubscriptionSchedule; + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} + * bills based on the current state of the subscription, ignoring changes scheduled in future + * phases. {@code billing_period_start} bills predictively for upcoming phase transitions within + * the current billing cycle, including pricing changes and service period adjustments that will + * occur before the next invoice. + */ + @SerializedName("effective_at") + EffectiveAt effectiveAt; + /** * Details to identify the end of the time range modified by the proposed change. If not * supplied, the quote line is considered a point-in-time operation that only affects the exact @@ -1609,6 +1620,7 @@ private Line( AppliesTo appliesTo, BillingCycleAnchor billingCycleAnchor, CancelSubscriptionSchedule cancelSubscriptionSchedule, + EffectiveAt effectiveAt, EndsAt endsAt, Map extraParams, Object id, @@ -1621,6 +1633,7 @@ private Line( this.appliesTo = appliesTo; this.billingCycleAnchor = billingCycleAnchor; this.cancelSubscriptionSchedule = cancelSubscriptionSchedule; + this.effectiveAt = effectiveAt; this.endsAt = endsAt; this.extraParams = extraParams; this.id = id; @@ -1644,6 +1657,8 @@ public static class Builder { private CancelSubscriptionSchedule cancelSubscriptionSchedule; + private EffectiveAt effectiveAt; + private EndsAt endsAt; private Map extraParams; @@ -1667,6 +1682,7 @@ public QuoteUpdateParams.Line build() { this.appliesTo, this.billingCycleAnchor, this.cancelSubscriptionSchedule, + this.effectiveAt, this.endsAt, this.extraParams, this.id, @@ -1736,6 +1752,19 @@ public Builder setCancelSubscriptionSchedule( return this; } + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code + * phase_start} bills based on the current state of the subscription, ignoring changes + * scheduled in future phases. {@code billing_period_start} bills predictively for upcoming + * phase transitions within the current billing cycle, including pricing changes and service + * period adjustments that will occur before the next invoice. + */ + public Builder setEffectiveAt(QuoteUpdateParams.Line.EffectiveAt effectiveAt) { + this.effectiveAt = effectiveAt; + return this; + } + /** * Details to identify the end of the time range modified by the proposed change. If not * supplied, the quote line is considered a point-in-time operation that only affects the @@ -2454,6 +2483,10 @@ public static class AddItem { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + Object trialOffer; + private AddItem( List discounts, Map extraParams, @@ -2461,7 +2494,8 @@ private AddItem( Object price, Long quantity, List taxRates, - Trial trial) { + Trial trial, + Object trialOffer) { this.discounts = discounts; this.extraParams = extraParams; this.metadata = metadata; @@ -2469,6 +2503,7 @@ private AddItem( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -2490,6 +2525,8 @@ public static class Builder { private Trial trial; + private Object trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public QuoteUpdateParams.Line.Action.AddItem build() { return new QuoteUpdateParams.Line.Action.AddItem( @@ -2499,7 +2536,8 @@ public QuoteUpdateParams.Line.Action.AddItem build() { this.price, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -2633,6 +2671,18 @@ public Builder setTrial(QuoteUpdateParams.Line.Action.AddItem.Trial trial) { this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(EmptyParam trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter @@ -3524,6 +3574,10 @@ public static class SetItem { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + Object trialOffer; + private SetItem( List discounts, Map extraParams, @@ -3531,7 +3585,8 @@ private SetItem( Object price, Long quantity, List taxRates, - Trial trial) { + Trial trial, + Object trialOffer) { this.discounts = discounts; this.extraParams = extraParams; this.metadata = metadata; @@ -3539,6 +3594,7 @@ private SetItem( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -3560,6 +3616,8 @@ public static class Builder { private Trial trial; + private Object trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public QuoteUpdateParams.Line.Action.SetItem build() { return new QuoteUpdateParams.Line.Action.SetItem( @@ -3569,7 +3627,8 @@ public QuoteUpdateParams.Line.Action.SetItem build() { this.price, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -3712,6 +3771,18 @@ public Builder setTrial(QuoteUpdateParams.Line.Action.SetItem.Trial trial) { this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(EmptyParam trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter @@ -5594,6 +5665,21 @@ public enum BillingCycleAnchor implements ApiRequestParams.EnumParam { } } + public enum EffectiveAt implements ApiRequestParams.EnumParam { + @SerializedName("billing_period_start") + BILLING_PERIOD_START("billing_period_start"), + + @SerializedName("line_start") + LINE_START("line_start"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + EffectiveAt(String value) { + this.value = value; + } + } + public enum ProrationBehavior implements ApiRequestParams.EnumParam { @SerializedName("always_invoice") ALWAYS_INVOICE("always_invoice"), @@ -8813,8 +8899,8 @@ public enum PhaseEffectiveAt implements ApiRequestParams.EnumParam { @SerializedName("billing_period_start") BILLING_PERIOD_START("billing_period_start"), - @SerializedName("phase_start") - PHASE_START("phase_start"); + @SerializedName("line_start") + LINE_START("line_start"); @Getter(onMethod_ = {@Override}) private final String value; @@ -10949,8 +11035,8 @@ public enum PhaseEffectiveAt implements ApiRequestParams.EnumParam { @SerializedName("billing_period_start") BILLING_PERIOD_START("billing_period_start"), - @SerializedName("phase_start") - PHASE_START("phase_start"); + @SerializedName("line_start") + LINE_START("line_start"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index 0daf0495ed7..c420a8e4650 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -3312,23 +3312,11 @@ public enum Interval implements ApiRequestParams.EnumParam { } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("amendment_end") - AMENDMENT_END("amendment_end"), - @SerializedName("duration") DURATION("duration"), - @SerializedName("line_ends_at") - LINE_ENDS_AT("line_ends_at"), - - @SerializedName("schedule_end") - SCHEDULE_END("schedule_end"), - @SerializedName("timestamp") - TIMESTAMP("timestamp"), - - @SerializedName("upcoming_invoice") - UPCOMING_INVOICE("upcoming_invoice"); + TIMESTAMP("timestamp"); @Getter(onMethod_ = {@Override}) private final String value; @@ -4031,6 +4019,10 @@ public static class Item { @SerializedName("billing_thresholds") Object billingThresholds; + /** The trial offer to apply to this subscription item. */ + @SerializedName("current_trial") + CurrentTrial currentTrial; + /** The coupons to redeem into discounts for the subscription item. */ @SerializedName("discounts") Object discounts; @@ -4088,6 +4080,7 @@ public static class Item { private Item( Object billingThresholds, + CurrentTrial currentTrial, Object discounts, Map extraParams, Map metadata, @@ -4098,6 +4091,7 @@ private Item( Object taxRates, Trial trial) { this.billingThresholds = billingThresholds; + this.currentTrial = currentTrial; this.discounts = discounts; this.extraParams = extraParams; this.metadata = metadata; @@ -4116,6 +4110,8 @@ public static Builder builder() { public static class Builder { private Object billingThresholds; + private CurrentTrial currentTrial; + private Object discounts; private Map extraParams; @@ -4138,6 +4134,7 @@ public static class Builder { public SubscriptionCreateParams.Item build() { return new SubscriptionCreateParams.Item( this.billingThresholds, + this.currentTrial, this.discounts, this.extraParams, this.metadata, @@ -4168,6 +4165,12 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { return this; } + /** The trial offer to apply to this subscription item. */ + public Builder setCurrentTrial(SubscriptionCreateParams.Item.CurrentTrial currentTrial) { + this.currentTrial = currentTrial; + return this; + } + /** * Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, * and subsequent calls adds additional elements to the original list. See {@link @@ -4428,6 +4431,101 @@ public Builder setUsageGte(Long usageGte) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CurrentTrial { + /** + * 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; + + /** + * Unix timestamp representing the end of the trial offer period. Required when the trial + * offer has {@code duration.type=timestamp}. Cannot be specified when {@code + * duration.type=relative}. + */ + @SerializedName("trial_end") + Long trialEnd; + + /** Required. The ID of the trial offer to apply to the subscription item. */ + @SerializedName("trial_offer") + String trialOffer; + + private CurrentTrial(Map extraParams, Long trialEnd, String trialOffer) { + this.extraParams = extraParams; + this.trialEnd = trialEnd; + this.trialOffer = trialOffer; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long trialEnd; + + private String trialOffer; + + /** Finalize and obtain parameter instance from this builder. */ + public SubscriptionCreateParams.Item.CurrentTrial build() { + return new SubscriptionCreateParams.Item.CurrentTrial( + this.extraParams, this.trialEnd, this.trialOffer); + } + + /** + * 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 SubscriptionCreateParams.Item.CurrentTrial#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 SubscriptionCreateParams.Item.CurrentTrial#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Unix timestamp representing the end of the trial offer period. Required when the trial + * offer has {@code duration.type=timestamp}. Cannot be specified when {@code + * duration.type=relative}. + */ + public Builder setTrialEnd(Long trialEnd) { + this.trialEnd = trialEnd; + return this; + } + + /** + * Required. The ID of the trial offer to apply to the subscription item. + */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Discount { diff --git a/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java b/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java index 654163d8542..c2b05f8ebf7 100644 --- a/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java @@ -22,6 +22,10 @@ public class SubscriptionItemCreateParams extends ApiRequestParams { @SerializedName("billing_thresholds") Object billingThresholds; + /** The trial offer to apply to this subscription item. */ + @SerializedName("current_trial") + CurrentTrial currentTrial; + /** The coupons to redeem into discounts for the subscription item. */ @SerializedName("discounts") Object discounts; @@ -136,6 +140,7 @@ public class SubscriptionItemCreateParams extends ApiRequestParams { private SubscriptionItemCreateParams( Object billingThresholds, + CurrentTrial currentTrial, Object discounts, List expand, Map extraParams, @@ -151,6 +156,7 @@ private SubscriptionItemCreateParams( Object taxRates, Trial trial) { this.billingThresholds = billingThresholds; + this.currentTrial = currentTrial; this.discounts = discounts; this.expand = expand; this.extraParams = extraParams; @@ -174,6 +180,8 @@ public static Builder builder() { public static class Builder { private Object billingThresholds; + private CurrentTrial currentTrial; + private Object discounts; private List expand; @@ -206,6 +214,7 @@ public static class Builder { public SubscriptionItemCreateParams build() { return new SubscriptionItemCreateParams( this.billingThresholds, + this.currentTrial, this.discounts, this.expand, this.extraParams, @@ -241,6 +250,12 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { return this; } + /** The trial offer to apply to this subscription item. */ + public Builder setCurrentTrial(SubscriptionItemCreateParams.CurrentTrial currentTrial) { + this.currentTrial = currentTrial; + return this; + } + /** * Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, * and subsequent calls adds additional elements to the original list. See {@link @@ -588,6 +603,97 @@ public Builder setUsageGte(Long usageGte) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CurrentTrial { + /** + * 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; + + /** + * Unix timestamp representing the end of the trial offer period. Required when the trial offer + * has {@code duration.type=timestamp}. Cannot be specified when {@code duration.type=relative}. + */ + @SerializedName("trial_end") + Long trialEnd; + + /** Required. The ID of the trial offer to apply to the subscription item. */ + @SerializedName("trial_offer") + String trialOffer; + + private CurrentTrial(Map extraParams, Long trialEnd, String trialOffer) { + this.extraParams = extraParams; + this.trialEnd = trialEnd; + this.trialOffer = trialOffer; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long trialEnd; + + private String trialOffer; + + /** Finalize and obtain parameter instance from this builder. */ + public SubscriptionItemCreateParams.CurrentTrial build() { + return new SubscriptionItemCreateParams.CurrentTrial( + this.extraParams, this.trialEnd, this.trialOffer); + } + + /** + * 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 + * SubscriptionItemCreateParams.CurrentTrial#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 SubscriptionItemCreateParams.CurrentTrial#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Unix timestamp representing the end of the trial offer period. Required when the trial + * offer has {@code duration.type=timestamp}. Cannot be specified when {@code + * duration.type=relative}. + */ + public Builder setTrialEnd(Long trialEnd) { + this.trialEnd = trialEnd; + return this; + } + + /** Required. The ID of the trial offer to apply to the subscription item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Discount { diff --git a/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java index 7e6fe84f088..1afc5786a47 100644 --- a/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java @@ -22,6 +22,10 @@ public class SubscriptionItemUpdateParams extends ApiRequestParams { @SerializedName("billing_thresholds") Object billingThresholds; + /** The trial offer to apply to this subscription item. */ + @SerializedName("current_trial") + CurrentTrial currentTrial; + /** The coupons to redeem into discounts for the subscription item. */ @SerializedName("discounts") Object discounts; @@ -139,6 +143,7 @@ public class SubscriptionItemUpdateParams extends ApiRequestParams { private SubscriptionItemUpdateParams( Object billingThresholds, + CurrentTrial currentTrial, Object discounts, List expand, Map extraParams, @@ -153,6 +158,7 @@ private SubscriptionItemUpdateParams( Long quantity, Object taxRates) { this.billingThresholds = billingThresholds; + this.currentTrial = currentTrial; this.discounts = discounts; this.expand = expand; this.extraParams = extraParams; @@ -175,6 +181,8 @@ public static Builder builder() { public static class Builder { private Object billingThresholds; + private CurrentTrial currentTrial; + private Object discounts; private List expand; @@ -205,6 +213,7 @@ public static class Builder { public SubscriptionItemUpdateParams build() { return new SubscriptionItemUpdateParams( this.billingThresholds, + this.currentTrial, this.discounts, this.expand, this.extraParams, @@ -239,6 +248,12 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { return this; } + /** The trial offer to apply to this subscription item. */ + public Builder setCurrentTrial(SubscriptionItemUpdateParams.CurrentTrial currentTrial) { + this.currentTrial = currentTrial; + return this; + } + /** * Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, * and subsequent calls adds additional elements to the original list. See {@link @@ -627,6 +642,103 @@ public Builder setUsageGte(Long usageGte) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CurrentTrial { + /** + * 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; + + /** + * Unix timestamp representing the end of the trial offer period. Required when the trial offer + * has {@code duration.type=timestamp}. Cannot be specified when {@code duration.type=relative}. + */ + @SerializedName("trial_end") + Long trialEnd; + + /** Required. The ID of the trial offer to apply to the subscription item. */ + @SerializedName("trial_offer") + Object trialOffer; + + private CurrentTrial(Map extraParams, Long trialEnd, Object trialOffer) { + this.extraParams = extraParams; + this.trialEnd = trialEnd; + this.trialOffer = trialOffer; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long trialEnd; + + private Object trialOffer; + + /** Finalize and obtain parameter instance from this builder. */ + public SubscriptionItemUpdateParams.CurrentTrial build() { + return new SubscriptionItemUpdateParams.CurrentTrial( + this.extraParams, this.trialEnd, this.trialOffer); + } + + /** + * 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 + * SubscriptionItemUpdateParams.CurrentTrial#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 SubscriptionItemUpdateParams.CurrentTrial#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Unix timestamp representing the end of the trial offer period. Required when the trial + * offer has {@code duration.type=timestamp}. Cannot be specified when {@code + * duration.type=relative}. + */ + public Builder setTrialEnd(Long trialEnd) { + this.trialEnd = trialEnd; + return this; + } + + /** Required. The ID of the trial offer to apply to the subscription item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } + + /** Required. The ID of the trial offer to apply to the subscription item. */ + public Builder setTrialOffer(EmptyParam trialOffer) { + this.trialOffer = trialOffer; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Discount { diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleAmendParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleAmendParams.java index c463b3ce54e..f502c39f367 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleAmendParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleAmendParams.java @@ -266,6 +266,17 @@ public static class Amendment { @SerializedName("discount_actions") List discountActions; + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} + * bills based on the current state of the subscription, ignoring changes scheduled in future + * phases. {@code billing_period_start} bills predictively for upcoming phase transitions within + * the current billing cycle, including pricing changes and service period adjustments that will + * occur before the next invoice. + */ + @SerializedName("effective_at") + EffectiveAt effectiveAt; + /** * 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 @@ -318,6 +329,7 @@ private Amendment( List billingSchedulesActions, List discountActions, + EffectiveAt effectiveAt, Map extraParams, List itemActions, List metadataActions, @@ -330,6 +342,7 @@ private Amendment( this.billingCycleAnchor = billingCycleAnchor; this.billingSchedulesActions = billingSchedulesActions; this.discountActions = discountActions; + this.effectiveAt = effectiveAt; this.extraParams = extraParams; this.itemActions = itemActions; this.metadataActions = metadataActions; @@ -355,6 +368,8 @@ public static class Builder { private List discountActions; + private EffectiveAt effectiveAt; + private Map extraParams; private List itemActions; @@ -377,6 +392,7 @@ public SubscriptionScheduleAmendParams.Amendment build() { this.billingCycleAnchor, this.billingSchedulesActions, this.discountActions, + this.effectiveAt, this.extraParams, this.itemActions, this.metadataActions, @@ -481,6 +497,20 @@ public Builder addAllDiscountAction( return this; } + /** + * Configures how the subscription schedule handles billing for phase transitions. Possible + * values are {@code phase_start} (default) or {@code billing_period_start}. {@code + * phase_start} bills based on the current state of the subscription, ignoring changes + * scheduled in future phases. {@code billing_period_start} bills predictively for upcoming + * phase transitions within the current billing cycle, including pricing changes and service + * period adjustments that will occur before the next invoice. + */ + public Builder setEffectiveAt( + SubscriptionScheduleAmendParams.Amendment.EffectiveAt effectiveAt) { + this.effectiveAt = effectiveAt; + 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 @@ -2272,6 +2302,10 @@ public static class Add { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + private Add( List discounts, Map extraParams, @@ -2279,7 +2313,8 @@ private Add( String price, Long quantity, List taxRates, - Trial trial) { + Trial trial, + String trialOffer) { this.discounts = discounts; this.extraParams = extraParams; this.metadata = metadata; @@ -2287,6 +2322,7 @@ private Add( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -2308,6 +2344,8 @@ public static class Builder { private Trial trial; + private String trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public SubscriptionScheduleAmendParams.Amendment.ItemAction.Add build() { return new SubscriptionScheduleAmendParams.Amendment.ItemAction.Add( @@ -2317,7 +2355,8 @@ public SubscriptionScheduleAmendParams.Amendment.ItemAction.Add build() { this.price, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -2452,6 +2491,12 @@ public Builder setTrial( this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter @@ -3101,6 +3146,10 @@ public static class Set { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + private Set( List discounts, Map extraParams, @@ -3108,7 +3157,8 @@ private Set( String price, Long quantity, List taxRates, - Trial trial) { + Trial trial, + String trialOffer) { this.discounts = discounts; this.extraParams = extraParams; this.metadata = metadata; @@ -3116,6 +3166,7 @@ private Set( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -3137,6 +3188,8 @@ public static class Builder { private Trial trial; + private String trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public SubscriptionScheduleAmendParams.Amendment.ItemAction.Set build() { return new SubscriptionScheduleAmendParams.Amendment.ItemAction.Set( @@ -3146,7 +3199,8 @@ public SubscriptionScheduleAmendParams.Amendment.ItemAction.Set build() { this.price, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -3290,6 +3344,12 @@ public Builder setTrial( this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter @@ -4443,6 +4503,21 @@ public enum BillingCycleAnchor implements ApiRequestParams.EnumParam { } } + public enum EffectiveAt implements ApiRequestParams.EnumParam { + @SerializedName("amendment_start") + AMENDMENT_START("amendment_start"), + + @SerializedName("billing_period_start") + BILLING_PERIOD_START("billing_period_start"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + EffectiveAt(String value) { + this.value = value; + } + } + public enum ProrationBehavior implements ApiRequestParams.EnumParam { @SerializedName("always_invoice") ALWAYS_INVOICE("always_invoice"), diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java index 260597ee539..808a3506295 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java @@ -1085,23 +1085,11 @@ public enum Interval implements ApiRequestParams.EnumParam { } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("amendment_end") - AMENDMENT_END("amendment_end"), - @SerializedName("duration") DURATION("duration"), - @SerializedName("line_ends_at") - LINE_ENDS_AT("line_ends_at"), - - @SerializedName("schedule_end") - SCHEDULE_END("schedule_end"), - @SerializedName("timestamp") - TIMESTAMP("timestamp"), - - @SerializedName("upcoming_invoice") - UPCOMING_INVOICE("upcoming_invoice"); + TIMESTAMP("timestamp"); @Getter(onMethod_ = {@Override}) private final String value; @@ -5247,6 +5235,10 @@ public static class Item { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + String trialOffer; + private Item( Object billingThresholds, Object discounts, @@ -5257,7 +5249,8 @@ private Item( PriceData priceData, Long quantity, Object taxRates, - Trial trial) { + Trial trial, + String trialOffer) { this.billingThresholds = billingThresholds; this.discounts = discounts; this.extraParams = extraParams; @@ -5268,6 +5261,7 @@ private Item( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -5295,6 +5289,8 @@ public static class Builder { private Trial trial; + private String trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public SubscriptionScheduleCreateParams.Phase.Item build() { return new SubscriptionScheduleCreateParams.Phase.Item( @@ -5307,7 +5303,8 @@ public SubscriptionScheduleCreateParams.Phase.Item build() { this.priceData, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -5519,6 +5516,12 @@ public Builder setTrial(SubscriptionScheduleCreateParams.Phase.Item.Trial trial) this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java index 5d5c92f1ae1..9f611e25194 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java @@ -840,23 +840,11 @@ public enum Interval implements ApiRequestParams.EnumParam { } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("amendment_end") - AMENDMENT_END("amendment_end"), - @SerializedName("duration") DURATION("duration"), - @SerializedName("line_ends_at") - LINE_ENDS_AT("line_ends_at"), - - @SerializedName("schedule_end") - SCHEDULE_END("schedule_end"), - @SerializedName("timestamp") - TIMESTAMP("timestamp"), - - @SerializedName("upcoming_invoice") - UPCOMING_INVOICE("upcoming_invoice"); + TIMESTAMP("timestamp"); @Getter(onMethod_ = {@Override}) private final String value; @@ -5192,6 +5180,10 @@ public static class Item { @SerializedName("trial") Trial trial; + /** The ID of the trial offer to apply to the configuration item. */ + @SerializedName("trial_offer") + Object trialOffer; + private Item( Object billingThresholds, Object discounts, @@ -5202,7 +5194,8 @@ private Item( PriceData priceData, Long quantity, Object taxRates, - Trial trial) { + Trial trial, + Object trialOffer) { this.billingThresholds = billingThresholds; this.discounts = discounts; this.extraParams = extraParams; @@ -5213,6 +5206,7 @@ private Item( this.quantity = quantity; this.taxRates = taxRates; this.trial = trial; + this.trialOffer = trialOffer; } public static Builder builder() { @@ -5240,6 +5234,8 @@ public static class Builder { private Trial trial; + private Object trialOffer; + /** Finalize and obtain parameter instance from this builder. */ public SubscriptionScheduleUpdateParams.Phase.Item build() { return new SubscriptionScheduleUpdateParams.Phase.Item( @@ -5252,7 +5248,8 @@ public SubscriptionScheduleUpdateParams.Phase.Item build() { this.priceData, this.quantity, this.taxRates, - this.trial); + this.trial, + this.trialOffer); } /** @@ -5479,6 +5476,18 @@ public Builder setTrial(SubscriptionScheduleUpdateParams.Phase.Item.Trial trial) this.trial = trial; return this; } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } + + /** The ID of the trial offer to apply to the configuration item. */ + public Builder setTrialOffer(EmptyParam trialOffer) { + this.trialOffer = trialOffer; + return this; + } } @Getter diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index 1b1e338119e..747315bdaa1 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -3083,23 +3083,11 @@ public enum Interval implements ApiRequestParams.EnumParam { } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("amendment_end") - AMENDMENT_END("amendment_end"), - @SerializedName("duration") DURATION("duration"), - @SerializedName("line_ends_at") - LINE_ENDS_AT("line_ends_at"), - - @SerializedName("schedule_end") - SCHEDULE_END("schedule_end"), - @SerializedName("timestamp") - TIMESTAMP("timestamp"), - - @SerializedName("upcoming_invoice") - UPCOMING_INVOICE("upcoming_invoice"); + TIMESTAMP("timestamp"); @Getter(onMethod_ = {@Override}) private final String value; @@ -3982,6 +3970,10 @@ public static class Item { @SerializedName("clear_usage") Boolean clearUsage; + /** The trial offer to apply to this subscription item. */ + @SerializedName("current_trial") + CurrentTrial currentTrial; + /** A flag that, if set to {@code true}, will delete the specified item. */ @SerializedName("deleted") Boolean deleted; @@ -4048,6 +4040,7 @@ public static class Item { private Item( Object billingThresholds, Boolean clearUsage, + CurrentTrial currentTrial, Boolean deleted, Object discounts, Map extraParams, @@ -4060,6 +4053,7 @@ private Item( Object taxRates) { this.billingThresholds = billingThresholds; this.clearUsage = clearUsage; + this.currentTrial = currentTrial; this.deleted = deleted; this.discounts = discounts; this.extraParams = extraParams; @@ -4081,6 +4075,8 @@ public static class Builder { private Boolean clearUsage; + private CurrentTrial currentTrial; + private Boolean deleted; private Object discounts; @@ -4106,6 +4102,7 @@ public SubscriptionUpdateParams.Item build() { return new SubscriptionUpdateParams.Item( this.billingThresholds, this.clearUsage, + this.currentTrial, this.deleted, this.discounts, this.extraParams, @@ -4147,6 +4144,12 @@ public Builder setClearUsage(Boolean clearUsage) { return this; } + /** The trial offer to apply to this subscription item. */ + public Builder setCurrentTrial(SubscriptionUpdateParams.Item.CurrentTrial currentTrial) { + this.currentTrial = currentTrial; + return this; + } + /** A flag that, if set to {@code true}, will delete the specified item. */ public Builder setDeleted(Boolean deleted) { this.deleted = deleted; @@ -4463,6 +4466,109 @@ public Builder setUsageGte(Long usageGte) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CurrentTrial { + /** + * 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; + + /** + * Unix timestamp representing the end of the trial offer period. Required when the trial + * offer has {@code duration.type=timestamp}. Cannot be specified when {@code + * duration.type=relative}. + */ + @SerializedName("trial_end") + Long trialEnd; + + /** Required. The ID of the trial offer to apply to the subscription item. */ + @SerializedName("trial_offer") + Object trialOffer; + + private CurrentTrial(Map extraParams, Long trialEnd, Object trialOffer) { + this.extraParams = extraParams; + this.trialEnd = trialEnd; + this.trialOffer = trialOffer; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long trialEnd; + + private Object trialOffer; + + /** Finalize and obtain parameter instance from this builder. */ + public SubscriptionUpdateParams.Item.CurrentTrial build() { + return new SubscriptionUpdateParams.Item.CurrentTrial( + this.extraParams, this.trialEnd, this.trialOffer); + } + + /** + * 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 SubscriptionUpdateParams.Item.CurrentTrial#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 SubscriptionUpdateParams.Item.CurrentTrial#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Unix timestamp representing the end of the trial offer period. Required when the trial + * offer has {@code duration.type=timestamp}. Cannot be specified when {@code + * duration.type=relative}. + */ + public Builder setTrialEnd(Long trialEnd) { + this.trialEnd = trialEnd; + return this; + } + + /** + * Required. The ID of the trial offer to apply to the subscription item. + */ + public Builder setTrialOffer(String trialOffer) { + this.trialOffer = trialOffer; + return this; + } + + /** + * Required. The ID of the trial offer to apply to the subscription item. + */ + public Builder setTrialOffer(EmptyParam trialOffer) { + this.trialOffer = trialOffer; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Discount { diff --git a/src/main/java/com/stripe/service/PaymentMethodService.java b/src/main/java/com/stripe/service/PaymentMethodService.java index d4e1740aa5f..303713c4803 100644 --- a/src/main/java/com/stripe/service/PaymentMethodService.java +++ b/src/main/java/com/stripe/service/PaymentMethodService.java @@ -312,22 +312,22 @@ public PaymentMethod attach( options); return this.request(request, PaymentMethod.class); } - /** Retrieves a payment method’s balance. */ + /** Retrieves a PaymentMethod’s Balance. */ public PaymentMethodBalance checkBalance( String paymentMethod, PaymentMethodCheckBalanceParams params) throws StripeException { return checkBalance(paymentMethod, params, (RequestOptions) null); } - /** Retrieves a payment method’s balance. */ + /** Retrieves a PaymentMethod’s Balance. */ public PaymentMethodBalance checkBalance(String paymentMethod, RequestOptions options) throws StripeException { return checkBalance(paymentMethod, (PaymentMethodCheckBalanceParams) null, options); } - /** Retrieves a payment method’s balance. */ + /** Retrieves a PaymentMethod’s Balance. */ public PaymentMethodBalance checkBalance(String paymentMethod) throws StripeException { return checkBalance( paymentMethod, (PaymentMethodCheckBalanceParams) null, (RequestOptions) null); } - /** Retrieves a payment method’s balance. */ + /** Retrieves a PaymentMethod’s Balance. */ public PaymentMethodBalance checkBalance( String paymentMethod, PaymentMethodCheckBalanceParams params, RequestOptions options) throws StripeException { From d00bc1bb3bf1437ef4f89a6a0d219506600b9b8a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 20 Nov 2025 22:43:51 +0000 Subject: [PATCH 3/4] Update generated code for v2128 and --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/ApiVersion.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/API_VERSION b/API_VERSION index a49631fe1c3..3a2e1ae5860 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -0dd134c7389483bd3510fb0bdfca6eef85688924 \ No newline at end of file +c85b626acfc47a72547df680726f0e1a14c8ca37 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 114ac0579b5..1d5ad796c42 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2127 \ No newline at end of file +v2128 \ 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 afd35346caf..b71201060b4 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 = "2025-10-29.preview"; + public static final String CURRENT = "2025-11-17.preview"; } From 1697e5551e281b812fb4de5de0d43a84d2a41550 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 20 Nov 2025 23:01:33 +0000 Subject: [PATCH 4/4] Update generated code for v2128 and --- API_VERSION | 2 +- .../stripe/events/V1AccountUpdatedEvent.java | 22 - .../V1AccountUpdatedEventNotification.java | 27 - .../events/V1ApplicationFeeCreatedEvent.java | 22 - ...pplicationFeeCreatedEventNotification.java | 27 - .../events/V1ApplicationFeeRefundedEvent.java | 22 - ...plicationFeeRefundedEventNotification.java | 27 - ...illingPortalConfigurationCreatedEvent.java | 22 - ...ConfigurationCreatedEventNotification.java | 27 - ...illingPortalConfigurationUpdatedEvent.java | 22 - ...ConfigurationUpdatedEventNotification.java | 27 - .../events/V1CapabilityUpdatedEvent.java | 22 - .../V1CapabilityUpdatedEventNotification.java | 27 - .../stripe/events/V1ChargeCapturedEvent.java | 22 - .../V1ChargeCapturedEventNotification.java | 27 - .../events/V1ChargeDisputeClosedEvent.java | 22 - ...1ChargeDisputeClosedEventNotification.java | 27 - .../events/V1ChargeDisputeCreatedEvent.java | 22 - ...ChargeDisputeCreatedEventNotification.java | 27 - .../V1ChargeDisputeFundsReinstatedEvent.java | 22 - ...sputeFundsReinstatedEventNotification.java | 27 - .../V1ChargeDisputeFundsWithdrawnEvent.java | 22 - ...isputeFundsWithdrawnEventNotification.java | 27 - .../events/V1ChargeDisputeUpdatedEvent.java | 22 - ...ChargeDisputeUpdatedEventNotification.java | 27 - .../stripe/events/V1ChargeExpiredEvent.java | 22 - .../V1ChargeExpiredEventNotification.java | 27 - .../stripe/events/V1ChargeFailedEvent.java | 22 - .../V1ChargeFailedEventNotification.java | 27 - .../stripe/events/V1ChargePendingEvent.java | 22 - .../V1ChargePendingEventNotification.java | 27 - .../events/V1ChargeRefundUpdatedEvent.java | 22 - ...1ChargeRefundUpdatedEventNotification.java | 27 - .../stripe/events/V1ChargeRefundedEvent.java | 22 - .../V1ChargeRefundedEventNotification.java | 27 - .../stripe/events/V1ChargeSucceededEvent.java | 22 - .../V1ChargeSucceededEventNotification.java | 27 - .../stripe/events/V1ChargeUpdatedEvent.java | 22 - .../V1ChargeUpdatedEventNotification.java | 27 - ...heckoutSessionAsyncPaymentFailedEvent.java | 22 - ...onAsyncPaymentFailedEventNotification.java | 27 - ...koutSessionAsyncPaymentSucceededEvent.java | 22 - ...syncPaymentSucceededEventNotification.java | 28 - .../V1CheckoutSessionCompletedEvent.java | 22 - ...koutSessionCompletedEventNotification.java | 27 - .../events/V1CheckoutSessionExpiredEvent.java | 22 - ...eckoutSessionExpiredEventNotification.java | 27 - .../events/V1ClimateOrderCanceledEvent.java | 22 - ...ClimateOrderCanceledEventNotification.java | 27 - .../events/V1ClimateOrderCreatedEvent.java | 22 - ...1ClimateOrderCreatedEventNotification.java | 27 - .../events/V1ClimateOrderDelayedEvent.java | 22 - ...1ClimateOrderDelayedEventNotification.java | 27 - .../events/V1ClimateOrderDeliveredEvent.java | 22 - ...limateOrderDeliveredEventNotification.java | 27 - ...V1ClimateOrderProductSubstitutedEvent.java | 22 - ...erProductSubstitutedEventNotification.java | 27 - .../events/V1ClimateProductCreatedEvent.java | 22 - ...limateProductCreatedEventNotification.java | 27 - .../V1ClimateProductPricingUpdatedEvent.java | 22 - ...roductPricingUpdatedEventNotification.java | 27 - .../stripe/events/V1CouponCreatedEvent.java | 22 - .../V1CouponCreatedEventNotification.java | 27 - .../stripe/events/V1CouponDeletedEvent.java | 22 - .../V1CouponDeletedEventNotification.java | 27 - .../stripe/events/V1CouponUpdatedEvent.java | 22 - .../V1CouponUpdatedEventNotification.java | 27 - .../events/V1CreditNoteCreatedEvent.java | 22 - .../V1CreditNoteCreatedEventNotification.java | 27 - .../events/V1CreditNoteUpdatedEvent.java | 22 - .../V1CreditNoteUpdatedEventNotification.java | 27 - .../events/V1CreditNoteVoidedEvent.java | 22 - .../V1CreditNoteVoidedEventNotification.java | 27 - .../stripe/events/V1CustomerCreatedEvent.java | 22 - .../V1CustomerCreatedEventNotification.java | 27 - .../stripe/events/V1CustomerDeletedEvent.java | 22 - .../V1CustomerDeletedEventNotification.java | 27 - .../V1CustomerSubscriptionCreatedEvent.java | 22 - ...rSubscriptionCreatedEventNotification.java | 27 - .../V1CustomerSubscriptionDeletedEvent.java | 22 - ...rSubscriptionDeletedEventNotification.java | 27 - .../V1CustomerSubscriptionPausedEvent.java | 22 - ...erSubscriptionPausedEventNotification.java | 27 - ...SubscriptionPendingUpdateAppliedEvent.java | 22 - ...PendingUpdateAppliedEventNotification.java | 28 - ...SubscriptionPendingUpdateExpiredEvent.java | 22 - ...PendingUpdateExpiredEventNotification.java | 28 - .../V1CustomerSubscriptionResumedEvent.java | 22 - ...rSubscriptionResumedEventNotification.java | 27 - ...CustomerSubscriptionTrialWillEndEvent.java | 22 - ...criptionTrialWillEndEventNotification.java | 27 - .../V1CustomerSubscriptionUpdatedEvent.java | 22 - ...rSubscriptionUpdatedEventNotification.java | 27 - .../events/V1CustomerTaxIdCreatedEvent.java | 22 - ...CustomerTaxIdCreatedEventNotification.java | 27 - .../events/V1CustomerTaxIdDeletedEvent.java | 22 - ...CustomerTaxIdDeletedEventNotification.java | 27 - .../events/V1CustomerTaxIdUpdatedEvent.java | 22 - ...CustomerTaxIdUpdatedEventNotification.java | 27 - .../stripe/events/V1CustomerUpdatedEvent.java | 22 - .../V1CustomerUpdatedEventNotification.java | 27 - .../com/stripe/events/V1FileCreatedEvent.java | 22 - .../V1FileCreatedEventNotification.java | 27 - ...nancialConnectionsAccountCreatedEvent.java | 22 - ...ctionsAccountCreatedEventNotification.java | 27 - ...ialConnectionsAccountDeactivatedEvent.java | 22 - ...nsAccountDeactivatedEventNotification.java | 28 - ...alConnectionsAccountDisconnectedEvent.java | 22 - ...ialConnectionsAccountReactivatedEvent.java | 22 - ...nnectionsAccountRefreshedBalanceEvent.java | 22 - ...ountRefreshedBalanceEventNotification.java | 28 - ...ectionsAccountRefreshedOwnershipEvent.java | 22 - ...ntRefreshedOwnershipEventNotification.java | 28 - ...ionsAccountRefreshedTransactionsEvent.java | 22 - ...efreshedTransactionsEventNotification.java | 29 - ...ntityVerificationSessionCanceledEvent.java | 22 - ...ationSessionCanceledEventNotification.java | 28 - ...entityVerificationSessionCreatedEvent.java | 22 - ...cationSessionCreatedEventNotification.java | 27 - ...ityVerificationSessionProcessingEvent.java | 22 - ...ionSessionProcessingEventNotification.java | 28 - ...ntityVerificationSessionRedactedEvent.java | 22 - ...ationSessionRedactedEventNotification.java | 28 - ...VerificationSessionRequiresInputEvent.java | 22 - ...SessionRequiresInputEventNotification.java | 28 - ...ntityVerificationSessionVerifiedEvent.java | 22 - ...ationSessionVerifiedEventNotification.java | 28 - .../stripe/events/V1InvoiceCreatedEvent.java | 22 - .../V1InvoiceCreatedEventNotification.java | 27 - .../stripe/events/V1InvoiceDeletedEvent.java | 22 - .../V1InvoiceDeletedEventNotification.java | 27 - .../V1InvoiceFinalizationFailedEvent.java | 22 - ...ceFinalizationFailedEventNotification.java | 27 - .../events/V1InvoiceFinalizedEvent.java | 22 - .../V1InvoiceFinalizedEventNotification.java | 27 - .../V1InvoiceMarkedUncollectibleEvent.java | 22 - ...eMarkedUncollectibleEventNotification.java | 27 - .../stripe/events/V1InvoiceOverdueEvent.java | 22 - .../V1InvoiceOverdueEventNotification.java | 27 - .../stripe/events/V1InvoiceOverpaidEvent.java | 22 - .../V1InvoiceOverpaidEventNotification.java | 27 - .../com/stripe/events/V1InvoicePaidEvent.java | 22 - .../V1InvoicePaidEventNotification.java | 27 - .../V1InvoicePaymentActionRequiredEvent.java | 22 - ...aymentActionRequiredEventNotification.java | 27 - .../events/V1InvoicePaymentFailedEvent.java | 22 - ...InvoicePaymentFailedEventNotification.java | 27 - .../events/V1InvoicePaymentPaidEvent.java | 22 - ...V1InvoicePaymentPaidEventNotification.java | 27 - .../V1InvoicePaymentSucceededEvent.java | 22 - ...oicePaymentSucceededEventNotification.java | 27 - .../com/stripe/events/V1InvoiceSentEvent.java | 22 - .../V1InvoiceSentEventNotification.java | 27 - .../stripe/events/V1InvoiceUpcomingEvent.java | 22 - .../V1InvoiceUpcomingEventNotification.java | 27 - .../stripe/events/V1InvoiceUpdatedEvent.java | 22 - .../V1InvoiceUpdatedEventNotification.java | 27 - .../stripe/events/V1InvoiceVoidedEvent.java | 22 - .../V1InvoiceVoidedEventNotification.java | 27 - .../events/V1InvoiceWillBeDueEvent.java | 22 - .../V1InvoiceWillBeDueEventNotification.java | 27 - .../events/V1InvoiceitemCreatedEvent.java | 22 - ...V1InvoiceitemCreatedEventNotification.java | 27 - .../events/V1InvoiceitemDeletedEvent.java | 22 - ...V1InvoiceitemDeletedEventNotification.java | 27 - .../V1IssuingAuthorizationCreatedEvent.java | 22 - ...AuthorizationCreatedEventNotification.java | 27 - .../V1IssuingAuthorizationRequestEvent.java | 22 - ...AuthorizationRequestEventNotification.java | 27 - .../V1IssuingAuthorizationUpdatedEvent.java | 22 - ...AuthorizationUpdatedEventNotification.java | 27 - .../events/V1IssuingCardCreatedEvent.java | 22 - ...V1IssuingCardCreatedEventNotification.java | 27 - .../events/V1IssuingCardUpdatedEvent.java | 22 - ...V1IssuingCardUpdatedEventNotification.java | 27 - .../V1IssuingCardholderCreatedEvent.java | 22 - ...ingCardholderCreatedEventNotification.java | 27 - .../V1IssuingCardholderUpdatedEvent.java | 22 - ...ingCardholderUpdatedEventNotification.java | 27 - .../events/V1IssuingDisputeClosedEvent.java | 22 - ...IssuingDisputeClosedEventNotification.java | 27 - .../events/V1IssuingDisputeCreatedEvent.java | 22 - ...ssuingDisputeCreatedEventNotification.java | 27 - .../V1IssuingDisputeFundsReinstatedEvent.java | 22 - ...sputeFundsReinstatedEventNotification.java | 27 - .../V1IssuingDisputeFundsRescindedEvent.java | 22 - ...isputeFundsRescindedEventNotification.java | 27 - .../V1IssuingDisputeSubmittedEvent.java | 22 - ...uingDisputeSubmittedEventNotification.java | 27 - .../events/V1IssuingDisputeUpdatedEvent.java | 22 - ...ssuingDisputeUpdatedEventNotification.java | 27 - ...ngPersonalizationDesignActivatedEvent.java | 22 - ...ationDesignActivatedEventNotification.java | 28 - ...PersonalizationDesignDeactivatedEvent.java | 22 - ...ionDesignDeactivatedEventNotification.java | 28 - ...ingPersonalizationDesignRejectedEvent.java | 22 - ...zationDesignRejectedEventNotification.java | 28 - ...uingPersonalizationDesignUpdatedEvent.java | 22 - ...izationDesignUpdatedEventNotification.java | 28 - .../events/V1IssuingTokenCreatedEvent.java | 22 - ...1IssuingTokenCreatedEventNotification.java | 27 - .../events/V1IssuingTokenUpdatedEvent.java | 22 - ...1IssuingTokenUpdatedEventNotification.java | 27 - .../V1IssuingTransactionCreatedEvent.java | 22 - ...ngTransactionCreatedEventNotification.java | 27 - ...ionPurchaseDetailsReceiptUpdatedEvent.java | 22 - ...etailsReceiptUpdatedEventNotification.java | 29 - .../V1IssuingTransactionUpdatedEvent.java | 22 - ...ngTransactionUpdatedEventNotification.java | 27 - .../stripe/events/V1MandateUpdatedEvent.java | 22 - .../V1MandateUpdatedEventNotification.java | 27 - ...entIntentAmountCapturableUpdatedEvent.java | 22 - ...untCapturableUpdatedEventNotification.java | 28 - .../events/V1PaymentIntentCanceledEvent.java | 22 - ...aymentIntentCanceledEventNotification.java | 27 - .../events/V1PaymentIntentCreatedEvent.java | 22 - ...PaymentIntentCreatedEventNotification.java | 27 - .../V1PaymentIntentPartiallyFundedEvent.java | 22 - ...ntentPartiallyFundedEventNotification.java | 27 - .../V1PaymentIntentPaymentFailedEvent.java | 22 - ...tIntentPaymentFailedEventNotification.java | 27 - .../V1PaymentIntentProcessingEvent.java | 22 - ...mentIntentProcessingEventNotification.java | 27 - .../V1PaymentIntentRequiresActionEvent.java | 22 - ...IntentRequiresActionEventNotification.java | 27 - .../events/V1PaymentIntentSucceededEvent.java | 22 - ...ymentIntentSucceededEventNotification.java | 27 - .../events/V1PaymentLinkCreatedEvent.java | 22 - ...V1PaymentLinkCreatedEventNotification.java | 27 - .../events/V1PaymentLinkUpdatedEvent.java | 22 - ...V1PaymentLinkUpdatedEventNotification.java | 27 - .../events/V1PaymentMethodAttachedEvent.java | 22 - ...aymentMethodAttachedEventNotification.java | 27 - ...aymentMethodAutomaticallyUpdatedEvent.java | 22 - ...AutomaticallyUpdatedEventNotification.java | 27 - .../events/V1PaymentMethodDetachedEvent.java | 22 - ...aymentMethodDetachedEventNotification.java | 27 - .../events/V1PaymentMethodUpdatedEvent.java | 22 - ...PaymentMethodUpdatedEventNotification.java | 27 - .../stripe/events/V1PayoutCanceledEvent.java | 22 - .../V1PayoutCanceledEventNotification.java | 27 - .../stripe/events/V1PayoutCreatedEvent.java | 22 - .../V1PayoutCreatedEventNotification.java | 27 - .../stripe/events/V1PayoutFailedEvent.java | 22 - .../V1PayoutFailedEventNotification.java | 27 - .../com/stripe/events/V1PayoutPaidEvent.java | 22 - .../events/V1PayoutPaidEventNotification.java | 27 - .../V1PayoutReconciliationCompletedEvent.java | 22 - ...onciliationCompletedEventNotification.java | 27 - .../stripe/events/V1PayoutUpdatedEvent.java | 22 - .../V1PayoutUpdatedEventNotification.java | 27 - .../stripe/events/V1PersonCreatedEvent.java | 22 - .../V1PersonCreatedEventNotification.java | 27 - .../stripe/events/V1PersonDeletedEvent.java | 22 - .../V1PersonDeletedEventNotification.java | 27 - .../stripe/events/V1PersonUpdatedEvent.java | 22 - .../V1PersonUpdatedEventNotification.java | 27 - .../com/stripe/events/V1PlanCreatedEvent.java | 22 - .../V1PlanCreatedEventNotification.java | 27 - .../com/stripe/events/V1PlanDeletedEvent.java | 22 - .../V1PlanDeletedEventNotification.java | 27 - .../com/stripe/events/V1PlanUpdatedEvent.java | 22 - .../V1PlanUpdatedEventNotification.java | 27 - .../stripe/events/V1PriceCreatedEvent.java | 22 - .../V1PriceCreatedEventNotification.java | 27 - .../stripe/events/V1PriceDeletedEvent.java | 22 - .../V1PriceDeletedEventNotification.java | 27 - .../stripe/events/V1PriceUpdatedEvent.java | 22 - .../V1PriceUpdatedEventNotification.java | 27 - .../stripe/events/V1ProductCreatedEvent.java | 22 - .../V1ProductCreatedEventNotification.java | 27 - .../stripe/events/V1ProductDeletedEvent.java | 22 - .../V1ProductDeletedEventNotification.java | 27 - .../stripe/events/V1ProductUpdatedEvent.java | 22 - .../V1ProductUpdatedEventNotification.java | 27 - .../events/V1PromotionCodeCreatedEvent.java | 22 - ...PromotionCodeCreatedEventNotification.java | 27 - .../events/V1PromotionCodeUpdatedEvent.java | 22 - ...PromotionCodeUpdatedEventNotification.java | 27 - .../stripe/events/V1QuoteAcceptedEvent.java | 22 - .../V1QuoteAcceptedEventNotification.java | 27 - .../stripe/events/V1QuoteCanceledEvent.java | 22 - .../V1QuoteCanceledEventNotification.java | 27 - .../stripe/events/V1QuoteCreatedEvent.java | 22 - .../V1QuoteCreatedEventNotification.java | 27 - .../stripe/events/V1QuoteFinalizedEvent.java | 22 - .../V1QuoteFinalizedEventNotification.java | 27 - ...yFraudWarningCreatedEventNotification.java | 27 - .../V1RadarEarlyFraudWarningUpdatedEvent.java | 22 - ...yFraudWarningUpdatedEventNotification.java | 27 - .../stripe/events/V1RefundCreatedEvent.java | 22 - .../V1RefundCreatedEventNotification.java | 27 - .../stripe/events/V1RefundFailedEvent.java | 22 - .../V1RefundFailedEventNotification.java | 27 - .../stripe/events/V1RefundUpdatedEvent.java | 22 - .../V1RefundUpdatedEventNotification.java | 27 - .../stripe/events/V1ReviewClosedEvent.java | 22 - .../V1ReviewClosedEventNotification.java | 27 - .../stripe/events/V1ReviewOpenedEvent.java | 22 - .../V1ReviewOpenedEventNotification.java | 27 - .../events/V1SetupIntentCanceledEvent.java | 22 - ...1SetupIntentCanceledEventNotification.java | 27 - .../events/V1SetupIntentCreatedEvent.java | 22 - ...V1SetupIntentCreatedEventNotification.java | 27 - .../V1SetupIntentRequiresActionEvent.java | 22 - ...IntentRequiresActionEventNotification.java | 27 - .../events/V1SetupIntentSetupFailedEvent.java | 22 - ...tupIntentSetupFailedEventNotification.java | 27 - .../events/V1SetupIntentSucceededEvent.java | 22 - ...SetupIntentSucceededEventNotification.java | 27 - ...duledQueryRunCreatedEventNotification.java | 27 - .../stripe/events/V1SourceCanceledEvent.java | 22 - .../V1SourceCanceledEventNotification.java | 27 - .../events/V1SourceChargeableEvent.java | 22 - .../V1SourceChargeableEventNotification.java | 27 - .../stripe/events/V1SourceFailedEvent.java | 22 - .../V1SourceFailedEventNotification.java | 27 - ...V1SourceRefundAttributesRequiredEvent.java | 22 - ...ndAttributesRequiredEventNotification.java | 27 - .../V1SubscriptionScheduleAbortedEvent.java | 22 - ...ptionScheduleAbortedEventNotification.java | 27 - .../V1SubscriptionScheduleCanceledEvent.java | 22 - ...tionScheduleCanceledEventNotification.java | 27 - .../V1SubscriptionScheduleCompletedEvent.java | 22 - ...ionScheduleCompletedEventNotification.java | 27 - .../V1SubscriptionScheduleCreatedEvent.java | 22 - ...ptionScheduleCreatedEventNotification.java | 27 - .../V1SubscriptionScheduleExpiringEvent.java | 22 - ...tionScheduleExpiringEventNotification.java | 27 - .../V1SubscriptionScheduleReleasedEvent.java | 22 - ...tionScheduleReleasedEventNotification.java | 27 - .../V1SubscriptionScheduleUpdatedEvent.java | 22 - ...ptionScheduleUpdatedEventNotification.java | 27 - .../stripe/events/V1TaxRateCreatedEvent.java | 22 - .../V1TaxRateCreatedEventNotification.java | 27 - .../stripe/events/V1TaxRateUpdatedEvent.java | 22 - .../V1TaxRateUpdatedEventNotification.java | 27 - .../V1TerminalReaderActionFailedEvent.java | 22 - ...alReaderActionFailedEventNotification.java | 27 - .../V1TerminalReaderActionSucceededEvent.java | 22 - ...eaderActionSucceededEventNotification.java | 27 - .../V1TerminalReaderActionUpdatedEvent.java | 22 - ...lReaderActionUpdatedEventNotification.java | 27 - .../V1TestHelpersTestClockAdvancingEvent.java | 22 - ...rsTestClockAdvancingEventNotification.java | 27 - .../V1TestHelpersTestClockCreatedEvent.java | 22 - ...persTestClockCreatedEventNotification.java | 27 - .../V1TestHelpersTestClockDeletedEvent.java | 22 - ...persTestClockDeletedEventNotification.java | 27 - ...tHelpersTestClockInternalFailureEvent.java | 22 - ...ClockInternalFailureEventNotification.java | 28 - .../V1TestHelpersTestClockReadyEvent.java | 22 - ...elpersTestClockReadyEventNotification.java | 27 - .../stripe/events/V1TopupCanceledEvent.java | 22 - .../V1TopupCanceledEventNotification.java | 27 - .../stripe/events/V1TopupCreatedEvent.java | 22 - .../V1TopupCreatedEventNotification.java | 27 - .../com/stripe/events/V1TopupFailedEvent.java | 22 - .../V1TopupFailedEventNotification.java | 27 - .../stripe/events/V1TopupReversedEvent.java | 22 - .../V1TopupReversedEventNotification.java | 27 - .../stripe/events/V1TopupSucceededEvent.java | 22 - .../V1TopupSucceededEventNotification.java | 27 - .../stripe/events/V1TransferCreatedEvent.java | 22 - .../V1TransferCreatedEventNotification.java | 27 - .../events/V1TransferReversedEvent.java | 22 - .../V1TransferReversedEventNotification.java | 27 - .../stripe/events/V1TransferUpdatedEvent.java | 22 - .../V1TransferUpdatedEventNotification.java | 27 - .../V2CoreHealthApiErrorFiringEvent.java | 3 + .../V2CoreHealthApiErrorResolvedEvent.java | 3 + .../V2CoreHealthApiLatencyFiringEvent.java | 3 + .../V2CoreHealthApiLatencyResolvedEvent.java | 3 + ...thEventGenerationFailureResolvedEvent.java | 32 +- .../V2CoreHealthFraudRateIncreasedEvent.java | 19 +- ...AuthorizationRequestErrorsFiringEvent.java | 37 +- ...thorizationRequestErrorsResolvedEvent.java | 37 +- ...uthorizationRequestTimeoutFiringEvent.java | 37 +- ...horizationRequestTimeoutResolvedEvent.java | 37 +- ...reHealthPaymentMethodErrorFiringEvent.java | 3 + ...HealthPaymentMethodErrorResolvedEvent.java | 3 + ...sOffSessionPaymentAttemptFailedEvent.java} | 8 +- ...aymentAttemptFailedEventNotification.java} | 12 +- ...OffSessionPaymentAttemptStartedEvent.java} | 8 +- ...ymentAttemptStartedEventNotification.java} | 12 +- .../stripe/model/v2/EventDataClassLookup.java | 448 +- .../v2/EventNotificationClassLookup.java | 472 +- ...inancialAddressGeneratedMicrodeposits.java | 27 +- .../com/stripe/model/v2/billing/Cadence.java | 8 +- .../model/v2/billing/CollectionSetting.java | 4 +- .../v2/billing/CollectionSettingVersion.java | 4 +- .../stripe/model/v2/billing/MeterEvent.java | 3 +- .../model/v2/billing/ServiceAction.java | 50 +- .../com/stripe/model/v2/core/Account.java | 694 +- .../stripe/model/v2/core/AccountPerson.java | 13 +- .../model/v2/core/AccountPersonToken.java | 55 + .../stripe/model/v2/core/AccountToken.java | 55 + .../java/com/stripe/model/v2/core/Event.java | 4 - .../model/v2/moneymanagement/Adjustment.java | 22 +- .../moneymanagement/CurrencyConversion.java | 119 + .../v2/moneymanagement/FinancialAccount.java | 79 +- .../v2/moneymanagement/InboundTransfer.java | 68 +- .../v2/moneymanagement/OutboundPayment.java | 68 +- .../moneymanagement/OutboundPaymentQuote.java | 89 +- .../v2/moneymanagement/OutboundTransfer.java | 68 +- .../v2/moneymanagement/ReceivedCredit.java | 45 +- .../v2/moneymanagement/ReceivedDebit.java | 45 +- .../model/v2/moneymanagement/Transaction.java | 91 +- .../v2/moneymanagement/TransactionEntry.java | 70 +- .../model/v2/payments/OffSessionPayment.java | 146 +- .../v2/billing/ActionServiceCreateParams.java | 232 +- .../CollectionSettingCreateParams.java | 12 +- .../CollectionSettingUpdateParams.java | 12 +- .../param/v2/core/AccountCreateParams.java | 1017 +- .../param/v2/core/AccountRetrieveParams.java | 3 + .../v2/core/AccountTokenCreateParams.java | 10032 ++++++++++++++++ .../param/v2/core/AccountUpdateParams.java | 1121 +- .../stripe/param/v2/core/EventListParams.java | 188 +- .../v2/core/accounts/PersonCreateParams.java | 18 + .../accounts/PersonTokenCreateParams.java | 3263 +++++ .../v2/core/accounts/PersonUpdateParams.java | 24 + .../CurrencyConversionCreateParams.java | 476 + .../CurrencyConversionListParams.java | 92 + .../InboundTransferCreateParams.java | 99 +- .../OutboundPaymentCreateParams.java | 99 +- .../OutboundPaymentQuoteCreateParams.java | 101 +- .../OutboundTransferCreateParams.java | 99 +- .../OffSessionPaymentCaptureParams.java | 40 +- .../OffSessionPaymentCreateParams.java | 591 +- .../FinancialAddressCreditParams.java | 99 +- .../com/stripe/service/v2/CoreService.java | 4 + .../service/v2/MoneyManagementService.java | 5 + .../service/v2/core/AccountService.java | 4 + .../service/v2/core/AccountTokenService.java | 48 + .../v2/core/accounts/PersonTokenService.java | 64 + .../CurrencyConversionService.java | 81 + .../stripe/functional/GeneratedExamples.java | 959 +- 437 files changed, 19853 insertions(+), 10973 deletions(-) delete mode 100644 src/main/java/com/stripe/events/V1AccountUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1AccountUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ApplicationFeeCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ApplicationFeeCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ApplicationFeeRefundedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ApplicationFeeRefundedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1BillingPortalConfigurationUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1BillingPortalConfigurationUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CapabilityUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CapabilityUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeCapturedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeCapturedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeDisputeClosedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeDisputeClosedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeDisputeCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeDisputeCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeDisputeFundsReinstatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeDisputeFundsReinstatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeDisputeFundsWithdrawnEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeDisputeFundsWithdrawnEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeDisputeUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeDisputeUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeExpiredEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeExpiredEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargePendingEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargePendingEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeRefundUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeRefundUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeRefundedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeRefundedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeSucceededEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeSucceededEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ChargeUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentSucceededEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentSucceededEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CheckoutSessionCompletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CheckoutSessionCompletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CheckoutSessionExpiredEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CheckoutSessionExpiredEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateOrderCanceledEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateOrderCanceledEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateOrderCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateOrderCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateOrderDelayedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateOrderDelayedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateOrderDeliveredEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateOrderDeliveredEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateOrderProductSubstitutedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateOrderProductSubstitutedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateProductCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateProductCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateProductPricingUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ClimateProductPricingUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CouponCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CouponCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CouponDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CouponDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CouponUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CouponUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CreditNoteCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CreditNoteCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CreditNoteUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CreditNoteUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CreditNoteVoidedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CreditNoteVoidedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionPausedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionPausedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateAppliedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateAppliedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateExpiredEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateExpiredEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionResumedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionResumedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionTrialWillEndEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionTrialWillEndEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerSubscriptionUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerTaxIdCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerTaxIdCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerTaxIdDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerTaxIdDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerTaxIdUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerTaxIdUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1CustomerUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1FileCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1FileCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountDeactivatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountDeactivatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountDisconnectedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedBalanceEvent.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedBalanceEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedOwnershipEvent.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedOwnershipEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedTransactionsEvent.java delete mode 100644 src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedTransactionsEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionCanceledEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionCanceledEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionProcessingEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionProcessingEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionRedactedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionRedactedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionRequiresInputEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionRequiresInputEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionVerifiedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IdentityVerificationSessionVerifiedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceFinalizationFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceFinalizationFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceFinalizedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceFinalizedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceMarkedUncollectibleEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceMarkedUncollectibleEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceOverdueEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceOverdueEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceOverpaidEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceOverpaidEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoicePaidEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoicePaidEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoicePaymentActionRequiredEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoicePaymentActionRequiredEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoicePaymentFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoicePaymentFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoicePaymentPaidEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoicePaymentPaidEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoicePaymentSucceededEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoicePaymentSucceededEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceSentEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceSentEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceUpcomingEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceUpcomingEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceVoidedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceVoidedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceWillBeDueEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceWillBeDueEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceitemCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceitemCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceitemDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1InvoiceitemDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingAuthorizationCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingAuthorizationCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingAuthorizationRequestEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingAuthorizationRequestEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingAuthorizationUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingAuthorizationUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingCardCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingCardCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingCardUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingCardUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingCardholderCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingCardholderCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingCardholderUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingCardholderUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeClosedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeClosedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeFundsReinstatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeFundsReinstatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeFundsRescindedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeFundsRescindedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeSubmittedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeSubmittedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingDisputeUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingPersonalizationDesignActivatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingPersonalizationDesignActivatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingPersonalizationDesignDeactivatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingPersonalizationDesignDeactivatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingPersonalizationDesignRejectedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingPersonalizationDesignRejectedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingPersonalizationDesignUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingPersonalizationDesignUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingTokenCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingTokenCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingTokenUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingTokenUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingTransactionCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingTransactionCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingTransactionUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1IssuingTransactionUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1MandateUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1MandateUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentAmountCapturableUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentAmountCapturableUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentCanceledEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentCanceledEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentPartiallyFundedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentPartiallyFundedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentPaymentFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentPaymentFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentProcessingEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentProcessingEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentRequiresActionEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentRequiresActionEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentSucceededEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentIntentSucceededEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentLinkCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentLinkCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentLinkUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentLinkUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentMethodAttachedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentMethodAttachedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentMethodAutomaticallyUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentMethodAutomaticallyUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentMethodDetachedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentMethodDetachedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentMethodUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PaymentMethodUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutCanceledEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutCanceledEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutPaidEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutPaidEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutReconciliationCompletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutReconciliationCompletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PayoutUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PersonCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PersonCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PersonDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PersonDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PersonUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PersonUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PlanCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PlanCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PlanDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PlanDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PlanUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PlanUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PriceCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PriceCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PriceDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PriceDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PriceUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PriceUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ProductCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ProductCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ProductDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ProductDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ProductUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ProductUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PromotionCodeCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PromotionCodeCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1PromotionCodeUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1PromotionCodeUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1QuoteAcceptedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1QuoteAcceptedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1QuoteCanceledEvent.java delete mode 100644 src/main/java/com/stripe/events/V1QuoteCanceledEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1QuoteCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1QuoteCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1QuoteFinalizedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1QuoteFinalizedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1RadarEarlyFraudWarningUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1RadarEarlyFraudWarningUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1RefundCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1RefundCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1RefundFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1RefundFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1RefundUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1RefundUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ReviewClosedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ReviewClosedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1ReviewOpenedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1ReviewOpenedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SetupIntentCanceledEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SetupIntentCanceledEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SetupIntentCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SetupIntentCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SetupIntentRequiresActionEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SetupIntentRequiresActionEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SetupIntentSetupFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SetupIntentSetupFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SetupIntentSucceededEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SetupIntentSucceededEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SourceCanceledEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SourceCanceledEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SourceChargeableEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SourceChargeableEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SourceFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SourceFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SourceRefundAttributesRequiredEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SourceRefundAttributesRequiredEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleAbortedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleAbortedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleCanceledEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleCanceledEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleCompletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleCompletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleExpiringEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleExpiringEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleReleasedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleReleasedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1SubscriptionScheduleUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TaxRateCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TaxRateCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TaxRateUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TaxRateUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TerminalReaderActionFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TerminalReaderActionFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TerminalReaderActionSucceededEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TerminalReaderActionSucceededEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TerminalReaderActionUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TerminalReaderActionUpdatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TestHelpersTestClockAdvancingEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TestHelpersTestClockAdvancingEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TestHelpersTestClockCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TestHelpersTestClockCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TestHelpersTestClockDeletedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TestHelpersTestClockDeletedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TestHelpersTestClockInternalFailureEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TestHelpersTestClockInternalFailureEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TestHelpersTestClockReadyEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TestHelpersTestClockReadyEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TopupCanceledEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TopupCanceledEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TopupCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TopupCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TopupFailedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TopupFailedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TopupReversedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TopupReversedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TopupSucceededEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TopupSucceededEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TransferCreatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TransferCreatedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TransferReversedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TransferReversedEventNotification.java delete mode 100644 src/main/java/com/stripe/events/V1TransferUpdatedEvent.java delete mode 100644 src/main/java/com/stripe/events/V1TransferUpdatedEventNotification.java rename src/main/java/com/stripe/events/{V1SigmaScheduledQueryRunCreatedEvent.java => V2PaymentsOffSessionPaymentAttemptFailedEvent.java} (67%) rename src/main/java/com/stripe/events/{V1FinancialConnectionsAccountReactivatedEventNotification.java => V2PaymentsOffSessionPaymentAttemptFailedEventNotification.java} (64%) rename src/main/java/com/stripe/events/{V1RadarEarlyFraudWarningCreatedEvent.java => V2PaymentsOffSessionPaymentAttemptStartedEvent.java} (67%) rename src/main/java/com/stripe/events/{V1FinancialConnectionsAccountDisconnectedEventNotification.java => V2PaymentsOffSessionPaymentAttemptStartedEventNotification.java} (64%) create mode 100644 src/main/java/com/stripe/model/v2/core/AccountPersonToken.java create mode 100644 src/main/java/com/stripe/model/v2/core/AccountToken.java create mode 100644 src/main/java/com/stripe/model/v2/moneymanagement/CurrencyConversion.java create mode 100644 src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java create mode 100644 src/main/java/com/stripe/param/v2/core/accounts/PersonTokenCreateParams.java create mode 100644 src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java create mode 100644 src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionListParams.java create mode 100644 src/main/java/com/stripe/service/v2/core/AccountTokenService.java create mode 100644 src/main/java/com/stripe/service/v2/core/accounts/PersonTokenService.java create mode 100644 src/main/java/com/stripe/service/v2/moneymanagement/CurrencyConversionService.java diff --git a/API_VERSION b/API_VERSION index 3a2e1ae5860..e2854d25681 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -c85b626acfc47a72547df680726f0e1a14c8ca37 \ No newline at end of file +7f436e73385732b1c5502f408a6fe37f7b6b0612 \ No newline at end of file diff --git a/src/main/java/com/stripe/events/V1AccountUpdatedEvent.java b/src/main/java/com/stripe/events/V1AccountUpdatedEvent.java deleted file mode 100644 index 241760be511..00000000000 --- a/src/main/java/com/stripe/events/V1AccountUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 1d4100ae6a9..00000000000 --- a/src/main/java/com/stripe/events/V1AccountUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 80cdeb552e3..00000000000 --- a/src/main/java/com/stripe/events/V1ApplicationFeeCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index d952d051d9b..00000000000 --- a/src/main/java/com/stripe/events/V1ApplicationFeeCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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/V1ApplicationFeeRefundedEvent.java b/src/main/java/com/stripe/events/V1ApplicationFeeRefundedEvent.java deleted file mode 100644 index 8f4ea0fd03a..00000000000 --- a/src/main/java/com/stripe/events/V1ApplicationFeeRefundedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 9df35ac3eac..00000000000 --- a/src/main/java/com/stripe/events/V1ApplicationFeeRefundedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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/V1BillingPortalConfigurationCreatedEvent.java b/src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEvent.java deleted file mode 100644 index fb3ad696556..00000000000 --- a/src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 99d40475e1a..00000000000 --- a/src/main/java/com/stripe/events/V1BillingPortalConfigurationCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index ef64577d52e..00000000000 --- a/src/main/java/com/stripe/events/V1BillingPortalConfigurationUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 4685e45ba0b..00000000000 --- a/src/main/java/com/stripe/events/V1BillingPortalConfigurationUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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/V1CapabilityUpdatedEvent.java b/src/main/java/com/stripe/events/V1CapabilityUpdatedEvent.java deleted file mode 100644 index b62d9089c46..00000000000 --- a/src/main/java/com/stripe/events/V1CapabilityUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 9416d005287..00000000000 --- a/src/main/java/com/stripe/events/V1CapabilityUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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/V1ChargeCapturedEvent.java b/src/main/java/com/stripe/events/V1ChargeCapturedEvent.java deleted file mode 100644 index 4b188f32a79..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeCapturedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 0b9f511bce7..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeCapturedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 5a92ccbb185..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeDisputeClosedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 62bcd48f1bf..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeDisputeClosedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 782d1243651..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeDisputeCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 537f9c063e4..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeDisputeCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 8147430d50a..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeDisputeFundsReinstatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index bb1e7a44b5b..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeDisputeFundsReinstatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 90fd25019ca..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeDisputeFundsWithdrawnEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f8e02c6a119..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeDisputeFundsWithdrawnEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index dc8476c00ca..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeDisputeUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 6802f31b5a7..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeDisputeUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 4364d5c493a..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeExpiredEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index c67a9771254..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeExpiredEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index b4060c85eda..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 19bb1a5ced4..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index de69ce91c4d..00000000000 --- a/src/main/java/com/stripe/events/V1ChargePendingEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index fd2507618d5..00000000000 --- a/src/main/java/com/stripe/events/V1ChargePendingEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index f2780501397..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeRefundUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f8c71829bcc..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeRefundUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 7ba06af6437..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeRefundedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index abeb5003de6..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeRefundedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 25d20f3b0f6..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeSucceededEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f40de390434..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeSucceededEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index dd26f6cb75b..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 983cab11bc5..00000000000 --- a/src/main/java/com/stripe/events/V1ChargeUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index b73f8ec54ee..00000000000 --- a/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 8ec5e0ae1fc..00000000000 --- a/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 023e0040492..00000000000 --- a/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentSucceededEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 2da0e41c975..00000000000 --- a/src/main/java/com/stripe/events/V1CheckoutSessionAsyncPaymentSucceededEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 5978e04e169..00000000000 --- a/src/main/java/com/stripe/events/V1CheckoutSessionCompletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index e3452e19f21..00000000000 --- a/src/main/java/com/stripe/events/V1CheckoutSessionCompletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 8126278034a..00000000000 --- a/src/main/java/com/stripe/events/V1CheckoutSessionExpiredEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 6d36b532174..00000000000 --- a/src/main/java/com/stripe/events/V1CheckoutSessionExpiredEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 12503f6be6c..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateOrderCanceledEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index ddaf1658dad..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateOrderCanceledEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 9949005ff38..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateOrderCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 0e9e5fcf258..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateOrderCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 20d98310980..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateOrderDelayedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 2057dafccb3..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateOrderDelayedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index f68a47d51f4..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateOrderDeliveredEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 63448e2a7b0..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateOrderDeliveredEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 761d913c7dd..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateOrderProductSubstitutedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index c45c4e83d55..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateOrderProductSubstitutedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index f9ac7e97b28..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateProductCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f3534bdfe8f..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateProductCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 0b62d7867b1..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateProductPricingUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 62533583144..00000000000 --- a/src/main/java/com/stripe/events/V1ClimateProductPricingUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index b4d917750e3..00000000000 --- a/src/main/java/com/stripe/events/V1CouponCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 87ec8aa5484..00000000000 --- a/src/main/java/com/stripe/events/V1CouponCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index d7fff8f512a..00000000000 --- a/src/main/java/com/stripe/events/V1CouponDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 9052d1a34fa..00000000000 --- a/src/main/java/com/stripe/events/V1CouponDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index ab06cd9291c..00000000000 --- a/src/main/java/com/stripe/events/V1CouponUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index ffe32ff4332..00000000000 --- a/src/main/java/com/stripe/events/V1CouponUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 15ca5e3c76a..00000000000 --- a/src/main/java/com/stripe/events/V1CreditNoteCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 8466d9bd310..00000000000 --- a/src/main/java/com/stripe/events/V1CreditNoteCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 71171ada379..00000000000 --- a/src/main/java/com/stripe/events/V1CreditNoteUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 40b310a984c..00000000000 --- a/src/main/java/com/stripe/events/V1CreditNoteUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 09d57cc5b6c..00000000000 --- a/src/main/java/com/stripe/events/V1CreditNoteVoidedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index ab4a29b2501..00000000000 --- a/src/main/java/com/stripe/events/V1CreditNoteVoidedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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/V1CustomerCreatedEvent.java b/src/main/java/com/stripe/events/V1CustomerCreatedEvent.java deleted file mode 100644 index 4298e7a959e..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index da9d426ee54..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index efeeb3e4ffe..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 3d6b84e961a..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index e8ca36e76bf..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 7272eec08ed..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index f367f19c947..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 1c9326c1f2e..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index f5340aa46af..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionPausedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 03a1d09f347..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionPausedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index e874daa6f9f..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateAppliedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 259c71406b7..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateAppliedEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index d84c392e409..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateExpiredEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 688c7d6fae0..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionPendingUpdateExpiredEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index a1bbbbc0d84..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionResumedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 56c8c6c191d..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionResumedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index adcec20024f..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionTrialWillEndEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f03859bf52a..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionTrialWillEndEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 291128dc3ea..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 912d0431ca6..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerSubscriptionUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 6c0fa2593a2..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerTaxIdCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 96cb76ccf5b..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerTaxIdCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 00520fa52fc..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerTaxIdDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 0d8f18c7ce3..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerTaxIdDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index dcd752a16ab..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerTaxIdUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index aa996aee3b1..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerTaxIdUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 42b9831fc79..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index dc8f0ebb9be..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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/V1FileCreatedEvent.java b/src/main/java/com/stripe/events/V1FileCreatedEvent.java deleted file mode 100644 index 51047f446db..00000000000 --- a/src/main/java/com/stripe/events/V1FileCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f38648d89cf..00000000000 --- a/src/main/java/com/stripe/events/V1FileCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index c0b6d81ab2f..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 1dc30974e42..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index c32b5f5c21d..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDeactivatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 0ecc289e919..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDeactivatedEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 18a4202ef58..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDisconnectedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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/V1FinancialConnectionsAccountReactivatedEvent.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEvent.java deleted file mode 100644 index d7cf0afef81..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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/V1FinancialConnectionsAccountRefreshedBalanceEvent.java b/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedBalanceEvent.java deleted file mode 100644 index cb4ae78b610..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedBalanceEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 40f60bc448c..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedBalanceEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 78d8d7c5ead..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedOwnershipEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 95fd68ff2ed..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedOwnershipEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 7c9e16543ed..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedTransactionsEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index b64dc338ff6..00000000000 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountRefreshedTransactionsEventNotification.java +++ /dev/null @@ -1,29 +0,0 @@ -// File 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 deleted file mode 100644 index daf42d41492..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionCanceledEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index d507a5bba34..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionCanceledEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 884f23b693e..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index cf5ce15edf2..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 6fdf5bbf42b..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionProcessingEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 1e2e7f2e8d3..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionProcessingEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 615a11de0b5..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionRedactedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index bbc837175bd..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionRedactedEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 546f2b88cc8..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionRequiresInputEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index ed348fbd0d6..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionRequiresInputEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 5cefde2ea80..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionVerifiedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index e19e2e33dc6..00000000000 --- a/src/main/java/com/stripe/events/V1IdentityVerificationSessionVerifiedEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 1952deb8d1f..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 3954bf5c876..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 033d8487c57..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 536ffcfb4f4..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index e0a4235cb8f..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceFinalizationFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 8744a0bb1c7..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceFinalizationFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index ccdb13dd785..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceFinalizedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index bb69738e53d..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceFinalizedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index d2bf41f0a13..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceMarkedUncollectibleEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 348350a0309..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceMarkedUncollectibleEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index eed159f3e22..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceOverdueEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 3b481046dd1..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceOverdueEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index f59ed146144..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceOverpaidEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index cfe2c219e1b..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceOverpaidEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 42dbe642092..00000000000 --- a/src/main/java/com/stripe/events/V1InvoicePaidEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index ab421973405..00000000000 --- a/src/main/java/com/stripe/events/V1InvoicePaidEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 2095cb626df..00000000000 --- a/src/main/java/com/stripe/events/V1InvoicePaymentActionRequiredEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 0ca518d6c3f..00000000000 --- a/src/main/java/com/stripe/events/V1InvoicePaymentActionRequiredEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 1937cfccbdb..00000000000 --- a/src/main/java/com/stripe/events/V1InvoicePaymentFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 9e0267a1874..00000000000 --- a/src/main/java/com/stripe/events/V1InvoicePaymentFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 0967e93fac7..00000000000 --- a/src/main/java/com/stripe/events/V1InvoicePaymentPaidEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 2f1a66e86c1..00000000000 --- a/src/main/java/com/stripe/events/V1InvoicePaymentPaidEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 12ab414f3c5..00000000000 --- a/src/main/java/com/stripe/events/V1InvoicePaymentSucceededEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index e189800959c..00000000000 --- a/src/main/java/com/stripe/events/V1InvoicePaymentSucceededEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index d649d665f59..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceSentEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index e77d5ec448e..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceSentEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 7fb1d7a09fe..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceUpcomingEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 8e7edb4b504..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceUpcomingEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 140569b5178..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index c59d9c1d83f..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index c83bc7b8c90..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceVoidedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index dbfc9404086..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceVoidedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 6496fa3d128..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceWillBeDueEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 09479d7657f..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceWillBeDueEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 871e2a98a80..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceitemCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 09a64cb5314..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceitemCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 87a4969624d..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceitemDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 9061a2c317c..00000000000 --- a/src/main/java/com/stripe/events/V1InvoiceitemDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 0e05852ac80..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingAuthorizationCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 48271405e93..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingAuthorizationCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 88788c30c2f..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingAuthorizationRequestEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index fb0beab0ef6..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingAuthorizationRequestEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 3090bf51460..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingAuthorizationUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 05bf9cda62b..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingAuthorizationUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 49b9bbbb05e..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingCardCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 30334aa665d..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingCardCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index fb34e5515d8..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingCardUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 7d3e829f049..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingCardUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index e92014c20bb..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingCardholderCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 89b0c5a1789..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingCardholderCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index af2e9a65aef..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingCardholderUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 59413a8a342..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingCardholderUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 2e80bcea5b0..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeClosedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 546a7dafb19..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeClosedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 7c6586de1ee..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 8f33edd8d96..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 5bf44f5e671..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeFundsReinstatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 527f14ab617..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeFundsReinstatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 13112c892ab..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeFundsRescindedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 25d0b1fa3ca..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeFundsRescindedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index fb234946cd3..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeSubmittedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 3ce7b87902d..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeSubmittedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 23c218ec806..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index ccbbed2e922..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingDisputeUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 8b2530b460e..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignActivatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 1612e9fd213..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignActivatedEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 72a5dcee49a..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignDeactivatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f154a7a4571..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignDeactivatedEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 81ad30b5d23..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignRejectedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 4b650d027cd..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignRejectedEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index b6ea273836b..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f8550609c1b..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingPersonalizationDesignUpdatedEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 0d199ec201f..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingTokenCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 3a55eefe1c2..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingTokenCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 6d5abfea0e2..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingTokenUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index bf5a5e53cf8..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingTokenUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index c077bfff722..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingTransactionCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 885cc755930..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingTransactionCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 2e47539179f..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index e7a2f5d996d..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification.java +++ /dev/null @@ -1,29 +0,0 @@ -// File 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 deleted file mode 100644 index 19b73ae5fa2..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingTransactionUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 0d9bbfce9b1..00000000000 --- a/src/main/java/com/stripe/events/V1IssuingTransactionUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index a4ba0955f21..00000000000 --- a/src/main/java/com/stripe/events/V1MandateUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 327615f6b82..00000000000 --- a/src/main/java/com/stripe/events/V1MandateUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 125635d82d2..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentAmountCapturableUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index c48ab863630..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentAmountCapturableUpdatedEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 3128c0c60ba..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentCanceledEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index ae061b63cb1..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentCanceledEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 1f183164088..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index e2b50048bcc..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index c1ba0d4a8c1..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentPartiallyFundedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index c819f47b84f..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentPartiallyFundedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 544b74fee5a..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentPaymentFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 43bdd843dd8..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentPaymentFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index eab8c151bdd..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentProcessingEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 8eeb2ab0315..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentProcessingEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 231e633a973..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentRequiresActionEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index eb918498eae..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentRequiresActionEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index acedb9f6990..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentSucceededEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 76bcccee443..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentIntentSucceededEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 03ee30b4db2..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentLinkCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 1bd86d1ee59..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentLinkCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 936fbb564b5..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentLinkUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 27b2b07d7af..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentLinkUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 966af690d45..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentMethodAttachedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 9ddd83c1293..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentMethodAttachedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 024919bccfb..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentMethodAutomaticallyUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 558bf1fb067..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentMethodAutomaticallyUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index f33dafe3ea7..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentMethodDetachedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index af92fdd441d..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentMethodDetachedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index fef67d012b7..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentMethodUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 2b2a01d5f5a..00000000000 --- a/src/main/java/com/stripe/events/V1PaymentMethodUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 9880241c8a0..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutCanceledEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index a38ea7b2e34..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutCanceledEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 80c114679f7..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index bcbabe2888d..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 707174f1813..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index b070ac3b663..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 1d74dc45b70..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutPaidEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 6e0fda51352..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutPaidEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 95a426963a0..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutReconciliationCompletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index d38dbf430b7..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutReconciliationCompletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 432c1639930..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 34124d511a2..00000000000 --- a/src/main/java/com/stripe/events/V1PayoutUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 6f78717eb13..00000000000 --- a/src/main/java/com/stripe/events/V1PersonCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 40a7e48acb8..00000000000 --- a/src/main/java/com/stripe/events/V1PersonCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 5396368b76c..00000000000 --- a/src/main/java/com/stripe/events/V1PersonDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index a754f099536..00000000000 --- a/src/main/java/com/stripe/events/V1PersonDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 06823f59274..00000000000 --- a/src/main/java/com/stripe/events/V1PersonUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 529e46ede26..00000000000 --- a/src/main/java/com/stripe/events/V1PersonUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 5cf7622e03a..00000000000 --- a/src/main/java/com/stripe/events/V1PlanCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 2275392a1d6..00000000000 --- a/src/main/java/com/stripe/events/V1PlanCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index e5caf8b5c2d..00000000000 --- a/src/main/java/com/stripe/events/V1PlanDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 00da902d399..00000000000 --- a/src/main/java/com/stripe/events/V1PlanDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 8327f97db13..00000000000 --- a/src/main/java/com/stripe/events/V1PlanUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f51016f9508..00000000000 --- a/src/main/java/com/stripe/events/V1PlanUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 97bbfb31cc0..00000000000 --- a/src/main/java/com/stripe/events/V1PriceCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 51ea14332aa..00000000000 --- a/src/main/java/com/stripe/events/V1PriceCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index c31b3478f7e..00000000000 --- a/src/main/java/com/stripe/events/V1PriceDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 0ecdb9f4537..00000000000 --- a/src/main/java/com/stripe/events/V1PriceDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index ff5418310cf..00000000000 --- a/src/main/java/com/stripe/events/V1PriceUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index fecac238782..00000000000 --- a/src/main/java/com/stripe/events/V1PriceUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index b897a569ebd..00000000000 --- a/src/main/java/com/stripe/events/V1ProductCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index afc202f2f8a..00000000000 --- a/src/main/java/com/stripe/events/V1ProductCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 5c8c9ac2945..00000000000 --- a/src/main/java/com/stripe/events/V1ProductDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index a74f6bf561f..00000000000 --- a/src/main/java/com/stripe/events/V1ProductDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index d17c9bff2eb..00000000000 --- a/src/main/java/com/stripe/events/V1ProductUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 9028939661d..00000000000 --- a/src/main/java/com/stripe/events/V1ProductUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index d3c26846554..00000000000 --- a/src/main/java/com/stripe/events/V1PromotionCodeCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 6ed63cf5198..00000000000 --- a/src/main/java/com/stripe/events/V1PromotionCodeCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index dd7b8a7f022..00000000000 --- a/src/main/java/com/stripe/events/V1PromotionCodeUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 89ad698d464..00000000000 --- a/src/main/java/com/stripe/events/V1PromotionCodeUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index a717a5bdfc4..00000000000 --- a/src/main/java/com/stripe/events/V1QuoteAcceptedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index cc39ea862c5..00000000000 --- a/src/main/java/com/stripe/events/V1QuoteAcceptedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 7d7b85991fc..00000000000 --- a/src/main/java/com/stripe/events/V1QuoteCanceledEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index a74a3413153..00000000000 --- a/src/main/java/com/stripe/events/V1QuoteCanceledEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index d0eb99be401..00000000000 --- a/src/main/java/com/stripe/events/V1QuoteCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 9f4e397bb9f..00000000000 --- a/src/main/java/com/stripe/events/V1QuoteCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 16b9e221c9e..00000000000 --- a/src/main/java/com/stripe/events/V1QuoteFinalizedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 45a937db593..00000000000 --- a/src/main/java/com/stripe/events/V1QuoteFinalizedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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/V1RadarEarlyFraudWarningCreatedEventNotification.java b/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEventNotification.java deleted file mode 100644 index bf8897355ac..00000000000 --- a/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index b6ce0785788..00000000000 --- a/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index a6b0751a535..00000000000 --- a/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 0b1feede61f..00000000000 --- a/src/main/java/com/stripe/events/V1RefundCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 998cb15407f..00000000000 --- a/src/main/java/com/stripe/events/V1RefundCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 8f2e49fd82c..00000000000 --- a/src/main/java/com/stripe/events/V1RefundFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 4de1f8e6620..00000000000 --- a/src/main/java/com/stripe/events/V1RefundFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 039754b13e5..00000000000 --- a/src/main/java/com/stripe/events/V1RefundUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 79c74de6baa..00000000000 --- a/src/main/java/com/stripe/events/V1RefundUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 03c35b5d6c7..00000000000 --- a/src/main/java/com/stripe/events/V1ReviewClosedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index b91dc71d8b1..00000000000 --- a/src/main/java/com/stripe/events/V1ReviewClosedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 9ecb0820b41..00000000000 --- a/src/main/java/com/stripe/events/V1ReviewOpenedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f43b6b6c46c..00000000000 --- a/src/main/java/com/stripe/events/V1ReviewOpenedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 9d1a9a4da8f..00000000000 --- a/src/main/java/com/stripe/events/V1SetupIntentCanceledEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index a4731ef1d78..00000000000 --- a/src/main/java/com/stripe/events/V1SetupIntentCanceledEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 729b1f27a19..00000000000 --- a/src/main/java/com/stripe/events/V1SetupIntentCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index d758df84401..00000000000 --- a/src/main/java/com/stripe/events/V1SetupIntentCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 7b3bac47e7c..00000000000 --- a/src/main/java/com/stripe/events/V1SetupIntentRequiresActionEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 1f964cc99c7..00000000000 --- a/src/main/java/com/stripe/events/V1SetupIntentRequiresActionEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 7eeb6209d59..00000000000 --- a/src/main/java/com/stripe/events/V1SetupIntentSetupFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 5f0a2d0337f..00000000000 --- a/src/main/java/com/stripe/events/V1SetupIntentSetupFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 4de68c2a756..00000000000 --- a/src/main/java/com/stripe/events/V1SetupIntentSucceededEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f3cc2a1b332..00000000000 --- a/src/main/java/com/stripe/events/V1SetupIntentSucceededEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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/V1SigmaScheduledQueryRunCreatedEventNotification.java b/src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEventNotification.java deleted file mode 100644 index d625e849c88..00000000000 --- a/src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 754d42df11a..00000000000 --- a/src/main/java/com/stripe/events/V1SourceCanceledEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index c99ccff27e4..00000000000 --- a/src/main/java/com/stripe/events/V1SourceCanceledEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index f9410f6ba9d..00000000000 --- a/src/main/java/com/stripe/events/V1SourceChargeableEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index e5bb59d2c12..00000000000 --- a/src/main/java/com/stripe/events/V1SourceChargeableEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 5865fa071cd..00000000000 --- a/src/main/java/com/stripe/events/V1SourceFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 8cdfe644e54..00000000000 --- a/src/main/java/com/stripe/events/V1SourceFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index df97afae592..00000000000 --- a/src/main/java/com/stripe/events/V1SourceRefundAttributesRequiredEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 9087c0284fc..00000000000 --- a/src/main/java/com/stripe/events/V1SourceRefundAttributesRequiredEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index daf03ea9c54..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleAbortedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index bfa481189e7..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleAbortedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 916ab06796a..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleCanceledEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 12d71b19bfe..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleCanceledEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 90619fafedd..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleCompletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index cd4db971b86..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleCompletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 4c6a069c5dd..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 1ca09492fe2..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index c242674ae49..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleExpiringEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 80c2e71794d..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleExpiringEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index e9f27a50dde..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleReleasedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 70a638830df..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleReleasedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 89bbfb4adb2..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index fc146f0f221..00000000000 --- a/src/main/java/com/stripe/events/V1SubscriptionScheduleUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index dcb538fa4a4..00000000000 --- a/src/main/java/com/stripe/events/V1TaxRateCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index d1c74f6cb5d..00000000000 --- a/src/main/java/com/stripe/events/V1TaxRateCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 661b7ab35da..00000000000 --- a/src/main/java/com/stripe/events/V1TaxRateUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 0c3b7fcd6b5..00000000000 --- a/src/main/java/com/stripe/events/V1TaxRateUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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/V1TerminalReaderActionFailedEvent.java b/src/main/java/com/stripe/events/V1TerminalReaderActionFailedEvent.java deleted file mode 100644 index 26d65246851..00000000000 --- a/src/main/java/com/stripe/events/V1TerminalReaderActionFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 3f472875457..00000000000 --- a/src/main/java/com/stripe/events/V1TerminalReaderActionFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 54654a2152c..00000000000 --- a/src/main/java/com/stripe/events/V1TerminalReaderActionSucceededEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 5983f4664e6..00000000000 --- a/src/main/java/com/stripe/events/V1TerminalReaderActionSucceededEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 23e427c2e83..00000000000 --- a/src/main/java/com/stripe/events/V1TerminalReaderActionUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index d1ae49d3f9f..00000000000 --- a/src/main/java/com/stripe/events/V1TerminalReaderActionUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index e108af6cda4..00000000000 --- a/src/main/java/com/stripe/events/V1TestHelpersTestClockAdvancingEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 22d80b5c9d0..00000000000 --- a/src/main/java/com/stripe/events/V1TestHelpersTestClockAdvancingEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 63cf2a29b37..00000000000 --- a/src/main/java/com/stripe/events/V1TestHelpersTestClockCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 7374feb1a53..00000000000 --- a/src/main/java/com/stripe/events/V1TestHelpersTestClockCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 279a6260154..00000000000 --- a/src/main/java/com/stripe/events/V1TestHelpersTestClockDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 916d2b60128..00000000000 --- a/src/main/java/com/stripe/events/V1TestHelpersTestClockDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 64bd7b001d7..00000000000 --- a/src/main/java/com/stripe/events/V1TestHelpersTestClockInternalFailureEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f0d14cc7578..00000000000 --- a/src/main/java/com/stripe/events/V1TestHelpersTestClockInternalFailureEventNotification.java +++ /dev/null @@ -1,28 +0,0 @@ -// File 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 deleted file mode 100644 index 4ed376f2849..00000000000 --- a/src/main/java/com/stripe/events/V1TestHelpersTestClockReadyEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index ce8d7a83595..00000000000 --- a/src/main/java/com/stripe/events/V1TestHelpersTestClockReadyEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 5556d6fb159..00000000000 --- a/src/main/java/com/stripe/events/V1TopupCanceledEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index ce47e3f8f6d..00000000000 --- a/src/main/java/com/stripe/events/V1TopupCanceledEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index cb1c3a150f7..00000000000 --- a/src/main/java/com/stripe/events/V1TopupCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 389356b8e83..00000000000 --- a/src/main/java/com/stripe/events/V1TopupCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index d27773430c2..00000000000 --- a/src/main/java/com/stripe/events/V1TopupFailedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index dae44cd28c1..00000000000 --- a/src/main/java/com/stripe/events/V1TopupFailedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index e3bb4207e3f..00000000000 --- a/src/main/java/com/stripe/events/V1TopupReversedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index f67b82f28e2..00000000000 --- a/src/main/java/com/stripe/events/V1TopupReversedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index dcf68c4e301..00000000000 --- a/src/main/java/com/stripe/events/V1TopupSucceededEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index e600914ba86..00000000000 --- a/src/main/java/com/stripe/events/V1TopupSucceededEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 28fe4c9dab3..00000000000 --- a/src/main/java/com/stripe/events/V1TransferCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 1efa3dd04da..00000000000 --- a/src/main/java/com/stripe/events/V1TransferCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 8c89bf480c0..00000000000 --- a/src/main/java/com/stripe/events/V1TransferReversedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index dcdf25b3a53..00000000000 --- a/src/main/java/com/stripe/events/V1TransferReversedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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 deleted file mode 100644 index 94c7d339fa5..00000000000 --- a/src/main/java/com/stripe/events/V1TransferUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// File 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 deleted file mode 100644 index 98a74a1d17c..00000000000 --- a/src/main/java/com/stripe/events/V1TransferUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// File 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/V2CoreHealthApiErrorFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthApiErrorFiringEvent.java index 72f07bf4bf6..2066064ece8 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthApiErrorFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthApiErrorFiringEvent.java @@ -52,6 +52,9 @@ public static final class Impact { /** The number of impacted requests. */ @SerializedName("impacted_requests") Long impactedRequests; + /** The percentage of impacted requests. */ + @SerializedName("impacted_requests_percentage") + String impactedRequestsPercentage; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthApiErrorResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthApiErrorResolvedEvent.java index 49f58e41fef..556c96dc9fc 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthApiErrorResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthApiErrorResolvedEvent.java @@ -52,6 +52,9 @@ public static final class Impact { /** The number of impacted requests. */ @SerializedName("impacted_requests") Long impactedRequests; + /** The percentage of impacted requests. */ + @SerializedName("impacted_requests_percentage") + String impactedRequestsPercentage; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthApiLatencyFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthApiLatencyFiringEvent.java index 0acde06ba99..0e7d4bf8785 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthApiLatencyFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthApiLatencyFiringEvent.java @@ -49,6 +49,9 @@ public static final class Impact { /** The number of impacted requests. */ @SerializedName("impacted_requests") Long impactedRequests; + /** The percentage of impacted requests. */ + @SerializedName("impacted_requests_percentage") + String impactedRequestsPercentage; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthApiLatencyResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthApiLatencyResolvedEvent.java index 08496296fb3..45285bff8e0 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthApiLatencyResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthApiLatencyResolvedEvent.java @@ -49,6 +49,9 @@ public static final class Impact { /** The number of impacted requests. */ @SerializedName("impacted_requests") Long impactedRequests; + /** The percentage of impacted requests. */ + @SerializedName("impacted_requests_percentage") + String impactedRequestsPercentage; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java index 6228077a14c..99cafdf011a 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java @@ -34,23 +34,31 @@ public static final class EventData { public static final class Impact { /** - * The account id the event should have been generated for. Only present when the account is a + * The context the event should have been generated for. Only present when the account is a * connected account. */ - @SerializedName("account") - String account; + @SerializedName("context") + String context; /** The type of event that Stripe failed to generate. */ @SerializedName("event_type") String eventType; - /** Indicates if the event was for livemode or not. */ - @SerializedName("livemode") - Boolean livemode; - /** The number of webhooks that Stripe failed to create and deliver. */ - @SerializedName("missing_delivery_attempts") - Long missingDeliveryAttempts; - /** The related object id. */ - @SerializedName("related_object_id") - String relatedObjectId; + /** The related object details. */ + @SerializedName("related_object") + com.stripe.events.V2CoreHealthEventGenerationFailureResolvedEvent.EventData.Impact + .RelatedObject + relatedObject; + + public static final class RelatedObject { + /** The ID of the related object (e.g., "pi_..."). */ + @SerializedName("id") + String id; + /** The type of the related object (e.g., "payment_intent"). */ + @SerializedName("type") + String type; + /** The API URL for the related object (e.g., "/v1/payment_intents/pi_..."). */ + @SerializedName("url") + String url; + } } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthFraudRateIncreasedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthFraudRateIncreasedEvent.java index 6ba5b5249b2..85696a900e3 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthFraudRateIncreasedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthFraudRateIncreasedEvent.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.v2.core.Event; -import com.stripe.v2.Amount; import java.time.Instant; import lombok.Getter; import lombok.Setter; @@ -49,7 +48,23 @@ public static final class Impact { Long impactedRequests; /** Estimated aggregated amount for the impacted requests. */ @SerializedName("realized_fraud_amount") - Amount realizedFraudAmount; + RealizedFraudAmount realizedFraudAmount; + + public static final class RealizedFraudAmount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.java index 3bc15bf47d6..90ae8a47990 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.v2.core.Event; -import com.stripe.v2.Amount; import java.time.Instant; import lombok.Getter; import lombok.Setter; @@ -33,16 +32,48 @@ public static final class EventData { public static final class Impact { /** Estimated aggregated amount for the approved requests. */ @SerializedName("approved_amount") - Amount approvedAmount; + ApprovedAmount approvedAmount; /** The number of approved requests which are impacted. */ @SerializedName("approved_impacted_requests") Long approvedImpactedRequests; /** Estimated aggregated amount for the declined requests. */ @SerializedName("declined_amount") - Amount declinedAmount; + DeclinedAmount declinedAmount; /** The number of declined requests which are impacted. */ @SerializedName("declined_impacted_requests") Long declinedImpactedRequests; + + public static final class ApprovedAmount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + + public static final class DeclinedAmount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.java index fce01ca74c9..1f1464a4738 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.v2.core.Event; -import com.stripe.v2.Amount; import java.time.Instant; import lombok.Getter; import lombok.Setter; @@ -36,16 +35,48 @@ public static final class EventData { public static final class Impact { /** Estimated aggregated amount for the approved requests. */ @SerializedName("approved_amount") - Amount approvedAmount; + ApprovedAmount approvedAmount; /** The number of approved requests which are impacted. */ @SerializedName("approved_impacted_requests") Long approvedImpactedRequests; /** Estimated aggregated amount for the declined requests. */ @SerializedName("declined_amount") - Amount declinedAmount; + DeclinedAmount declinedAmount; /** The number of declined requests which are impacted. */ @SerializedName("declined_impacted_requests") Long declinedImpactedRequests; + + public static final class ApprovedAmount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + + public static final class DeclinedAmount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.java index 3817a4b835d..c135ce92f45 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.v2.core.Event; -import com.stripe.v2.Amount; import java.time.Instant; import lombok.Getter; import lombok.Setter; @@ -36,16 +35,48 @@ public static final class EventData { public static final class Impact { /** Estimated aggregated amount for the approved requests. */ @SerializedName("approved_amount") - Amount approvedAmount; + ApprovedAmount approvedAmount; /** The number of approved requests which are impacted. */ @SerializedName("approved_impacted_requests") Long approvedImpactedRequests; /** Estimated aggregated amount for the declined requests. */ @SerializedName("declined_amount") - Amount declinedAmount; + DeclinedAmount declinedAmount; /** The number of declined requests which are impacted. */ @SerializedName("declined_impacted_requests") Long declinedImpactedRequests; + + public static final class ApprovedAmount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + + public static final class DeclinedAmount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.java index f374cedcf01..339af97079b 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.v2.core.Event; -import com.stripe.v2.Amount; import java.time.Instant; import lombok.Getter; import lombok.Setter; @@ -36,16 +35,48 @@ public static final class EventData { public static final class Impact { /** Estimated aggregated amount for the approved requests. */ @SerializedName("approved_amount") - Amount approvedAmount; + ApprovedAmount approvedAmount; /** The number of approved requests which are impacted. */ @SerializedName("approved_impacted_requests") Long approvedImpactedRequests; /** Estimated aggregated amount for the declined requests. */ @SerializedName("declined_amount") - Amount declinedAmount; + DeclinedAmount declinedAmount; /** The number of declined requests which are impacted. */ @SerializedName("declined_impacted_requests") Long declinedImpactedRequests; + + public static final class ApprovedAmount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + + public static final class DeclinedAmount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorFiringEvent.java index ca3ccc38792..9dfb2996ae7 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorFiringEvent.java @@ -39,6 +39,9 @@ public static final class Impact { /** The number of impacted requests. */ @SerializedName("impacted_requests") Long impactedRequests; + /** The percentage of impacted requests. */ + @SerializedName("impacted_requests_percentage") + String impactedRequestsPercentage; /** * The type of the payment method. * diff --git a/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorResolvedEvent.java index ee80cfba4af..cc20d8348da 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorResolvedEvent.java @@ -39,6 +39,9 @@ public static final class Impact { /** The number of impacted requests. */ @SerializedName("impacted_requests") Long impactedRequests; + /** The percentage of impacted requests. */ + @SerializedName("impacted_requests_percentage") + String impactedRequestsPercentage; /** * The type of the payment method. * diff --git a/src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEvent.java b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEvent.java similarity index 67% rename from src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEvent.java rename to src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEvent.java index 2ab4ef45c12..aa8d7203b89 100644 --- a/src/main/java/com/stripe/events/V1SigmaScheduledQueryRunCreatedEvent.java +++ b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEvent.java @@ -3,20 +3,20 @@ 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 com.stripe.model.v2.payments.OffSessionPayment; import lombok.Getter; @Getter -public final class V1SigmaScheduledQueryRunCreatedEvent extends Event { +public final class V2PaymentsOffSessionPaymentAttemptFailedEvent extends Event { @SerializedName("related_object") /** Object containing the reference 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); + public OffSessionPayment fetchRelatedObject() throws StripeException { + return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject); } } diff --git a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEventNotification.java b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEventNotification.java similarity index 64% rename from src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEventNotification.java rename to src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEventNotification.java index 7128e9e9fe2..8efcf8fda14 100644 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountReactivatedEventNotification.java +++ b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptFailedEventNotification.java @@ -3,13 +3,13 @@ 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 com.stripe.model.v2.payments.OffSessionPayment; import lombok.Getter; @Getter -public final class V1FinancialConnectionsAccountReactivatedEventNotification +public final class V2PaymentsOffSessionPaymentAttemptFailedEventNotification extends EventNotification { @SerializedName("related_object") @@ -17,12 +17,12 @@ public final class V1FinancialConnectionsAccountReactivatedEventNotification 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); + public OffSessionPayment fetchRelatedObject() throws StripeException { + return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject); } /** Retrieve the corresponding full event from the Stripe API. */ @Override - public V1FinancialConnectionsAccountReactivatedEvent fetchEvent() throws StripeException { - return (V1FinancialConnectionsAccountReactivatedEvent) super.fetchEvent(); + public V2PaymentsOffSessionPaymentAttemptFailedEvent fetchEvent() throws StripeException { + return (V2PaymentsOffSessionPaymentAttemptFailedEvent) super.fetchEvent(); } } diff --git a/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEvent.java b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEvent.java similarity index 67% rename from src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEvent.java rename to src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEvent.java index 34655420cb3..9f52eb0c2d5 100644 --- a/src/main/java/com/stripe/events/V1RadarEarlyFraudWarningCreatedEvent.java +++ b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEvent.java @@ -3,20 +3,20 @@ 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 com.stripe.model.v2.payments.OffSessionPayment; import lombok.Getter; @Getter -public final class V1RadarEarlyFraudWarningCreatedEvent extends Event { +public final class V2PaymentsOffSessionPaymentAttemptStartedEvent extends Event { @SerializedName("related_object") /** Object containing the reference 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); + public OffSessionPayment fetchRelatedObject() throws StripeException { + return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject); } } diff --git a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDisconnectedEventNotification.java b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEventNotification.java similarity index 64% rename from src/main/java/com/stripe/events/V1FinancialConnectionsAccountDisconnectedEventNotification.java rename to src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEventNotification.java index 071c39fae49..69a46100690 100644 --- a/src/main/java/com/stripe/events/V1FinancialConnectionsAccountDisconnectedEventNotification.java +++ b/src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAttemptStartedEventNotification.java @@ -3,13 +3,13 @@ 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 com.stripe.model.v2.payments.OffSessionPayment; import lombok.Getter; @Getter -public final class V1FinancialConnectionsAccountDisconnectedEventNotification +public final class V2PaymentsOffSessionPaymentAttemptStartedEventNotification extends EventNotification { @SerializedName("related_object") @@ -17,12 +17,12 @@ public final class V1FinancialConnectionsAccountDisconnectedEventNotification 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); + public OffSessionPayment fetchRelatedObject() throws StripeException { + return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject); } /** Retrieve the corresponding full event from the Stripe API. */ @Override - public V1FinancialConnectionsAccountDisconnectedEvent fetchEvent() throws StripeException { - return (V1FinancialConnectionsAccountDisconnectedEvent) super.fetchEvent(); + public V2PaymentsOffSessionPaymentAttemptStartedEvent fetchEvent() throws StripeException { + return (V2PaymentsOffSessionPaymentAttemptStartedEvent) super.fetchEvent(); } } diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java index 4df791768e2..a12c45d0cd9 100644 --- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java +++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java @@ -17,50 +17,8 @@ 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("capability", com.stripe.model.Capability.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("dispute", com.stripe.model.Dispute.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.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); @@ -68,29 +26,6 @@ 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("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); @@ -143,6 +78,9 @@ public final class EventDataClassLookup { classLookup.put("v2.core.account", com.stripe.model.v2.core.Account.class); classLookup.put("v2.core.account_link", com.stripe.model.v2.core.AccountLink.class); classLookup.put("v2.core.account_person", com.stripe.model.v2.core.AccountPerson.class); + 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.claimable_sandbox", com.stripe.model.v2.core.ClaimableSandbox.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); @@ -154,6 +92,9 @@ public final class EventDataClassLookup { classLookup.put( "v2.money_management.adjustment", com.stripe.model.v2.moneymanagement.Adjustment.class); + classLookup.put( + "v2.money_management.currency_conversion", + com.stripe.model.v2.moneymanagement.CurrencyConversion.class); classLookup.put( "v2.money_management.financial_account", com.stripe.model.v2.moneymanagement.FinancialAccount.class); @@ -202,382 +143,11 @@ public final class EventDataClassLookup { classLookup.put("v2.reporting.report", com.stripe.model.v2.reporting.Report.class); classLookup.put("v2.reporting.report_run", com.stripe.model.v2.reporting.ReportRun.class); - eventClassLookup.put("v1.account.updated", com.stripe.events.V1AccountUpdatedEvent.class); - eventClassLookup.put( - "v1.application_fee.created", com.stripe.events.V1ApplicationFeeCreatedEvent.class); - eventClassLookup.put( - "v1.application_fee.refunded", com.stripe.events.V1ApplicationFeeRefundedEvent.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.capability.updated", com.stripe.events.V1CapabilityUpdatedEvent.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.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_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( @@ -922,6 +492,12 @@ public final class EventDataClassLookup { eventClassLookup.put( "v2.money_management.transaction.updated", com.stripe.events.V2MoneyManagementTransactionUpdatedEvent.class); + eventClassLookup.put( + "v2.payments.off_session_payment.attempt_failed", + com.stripe.events.V2PaymentsOffSessionPaymentAttemptFailedEvent.class); + eventClassLookup.put( + "v2.payments.off_session_payment.attempt_started", + com.stripe.events.V2PaymentsOffSessionPaymentAttemptStartedEvent.class); eventClassLookup.put( "v2.payments.off_session_payment.authorization_attempt_failed", com.stripe.events.V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.class); diff --git a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java index 02f408eb484..6b0151b7f2b 100644 --- a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java +++ b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java @@ -16,478 +16,12 @@ public final class EventNotificationClassLookup { new HashMap<>(); static { - eventClassLookup.put( - "v1.account.updated", com.stripe.events.V1AccountUpdatedEventNotification.class); - eventClassLookup.put( - "v1.application_fee.created", - com.stripe.events.V1ApplicationFeeCreatedEventNotification.class); - eventClassLookup.put( - "v1.application_fee.refunded", - com.stripe.events.V1ApplicationFeeRefundedEventNotification.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.capability.updated", com.stripe.events.V1CapabilityUpdatedEventNotification.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.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_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); @@ -864,6 +398,12 @@ public final class EventNotificationClassLookup { eventClassLookup.put( "v2.money_management.transaction.updated", com.stripe.events.V2MoneyManagementTransactionUpdatedEventNotification.class); + eventClassLookup.put( + "v2.payments.off_session_payment.attempt_failed", + com.stripe.events.V2PaymentsOffSessionPaymentAttemptFailedEventNotification.class); + eventClassLookup.put( + "v2.payments.off_session_payment.attempt_started", + com.stripe.events.V2PaymentsOffSessionPaymentAttemptStartedEventNotification.class); eventClassLookup.put( "v2.payments.off_session_payment.authorization_attempt_failed", com.stripe.events.V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification diff --git a/src/main/java/com/stripe/model/v2/FinancialAddressGeneratedMicrodeposits.java b/src/main/java/com/stripe/model/v2/FinancialAddressGeneratedMicrodeposits.java index b6e3a90d259..7bd4e6f46f4 100644 --- a/src/main/java/com/stripe/model/v2/FinancialAddressGeneratedMicrodeposits.java +++ b/src/main/java/com/stripe/model/v2/FinancialAddressGeneratedMicrodeposits.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.util.List; import lombok.EqualsAndHashCode; import lombok.Getter; @@ -15,7 +14,7 @@ public class FinancialAddressGeneratedMicrodeposits extends StripeObject { /** The amounts of the microdeposits that were generated. */ @SerializedName("amounts") - List amounts; + List amounts; /** * Has the value {@code true} if the object exists in live mode or the value {@code false} if the @@ -40,4 +39,28 @@ public class FinancialAddressGeneratedMicrodeposits extends StripeObject { */ @SerializedName("status") String status; + + /** + * For more details about Amount, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } 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 8462ef78971..0b27dbd2fbf 100644 --- a/src/main/java/com/stripe/model/v2/billing/Cadence.java +++ b/src/main/java/com/stripe/model/v2/billing/Cadence.java @@ -699,10 +699,10 @@ public static class Card extends StripeObject { /** * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to * automatically prompt your customers for authentication based on risk level and other - * requirements. However, if you wish to request 3D Secure based on logic from your - * own fraud engine, provide this option. Read our guide on manually + * href="https://docs.stripe.com/strong-customer-authentication">other requirements. + * However, if you wish to request 3D Secure based on logic from your own fraud engine, + * provide this option. Read our guide on manually * requesting 3D Secure for more information on how this configuration interacts with * Radar and our SCA Engine. * 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 5e699c71989..4a9be6c5836 100644 --- a/src/main/java/com/stripe/model/v2/billing/CollectionSetting.java +++ b/src/main/java/com/stripe/model/v2/billing/CollectionSetting.java @@ -228,10 +228,10 @@ public static class Card extends StripeObject { /** * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to * automatically prompt your customers for authentication based on risk level and other requirements. + * href="https://docs.stripe.com/strong-customer-authentication">other requirements. * However, if you wish to request 3D Secure based on logic from your own fraud engine, * provide this option. Read our guide on manually + * href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually * requesting 3D Secure for more information on how this configuration interacts with * Radar and our SCA Engine. * 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 2b620865a26..8c511cc3c92 100644 --- a/src/main/java/com/stripe/model/v2/billing/CollectionSettingVersion.java +++ b/src/main/java/com/stripe/model/v2/billing/CollectionSettingVersion.java @@ -202,10 +202,10 @@ public static class Card extends StripeObject { /** * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to * automatically prompt your customers for authentication based on risk level and other requirements. + * href="https://docs.stripe.com/strong-customer-authentication">other requirements. * However, if you wish to request 3D Secure based on logic from your own fraud engine, * provide this option. Read our guide on manually + * href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually * requesting 3D Secure for more information on how this configuration interacts with * Radar and our SCA Engine. * diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEvent.java b/src/main/java/com/stripe/model/v2/billing/MeterEvent.java index 698c1693576..ac2b0fa94ad 100644 --- a/src/main/java/com/stripe/model/v2/billing/MeterEvent.java +++ b/src/main/java/com/stripe/model/v2/billing/MeterEvent.java @@ -48,7 +48,8 @@ public class MeterEvent extends StripeObject { /** * The payload of the event. This must contain the fields corresponding to a meter’s {@code * customer_mapping.event_payload_key} (default is {@code stripe_customer_id}) and {@code - * value_settings.event_payload_key} (default is {@code value}). Read more about the payload. + * value_settings.event_payload_key} (default is {@code value}). Read more about the payload.. */ @SerializedName("payload") Map payload; 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 214c6a0b82c..26e4a277924 100644 --- a/src/main/java/com/stripe/model/v2/billing/ServiceAction.java +++ b/src/main/java/com/stripe/model/v2/billing/ServiceAction.java @@ -81,7 +81,7 @@ public class ServiceAction extends StripeObject implements HasId { public static class CreditGrant extends StripeObject { /** The amount of the credit grant. */ @SerializedName("amount") - com.stripe.model.v2.billing.ServiceAction.CreditGrant.Amount amount; + Amount amount; /** Defines the scope where the credit grant is applicable. */ @SerializedName("applicability_config") @@ -125,7 +125,7 @@ public static class Amount extends StripeObject { /** The monetary amount of the credit grant. Required if {@code type} is {@code monetary}. */ @SerializedName("monetary") - com.stripe.v2.Amount monetary; + Monetary monetary; /** * The type of the credit grant amount. We currently support {@code monetary} and {@code @@ -157,6 +157,27 @@ public static class CustomPricingUnit extends StripeObject implements HasId { @SerializedName("value") String value; } + + /** The monetary amount of the credit grant. Required if {@code type} is {@code monetary}. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Monetary extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** Defines the scope where the credit grant is applicable. */ @@ -214,7 +235,7 @@ public static class ExpiryConfig extends StripeObject { public static class CreditGrantPerTenant extends StripeObject { /** The amount of the credit grant. */ @SerializedName("amount") - com.stripe.model.v2.billing.ServiceAction.CreditGrantPerTenant.Amount amount; + Amount amount; /** Defines the scope where the credit grant is applicable. */ @SerializedName("applicability_config") @@ -258,7 +279,7 @@ public static class Amount extends StripeObject { /** The monetary amount of the credit grant. Required if {@code type} is {@code monetary}. */ @SerializedName("monetary") - com.stripe.v2.Amount monetary; + Monetary monetary; /** * The type of the credit grant amount. We currently support {@code monetary} and {@code @@ -290,6 +311,27 @@ public static class CustomPricingUnit extends StripeObject implements HasId { @SerializedName("value") String value; } + + /** The monetary amount of the credit grant. Required if {@code type} is {@code monetary}. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Monetary extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** Defines the scope where the credit grant is applicable. */ 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 abf9dd4afd2..e09f07a44a7 100644 --- a/src/main/java/com/stripe/model/v2/core/Account.java +++ b/src/main/java/com/stripe/model/v2/core/Account.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import java.util.List; import java.util.Map; @@ -73,6 +72,13 @@ public class Account extends StripeObject implements HasId { @SerializedName("display_name") String displayName; + /** + * Information about the future requirements for the Account that will eventually come into + * effect, including what information needs to be collected, and by when. + */ + @SerializedName("future_requirements") + FutureRequirements futureRequirements; + /** Unique identifier for the Account. */ @Getter(onMethod_ = {@Override}) @SerializedName("id") @@ -106,8 +112,8 @@ public class Account extends StripeObject implements HasId { String object; /** - * Information about the requirements for the Account, including what information needs to be - * collected, and by when. + * Information about the active requirements for the Account, including what information needs to + * be collected, and by when. */ @SerializedName("requirements") Requirements requirements; @@ -728,16 +734,17 @@ public static class AutomaticIndirectTax extends StripeObject { String ipAddress; /** - * The customer’s identified tax location - uses {@code location_source}. Will only be - * rendered if the {@code automatic_indirect_tax} feature is requested and {@code active}. + * The identified + * tax location of the customer. Will only be rendered if the {@code automatic_indirect_tax} + * feature is requested and {@code active}. */ @SerializedName("location") Location location; /** - * The data source used to identify the customer's tax location - defaults to - * 'identity_address'. Will only be used for automatic tax calculation on the customer's - * Invoices and Subscriptions. + * The data source used to identify the customer's tax location. Will only be used for + * automatic tax calculation on the customer's Invoices and Subscriptions. * *

One of {@code identity_address}, {@code ip_address}, {@code payment_method}, or {@code * shipping_address}. @@ -746,8 +753,10 @@ public static class AutomaticIndirectTax extends StripeObject { String locationSource; /** - * The customer’s identified tax location - uses {@code location_source}. Will only be - * rendered if the {@code automatic_indirect_tax} feature is requested and {@code active}. + * The identified + * tax location of the customer. Will only be rendered if the {@code automatic_indirect_tax} + * feature is requested and {@code active}. */ @Getter @Setter @@ -862,8 +871,7 @@ public static class Capabilities extends StripeObject { /** * Generates requirements for enabling automatic indirect tax calculation on this customer's * invoices or subscriptions. Recommended to request this capability if planning to enable - * automatic tax calculation on this customer's invoices or subscriptions. Uses the {@code - * location_source} field. + * automatic tax calculation on this customer's invoices or subscriptions. */ @SerializedName("automatic_indirect_tax") AutomaticIndirectTax automaticIndirectTax; @@ -871,8 +879,7 @@ public static class Capabilities extends StripeObject { /** * Generates requirements for enabling automatic indirect tax calculation on this customer's * invoices or subscriptions. Recommended to request this capability if planning to enable - * automatic tax calculation on this customer's invoices or subscriptions. Uses the {@code - * location_source} field. + * automatic tax calculation on this customer's invoices or subscriptions. */ @Getter @Setter @@ -1016,6 +1023,10 @@ public static class Merchant extends StripeObject { @SerializedName("card_payments") CardPayments cardPayments; + /** Settings specific to Konbini payments on the account. */ + @SerializedName("konbini_payments") + KonbiniPayments konbiniPayments; + /** * The merchant category code for the merchant. MCCs are used to classify businesses based on * the goods or services they provide. @@ -1023,6 +1034,10 @@ public static class Merchant extends StripeObject { @SerializedName("mcc") String mcc; + /** Settings for the default text that appears on statements for language variations. */ + @SerializedName("script_statement_descriptor") + ScriptStatementDescriptor scriptStatementDescriptor; + /** Settings used for SEPA debit payments. */ @SerializedName("sepa_debit_payments") SepaDebitPayments sepaDebitPayments; @@ -3780,6 +3795,140 @@ public static class DeclineOn extends StripeObject { } } + /** Settings specific to Konbini payments on the account. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KonbiniPayments extends StripeObject { + /** Support for Konbini payments. */ + @SerializedName("support") + Support support; + + /** Support for Konbini payments. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Support extends StripeObject { + /** Support email address for Konbini payments. */ + @SerializedName("email") + String email; + + /** Support hours for Konbini payments. */ + @SerializedName("hours") + Hours hours; + + /** Support phone number for Konbini payments. */ + @SerializedName("phone") + String phone; + + /** Support hours for Konbini payments. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Hours extends StripeObject { + /** Support hours end time (JST time of day) for in {@code HH:MM} format. */ + @SerializedName("end_time") + String endTime; + + /** Support hours start time (JST time of day) for in {@code HH:MM} format. */ + @SerializedName("start_time") + String startTime; + } + } + } + + /** Settings for the default text that appears on statements for language variations. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class ScriptStatementDescriptor extends StripeObject { + /** + * The Kana variation of statement_descriptor used for charges in Japan. Japanese statement + * descriptors have special + * requirements. + */ + @SerializedName("kana") + Kana kana; + + /** + * The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement + * descriptors have special + * requirements. + */ + @SerializedName("kanji") + Kanji kanji; + + /** + * The Kana variation of statement_descriptor used for charges in Japan. Japanese statement + * descriptors have special + * requirements. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Kana extends StripeObject { + /** + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the statement_descriptor text to limit the full descriptor to 22 characters. + * For more information about statement descriptors and their requirements, see the + * Merchant Configuration settings documentation. + */ + @SerializedName("descriptor") + String descriptor; + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for + * the dynamic part of the descriptor, keep this text short. If you don’t specify this + * value, statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + @SerializedName("prefix") + String prefix; + } + + /** + * The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement + * descriptors have special + * requirements. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Kanji extends StripeObject { + /** + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the statement_descriptor text to limit the full descriptor to 22 characters. + * For more information about statement descriptors and their requirements, see the + * Merchant Configuration settings documentation. + */ + @SerializedName("descriptor") + String descriptor; + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for + * the dynamic part of the descriptor, keep this text short. If you don’t specify this + * value, statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + @SerializedName("prefix") + String prefix; + } + } + /** Settings used for SEPA debit payments. */ @Getter @Setter @@ -4579,6 +4728,10 @@ public static class StatusDetail extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class HoldsCurrencies extends StripeObject { + /** Can hold storage-type funds on Stripe in EUR. */ + @SerializedName("eur") + Eur eur; + /** Can hold storage-type funds on Stripe in GBP. */ @SerializedName("gbp") Gbp gbp; @@ -4591,6 +4744,62 @@ public static class HoldsCurrencies extends StripeObject { @SerializedName("usdc") Usdc usdc; + /** Can hold storage-type funds on Stripe in EUR. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Eur extends StripeObject { + /** Whether the Capability has been requested. */ + @SerializedName("requested") + Boolean requested; + + /** + * The status of the Capability. + * + *

One of {@code active}, {@code pending}, {@code restricted}, or {@code + * unsupported}. + */ + @SerializedName("status") + String status; + + /** + * Additional details regarding the status of the Capability. {@code status_details} + * will be empty if the Capability's status is {@code active}. + */ + @SerializedName("status_details") + List + statusDetails; + + /** + * For more details about StatusDetail, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class StatusDetail extends StripeObject { + /** + * Machine-readable code explaining the reason for the Capability to be in its current + * status. + * + *

One of {@code determining_status}, {@code requirements_past_due}, {@code + * requirements_pending_verification}, {@code restricted_other}, {@code + * unsupported_business}, {@code unsupported_country}, or {@code + * unsupported_entity_type}. + */ + @SerializedName("code") + String code; + + /** + * Machine-readable code explaining how to make the Capability active. + * + *

One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}. + */ + @SerializedName("resolution") + String resolution; + } + } + /** Can hold storage-type funds on Stripe in GBP. */ @Getter @Setter @@ -5390,6 +5599,345 @@ public static class Responsibilities extends StripeObject { */ @SerializedName("losses_collector") String lossesCollector; + + /** + * A value indicating responsibility for collecting requirements on this account. + * + *

One of {@code application}, or {@code stripe}. + */ + @SerializedName("requirements_collector") + String requirementsCollector; + } + } + + /** + * Information about the future requirements for the Account that will eventually come into + * effect, including what information needs to be collected, and by when. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FutureRequirements extends StripeObject { + /** A list of requirements for the Account. */ + @SerializedName("entries") + List entries; + + /** The time at which the future requirements become effective. */ + @SerializedName("minimum_transition_date") + Instant minimumTransitionDate; + + /** An object containing an overview of requirements for the Account. */ + @SerializedName("summary") + Summary summary; + + /** + * For more details about Entry, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Entry extends StripeObject { + /** + * Whether the responsibility is with the integrator or with Stripe (to review info, to wait + * for some condition, etc.) to action the requirement. + * + *

One of {@code stripe}, or {@code user}. + */ + @SerializedName("awaiting_action_from") + String awaitingActionFrom; + + /** Machine-readable string describing the requirement. */ + @SerializedName("description") + String description; + + /** + * Descriptions of why the requirement must be collected, or why the collected information + * isn't satisfactory to Stripe. + */ + @SerializedName("errors") + List errors; + + /** + * A hash describing the impact of not collecting the requirement, or Stripe not being able to + * verify the collected information. + */ + @SerializedName("impact") + Impact impact; + + /** The soonest point when the account will be impacted by not providing the requirement. */ + @SerializedName("minimum_deadline") + MinimumDeadline minimumDeadline; + + /** A reference to the location of the requirement. */ + @SerializedName("reference") + Reference reference; + + /** A list of reasons why Stripe is collecting the requirement. */ + @SerializedName("requested_reasons") + List requestedReasons; + + /** + * For more details about Errors, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Errors extends StripeObject { + /** + * Machine-readable code describing the error. + * + *

One of {@code invalid_address_city_state_postal_code}, {@code + * invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code + * invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code + * invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code + * invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code + * invalid_product_description_length}, {@code invalid_product_description_url_match}, + * {@code invalid_representative_country}, {@code + * invalid_statement_descriptor_business_mismatch}, {@code + * invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length}, + * {@code invalid_statement_descriptor_prefix_denylisted}, {@code + * invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code + * invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code + * invalid_url_denylisted}, {@code invalid_url_format}, {@code + * invalid_url_website_business_information_mismatch}, {@code invalid_url_website_empty}, + * {@code invalid_url_website_inaccessible}, {@code + * invalid_url_website_inaccessible_geoblocked}, {@code + * invalid_url_website_inaccessible_password_protected}, {@code + * invalid_url_website_incomplete}, {@code + * invalid_url_website_incomplete_cancellation_policy}, {@code + * invalid_url_website_incomplete_customer_service_details}, {@code + * invalid_url_website_incomplete_legal_restrictions}, {@code + * invalid_url_website_incomplete_refund_policy}, {@code + * invalid_url_website_incomplete_return_policy}, {@code + * invalid_url_website_incomplete_terms_and_conditions}, {@code + * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, + * {@code invalid_url_web_presence_detected}, {@code invalid_value_other}, {@code + * unresolvable_ip_address}, {@code unresolvable_postal_code}, {@code + * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code + * verification_document_address_missing}, {@code verification_document_corrupt}, {@code + * verification_document_country_not_supported}, {@code + * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch}, + * {@code verification_document_duplicate_type}, {@code verification_document_expired}, + * {@code verification_document_failed_copy}, {@code + * verification_document_failed_greyscale}, {@code verification_document_failed_other}, + * {@code verification_document_failed_test_mode}, {@code verification_document_fraudulent}, + * {@code verification_document_id_number_mismatch}, {@code + * verification_document_id_number_missing}, {@code verification_document_incomplete}, + * {@code verification_document_invalid}, {@code + * verification_document_issue_or_expiry_date_missing}, {@code + * verification_document_manipulated}, {@code verification_document_missing_back}, {@code + * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code + * verification_document_name_missing}, {@code verification_document_nationality_mismatch}, + * {@code verification_document_not_readable}, {@code verification_document_not_signed}, + * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch}, + * {@code verification_document_too_large}, {@code + * verification_document_type_not_supported}, {@code verification_extraneous_directors}, + * {@code verification_failed_address_match}, {@code + * verification_failed_business_iec_number}, {@code verification_failed_document_match}, + * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity}, + * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code + * verification_failed_other}, {@code verification_failed_representative_authority}, {@code + * verification_failed_residential_address}, {@code verification_failed_tax_id_match}, + * {@code verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, + * {@code verification_missing_executives}, {@code verification_missing_owners}, {@code + * verification_requires_additional_memorandum_of_associations}, {@code + * verification_requires_additional_proof_of_registration}, {@code + * verification_selfie_document_missing_photo}, {@code verification_selfie_face_mismatch}, + * {@code verification_selfie_manipulated}, {@code verification_selfie_unverified_other}, + * {@code verification_supportability}, or {@code verification_token_stale}. + */ + @SerializedName("code") + String code; + + /** Human-readable description of the error. */ + @SerializedName("description") + String description; + } + + /** + * A hash describing the impact of not collecting the requirement, or Stripe not being able to + * verify the collected information. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Impact extends StripeObject { + /** + * The Capabilities that will be restricted if the requirement is not collected and + * satisfactory to Stripe. + */ + @SerializedName("restricts_capabilities") + List restrictsCapabilities; + + /** + * For more details about RestrictsCapability, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class RestrictsCapability extends StripeObject { + /** + * The name of the Capability which will be restricted. + * + *

One of {@code ach_debit_payments}, {@code acss_debit_payments}, {@code + * affirm_payments}, {@code afterpay_clearpay_payments}, {@code alma_payments}, {@code + * amazon_pay_payments}, {@code automatic_indirect_tax}, {@code au_becs_debit_payments}, + * {@code bacs_debit_payments}, {@code bancontact_payments}, {@code bank_accounts.local}, + * {@code bank_accounts.wire}, {@code blik_payments}, {@code boleto_payments}, {@code + * cards}, {@code card_payments}, {@code cartes_bancaires_payments}, {@code + * cashapp_payments}, {@code commercial.celtic.charge_card}, {@code + * commercial.celtic.spend_card}, {@code commercial.cross_river_bank.charge_card}, {@code + * commercial.cross_river_bank.spend_card}, {@code commercial.lead.prepaid_card}, {@code + * commercial.stripe.charge_card}, {@code commercial.stripe.prepaid_card}, {@code crypto}, + * {@code eps_payments}, {@code financial_addresses.bank_accounts}, {@code fpx_payments}, + * {@code gb_bank_transfer_payments}, {@code grabpay_payments}, {@code + * holds_currencies.eur}, {@code holds_currencies.gbp}, {@code holds_currencies.usd}, + * {@code ideal_payments}, {@code inbound_transfers.financial_accounts}, {@code + * jcb_payments}, {@code jp_bank_transfer_payments}, {@code kakao_pay_payments}, {@code + * klarna_payments}, {@code konbini_payments}, {@code kr_card_payments}, {@code + * link_payments}, {@code mobilepay_payments}, {@code multibanco_payments}, {@code + * mx_bank_transfer_payments}, {@code naver_pay_payments}, {@code + * outbound_payments.bank_accounts}, {@code outbound_payments.cards}, {@code + * outbound_payments.financial_accounts}, {@code outbound_transfers.bank_accounts}, {@code + * outbound_transfers.financial_accounts}, {@code oxxo_payments}, {@code p24_payments}, + * {@code payco_payments}, {@code paynow_payments}, {@code pay_by_bank_payments}, {@code + * promptpay_payments}, {@code revolut_pay_payments}, {@code samsung_pay_payments}, {@code + * sepa_bank_transfer_payments}, {@code sepa_debit_payments}, {@code + * stripe_balance.payouts}, {@code stripe_balance.stripe_transfers}, {@code + * swish_payments}, {@code twint_payments}, {@code us_bank_transfer_payments}, or {@code + * zip_payments}. + */ + @SerializedName("capability") + String capability; + + /** + * The configuration which specifies the Capability which will be restricted. + * + *

One of {@code card_creator}, {@code customer}, {@code merchant}, {@code recipient}, + * or {@code storer}. + */ + @SerializedName("configuration") + String configuration; + + /** + * Details about when in the account lifecycle the requirement must be collected by the + * avoid the Capability restriction. + */ + @SerializedName("deadline") + Deadline deadline; + + /** + * Details about when in the account lifecycle the requirement must be collected by the + * avoid the Capability restriction. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Deadline extends StripeObject { + /** + * The current status of the requirement's impact. + * + *

One of {@code currently_due}, {@code eventually_due}, or {@code past_due}. + */ + @SerializedName("status") + String status; + } + } + } + + /** The soonest point when the account will be impacted by not providing the requirement. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class MinimumDeadline extends StripeObject { + /** + * The current status of the requirement's impact. + * + *

One of {@code currently_due}, {@code eventually_due}, or {@code past_due}. + */ + @SerializedName("status") + String status; + } + + /** A reference to the location of the requirement. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Reference extends StripeObject { + /** If {@code inquiry} is the type, the inquiry token. */ + @SerializedName("inquiry") + String inquiry; + + /** If {@code resource} is the type, the resource token. */ + @SerializedName("resource") + String resource; + + /** + * The type of the reference. If the type is "inquiry", the inquiry token can be + * found in the "inquiry" field. Otherwise the type is an API resource, the token + * for which can be found in the "resource" field. + * + *

One of {@code inquiry}, {@code payment_method}, or {@code person}. + */ + @SerializedName("type") + String type; + } + + /** + * For more details about RequestedReason, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class RequestedReason extends StripeObject { + /** + * Machine-readable description of Stripe's reason for collecting the requirement. + * + *

One of {@code routine_onboarding}, or {@code routine_verification}. + */ + @SerializedName("code") + String code; + } + } + + /** An object containing an overview of requirements for the Account. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Summary extends StripeObject { + /** + * The soonest date and time a requirement on the Account will become {@code past due}. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: + * {@code 2022-09-18T13:22:18.123Z}. + */ + @SerializedName("minimum_deadline") + MinimumDeadline minimumDeadline; + + /** + * The soonest date and time a requirement on the Account will become {@code past due}. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: + * {@code 2022-09-18T13:22:18.123Z}. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class MinimumDeadline extends StripeObject { + /** + * The current strictest status of all requirements on the Account. + * + *

One of {@code currently_due}, {@code eventually_due}, or {@code past_due}. + */ + @SerializedName("status") + String status; + + /** The soonest RFC3339 date & time UTC value a requirement can impact the Account. */ + @SerializedName("time") + Instant time; + } } } @@ -6661,6 +7209,27 @@ public static class AnnualRevenue extends StripeObject { */ @SerializedName("fiscal_year_end") String fiscalYearEnd; + + /** A non-negative integer representing the amount in the smallest currency unit. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** Documents that may be submitted to satisfy various informational requests. */ @@ -6998,20 +7567,20 @@ public static class IdNumber extends StripeObject { /** * Open Enum. The ID number type of a business entity. * - *

One of {@code ae_crn}, {@code ae_vat}, {@code ao_nif}, {@code at_fn}, {@code au_abn}, - * {@code au_acn}, {@code au_in}, {@code az_tin}, {@code bd_etin}, {@code be_cbe}, {@code - * bg_uic}, {@code br_cnpj}, {@code ca_cn}, {@code ca_crarr}, {@code ca_neq}, {@code - * ca_rid}, {@code ch_chid}, {@code ch_uid}, {@code cr_cpj}, {@code cr_nite}, {@code - * cy_tic}, {@code cz_ico}, {@code de_hrn}, {@code de_vat}, {@code dk_cvr}, {@code do_rcn}, - * {@code ee_rk}, {@code es_cif}, {@code fi_yt}, {@code fr_siren}, {@code fr_vat}, {@code - * gb_crn}, {@code gi_crn}, {@code gr_gemi}, {@code gt_nit}, {@code hk_br}, {@code hk_cr}, - * {@code hk_mbs}, {@code hu_cjs}, {@code ie_crn}, {@code it_rea}, {@code it_vat}, {@code - * jp_cn}, {@code kz_bin}, {@code li_uid}, {@code lt_ccrn}, {@code lu_rcs}, {@code lv_urn}, - * {@code mt_crn}, {@code mx_rfc}, {@code my_brn}, {@code my_coid}, {@code my_sst}, {@code - * mz_nuit}, {@code nl_kvk}, {@code no_orgnr}, {@code nz_bn}, {@code pe_ruc}, {@code - * pk_ntn}, {@code pl_regon}, {@code pt_vat}, {@code ro_cui}, {@code sa_crn}, {@code - * sa_tin}, {@code se_orgnr}, {@code sg_uen}, {@code si_msp}, {@code sk_ico}, {@code - * th_crn}, {@code th_prn}, {@code th_tin}, or {@code us_ein}. + *

One of {@code ae_crn}, {@code ae_vat}, {@code ao_nif}, {@code ar_cuit}, {@code at_fn}, + * {@code au_abn}, {@code au_acn}, {@code au_in}, {@code az_tin}, {@code bd_etin}, {@code + * be_cbe}, {@code bg_uic}, {@code br_cnpj}, {@code ca_cn}, {@code ca_crarr}, {@code + * ca_neq}, {@code ca_rid}, {@code ch_chid}, {@code ch_uid}, {@code cr_cpj}, {@code + * cr_nite}, {@code cy_tic}, {@code cz_ico}, {@code de_hrn}, {@code de_vat}, {@code dk_cvr}, + * {@code do_rcn}, {@code ee_rk}, {@code es_cif}, {@code fi_yt}, {@code fr_siren}, {@code + * fr_vat}, {@code gb_crn}, {@code gi_crn}, {@code gr_gemi}, {@code gt_nit}, {@code hk_br}, + * {@code hk_cr}, {@code hk_mbs}, {@code hu_cjs}, {@code ie_crn}, {@code it_rea}, {@code + * it_vat}, {@code jp_cn}, {@code kz_bin}, {@code li_uid}, {@code lt_ccrn}, {@code lu_rcs}, + * {@code lv_urn}, {@code mt_crn}, {@code mx_rfc}, {@code my_brn}, {@code my_coid}, {@code + * my_sst}, {@code mz_nuit}, {@code nl_kvk}, {@code no_orgnr}, {@code nz_bn}, {@code + * pe_ruc}, {@code pk_ntn}, {@code pl_regon}, {@code pt_vat}, {@code ro_cui}, {@code + * sa_crn}, {@code sa_tin}, {@code se_orgnr}, {@code sg_uen}, {@code si_msp}, {@code + * sk_ico}, {@code th_crn}, {@code th_prn}, {@code th_tin}, or {@code us_ein}. */ @SerializedName("type") String type; @@ -7025,6 +7594,27 @@ public static class MonthlyEstimatedRevenue extends StripeObject { /** A non-negative integer representing the amount in the smallest currency unit. */ @SerializedName("amount") Amount amount; + + /** A non-negative integer representing the amount in the smallest currency unit. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** The business registration address of the business entity in non latin script. */ @@ -7669,8 +8259,8 @@ public static class IdNumber extends StripeObject { /** * The ID number type of an individual. * - *

One of {@code ae_eid}, {@code ao_nif}, {@code az_tin}, {@code bd_brc}, {@code - * bd_etin}, {@code bd_nid}, {@code br_cpf}, {@code cr_cpf}, {@code cr_dimex}, {@code + *

One of {@code ae_eid}, {@code ao_nif}, {@code ar_dni}, {@code az_tin}, {@code bd_brc}, + * {@code bd_etin}, {@code bd_nid}, {@code br_cpf}, {@code cr_cpf}, {@code cr_dimex}, {@code * cr_nite}, {@code de_stn}, {@code do_rcn}, {@code gt_nit}, {@code hk_id}, {@code kz_iin}, * {@code mx_rfc}, {@code my_nric}, {@code mz_nuit}, {@code nl_bsn}, {@code pe_dni}, {@code * pk_cnic}, {@code pk_snic}, {@code sa_tin}, {@code sg_fin}, {@code sg_nric}, {@code @@ -7865,21 +8455,13 @@ public static class Kanji extends StripeObject { } /** - * Information about the requirements for the Account, including what information needs to be - * collected, and by when. + * Information about the active requirements for the Account, including what information needs to + * be collected, and by when. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Requirements extends StripeObject { - /** - * A value indicating responsibility for collecting requirements on this account. - * - *

One of {@code application}, or {@code stripe}. - */ - @SerializedName("collector") - String collector; - /** A list of requirements for the Account. */ @SerializedName("entries") List entries; @@ -8052,17 +8634,17 @@ public static class RestrictsCapability extends StripeObject { * commercial.stripe.charge_card}, {@code commercial.stripe.prepaid_card}, {@code crypto}, * {@code eps_payments}, {@code financial_addresses.bank_accounts}, {@code fpx_payments}, * {@code gb_bank_transfer_payments}, {@code grabpay_payments}, {@code - * holds_currencies.gbp}, {@code holds_currencies.usd}, {@code ideal_payments}, {@code - * inbound_transfers.financial_accounts}, {@code jcb_payments}, {@code - * jp_bank_transfer_payments}, {@code kakao_pay_payments}, {@code klarna_payments}, {@code - * konbini_payments}, {@code kr_card_payments}, {@code link_payments}, {@code - * mobilepay_payments}, {@code multibanco_payments}, {@code mx_bank_transfer_payments}, - * {@code naver_pay_payments}, {@code outbound_payments.bank_accounts}, {@code - * outbound_payments.cards}, {@code outbound_payments.financial_accounts}, {@code - * outbound_transfers.bank_accounts}, {@code outbound_transfers.financial_accounts}, - * {@code oxxo_payments}, {@code p24_payments}, {@code payco_payments}, {@code - * paynow_payments}, {@code pay_by_bank_payments}, {@code promptpay_payments}, {@code - * revolut_pay_payments}, {@code samsung_pay_payments}, {@code + * holds_currencies.eur}, {@code holds_currencies.gbp}, {@code holds_currencies.usd}, + * {@code ideal_payments}, {@code inbound_transfers.financial_accounts}, {@code + * jcb_payments}, {@code jp_bank_transfer_payments}, {@code kakao_pay_payments}, {@code + * klarna_payments}, {@code konbini_payments}, {@code kr_card_payments}, {@code + * link_payments}, {@code mobilepay_payments}, {@code multibanco_payments}, {@code + * mx_bank_transfer_payments}, {@code naver_pay_payments}, {@code + * outbound_payments.bank_accounts}, {@code outbound_payments.cards}, {@code + * outbound_payments.financial_accounts}, {@code outbound_transfers.bank_accounts}, {@code + * outbound_transfers.financial_accounts}, {@code oxxo_payments}, {@code p24_payments}, + * {@code payco_payments}, {@code paynow_payments}, {@code pay_by_bank_payments}, {@code + * promptpay_payments}, {@code revolut_pay_payments}, {@code samsung_pay_payments}, {@code * sepa_bank_transfer_payments}, {@code sepa_debit_payments}, {@code * stripe_balance.payouts}, {@code stripe_balance.stripe_transfers}, {@code * swish_payments}, {@code twint_payments}, {@code us_bank_transfer_payments}, or {@code @@ -8134,10 +8716,11 @@ public static class Reference extends StripeObject { String resource; /** - * The type of the reference. An additional hash is included with a name matching the type. - * It contains additional information specific to the type. + * The type of the reference. If the type is "inquiry", the inquiry token can be + * found in the "inquiry" field. Otherwise the type is an API resource, the token + * for which can be found in the "resource" field. * - *

One of {@code inquiry}, or {@code resource}. + *

One of {@code inquiry}, {@code payment_method}, or {@code person}. */ @SerializedName("type") String type; @@ -8154,8 +8737,7 @@ public static class RequestedReason extends StripeObject { /** * Machine-readable description of Stripe's reason for collecting the requirement. * - *

One of {@code future_requirements}, {@code routine_onboarding}, or {@code - * routine_verification}. + *

One of {@code routine_onboarding}, or {@code routine_verification}. */ @SerializedName("code") String code; 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 90183d36dc4..96dfa034726 100644 --- a/src/main/java/com/stripe/model/v2/core/AccountPerson.java +++ b/src/main/java/com/stripe/model/v2/core/AccountPerson.java @@ -526,12 +526,13 @@ public static class IdNumber extends StripeObject { /** * The ID number type of an individual. * - *

One of {@code ae_eid}, {@code ao_nif}, {@code az_tin}, {@code bd_brc}, {@code bd_etin}, - * {@code bd_nid}, {@code br_cpf}, {@code cr_cpf}, {@code cr_dimex}, {@code cr_nite}, {@code - * de_stn}, {@code do_rcn}, {@code gt_nit}, {@code hk_id}, {@code kz_iin}, {@code mx_rfc}, - * {@code my_nric}, {@code mz_nuit}, {@code nl_bsn}, {@code pe_dni}, {@code pk_cnic}, {@code - * pk_snic}, {@code sa_tin}, {@code sg_fin}, {@code sg_nric}, {@code th_lc}, {@code th_pin}, - * {@code us_itin}, {@code us_itin_last_4}, {@code us_ssn}, or {@code us_ssn_last_4}. + *

One of {@code ae_eid}, {@code ao_nif}, {@code ar_dni}, {@code az_tin}, {@code bd_brc}, + * {@code bd_etin}, {@code bd_nid}, {@code br_cpf}, {@code cr_cpf}, {@code cr_dimex}, {@code + * cr_nite}, {@code de_stn}, {@code do_rcn}, {@code gt_nit}, {@code hk_id}, {@code kz_iin}, + * {@code mx_rfc}, {@code my_nric}, {@code mz_nuit}, {@code nl_bsn}, {@code pe_dni}, {@code + * pk_cnic}, {@code pk_snic}, {@code sa_tin}, {@code sg_fin}, {@code sg_nric}, {@code th_lc}, + * {@code th_pin}, {@code us_itin}, {@code us_itin_last_4}, {@code us_ssn}, or {@code + * us_ssn_last_4}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/v2/core/AccountPersonToken.java b/src/main/java/com/stripe/model/v2/core/AccountPersonToken.java new file mode 100644 index 00000000000..4ef1f13f9cb --- /dev/null +++ b/src/main/java/com/stripe/model/v2/core/AccountPersonToken.java @@ -0,0 +1,55 @@ +// 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; + +/** + * Person Tokens are single-use tokens which tokenize person information, and are used for creating + * or updating a Person. + */ +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class AccountPersonToken extends StripeObject implements HasId { + /** + * Time at which the token was created. Represented as a RFC 3339 date & time UTC value in + * millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + @SerializedName("created") + Instant created; + + /** Time at which the token will expire. */ + @SerializedName("expires_at") + Instant expiresAt; + + /** Unique identifier for the token. */ + @Getter(onMethod_ = {@Override}) + @SerializedName("id") + String id; + + /** + * Has the value {@code true} if the token 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.core.account_person_token}. + */ + @SerializedName("object") + String object; + + /** Determines if the token has already been used (tokens can only be used once). */ + @SerializedName("used") + Boolean used; +} diff --git a/src/main/java/com/stripe/model/v2/core/AccountToken.java b/src/main/java/com/stripe/model/v2/core/AccountToken.java new file mode 100644 index 00000000000..6bf4bb5c879 --- /dev/null +++ b/src/main/java/com/stripe/model/v2/core/AccountToken.java @@ -0,0 +1,55 @@ +// 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; + +/** + * Account tokens are single-use tokens which tokenize company/individual/business information, and + * are used for creating or updating an Account. + */ +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class AccountToken extends StripeObject implements HasId { + /** + * Time at which the token was created. Represented as a RFC 3339 date & time UTC value in + * millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + @SerializedName("created") + Instant created; + + /** Time at which the token will expire. */ + @SerializedName("expires_at") + Instant expiresAt; + + /** Unique identifier for the token. */ + @Getter(onMethod_ = {@Override}) + @SerializedName("id") + String id; + + /** + * Has the value {@code true} if the token 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.core.account_token}. + */ + @SerializedName("object") + String object; + + /** Determines if the token has already been used (tokens can only be used once). */ + @SerializedName("used") + Boolean used; +} 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 0001390278c..1c9b0fed797 100644 --- a/src/main/java/com/stripe/model/v2/core/Event.java +++ b/src/main/java/com/stripe/model/v2/core/Event.java @@ -76,10 +76,6 @@ public class Event extends StripeObject implements HasId, StripeActiveObject { @SerializedName("type") String type; - /** For interop events, this is the snapshot event ID. */ - @SerializedName("v1_event_id") - String v1EventId; - StripeResponseGetter responseGetter; @Override diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/Adjustment.java b/src/main/java/com/stripe/model/v2/moneymanagement/Adjustment.java index 6c3003f3991..25cf1b6224c 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/Adjustment.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/Adjustment.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import lombok.EqualsAndHashCode; import lombok.Getter; @@ -111,4 +110,25 @@ public static class AdjustedFlow extends StripeObject { @SerializedName("type") String type; } + + /** The amount of the Adjustment. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/CurrencyConversion.java b/src/main/java/com/stripe/model/v2/moneymanagement/CurrencyConversion.java new file mode 100644 index 00000000000..1e97ae3b232 --- /dev/null +++ b/src/main/java/com/stripe/model/v2/moneymanagement/CurrencyConversion.java @@ -0,0 +1,119 @@ +// File generated from our OpenAPI spec +package com.stripe.model.v2.moneymanagement; + +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; + +/** + * The CurrencyConversion object. Contains details such as the amount debited and credited and the + * FinancialAccount the CurrencyConversion was performed on. + */ +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class CurrencyConversion extends StripeObject implements HasId { + /** The time the CurrencyConversion was created at. */ + @SerializedName("created") + Instant created; + + /** The exchange rate used when processing the CurrencyConversion. */ + @SerializedName("exchange_rate") + String exchangeRate; + + /** The FinancialAccount the CurrencyConversion was performed on. */ + @SerializedName("financial_account") + String financialAccount; + + /** The from block containing what was debited. */ + @SerializedName("from") + From from; + + /** The id of the CurrencyConversion. */ + @Getter(onMethod_ = {@Override}) + @SerializedName("id") + String id; + + /** If the CurrencyConversion was performed in livemode or not. */ + @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.money_management.currency_conversion}. + */ + @SerializedName("object") + String object; + + /** The to block containing what was credited. */ + @SerializedName("to") + To to; + + /** The from block containing what was debited. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class From extends StripeObject { + /** Amount object. */ + @SerializedName("amount") + Amount amount; + + /** Amount object. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + } + + /** The to block containing what was credited. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class To extends StripeObject { + /** Amount object. */ + @SerializedName("amount") + Amount amount; + + /** Amount object. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + } +} 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 a6777cc90a9..a02e0dfa787 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import java.util.List; import java.util.Map; @@ -118,15 +117,87 @@ public class FinancialAccount extends StripeObject implements HasId { public static class Balance extends StripeObject { /** Balance that can be used for money movement. */ @SerializedName("available") - Map available; + Map available; /** Balance of inbound funds that will later transition to the {@code available} balance. */ @SerializedName("inbound_pending") - Map inboundPending; + Map inboundPending; /** Balance of funds that are being used for a pending outbound money movement. */ @SerializedName("outbound_pending") - Map outboundPending; + Map outboundPending; + + /** + * For more details about Available, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Available extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + + /** + * For more details about InboundPending, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class InboundPending extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + + /** + * For more details about OutboundPending, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class OutboundPending extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/InboundTransfer.java b/src/main/java/com/stripe/model/v2/moneymanagement/InboundTransfer.java index 4816f0ba479..56e054e8aa0 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/InboundTransfer.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/InboundTransfer.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import java.util.List; import java.util.Map; @@ -75,6 +74,27 @@ public class InboundTransfer extends StripeObject implements HasId { @SerializedName("transfer_history") List transferHistory; + /** The amount in specified currency that will land in the FinancialAccount balance. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + /** A nested object containing information about the origin of the InboundTransfer. */ @Getter @Setter @@ -82,12 +102,33 @@ public class InboundTransfer extends StripeObject implements HasId { public static class From extends StripeObject { /** The amount in specified currency that was debited from the Payment Method. */ @SerializedName("debited") - Amount debited; + Debited debited; /** The Payment Method object used to create the InboundTransfer. */ @SerializedName("payment_method") PaymentMethod paymentMethod; + /** The amount in specified currency that was debited from the Payment Method. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Debited extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + /** The Payment Method object used to create the InboundTransfer. */ @Getter @Setter @@ -113,11 +154,32 @@ public static class PaymentMethod extends StripeObject { public static class To extends StripeObject { /** The amount by which the FinancialAccount balance is credited. */ @SerializedName("credited") - Amount credited; + Credited credited; /** The FinancialAccount that funds will land in. */ @SerializedName("financial_account") String financialAccount; + + /** The amount by which the FinancialAccount balance is credited. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Credited extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPayment.java b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPayment.java index 0ac3d10e5a3..675d96229d0 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPayment.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPayment.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import java.util.Map; import lombok.EqualsAndHashCode; @@ -150,6 +149,27 @@ public class OutboundPayment extends StripeObject implements HasId { @SerializedName("trace_id") TraceId traceId; + /** The "presentment amount" for the OutboundPayment. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + /** Delivery options to be used to send the OutboundPayment. */ @Getter @Setter @@ -171,11 +191,32 @@ public static class DeliveryOptions extends StripeObject { public static class From extends StripeObject { /** The monetary amount debited from the sender, only set on responses. */ @SerializedName("debited") - Amount debited; + Debited debited; /** The FinancialAccount that funds were pulled from. */ @SerializedName("financial_account") String financialAccount; + + /** The monetary amount debited from the sender, only set on responses. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Debited extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** Details about the OutboundPayment notification settings for recipient. */ @@ -287,7 +328,7 @@ public static class StatusTransitions extends StripeObject { public static class To extends StripeObject { /** The monetary amount being credited to the destination. */ @SerializedName("credited") - Amount credited; + Credited credited; /** The payout method which the OutboundPayment uses to send payout. */ @SerializedName("payout_method") @@ -296,6 +337,27 @@ public static class To extends StripeObject { /** To which account the OutboundPayment is sent. */ @SerializedName("recipient") String recipient; + + /** The monetary amount being credited to the destination. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Credited extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPaymentQuote.java b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPaymentQuote.java index aedc34af7ed..1c80c6d4cac 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPaymentQuote.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPaymentQuote.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import java.util.List; import java.util.Map; @@ -72,6 +71,27 @@ public class OutboundPaymentQuote extends StripeObject implements HasId { @SerializedName("to") To to; + /** The "presentment amount" for the OutboundPaymentQuote. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + /** Delivery options to be used to send the OutboundPayment. */ @Getter @Setter @@ -106,6 +126,27 @@ public static class EstimatedFee extends StripeObject { */ @SerializedName("type") String type; + + /** The fee amount for corresponding fee type. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** Details about the sender of an OutboundPaymentQuote. */ @@ -115,11 +156,32 @@ public static class EstimatedFee extends StripeObject { public static class From extends StripeObject { /** The monetary amount debited from the sender, only set on responses. */ @SerializedName("debited") - Amount debited; + Debited debited; /** The FinancialAccount that funds were pulled from. */ @SerializedName("financial_account") String financialAccount; + + /** The monetary amount debited from the sender, only set on responses. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Debited extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** The underlying FXQuote details for the OutboundPaymentQuote. */ @@ -181,7 +243,7 @@ public static class Rate extends StripeObject { public static class To extends StripeObject { /** The monetary amount being credited to the destination. */ @SerializedName("credited") - Amount credited; + Credited credited; /** The payout method which the OutboundPayment uses to send payout. */ @SerializedName("payout_method") @@ -190,5 +252,26 @@ public static class To extends StripeObject { /** To which account the OutboundPayment is sent. */ @SerializedName("recipient") String recipient; + + /** The monetary amount being credited to the destination. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Credited extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } } diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundTransfer.java b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundTransfer.java index addbaf4aea1..47ae8673e6f 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundTransfer.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundTransfer.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import java.util.Map; import lombok.EqualsAndHashCode; @@ -139,6 +138,27 @@ public class OutboundTransfer extends StripeObject implements HasId { @SerializedName("trace_id") TraceId traceId; + /** The "presentment amount" for the OutboundTransfer. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + /** Delivery options to be used to send the OutboundTransfer. */ @Getter @Setter @@ -160,11 +180,32 @@ public static class DeliveryOptions extends StripeObject { public static class From extends StripeObject { /** The monetary amount debited from the sender, only set on responses. */ @SerializedName("debited") - Amount debited; + Debited debited; /** The FinancialAccount that funds were pulled from. */ @SerializedName("financial_account") String financialAccount; + + /** The monetary amount debited from the sender, only set on responses. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Debited extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** Status details for an OutboundTransfer in a {@code failed} or {@code returned} state. */ @@ -260,11 +301,32 @@ public static class StatusTransitions extends StripeObject { public static class To extends StripeObject { /** The monetary amount being credited to the destination. */ @SerializedName("credited") - Amount credited; + Credited credited; /** The payout method which the OutboundTransfer uses to send payout. */ @SerializedName("payout_method") String payoutMethod; + + /** The monetary amount being credited to the destination. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Credited extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** 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 8956aea803b..2d5919f6972 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import lombok.EqualsAndHashCode; import lombok.Getter; @@ -49,7 +48,7 @@ public class ReceivedCredit extends StripeObject implements HasId { /** The amount and currency of the original/external credit request. */ @SerializedName("external_amount") - Amount externalAmount; + ExternalAmount externalAmount; /** Financial Account ID on which funds for ReceivedCredit were received. */ @SerializedName("financial_account") @@ -110,6 +109,27 @@ public class ReceivedCredit extends StripeObject implements HasId { @SerializedName("type") String type; + /** The amount and currency of the ReceivedCredit. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + /** * This object stores details about the originating Stripe transaction that resulted in the * ReceivedCredit. Present if {@code type} field value is {@code balance_transfer}. @@ -288,6 +308,27 @@ public static class UsBankAccount extends StripeObject { } } + /** The amount and currency of the original/external credit request. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class ExternalAmount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + /** * This hash contains detailed information that elaborates on the specific status of the * ReceivedCredit. e.g the reason behind a failure if the status is marked as {@code failed}. diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java index c23eef84c87..f3b59a9b7e7 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import lombok.EqualsAndHashCode; import lombok.Getter; @@ -39,7 +38,7 @@ public class ReceivedDebit extends StripeObject implements HasId { /** The amount and currency of the original/external debit request. */ @SerializedName("external_amount") - Amount externalAmount; + ExternalAmount externalAmount; /** Financial Account on which funds for ReceivedDebit were debited. */ @SerializedName("financial_account") @@ -95,6 +94,27 @@ public class ReceivedDebit extends StripeObject implements HasId { @SerializedName("type") String type; + /** Amount and currency of the ReceivedDebit. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + /** * This object stores details about the originating banking transaction that resulted in the * ReceivedDebit. Present if {@code type} field value is {@code bank_transfer}. @@ -154,6 +174,27 @@ public static class UsBankAccount extends StripeObject { } } + /** The amount and currency of the original/external debit request. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class ExternalAmount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + /** Detailed information about the status of the ReceivedDebit. */ @Getter @Setter 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 1cad83d755f..9e276469389 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/Transaction.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/Transaction.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import lombok.EqualsAndHashCode; import lombok.Getter; @@ -94,6 +93,27 @@ public class Transaction extends StripeObject implements HasId { @SerializedName("status_transitions") StatusTransitions statusTransitions; + /** The amount of the Transaction. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Amount extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + /** * The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to * sum of its TransactionEntries that have {@code effective_at}s in the past. @@ -104,15 +124,78 @@ public class Transaction extends StripeObject implements HasId { public static class BalanceImpact extends StripeObject { /** Impact to the available balance. */ @SerializedName("available") - Amount available; + Available available; /** Impact to the inbound_pending balance. */ @SerializedName("inbound_pending") - Amount inboundPending; + InboundPending inboundPending; /** Impact to the outbound_pending balance. */ @SerializedName("outbound_pending") - Amount outboundPending; + OutboundPending outboundPending; + + /** Impact to the available balance. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Available extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + + /** Impact to the inbound_pending balance. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class InboundPending extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + + /** Impact to the outbound_pending balance. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class OutboundPending extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** Details about the Flow object that created the Transaction. */ 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 87d1e6f2e15..c5730e80df6 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/TransactionEntry.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/TransactionEntry.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; -import com.stripe.v2.Amount; import java.time.Instant; import lombok.EqualsAndHashCode; import lombok.Getter; @@ -69,15 +68,78 @@ public class TransactionEntry extends StripeObject implements HasId { public static class BalanceImpact extends StripeObject { /** Impact to the available balance. */ @SerializedName("available") - Amount available; + Available available; /** Impact to the inbound_pending balance. */ @SerializedName("inbound_pending") - Amount inboundPending; + InboundPending inboundPending; /** Impact to the outbound_pending balance. */ @SerializedName("outbound_pending") - Amount outboundPending; + OutboundPending outboundPending; + + /** Impact to the available balance. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Available extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + + /** Impact to the inbound_pending balance. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class InboundPending extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } + + /** Impact to the outbound_pending balance. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class OutboundPending extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } } /** Details copied from the transaction that this TransactionEntry belongs to. */ 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 96b5161e84f..41789f39d01 100644 --- a/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java +++ b/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java @@ -4,9 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; 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; @@ -19,15 +17,11 @@ public class OffSessionPayment extends StripeObject implements HasId { /** The amount available to be captured. */ @SerializedName("amount_capturable") - Amount amountCapturable; - - /** Provides industry-specific information about the amount. */ - @SerializedName("amount_details") - AmountDetails amountDetails; + AmountCapturable amountCapturable; /** The “presentment amount” to be collected from the customer. */ @SerializedName("amount_requested") - Amount amountRequested; + AmountRequested amountRequested; /** * The frequency of the underlying payment. @@ -41,14 +35,6 @@ public class OffSessionPayment extends StripeObject implements HasId { @SerializedName("capture") Capture capture; - /** - * Whether the OffSessionPayment should be captured automatically or manually. - * - *

One of {@code automatic}, or {@code manual}. - */ - @SerializedName("capture_method") - String captureMethod; - /** ID of the owning compartment. */ @SerializedName("compartment_id") String compartmentId; @@ -94,10 +80,10 @@ public class OffSessionPayment extends StripeObject implements HasId { Boolean livemode; /** - * Set of key-value pairs that you can - * attach to an object. This can be useful for storing additional information about the object in - * a structured format. Learn more about storing + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Learn more about storing * information in metadata. */ @SerializedName("metadata") @@ -164,106 +150,52 @@ public class OffSessionPayment extends StripeObject implements HasId { /** * The data that automatically creates a Transfer after the payment finalizes. Learn more about - * the use case for connected + * the use case for connected * accounts. */ @SerializedName("transfer_data") TransferData transferData; - /** Provides industry-specific information about the amount. */ + /** The amount available to be captured. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class AmountDetails extends StripeObject { - /** The amount the total transaction was discounted for. */ - @SerializedName("discount_amount") - Long discountAmount; - + public static class AmountCapturable extends StripeObject { /** - * A list of line items, each containing information about a product in the PaymentIntent. There - * is a maximum of 100 line items. + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. */ - @SerializedName("line_items") - List lineItems; + @SerializedName("currency") + String currency; - /** Contains information about the shipping portion of the amount. */ - @SerializedName("shipping") - Shipping shipping; + /** + * A non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + } - /** Contains information about the tax portion of the amount. */ - @SerializedName("tax") - Tax tax; + /** The “presentment amount” to be collected from the customer. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class AmountRequested extends StripeObject { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; /** - * For more details about LineItem, please refer to the API Reference. + * A non-negative integer representing how much to charge in the smallest currency unit. */ - @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; - - /** 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; - } + @SerializedName("value") + Long value; } /** Details about the capture configuration for the OffSessionPayment. */ @@ -321,7 +253,7 @@ public static class RetryDetails extends StripeObject { /** * The data that automatically creates a Transfer after the payment finalizes. Learn more about - * the use case for connected + * the use case for connected * accounts. */ @Getter @@ -332,7 +264,7 @@ public static class TransferData extends StripeObject { * The amount transferred to the destination account. This transfer will occur automatically * after the payment succeeds. If no amount is specified, by default the entire payment amount * is transferred to the destination account. The amount must be less than or equal to the amount_requested, + * href="https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested">amount_requested, * and must be a positive integer representing how much to transfer in the smallest currency * unit (e.g., 100 cents to charge $1.00). */ 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 2e7c2e2e600..a3b44c9d03e 100644 --- a/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java @@ -175,7 +175,7 @@ public Builder setType(ActionServiceCreateParams.Type type) { public static class CreditGrant { /** Required. The amount of the credit grant. */ @SerializedName("amount") - com.stripe.param.v2.billing.ActionServiceCreateParams.CreditGrant.Amount amount; + Amount amount; /** Required. Defines the scope where the credit grant is applicable. */ @SerializedName("applicability_config") @@ -210,7 +210,7 @@ public static class CreditGrant { Long priority; private CreditGrant( - com.stripe.param.v2.billing.ActionServiceCreateParams.CreditGrant.Amount amount, + Amount amount, ApplicabilityConfig applicabilityConfig, Category category, ExpiryConfig expiryConfig, @@ -231,7 +231,7 @@ public static Builder builder() { } public static class Builder { - private com.stripe.param.v2.billing.ActionServiceCreateParams.CreditGrant.Amount amount; + private Amount amount; private ApplicabilityConfig applicabilityConfig; @@ -346,7 +346,7 @@ public static class Amount { /** The monetary amount of the credit grant. Required if {@code type} is {@code monetary}. */ @SerializedName("monetary") - com.stripe.v2.Amount monetary; + Monetary monetary; /** * Required. The type of the credit grant amount. We currently support {@code @@ -358,7 +358,7 @@ public static class Amount { private Amount( CustomPricingUnit customPricingUnit, Map extraParams, - com.stripe.v2.Amount monetary, + Monetary monetary, Type type) { this.customPricingUnit = customPricingUnit; this.extraParams = extraParams; @@ -375,7 +375,7 @@ public static class Builder { private Map extraParams; - private com.stripe.v2.Amount monetary; + private Monetary monetary; private Type type; @@ -426,7 +426,7 @@ public Builder putAllExtraParam(Map map) { /** * The monetary amount of the credit grant. Required if {@code type} is {@code monetary}. */ - public Builder setMonetary(com.stripe.v2.Amount monetary) { + public Builder setMonetary(ActionServiceCreateParams.CreditGrant.Amount.Monetary monetary) { this.monetary = monetary; return this; } @@ -535,6 +535,106 @@ public Builder setValue(String value) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Monetary { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Monetary(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public ActionServiceCreateParams.CreditGrant.Amount.Monetary build() { + return new ActionServiceCreateParams.CreditGrant.Amount.Monetary( + this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 ActionServiceCreateParams.CreditGrant.Amount.Monetary#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 ActionServiceCreateParams.CreditGrant.Amount.Monetary#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("custom_pricing_unit") CUSTOM_PRICING_UNIT("custom_pricing_unit"), @@ -869,7 +969,7 @@ public enum Category implements ApiRequestParams.EnumParam { public static class CreditGrantPerTenant { /** Required. The amount of the credit grant. */ @SerializedName("amount") - com.stripe.param.v2.billing.ActionServiceCreateParams.CreditGrantPerTenant.Amount amount; + Amount amount; /** Required. Defines the scope where the credit grant is applicable. */ @SerializedName("applicability_config") @@ -908,7 +1008,7 @@ public static class CreditGrantPerTenant { Long priority; private CreditGrantPerTenant( - com.stripe.param.v2.billing.ActionServiceCreateParams.CreditGrantPerTenant.Amount amount, + Amount amount, ApplicabilityConfig applicabilityConfig, Category category, ExpiryConfig expiryConfig, @@ -931,8 +1031,7 @@ public static Builder builder() { } public static class Builder { - private com.stripe.param.v2.billing.ActionServiceCreateParams.CreditGrantPerTenant.Amount - amount; + private Amount amount; private ApplicabilityConfig applicabilityConfig; @@ -1058,7 +1157,7 @@ public static class Amount { /** The monetary amount of the credit grant. Required if {@code type} is {@code monetary}. */ @SerializedName("monetary") - com.stripe.v2.Amount monetary; + Monetary monetary; /** * Required. The type of the credit grant amount. We currently support {@code @@ -1070,7 +1169,7 @@ public static class Amount { private Amount( CustomPricingUnit customPricingUnit, Map extraParams, - com.stripe.v2.Amount monetary, + Monetary monetary, Type type) { this.customPricingUnit = customPricingUnit; this.extraParams = extraParams; @@ -1087,7 +1186,7 @@ public static class Builder { private Map extraParams; - private com.stripe.v2.Amount monetary; + private Monetary monetary; private Type type; @@ -1139,7 +1238,8 @@ public Builder putAllExtraParam(Map map) { /** * The monetary amount of the credit grant. Required if {@code type} is {@code monetary}. */ - public Builder setMonetary(com.stripe.v2.Amount monetary) { + public Builder setMonetary( + ActionServiceCreateParams.CreditGrantPerTenant.Amount.Monetary monetary) { this.monetary = monetary; return this; } @@ -1248,6 +1348,108 @@ public Builder setValue(String value) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Monetary { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Monetary(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public ActionServiceCreateParams.CreditGrantPerTenant.Amount.Monetary build() { + return new ActionServiceCreateParams.CreditGrantPerTenant.Amount.Monetary( + this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * ActionServiceCreateParams.CreditGrantPerTenant.Amount.Monetary#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 + * ActionServiceCreateParams.CreditGrantPerTenant.Amount.Monetary#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("custom_pricing_unit") CUSTOM_PRICING_UNIT("custom_pricing_unit"), 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 216a38bbeb0..a4ae606600f 100644 --- a/src/main/java/com/stripe/param/v2/billing/CollectionSettingCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CollectionSettingCreateParams.java @@ -909,10 +909,10 @@ public static class Card { /** * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to * automatically prompt your customers for authentication based on risk level and other requirements. + * href="https://docs.stripe.com/strong-customer-authentication">other requirements. * However, if you wish to request 3D Secure based on logic from your own fraud engine, * provide this option. Read our guide on manually + * href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually * requesting 3D Secure for more information on how this configuration interacts with * Radar and our SCA Engine. */ @@ -996,10 +996,10 @@ public Builder setNetwork(String network) { /** * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to * automatically prompt your customers for authentication based on risk level and other - * requirements. However, if you wish to request 3D Secure based on logic from your own - * fraud engine, provide this option. Read our guide on manually + * href="https://docs.stripe.com/strong-customer-authentication">other requirements. + * However, if you wish to request 3D Secure based on logic from your own fraud engine, + * provide this option. Read our guide on manually * requesting 3D Secure for more information on how this configuration interacts with * Radar and our SCA Engine. */ 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 e5b51c5d994..b4eb433b47e 100644 --- a/src/main/java/com/stripe/param/v2/billing/CollectionSettingUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CollectionSettingUpdateParams.java @@ -972,10 +972,10 @@ public static class Card { /** * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to * automatically prompt your customers for authentication based on risk level and other requirements. + * href="https://docs.stripe.com/strong-customer-authentication">other requirements. * However, if you wish to request 3D Secure based on logic from your own fraud engine, * provide this option. Read our guide on manually + * href="https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds">manually * requesting 3D Secure for more information on how this configuration interacts with * Radar and our SCA Engine. */ @@ -1068,10 +1068,10 @@ public Builder setNetwork(EmptyParam network) { /** * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to * automatically prompt your customers for authentication based on risk level and other - * requirements. However, if you wish to request 3D Secure based on logic from your own - * fraud engine, provide this option. Read our guide on manually + * href="https://docs.stripe.com/strong-customer-authentication">other requirements. + * However, if you wish to request 3D Secure based on logic from your own fraud engine, + * provide this option. Read our guide on manually * requesting 3D Secure for more information on how this configuration interacts with * Radar and our SCA Engine. */ 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 b829c6b8b83..e6d8d970123 100644 --- a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; -import com.stripe.v2.Amount; import java.time.Instant; import java.util.ArrayList; import java.util.HashMap; @@ -15,6 +14,10 @@ @Getter @EqualsAndHashCode(callSuper = false) public class AccountCreateParams extends ApiRequestParams { + /** The account token generated by the account token api. */ + @SerializedName("account_token") + String accountToken; + /** * An Account Configuration which allows the Account to take on a key persona across Stripe * products. @@ -72,6 +75,7 @@ public class AccountCreateParams extends ApiRequestParams { Map metadata; private AccountCreateParams( + String accountToken, Configuration configuration, String contactEmail, Dashboard dashboard, @@ -81,6 +85,7 @@ private AccountCreateParams( Identity identity, List include, Map metadata) { + this.accountToken = accountToken; this.configuration = configuration; this.contactEmail = contactEmail; this.dashboard = dashboard; @@ -97,6 +102,8 @@ public static Builder builder() { } public static class Builder { + private String accountToken; + private Configuration configuration; private String contactEmail; @@ -118,6 +125,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountCreateParams build() { return new AccountCreateParams( + this.accountToken, this.configuration, this.contactEmail, this.dashboard, @@ -129,6 +137,12 @@ public AccountCreateParams build() { this.metadata); } + /** The account token generated by the account token api. */ + public Builder setAccountToken(String accountToken) { + this.accountToken = accountToken; + return this; + } + /** * An Account Configuration which allows the Account to take on a key persona across Stripe * products. @@ -1810,9 +1824,9 @@ public static class AutomaticIndirectTax { String ipAddress; /** - * The data source used to identify the customer's tax location - defaults to - * 'identity_address'. Will only be used for automatic tax calculation on the customer's - * Invoices and Subscriptions. + * The data source used to identify the customer's tax location - defaults to {@code + * identity_address}. Will only be used for automatic tax calculation on the customer's + * Invoices and Subscriptions. This behavior is now deprecated for new users. */ @SerializedName("location_source") LocationSource locationSource; @@ -1897,9 +1911,9 @@ public Builder setIpAddress(String ipAddress) { } /** - * The data source used to identify the customer's tax location - defaults to - * 'identity_address'. Will only be used for automatic tax calculation on the customer's - * Invoices and Subscriptions. + * The data source used to identify the customer's tax location - defaults to {@code + * identity_address}. Will only be used for automatic tax calculation on the customer's + * Invoices and Subscriptions. This behavior is now deprecated for new users. */ public Builder setLocationSource( AccountCreateParams.Configuration.Customer.AutomaticIndirectTax.LocationSource @@ -2428,8 +2442,7 @@ public static class Capabilities { /** * Generates requirements for enabling automatic indirect tax calculation on this customer's * invoices or subscriptions. Recommended to request this capability if planning to enable - * automatic tax calculation on this customer's invoices or subscriptions. Uses the {@code - * location_source} field. + * automatic tax calculation on this customer's invoices or subscriptions. */ @SerializedName("automatic_indirect_tax") AutomaticIndirectTax automaticIndirectTax; @@ -2469,7 +2482,7 @@ public AccountCreateParams.Configuration.Customer.Capabilities build() { * Generates requirements for enabling automatic indirect tax calculation on this * customer's invoices or subscriptions. Recommended to request this capability if * planning to enable automatic tax calculation on this customer's invoices or - * subscriptions. Uses the {@code location_source} field. + * subscriptions. */ public Builder setAutomaticIndirectTax( AccountCreateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax @@ -2882,6 +2895,10 @@ public static class Merchant { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Settings specific to Konbini payments on the account. */ + @SerializedName("konbini_payments") + KonbiniPayments konbiniPayments; + /** * The merchant category code for the Merchant Configuration. MCCs are used to classify * businesses based on the goods or services they provide. @@ -2889,6 +2906,10 @@ public static class Merchant { @SerializedName("mcc") String mcc; + /** Settings for the default text that appears on statements for language variations. */ + @SerializedName("script_statement_descriptor") + ScriptStatementDescriptor scriptStatementDescriptor; + /** Statement descriptor. */ @SerializedName("statement_descriptor") StatementDescriptor statementDescriptor; @@ -2903,7 +2924,9 @@ private Merchant( Capabilities capabilities, CardPayments cardPayments, Map extraParams, + KonbiniPayments konbiniPayments, String mcc, + ScriptStatementDescriptor scriptStatementDescriptor, StatementDescriptor statementDescriptor, Support support) { this.bacsDebitPayments = bacsDebitPayments; @@ -2911,7 +2934,9 @@ private Merchant( this.capabilities = capabilities; this.cardPayments = cardPayments; this.extraParams = extraParams; + this.konbiniPayments = konbiniPayments; this.mcc = mcc; + this.scriptStatementDescriptor = scriptStatementDescriptor; this.statementDescriptor = statementDescriptor; this.support = support; } @@ -2931,8 +2956,12 @@ public static class Builder { private Map extraParams; + private KonbiniPayments konbiniPayments; + private String mcc; + private ScriptStatementDescriptor scriptStatementDescriptor; + private StatementDescriptor statementDescriptor; private Support support; @@ -2945,7 +2974,9 @@ public AccountCreateParams.Configuration.Merchant build() { this.capabilities, this.cardPayments, this.extraParams, + this.konbiniPayments, this.mcc, + this.scriptStatementDescriptor, this.statementDescriptor, this.support); } @@ -3008,6 +3039,13 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Settings specific to Konbini payments on the account. */ + public Builder setKonbiniPayments( + AccountCreateParams.Configuration.Merchant.KonbiniPayments konbiniPayments) { + this.konbiniPayments = konbiniPayments; + return this; + } + /** * The merchant category code for the Merchant Configuration. MCCs are used to classify * businesses based on the goods or services they provide. @@ -3017,6 +3055,14 @@ public Builder setMcc(String mcc) { return this; } + /** Settings for the default text that appears on statements for language variations. */ + public Builder setScriptStatementDescriptor( + AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor + scriptStatementDescriptor) { + this.scriptStatementDescriptor = scriptStatementDescriptor; + return this; + } + /** Statement descriptor. */ public Builder setStatementDescriptor( AccountCreateParams.Configuration.Merchant.StatementDescriptor statementDescriptor) { @@ -7760,11 +7806,612 @@ public Builder setAvsFailure(Boolean avsFailure) { } /** - * Whether Stripe automatically declines charges with an incorrect CVC. This setting - * only applies when a CVC is provided and it fails bank verification. + * Whether Stripe automatically declines charges with an incorrect CVC. This setting + * only applies when a CVC is provided and it fails bank verification. + */ + public Builder setCvcFailure(Boolean cvcFailure) { + this.cvcFailure = cvcFailure; + 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 + * AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn#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 + * AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class KonbiniPayments { + /** + * 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; + + /** Support for Konbini payments. */ + @SerializedName("support") + Support support; + + private KonbiniPayments(Map extraParams, Support support) { + this.extraParams = extraParams; + this.support = support; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Support support; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.KonbiniPayments build() { + return new AccountCreateParams.Configuration.Merchant.KonbiniPayments( + this.extraParams, this.support); + } + + /** + * 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 AccountCreateParams.Configuration.Merchant.KonbiniPayments#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 AccountCreateParams.Configuration.Merchant.KonbiniPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Support for Konbini payments. */ + public Builder setSupport( + AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support support) { + this.support = support; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Support { + /** Support email address for Konbini payments. */ + @SerializedName("email") + String email; + + /** + * 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; + + /** Support hours for Konbini payments. */ + @SerializedName("hours") + Hours hours; + + /** Support phone number for Konbini payments. */ + @SerializedName("phone") + String phone; + + private Support( + String email, Map extraParams, Hours hours, String phone) { + this.email = email; + this.extraParams = extraParams; + this.hours = hours; + this.phone = phone; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String email; + + private Map extraParams; + + private Hours hours; + + private String phone; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support build() { + return new AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support( + this.email, this.extraParams, this.hours, this.phone); + } + + /** Support email address for Konbini payments. */ + public Builder setEmail(String email) { + this.email = email; + 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 + * AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support#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 + * AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Support hours for Konbini payments. */ + public Builder setHours( + AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support.Hours hours) { + this.hours = hours; + return this; + } + + /** Support phone number for Konbini payments. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Hours { + /** Support hours end time (JST time of day) for in {@code HH:MM} format. */ + @SerializedName("end_time") + String endTime; + + /** + * 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; + + /** Support hours start time (JST time of day) for in {@code HH:MM} format. */ + @SerializedName("start_time") + String startTime; + + private Hours(String endTime, Map extraParams, String startTime) { + this.endTime = endTime; + this.extraParams = extraParams; + this.startTime = startTime; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String endTime; + + private Map extraParams; + + private String startTime; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support.Hours + build() { + return new AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support.Hours( + this.endTime, this.extraParams, this.startTime); + } + + /** Support hours end time (JST time of day) for in {@code HH:MM} format. */ + public Builder setEndTime(String endTime) { + this.endTime = endTime; + 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 + * AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support.Hours#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 + * AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support.Hours#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Support hours start time (JST time of day) for in {@code HH:MM} format. */ + public Builder setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptStatementDescriptor { + /** + * 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 Kana variation of statement_descriptor used for charges in Japan. Japanese statement + * descriptors have special + * requirements. + */ + @SerializedName("kana") + Kana kana; + + /** + * The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement + * descriptors have special + * requirements. + */ + @SerializedName("kanji") + Kanji kanji; + + private ScriptStatementDescriptor(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Kana kana; + + private Kanji kanji; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor build() { + return new AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor( + this.extraParams, this.kana, this.kanji); + } + + /** + * 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 + * AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor#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 + * AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor#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 Kana variation of statement_descriptor used for charges in Japan. Japanese + * statement descriptors have special + * requirements. + */ + public Builder setKana( + AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana kana) { + this.kana = kana; + return this; + } + + /** + * The Kanji variation of statement_descriptor used for charges in Japan. Japanese + * statement descriptors have special + * requirements. + */ + public Builder setKanji( + AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji kanji) { + this.kanji = kanji; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the statement_descriptor text to limit the full descriptor to 22 characters. + * For more information about statement descriptors and their requirements, see the + * Merchant Configuration settings documentation. + */ + @SerializedName("descriptor") + String descriptor; + + /** + * 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; + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for + * the dynamic part of the descriptor, keep this text short. If you don’t specify this + * value, statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + @SerializedName("prefix") + String prefix; + + private Kana(String descriptor, Map extraParams, String prefix) { + this.descriptor = descriptor; + this.extraParams = extraParams; + this.prefix = prefix; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String descriptor; + + private Map extraParams; + + private String prefix; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana + build() { + return new AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana( + this.descriptor, this.extraParams, this.prefix); + } + + /** + * The default text that appears on statements for non-card charges outside of Japan. + * For card charges, if you don’t set a statement_descriptor_prefix, this text is also + * used as the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, + * we truncate the statement_descriptor text to limit the full descriptor to 22 + * characters. For more information about statement descriptors and their requirements, + * see the Merchant Configuration settings documentation. + */ + public Builder setDescriptor(String descriptor) { + this.descriptor = descriptor; + 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 + * AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana#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 + * AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space + * for the dynamic part of the descriptor, keep this text short. If you don’t specify + * this value, statement_descriptor is used as the prefix. For more information about + * statement descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + public Builder setPrefix(String prefix) { + this.prefix = prefix; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the statement_descriptor text to limit the full descriptor to 22 characters. + * For more information about statement descriptors and their requirements, see the + * Merchant Configuration settings documentation. + */ + @SerializedName("descriptor") + String descriptor; + + /** + * 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; + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for + * the dynamic part of the descriptor, keep this text short. If you don’t specify this + * value, statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + @SerializedName("prefix") + String prefix; + + private Kanji(String descriptor, Map extraParams, String prefix) { + this.descriptor = descriptor; + this.extraParams = extraParams; + this.prefix = prefix; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String descriptor; + + private Map extraParams; + + private String prefix; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji + build() { + return new AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji( + this.descriptor, this.extraParams, this.prefix); + } + + /** + * The default text that appears on statements for non-card charges outside of Japan. + * For card charges, if you don’t set a statement_descriptor_prefix, this text is also + * used as the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, + * we truncate the statement_descriptor text to limit the full descriptor to 22 + * characters. For more information about statement descriptors and their requirements, + * see the Merchant Configuration settings documentation. */ - public Builder setCvcFailure(Boolean cvcFailure) { - this.cvcFailure = cvcFailure; + public Builder setDescriptor(String descriptor) { + this.descriptor = descriptor; return this; } @@ -7772,8 +8419,8 @@ public Builder setCvcFailure(Boolean cvcFailure) { * 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 - * AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -7787,8 +8434,8 @@ public Builder putExtraParam(String key, Object value) { * 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 - * AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -7797,6 +8444,19 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space + * for the dynamic part of the descriptor, keep this text short. If you don’t specify + * this value, statement_descriptor is used as the prefix. For more information about + * statement descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + public Builder setPrefix(String prefix) { + this.prefix = prefix; + return this; + } } } } @@ -9678,6 +10338,10 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) public static class HoldsCurrencies { + /** Can hold storage-type funds on Stripe in EUR. */ + @SerializedName("eur") + Eur eur; + /** * 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. @@ -9700,7 +10364,9 @@ public static class HoldsCurrencies { @SerializedName("usdc") Usdc usdc; - private HoldsCurrencies(Map extraParams, Gbp gbp, Usd usd, Usdc usdc) { + private HoldsCurrencies( + Eur eur, Map extraParams, Gbp gbp, Usd usd, Usdc usdc) { + this.eur = eur; this.extraParams = extraParams; this.gbp = gbp; this.usd = usd; @@ -9712,6 +10378,8 @@ public static Builder builder() { } public static class Builder { + private Eur eur; + private Map extraParams; private Gbp gbp; @@ -9723,7 +10391,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies build() { return new AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies( - this.extraParams, this.gbp, this.usd, this.usdc); + this.eur, this.extraParams, this.gbp, this.usd, this.usdc); + } + + /** Can hold storage-type funds on Stripe in EUR. */ + public Builder setEur( + AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Eur eur) { + this.eur = eur; + return this; } /** @@ -9778,6 +10453,88 @@ public Builder setUsdc( } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Eur { + /** + * 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. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; + + private Eur(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Eur + build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies + .Eur(this.extraParams, this.requested); + } + + /** + * 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 + * AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Eur#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 + * AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Eur#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. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Gbp { @@ -17114,7 +17871,8 @@ public AccountCreateParams.Identity.BusinessDetails.AnnualRevenue build() { } /** A non-negative integer representing the amount in the smallest currency unit. */ - public Builder setAmount(Amount amount) { + public Builder setAmount( + AccountCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount amount) { this.amount = amount; return this; } @@ -17156,6 +17914,108 @@ public Builder setFiscalYearEnd(String fiscalYearEnd) { return this; } } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount build() { + return new AccountCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount( + this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * AccountCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount#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 + * AccountCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } } @Getter @@ -18987,6 +19847,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ao_nif") AO_NIF("ao_nif"), + @SerializedName("ar_cuit") + AR_CUIT("ar_cuit"), + @SerializedName("at_fn") AT_FN("at_fn"), @@ -19241,7 +20104,8 @@ public AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue buil } /** A non-negative integer representing the amount in the smallest currency unit. */ - public Builder setAmount(Amount amount) { + public Builder setAmount( + AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount amount) { this.amount = amount; return this; } @@ -19276,6 +20140,109 @@ public Builder putAllExtraParam(Map map) { return this; } } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount + build() { + return new AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue + .Amount(this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount#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 + * AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } } @Getter @@ -22218,6 +23185,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ao_nif") AO_NIF("ao_nif"), + @SerializedName("ar_dni") + AR_DNI("ar_dni"), + @SerializedName("az_tin") AZ_TIN("az_tin"), @@ -23252,6 +24222,9 @@ public enum Include implements ApiRequestParams.EnumParam { @SerializedName("defaults") DEFAULTS("defaults"), + @SerializedName("future_requirements") + FUTURE_REQUIREMENTS("future_requirements"), + @SerializedName("identity") IDENTITY("identity"), diff --git a/src/main/java/com/stripe/param/v2/core/AccountRetrieveParams.java b/src/main/java/com/stripe/param/v2/core/AccountRetrieveParams.java index 4284e06bfd1..eb6ab020790 100644 --- a/src/main/java/com/stripe/param/v2/core/AccountRetrieveParams.java +++ b/src/main/java/com/stripe/param/v2/core/AccountRetrieveParams.java @@ -118,6 +118,9 @@ public enum Include implements ApiRequestParams.EnumParam { @SerializedName("defaults") DEFAULTS("defaults"), + @SerializedName("future_requirements") + FUTURE_REQUIREMENTS("future_requirements"), + @SerializedName("identity") IDENTITY("identity"), diff --git a/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java b/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java new file mode 100644 index 00000000000..b6910871de9 --- /dev/null +++ b/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java @@ -0,0 +1,10032 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.core; + +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; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class AccountTokenCreateParams extends ApiRequestParams { + /** + * The default contact email address for the Account. Required when configuring the account as a + * merchant or recipient. + */ + @SerializedName("contact_email") + String contactEmail; + + /** + * A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on + * any invoices sent to the Account. + */ + @SerializedName("display_name") + String displayName; + + /** + * 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. Information about the company, individual, and business represented + * by the Account. + */ + @SerializedName("identity") + Identity identity; + + private AccountTokenCreateParams( + String contactEmail, String displayName, Map extraParams, Identity identity) { + this.contactEmail = contactEmail; + this.displayName = displayName; + this.extraParams = extraParams; + this.identity = identity; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String contactEmail; + + private String displayName; + + private Map extraParams; + + private Identity identity; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams build() { + return new AccountTokenCreateParams( + this.contactEmail, this.displayName, this.extraParams, this.identity); + } + + /** + * The default contact email address for the Account. Required when configuring the account as a + * merchant or recipient. + */ + public Builder setContactEmail(String contactEmail) { + this.contactEmail = contactEmail; + return this; + } + + /** + * A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on + * any invoices sent to the Account. + */ + public Builder setDisplayName(String displayName) { + this.displayName = displayName; + 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 + * AccountTokenCreateParams#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 AccountTokenCreateParams#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. Information about the company, individual, and business + * represented by the Account. + */ + public Builder setIdentity(AccountTokenCreateParams.Identity identity) { + this.identity = identity; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Identity { + /** + * Attestations from the identity's key people, e.g. owners, executives, directors, + * representatives. + */ + @SerializedName("attestations") + Attestations attestations; + + /** Information about the company or business. */ + @SerializedName("business_details") + BusinessDetails businessDetails; + + /** The entity type. */ + @SerializedName("entity_type") + EntityType entityType; + + /** + * 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; + + /** Information about the person represented by the account. */ + @SerializedName("individual") + Individual individual; + + private Identity( + Attestations attestations, + BusinessDetails businessDetails, + EntityType entityType, + Map extraParams, + Individual individual) { + this.attestations = attestations; + this.businessDetails = businessDetails; + this.entityType = entityType; + this.extraParams = extraParams; + this.individual = individual; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Attestations attestations; + + private BusinessDetails businessDetails; + + private EntityType entityType; + + private Map extraParams; + + private Individual individual; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity build() { + return new AccountTokenCreateParams.Identity( + this.attestations, + this.businessDetails, + this.entityType, + this.extraParams, + this.individual); + } + + /** + * Attestations from the identity's key people, e.g. owners, executives, directors, + * representatives. + */ + public Builder setAttestations(AccountTokenCreateParams.Identity.Attestations attestations) { + this.attestations = attestations; + return this; + } + + /** Information about the company or business. */ + public Builder setBusinessDetails( + AccountTokenCreateParams.Identity.BusinessDetails businessDetails) { + this.businessDetails = businessDetails; + return this; + } + + /** The entity type. */ + public Builder setEntityType(AccountTokenCreateParams.Identity.EntityType entityType) { + this.entityType = entityType; + 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 + * AccountTokenCreateParams.Identity#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 AccountTokenCreateParams.Identity#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Information about the person represented by the account. */ + public Builder setIndividual(AccountTokenCreateParams.Identity.Individual individual) { + this.individual = individual; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Attestations { + /** + * This hash is used to attest that the directors information provided to Stripe is both + * current and correct; IP, date, and User Agent are expanded by Stripe. + */ + @SerializedName("directorship_declaration") + DirectorshipDeclaration directorshipDeclaration; + + /** + * 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; + + /** + * This hash is used to attest that the beneficial owner information provided to Stripe is + * both current and correct; IP, date, and User Agent are expanded by Stripe. + */ + @SerializedName("ownership_declaration") + OwnershipDeclaration ownershipDeclaration; + + /** Attestation that all Persons with a specific Relationship value have been provided. */ + @SerializedName("persons_provided") + PersonsProvided personsProvided; + + /** + * This hash is used to attest that the representative is authorized to act as the + * representative of their legal entity; IP, date, and User Agent are expanded by Stripe. + */ + @SerializedName("representative_declaration") + RepresentativeDeclaration representativeDeclaration; + + /** Attestations of accepted terms of service agreements. */ + @SerializedName("terms_of_service") + TermsOfService termsOfService; + + private Attestations( + DirectorshipDeclaration directorshipDeclaration, + Map extraParams, + OwnershipDeclaration ownershipDeclaration, + PersonsProvided personsProvided, + RepresentativeDeclaration representativeDeclaration, + TermsOfService termsOfService) { + this.directorshipDeclaration = directorshipDeclaration; + this.extraParams = extraParams; + this.ownershipDeclaration = ownershipDeclaration; + this.personsProvided = personsProvided; + this.representativeDeclaration = representativeDeclaration; + this.termsOfService = termsOfService; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private DirectorshipDeclaration directorshipDeclaration; + + private Map extraParams; + + private OwnershipDeclaration ownershipDeclaration; + + private PersonsProvided personsProvided; + + private RepresentativeDeclaration representativeDeclaration; + + private TermsOfService termsOfService; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations build() { + return new AccountTokenCreateParams.Identity.Attestations( + this.directorshipDeclaration, + this.extraParams, + this.ownershipDeclaration, + this.personsProvided, + this.representativeDeclaration, + this.termsOfService); + } + + /** + * This hash is used to attest that the directors information provided to Stripe is both + * current and correct; IP, date, and User Agent are expanded by Stripe. + */ + public Builder setDirectorshipDeclaration( + AccountTokenCreateParams.Identity.Attestations.DirectorshipDeclaration + directorshipDeclaration) { + this.directorshipDeclaration = directorshipDeclaration; + 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 AccountTokenCreateParams.Identity.Attestations#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 AccountTokenCreateParams.Identity.Attestations#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * This hash is used to attest that the beneficial owner information provided to Stripe is + * both current and correct; IP, date, and User Agent are expanded by Stripe. + */ + public Builder setOwnershipDeclaration( + AccountTokenCreateParams.Identity.Attestations.OwnershipDeclaration + ownershipDeclaration) { + this.ownershipDeclaration = ownershipDeclaration; + return this; + } + + /** Attestation that all Persons with a specific Relationship value have been provided. */ + public Builder setPersonsProvided( + AccountTokenCreateParams.Identity.Attestations.PersonsProvided personsProvided) { + this.personsProvided = personsProvided; + return this; + } + + /** + * This hash is used to attest that the representative is authorized to act as the + * representative of their legal entity; IP, date, and User Agent are expanded by Stripe. + */ + public Builder setRepresentativeDeclaration( + AccountTokenCreateParams.Identity.Attestations.RepresentativeDeclaration + representativeDeclaration) { + this.representativeDeclaration = representativeDeclaration; + return this; + } + + /** Attestations of accepted terms of service agreements. */ + public Builder setTermsOfService( + AccountTokenCreateParams.Identity.Attestations.TermsOfService termsOfService) { + this.termsOfService = termsOfService; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class DirectorshipDeclaration { + /** A boolean indicating if the directors information has been attested. */ + @SerializedName("attested") + Boolean attested; + + /** + * 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; + + private DirectorshipDeclaration(Boolean attested, Map extraParams) { + this.attested = attested; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean attested; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.DirectorshipDeclaration build() { + return new AccountTokenCreateParams.Identity.Attestations.DirectorshipDeclaration( + this.attested, this.extraParams); + } + + /** A boolean indicating if the directors information has been attested. */ + public Builder setAttested(Boolean attested) { + this.attested = attested; + 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 + * AccountTokenCreateParams.Identity.Attestations.DirectorshipDeclaration#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 + * AccountTokenCreateParams.Identity.Attestations.DirectorshipDeclaration#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class OwnershipDeclaration { + /** A boolean indicating if the beneficial owner information has been attested. */ + @SerializedName("attested") + Boolean attested; + + /** + * 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; + + private OwnershipDeclaration(Boolean attested, Map extraParams) { + this.attested = attested; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean attested; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.OwnershipDeclaration build() { + return new AccountTokenCreateParams.Identity.Attestations.OwnershipDeclaration( + this.attested, this.extraParams); + } + + /** A boolean indicating if the beneficial owner information has been attested. */ + public Builder setAttested(Boolean attested) { + this.attested = attested; + 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 + * AccountTokenCreateParams.Identity.Attestations.OwnershipDeclaration#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 + * AccountTokenCreateParams.Identity.Attestations.OwnershipDeclaration#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PersonsProvided { + /** + * Whether the company’s directors have been provided. Set this Boolean to true after + * creating all the company’s directors with the Persons API. + */ + @SerializedName("directors") + Boolean directors; + + /** + * Whether the company’s executives have been provided. Set this Boolean to true after + * creating all the company’s executives with the Persons API. + */ + @SerializedName("executives") + Boolean executives; + + /** + * 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; + + /** + * Whether the company’s owners have been provided. Set this Boolean to true after creating + * all the company’s owners with the Persons API. + */ + @SerializedName("owners") + Boolean owners; + + /** Reason for why the company is exempt from providing ownership information. */ + @SerializedName("ownership_exemption_reason") + OwnershipExemptionReason ownershipExemptionReason; + + private PersonsProvided( + Boolean directors, + Boolean executives, + Map extraParams, + Boolean owners, + OwnershipExemptionReason ownershipExemptionReason) { + this.directors = directors; + this.executives = executives; + this.extraParams = extraParams; + this.owners = owners; + this.ownershipExemptionReason = ownershipExemptionReason; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean directors; + + private Boolean executives; + + private Map extraParams; + + private Boolean owners; + + private OwnershipExemptionReason ownershipExemptionReason; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.PersonsProvided build() { + return new AccountTokenCreateParams.Identity.Attestations.PersonsProvided( + this.directors, + this.executives, + this.extraParams, + this.owners, + this.ownershipExemptionReason); + } + + /** + * Whether the company’s directors have been provided. Set this Boolean to true after + * creating all the company’s directors with the Persons API. + */ + public Builder setDirectors(Boolean directors) { + this.directors = directors; + return this; + } + + /** + * Whether the company’s executives have been provided. Set this Boolean to true after + * creating all the company’s executives with the Persons API. + */ + public Builder setExecutives(Boolean executives) { + this.executives = executives; + 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 + * AccountTokenCreateParams.Identity.Attestations.PersonsProvided#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 + * AccountTokenCreateParams.Identity.Attestations.PersonsProvided#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Whether the company’s owners have been provided. Set this Boolean to true after + * creating all the company’s owners with the Persons API. + */ + public Builder setOwners(Boolean owners) { + this.owners = owners; + return this; + } + + /** Reason for why the company is exempt from providing ownership information. */ + public Builder setOwnershipExemptionReason( + AccountTokenCreateParams.Identity.Attestations.PersonsProvided + .OwnershipExemptionReason + ownershipExemptionReason) { + this.ownershipExemptionReason = ownershipExemptionReason; + return this; + } + } + + public enum OwnershipExemptionReason implements ApiRequestParams.EnumParam { + @SerializedName("qualified_entity_exceeds_ownership_threshold") + QUALIFIED_ENTITY_EXCEEDS_OWNERSHIP_THRESHOLD( + "qualified_entity_exceeds_ownership_threshold"), + + @SerializedName("qualifies_as_financial_institution") + QUALIFIES_AS_FINANCIAL_INSTITUTION("qualifies_as_financial_institution"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + OwnershipExemptionReason(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class RepresentativeDeclaration { + /** + * A boolean indicating if the representative is authorized to act as the representative of + * their legal entity. + */ + @SerializedName("attested") + Boolean attested; + + /** + * 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; + + private RepresentativeDeclaration(Boolean attested, Map extraParams) { + this.attested = attested; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean attested; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.RepresentativeDeclaration build() { + return new AccountTokenCreateParams.Identity.Attestations.RepresentativeDeclaration( + this.attested, this.extraParams); + } + + /** + * A boolean indicating if the representative is authorized to act as the representative + * of their legal entity. + */ + public Builder setAttested(Boolean attested) { + this.attested = attested; + 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 + * AccountTokenCreateParams.Identity.Attestations.RepresentativeDeclaration#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 + * AccountTokenCreateParams.Identity.Attestations.RepresentativeDeclaration#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class TermsOfService { + /** + * Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and + * User Agent are expanded by Stripe. + */ + @SerializedName("account") + Account account; + + /** Details on the Account's acceptance of Issuing-specific terms of service. */ + @SerializedName("card_creator") + CardCreator cardCreator; + + /** + * Details on the Account's acceptance of Crypto-storer-specific terms of service; IP, date, + * and User Agent are expanded by Stripe. + */ + @SerializedName("crypto_storer") + CryptoStorer cryptoStorer; + + /** + * 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 on the Account's acceptance of Treasury-specific terms of service; IP, date, and + * User Agent are expanded by Stripe. + */ + @SerializedName("storer") + Storer storer; + + private TermsOfService( + Account account, + CardCreator cardCreator, + CryptoStorer cryptoStorer, + Map extraParams, + Storer storer) { + this.account = account; + this.cardCreator = cardCreator; + this.cryptoStorer = cryptoStorer; + this.extraParams = extraParams; + this.storer = storer; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Account account; + + private CardCreator cardCreator; + + private CryptoStorer cryptoStorer; + + private Map extraParams; + + private Storer storer; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService( + this.account, this.cardCreator, this.cryptoStorer, this.extraParams, this.storer); + } + + /** + * Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and + * User Agent are expanded by Stripe. + */ + public Builder setAccount( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.Account account) { + this.account = account; + return this; + } + + /** Details on the Account's acceptance of Issuing-specific terms of service. */ + public Builder setCardCreator( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + cardCreator) { + this.cardCreator = cardCreator; + return this; + } + + /** + * Details on the Account's acceptance of Crypto-storer-specific terms of service; IP, + * date, and User Agent are expanded by Stripe. + */ + public Builder setCryptoStorer( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CryptoStorer + cryptoStorer) { + this.cryptoStorer = cryptoStorer; + 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService#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 on the Account's acceptance of Treasury-specific terms of service; IP, date, + * and User Agent are expanded by Stripe. + */ + public Builder setStorer( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.Storer storer) { + this.storer = storer; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Account { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private Account(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.Account build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService.Account( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.Account#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.Account#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CardCreator { + /** Terms of service acceptances to create cards for commercial issuing use cases. */ + @SerializedName("commercial") + Commercial commercial; + + /** + * 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; + + private CardCreator(Commercial commercial, Map extraParams) { + this.commercial = commercial; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Commercial commercial; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator( + this.commercial, this.extraParams); + } + + /** Terms of service acceptances to create cards for commercial issuing use cases. */ + public Builder setCommercial( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial + commercial) { + this.commercial = commercial; + 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Commercial { + /** Terms of service acceptances for Stripe commercial card issuing. */ + @SerializedName("account_holder") + AccountHolder accountHolder; + + /** + * Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor. + */ + @SerializedName("celtic") + Celtic celtic; + + /** + * Terms of service acceptances for commercial issuing cards with Cross River Bank as + * BIN sponsor. + */ + @SerializedName("cross_river_bank") + CrossRiverBank crossRiverBank; + + /** + * 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; + + private Commercial( + AccountHolder accountHolder, + Celtic celtic, + CrossRiverBank crossRiverBank, + Map extraParams) { + this.accountHolder = accountHolder; + this.celtic = celtic; + this.crossRiverBank = crossRiverBank; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private AccountHolder accountHolder; + + private Celtic celtic; + + private CrossRiverBank crossRiverBank; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial( + this.accountHolder, this.celtic, this.crossRiverBank, this.extraParams); + } + + /** Terms of service acceptances for Stripe commercial card issuing. */ + public Builder setAccountHolder( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.AccountHolder + accountHolder) { + this.accountHolder = accountHolder; + return this; + } + + /** + * Terms of service acceptances for commercial issuing cards with Celtic as BIN + * sponsor. + */ + public Builder setCeltic( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic + celtic) { + this.celtic = celtic; + return this; + } + + /** + * Terms of service acceptances for commercial issuing cards with Cross River Bank as + * BIN sponsor. + */ + public Builder setCrossRiverBank( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank + crossRiverBank) { + this.crossRiverBank = crossRiverBank; + 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AccountHolder { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private AccountHolder(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.AccountHolder + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.AccountHolder( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.AccountHolder#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.AccountHolder#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Celtic { + /** + * Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as + * BIN sponsor. + */ + @SerializedName("apple_pay") + ApplePay applePay; + + /** + * Terms of service acceptances for commercial issuing charge cards with Celtic as BIN + * sponsor. + */ + @SerializedName("charge_card") + ChargeCard chargeCard; + + /** + * 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; + + /** + * Terms of service acceptances for commercial issuing spend cards with Celtic as BIN + * sponsor. + */ + @SerializedName("spend_card") + SpendCard spendCard; + + private Celtic( + ApplePay applePay, + ChargeCard chargeCard, + Map extraParams, + SpendCard spendCard) { + this.applePay = applePay; + this.chargeCard = chargeCard; + this.extraParams = extraParams; + this.spendCard = spendCard; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private ApplePay applePay; + + private ChargeCard chargeCard; + + private Map extraParams; + + private SpendCard spendCard; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.Celtic( + this.applePay, this.chargeCard, this.extraParams, this.spendCard); + } + + /** + * Terms of service acceptances for commercial issuing Apple Pay cards with Celtic + * as BIN sponsor. + */ + public Builder setApplePay( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.ApplePay + applePay) { + this.applePay = applePay; + return this; + } + + /** + * Terms of service acceptances for commercial issuing charge cards with Celtic as + * BIN sponsor. + */ + public Builder setChargeCard( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.ChargeCard + chargeCard) { + this.chargeCard = chargeCard; + 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Terms of service acceptances for commercial issuing spend cards with Celtic as + * BIN sponsor. + */ + public Builder setSpendCard( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.SpendCard + spendCard) { + this.spendCard = spendCard; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ApplePay { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private ApplePay(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.ApplePay + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.Celtic.ApplePay( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.ApplePay#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.ApplePay#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ChargeCard { + /** + * Bank terms of service acceptance for commercial issuing charge cards with Celtic + * as BIN sponsor. + */ + @SerializedName("bank_terms") + BankTerms bankTerms; + + /** + * 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; + + /** + * Platform terms of service acceptance for commercial issuing charge cards with + * Celtic as BIN sponsor. + */ + @SerializedName("platform") + Platform platform; + + private ChargeCard( + BankTerms bankTerms, Map extraParams, Platform platform) { + this.bankTerms = bankTerms; + this.extraParams = extraParams; + this.platform = platform; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private BankTerms bankTerms; + + private Map extraParams; + + private Platform platform; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.ChargeCard + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.Celtic.ChargeCard( + this.bankTerms, this.extraParams, this.platform); + } + + /** + * Bank terms of service acceptance for commercial issuing charge cards with + * Celtic as BIN sponsor. + */ + public Builder setBankTerms( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.ChargeCard.BankTerms + bankTerms) { + this.bankTerms = bankTerms; + 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.ChargeCard#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.ChargeCard#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Platform terms of service acceptance for commercial issuing charge cards with + * Celtic as BIN sponsor. + */ + public Builder setPlatform( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.ChargeCard.Platform + platform) { + this.platform = platform; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankTerms { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private BankTerms(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.ChargeCard.BankTerms + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.Celtic.ChargeCard.BankTerms( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.ChargeCard.BankTerms#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.ChargeCard.BankTerms#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Platform { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private Platform(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.ChargeCard.Platform + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.Celtic.ChargeCard.Platform( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.ChargeCard.Platform#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.ChargeCard.Platform#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class SpendCard { + /** + * Bank terms of service acceptance for commercial issuing spend cards with Celtic + * as BIN sponsor. + */ + @SerializedName("bank_terms") + BankTerms bankTerms; + + /** + * 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; + + /** + * Financial disclosures terms of service acceptance for commercial issuing spend + * cards with Celtic as BIN sponsor. + */ + @SerializedName("financing_disclosures") + FinancingDisclosures financingDisclosures; + + /** + * Platform terms of service acceptance for commercial issuing spend cards with + * Celtic as BIN sponsor. + */ + @SerializedName("platform") + Platform platform; + + private SpendCard( + BankTerms bankTerms, + Map extraParams, + FinancingDisclosures financingDisclosures, + Platform platform) { + this.bankTerms = bankTerms; + this.extraParams = extraParams; + this.financingDisclosures = financingDisclosures; + this.platform = platform; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private BankTerms bankTerms; + + private Map extraParams; + + private FinancingDisclosures financingDisclosures; + + private Platform platform; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.SpendCard + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.Celtic.SpendCard( + this.bankTerms, this.extraParams, this.financingDisclosures, this.platform); + } + + /** + * Bank terms of service acceptance for commercial issuing spend cards with Celtic + * as BIN sponsor. + */ + public Builder setBankTerms( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.SpendCard.BankTerms + bankTerms) { + this.bankTerms = bankTerms; + 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.SpendCard#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.SpendCard#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Financial disclosures terms of service acceptance for commercial issuing spend + * cards with Celtic as BIN sponsor. + */ + public Builder setFinancingDisclosures( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.SpendCard.FinancingDisclosures + financingDisclosures) { + this.financingDisclosures = financingDisclosures; + return this; + } + + /** + * Platform terms of service acceptance for commercial issuing spend cards with + * Celtic as BIN sponsor. + */ + public Builder setPlatform( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.SpendCard.Platform + platform) { + this.platform = platform; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankTerms { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private BankTerms(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.SpendCard.BankTerms + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.Celtic.SpendCard.BankTerms( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.SpendCard.BankTerms#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.SpendCard.BankTerms#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FinancingDisclosures { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private FinancingDisclosures( + Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.SpendCard.FinancingDisclosures + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.Celtic.SpendCard.FinancingDisclosures( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.SpendCard.FinancingDisclosures#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.SpendCard.FinancingDisclosures#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Platform { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private Platform(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.Celtic.SpendCard.Platform + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.Celtic.SpendCard.Platform( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.SpendCard.Platform#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.Celtic.SpendCard.Platform#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CrossRiverBank { + /** + * Terms of service acceptances for commercial issuing Apple Pay cards with Cross + * River Bank as BIN sponsor. + */ + @SerializedName("apple_pay") + ApplePay applePay; + + /** + * Terms of service acceptances for commercial issuing charge cards with Cross River + * Bank as BIN sponsor. + */ + @SerializedName("charge_card") + ChargeCard chargeCard; + + /** + * 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; + + /** + * Terms of service acceptances for commercial issuing spend cards with Cross River + * Bank as BIN sponsor. + */ + @SerializedName("spend_card") + SpendCard spendCard; + + private CrossRiverBank( + ApplePay applePay, + ChargeCard chargeCard, + Map extraParams, + SpendCard spendCard) { + this.applePay = applePay; + this.chargeCard = chargeCard; + this.extraParams = extraParams; + this.spendCard = spendCard; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private ApplePay applePay; + + private ChargeCard chargeCard; + + private Map extraParams; + + private SpendCard spendCard; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.CrossRiverBank( + this.applePay, this.chargeCard, this.extraParams, this.spendCard); + } + + /** + * Terms of service acceptances for commercial issuing Apple Pay cards with Cross + * River Bank as BIN sponsor. + */ + public Builder setApplePay( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.ApplePay + applePay) { + this.applePay = applePay; + return this; + } + + /** + * Terms of service acceptances for commercial issuing charge cards with Cross River + * Bank as BIN sponsor. + */ + public Builder setChargeCard( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.ChargeCard + chargeCard) { + this.chargeCard = chargeCard; + 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Terms of service acceptances for commercial issuing spend cards with Cross River + * Bank as BIN sponsor. + */ + public Builder setSpendCard( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.SpendCard + spendCard) { + this.spendCard = spendCard; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ApplePay { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private ApplePay(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.ApplePay + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.CrossRiverBank.ApplePay( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.ApplePay#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.ApplePay#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ChargeCard { + /** + * Bank terms of service acceptance for commercial issuing charge cards with Cross + * River Bank as BIN sponsor. + */ + @SerializedName("bank_terms") + BankTerms bankTerms; + + /** + * 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; + + /** + * Financial disclosures terms of service acceptance for commercial issuing charge + * cards with Cross River Bank as BIN sponsor. + */ + @SerializedName("financing_disclosures") + FinancingDisclosures financingDisclosures; + + /** + * Platform terms of service acceptance for commercial issuing charge cards with + * Cross River Bank as BIN sponsor. + */ + @SerializedName("platform") + Platform platform; + + private ChargeCard( + BankTerms bankTerms, + Map extraParams, + FinancingDisclosures financingDisclosures, + Platform platform) { + this.bankTerms = bankTerms; + this.extraParams = extraParams; + this.financingDisclosures = financingDisclosures; + this.platform = platform; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private BankTerms bankTerms; + + private Map extraParams; + + private FinancingDisclosures financingDisclosures; + + private Platform platform; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.ChargeCard + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.CrossRiverBank.ChargeCard( + this.bankTerms, this.extraParams, this.financingDisclosures, this.platform); + } + + /** + * Bank terms of service acceptance for commercial issuing charge cards with Cross + * River Bank as BIN sponsor. + */ + public Builder setBankTerms( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.ChargeCard.BankTerms + bankTerms) { + this.bankTerms = bankTerms; + 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.ChargeCard#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.ChargeCard#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Financial disclosures terms of service acceptance for commercial issuing charge + * cards with Cross River Bank as BIN sponsor. + */ + public Builder setFinancingDisclosures( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.ChargeCard.FinancingDisclosures + financingDisclosures) { + this.financingDisclosures = financingDisclosures; + return this; + } + + /** + * Platform terms of service acceptance for commercial issuing charge cards with + * Cross River Bank as BIN sponsor. + */ + public Builder setPlatform( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.ChargeCard.Platform + platform) { + this.platform = platform; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankTerms { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private BankTerms(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.ChargeCard.BankTerms + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.CrossRiverBank.ChargeCard.BankTerms( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.ChargeCard.BankTerms#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.ChargeCard.BankTerms#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FinancingDisclosures { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private FinancingDisclosures( + Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.ChargeCard.FinancingDisclosures + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.CrossRiverBank.ChargeCard.FinancingDisclosures( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.ChargeCard.FinancingDisclosures#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.ChargeCard.FinancingDisclosures#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Platform { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private Platform(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.ChargeCard.Platform + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.CrossRiverBank.ChargeCard.Platform( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.ChargeCard.Platform#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.ChargeCard.Platform#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class SpendCard { + /** + * Bank terms of service acceptance for commercial issuing spend cards with Cross + * River Bank as BIN sponsor. + */ + @SerializedName("bank_terms") + BankTerms bankTerms; + + /** + * 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; + + /** + * Financial disclosures terms of service acceptance for commercial issuing spend + * cards with Cross River Bank as BIN sponsor. + */ + @SerializedName("financing_disclosures") + FinancingDisclosures financingDisclosures; + + private SpendCard( + BankTerms bankTerms, + Map extraParams, + FinancingDisclosures financingDisclosures) { + this.bankTerms = bankTerms; + this.extraParams = extraParams; + this.financingDisclosures = financingDisclosures; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private BankTerms bankTerms; + + private Map extraParams; + + private FinancingDisclosures financingDisclosures; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.SpendCard + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.CrossRiverBank.SpendCard( + this.bankTerms, this.extraParams, this.financingDisclosures); + } + + /** + * Bank terms of service acceptance for commercial issuing spend cards with Cross + * River Bank as BIN sponsor. + */ + public Builder setBankTerms( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.SpendCard.BankTerms + bankTerms) { + this.bankTerms = bankTerms; + 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.SpendCard#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.SpendCard#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Financial disclosures terms of service acceptance for commercial issuing spend + * cards with Cross River Bank as BIN sponsor. + */ + public Builder setFinancingDisclosures( + AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.SpendCard.FinancingDisclosures + financingDisclosures) { + this.financingDisclosures = financingDisclosures; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankTerms { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private BankTerms(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.SpendCard.BankTerms + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.CrossRiverBank.SpendCard.BankTerms( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.SpendCard.BankTerms#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.SpendCard.BankTerms#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FinancingDisclosures { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private FinancingDisclosures( + Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.SpendCard.FinancingDisclosures + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService + .CardCreator.Commercial.CrossRiverBank.SpendCard.FinancingDisclosures( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.SpendCard.FinancingDisclosures#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial.CrossRiverBank.SpendCard.FinancingDisclosures#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CryptoStorer { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private CryptoStorer(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.CryptoStorer + build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService.CryptoStorer( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CryptoStorer#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.CryptoStorer#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Storer { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private Storer(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Attestations.TermsOfService.Storer build() { + return new AccountTokenCreateParams.Identity.Attestations.TermsOfService.Storer( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.Storer#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 + * AccountTokenCreateParams.Identity.Attestations.TermsOfService.Storer#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BusinessDetails { + /** The business registration address of the business entity. */ + @SerializedName("address") + Address address; + + /** The business gross annual revenue for its preceding fiscal year. */ + @SerializedName("annual_revenue") + AnnualRevenue annualRevenue; + + /** + * A detailed description of the business's compliance and anti-money laundering controls and + * practices. + */ + @SerializedName("compliance_screening_description") + String complianceScreeningDescription; + + /** A document verifying the business. */ + @SerializedName("documents") + Documents documents; + + /** + * An estimated upper bound of employees, contractors, vendors, etc. currently working for the + * business. + */ + @SerializedName("estimated_worker_count") + Long estimatedWorkerCount; + + /** + * 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 ID numbers of a business entity. */ + @SerializedName("id_numbers") + List idNumbers; + + /** An estimate of the monthly revenue of the business. */ + @SerializedName("monthly_estimated_revenue") + MonthlyEstimatedRevenue monthlyEstimatedRevenue; + + /** The phone number of the Business Entity. */ + @SerializedName("phone") + String phone; + + /** The business legal name. */ + @SerializedName("registered_name") + String registeredName; + + /** The business registration address of the business entity in non latin script. */ + @SerializedName("script_addresses") + ScriptAddresses scriptAddresses; + + /** The business legal name in non latin script. */ + @SerializedName("script_names") + ScriptNames scriptNames; + + /** The category identifying the legal structure of the business. */ + @SerializedName("structure") + Structure structure; + + private BusinessDetails( + Address address, + AnnualRevenue annualRevenue, + String complianceScreeningDescription, + Documents documents, + Long estimatedWorkerCount, + Map extraParams, + List idNumbers, + MonthlyEstimatedRevenue monthlyEstimatedRevenue, + String phone, + String registeredName, + ScriptAddresses scriptAddresses, + ScriptNames scriptNames, + Structure structure) { + this.address = address; + this.annualRevenue = annualRevenue; + this.complianceScreeningDescription = complianceScreeningDescription; + this.documents = documents; + this.estimatedWorkerCount = estimatedWorkerCount; + this.extraParams = extraParams; + this.idNumbers = idNumbers; + this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; + this.phone = phone; + this.registeredName = registeredName; + this.scriptAddresses = scriptAddresses; + this.scriptNames = scriptNames; + this.structure = structure; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Address address; + + private AnnualRevenue annualRevenue; + + private String complianceScreeningDescription; + + private Documents documents; + + private Long estimatedWorkerCount; + + private Map extraParams; + + private List idNumbers; + + private MonthlyEstimatedRevenue monthlyEstimatedRevenue; + + private String phone; + + private String registeredName; + + private ScriptAddresses scriptAddresses; + + private ScriptNames scriptNames; + + private Structure structure; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails build() { + return new AccountTokenCreateParams.Identity.BusinessDetails( + this.address, + this.annualRevenue, + this.complianceScreeningDescription, + this.documents, + this.estimatedWorkerCount, + this.extraParams, + this.idNumbers, + this.monthlyEstimatedRevenue, + this.phone, + this.registeredName, + this.scriptAddresses, + this.scriptNames, + this.structure); + } + + /** The business registration address of the business entity. */ + public Builder setAddress( + AccountTokenCreateParams.Identity.BusinessDetails.Address address) { + this.address = address; + return this; + } + + /** The business gross annual revenue for its preceding fiscal year. */ + public Builder setAnnualRevenue( + AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue annualRevenue) { + this.annualRevenue = annualRevenue; + return this; + } + + /** + * A detailed description of the business's compliance and anti-money laundering controls + * and practices. + */ + public Builder setComplianceScreeningDescription(String complianceScreeningDescription) { + this.complianceScreeningDescription = complianceScreeningDescription; + return this; + } + + /** A document verifying the business. */ + public Builder setDocuments( + AccountTokenCreateParams.Identity.BusinessDetails.Documents documents) { + this.documents = documents; + return this; + } + + /** + * An estimated upper bound of employees, contractors, vendors, etc. currently working for + * the business. + */ + public Builder setEstimatedWorkerCount(Long estimatedWorkerCount) { + this.estimatedWorkerCount = estimatedWorkerCount; + 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 AccountTokenCreateParams.Identity.BusinessDetails#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 AccountTokenCreateParams.Identity.BusinessDetails#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 `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails#idNumbers} for the field documentation. + */ + public Builder addIdNumber( + AccountTokenCreateParams.Identity.BusinessDetails.IdNumber element) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.add(element); + return this; + } + + /** + * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails#idNumbers} for the field documentation. + */ + public Builder addAllIdNumber( + List elements) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.addAll(elements); + return this; + } + + /** An estimate of the monthly revenue of the business. */ + public Builder setMonthlyEstimatedRevenue( + AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue + monthlyEstimatedRevenue) { + this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; + return this; + } + + /** The phone number of the Business Entity. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; + } + + /** The business legal name. */ + public Builder setRegisteredName(String registeredName) { + this.registeredName = registeredName; + return this; + } + + /** The business registration address of the business entity in non latin script. */ + public Builder setScriptAddresses( + AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses scriptAddresses) { + this.scriptAddresses = scriptAddresses; + return this; + } + + /** The business legal name in non latin script. */ + public Builder setScriptNames( + AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames scriptNames) { + this.scriptNames = scriptNames; + return this; + } + + /** The category identifying the legal structure of the business. */ + public Builder setStructure( + AccountTokenCreateParams.Identity.BusinessDetails.Structure structure) { + this.structure = structure; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private Address( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Address build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 AccountTokenCreateParams.Identity.BusinessDetails.Address#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 AccountTokenCreateParams.Identity.BusinessDetails.Address#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AnnualRevenue { + /** A non-negative integer representing the amount in the smallest currency unit. */ + @SerializedName("amount") + Amount 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 close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + * the 31st of December, 2023. + */ + @SerializedName("fiscal_year_end") + String fiscalYearEnd; + + private AnnualRevenue( + Amount amount, Map extraParams, String fiscalYearEnd) { + this.amount = amount; + this.extraParams = extraParams; + this.fiscalYearEnd = fiscalYearEnd; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Amount amount; + + private Map extraParams; + + private String fiscalYearEnd; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue( + this.amount, this.extraParams, this.fiscalYearEnd); + } + + /** A non-negative integer representing the amount in the smallest currency unit. */ + public Builder setAmount( + AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount 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 + * AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue#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 + * AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue#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 close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + * the 31st of December, 2023. + */ + public Builder setFiscalYearEnd(String fiscalYearEnd) { + this.fiscalYearEnd = fiscalYearEnd; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount( + this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount#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 + * AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Documents { + /** + * One or more documents that support the bank account ownership verification requirement. + * Must be a document associated with the account’s primary active bank account that + * displays the last 4 digits of the account number, either a statement or a check. + */ + @SerializedName("bank_account_ownership_verification") + BankAccountOwnershipVerification bankAccountOwnershipVerification; + + /** One or more documents that demonstrate proof of a company’s license to operate. */ + @SerializedName("company_license") + CompanyLicense companyLicense; + + /** One or more documents showing the company’s Memorandum of Association. */ + @SerializedName("company_memorandum_of_association") + CompanyMemorandumOfAssociation companyMemorandumOfAssociation; + + /** + * Certain countries only: One or more documents showing the ministerial decree legalizing + * the company’s establishment. + */ + @SerializedName("company_ministerial_decree") + CompanyMinisterialDecree companyMinisterialDecree; + + /** + * One or more documents that demonstrate proof of a company’s registration with the + * appropriate local authorities. + */ + @SerializedName("company_registration_verification") + CompanyRegistrationVerification companyRegistrationVerification; + + /** One or more documents that demonstrate proof of a company’s tax ID. */ + @SerializedName("company_tax_id_verification") + CompanyTaxIdVerification companyTaxIdVerification; + + /** + * 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 document verifying the business. */ + @SerializedName("primary_verification") + PrimaryVerification primaryVerification; + + /** One or more documents that demonstrate proof of address. */ + @SerializedName("proof_of_address") + ProofOfAddress proofOfAddress; + + /** + * One or more documents showing the company’s proof of registration with the national + * business registry. + */ + @SerializedName("proof_of_registration") + ProofOfRegistration proofOfRegistration; + + /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ + @SerializedName("proof_of_ultimate_beneficial_ownership") + ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; + + private Documents( + BankAccountOwnershipVerification bankAccountOwnershipVerification, + CompanyLicense companyLicense, + CompanyMemorandumOfAssociation companyMemorandumOfAssociation, + CompanyMinisterialDecree companyMinisterialDecree, + CompanyRegistrationVerification companyRegistrationVerification, + CompanyTaxIdVerification companyTaxIdVerification, + Map extraParams, + PrimaryVerification primaryVerification, + ProofOfAddress proofOfAddress, + ProofOfRegistration proofOfRegistration, + ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership) { + this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; + this.companyLicense = companyLicense; + this.companyMemorandumOfAssociation = companyMemorandumOfAssociation; + this.companyMinisterialDecree = companyMinisterialDecree; + this.companyRegistrationVerification = companyRegistrationVerification; + this.companyTaxIdVerification = companyTaxIdVerification; + this.extraParams = extraParams; + this.primaryVerification = primaryVerification; + this.proofOfAddress = proofOfAddress; + this.proofOfRegistration = proofOfRegistration; + this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private BankAccountOwnershipVerification bankAccountOwnershipVerification; + + private CompanyLicense companyLicense; + + private CompanyMemorandumOfAssociation companyMemorandumOfAssociation; + + private CompanyMinisterialDecree companyMinisterialDecree; + + private CompanyRegistrationVerification companyRegistrationVerification; + + private CompanyTaxIdVerification companyTaxIdVerification; + + private Map extraParams; + + private PrimaryVerification primaryVerification; + + private ProofOfAddress proofOfAddress; + + private ProofOfRegistration proofOfRegistration; + + private ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents( + this.bankAccountOwnershipVerification, + this.companyLicense, + this.companyMemorandumOfAssociation, + this.companyMinisterialDecree, + this.companyRegistrationVerification, + this.companyTaxIdVerification, + this.extraParams, + this.primaryVerification, + this.proofOfAddress, + this.proofOfRegistration, + this.proofOfUltimateBeneficialOwnership); + } + + /** + * One or more documents that support the bank account ownership verification requirement. + * Must be a document associated with the account’s primary active bank account that + * displays the last 4 digits of the account number, either a statement or a check. + */ + public Builder setBankAccountOwnershipVerification( + AccountTokenCreateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification + bankAccountOwnershipVerification) { + this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; + return this; + } + + /** One or more documents that demonstrate proof of a company’s license to operate. */ + public Builder setCompanyLicense( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyLicense + companyLicense) { + this.companyLicense = companyLicense; + return this; + } + + /** One or more documents showing the company’s Memorandum of Association. */ + public Builder setCompanyMemorandumOfAssociation( + AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation + companyMemorandumOfAssociation) { + this.companyMemorandumOfAssociation = companyMemorandumOfAssociation; + return this; + } + + /** + * Certain countries only: One or more documents showing the ministerial decree legalizing + * the company’s establishment. + */ + public Builder setCompanyMinisterialDecree( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree + companyMinisterialDecree) { + this.companyMinisterialDecree = companyMinisterialDecree; + return this; + } + + /** + * One or more documents that demonstrate proof of a company’s registration with the + * appropriate local authorities. + */ + public Builder setCompanyRegistrationVerification( + AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyRegistrationVerification + companyRegistrationVerification) { + this.companyRegistrationVerification = companyRegistrationVerification; + return this; + } + + /** One or more documents that demonstrate proof of a company’s tax ID. */ + public Builder setCompanyTaxIdVerification( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification + companyTaxIdVerification) { + this.companyTaxIdVerification = companyTaxIdVerification; + 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents#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 document verifying the business. */ + public Builder setPrimaryVerification( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification + primaryVerification) { + this.primaryVerification = primaryVerification; + return this; + } + + /** One or more documents that demonstrate proof of address. */ + public Builder setProofOfAddress( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress + proofOfAddress) { + this.proofOfAddress = proofOfAddress; + return this; + } + + /** + * One or more documents showing the company’s proof of registration with the national + * business registry. + */ + public Builder setProofOfRegistration( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration + proofOfRegistration) { + this.proofOfRegistration = proofOfRegistration; + return this; + } + + /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ + public Builder setProofOfUltimateBeneficialOwnership( + AccountTokenCreateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership + proofOfUltimateBeneficialOwnership) { + this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankAccountOwnershipVerification { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private BankAccountOwnershipVerification( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification(this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#files} + * for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification.Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CompanyLicense { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private CompanyLicense(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyLicense + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyLicense( + this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyLicense#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyLicense#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyLicense#files} for + * the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyLicense#files} for + * the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyLicense.Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CompanyMemorandumOfAssociation { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private CompanyMemorandumOfAssociation( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation(this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#files} + * for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation.Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CompanyMinisterialDecree { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private CompanyMinisterialDecree( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyMinisterialDecree + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyMinisterialDecree(this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#files} + * for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree + .Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CompanyRegistrationVerification { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private CompanyRegistrationVerification( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyRegistrationVerification + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyRegistrationVerification(this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#files} + * for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyRegistrationVerification.Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CompanyTaxIdVerification { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private CompanyTaxIdVerification( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyTaxIdVerification + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents + .CompanyTaxIdVerification(this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification#files} + * for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification + .Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PrimaryVerification { + /** + * 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 file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; + + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; + + private PrimaryVerification( + Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private FrontBack frontBack; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents + .PrimaryVerification(this.extraParams, this.frontBack, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification#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 file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification + .FrontBack + frontBack) { + this.frontBack = frontBack; + return this; + } + + /** + * Required. The format of the verification document. Currently + * supports {@code front_back} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.Type + type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. The uploaded file needs to be a color image + * (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in + * size. + */ + @SerializedName("back") + String back; + + /** + * 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 file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. The uploaded file needs to be a color + * image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 + * MB in size. + */ + @SerializedName("front") + String front; + + private FrontBack(String back, Map extraParams, String front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String back; + + private Map extraParams; + + private String front; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification + .FrontBack + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents + .PrimaryVerification.FrontBack(this.back, this.extraParams, this.front); + } + + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. The uploaded file needs to be a color + * image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than + * 10 MB in size. + */ + public Builder setBack(String back) { + this.back = back; + 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack#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 file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. The uploaded file needs to be a color + * image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than + * 10 MB in size. + */ + public Builder setFront(String front) { + this.front = front; + return this; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ProofOfAddress { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private ProofOfAddress(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress( + this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress#files} for + * the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress#files} for + * the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress.Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ProofOfRegistration { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private ProofOfRegistration( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents + .ProofOfRegistration(this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#files} + * for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration.Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ProofOfUltimateBeneficialOwnership { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private ProofOfUltimateBeneficialOwnership( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership(this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#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 + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#files} + * for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership.Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class IdNumber { + /** + * 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 registrar of the ID number (Only valid for DE ID number types). */ + @SerializedName("registrar") + String registrar; + + /** Required. Open Enum. The ID number type of a business entity. */ + @SerializedName("type") + Type type; + + /** Required. The value of the ID number. */ + @SerializedName("value") + String value; + + private IdNumber( + Map extraParams, String registrar, Type type, String value) { + this.extraParams = extraParams; + this.registrar = registrar; + this.type = type; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String registrar; + + private Type type; + + private String value; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.IdNumber build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.IdNumber( + this.extraParams, this.registrar, this.type, this.value); + } + + /** + * 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 AccountTokenCreateParams.Identity.BusinessDetails.IdNumber#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 AccountTokenCreateParams.Identity.BusinessDetails.IdNumber#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 registrar of the ID number (Only valid for DE ID number types). */ + public Builder setRegistrar(String registrar) { + this.registrar = registrar; + return this; + } + + /** Required. Open Enum. The ID number type of a business entity. */ + public Builder setType( + AccountTokenCreateParams.Identity.BusinessDetails.IdNumber.Type type) { + this.type = type; + return this; + } + + /** Required. The value of the ID number. */ + public Builder setValue(String value) { + this.value = value; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ae_crn") + AE_CRN("ae_crn"), + + @SerializedName("ae_vat") + AE_VAT("ae_vat"), + + @SerializedName("ao_nif") + AO_NIF("ao_nif"), + + @SerializedName("ar_cuit") + AR_CUIT("ar_cuit"), + + @SerializedName("at_fn") + AT_FN("at_fn"), + + @SerializedName("au_abn") + AU_ABN("au_abn"), + + @SerializedName("au_acn") + AU_ACN("au_acn"), + + @SerializedName("au_in") + AU_IN("au_in"), + + @SerializedName("az_tin") + AZ_TIN("az_tin"), + + @SerializedName("bd_etin") + BD_ETIN("bd_etin"), + + @SerializedName("be_cbe") + BE_CBE("be_cbe"), + + @SerializedName("bg_uic") + BG_UIC("bg_uic"), + + @SerializedName("br_cnpj") + BR_CNPJ("br_cnpj"), + + @SerializedName("ca_cn") + CA_CN("ca_cn"), + + @SerializedName("ca_crarr") + CA_CRARR("ca_crarr"), + + @SerializedName("ca_neq") + CA_NEQ("ca_neq"), + + @SerializedName("ca_rid") + CA_RID("ca_rid"), + + @SerializedName("ch_chid") + CH_CHID("ch_chid"), + + @SerializedName("ch_uid") + CH_UID("ch_uid"), + + @SerializedName("cr_cpj") + CR_CPJ("cr_cpj"), + + @SerializedName("cr_nite") + CR_NITE("cr_nite"), + + @SerializedName("cy_tic") + CY_TIC("cy_tic"), + + @SerializedName("cz_ico") + CZ_ICO("cz_ico"), + + @SerializedName("de_hrn") + DE_HRN("de_hrn"), + + @SerializedName("de_vat") + DE_VAT("de_vat"), + + @SerializedName("dk_cvr") + DK_CVR("dk_cvr"), + + @SerializedName("do_rcn") + DO_RCN("do_rcn"), + + @SerializedName("ee_rk") + EE_RK("ee_rk"), + + @SerializedName("es_cif") + ES_CIF("es_cif"), + + @SerializedName("fi_yt") + FI_YT("fi_yt"), + + @SerializedName("fr_siren") + FR_SIREN("fr_siren"), + + @SerializedName("fr_vat") + FR_VAT("fr_vat"), + + @SerializedName("gb_crn") + GB_CRN("gb_crn"), + + @SerializedName("gi_crn") + GI_CRN("gi_crn"), + + @SerializedName("gr_gemi") + GR_GEMI("gr_gemi"), + + @SerializedName("gt_nit") + GT_NIT("gt_nit"), + + @SerializedName("hk_br") + HK_BR("hk_br"), + + @SerializedName("hk_cr") + HK_CR("hk_cr"), + + @SerializedName("hk_mbs") + HK_MBS("hk_mbs"), + + @SerializedName("hu_cjs") + HU_CJS("hu_cjs"), + + @SerializedName("ie_crn") + IE_CRN("ie_crn"), + + @SerializedName("it_rea") + IT_REA("it_rea"), + + @SerializedName("it_vat") + IT_VAT("it_vat"), + + @SerializedName("jp_cn") + JP_CN("jp_cn"), + + @SerializedName("kz_bin") + KZ_BIN("kz_bin"), + + @SerializedName("li_uid") + LI_UID("li_uid"), + + @SerializedName("lt_ccrn") + LT_CCRN("lt_ccrn"), + + @SerializedName("lu_rcs") + LU_RCS("lu_rcs"), + + @SerializedName("lv_urn") + LV_URN("lv_urn"), + + @SerializedName("mt_crn") + MT_CRN("mt_crn"), + + @SerializedName("mx_rfc") + MX_RFC("mx_rfc"), + + @SerializedName("my_brn") + MY_BRN("my_brn"), + + @SerializedName("my_coid") + MY_COID("my_coid"), + + @SerializedName("my_sst") + MY_SST("my_sst"), + + @SerializedName("mz_nuit") + MZ_NUIT("mz_nuit"), + + @SerializedName("nl_kvk") + NL_KVK("nl_kvk"), + + @SerializedName("no_orgnr") + NO_ORGNR("no_orgnr"), + + @SerializedName("nz_bn") + NZ_BN("nz_bn"), + + @SerializedName("pe_ruc") + PE_RUC("pe_ruc"), + + @SerializedName("pk_ntn") + PK_NTN("pk_ntn"), + + @SerializedName("pl_regon") + PL_REGON("pl_regon"), + + @SerializedName("pt_vat") + PT_VAT("pt_vat"), + + @SerializedName("ro_cui") + RO_CUI("ro_cui"), + + @SerializedName("sa_crn") + SA_CRN("sa_crn"), + + @SerializedName("sa_tin") + SA_TIN("sa_tin"), + + @SerializedName("se_orgnr") + SE_ORGNR("se_orgnr"), + + @SerializedName("sg_uen") + SG_UEN("sg_uen"), + + @SerializedName("si_msp") + SI_MSP("si_msp"), + + @SerializedName("sk_ico") + SK_ICO("sk_ico"), + + @SerializedName("th_crn") + TH_CRN("th_crn"), + + @SerializedName("th_prn") + TH_PRN("th_prn"), + + @SerializedName("th_tin") + TH_TIN("th_tin"), + + @SerializedName("us_ein") + US_EIN("us_ein"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class MonthlyEstimatedRevenue { + /** A non-negative integer representing the amount in the smallest currency unit. */ + @SerializedName("amount") + Amount 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; + + private MonthlyEstimatedRevenue(Amount amount, Map extraParams) { + this.amount = amount; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Amount amount; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue( + this.amount, this.extraParams); + } + + /** A non-negative integer representing the amount in the smallest currency unit. */ + public Builder setAmount( + AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount + 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 + * AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue#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 + * AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount + build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue + .Amount(this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount#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 + * AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptAddresses { + /** + * 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; + + /** Kana Address. */ + @SerializedName("kana") + Kana kana; + + /** Kanji Address. */ + @SerializedName("kanji") + Kanji kanji; + + private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Kana kana; + + private Kanji kanji; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses( + this.extraParams, this.kana, this.kanji); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses#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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Kana Address. */ + public Builder setKana( + AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana kana) { + this.kana = kana; + return this; + } + + /** Kanji Address. */ + public Builder setKanji( + AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji kanji) { + this.kanji = kanji; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private Kana( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana#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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private Kanji( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji#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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptNames { + /** + * 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; + + /** Kana name. */ + @SerializedName("kana") + Kana kana; + + /** Kanji name. */ + @SerializedName("kanji") + Kanji kanji; + + private ScriptNames(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Kana kana; + + private Kanji kanji; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames( + this.extraParams, this.kana, this.kanji); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames#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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Kana name. */ + public Builder setKana( + AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kana kana) { + this.kana = kana; + return this; + } + + /** Kanji name. */ + public Builder setKanji( + AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kanji kanji) { + this.kanji = kanji; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** + * 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; + + /** Registered name of the business. */ + @SerializedName("registered_name") + String registeredName; + + private Kana(Map extraParams, String registeredName) { + this.extraParams = extraParams; + this.registeredName = registeredName; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String registeredName; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kana build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kana( + this.extraParams, this.registeredName); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kana#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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kana#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Registered name of the business. */ + public Builder setRegisteredName(String registeredName) { + this.registeredName = registeredName; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** + * 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; + + /** Registered name of the business. */ + @SerializedName("registered_name") + String registeredName; + + private Kanji(Map extraParams, String registeredName) { + this.extraParams = extraParams; + this.registeredName = registeredName; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String registeredName; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kanji build() { + return new AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kanji( + this.extraParams, this.registeredName); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kanji#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 + * AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kanji#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Registered name of the business. */ + public Builder setRegisteredName(String registeredName) { + this.registeredName = registeredName; + return this; + } + } + } + } + + public enum Structure implements ApiRequestParams.EnumParam { + @SerializedName("cooperative") + COOPERATIVE("cooperative"), + + @SerializedName("free_zone_establishment") + FREE_ZONE_ESTABLISHMENT("free_zone_establishment"), + + @SerializedName("free_zone_llc") + FREE_ZONE_LLC("free_zone_llc"), + + @SerializedName("governmental_unit") + GOVERNMENTAL_UNIT("governmental_unit"), + + @SerializedName("government_instrumentality") + GOVERNMENT_INSTRUMENTALITY("government_instrumentality"), + + @SerializedName("incorporated_association") + INCORPORATED_ASSOCIATION("incorporated_association"), + + @SerializedName("incorporated_non_profit") + INCORPORATED_NON_PROFIT("incorporated_non_profit"), + + @SerializedName("incorporated_partnership") + INCORPORATED_PARTNERSHIP("incorporated_partnership"), + + @SerializedName("limited_liability_partnership") + LIMITED_LIABILITY_PARTNERSHIP("limited_liability_partnership"), + + @SerializedName("llc") + LLC("llc"), + + @SerializedName("multi_member_llc") + MULTI_MEMBER_LLC("multi_member_llc"), + + @SerializedName("private_company") + PRIVATE_COMPANY("private_company"), + + @SerializedName("private_corporation") + PRIVATE_CORPORATION("private_corporation"), + + @SerializedName("private_partnership") + PRIVATE_PARTNERSHIP("private_partnership"), + + @SerializedName("public_company") + PUBLIC_COMPANY("public_company"), + + @SerializedName("public_corporation") + PUBLIC_CORPORATION("public_corporation"), + + @SerializedName("public_listed_corporation") + PUBLIC_LISTED_CORPORATION("public_listed_corporation"), + + @SerializedName("public_partnership") + PUBLIC_PARTNERSHIP("public_partnership"), + + @SerializedName("registered_charity") + REGISTERED_CHARITY("registered_charity"), + + @SerializedName("single_member_llc") + SINGLE_MEMBER_LLC("single_member_llc"), + + @SerializedName("sole_establishment") + SOLE_ESTABLISHMENT("sole_establishment"), + + @SerializedName("sole_proprietorship") + SOLE_PROPRIETORSHIP("sole_proprietorship"), + + @SerializedName("tax_exempt_government_instrumentality") + TAX_EXEMPT_GOVERNMENT_INSTRUMENTALITY("tax_exempt_government_instrumentality"), + + @SerializedName("trust") + TRUST("trust"), + + @SerializedName("unincorporated_association") + UNINCORPORATED_ASSOCIATION("unincorporated_association"), + + @SerializedName("unincorporated_non_profit") + UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"), + + @SerializedName("unincorporated_partnership") + UNINCORPORATED_PARTNERSHIP("unincorporated_partnership"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Structure(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Individual { + /** Additional addresses associated with the individual. */ + @SerializedName("additional_addresses") + List additionalAddresses; + + /** Additional names (e.g. aliases) associated with the individual. */ + @SerializedName("additional_names") + List additionalNames; + + /** The individual's residential address. */ + @SerializedName("address") + Address address; + + /** The individual's date of birth. */ + @SerializedName("date_of_birth") + DateOfBirth dateOfBirth; + + /** Documents that may be submitted to satisfy various informational requests. */ + @SerializedName("documents") + Documents documents; + + /** The individual's email address. */ + @SerializedName("email") + String email; + + /** + * 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 individual's first name. */ + @SerializedName("given_name") + String givenName; + + /** The identification numbers (e.g., SSN) associated with the individual. */ + @SerializedName("id_numbers") + List idNumbers; + + /** + * The individual's gender (International regulations require either "male" or + * "female"). + */ + @SerializedName("legal_gender") + LegalGender legalGender; + + /** + * Set of key-value pairs that you can attach to an object. This can be useful for storing + * additional information about the object in a structured format. + */ + @SerializedName("metadata") + Map metadata; + + /** + * The countries where the individual is a national. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("nationalities") + List nationalities; + + /** The individual's phone number. */ + @SerializedName("phone") + String phone; + + /** The individual's political exposure. */ + @SerializedName("political_exposure") + PoliticalExposure politicalExposure; + + /** The relationship that this individual has with the account's identity. */ + @SerializedName("relationship") + Relationship relationship; + + /** The script addresses (e.g., non-Latin characters) associated with the individual. */ + @SerializedName("script_addresses") + ScriptAddresses scriptAddresses; + + /** The individuals primary name in non latin script. */ + @SerializedName("script_names") + ScriptNames scriptNames; + + /** The individual's last name. */ + @SerializedName("surname") + String surname; + + private Individual( + List additionalAddresses, + List additionalNames, + Address address, + DateOfBirth dateOfBirth, + Documents documents, + String email, + Map extraParams, + String givenName, + List idNumbers, + LegalGender legalGender, + Map metadata, + List nationalities, + String phone, + PoliticalExposure politicalExposure, + Relationship relationship, + ScriptAddresses scriptAddresses, + ScriptNames scriptNames, + String surname) { + this.additionalAddresses = additionalAddresses; + this.additionalNames = additionalNames; + this.address = address; + this.dateOfBirth = dateOfBirth; + this.documents = documents; + this.email = email; + this.extraParams = extraParams; + this.givenName = givenName; + this.idNumbers = idNumbers; + this.legalGender = legalGender; + this.metadata = metadata; + this.nationalities = nationalities; + this.phone = phone; + this.politicalExposure = politicalExposure; + this.relationship = relationship; + this.scriptAddresses = scriptAddresses; + this.scriptNames = scriptNames; + this.surname = surname; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List + additionalAddresses; + + private List additionalNames; + + private Address address; + + private DateOfBirth dateOfBirth; + + private Documents documents; + + private String email; + + private Map extraParams; + + private String givenName; + + private List idNumbers; + + private LegalGender legalGender; + + private Map metadata; + + private List nationalities; + + private String phone; + + private PoliticalExposure politicalExposure; + + private Relationship relationship; + + private ScriptAddresses scriptAddresses; + + private ScriptNames scriptNames; + + private String surname; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual build() { + return new AccountTokenCreateParams.Identity.Individual( + this.additionalAddresses, + this.additionalNames, + this.address, + this.dateOfBirth, + this.documents, + this.email, + this.extraParams, + this.givenName, + this.idNumbers, + this.legalGender, + this.metadata, + this.nationalities, + this.phone, + this.politicalExposure, + this.relationship, + this.scriptAddresses, + this.scriptNames, + this.surname); + } + + /** + * Add an element to `additionalAddresses` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountTokenCreateParams.Identity.Individual#additionalAddresses} for the + * field documentation. + */ + public Builder addAdditionalAddress( + AccountTokenCreateParams.Identity.Individual.AdditionalAddress element) { + if (this.additionalAddresses == null) { + this.additionalAddresses = new ArrayList<>(); + } + this.additionalAddresses.add(element); + return this; + } + + /** + * Add all elements to `additionalAddresses` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountTokenCreateParams.Identity.Individual#additionalAddresses} for the + * field documentation. + */ + public Builder addAllAdditionalAddress( + List elements) { + if (this.additionalAddresses == null) { + this.additionalAddresses = new ArrayList<>(); + } + this.additionalAddresses.addAll(elements); + return this; + } + + /** + * Add an element to `additionalNames` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountTokenCreateParams.Identity.Individual#additionalNames} for the field + * documentation. + */ + public Builder addAdditionalName( + AccountTokenCreateParams.Identity.Individual.AdditionalName element) { + if (this.additionalNames == null) { + this.additionalNames = new ArrayList<>(); + } + this.additionalNames.add(element); + return this; + } + + /** + * Add all elements to `additionalNames` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountTokenCreateParams.Identity.Individual#additionalNames} for the field + * documentation. + */ + public Builder addAllAdditionalName( + List elements) { + if (this.additionalNames == null) { + this.additionalNames = new ArrayList<>(); + } + this.additionalNames.addAll(elements); + return this; + } + + /** The individual's residential address. */ + public Builder setAddress(AccountTokenCreateParams.Identity.Individual.Address address) { + this.address = address; + return this; + } + + /** The individual's date of birth. */ + public Builder setDateOfBirth( + AccountTokenCreateParams.Identity.Individual.DateOfBirth dateOfBirth) { + this.dateOfBirth = dateOfBirth; + return this; + } + + /** Documents that may be submitted to satisfy various informational requests. */ + public Builder setDocuments( + AccountTokenCreateParams.Identity.Individual.Documents documents) { + this.documents = documents; + return this; + } + + /** The individual's email address. */ + public Builder setEmail(String email) { + this.email = email; + 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 AccountTokenCreateParams.Identity.Individual#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 AccountTokenCreateParams.Identity.Individual#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 individual's first name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** + * Add an element to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.Individual#idNumbers} for the field documentation. + */ + public Builder addIdNumber(AccountTokenCreateParams.Identity.Individual.IdNumber element) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.add(element); + return this; + } + + /** + * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.Individual#idNumbers} for the field documentation. + */ + public Builder addAllIdNumber( + List elements) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.addAll(elements); + return this; + } + + /** + * The individual's gender (International regulations require either "male" or + * "female"). + */ + public Builder setLegalGender( + AccountTokenCreateParams.Identity.Individual.LegalGender legalGender) { + this.legalGender = legalGender; + 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 + * AccountTokenCreateParams.Identity.Individual#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 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 + * AccountTokenCreateParams.Identity.Individual#metadata} for the field documentation. + */ + public Builder putMetadata(String key, EmptyParam 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. Map values can only be one of the following types: `String`, `EmptyParam`. See + * {@link AccountTokenCreateParams.Identity.Individual#metadata} for the field + * documentation. + */ + public Builder putAllMetadata(Map map) { + if (!map.values().stream() + .allMatch(v -> v instanceof String || v instanceof EmptyParam)) { + throw new IllegalArgumentException( + "All map values must one of the following types: String, EmptyParam"); + } + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.putAll(map); + return this; + } + + /** + * Add an element to `nationalities` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.Individual#nationalities} for the field documentation. + */ + public Builder addNationality(String element) { + if (this.nationalities == null) { + this.nationalities = new ArrayList<>(); + } + this.nationalities.add(element); + return this; + } + + /** + * Add all elements to `nationalities` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountTokenCreateParams.Identity.Individual#nationalities} for the field + * documentation. + */ + public Builder addAllNationality(List elements) { + if (this.nationalities == null) { + this.nationalities = new ArrayList<>(); + } + this.nationalities.addAll(elements); + return this; + } + + /** The individual's phone number. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; + } + + /** The individual's political exposure. */ + public Builder setPoliticalExposure( + AccountTokenCreateParams.Identity.Individual.PoliticalExposure politicalExposure) { + this.politicalExposure = politicalExposure; + return this; + } + + /** The relationship that this individual has with the account's identity. */ + public Builder setRelationship( + AccountTokenCreateParams.Identity.Individual.Relationship relationship) { + this.relationship = relationship; + return this; + } + + /** The script addresses (e.g., non-Latin characters) associated with the individual. */ + public Builder setScriptAddresses( + AccountTokenCreateParams.Identity.Individual.ScriptAddresses scriptAddresses) { + this.scriptAddresses = scriptAddresses; + return this; + } + + /** The individuals primary name in non latin script. */ + public Builder setScriptNames( + AccountTokenCreateParams.Identity.Individual.ScriptNames scriptNames) { + this.scriptNames = scriptNames; + return this; + } + + /** The individual's last name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalAddress { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** Required. Purpose of additional address. */ + @SerializedName("purpose") + Purpose purpose; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private AdditionalAddress( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + Purpose purpose, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.purpose = purpose; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private Purpose purpose; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.AdditionalAddress build() { + return new AccountTokenCreateParams.Identity.Individual.AdditionalAddress( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.purpose, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 + * AccountTokenCreateParams.Identity.Individual.AdditionalAddress#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 + * AccountTokenCreateParams.Identity.Individual.AdditionalAddress#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** Required. Purpose of additional address. */ + public Builder setPurpose( + AccountTokenCreateParams.Identity.Individual.AdditionalAddress.Purpose purpose) { + this.purpose = purpose; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("registered") + REGISTERED("registered"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Purpose(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalName { + /** + * 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 person's full name. */ + @SerializedName("full_name") + String fullName; + + /** The person's first or given name. */ + @SerializedName("given_name") + String givenName; + + /** Required. The purpose or type of the additional name. */ + @SerializedName("purpose") + Purpose purpose; + + /** The person's last or family name. */ + @SerializedName("surname") + String surname; + + private AdditionalName( + Map extraParams, + String fullName, + String givenName, + Purpose purpose, + String surname) { + this.extraParams = extraParams; + this.fullName = fullName; + this.givenName = givenName; + this.purpose = purpose; + this.surname = surname; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String fullName; + + private String givenName; + + private Purpose purpose; + + private String surname; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.AdditionalName build() { + return new AccountTokenCreateParams.Identity.Individual.AdditionalName( + this.extraParams, this.fullName, this.givenName, this.purpose, this.surname); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Individual.AdditionalName#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 + * AccountTokenCreateParams.Identity.Individual.AdditionalName#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 person's full name. */ + public Builder setFullName(String fullName) { + this.fullName = fullName; + return this; + } + + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** Required. The purpose or type of the additional name. */ + public Builder setPurpose( + AccountTokenCreateParams.Identity.Individual.AdditionalName.Purpose purpose) { + this.purpose = purpose; + return this; + } + + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("alias") + ALIAS("alias"), + + @SerializedName("maiden") + MAIDEN("maiden"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Purpose(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private Address( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.Address build() { + return new AccountTokenCreateParams.Identity.Individual.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 AccountTokenCreateParams.Identity.Individual.Address#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 AccountTokenCreateParams.Identity.Individual.Address#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class DateOfBirth { + /** Required. The day of the birth. */ + @SerializedName("day") + Long day; + + /** + * 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 month of birth. */ + @SerializedName("month") + Long month; + + /** Required. The year of birth. */ + @SerializedName("year") + Long year; + + private DateOfBirth(Long day, Map extraParams, Long month, Long year) { + this.day = day; + this.extraParams = extraParams; + this.month = month; + this.year = year; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long day; + + private Map extraParams; + + private Long month; + + private Long year; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.DateOfBirth build() { + return new AccountTokenCreateParams.Identity.Individual.DateOfBirth( + this.day, this.extraParams, this.month, this.year); + } + + /** Required. The day of the birth. */ + public Builder setDay(Long day) { + this.day = day; + 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 AccountTokenCreateParams.Identity.Individual.DateOfBirth#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 AccountTokenCreateParams.Identity.Individual.DateOfBirth#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 month of birth. */ + public Builder setMonth(Long month) { + this.month = month; + return this; + } + + /** Required. The year of birth. */ + public Builder setYear(Long year) { + this.year = year; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Documents { + /** + * One or more documents that demonstrate proof that this person is authorized to represent + * the company. + */ + @SerializedName("company_authorization") + CompanyAuthorization companyAuthorization; + + /** + * 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; + + /** + * One or more documents showing the person’s passport page with photo and personal data. + */ + @SerializedName("passport") + Passport passport; + + /** + * An identifying document showing the person's name, either a passport or local ID card. + */ + @SerializedName("primary_verification") + PrimaryVerification primaryVerification; + + /** + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. + */ + @SerializedName("secondary_verification") + SecondaryVerification secondaryVerification; + + /** + * One or more documents showing the person’s visa required for living in the country where + * they are residing. + */ + @SerializedName("visa") + Visa visa; + + private Documents( + CompanyAuthorization companyAuthorization, + Map extraParams, + Passport passport, + PrimaryVerification primaryVerification, + SecondaryVerification secondaryVerification, + Visa visa) { + this.companyAuthorization = companyAuthorization; + this.extraParams = extraParams; + this.passport = passport; + this.primaryVerification = primaryVerification; + this.secondaryVerification = secondaryVerification; + this.visa = visa; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private CompanyAuthorization companyAuthorization; + + private Map extraParams; + + private Passport passport; + + private PrimaryVerification primaryVerification; + + private SecondaryVerification secondaryVerification; + + private Visa visa; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.Documents build() { + return new AccountTokenCreateParams.Identity.Individual.Documents( + this.companyAuthorization, + this.extraParams, + this.passport, + this.primaryVerification, + this.secondaryVerification, + this.visa); + } + + /** + * One or more documents that demonstrate proof that this person is authorized to + * represent the company. + */ + public Builder setCompanyAuthorization( + AccountTokenCreateParams.Identity.Individual.Documents.CompanyAuthorization + companyAuthorization) { + this.companyAuthorization = companyAuthorization; + 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 AccountTokenCreateParams.Identity.Individual.Documents#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 AccountTokenCreateParams.Identity.Individual.Documents#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * One or more documents showing the person’s passport page with photo and personal data. + */ + public Builder setPassport( + AccountTokenCreateParams.Identity.Individual.Documents.Passport passport) { + this.passport = passport; + return this; + } + + /** + * An identifying document showing the person's name, either a passport or local ID card. + */ + public Builder setPrimaryVerification( + AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification + primaryVerification) { + this.primaryVerification = primaryVerification; + return this; + } + + /** + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. + */ + public Builder setSecondaryVerification( + AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification + secondaryVerification) { + this.secondaryVerification = secondaryVerification; + return this; + } + + /** + * One or more documents showing the person’s visa required for living in the country + * where they are residing. + */ + public Builder setVisa(AccountTokenCreateParams.Identity.Individual.Documents.Visa visa) { + this.visa = visa; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CompanyAuthorization { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private CompanyAuthorization( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.Documents.CompanyAuthorization + build() { + return new AccountTokenCreateParams.Identity.Individual.Documents + .CompanyAuthorization(this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Individual.Documents.CompanyAuthorization#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 + * AccountTokenCreateParams.Identity.Individual.Documents.CompanyAuthorization#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.Individual.Documents.CompanyAuthorization#files} + * for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.Individual.Documents.CompanyAuthorization#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.Individual.Documents.CompanyAuthorization.Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Passport { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private Passport(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.Documents.Passport build() { + return new AccountTokenCreateParams.Identity.Individual.Documents.Passport( + this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Individual.Documents.Passport#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 + * AccountTokenCreateParams.Identity.Individual.Documents.Passport#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.Individual.Documents.Passport#files} for the field + * documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.Individual.Documents.Passport#files} for the field + * documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.Individual.Documents.Passport.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PrimaryVerification { + /** + * 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 file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; + + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; + + private PrimaryVerification( + Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private FrontBack frontBack; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification + build() { + return new AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification( + this.extraParams, this.frontBack, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification#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 + * AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification#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 file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack + frontBack) { + this.frontBack = frontBack; + return this; + } + + /** + * Required. The format of the verification document. Currently + * supports {@code front_back} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification.Type + type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. The uploaded file needs to be a color image + * (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in + * size. + */ + @SerializedName("back") + String back; + + /** + * 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 file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. The uploaded file needs to be a color + * image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 + * MB in size. + */ + @SerializedName("front") + String front; + + private FrontBack(String back, Map extraParams, String front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String back; + + private Map extraParams; + + private String front; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification + .FrontBack + build() { + return new AccountTokenCreateParams.Identity.Individual.Documents + .PrimaryVerification.FrontBack(this.back, this.extraParams, this.front); + } + + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. The uploaded file needs to be a color + * image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than + * 10 MB in size. + */ + public Builder setBack(String back) { + this.back = back; + 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 + * AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack#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 + * AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack#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 file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. The uploaded file needs to be a color + * image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than + * 10 MB in size. + */ + public Builder setFront(String front) { + this.front = front; + return this; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class SecondaryVerification { + /** + * 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 file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; + + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; + + private SecondaryVerification( + Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private FrontBack frontBack; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification + build() { + return new AccountTokenCreateParams.Identity.Individual.Documents + .SecondaryVerification(this.extraParams, this.frontBack, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification#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 + * AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification#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 file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification + .FrontBack + frontBack) { + this.frontBack = frontBack; + return this; + } + + /** + * Required. The format of the verification document. Currently + * supports {@code front_back} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification.Type + type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. The uploaded file needs to be a color image + * (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in + * size. + */ + @SerializedName("back") + String back; + + /** + * 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 file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. The uploaded file needs to be a color + * image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 + * MB in size. + */ + @SerializedName("front") + String front; + + private FrontBack(String back, Map extraParams, String front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String back; + + private Map extraParams; + + private String front; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification + .FrontBack + build() { + return new AccountTokenCreateParams.Identity.Individual.Documents + .SecondaryVerification.FrontBack(this.back, this.extraParams, this.front); + } + + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. The uploaded file needs to be a color + * image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than + * 10 MB in size. + */ + public Builder setBack(String back) { + this.back = back; + 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 + * AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack#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 + * AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack#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 file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. The uploaded file needs to be a color + * image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than + * 10 MB in size. + */ + public Builder setFront(String front) { + this.front = front; + return this; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Visa { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private Visa(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.Documents.Visa build() { + return new AccountTokenCreateParams.Identity.Individual.Documents.Visa( + this.extraParams, this.files, this.type); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Individual.Documents.Visa#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 + * AccountTokenCreateParams.Identity.Individual.Documents.Visa#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 `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.Individual.Documents.Visa#files} for the field + * documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountTokenCreateParams.Identity.Individual.Documents.Visa#files} for the field + * documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountTokenCreateParams.Identity.Individual.Documents.Visa.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class IdNumber { + /** + * 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 ID number type of an individual. */ + @SerializedName("type") + Type type; + + /** Required. The value of the ID number. */ + @SerializedName("value") + String value; + + private IdNumber(Map extraParams, Type type, String value) { + this.extraParams = extraParams; + this.type = type; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + private String value; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.IdNumber build() { + return new AccountTokenCreateParams.Identity.Individual.IdNumber( + this.extraParams, this.type, this.value); + } + + /** + * 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 AccountTokenCreateParams.Identity.Individual.IdNumber#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 AccountTokenCreateParams.Identity.Individual.IdNumber#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 ID number type of an individual. */ + public Builder setType(AccountTokenCreateParams.Identity.Individual.IdNumber.Type type) { + this.type = type; + return this; + } + + /** Required. The value of the ID number. */ + public Builder setValue(String value) { + this.value = value; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ae_eid") + AE_EID("ae_eid"), + + @SerializedName("ao_nif") + AO_NIF("ao_nif"), + + @SerializedName("ar_dni") + AR_DNI("ar_dni"), + + @SerializedName("az_tin") + AZ_TIN("az_tin"), + + @SerializedName("bd_brc") + BD_BRC("bd_brc"), + + @SerializedName("bd_etin") + BD_ETIN("bd_etin"), + + @SerializedName("bd_nid") + BD_NID("bd_nid"), + + @SerializedName("br_cpf") + BR_CPF("br_cpf"), + + @SerializedName("cr_cpf") + CR_CPF("cr_cpf"), + + @SerializedName("cr_dimex") + CR_DIMEX("cr_dimex"), + + @SerializedName("cr_nite") + CR_NITE("cr_nite"), + + @SerializedName("de_stn") + DE_STN("de_stn"), + + @SerializedName("do_rcn") + DO_RCN("do_rcn"), + + @SerializedName("gt_nit") + GT_NIT("gt_nit"), + + @SerializedName("hk_id") + HK_ID("hk_id"), + + @SerializedName("kz_iin") + KZ_IIN("kz_iin"), + + @SerializedName("mx_rfc") + MX_RFC("mx_rfc"), + + @SerializedName("my_nric") + MY_NRIC("my_nric"), + + @SerializedName("mz_nuit") + MZ_NUIT("mz_nuit"), + + @SerializedName("nl_bsn") + NL_BSN("nl_bsn"), + + @SerializedName("pe_dni") + PE_DNI("pe_dni"), + + @SerializedName("pk_cnic") + PK_CNIC("pk_cnic"), + + @SerializedName("pk_snic") + PK_SNIC("pk_snic"), + + @SerializedName("sa_tin") + SA_TIN("sa_tin"), + + @SerializedName("sg_fin") + SG_FIN("sg_fin"), + + @SerializedName("sg_nric") + SG_NRIC("sg_nric"), + + @SerializedName("th_lc") + TH_LC("th_lc"), + + @SerializedName("th_pin") + TH_PIN("th_pin"), + + @SerializedName("us_itin") + US_ITIN("us_itin"), + + @SerializedName("us_itin_last_4") + US_ITIN_LAST_4("us_itin_last_4"), + + @SerializedName("us_ssn") + US_SSN("us_ssn"), + + @SerializedName("us_ssn_last_4") + US_SSN_LAST_4("us_ssn_last_4"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Relationship { + /** + * Whether the person is a director of the account's identity. Directors are typically + * members of the governing board of the company, or responsible for ensuring the company + * meets its regulatory obligations. + */ + @SerializedName("director") + Boolean director; + + /** + * Whether the person has significant responsibility to control, manage, or direct the + * organization. + */ + @SerializedName("executive") + Boolean executive; + + /** + * 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; + + /** Whether the person is an owner of the account’s identity. */ + @SerializedName("owner") + Boolean owner; + + /** The percent owned by the person of the account's legal entity. */ + @SerializedName("percent_ownership") + String percentOwnership; + + /** The person's title (e.g., CEO, Support Engineer). */ + @SerializedName("title") + String title; + + private Relationship( + Boolean director, + Boolean executive, + Map extraParams, + Boolean owner, + String percentOwnership, + String title) { + this.director = director; + this.executive = executive; + this.extraParams = extraParams; + this.owner = owner; + this.percentOwnership = percentOwnership; + this.title = title; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean director; + + private Boolean executive; + + private Map extraParams; + + private Boolean owner; + + private String percentOwnership; + + private String title; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.Relationship build() { + return new AccountTokenCreateParams.Identity.Individual.Relationship( + this.director, + this.executive, + this.extraParams, + this.owner, + this.percentOwnership, + this.title); + } + + /** + * Whether the person is a director of the account's identity. Directors are typically + * members of the governing board of the company, or responsible for ensuring the company + * meets its regulatory obligations. + */ + public Builder setDirector(Boolean director) { + this.director = director; + return this; + } + + /** + * Whether the person has significant responsibility to control, manage, or direct the + * organization. + */ + public Builder setExecutive(Boolean executive) { + this.executive = executive; + 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 AccountTokenCreateParams.Identity.Individual.Relationship#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 AccountTokenCreateParams.Identity.Individual.Relationship#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Whether the person is an owner of the account’s identity. */ + public Builder setOwner(Boolean owner) { + this.owner = owner; + return this; + } + + /** The percent owned by the person of the account's legal entity. */ + public Builder setPercentOwnership(String percentOwnership) { + this.percentOwnership = percentOwnership; + return this; + } + + /** The person's title (e.g., CEO, Support Engineer). */ + public Builder setTitle(String title) { + this.title = title; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptAddresses { + /** + * 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; + + /** Kana Address. */ + @SerializedName("kana") + Kana kana; + + /** Kanji Address. */ + @SerializedName("kanji") + Kanji kanji; + + private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Kana kana; + + private Kanji kanji; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.ScriptAddresses build() { + return new AccountTokenCreateParams.Identity.Individual.ScriptAddresses( + this.extraParams, this.kana, this.kanji); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Individual.ScriptAddresses#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 + * AccountTokenCreateParams.Identity.Individual.ScriptAddresses#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Kana Address. */ + public Builder setKana( + AccountTokenCreateParams.Identity.Individual.ScriptAddresses.Kana kana) { + this.kana = kana; + return this; + } + + /** Kanji Address. */ + public Builder setKanji( + AccountTokenCreateParams.Identity.Individual.ScriptAddresses.Kanji kanji) { + this.kanji = kanji; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private Kana( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.ScriptAddresses.Kana build() { + return new AccountTokenCreateParams.Identity.Individual.ScriptAddresses.Kana( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 + * AccountTokenCreateParams.Identity.Individual.ScriptAddresses.Kana#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 + * AccountTokenCreateParams.Identity.Individual.ScriptAddresses.Kana#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private Kanji( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.ScriptAddresses.Kanji build() { + return new AccountTokenCreateParams.Identity.Individual.ScriptAddresses.Kanji( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 + * AccountTokenCreateParams.Identity.Individual.ScriptAddresses.Kanji#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 + * AccountTokenCreateParams.Identity.Individual.ScriptAddresses.Kanji#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptNames { + /** + * 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; + + /** Persons name in kana script. */ + @SerializedName("kana") + Kana kana; + + /** Persons name in kanji script. */ + @SerializedName("kanji") + Kanji kanji; + + private ScriptNames(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Kana kana; + + private Kanji kanji; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.ScriptNames build() { + return new AccountTokenCreateParams.Identity.Individual.ScriptNames( + this.extraParams, this.kana, this.kanji); + } + + /** + * 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 AccountTokenCreateParams.Identity.Individual.ScriptNames#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 AccountTokenCreateParams.Identity.Individual.ScriptNames#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Persons name in kana script. */ + public Builder setKana( + AccountTokenCreateParams.Identity.Individual.ScriptNames.Kana kana) { + this.kana = kana; + return this; + } + + /** Persons name in kanji script. */ + public Builder setKanji( + AccountTokenCreateParams.Identity.Individual.ScriptNames.Kanji kanji) { + this.kanji = kanji; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** + * 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 person's first or given name. */ + @SerializedName("given_name") + String givenName; + + /** The person's last or family name. */ + @SerializedName("surname") + String surname; + + private Kana(Map extraParams, String givenName, String surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String givenName; + + private String surname; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.ScriptNames.Kana build() { + return new AccountTokenCreateParams.Identity.Individual.ScriptNames.Kana( + this.extraParams, this.givenName, this.surname); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Individual.ScriptNames.Kana#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 + * AccountTokenCreateParams.Identity.Individual.ScriptNames.Kana#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 person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** + * 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 person's first or given name. */ + @SerializedName("given_name") + String givenName; + + /** The person's last or family name. */ + @SerializedName("surname") + String surname; + + private Kanji(Map extraParams, String givenName, String surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String givenName; + + private String surname; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountTokenCreateParams.Identity.Individual.ScriptNames.Kanji build() { + return new AccountTokenCreateParams.Identity.Individual.ScriptNames.Kanji( + this.extraParams, this.givenName, this.surname); + } + + /** + * 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 + * AccountTokenCreateParams.Identity.Individual.ScriptNames.Kanji#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 + * AccountTokenCreateParams.Identity.Individual.ScriptNames.Kanji#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 person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + } + } + + public enum LegalGender implements ApiRequestParams.EnumParam { + @SerializedName("female") + FEMALE("female"), + + @SerializedName("male") + MALE("male"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + LegalGender(String value) { + this.value = value; + } + } + + public enum PoliticalExposure implements ApiRequestParams.EnumParam { + @SerializedName("existing") + EXISTING("existing"), + + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PoliticalExposure(String value) { + this.value = value; + } + } + } + + public enum EntityType implements ApiRequestParams.EnumParam { + @SerializedName("company") + COMPANY("company"), + + @SerializedName("government_entity") + GOVERNMENT_ENTITY("government_entity"), + + @SerializedName("individual") + INDIVIDUAL("individual"), + + @SerializedName("non_profit") + NON_PROFIT("non_profit"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + EntityType(String value) { + this.value = value; + } + } + } +} 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 01456e22f20..5d872dfaa14 100644 --- a/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java @@ -4,7 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; import com.stripe.param.common.EmptyParam; -import com.stripe.v2.Amount; import java.time.Instant; import java.util.ArrayList; import java.util.HashMap; @@ -16,6 +15,10 @@ @Getter @EqualsAndHashCode(callSuper = false) public class AccountUpdateParams extends ApiRequestParams { + /** The account token generated by the account token api. */ + @SerializedName("account_token") + Object accountToken; + /** * An Account Configuration which allows the Account to take on a key persona across Stripe * products. @@ -73,6 +76,7 @@ public class AccountUpdateParams extends ApiRequestParams { Map metadata; private AccountUpdateParams( + Object accountToken, Configuration configuration, Object contactEmail, Dashboard dashboard, @@ -82,6 +86,7 @@ private AccountUpdateParams( Identity identity, List include, Map metadata) { + this.accountToken = accountToken; this.configuration = configuration; this.contactEmail = contactEmail; this.dashboard = dashboard; @@ -98,6 +103,8 @@ public static Builder builder() { } public static class Builder { + private Object accountToken; + private Configuration configuration; private Object contactEmail; @@ -119,6 +126,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountUpdateParams build() { return new AccountUpdateParams( + this.accountToken, this.configuration, this.contactEmail, this.dashboard, @@ -130,6 +138,18 @@ public AccountUpdateParams build() { this.metadata); } + /** The account token generated by the account token api. */ + public Builder setAccountToken(String accountToken) { + this.accountToken = accountToken; + return this; + } + + /** The account token generated by the account token api. */ + public Builder setAccountToken(EmptyParam accountToken) { + this.accountToken = accountToken; + return this; + } + /** * An Account Configuration which allows the Account to take on a key persona across Stripe * products. @@ -1897,9 +1917,9 @@ public static class AutomaticIndirectTax { Object ipAddress; /** - * The data source used to identify the customer's tax location - defaults to - * 'identity_address'. Will only be used for automatic tax calculation on the customer's - * Invoices and Subscriptions. + * The data source used to identify the customer's tax location - defaults to {@code + * identity_address}. Will only be used for automatic tax calculation on the customer's + * Invoices and Subscriptions. This behavior is now deprecated for new users. */ @SerializedName("location_source") LocationSource locationSource; @@ -2007,9 +2027,9 @@ public Builder setIpAddress(EmptyParam ipAddress) { } /** - * The data source used to identify the customer's tax location - defaults to - * 'identity_address'. Will only be used for automatic tax calculation on the customer's - * Invoices and Subscriptions. + * The data source used to identify the customer's tax location - defaults to {@code + * identity_address}. Will only be used for automatic tax calculation on the customer's + * Invoices and Subscriptions. This behavior is now deprecated for new users. */ public Builder setLocationSource( AccountUpdateParams.Configuration.Customer.AutomaticIndirectTax.LocationSource @@ -2636,8 +2656,7 @@ public static class Capabilities { /** * Generates requirements for enabling automatic indirect tax calculation on this customer's * invoices or subscriptions. Recommended to request this capability if planning to enable - * automatic tax calculation on this customer's invoices or subscriptions. Uses the {@code - * location_source} field. + * automatic tax calculation on this customer's invoices or subscriptions. */ @SerializedName("automatic_indirect_tax") AutomaticIndirectTax automaticIndirectTax; @@ -2677,7 +2696,7 @@ public AccountUpdateParams.Configuration.Customer.Capabilities build() { * Generates requirements for enabling automatic indirect tax calculation on this * customer's invoices or subscriptions. Recommended to request this capability if * planning to enable automatic tax calculation on this customer's invoices or - * subscriptions. Uses the {@code location_source} field. + * subscriptions. */ public Builder setAutomaticIndirectTax( AccountUpdateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax @@ -3148,6 +3167,10 @@ public static class Merchant { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Settings specific to Konbini payments on the account. */ + @SerializedName("konbini_payments") + KonbiniPayments konbiniPayments; + /** * The merchant category code for the merchant. MCCs are used to classify businesses based on * the goods or services they provide. @@ -3155,6 +3178,10 @@ public static class Merchant { @SerializedName("mcc") Object mcc; + /** Settings for the default text that appears on statements for language variations. */ + @SerializedName("script_statement_descriptor") + ScriptStatementDescriptor scriptStatementDescriptor; + /** Statement descriptor. */ @SerializedName("statement_descriptor") StatementDescriptor statementDescriptor; @@ -3170,7 +3197,9 @@ private Merchant( Capabilities capabilities, CardPayments cardPayments, Map extraParams, + KonbiniPayments konbiniPayments, Object mcc, + ScriptStatementDescriptor scriptStatementDescriptor, StatementDescriptor statementDescriptor, Support support) { this.applied = applied; @@ -3179,7 +3208,9 @@ private Merchant( this.capabilities = capabilities; this.cardPayments = cardPayments; this.extraParams = extraParams; + this.konbiniPayments = konbiniPayments; this.mcc = mcc; + this.scriptStatementDescriptor = scriptStatementDescriptor; this.statementDescriptor = statementDescriptor; this.support = support; } @@ -3201,8 +3232,12 @@ public static class Builder { private Map extraParams; + private KonbiniPayments konbiniPayments; + private Object mcc; + private ScriptStatementDescriptor scriptStatementDescriptor; + private StatementDescriptor statementDescriptor; private Support support; @@ -3216,7 +3251,9 @@ public AccountUpdateParams.Configuration.Merchant build() { this.capabilities, this.cardPayments, this.extraParams, + this.konbiniPayments, this.mcc, + this.scriptStatementDescriptor, this.statementDescriptor, this.support); } @@ -3288,6 +3325,13 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Settings specific to Konbini payments on the account. */ + public Builder setKonbiniPayments( + AccountUpdateParams.Configuration.Merchant.KonbiniPayments konbiniPayments) { + this.konbiniPayments = konbiniPayments; + return this; + } + /** * The merchant category code for the merchant. MCCs are used to classify businesses based * on the goods or services they provide. @@ -3306,6 +3350,14 @@ public Builder setMcc(EmptyParam mcc) { return this; } + /** Settings for the default text that appears on statements for language variations. */ + public Builder setScriptStatementDescriptor( + AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor + scriptStatementDescriptor) { + this.scriptStatementDescriptor = scriptStatementDescriptor; + return this; + } + /** Statement descriptor. */ public Builder setStatementDescriptor( AccountUpdateParams.Configuration.Merchant.StatementDescriptor statementDescriptor) { @@ -8116,11 +8168,703 @@ public Builder putExtraParam(String key, Object value) { * AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for * the field documentation. */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class KonbiniPayments { + /** + * 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; + + /** Support for Konbini payments. */ + @SerializedName("support") + Support support; + + private KonbiniPayments(Map extraParams, Support support) { + this.extraParams = extraParams; + this.support = support; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Support support; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.KonbiniPayments build() { + return new AccountUpdateParams.Configuration.Merchant.KonbiniPayments( + this.extraParams, this.support); + } + + /** + * 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 AccountUpdateParams.Configuration.Merchant.KonbiniPayments#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 AccountUpdateParams.Configuration.Merchant.KonbiniPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Support for Konbini payments. */ + public Builder setSupport( + AccountUpdateParams.Configuration.Merchant.KonbiniPayments.Support support) { + this.support = support; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Support { + /** Support email address for Konbini payments. */ + @SerializedName("email") + Object email; + + /** + * 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; + + /** Support hours for Konbini payments. */ + @SerializedName("hours") + Hours hours; + + /** Support phone number for Konbini payments. */ + @SerializedName("phone") + Object phone; + + private Support( + Object email, Map extraParams, Hours hours, Object phone) { + this.email = email; + this.extraParams = extraParams; + this.hours = hours; + this.phone = phone; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object email; + + private Map extraParams; + + private Hours hours; + + private Object phone; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.KonbiniPayments.Support build() { + return new AccountUpdateParams.Configuration.Merchant.KonbiniPayments.Support( + this.email, this.extraParams, this.hours, this.phone); + } + + /** Support email address for Konbini payments. */ + public Builder setEmail(String email) { + this.email = email; + return this; + } + + /** Support email address for Konbini payments. */ + public Builder setEmail(EmptyParam email) { + this.email = email; + 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 + * AccountUpdateParams.Configuration.Merchant.KonbiniPayments.Support#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 + * AccountUpdateParams.Configuration.Merchant.KonbiniPayments.Support#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Support hours for Konbini payments. */ + public Builder setHours( + AccountUpdateParams.Configuration.Merchant.KonbiniPayments.Support.Hours hours) { + this.hours = hours; + return this; + } + + /** Support phone number for Konbini payments. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; + } + + /** Support phone number for Konbini payments. */ + public Builder setPhone(EmptyParam phone) { + this.phone = phone; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Hours { + /** Support hours end time (JST time of day) for in {@code HH:MM} format. */ + @SerializedName("end_time") + Object endTime; + + /** + * 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; + + /** Support hours start time (JST time of day) for in {@code HH:MM} format. */ + @SerializedName("start_time") + Object startTime; + + private Hours(Object endTime, Map extraParams, Object startTime) { + this.endTime = endTime; + this.extraParams = extraParams; + this.startTime = startTime; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object endTime; + + private Map extraParams; + + private Object startTime; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.KonbiniPayments.Support.Hours + build() { + return new AccountUpdateParams.Configuration.Merchant.KonbiniPayments.Support.Hours( + this.endTime, this.extraParams, this.startTime); + } + + /** Support hours end time (JST time of day) for in {@code HH:MM} format. */ + public Builder setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** Support hours end time (JST time of day) for in {@code HH:MM} format. */ + public Builder setEndTime(EmptyParam endTime) { + this.endTime = endTime; + 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 + * AccountUpdateParams.Configuration.Merchant.KonbiniPayments.Support.Hours#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 + * AccountUpdateParams.Configuration.Merchant.KonbiniPayments.Support.Hours#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Support hours start time (JST time of day) for in {@code HH:MM} format. */ + public Builder setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** Support hours start time (JST time of day) for in {@code HH:MM} format. */ + public Builder setStartTime(EmptyParam startTime) { + this.startTime = startTime; + return this; + } + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptStatementDescriptor { + /** + * 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 Kana variation of statement_descriptor used for charges in Japan. Japanese statement + * descriptors have special + * requirements. + */ + @SerializedName("kana") + Kana kana; + + /** + * The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement + * descriptors have special + * requirements. + */ + @SerializedName("kanji") + Kanji kanji; + + private ScriptStatementDescriptor(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Kana kana; + + private Kanji kanji; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor build() { + return new AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor( + this.extraParams, this.kana, this.kanji); + } + + /** + * 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 + * AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor#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 + * AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor#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 Kana variation of statement_descriptor used for charges in Japan. Japanese + * statement descriptors have special + * requirements. + */ + public Builder setKana( + AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana kana) { + this.kana = kana; + return this; + } + + /** + * The Kanji variation of statement_descriptor used for charges in Japan. Japanese + * statement descriptors have special + * requirements. + */ + public Builder setKanji( + AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji kanji) { + this.kanji = kanji; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the statement_descriptor text to limit the full descriptor to 22 characters. + * For more information about statement descriptors and their requirements, see the + * Merchant Configuration settings documentation. + */ + @SerializedName("descriptor") + Object descriptor; + + /** + * 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; + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for + * the dynamic part of the descriptor, keep this text short. If you don’t specify this + * value, statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + @SerializedName("prefix") + Object prefix; + + private Kana(Object descriptor, Map extraParams, Object prefix) { + this.descriptor = descriptor; + this.extraParams = extraParams; + this.prefix = prefix; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object descriptor; + + private Map extraParams; + + private Object prefix; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana + build() { + return new AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana( + this.descriptor, this.extraParams, this.prefix); + } + + /** + * The default text that appears on statements for non-card charges outside of Japan. + * For card charges, if you don’t set a statement_descriptor_prefix, this text is also + * used as the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, + * we truncate the statement_descriptor text to limit the full descriptor to 22 + * characters. For more information about statement descriptors and their requirements, + * see the Merchant Configuration settings documentation. + */ + public Builder setDescriptor(String descriptor) { + this.descriptor = descriptor; + return this; + } + + /** + * The default text that appears on statements for non-card charges outside of Japan. + * For card charges, if you don’t set a statement_descriptor_prefix, this text is also + * used as the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, + * we truncate the statement_descriptor text to limit the full descriptor to 22 + * characters. For more information about statement descriptors and their requirements, + * see the Merchant Configuration settings documentation. + */ + public Builder setDescriptor(EmptyParam descriptor) { + this.descriptor = descriptor; + 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 + * AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana#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 + * AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space + * for the dynamic part of the descriptor, keep this text short. If you don’t specify + * this value, statement_descriptor is used as the prefix. For more information about + * statement descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + public Builder setPrefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space + * for the dynamic part of the descriptor, keep this text short. If you don’t specify + * this value, statement_descriptor is used as the prefix. For more information about + * statement descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + public Builder setPrefix(EmptyParam prefix) { + this.prefix = prefix; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the statement_descriptor text to limit the full descriptor to 22 characters. + * For more information about statement descriptors and their requirements, see the + * Merchant Configuration settings documentation. + */ + @SerializedName("descriptor") + Object descriptor; + + /** + * 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; + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for + * the dynamic part of the descriptor, keep this text short. If you don’t specify this + * value, statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + @SerializedName("prefix") + Object prefix; + + private Kanji(Object descriptor, Map extraParams, Object prefix) { + this.descriptor = descriptor; + this.extraParams = extraParams; + this.prefix = prefix; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object descriptor; + + private Map extraParams; + + private Object prefix; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji + build() { + return new AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji( + this.descriptor, this.extraParams, this.prefix); + } + + /** + * The default text that appears on statements for non-card charges outside of Japan. + * For card charges, if you don’t set a statement_descriptor_prefix, this text is also + * used as the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, + * we truncate the statement_descriptor text to limit the full descriptor to 22 + * characters. For more information about statement descriptors and their requirements, + * see the Merchant Configuration settings documentation. + */ + public Builder setDescriptor(String descriptor) { + this.descriptor = descriptor; + return this; + } + + /** + * The default text that appears on statements for non-card charges outside of Japan. + * For card charges, if you don’t set a statement_descriptor_prefix, this text is also + * used as the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, + * we truncate the statement_descriptor text to limit the full descriptor to 22 + * characters. For more information about statement descriptors and their requirements, + * see the Merchant Configuration settings documentation. + */ + public Builder setDescriptor(EmptyParam descriptor) { + this.descriptor = descriptor; + 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 + * AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji#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 + * AccountUpdateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space + * for the dynamic part of the descriptor, keep this text short. If you don’t specify + * this value, statement_descriptor is used as the prefix. For more information about + * statement descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + public Builder setPrefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space + * for the dynamic part of the descriptor, keep this text short. If you don’t specify + * this value, statement_descriptor is used as the prefix. For more information about + * statement descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + public Builder setPrefix(EmptyParam prefix) { + this.prefix = prefix; return this; } } @@ -8648,7 +9392,7 @@ public static class Recipient { * PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via * dashboard. Can also be explicitly set to {@code null} to clear the existing default * outbound destination. For further details about creating an Outbound Destination, see Collect + * href="https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details">Collect * recipient's payment details. */ @SerializedName("default_outbound_destination") @@ -8714,7 +9458,7 @@ public Builder setCapabilities( * PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via * dashboard. Can also be explicitly set to {@code null} to clear the existing default * outbound destination. For further details about creating an Outbound Destination, see Collect + * href="https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details">Collect * recipient's payment details. */ public Builder setDefaultOutboundDestination(String defaultOutboundDestination) { @@ -8727,7 +9471,7 @@ public Builder setDefaultOutboundDestination(String defaultOutboundDestination) * PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via * dashboard. Can also be explicitly set to {@code null} to clear the existing default * outbound destination. For further details about creating an Outbound Destination, see Collect + * href="https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details">Collect * recipient's payment details. */ public Builder setDefaultOutboundDestination(EmptyParam defaultOutboundDestination) { @@ -10202,6 +10946,10 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) public static class HoldsCurrencies { + /** Can hold storage-type funds on Stripe in EUR. */ + @SerializedName("eur") + Eur eur; + /** * 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. @@ -10224,7 +10972,9 @@ public static class HoldsCurrencies { @SerializedName("usdc") Usdc usdc; - private HoldsCurrencies(Map extraParams, Gbp gbp, Usd usd, Usdc usdc) { + private HoldsCurrencies( + Eur eur, Map extraParams, Gbp gbp, Usd usd, Usdc usdc) { + this.eur = eur; this.extraParams = extraParams; this.gbp = gbp; this.usd = usd; @@ -10236,6 +10986,8 @@ public static Builder builder() { } public static class Builder { + private Eur eur; + private Map extraParams; private Gbp gbp; @@ -10247,7 +10999,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies build() { return new AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies( - this.extraParams, this.gbp, this.usd, this.usdc); + this.eur, this.extraParams, this.gbp, this.usd, this.usdc); + } + + /** Can hold storage-type funds on Stripe in EUR. */ + public Builder setEur( + AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Eur eur) { + this.eur = eur; + return this; } /** @@ -10302,6 +11061,88 @@ public Builder setUsdc( } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Eur { + /** + * 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; + + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; + + private Eur(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Eur + build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies + .Eur(this.extraParams, this.requested); + } + + /** + * 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 + * AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Eur#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 + * AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Eur#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Gbp { @@ -18176,7 +19017,8 @@ public AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue build() { } /** A non-negative integer representing the amount in the smallest currency unit. */ - public Builder setAmount(Amount amount) { + public Builder setAmount( + AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue.Amount amount) { this.amount = amount; return this; } @@ -18227,6 +19069,118 @@ public Builder setFiscalYearEnd(EmptyParam fiscalYearEnd) { return this; } } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + @SerializedName("currency") + Object currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(Object currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue.Amount build() { + return new AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue.Amount( + this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + return this; + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + public Builder setCurrency(EmptyParam currency) { + this.currency = currency; + 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 + * AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue.Amount#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 + * AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } } @Getter @@ -20093,6 +21047,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ao_nif") AO_NIF("ao_nif"), + @SerializedName("ar_cuit") + AR_CUIT("ar_cuit"), + @SerializedName("at_fn") AT_FN("at_fn"), @@ -20347,7 +21304,8 @@ public AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue buil } /** A non-negative integer representing the amount in the smallest currency unit. */ - public Builder setAmount(Amount amount) { + public Builder setAmount( + AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount amount) { this.amount = amount; return this; } @@ -20382,6 +21340,119 @@ public Builder putAllExtraParam(Map map) { return this; } } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + @SerializedName("currency") + Object currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(Object currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount + build() { + return new AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue + .Amount(this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + return this; + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported currency. + */ + public Builder setCurrency(EmptyParam currency) { + this.currency = currency; + 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 + * AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount#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 + * AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } } @Getter @@ -23628,6 +24699,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ao_nif") AO_NIF("ao_nif"), + @SerializedName("ar_dni") + AR_DNI("ar_dni"), + @SerializedName("az_tin") AZ_TIN("az_tin"), @@ -24788,6 +25862,9 @@ public enum Include implements ApiRequestParams.EnumParam { @SerializedName("defaults") DEFAULTS("defaults"), + @SerializedName("future_requirements") + FUTURE_REQUIREMENTS("future_requirements"), + @SerializedName("identity") IDENTITY("identity"), diff --git a/src/main/java/com/stripe/param/v2/core/EventListParams.java b/src/main/java/com/stripe/param/v2/core/EventListParams.java index be4f3b17dbd..c0d2274654f 100644 --- a/src/main/java/com/stripe/param/v2/core/EventListParams.java +++ b/src/main/java/com/stripe/param/v2/core/EventListParams.java @@ -14,6 +14,10 @@ @Getter @EqualsAndHashCode(callSuper = false) public class EventListParams extends ApiRequestParams { + /** Set of filters to query events within a range of {@code created} timestamps. */ + @SerializedName("created") + Created created; + /** * 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 @@ -23,26 +27,10 @@ public class EventListParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Filter for events created after the specified timestamp. */ - @SerializedName("gt") - Instant gt; - - /** Filter for events created at or after the specified timestamp. */ - @SerializedName("gte") - Instant gte; - /** The page size. */ @SerializedName("limit") Long limit; - /** Filter for events created before the specified timestamp. */ - @SerializedName("lt") - Instant lt; - - /** Filter for events created at or before the specified timestamp. */ - @SerializedName("lte") - Instant lte; - /** Primary object ID used to retrieve related events. */ @SerializedName("object_id") String objectId; @@ -52,20 +40,14 @@ public class EventListParams extends ApiRequestParams { List types; private EventListParams( + Created created, Map extraParams, - Instant gt, - Instant gte, Long limit, - Instant lt, - Instant lte, String objectId, List types) { + this.created = created; this.extraParams = extraParams; - this.gt = gt; - this.gte = gte; this.limit = limit; - this.lt = lt; - this.lte = lte; this.objectId = objectId; this.types = types; } @@ -75,18 +57,12 @@ public static Builder builder() { } public static class Builder { - private Map extraParams; - - private Instant gt; + private Created created; - private Instant gte; + private Map extraParams; private Long limit; - private Instant lt; - - private Instant lte; - private String objectId; private List types; @@ -94,14 +70,13 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public EventListParams build() { return new EventListParams( - this.extraParams, - this.gt, - this.gte, - this.limit, - this.lt, - this.lte, - this.objectId, - this.types); + this.created, this.extraParams, this.limit, this.objectId, this.types); + } + + /** Set of filters to query events within a range of {@code created} timestamps. */ + public Builder setCreated(EventListParams.Created created) { + this.created = created; + return this; } /** @@ -130,36 +105,12 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Filter for events created after the specified timestamp. */ - public Builder setGt(Instant gt) { - this.gt = gt; - return this; - } - - /** Filter for events created at or after the specified timestamp. */ - public Builder setGte(Instant gte) { - this.gte = gte; - return this; - } - /** The page size. */ public Builder setLimit(Long limit) { this.limit = limit; return this; } - /** Filter for events created before the specified timestamp. */ - public Builder setLt(Instant lt) { - this.lt = lt; - return this; - } - - /** Filter for events created at or before the specified timestamp. */ - public Builder setLte(Instant lte) { - this.lte = lte; - return this; - } - /** Primary object ID used to retrieve related events. */ public Builder setObjectId(String objectId) { this.objectId = objectId; @@ -192,4 +143,113 @@ public Builder addAllType(List elements) { return this; } } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Created { + /** + * 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 for events created after the specified timestamp. */ + @SerializedName("gt") + Instant gt; + + /** Filter for events created at or after the specified timestamp. */ + @SerializedName("gte") + Instant gte; + + /** Filter for events created before the specified timestamp. */ + @SerializedName("lt") + Instant lt; + + /** Filter for events created at or before the specified timestamp. */ + @SerializedName("lte") + Instant lte; + + private Created( + Map extraParams, Instant gt, Instant gte, Instant lt, Instant lte) { + this.extraParams = extraParams; + this.gt = gt; + this.gte = gte; + this.lt = lt; + this.lte = lte; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Instant gt; + + private Instant gte; + + private Instant lt; + + private Instant lte; + + /** Finalize and obtain parameter instance from this builder. */ + public EventListParams.Created build() { + return new EventListParams.Created(this.extraParams, this.gt, this.gte, this.lt, this.lte); + } + + /** + * 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 + * EventListParams.Created#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 EventListParams.Created#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 for events created after the specified timestamp. */ + public Builder setGt(Instant gt) { + this.gt = gt; + return this; + } + + /** Filter for events created at or after the specified timestamp. */ + public Builder setGte(Instant gte) { + this.gte = gte; + return this; + } + + /** Filter for events created before the specified timestamp. */ + public Builder setLt(Instant lt) { + this.lt = lt; + return this; + } + + /** Filter for events created at or before the specified timestamp. */ + public Builder setLte(Instant lte) { + this.lte = lte; + 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 0359efc61a8..3e428bab328 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 @@ -77,6 +77,10 @@ public class PersonCreateParams extends ApiRequestParams { @SerializedName("nationalities") List nationalities; + /** The person token generated by the person token api. */ + @SerializedName("person_token") + String personToken; + /** The phone number for this person. */ @SerializedName("phone") String phone; @@ -115,6 +119,7 @@ private PersonCreateParams( LegalGender legalGender, Map metadata, List nationalities, + String personToken, String phone, PoliticalExposure politicalExposure, Relationship relationship, @@ -134,6 +139,7 @@ private PersonCreateParams( this.legalGender = legalGender; this.metadata = metadata; this.nationalities = nationalities; + this.personToken = personToken; this.phone = phone; this.politicalExposure = politicalExposure; this.relationship = relationship; @@ -173,6 +179,8 @@ public static class Builder { private List nationalities; + private String personToken; + private String phone; private PoliticalExposure politicalExposure; @@ -201,6 +209,7 @@ public PersonCreateParams build() { this.legalGender, this.metadata, this.nationalities, + this.personToken, this.phone, this.politicalExposure, this.relationship, @@ -411,6 +420,12 @@ public Builder addAllNationality(List elements) { return this; } + /** The person token generated by the person token api. */ + public Builder setPersonToken(String personToken) { + this.personToken = personToken; + return this; + } + /** The phone number for this person. */ public Builder setPhone(String phone) { this.phone = phone; @@ -2292,6 +2307,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ao_nif") AO_NIF("ao_nif"), + @SerializedName("ar_dni") + AR_DNI("ar_dni"), + @SerializedName("az_tin") AZ_TIN("az_tin"), 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 new file mode 100644 index 00000000000..52981796e9c --- /dev/null +++ b/src/main/java/com/stripe/param/v2/core/accounts/PersonTokenCreateParams.java @@ -0,0 +1,3263 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.core.accounts; + +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; + +@Getter +@EqualsAndHashCode(callSuper = false) +public class PersonTokenCreateParams extends ApiRequestParams { + /** Additional addresses associated with the person. */ + @SerializedName("additional_addresses") + List additionalAddresses; + + /** Additional names (e.g. aliases) associated with the person. */ + @SerializedName("additional_names") + List additionalNames; + + /** Attestations of accepted terms of service agreements. */ + @SerializedName("additional_terms_of_service") + AdditionalTermsOfService additionalTermsOfService; + + /** The person's residential address. */ + @SerializedName("address") + Address address; + + /** The person's date of birth. */ + @SerializedName("date_of_birth") + DateOfBirth dateOfBirth; + + /** Documents that may be submitted to satisfy various informational requests. */ + @SerializedName("documents") + Documents documents; + + /** Email. */ + @SerializedName("email") + String email; + + /** + * 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 person's first name. */ + @SerializedName("given_name") + String givenName; + + /** The identification numbers (e.g., SSN) associated with the person. */ + @SerializedName("id_numbers") + List idNumbers; + + /** + * The person's gender (International regulations require either "male" or + * "female"). + */ + @SerializedName("legal_gender") + LegalGender legalGender; + + /** + * Set of key-value pairs that you can attach to an object. This can be useful for storing + * additional information about the object in a structured format. + */ + @SerializedName("metadata") + Map metadata; + + /** The nationalities (countries) this person is associated with. */ + @SerializedName("nationalities") + List nationalities; + + /** The phone number for this person. */ + @SerializedName("phone") + String phone; + + /** The person's political exposure. */ + @SerializedName("political_exposure") + PoliticalExposure politicalExposure; + + /** The relationship that this person has with the Account's business or legal entity. */ + @SerializedName("relationship") + Relationship relationship; + + /** The script addresses (e.g., non-Latin characters) associated with the person. */ + @SerializedName("script_addresses") + ScriptAddresses scriptAddresses; + + /** The script names (e.g. non-Latin characters) associated with the person. */ + @SerializedName("script_names") + ScriptNames scriptNames; + + /** The person's last name. */ + @SerializedName("surname") + String surname; + + private PersonTokenCreateParams( + List additionalAddresses, + List additionalNames, + AdditionalTermsOfService additionalTermsOfService, + Address address, + DateOfBirth dateOfBirth, + Documents documents, + String email, + Map extraParams, + String givenName, + List idNumbers, + LegalGender legalGender, + Map metadata, + List nationalities, + String phone, + PoliticalExposure politicalExposure, + Relationship relationship, + ScriptAddresses scriptAddresses, + ScriptNames scriptNames, + String surname) { + this.additionalAddresses = additionalAddresses; + this.additionalNames = additionalNames; + this.additionalTermsOfService = additionalTermsOfService; + this.address = address; + this.dateOfBirth = dateOfBirth; + this.documents = documents; + this.email = email; + this.extraParams = extraParams; + this.givenName = givenName; + this.idNumbers = idNumbers; + this.legalGender = legalGender; + this.metadata = metadata; + this.nationalities = nationalities; + this.phone = phone; + this.politicalExposure = politicalExposure; + this.relationship = relationship; + this.scriptAddresses = scriptAddresses; + this.scriptNames = scriptNames; + this.surname = surname; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List additionalAddresses; + + private List additionalNames; + + private AdditionalTermsOfService additionalTermsOfService; + + private Address address; + + private DateOfBirth dateOfBirth; + + private Documents documents; + + private String email; + + private Map extraParams; + + private String givenName; + + private List idNumbers; + + private LegalGender legalGender; + + private Map metadata; + + private List nationalities; + + private String phone; + + private PoliticalExposure politicalExposure; + + private Relationship relationship; + + private ScriptAddresses scriptAddresses; + + private ScriptNames scriptNames; + + private String surname; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams build() { + return new PersonTokenCreateParams( + this.additionalAddresses, + this.additionalNames, + this.additionalTermsOfService, + this.address, + this.dateOfBirth, + this.documents, + this.email, + this.extraParams, + this.givenName, + this.idNumbers, + this.legalGender, + this.metadata, + this.nationalities, + this.phone, + this.politicalExposure, + this.relationship, + this.scriptAddresses, + this.scriptNames, + this.surname); + } + + /** + * Add an element to `additionalAddresses` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link PersonTokenCreateParams#additionalAddresses} for the field documentation. + */ + public Builder addAdditionalAddress(PersonTokenCreateParams.AdditionalAddress element) { + if (this.additionalAddresses == null) { + this.additionalAddresses = new ArrayList<>(); + } + this.additionalAddresses.add(element); + return this; + } + + /** + * Add all elements to `additionalAddresses` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. See + * {@link PersonTokenCreateParams#additionalAddresses} for the field documentation. + */ + public Builder addAllAdditionalAddress( + List elements) { + if (this.additionalAddresses == null) { + this.additionalAddresses = new ArrayList<>(); + } + this.additionalAddresses.addAll(elements); + return this; + } + + /** + * Add an element to `additionalNames` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams#additionalNames} for the field documentation. + */ + public Builder addAdditionalName(PersonTokenCreateParams.AdditionalName element) { + if (this.additionalNames == null) { + this.additionalNames = new ArrayList<>(); + } + this.additionalNames.add(element); + return this; + } + + /** + * Add all elements to `additionalNames` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams#additionalNames} for the field documentation. + */ + public Builder addAllAdditionalName(List elements) { + if (this.additionalNames == null) { + this.additionalNames = new ArrayList<>(); + } + this.additionalNames.addAll(elements); + return this; + } + + /** Attestations of accepted terms of service agreements. */ + public Builder setAdditionalTermsOfService( + PersonTokenCreateParams.AdditionalTermsOfService additionalTermsOfService) { + this.additionalTermsOfService = additionalTermsOfService; + return this; + } + + /** The person's residential address. */ + public Builder setAddress(PersonTokenCreateParams.Address address) { + this.address = address; + return this; + } + + /** The person's date of birth. */ + public Builder setDateOfBirth(PersonTokenCreateParams.DateOfBirth dateOfBirth) { + this.dateOfBirth = dateOfBirth; + return this; + } + + /** Documents that may be submitted to satisfy various informational requests. */ + public Builder setDocuments(PersonTokenCreateParams.Documents documents) { + this.documents = documents; + return this; + } + + /** Email. */ + public Builder setEmail(String email) { + this.email = email; + 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 + * PersonTokenCreateParams#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 PersonTokenCreateParams#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 person's first name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** + * Add an element to `idNumbers` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams#idNumbers} for the field documentation. + */ + public Builder addIdNumber(PersonTokenCreateParams.IdNumber element) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.add(element); + return this; + } + + /** + * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams#idNumbers} for the field documentation. + */ + public Builder addAllIdNumber(List elements) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.addAll(elements); + return this; + } + + /** + * The person's gender (International regulations require either "male" or + * "female"). + */ + public Builder setLegalGender(PersonTokenCreateParams.LegalGender legalGender) { + this.legalGender = legalGender; + 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 + * PersonTokenCreateParams#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 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 + * PersonTokenCreateParams#metadata} for the field documentation. + */ + public Builder putMetadata(String key, EmptyParam 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. + * Map values can only be one of the following types: `String`, `EmptyParam`. See {@link + * PersonTokenCreateParams#metadata} for the field documentation. + */ + public Builder putAllMetadata(Map map) { + if (!map.values().stream().allMatch(v -> v instanceof String || v instanceof EmptyParam)) { + throw new IllegalArgumentException( + "All map values must one of the following types: String, EmptyParam"); + } + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.putAll(map); + return this; + } + + /** + * Add an element to `nationalities` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams#nationalities} for the field documentation. + */ + public Builder addNationality(String element) { + if (this.nationalities == null) { + this.nationalities = new ArrayList<>(); + } + this.nationalities.add(element); + return this; + } + + /** + * Add all elements to `nationalities` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams#nationalities} for the field documentation. + */ + public Builder addAllNationality(List elements) { + if (this.nationalities == null) { + this.nationalities = new ArrayList<>(); + } + this.nationalities.addAll(elements); + return this; + } + + /** The phone number for this person. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; + } + + /** The person's political exposure. */ + public Builder setPoliticalExposure( + PersonTokenCreateParams.PoliticalExposure politicalExposure) { + this.politicalExposure = politicalExposure; + return this; + } + + /** The relationship that this person has with the Account's business or legal entity. */ + public Builder setRelationship(PersonTokenCreateParams.Relationship relationship) { + this.relationship = relationship; + return this; + } + + /** The script addresses (e.g., non-Latin characters) associated with the person. */ + public Builder setScriptAddresses(PersonTokenCreateParams.ScriptAddresses scriptAddresses) { + this.scriptAddresses = scriptAddresses; + return this; + } + + /** The script names (e.g. non-Latin characters) associated with the person. */ + public Builder setScriptNames(PersonTokenCreateParams.ScriptNames scriptNames) { + this.scriptNames = scriptNames; + return this; + } + + /** The person's last name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalAddress { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** Required. Purpose of additional address. */ + @SerializedName("purpose") + Purpose purpose; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private AdditionalAddress( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + Purpose purpose, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.purpose = purpose; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private Purpose purpose; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.AdditionalAddress build() { + return new PersonTokenCreateParams.AdditionalAddress( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.purpose, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 + * PersonTokenCreateParams.AdditionalAddress#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 PersonTokenCreateParams.AdditionalAddress#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** Required. Purpose of additional address. */ + public Builder setPurpose(PersonTokenCreateParams.AdditionalAddress.Purpose purpose) { + this.purpose = purpose; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("registered") + REGISTERED("registered"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Purpose(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalName { + /** + * 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 person's full name. */ + @SerializedName("full_name") + String fullName; + + /** The person's first or given name. */ + @SerializedName("given_name") + String givenName; + + /** Required. The purpose or type of the additional name. */ + @SerializedName("purpose") + Purpose purpose; + + /** The person's last or family name. */ + @SerializedName("surname") + String surname; + + private AdditionalName( + Map extraParams, + String fullName, + String givenName, + Purpose purpose, + String surname) { + this.extraParams = extraParams; + this.fullName = fullName; + this.givenName = givenName; + this.purpose = purpose; + this.surname = surname; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String fullName; + + private String givenName; + + private Purpose purpose; + + private String surname; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.AdditionalName build() { + return new PersonTokenCreateParams.AdditionalName( + this.extraParams, this.fullName, this.givenName, this.purpose, this.surname); + } + + /** + * 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 + * PersonTokenCreateParams.AdditionalName#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 PersonTokenCreateParams.AdditionalName#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 person's full name. */ + public Builder setFullName(String fullName) { + this.fullName = fullName; + return this; + } + + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** Required. The purpose or type of the additional name. */ + public Builder setPurpose(PersonTokenCreateParams.AdditionalName.Purpose purpose) { + this.purpose = purpose; + return this; + } + + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("alias") + ALIAS("alias"), + + @SerializedName("maiden") + MAIDEN("maiden"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Purpose(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalTermsOfService { + /** + * Details on the Person's acceptance of the [Stripe Services Agreement]; IP, date, and User + * Agent are expanded by Stripe. + */ + @SerializedName("account") + Account account; + + /** + * 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; + + private AdditionalTermsOfService(Account account, Map extraParams) { + this.account = account; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Account account; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.AdditionalTermsOfService build() { + return new PersonTokenCreateParams.AdditionalTermsOfService(this.account, this.extraParams); + } + + /** + * Details on the Person's acceptance of the [Stripe Services Agreement]; IP, date, and User + * Agent are expanded by Stripe. + */ + public Builder setAccount(PersonTokenCreateParams.AdditionalTermsOfService.Account account) { + this.account = account; + 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 + * PersonTokenCreateParams.AdditionalTermsOfService#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 PersonTokenCreateParams.AdditionalTermsOfService#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Account { + /** + * 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 boolean value indicating if the terms of service have been accepted. */ + @SerializedName("shown_and_accepted") + Boolean shownAndAccepted; + + private Account(Map extraParams, Boolean shownAndAccepted) { + this.extraParams = extraParams; + this.shownAndAccepted = shownAndAccepted; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean shownAndAccepted; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.AdditionalTermsOfService.Account build() { + return new PersonTokenCreateParams.AdditionalTermsOfService.Account( + this.extraParams, this.shownAndAccepted); + } + + /** + * 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 PersonTokenCreateParams.AdditionalTermsOfService.Account#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 PersonTokenCreateParams.AdditionalTermsOfService.Account#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 boolean value indicating if the terms of service have been accepted. */ + public Builder setShownAndAccepted(Boolean shownAndAccepted) { + this.shownAndAccepted = shownAndAccepted; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private Address( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.Address build() { + return new PersonTokenCreateParams.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 + * PersonTokenCreateParams.Address#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 PersonTokenCreateParams.Address#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class DateOfBirth { + /** Required. The day of the birth. */ + @SerializedName("day") + Long day; + + /** + * 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 month of birth. */ + @SerializedName("month") + Long month; + + /** Required. The year of birth. */ + @SerializedName("year") + Long year; + + private DateOfBirth(Long day, Map extraParams, Long month, Long year) { + this.day = day; + this.extraParams = extraParams; + this.month = month; + this.year = year; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long day; + + private Map extraParams; + + private Long month; + + private Long year; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.DateOfBirth build() { + return new PersonTokenCreateParams.DateOfBirth( + this.day, this.extraParams, this.month, this.year); + } + + /** Required. The day of the birth. */ + public Builder setDay(Long day) { + this.day = day; + 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 + * PersonTokenCreateParams.DateOfBirth#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 PersonTokenCreateParams.DateOfBirth#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 month of birth. */ + public Builder setMonth(Long month) { + this.month = month; + return this; + } + + /** Required. The year of birth. */ + public Builder setYear(Long year) { + this.year = year; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Documents { + /** + * One or more documents that demonstrate proof that this person is authorized to represent the + * company. + */ + @SerializedName("company_authorization") + CompanyAuthorization companyAuthorization; + + /** + * 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; + + /** One or more documents showing the person’s passport page with photo and personal data. */ + @SerializedName("passport") + Passport passport; + + /** An identifying document showing the person's name, either a passport or local ID card. */ + @SerializedName("primary_verification") + PrimaryVerification primaryVerification; + + /** + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. + */ + @SerializedName("secondary_verification") + SecondaryVerification secondaryVerification; + + /** + * One or more documents showing the person’s visa required for living in the country where they + * are residing. + */ + @SerializedName("visa") + Visa visa; + + private Documents( + CompanyAuthorization companyAuthorization, + Map extraParams, + Passport passport, + PrimaryVerification primaryVerification, + SecondaryVerification secondaryVerification, + Visa visa) { + this.companyAuthorization = companyAuthorization; + this.extraParams = extraParams; + this.passport = passport; + this.primaryVerification = primaryVerification; + this.secondaryVerification = secondaryVerification; + this.visa = visa; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private CompanyAuthorization companyAuthorization; + + private Map extraParams; + + private Passport passport; + + private PrimaryVerification primaryVerification; + + private SecondaryVerification secondaryVerification; + + private Visa visa; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.Documents build() { + return new PersonTokenCreateParams.Documents( + this.companyAuthorization, + this.extraParams, + this.passport, + this.primaryVerification, + this.secondaryVerification, + this.visa); + } + + /** + * One or more documents that demonstrate proof that this person is authorized to represent + * the company. + */ + public Builder setCompanyAuthorization( + PersonTokenCreateParams.Documents.CompanyAuthorization companyAuthorization) { + this.companyAuthorization = companyAuthorization; + 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 + * PersonTokenCreateParams.Documents#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 PersonTokenCreateParams.Documents#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** One or more documents showing the person’s passport page with photo and personal data. */ + public Builder setPassport(PersonTokenCreateParams.Documents.Passport passport) { + this.passport = passport; + return this; + } + + /** An identifying document showing the person's name, either a passport or local ID card. */ + public Builder setPrimaryVerification( + PersonTokenCreateParams.Documents.PrimaryVerification primaryVerification) { + this.primaryVerification = primaryVerification; + return this; + } + + /** + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. + */ + public Builder setSecondaryVerification( + PersonTokenCreateParams.Documents.SecondaryVerification secondaryVerification) { + this.secondaryVerification = secondaryVerification; + return this; + } + + /** + * One or more documents showing the person’s visa required for living in the country where + * they are residing. + */ + public Builder setVisa(PersonTokenCreateParams.Documents.Visa visa) { + this.visa = visa; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CompanyAuthorization { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private CompanyAuthorization(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.Documents.CompanyAuthorization build() { + return new PersonTokenCreateParams.Documents.CompanyAuthorization( + this.extraParams, this.files, this.type); + } + + /** + * 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 PersonTokenCreateParams.Documents.CompanyAuthorization#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 PersonTokenCreateParams.Documents.CompanyAuthorization#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 `files` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams.Documents.CompanyAuthorization#files} for the field + * documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams.Documents.CompanyAuthorization#files} for the field + * documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + public Builder setType(PersonTokenCreateParams.Documents.CompanyAuthorization.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Passport { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private Passport(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.Documents.Passport build() { + return new PersonTokenCreateParams.Documents.Passport( + this.extraParams, this.files, this.type); + } + + /** + * 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 PersonTokenCreateParams.Documents.Passport#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 PersonTokenCreateParams.Documents.Passport#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 `files` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams.Documents.Passport#files} for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams.Documents.Passport#files} for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + public Builder setType(PersonTokenCreateParams.Documents.Passport.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PrimaryVerification { + /** + * 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 file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; + + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; + + private PrimaryVerification(Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private FrontBack frontBack; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.Documents.PrimaryVerification build() { + return new PersonTokenCreateParams.Documents.PrimaryVerification( + this.extraParams, this.frontBack, this.type); + } + + /** + * 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 PersonTokenCreateParams.Documents.PrimaryVerification#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 PersonTokenCreateParams.Documents.PrimaryVerification#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 file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + PersonTokenCreateParams.Documents.PrimaryVerification.FrontBack frontBack) { + this.frontBack = frontBack; + return this; + } + + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + public Builder setType(PersonTokenCreateParams.Documents.PrimaryVerification.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload token + * representing the back of the verification document. The purpose of the uploaded file + * should be 'identity_document'. The uploaded file needs to be a color image (smaller than + * 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + */ + @SerializedName("back") + String back; + + /** + * 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 file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. The uploaded file needs to be a color image (smaller than + * 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + */ + @SerializedName("front") + String front; + + private FrontBack(String back, Map extraParams, String front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String back; + + private Map extraParams; + + private String front; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.Documents.PrimaryVerification.FrontBack build() { + return new PersonTokenCreateParams.Documents.PrimaryVerification.FrontBack( + this.back, this.extraParams, this.front); + } + + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. The uploaded file needs to be a color image + * (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in + * size. + */ + public Builder setBack(String back) { + this.back = back; + 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 + * PersonTokenCreateParams.Documents.PrimaryVerification.FrontBack#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 + * PersonTokenCreateParams.Documents.PrimaryVerification.FrontBack#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 file upload + * token representing the front of the verification document. The purpose of the uploaded + * file should be 'identity_document'. The uploaded file needs to be a color image + * (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in + * size. + */ + public Builder setFront(String front) { + this.front = front; + return this; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class SecondaryVerification { + /** + * 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 file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; + + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; + + private SecondaryVerification( + Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private FrontBack frontBack; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.Documents.SecondaryVerification build() { + return new PersonTokenCreateParams.Documents.SecondaryVerification( + this.extraParams, this.frontBack, this.type); + } + + /** + * 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 PersonTokenCreateParams.Documents.SecondaryVerification#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 PersonTokenCreateParams.Documents.SecondaryVerification#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 file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + PersonTokenCreateParams.Documents.SecondaryVerification.FrontBack frontBack) { + this.frontBack = frontBack; + return this; + } + + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + public Builder setType(PersonTokenCreateParams.Documents.SecondaryVerification.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload token + * representing the back of the verification document. The purpose of the uploaded file + * should be 'identity_document'. The uploaded file needs to be a color image (smaller than + * 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + */ + @SerializedName("back") + String back; + + /** + * 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 file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. The uploaded file needs to be a color image (smaller than + * 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + */ + @SerializedName("front") + String front; + + private FrontBack(String back, Map extraParams, String front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String back; + + private Map extraParams; + + private String front; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.Documents.SecondaryVerification.FrontBack build() { + return new PersonTokenCreateParams.Documents.SecondaryVerification.FrontBack( + this.back, this.extraParams, this.front); + } + + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. The uploaded file needs to be a color image + * (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in + * size. + */ + public Builder setBack(String back) { + this.back = back; + 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 + * PersonTokenCreateParams.Documents.SecondaryVerification.FrontBack#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 + * PersonTokenCreateParams.Documents.SecondaryVerification.FrontBack#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 file upload + * token representing the front of the verification document. The purpose of the uploaded + * file should be 'identity_document'. The uploaded file needs to be a color image + * (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in + * size. + */ + public Builder setFront(String front) { + this.front = front; + return this; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Visa { + /** + * 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. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private Visa(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.Documents.Visa build() { + return new PersonTokenCreateParams.Documents.Visa( + this.extraParams, this.files, this.type); + } + + /** + * 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 PersonTokenCreateParams.Documents.Visa#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 PersonTokenCreateParams.Documents.Visa#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 `files` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams.Documents.Visa#files} for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } + + /** + * Add all elements to `files` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * PersonTokenCreateParams.Documents.Visa#files} for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + public Builder setType(PersonTokenCreateParams.Documents.Visa.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class IdNumber { + /** + * 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 ID number type of an individual. */ + @SerializedName("type") + Type type; + + /** Required. The value of the ID number. */ + @SerializedName("value") + String value; + + private IdNumber(Map extraParams, Type type, String value) { + this.extraParams = extraParams; + this.type = type; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + private String value; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.IdNumber build() { + return new PersonTokenCreateParams.IdNumber(this.extraParams, this.type, this.value); + } + + /** + * 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 + * PersonTokenCreateParams.IdNumber#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 PersonTokenCreateParams.IdNumber#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 ID number type of an individual. */ + public Builder setType(PersonTokenCreateParams.IdNumber.Type type) { + this.type = type; + return this; + } + + /** Required. The value of the ID number. */ + public Builder setValue(String value) { + this.value = value; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ae_eid") + AE_EID("ae_eid"), + + @SerializedName("ao_nif") + AO_NIF("ao_nif"), + + @SerializedName("ar_dni") + AR_DNI("ar_dni"), + + @SerializedName("az_tin") + AZ_TIN("az_tin"), + + @SerializedName("bd_brc") + BD_BRC("bd_brc"), + + @SerializedName("bd_etin") + BD_ETIN("bd_etin"), + + @SerializedName("bd_nid") + BD_NID("bd_nid"), + + @SerializedName("br_cpf") + BR_CPF("br_cpf"), + + @SerializedName("cr_cpf") + CR_CPF("cr_cpf"), + + @SerializedName("cr_dimex") + CR_DIMEX("cr_dimex"), + + @SerializedName("cr_nite") + CR_NITE("cr_nite"), + + @SerializedName("de_stn") + DE_STN("de_stn"), + + @SerializedName("do_rcn") + DO_RCN("do_rcn"), + + @SerializedName("gt_nit") + GT_NIT("gt_nit"), + + @SerializedName("hk_id") + HK_ID("hk_id"), + + @SerializedName("kz_iin") + KZ_IIN("kz_iin"), + + @SerializedName("mx_rfc") + MX_RFC("mx_rfc"), + + @SerializedName("my_nric") + MY_NRIC("my_nric"), + + @SerializedName("mz_nuit") + MZ_NUIT("mz_nuit"), + + @SerializedName("nl_bsn") + NL_BSN("nl_bsn"), + + @SerializedName("pe_dni") + PE_DNI("pe_dni"), + + @SerializedName("pk_cnic") + PK_CNIC("pk_cnic"), + + @SerializedName("pk_snic") + PK_SNIC("pk_snic"), + + @SerializedName("sa_tin") + SA_TIN("sa_tin"), + + @SerializedName("sg_fin") + SG_FIN("sg_fin"), + + @SerializedName("sg_nric") + SG_NRIC("sg_nric"), + + @SerializedName("th_lc") + TH_LC("th_lc"), + + @SerializedName("th_pin") + TH_PIN("th_pin"), + + @SerializedName("us_itin") + US_ITIN("us_itin"), + + @SerializedName("us_itin_last_4") + US_ITIN_LAST_4("us_itin_last_4"), + + @SerializedName("us_ssn") + US_SSN("us_ssn"), + + @SerializedName("us_ssn_last_4") + US_SSN_LAST_4("us_ssn_last_4"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Relationship { + /** Whether the individual is an authorizer of the Account’s legal entity. */ + @SerializedName("authorizer") + Boolean authorizer; + + /** Indicates whether the person is a director of the associated legal entity. */ + @SerializedName("director") + Boolean director; + + /** Indicates whether the person is an executive of the associated legal entity. */ + @SerializedName("executive") + Boolean executive; + + /** + * 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; + + /** Indicates whether the person is a legal guardian of the associated legal entity. */ + @SerializedName("legal_guardian") + Boolean legalGuardian; + + /** Indicates whether the person is an owner of the associated legal entity. */ + @SerializedName("owner") + Boolean owner; + + /** The percentage of ownership the person has in the associated legal entity. */ + @SerializedName("percent_ownership") + String percentOwnership; + + /** Indicates whether the person is a representative of the associated legal entity. */ + @SerializedName("representative") + Boolean representative; + + /** The title or position the person holds in the associated legal entity. */ + @SerializedName("title") + String title; + + private Relationship( + Boolean authorizer, + Boolean director, + Boolean executive, + Map extraParams, + Boolean legalGuardian, + Boolean owner, + String percentOwnership, + Boolean representative, + String title) { + this.authorizer = authorizer; + this.director = director; + this.executive = executive; + this.extraParams = extraParams; + this.legalGuardian = legalGuardian; + this.owner = owner; + this.percentOwnership = percentOwnership; + this.representative = representative; + this.title = title; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean authorizer; + + private Boolean director; + + private Boolean executive; + + private Map extraParams; + + private Boolean legalGuardian; + + private Boolean owner; + + private String percentOwnership; + + private Boolean representative; + + private String title; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.Relationship build() { + return new PersonTokenCreateParams.Relationship( + this.authorizer, + this.director, + this.executive, + this.extraParams, + this.legalGuardian, + this.owner, + this.percentOwnership, + this.representative, + this.title); + } + + /** Whether the individual is an authorizer of the Account’s legal entity. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + + /** Indicates whether the person is a director of the associated legal entity. */ + public Builder setDirector(Boolean director) { + this.director = director; + return this; + } + + /** Indicates whether the person is an executive of the associated legal entity. */ + public Builder setExecutive(Boolean executive) { + this.executive = executive; + 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 + * PersonTokenCreateParams.Relationship#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 PersonTokenCreateParams.Relationship#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Indicates whether the person is a legal guardian of the associated legal entity. */ + public Builder setLegalGuardian(Boolean legalGuardian) { + this.legalGuardian = legalGuardian; + return this; + } + + /** Indicates whether the person is an owner of the associated legal entity. */ + public Builder setOwner(Boolean owner) { + this.owner = owner; + return this; + } + + /** The percentage of ownership the person has in the associated legal entity. */ + public Builder setPercentOwnership(String percentOwnership) { + this.percentOwnership = percentOwnership; + return this; + } + + /** Indicates whether the person is a representative of the associated legal entity. */ + public Builder setRepresentative(Boolean representative) { + this.representative = representative; + return this; + } + + /** The title or position the person holds in the associated legal entity. */ + public Builder setTitle(String title) { + this.title = title; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptAddresses { + /** + * 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; + + /** Kana Address. */ + @SerializedName("kana") + Kana kana; + + /** Kanji Address. */ + @SerializedName("kanji") + Kanji kanji; + + private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Kana kana; + + private Kanji kanji; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.ScriptAddresses build() { + return new PersonTokenCreateParams.ScriptAddresses(this.extraParams, this.kana, this.kanji); + } + + /** + * 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 + * PersonTokenCreateParams.ScriptAddresses#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 PersonTokenCreateParams.ScriptAddresses#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Kana Address. */ + public Builder setKana(PersonTokenCreateParams.ScriptAddresses.Kana kana) { + this.kana = kana; + return this; + } + + /** Kanji Address. */ + public Builder setKanji(PersonTokenCreateParams.ScriptAddresses.Kanji kanji) { + this.kanji = kanji; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private Kana( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.ScriptAddresses.Kana build() { + return new PersonTokenCreateParams.ScriptAddresses.Kana( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 PersonTokenCreateParams.ScriptAddresses.Kana#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 PersonTokenCreateParams.ScriptAddresses.Kana#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private Kanji( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + this.town = town; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String city; + + private String country; + + private Map extraParams; + + private String line1; + + private String line2; + + private String postalCode; + + private String state; + + private String town; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.ScriptAddresses.Kanji build() { + return new PersonTokenCreateParams.ScriptAddresses.Kanji( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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 PersonTokenCreateParams.ScriptAddresses.Kanji#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 PersonTokenCreateParams.ScriptAddresses.Kanji#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptNames { + /** + * 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; + + /** Persons name in kana script. */ + @SerializedName("kana") + Kana kana; + + /** Persons name in kanji script. */ + @SerializedName("kanji") + Kanji kanji; + + private ScriptNames(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Kana kana; + + private Kanji kanji; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.ScriptNames build() { + return new PersonTokenCreateParams.ScriptNames(this.extraParams, this.kana, this.kanji); + } + + /** + * 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 + * PersonTokenCreateParams.ScriptNames#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 PersonTokenCreateParams.ScriptNames#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Persons name in kana script. */ + public Builder setKana(PersonTokenCreateParams.ScriptNames.Kana kana) { + this.kana = kana; + return this; + } + + /** Persons name in kanji script. */ + public Builder setKanji(PersonTokenCreateParams.ScriptNames.Kanji kanji) { + this.kanji = kanji; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** + * 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 person's first or given name. */ + @SerializedName("given_name") + String givenName; + + /** The person's last or family name. */ + @SerializedName("surname") + String surname; + + private Kana(Map extraParams, String givenName, String surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String givenName; + + private String surname; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.ScriptNames.Kana build() { + return new PersonTokenCreateParams.ScriptNames.Kana( + this.extraParams, this.givenName, this.surname); + } + + /** + * 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 PersonTokenCreateParams.ScriptNames.Kana#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 PersonTokenCreateParams.ScriptNames.Kana#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 person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** + * 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 person's first or given name. */ + @SerializedName("given_name") + String givenName; + + /** The person's last or family name. */ + @SerializedName("surname") + String surname; + + private Kanji(Map extraParams, String givenName, String surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String givenName; + + private String surname; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonTokenCreateParams.ScriptNames.Kanji build() { + return new PersonTokenCreateParams.ScriptNames.Kanji( + this.extraParams, this.givenName, this.surname); + } + + /** + * 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 PersonTokenCreateParams.ScriptNames.Kanji#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 PersonTokenCreateParams.ScriptNames.Kanji#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 person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + } + } + + public enum LegalGender implements ApiRequestParams.EnumParam { + @SerializedName("female") + FEMALE("female"), + + @SerializedName("male") + MALE("male"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + LegalGender(String value) { + this.value = value; + } + } + + public enum PoliticalExposure implements ApiRequestParams.EnumParam { + @SerializedName("existing") + EXISTING("existing"), + + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PoliticalExposure(String value) { + this.value = value; + } + } +} 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 ee996fdc0e0..93306020e7b 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 @@ -78,6 +78,10 @@ public class PersonUpdateParams extends ApiRequestParams { @SerializedName("nationalities") List nationalities; + /** The person token generated by the person token api. */ + @SerializedName("person_token") + Object personToken; + /** The phone number for this person. */ @SerializedName("phone") Object phone; @@ -116,6 +120,7 @@ private PersonUpdateParams( LegalGender legalGender, Map metadata, List nationalities, + Object personToken, Object phone, PoliticalExposure politicalExposure, Relationship relationship, @@ -135,6 +140,7 @@ private PersonUpdateParams( this.legalGender = legalGender; this.metadata = metadata; this.nationalities = nationalities; + this.personToken = personToken; this.phone = phone; this.politicalExposure = politicalExposure; this.relationship = relationship; @@ -174,6 +180,8 @@ public static class Builder { private List nationalities; + private Object personToken; + private Object phone; private PoliticalExposure politicalExposure; @@ -202,6 +210,7 @@ public PersonUpdateParams build() { this.legalGender, this.metadata, this.nationalities, + this.personToken, this.phone, this.politicalExposure, this.relationship, @@ -442,6 +451,18 @@ public Builder addAllNationality(List elements) { return this; } + /** The person token generated by the person token api. */ + public Builder setPersonToken(String personToken) { + this.personToken = personToken; + return this; + } + + /** The person token generated by the person token api. */ + public Builder setPersonToken(EmptyParam personToken) { + this.personToken = personToken; + return this; + } + /** The phone number for this person. */ public Builder setPhone(String phone) { this.phone = phone; @@ -2504,6 +2525,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ao_nif") AO_NIF("ao_nif"), + @SerializedName("ar_dni") + AR_DNI("ar_dni"), + @SerializedName("az_tin") AZ_TIN("az_tin"), diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java new file mode 100644 index 00000000000..bd8b9db3ea9 --- /dev/null +++ b/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java @@ -0,0 +1,476 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.moneymanagement; + +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 CurrencyConversionCreateParams 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 FinancialAccount id to create the CurrencyConversion on. */ + @SerializedName("financial_account") + String financialAccount; + + /** + * Required. From amount object indicating the from currency or optional amount. + */ + @SerializedName("from") + From from; + + /** 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) { + this.extraParams = extraParams; + this.financialAccount = financialAccount; + this.from = from; + this.to = to; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String financialAccount; + + private From from; + + 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); + } + + /** + * 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 + * CurrencyConversionCreateParams#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 CurrencyConversionCreateParams#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 FinancialAccount id to create the CurrencyConversion on. */ + public Builder setFinancialAccount(String financialAccount) { + this.financialAccount = financialAccount; + return this; + } + + /** + * Required. From amount object indicating the from currency or optional + * amount. + */ + public Builder setFrom(CurrencyConversionCreateParams.From from) { + this.from = from; + return this; + } + + /** + * Required. To amount object indicating the to currency or optional amount. + */ + public Builder setTo(CurrencyConversionCreateParams.To to) { + this.to = to; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class From { + /** Amount object. */ + @SerializedName("amount") + Amount amount; + + /** A lowercase alpha3 currency code like "usd". */ + @SerializedName("currency") + String currency; + + /** + * 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; + + private From(Amount amount, String currency, Map extraParams) { + this.amount = amount; + this.currency = currency; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Amount amount; + + private String currency; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public CurrencyConversionCreateParams.From build() { + return new CurrencyConversionCreateParams.From( + this.amount, this.currency, this.extraParams); + } + + /** Amount object. */ + public Builder setAmount(CurrencyConversionCreateParams.From.Amount amount) { + this.amount = amount; + return this; + } + + /** A lowercase alpha3 currency code like "usd". */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * CurrencyConversionCreateParams.From#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 CurrencyConversionCreateParams.From#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public CurrencyConversionCreateParams.From.Amount build() { + return new CurrencyConversionCreateParams.From.Amount( + this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 CurrencyConversionCreateParams.From.Amount#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 CurrencyConversionCreateParams.From.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class To { + /** Amount object. */ + @SerializedName("amount") + Amount amount; + + /** A lowercase alpha3 currency code like "usd". */ + @SerializedName("currency") + String currency; + + /** + * 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; + + private To(Amount amount, String currency, Map extraParams) { + this.amount = amount; + this.currency = currency; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Amount amount; + + private String currency; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public CurrencyConversionCreateParams.To build() { + return new CurrencyConversionCreateParams.To(this.amount, this.currency, this.extraParams); + } + + /** Amount object. */ + public Builder setAmount(CurrencyConversionCreateParams.To.Amount amount) { + this.amount = amount; + return this; + } + + /** A lowercase alpha3 currency code like "usd". */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * CurrencyConversionCreateParams.To#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 CurrencyConversionCreateParams.To#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public CurrencyConversionCreateParams.To.Amount build() { + return new CurrencyConversionCreateParams.To.Amount( + this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 CurrencyConversionCreateParams.To.Amount#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 CurrencyConversionCreateParams.To.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + } +} diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionListParams.java new file mode 100644 index 00000000000..067c78ded33 --- /dev/null +++ b/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionListParams.java @@ -0,0 +1,92 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.moneymanagement; + +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 CurrencyConversionListParams 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 ID of the FinancialAccount to filter by. */ + @SerializedName("financial_account") + String financialAccount; + + /** The page limit. */ + @SerializedName("limit") + Long limit; + + private CurrencyConversionListParams( + Map extraParams, String financialAccount, Long limit) { + this.extraParams = extraParams; + this.financialAccount = financialAccount; + this.limit = limit; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String financialAccount; + + private Long limit; + + /** Finalize and obtain parameter instance from this builder. */ + public CurrencyConversionListParams build() { + return new CurrencyConversionListParams(this.extraParams, this.financialAccount, 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 + * CurrencyConversionListParams#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 CurrencyConversionListParams#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 ID of the FinancialAccount to filter by. */ + public Builder setFinancialAccount(String financialAccount) { + this.financialAccount = financialAccount; + return this; + } + + /** The page limit. */ + public Builder setLimit(Long limit) { + this.limit = limit; + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferCreateParams.java index 9be96532c88..65544c4cbe0 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferCreateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferCreateParams.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; -import com.stripe.v2.Amount; import java.util.HashMap; import java.util.Map; import lombok.EqualsAndHashCode; @@ -76,7 +75,7 @@ public InboundTransferCreateParams build() { * Required. The amount, in specified currency, by which the FinancialAccount * balance will increase due to the InboundTransfer. */ - public Builder setAmount(Amount amount) { + public Builder setAmount(InboundTransferCreateParams.Amount amount) { this.amount = amount; return this; } @@ -129,6 +128,102 @@ public Builder setTo(InboundTransferCreateParams.To to) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public InboundTransferCreateParams.Amount build() { + return new InboundTransferCreateParams.Amount(this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * InboundTransferCreateParams.Amount#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 InboundTransferCreateParams.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class From { diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentCreateParams.java index b31304b8ea5..b4d54abc095 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentCreateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentCreateParams.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; -import com.stripe.v2.Amount; import java.util.HashMap; import java.util.Map; import lombok.EqualsAndHashCode; @@ -132,7 +131,7 @@ public OutboundPaymentCreateParams build() { /** * Required. The "presentment amount" to be sent to the recipient. */ - public Builder setAmount(Amount amount) { + public Builder setAmount(OutboundPaymentCreateParams.Amount amount) { this.amount = amount; return this; } @@ -243,6 +242,102 @@ public Builder setTo(OutboundPaymentCreateParams.To to) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public OutboundPaymentCreateParams.Amount build() { + return new OutboundPaymentCreateParams.Amount(this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * OutboundPaymentCreateParams.Amount#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 OutboundPaymentCreateParams.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class DeliveryOptions { diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentQuoteCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentQuoteCreateParams.java index fa3b0e333c8..5d98d20a1c7 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentQuoteCreateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentQuoteCreateParams.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; -import com.stripe.v2.Amount; import java.util.HashMap; import java.util.Map; import lombok.EqualsAndHashCode; @@ -74,7 +73,7 @@ public OutboundPaymentQuoteCreateParams build() { /** * Required. The "presentment amount" to be sent to the recipient. */ - public Builder setAmount(Amount amount) { + public Builder setAmount(OutboundPaymentQuoteCreateParams.Amount amount) { this.amount = amount; return this; } @@ -127,6 +126,104 @@ public Builder setTo(OutboundPaymentQuoteCreateParams.To to) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public OutboundPaymentQuoteCreateParams.Amount build() { + return new OutboundPaymentQuoteCreateParams.Amount( + this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * OutboundPaymentQuoteCreateParams.Amount#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 OutboundPaymentQuoteCreateParams.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class DeliveryOptions { diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferCreateParams.java index b738831fc9b..9539fbaf329 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferCreateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferCreateParams.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; -import com.stripe.v2.Amount; import java.util.HashMap; import java.util.Map; import lombok.EqualsAndHashCode; @@ -109,7 +108,7 @@ public OutboundTransferCreateParams build() { } /** Required. The "presentment amount" for the OutboundPayment. */ - public Builder setAmount(Amount amount) { + public Builder setAmount(OutboundTransferCreateParams.Amount amount) { this.amount = amount; return this; } @@ -203,6 +202,102 @@ public Builder setTo(OutboundTransferCreateParams.To to) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public OutboundTransferCreateParams.Amount build() { + return new OutboundTransferCreateParams.Amount(this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * OutboundTransferCreateParams.Amount#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 OutboundTransferCreateParams.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class DeliveryOptions { 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 b85572b0c82..119fd11a1f9 100644 --- a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCaptureParams.java +++ b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCaptureParams.java @@ -11,7 +11,7 @@ @Getter @EqualsAndHashCode(callSuper = false) public class OffSessionPaymentCaptureParams extends ApiRequestParams { - /** Required. The amount to capture. */ + /** The amount to capture. */ @SerializedName("amount_to_capture") Long amountToCapture; @@ -25,10 +25,10 @@ public class OffSessionPaymentCaptureParams extends ApiRequestParams { Map extraParams; /** - * Required. Set of key-value + * Required. Set of key-value * pairs that you can attach to an object. This can be useful for storing additional * information about the object in a structured format. Learn more about storing + * href="https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata">storing * information in metadata. */ @SerializedName("metadata") @@ -55,7 +55,7 @@ public class OffSessionPaymentCaptureParams extends ApiRequestParams { /** * The data that automatically creates a Transfer after the payment finalizes. Learn more about - * the use case for connected + * the use case for connected * accounts. */ @SerializedName("transfer_data") @@ -104,7 +104,7 @@ public OffSessionPaymentCaptureParams build() { this.transferData); } - /** Required. The amount to capture. */ + /** The amount to capture. */ public Builder setAmountToCapture(Long amountToCapture) { this.amountToCapture = amountToCapture; return this; @@ -187,7 +187,7 @@ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { /** * The data that automatically creates a Transfer after the payment finalizes. Learn more about - * the use case for connected + * the use case for connected * accounts. */ public Builder setTransferData(OffSessionPaymentCaptureParams.TransferData transferData) { @@ -203,20 +203,13 @@ public static class TransferData { * The amount transferred to the destination account. This transfer will occur automatically * after the payment succeeds. If no amount is specified, by default the entire payment amount * is transferred to the destination account. The amount must be less than or equal to the amount_requested, + * href="https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested">amount_requested, * and must be a positive integer representing how much to transfer in the smallest currency * unit (e.g., 100 cents to charge $1.00). */ @SerializedName("amount") Long amount; - /** - * Required. The account (if any) that the payment is attributed to for tax - * reporting, and where funds from the payment are transferred to after payment success. - */ - @SerializedName("destination") - String destination; - /** * 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 @@ -226,9 +219,8 @@ public static class TransferData { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private TransferData(Long amount, String destination, Map extraParams) { + private TransferData(Long amount, Map extraParams) { this.amount = amount; - this.destination = destination; this.extraParams = extraParams; } @@ -239,21 +231,18 @@ public static Builder builder() { public static class Builder { private Long amount; - private String destination; - private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ public OffSessionPaymentCaptureParams.TransferData build() { - return new OffSessionPaymentCaptureParams.TransferData( - this.amount, this.destination, this.extraParams); + return new OffSessionPaymentCaptureParams.TransferData(this.amount, this.extraParams); } /** * The amount transferred to the destination account. This transfer will occur automatically * after the payment succeeds. If no amount is specified, by default the entire payment amount * is transferred to the destination account. The amount must be less than or equal to the amount_requested, + * href="https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested">amount_requested, * and must be a positive integer representing how much to transfer in the smallest currency * unit (e.g., 100 cents to charge $1.00). */ @@ -262,15 +251,6 @@ public Builder setAmount(Long amount) { return this; } - /** - * Required. The account (if any) that the payment is attributed to for tax - * reporting, and where funds from the payment are transferred to after payment success. - */ - public Builder setDestination(String destination) { - this.destination = destination; - 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/v2/payments/OffSessionPaymentCreateParams.java b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java index 594d724bfd7..d288c7ab866 100644 --- a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java +++ b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java @@ -3,10 +3,7 @@ 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; @@ -18,10 +15,6 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams { @SerializedName("amount") Amount amount; - /** Provides industry-specific information about the amount. */ - @SerializedName("amount_details") - AmountDetails amountDetails; - /** Required. The frequency of the underlying payment. */ @SerializedName("cadence") Cadence cadence; @@ -30,10 +23,6 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams { @SerializedName("capture") Capture capture; - /** Whether the OffSessionPayment should be captured automatically or manually. */ - @SerializedName("capture_method") - CaptureMethod captureMethod; - /** Required. ID of the Customer to which this OffSessionPayment belongs. */ @SerializedName("customer") String customer; @@ -48,10 +37,10 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams { Map extraParams; /** - * Required. Set of key-value + * Required. Set of key-value * pairs that you can attach to an object. This can be useful for storing additional * information about the object in a structured format. Learn more about storing + * href="https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata">storing * information in metadata. */ @SerializedName("metadata") @@ -102,7 +91,7 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams { /** * The data that automatically creates a Transfer after the payment finalizes. Learn more about - * the use case for connected + * the use case for connected * accounts. */ @SerializedName("transfer_data") @@ -110,10 +99,8 @@ public class OffSessionPaymentCreateParams extends ApiRequestParams { private OffSessionPaymentCreateParams( Amount amount, - AmountDetails amountDetails, Cadence cadence, Capture capture, - CaptureMethod captureMethod, String customer, Map extraParams, Map metadata, @@ -127,10 +114,8 @@ private OffSessionPaymentCreateParams( String testClock, TransferData transferData) { this.amount = amount; - this.amountDetails = amountDetails; this.cadence = cadence; this.capture = capture; - this.captureMethod = captureMethod; this.customer = customer; this.extraParams = extraParams; this.metadata = metadata; @@ -152,14 +137,10 @@ public static Builder builder() { public static class Builder { private Amount amount; - private AmountDetails amountDetails; - private Cadence cadence; private Capture capture; - private CaptureMethod captureMethod; - private String customer; private Map extraParams; @@ -188,10 +169,8 @@ public static class Builder { public OffSessionPaymentCreateParams build() { return new OffSessionPaymentCreateParams( this.amount, - this.amountDetails, this.cadence, this.capture, - this.captureMethod, this.customer, this.extraParams, this.metadata, @@ -207,17 +186,11 @@ public OffSessionPaymentCreateParams build() { } /** Required. The “presentment amount” to be collected from the customer. */ - public Builder setAmount(Amount amount) { + public Builder setAmount(OffSessionPaymentCreateParams.Amount amount) { this.amount = amount; return this; } - /** Provides industry-specific information about the amount. */ - public Builder setAmountDetails(OffSessionPaymentCreateParams.AmountDetails amountDetails) { - this.amountDetails = amountDetails; - return this; - } - /** Required. The frequency of the underlying payment. */ public Builder setCadence(OffSessionPaymentCreateParams.Cadence cadence) { this.cadence = cadence; @@ -230,12 +203,6 @@ public Builder setCapture(OffSessionPaymentCreateParams.Capture capture) { return this; } - /** Whether the OffSessionPayment should be captured automatically or manually. */ - public Builder setCaptureMethod(OffSessionPaymentCreateParams.CaptureMethod captureMethod) { - this.captureMethod = captureMethod; - return this; - } - /** Required. ID of the Customer to which this OffSessionPayment belongs. */ public Builder setCustomer(String customer) { this.customer = customer; @@ -357,7 +324,7 @@ public Builder setTestClock(String testClock) { /** * The data that automatically creates a Transfer after the payment finalizes. Learn more about - * the use case for connected + * the use case for connected * accounts. */ public Builder setTransferData(OffSessionPaymentCreateParams.TransferData transferData) { @@ -368,10 +335,14 @@ 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; + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; /** * Map of extra parameters for custom features not available in this client library. The content @@ -383,31 +354,16 @@ public static class AmountDetails { Map extraParams; /** - * Required. A list of line items, each containing information about a product - * in the PaymentIntent. There is a maximum of 100 line items. + * A non-negative integer representing how much to charge in the smallest currency unit. */ - @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, - Map extraParams, - List lineItems, - Shipping shipping, - Tax tax) { - this.discountAmount = discountAmount; + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; this.extraParams = extraParams; - this.lineItems = lineItems; - this.shipping = shipping; - this.tax = tax; + this.value = value; } public static Builder builder() { @@ -415,32 +371,32 @@ public static Builder builder() { } public static class Builder { - private Long discountAmount; + private String currency; private Map extraParams; - private List lineItems; - - private Shipping shipping; - - private Tax tax; + private Long value; /** Finalize and obtain parameter instance from this builder. */ - public OffSessionPaymentCreateParams.AmountDetails build() { - return new OffSessionPaymentCreateParams.AmountDetails( - this.discountAmount, this.extraParams, this.lineItems, this.shipping, this.tax); + public OffSessionPaymentCreateParams.Amount build() { + return new OffSessionPaymentCreateParams.Amount( + this.currency, this.extraParams, this.value); } - /** The amount the total transaction was discounted for. */ - public Builder setDiscountAmount(Long discountAmount) { - this.discountAmount = discountAmount; + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; 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. + * OffSessionPaymentCreateParams.Amount#extraParams} for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -453,8 +409,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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. + * See {@link OffSessionPaymentCreateParams.Amount#extraParams} for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -465,441 +420,14 @@ public Builder putAllExtraParam(Map map) { } /** - * 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. + * A non-negative integer representing how much to charge in the smallest currency unit. */ - 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; + public Builder setValue(Long value) { + this.value = value; 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. Non-negative integer. */ - @SerializedName("unit_cost") - Long unitCost; - - private LineItem( - Long discountAmount, - Map extraParams, - String productCode, - String productName, - Long quantity, - Tax tax, - Long unitCost) { - this.discountAmount = discountAmount; - this.extraParams = extraParams; - this.productCode = productCode; - this.productName = productName; - this.quantity = quantity; - this.tax = tax; - this.unitCost = unitCost; - } - - 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; - - /** 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); - } - - /** 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. Non-negative integer. */ - public Builder setUnitCost(Long unitCost) { - this.unitCost = unitCost; - 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; - - /** 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; - } - - /** 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; - - /** 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; - } - - /** Total portion of the amount that is for tax. */ - public Builder setTotalTaxAmount(Long totalTaxAmount) { - this.totalTaxAmount = totalTaxAmount; - return this; - } - } - } } @Getter @@ -1244,10 +772,7 @@ public static class RetryDetails { @SerializedName("retry_policy") String retryPolicy; - /** - * Required. Indicates the strategy for how you want Stripe to retry the - * payment. - */ + /** Indicates the strategy for how you want Stripe to retry the payment. */ @SerializedName("retry_strategy") RetryStrategy retryStrategy; @@ -1308,10 +833,7 @@ public Builder setRetryPolicy(String retryPolicy) { return this; } - /** - * Required. Indicates the strategy for how you want Stripe to retry the - * payment. - */ + /** Indicates the strategy for how you want Stripe to retry the payment. */ public Builder setRetryStrategy( OffSessionPaymentCreateParams.RetryDetails.RetryStrategy retryStrategy) { this.retryStrategy = retryStrategy; @@ -1320,17 +842,11 @@ public Builder setRetryStrategy( } public enum RetryStrategy implements ApiRequestParams.EnumParam { - @SerializedName("heuristic") - HEURISTIC("heuristic"), + @SerializedName("best_available") + BEST_AVAILABLE("best_available"), @SerializedName("none") - NONE("none"), - - @SerializedName("scheduled") - SCHEDULED("scheduled"), - - @SerializedName("smart") - SMART("smart"); + NONE("none"); @Getter(onMethod_ = {@Override}) private final String value; @@ -1348,7 +864,7 @@ public static class TransferData { * The amount transferred to the destination account. This transfer will occur automatically * after the payment succeeds. If no amount is specified, by default the entire payment amount * is transferred to the destination account. The amount must be less than or equal to the amount_requested, + * href="https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested">amount_requested, * and must be a positive integer representing how much to transfer in the smallest currency * unit (e.g., 100 cents to charge $1.00). */ @@ -1398,7 +914,7 @@ public OffSessionPaymentCreateParams.TransferData build() { * The amount transferred to the destination account. This transfer will occur automatically * after the payment succeeds. If no amount is specified, by default the entire payment amount * is transferred to the destination account. The amount must be less than or equal to the amount_requested, + * href="https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested">amount_requested, * and must be a positive integer representing how much to transfer in the smallest currency * unit (e.g., 100 cents to charge $1.00). */ @@ -1459,19 +975,4 @@ public enum Cadence implements ApiRequestParams.EnumParam { this.value = value; } } - - public enum CaptureMethod implements ApiRequestParams.EnumParam { - @SerializedName("automatic") - AUTOMATIC("automatic"), - - @SerializedName("manual") - MANUAL("manual"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - CaptureMethod(String value) { - this.value = value; - } - } } 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..496dbd0acf5 100644 --- a/src/main/java/com/stripe/param/v2/testhelpers/FinancialAddressCreditParams.java +++ b/src/main/java/com/stripe/param/v2/testhelpers/FinancialAddressCreditParams.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; -import com.stripe.v2.Amount; import java.util.HashMap; import java.util.Map; import lombok.EqualsAndHashCode; @@ -67,7 +66,7 @@ public FinancialAddressCreditParams build() { } /** Required. Object containing the amount value and currency to credit. */ - public Builder setAmount(Amount amount) { + public Builder setAmount(FinancialAddressCreditParams.Amount amount) { this.amount = amount; return this; } @@ -117,6 +116,102 @@ public Builder setStatementDescriptor(String statementDescriptor) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Amount { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; + + /** + * 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 non-negative integer representing how much to charge in the smallest currency unit. + */ + @SerializedName("value") + Long value; + + private Amount(String currency, Map extraParams, Long value) { + this.currency = currency; + this.extraParams = extraParams; + this.value = value; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private Long value; + + /** Finalize and obtain parameter instance from this builder. */ + public FinancialAddressCreditParams.Amount build() { + return new FinancialAddressCreditParams.Amount(this.currency, this.extraParams, this.value); + } + + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + 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 + * FinancialAddressCreditParams.Amount#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 FinancialAddressCreditParams.Amount#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 non-negative integer representing how much to charge in the smallest currency unit. + */ + public Builder setValue(Long value) { + this.value = value; + return this; + } + } + } + public enum Network implements ApiRequestParams.EnumParam { @SerializedName("ach") ACH("ach"), diff --git a/src/main/java/com/stripe/service/v2/CoreService.java b/src/main/java/com/stripe/service/v2/CoreService.java index 002854a340f..94dd7b8839a 100644 --- a/src/main/java/com/stripe/service/v2/CoreService.java +++ b/src/main/java/com/stripe/service/v2/CoreService.java @@ -13,6 +13,10 @@ public com.stripe.service.v2.core.AccountLinkService accountLinks() { return new com.stripe.service.v2.core.AccountLinkService(this.getResponseGetter()); } + public com.stripe.service.v2.core.AccountTokenService accountTokens() { + return new com.stripe.service.v2.core.AccountTokenService(this.getResponseGetter()); + } + public com.stripe.service.v2.core.AccountService accounts() { return new com.stripe.service.v2.core.AccountService(this.getResponseGetter()); } diff --git a/src/main/java/com/stripe/service/v2/MoneyManagementService.java b/src/main/java/com/stripe/service/v2/MoneyManagementService.java index a928c338789..7631b6f1b47 100644 --- a/src/main/java/com/stripe/service/v2/MoneyManagementService.java +++ b/src/main/java/com/stripe/service/v2/MoneyManagementService.java @@ -13,6 +13,11 @@ public com.stripe.service.v2.moneymanagement.AdjustmentService adjustments() { return new com.stripe.service.v2.moneymanagement.AdjustmentService(this.getResponseGetter()); } + public com.stripe.service.v2.moneymanagement.CurrencyConversionService currencyConversions() { + return new com.stripe.service.v2.moneymanagement.CurrencyConversionService( + this.getResponseGetter()); + } + public com.stripe.service.v2.moneymanagement.FinancialAccountService financialAccounts() { return new com.stripe.service.v2.moneymanagement.FinancialAccountService( this.getResponseGetter()); diff --git a/src/main/java/com/stripe/service/v2/core/AccountService.java b/src/main/java/com/stripe/service/v2/core/AccountService.java index 3e503c30cb3..a0ba9d38115 100644 --- a/src/main/java/com/stripe/service/v2/core/AccountService.java +++ b/src/main/java/com/stripe/service/v2/core/AccountService.java @@ -189,6 +189,10 @@ public Account close(String id, AccountCloseParams params, RequestOptions option return this.request(request, Account.class); } + public com.stripe.service.v2.core.accounts.PersonTokenService personTokens() { + return new com.stripe.service.v2.core.accounts.PersonTokenService(this.getResponseGetter()); + } + public com.stripe.service.v2.core.accounts.PersonService persons() { return new com.stripe.service.v2.core.accounts.PersonService(this.getResponseGetter()); } diff --git a/src/main/java/com/stripe/service/v2/core/AccountTokenService.java b/src/main/java/com/stripe/service/v2/core/AccountTokenService.java new file mode 100644 index 00000000000..e1041147d39 --- /dev/null +++ b/src/main/java/com/stripe/service/v2/core/AccountTokenService.java @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2.core; + +import com.stripe.exception.StripeException; +import com.stripe.model.v2.core.AccountToken; +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.AccountTokenCreateParams; + +public final class AccountTokenService extends ApiService { + public AccountTokenService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** Creates an Account Token. */ + public AccountToken create(AccountTokenCreateParams params) throws StripeException { + return create(params, (RequestOptions) null); + } + /** Creates an Account Token. */ + public AccountToken create(AccountTokenCreateParams params, RequestOptions options) + throws StripeException { + String path = "/v2/core/account_tokens"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, AccountToken.class); + } + /** Retrieves an Account Token. */ + public AccountToken retrieve(String id) throws StripeException { + return retrieve(id, (RequestOptions) null); + } + /** Retrieves an Account Token. */ + public AccountToken retrieve(String id, RequestOptions options) throws StripeException { + String path = String.format("/v2/core/account_tokens/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); + return this.request(request, AccountToken.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 new file mode 100644 index 00000000000..4325a3193ec --- /dev/null +++ b/src/main/java/com/stripe/service/v2/core/accounts/PersonTokenService.java @@ -0,0 +1,64 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2.core.accounts; + +import com.stripe.exception.StripeException; +import com.stripe.model.v2.core.AccountPersonToken; +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.accounts.PersonTokenCreateParams; + +public final class PersonTokenService extends ApiService { + public PersonTokenService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** Creates a Person Token associated with an Account. */ + public AccountPersonToken create(String accountId, PersonTokenCreateParams params) + throws StripeException { + return create(accountId, params, (RequestOptions) null); + } + /** Creates a Person Token associated with an Account. */ + public AccountPersonToken create(String accountId, RequestOptions options) + throws StripeException { + return create(accountId, (PersonTokenCreateParams) null, options); + } + /** Creates a Person Token associated with an Account. */ + public AccountPersonToken create(String accountId) throws StripeException { + return create(accountId, (PersonTokenCreateParams) null, (RequestOptions) null); + } + /** Creates a Person Token associated with an Account. */ + public AccountPersonToken create( + String accountId, PersonTokenCreateParams params, RequestOptions options) + throws StripeException { + String path = + String.format("/v2/core/accounts/%s/person_tokens", ApiResource.urlEncodeId(accountId)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, AccountPersonToken.class); + } + /** Retrieves a Person Token associated with an Account. */ + public AccountPersonToken retrieve(String accountId, String id) throws StripeException { + return retrieve(accountId, id, (RequestOptions) null); + } + /** Retrieves a Person Token associated with an Account. */ + public AccountPersonToken retrieve(String accountId, String id, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v2/core/accounts/%s/person_tokens/%s", + ApiResource.urlEncodeId(accountId), ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); + return this.request(request, AccountPersonToken.class); + } +} diff --git a/src/main/java/com/stripe/service/v2/moneymanagement/CurrencyConversionService.java b/src/main/java/com/stripe/service/v2/moneymanagement/CurrencyConversionService.java new file mode 100644 index 00000000000..8a7684520c5 --- /dev/null +++ b/src/main/java/com/stripe/service/v2/moneymanagement/CurrencyConversionService.java @@ -0,0 +1,81 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2.moneymanagement; + +import com.google.gson.reflect.TypeToken; +import com.stripe.exception.FeatureNotEnabledException; +import com.stripe.exception.StripeException; +import com.stripe.model.v2.StripeCollection; +import com.stripe.model.v2.moneymanagement.CurrencyConversion; +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.moneymanagement.CurrencyConversionCreateParams; +import com.stripe.param.v2.moneymanagement.CurrencyConversionListParams; + +public final class CurrencyConversionService extends ApiService { + public CurrencyConversionService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** List all CurrencyConversion on an account with the option to filter by FinancialAccount. */ + public StripeCollection list(CurrencyConversionListParams params) + throws StripeException { + return list(params, (RequestOptions) null); + } + /** List all CurrencyConversion on an account with the option to filter by FinancialAccount. */ + public StripeCollection list(RequestOptions options) throws StripeException { + return list((CurrencyConversionListParams) null, options); + } + /** List all CurrencyConversion on an account with the option to filter by FinancialAccount. */ + public StripeCollection list() throws StripeException { + return list((CurrencyConversionListParams) null, (RequestOptions) null); + } + /** List all CurrencyConversion on an account with the option to filter by FinancialAccount. */ + public StripeCollection list( + CurrencyConversionListParams params, RequestOptions options) throws StripeException { + String path = "/v2/money_management/currency_conversions"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request( + request, new TypeToken>() {}.getType()); + } + /** Create a CurrencyConversion. */ + public CurrencyConversion create(CurrencyConversionCreateParams params) + throws StripeException, FeatureNotEnabledException { + return create(params, (RequestOptions) null); + } + /** Create a CurrencyConversion. */ + public CurrencyConversion create(CurrencyConversionCreateParams params, RequestOptions options) + throws StripeException, FeatureNotEnabledException { + String path = "/v2/money_management/currency_conversions"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, CurrencyConversion.class); + } + /** Retrieve details of a CurrencyConversion by id. */ + public CurrencyConversion retrieve(String id) throws StripeException { + return retrieve(id, (RequestOptions) null); + } + /** Retrieve details of a CurrencyConversion by id. */ + public CurrencyConversion retrieve(String id, RequestOptions options) throws StripeException { + String path = + String.format("/v2/money_management/currency_conversions/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); + return this.request(request, CurrencyConversion.class); + } +} diff --git a/src/test/java/com/stripe/functional/GeneratedExamples.java b/src/test/java/com/stripe/functional/GeneratedExamples.java index 20de5b714ed..de4a2b31165 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, - "{\"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,\"object\":\"v2.core.event\",\"reason\":{\"type\":\"request\",\"request\":{\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\",\"v1_event_id\":\"v1_event_id\"}"); + "{\"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,\"object\":\"v2.core.event\",\"reason\":{\"type\":\"request\",\"request\":{\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.Event event = client.v2().core().events().retrieve("ll_123"); @@ -27090,6 +27090,55 @@ public void testV2CoreAccountsPersonPost2Services() throws StripeException { null); } + @Test + public void testV2CoreAccountsPersonTokenPostServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/accounts/account_id_123/person_tokens", + null, + null, + com.stripe.model.v2.core.AccountPersonToken.class, + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_person_token\",\"used\":true}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.core.accounts.PersonTokenCreateParams params = + com.stripe.param.v2.core.accounts.PersonTokenCreateParams.builder().build(); + + com.stripe.model.v2.core.AccountPersonToken accountPersonToken = + client.v2().core().accounts().personTokens().create("account_id_123", params); + assertNotNull(accountPersonToken); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/accounts/account_id_123/person_tokens", + params.toMap(), + null); + } + + @Test + public void testV2CoreAccountsPersonTokenGetServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/core/accounts/account_id_123/person_tokens/id_123", + null, + null, + com.stripe.model.v2.core.AccountPersonToken.class, + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_person_token\",\"used\":true}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.core.AccountPersonToken accountPersonToken = + client.v2().core().accounts().personTokens().retrieve("account_id_123", "id_123"); + assertNotNull(accountPersonToken); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/core/accounts/account_id_123/person_tokens/id_123", + null, + null); + } + @Test public void testV2CoreAccountLinkPostServices() throws StripeException { stubRequest( @@ -27165,6 +27214,683 @@ public void testV2CoreAccountLinkPostServices() throws StripeException { null); } + @Test + public void testV2CoreAccountTokenPostServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/account_tokens", + null, + null, + com.stripe.model.v2.core.AccountToken.class, + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_token\",\"used\":true}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.core.AccountTokenCreateParams params = + com.stripe.param.v2.core.AccountTokenCreateParams.builder() + .setIdentity( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity.builder() + .setAttestations( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity.Attestations + .builder() + .setDirectorshipDeclaration( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Attestations.DirectorshipDeclaration.builder() + .setAttested(true) + .build()) + .setOwnershipDeclaration( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Attestations.OwnershipDeclaration.builder() + .setAttested(true) + .build()) + .setPersonsProvided( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Attestations.PersonsProvided.builder() + .setDirectors(true) + .setExecutives(true) + .setOwners(true) + .setOwnershipExemptionReason( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Attestations.PersonsProvided.OwnershipExemptionReason + .QUALIFIED_ENTITY_EXCEEDS_OWNERSHIP_THRESHOLD) + .build()) + .setRepresentativeDeclaration( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Attestations.RepresentativeDeclaration.builder() + .setAttested(true) + .build()) + .setTermsOfService( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Attestations.TermsOfService.builder() + .setAccount( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Attestations.TermsOfService.Account.builder() + .setShownAndAccepted(true) + .build()) + .setCardCreator( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Attestations.TermsOfService.CardCreator.builder() + .setCommercial( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.Attestations.TermsOfService + .CardCreator.Commercial.builder() + .setAccountHolder( + com.stripe.param.v2.core + .AccountTokenCreateParams.Identity + .Attestations.TermsOfService.CardCreator + .Commercial.AccountHolder.builder() + .setShownAndAccepted(true) + .build()) + .setCeltic( + com.stripe.param.v2.core + .AccountTokenCreateParams.Identity + .Attestations.TermsOfService.CardCreator + .Commercial.Celtic.builder() + .setApplePay( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService.CardCreator + .Commercial.Celtic.ApplePay + .builder() + .setShownAndAccepted(true) + .build()) + .setChargeCard( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService.CardCreator + .Commercial.Celtic.ChargeCard + .builder() + .setBankTerms( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService + .CardCreator.Commercial + .Celtic.ChargeCard + .BankTerms.builder() + .setShownAndAccepted( + true) + .build()) + .setPlatform( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService + .CardCreator.Commercial + .Celtic.ChargeCard + .Platform.builder() + .setShownAndAccepted( + true) + .build()) + .build()) + .setSpendCard( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService.CardCreator + .Commercial.Celtic.SpendCard + .builder() + .setBankTerms( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService + .CardCreator.Commercial + .Celtic.SpendCard + .BankTerms.builder() + .setShownAndAccepted( + true) + .build()) + .setFinancingDisclosures( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService + .CardCreator.Commercial + .Celtic.SpendCard + .FinancingDisclosures + .builder() + .setShownAndAccepted( + true) + .build()) + .setPlatform( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService + .CardCreator.Commercial + .Celtic.SpendCard + .Platform.builder() + .setShownAndAccepted( + true) + .build()) + .build()) + .build()) + .setCrossRiverBank( + com.stripe.param.v2.core + .AccountTokenCreateParams.Identity + .Attestations.TermsOfService.CardCreator + .Commercial.CrossRiverBank.builder() + .setApplePay( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService.CardCreator + .Commercial.CrossRiverBank + .ApplePay.builder() + .setShownAndAccepted(true) + .build()) + .setChargeCard( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService.CardCreator + .Commercial.CrossRiverBank + .ChargeCard.builder() + .setBankTerms( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService + .CardCreator.Commercial + .CrossRiverBank + .ChargeCard.BankTerms + .builder() + .setShownAndAccepted( + true) + .build()) + .setFinancingDisclosures( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService + .CardCreator.Commercial + .CrossRiverBank + .ChargeCard + .FinancingDisclosures + .builder() + .setShownAndAccepted( + true) + .build()) + .setPlatform( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService + .CardCreator.Commercial + .CrossRiverBank + .ChargeCard.Platform + .builder() + .setShownAndAccepted( + true) + .build()) + .build()) + .setSpendCard( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService.CardCreator + .Commercial.CrossRiverBank + .SpendCard.builder() + .setBankTerms( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService + .CardCreator.Commercial + .CrossRiverBank + .SpendCard.BankTerms + .builder() + .setShownAndAccepted( + true) + .build()) + .setFinancingDisclosures( + com.stripe.param.v2.core + .AccountTokenCreateParams + .Identity.Attestations + .TermsOfService + .CardCreator.Commercial + .CrossRiverBank + .SpendCard + .FinancingDisclosures + .builder() + .setShownAndAccepted( + true) + .build()) + .build()) + .build()) + .build()) + .build()) + .setCryptoStorer( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Attestations.TermsOfService.CryptoStorer.builder() + .setShownAndAccepted(true) + .build()) + .setStorer( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Attestations.TermsOfService.Storer.builder() + .setShownAndAccepted(true) + .build()) + .build()) + .build()) + .setBusinessDetails( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity.BusinessDetails + .builder() + .setAddress( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Address.builder() + .setCity("city") + .setCountry("country") + .setLine1("line1") + .setLine2("line2") + .setPostalCode("postal_code") + .setState("state") + .setTown("town") + .build()) + .setAnnualRevenue( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.AnnualRevenue.builder() + .setAmount( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.AnnualRevenue.Amount.builder() + .setValue(111972721L) + .setCurrency("usd") + .build()) + .setFiscalYearEnd("fiscal_year_end") + .build()) + .setComplianceScreeningDescription("compliance_screening_description") + .setDocuments( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents.builder() + .setBankAccountOwnershipVerification( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents + .BankAccountOwnershipVerification.builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification.Type.FILES) + .build()) + .setCompanyLicense( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents.CompanyLicense.builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .CompanyLicense.Type.FILES) + .build()) + .setCompanyMemorandumOfAssociation( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents + .CompanyMemorandumOfAssociation.builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation.Type.FILES) + .build()) + .setCompanyMinisterialDecree( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents.CompanyMinisterialDecree + .builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .CompanyMinisterialDecree.Type.FILES) + .build()) + .setCompanyRegistrationVerification( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents + .CompanyRegistrationVerification.builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .CompanyRegistrationVerification.Type.FILES) + .build()) + .setCompanyTaxIdVerification( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents.CompanyTaxIdVerification + .builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .CompanyTaxIdVerification.Type.FILES) + .build()) + .setPrimaryVerification( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents.PrimaryVerification.builder() + .setFrontBack( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .PrimaryVerification.FrontBack.builder() + .setBack("back") + .setFront("front") + .build()) + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .PrimaryVerification.Type.FRONT_BACK) + .build()) + .setProofOfAddress( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents.ProofOfAddress.builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .ProofOfAddress.Type.FILES) + .build()) + .setProofOfRegistration( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents.ProofOfRegistration.builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .ProofOfRegistration.Type.FILES) + .build()) + .setProofOfUltimateBeneficialOwnership( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership.builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership.Type.FILES) + .build()) + .build()) + .setEstimatedWorkerCount(884794319L) + .addIdNumber( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.IdNumber.builder() + .setRegistrar("registrar") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.IdNumber.Type.TH_PRN) + .setValue("value") + .build()) + .setMonthlyEstimatedRevenue( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.MonthlyEstimatedRevenue.builder() + .setAmount( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.MonthlyEstimatedRevenue.Amount + .builder() + .setValue(111972721L) + .setCurrency("usd") + .build()) + .build()) + .setPhone("phone") + .setRegisteredName("registered_name") + .setScriptAddresses( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.ScriptAddresses.builder() + .setKana( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.ScriptAddresses.Kana.builder() + .setCity("city") + .setCountry("country") + .setLine1("line1") + .setLine2("line2") + .setPostalCode("postal_code") + .setState("state") + .setTown("town") + .build()) + .setKanji( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.ScriptAddresses.Kanji.builder() + .setCity("city") + .setCountry("country") + .setLine1("line1") + .setLine2("line2") + .setPostalCode("postal_code") + .setState("state") + .setTown("town") + .build()) + .build()) + .setScriptNames( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.ScriptNames.builder() + .setKana( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.ScriptNames.Kana.builder() + .setRegisteredName("registered_name") + .build()) + .setKanji( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.ScriptNames.Kanji.builder() + .setRegisteredName("registered_name") + .build()) + .build()) + .setStructure( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .BusinessDetails.Structure.PUBLIC_LISTED_CORPORATION) + .build()) + .setEntityType( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity.EntityType + .INDIVIDUAL) + .setIndividual( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity.Individual + .builder() + .addAdditionalAddress( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.AdditionalAddress.builder() + .setCity("city") + .setCountry("country") + .setLine1("line1") + .setLine2("line2") + .setPostalCode("postal_code") + .setPurpose( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.AdditionalAddress.Purpose.REGISTERED) + .setState("state") + .setTown("town") + .build()) + .addAdditionalName( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.AdditionalName.builder() + .setFullName("full_name") + .setGivenName("given_name") + .setPurpose( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.AdditionalName.Purpose.ALIAS) + .setSurname("surname") + .build()) + .setAddress( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.Address.builder() + .setCity("city") + .setCountry("country") + .setLine1("line1") + .setLine2("line2") + .setPostalCode("postal_code") + .setState("state") + .setTown("town") + .build()) + .setDateOfBirth( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.DateOfBirth.builder() + .setDay(99228L) + .setMonth(104080000L) + .setYear(3704893L) + .build()) + .setDocuments( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.Documents.builder() + .setCompanyAuthorization( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.Documents.CompanyAuthorization.builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.Individual.Documents + .CompanyAuthorization.Type.FILES) + .build()) + .setPassport( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.Documents.Passport.builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.Individual.Documents.Passport.Type + .FILES) + .build()) + .setPrimaryVerification( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.Documents.PrimaryVerification.builder() + .setFrontBack( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.Individual.Documents + .PrimaryVerification.FrontBack.builder() + .setBack("back") + .setFront("front") + .build()) + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.Individual.Documents + .PrimaryVerification.Type.FRONT_BACK) + .build()) + .setSecondaryVerification( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.Documents.SecondaryVerification.builder() + .setFrontBack( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.Individual.Documents + .SecondaryVerification.FrontBack.builder() + .setBack("back") + .setFront("front") + .build()) + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.Individual.Documents + .SecondaryVerification.Type.FRONT_BACK) + .build()) + .setVisa( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.Documents.Visa.builder() + .addFile("files") + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams + .Identity.Individual.Documents.Visa.Type.FILES) + .build()) + .build()) + .setEmail("email") + .setGivenName("given_name") + .addIdNumber( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.IdNumber.builder() + .setType( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.IdNumber.Type.TH_LC) + .setValue("value") + .build()) + .setLegalGender( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.LegalGender.MALE) + .putMetadata("key", "metadata") + .addNationality("nationalities") + .setPhone("phone") + .setPoliticalExposure( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.PoliticalExposure.NONE) + .setRelationship( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.Relationship.builder() + .setDirector(true) + .setExecutive(true) + .setOwner(true) + .setPercentOwnership("percent_ownership") + .setTitle("title") + .build()) + .setScriptAddresses( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.ScriptAddresses.builder() + .setKana( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.ScriptAddresses.Kana.builder() + .setCity("city") + .setCountry("country") + .setLine1("line1") + .setLine2("line2") + .setPostalCode("postal_code") + .setState("state") + .setTown("town") + .build()) + .setKanji( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.ScriptAddresses.Kanji.builder() + .setCity("city") + .setCountry("country") + .setLine1("line1") + .setLine2("line2") + .setPostalCode("postal_code") + .setState("state") + .setTown("town") + .build()) + .build()) + .setScriptNames( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.ScriptNames.builder() + .setKana( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.ScriptNames.Kana.builder() + .setGivenName("given_name") + .setSurname("surname") + .build()) + .setKanji( + com.stripe.param.v2.core.AccountTokenCreateParams.Identity + .Individual.ScriptNames.Kanji.builder() + .setGivenName("given_name") + .setSurname("surname") + .build()) + .build()) + .setSurname("surname") + .build()) + .build()) + .build(); + + com.stripe.model.v2.core.AccountToken accountToken = + client.v2().core().accountTokens().create(params); + assertNotNull(accountToken); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/core/account_tokens", + params.toMap(), + null); + } + + @Test + public void testV2CoreAccountTokenGetServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/core/account_tokens/id_123", + null, + null, + com.stripe.model.v2.core.AccountToken.class, + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_token\",\"used\":true}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.core.AccountToken accountToken = + client.v2().core().accountTokens().retrieve("id_123"); + assertNotNull(accountToken); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/core/account_tokens/id_123", + null, + null); + } + @Test public void testV2CoreClaimableSandboxPostServices() throws StripeException { stubRequest( @@ -27807,7 +28533,7 @@ public void testV2MoneyManagementAdjustmentGetServices() throws StripeException new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.Adjustment>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.AdjustmentListParams params = @@ -27833,7 +28559,7 @@ public void testV2MoneyManagementAdjustmentGet2Services() throws StripeException null, null, com.stripe.model.v2.moneymanagement.Adjustment.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}"); + "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.Adjustment adjustment = @@ -27847,6 +28573,105 @@ public void testV2MoneyManagementAdjustmentGet2Services() throws StripeException null); } + @Test + public void testV2MoneyManagementCurrencyConversionGetServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/money_management/currency_conversions", + null, + null, + new TypeToken< + com.stripe.model.v2.StripeCollection< + com.stripe.model.v2.moneymanagement.CurrencyConversion>>() {}.getType(), + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{}}}],\"next_page_url\":null,\"previous_page_url\":null}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.v2.moneymanagement.CurrencyConversionListParams params = + com.stripe.param.v2.moneymanagement.CurrencyConversionListParams.builder().build(); + + com.stripe.model.v2.StripeCollection + stripeCollection = client.v2().moneyManagement().currencyConversions().list(params); + assertNotNull(stripeCollection); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/money_management/currency_conversions", + params.toMap(), + null); + } + + @Test + public void testV2MoneyManagementCurrencyConversionPostServices() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/money_management/currency_conversions", + null, + null, + com.stripe.model.v2.moneymanagement.CurrencyConversion.class, + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{}}}"); + 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( + com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.From + .Amount.builder() + .setValue(111972721L) + .setCurrency("usd") + .build()) + .setCurrency("usd") + .build()) + .setTo( + com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.To.builder() + .setAmount( + com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.To.Amount + .builder() + .setValue(111972721L) + .setCurrency("usd") + .build()) + .setCurrency("usd") + .build()) + .build(); + + com.stripe.model.v2.moneymanagement.CurrencyConversion currencyConversion = + client.v2().moneyManagement().currencyConversions().create(params); + assertNotNull(currencyConversion); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + "/v2/money_management/currency_conversions", + params.toMap(), + null); + } + + @Test + public void testV2MoneyManagementCurrencyConversionGet2Services() throws StripeException { + stubRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/money_management/currency_conversions/id_123", + null, + null, + com.stripe.model.v2.moneymanagement.CurrencyConversion.class, + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{}}}"); + StripeClient client = new StripeClient(networkSpy); + + com.stripe.model.v2.moneymanagement.CurrencyConversion currencyConversion = + client.v2().moneyManagement().currencyConversions().retrieve("id_123"); + assertNotNull(currencyConversion); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v2/money_management/currency_conversions/id_123", + null, + null); + } + @Test public void testV2MoneyManagementFinancialAccountGetServices() throws StripeException { stubRequest( @@ -27858,7 +28683,7 @@ public void testV2MoneyManagementFinancialAccountGetServices() throws StripeExce new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.FinancialAccount>>() {}.getType(), - "{\"data\":[{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountListParams params = @@ -27884,7 +28709,7 @@ public void testV2MoneyManagementFinancialAccountPostServices() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountCreateParams params = @@ -27912,7 +28737,7 @@ public void testV2MoneyManagementFinancialAccountGet2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.FinancialAccount financialAccount = @@ -27935,7 +28760,7 @@ public void testV2MoneyManagementFinancialAccountPost2Services() throws StripeEx null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountUpdateParams params = @@ -27961,7 +28786,7 @@ public void testV2MoneyManagementFinancialAccountPost3Services() throws StripeEx null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountCloseParams params = @@ -28074,7 +28899,7 @@ public void testV2MoneyManagementInboundTransferGetServices() throws StripeExcep new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.InboundTransfer>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.InboundTransferListParams params = @@ -28100,12 +28925,16 @@ public void testV2MoneyManagementInboundTransferPostServices() throws StripeExce null, null, com.stripe.model.v2.moneymanagement.InboundTransfer.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); + "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.InboundTransferCreateParams params = com.stripe.param.v2.moneymanagement.InboundTransferCreateParams.builder() - .setAmount(new com.stripe.v2.Amount(96, "USD")) + .setAmount( + com.stripe.param.v2.moneymanagement.InboundTransferCreateParams.Amount.builder() + .setValue(111972721L) + .setCurrency("usd") + .build()) .setFrom( com.stripe.param.v2.moneymanagement.InboundTransferCreateParams.From.builder() .setCurrency("usd") @@ -28138,7 +28967,7 @@ public void testV2MoneyManagementInboundTransferGet2Services() throws StripeExce null, null, com.stripe.model.v2.moneymanagement.InboundTransfer.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); + "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.InboundTransfer inboundTransfer = @@ -28163,7 +28992,7 @@ public void testV2MoneyManagementOutboundPaymentGetServices() throws StripeExcep new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.OutboundPayment>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundPaymentListParams params = @@ -28189,12 +29018,16 @@ public void testV2MoneyManagementOutboundPaymentPostServices() throws StripeExce null, null, com.stripe.model.v2.moneymanagement.OutboundPayment.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams params = com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.builder() - .setAmount(new com.stripe.v2.Amount(96, "USD")) + .setAmount( + com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.Amount.builder() + .setValue(111972721L) + .setCurrency("usd") + .build()) .setFrom( com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.From.builder() .setCurrency("usd") @@ -28228,7 +29061,7 @@ public void testV2MoneyManagementOutboundPaymentGet2Services() throws StripeExce null, null, com.stripe.model.v2.moneymanagement.OutboundPayment.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundPayment outboundPayment = @@ -28251,7 +29084,7 @@ public void testV2MoneyManagementOutboundPaymentPost2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.OutboundPayment.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundPayment outboundPayment = @@ -28274,12 +29107,17 @@ public void testV2MoneyManagementOutboundPaymentQuotePostServices() throws Strip null, null, com.stripe.model.v2.moneymanagement.OutboundPaymentQuote.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); + "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundPaymentQuoteCreateParams params = com.stripe.param.v2.moneymanagement.OutboundPaymentQuoteCreateParams.builder() - .setAmount(new com.stripe.v2.Amount(96, "USD")) + .setAmount( + com.stripe.param.v2.moneymanagement.OutboundPaymentQuoteCreateParams.Amount + .builder() + .setValue(111972721L) + .setCurrency("usd") + .build()) .setFrom( com.stripe.param.v2.moneymanagement.OutboundPaymentQuoteCreateParams.From.builder() .setCurrency("usd") @@ -28313,7 +29151,7 @@ public void testV2MoneyManagementOutboundPaymentQuoteGetServices() throws Stripe null, null, com.stripe.model.v2.moneymanagement.OutboundPaymentQuote.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); + "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundPaymentQuote outboundPaymentQuote = @@ -28464,7 +29302,7 @@ public void testV2MoneyManagementOutboundTransferGetServices() throws StripeExce new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.OutboundTransfer>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundTransferListParams params = @@ -28490,12 +29328,16 @@ public void testV2MoneyManagementOutboundTransferPostServices() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.OutboundTransfer.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundTransferCreateParams params = com.stripe.param.v2.moneymanagement.OutboundTransferCreateParams.builder() - .setAmount(new com.stripe.v2.Amount(96, "USD")) + .setAmount( + com.stripe.param.v2.moneymanagement.OutboundTransferCreateParams.Amount.builder() + .setValue(111972721L) + .setCurrency("usd") + .build()) .setFrom( com.stripe.param.v2.moneymanagement.OutboundTransferCreateParams.From.builder() .setCurrency("usd") @@ -28528,7 +29370,7 @@ public void testV2MoneyManagementOutboundTransferGet2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.OutboundTransfer.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundTransfer outboundTransfer = @@ -28551,7 +29393,7 @@ public void testV2MoneyManagementOutboundTransferPost2Services() throws StripeEx null, null, com.stripe.model.v2.moneymanagement.OutboundTransfer.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundTransfer outboundTransfer = @@ -28701,7 +29543,7 @@ public void testV2MoneyManagementReceivedCreditGetServices() throws StripeExcept new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.ReceivedCredit>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.ReceivedCreditListParams params = @@ -28727,7 +29569,7 @@ public void testV2MoneyManagementReceivedCreditGet2Services() throws StripeExcep null, null, com.stripe.model.v2.moneymanagement.ReceivedCredit.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}"); + "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.ReceivedCredit receivedCredit = @@ -28752,7 +29594,7 @@ public void testV2MoneyManagementReceivedDebitGetServices() throws StripeExcepti new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.ReceivedDebit>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"bank_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"bank_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.ReceivedDebitListParams params = @@ -28778,7 +29620,7 @@ public void testV2MoneyManagementReceivedDebitGet2Services() throws StripeExcept null, null, com.stripe.model.v2.moneymanagement.ReceivedDebit.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"bank_transfer\",\"livemode\":true}"); + "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"bank_transfer\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.ReceivedDebit receivedDebit = @@ -28877,7 +29719,7 @@ public void testV2MoneyManagementTransactionGetServices() throws StripeException new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.Transaction>>() {}.getType(), - "{\"data\":[{\"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\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{},\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"category\":\"received_debit\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.TransactionListParams params = @@ -28903,7 +29745,7 @@ public void testV2MoneyManagementTransactionGet2Services() throws StripeExceptio null, null, com.stripe.model.v2.moneymanagement.Transaction.class, - "{\"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\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); + "{\"amount\":{},\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"category\":\"received_debit\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.Transaction transaction = @@ -28928,7 +29770,7 @@ public void testV2MoneyManagementTransactionEntryGetServices() throws StripeExce new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.TransactionEntry>>() {}.getType(), - "{\"data\":[{\"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\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"}},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"}},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.TransactionEntryListParams params = @@ -28954,7 +29796,7 @@ public void testV2MoneyManagementTransactionEntryGet2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.TransactionEntry.class, - "{\"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\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"}},\"livemode\":true}"); + "{\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"}},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.TransactionEntry transactionEntry = @@ -28979,7 +29821,7 @@ public void testV2PaymentsOffSessionPaymentGetServices() throws StripeException new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.payments.OffSessionPayment>>() {}.getType(), - "{\"data\":[{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount_requested\":{},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.payments.OffSessionPaymentListParams params = @@ -29005,12 +29847,16 @@ public void testV2PaymentsOffSessionPaymentPostServices() throws StripeException null, null, com.stripe.model.v2.payments.OffSessionPayment.class, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.payments.OffSessionPaymentCreateParams params = com.stripe.param.v2.payments.OffSessionPaymentCreateParams.builder() - .setAmount(new com.stripe.v2.Amount(96, "USD")) + .setAmount( + com.stripe.param.v2.payments.OffSessionPaymentCreateParams.Amount.builder() + .setValue(111972721L) + .setCurrency("usd") + .build()) .setCadence( com.stripe.param.v2.payments.OffSessionPaymentCreateParams.Cadence.UNSCHEDULED) .setCustomer("customer") @@ -29038,7 +29884,7 @@ public void testV2PaymentsOffSessionPaymentGet2Services() throws StripeException null, null, com.stripe.model.v2.payments.OffSessionPayment.class, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.payments.OffSessionPayment offSessionPayment = @@ -29061,7 +29907,7 @@ public void testV2PaymentsOffSessionPaymentPost2Services() throws StripeExceptio null, null, com.stripe.model.v2.payments.OffSessionPayment.class, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.payments.OffSessionPayment offSessionPayment = @@ -29084,12 +29930,11 @@ public void testV2PaymentsOffSessionPaymentPost3Services() throws StripeExceptio null, null, com.stripe.model.v2.payments.OffSessionPayment.class, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.payments.OffSessionPaymentCaptureParams params = com.stripe.param.v2.payments.OffSessionPaymentCaptureParams.builder() - .setAmountToCapture(1374310455L) .putMetadata("key", "metadata") .build(); @@ -29204,7 +30049,11 @@ 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")) + .setAmount( + com.stripe.param.v2.testhelpers.FinancialAddressCreditParams.Amount.builder() + .setValue(111972721L) + .setCurrency("usd") + .build()) .setNetwork(com.stripe.param.v2.testhelpers.FinancialAddressCreditParams.Network.ACH) .build(); @@ -29228,7 +30077,7 @@ public void testV2TestHelpersFinancialAddressPost2Services() throws StripeExcept null, null, com.stripe.model.v2.FinancialAddressGeneratedMicrodeposits.class, - "{\"amounts\":[{\"currency\":\"USD\",\"value\":1}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}"); + "{\"amounts\":[{}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.FinancialAddressGeneratedMicrodeposits @@ -29393,20 +30242,26 @@ public void testFeatureNotEnabledErrorServices() throws StripeException { stubRequestReturnError( BaseAddress.API, ApiResource.RequestMethod.POST, - "/v2/money_management/financial_accounts", + "/v2/money_management/currency_conversions", null, null, "{\"error\":{\"type\":\"feature_not_enabled\",\"code\":\"outbound_flow_from_closed_financial_account_unsupported\"}}", 400); StripeClient client = new StripeClient(networkSpy); - com.stripe.param.v2.moneymanagement.FinancialAccountCreateParams params = - com.stripe.param.v2.moneymanagement.FinancialAccountCreateParams.builder() - .setType(com.stripe.param.v2.moneymanagement.FinancialAccountCreateParams.Type.STORAGE) + 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()) + .setTo( + com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams.To.builder() + .build()) .build(); try { - client.v2().moneyManagement().financialAccounts().create(params); + client.v2().moneyManagement().currencyConversions().create(params); } catch (FeatureNotEnabledException e) { } @@ -29414,7 +30269,7 @@ public void testFeatureNotEnabledErrorServices() throws StripeException { verifyRequest( BaseAddress.API, ApiResource.RequestMethod.POST, - "/v2/money_management/financial_accounts", + "/v2/money_management/currency_conversions", params.toMap(), null); } @@ -29467,7 +30322,9 @@ public void testInsufficientFundsErrorServices() throws StripeException { com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams params = com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.builder() - .setAmount(new com.stripe.v2.Amount(96, "USD")) + .setAmount( + com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.Amount.builder() + .build()) .setFrom( com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.From.builder() .setCurrency("usd") @@ -29682,7 +30539,9 @@ public void testRecipientNotNotifiableErrorServices() throws StripeException { com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams params = com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.builder() - .setAmount(new com.stripe.v2.Amount(96, "USD")) + .setAmount( + com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.Amount.builder() + .build()) .setFrom( com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.From.builder() .setCurrency("usd")