From a7be0add1578f6edc310d5b570a861d9f6c33b72 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 10:05:17 -0700 Subject: [PATCH] Update generated code (#1676) * Update generated code for v607 * Update generated code for v608 * Update generated code for v608 * Update generated code for v614 * Update generated code for v617 * Update generated code for v621 * Update generated code for v624 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Account.java | 17 ++++++++-------- .../java/com/stripe/model/PaymentLink.java | 3 ++- src/main/java/com/stripe/model/Quote.java | 3 ++- .../java/com/stripe/model/StripeError.java | 7 ++++--- .../java/com/stripe/model/Subscription.java | 3 ++- .../stripe/model/SubscriptionSchedule.java | 6 ++++-- .../param/PaymentIntentConfirmParams.java | 12 ++--------- .../param/PaymentIntentCreateParams.java | 20 +++++-------------- .../param/PaymentIntentUpdateParams.java | 12 ++--------- .../stripe/param/PaymentLinkCreateParams.java | 6 ++++-- .../com/stripe/param/QuoteCreateParams.java | 6 ++++-- .../com/stripe/param/QuoteUpdateParams.java | 9 ++++++--- .../param/SubscriptionCreateParams.java | 6 ++++-- .../SubscriptionScheduleCreateParams.java | 18 +++++++++++------ .../SubscriptionScheduleUpdateParams.java | 18 +++++++++++------ .../param/SubscriptionUpdateParams.java | 9 ++++++--- 17 files changed, 80 insertions(+), 77 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index fb1dec85b42..f6d7fa4742f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v605 \ No newline at end of file +v624 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 2a61b112e09..9499921bbac 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -1463,11 +1463,7 @@ public static class FutureRequirements extends StripeObject { @SerializedName("currently_due") List currentlyDue; - /** - * This is typed as a string for consistency with {@code requirements.disabled_reason}, but it - * safe to assume {@code future_requirements.disabled_reason} is empty because fields in {@code - * future_requirements} will never disable the account. - */ + /** This is typed as a string for consistency with {@code requirements.disabled_reason}. */ @SerializedName("disabled_reason") String disabledReason; @@ -1625,10 +1621,13 @@ public static class Requirements extends StripeObject { List currentlyDue; /** - * If the account is disabled, this string describes why. Can be {@code requirements.past_due}, - * {@code requirements.pending_verification}, {@code listed}, {@code platform_paused}, {@code - * rejected.fraud}, {@code rejected.listed}, {@code rejected.terms_of_service}, {@code - * rejected.other}, {@code under_review}, or {@code other}. + * If the account is disabled, this string describes why. Learn more about handling + * verification issues. Can be {@code action_required.requested_capabilities}, {@code + * requirements.past_due}, {@code requirements.pending_verification}, {@code listed}, {@code + * platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification}, {@code + * rejected.listed}, {@code rejected.other}, {@code rejected.terms_of_service}, {@code + * under_review}, or {@code other}. */ @SerializedName("disabled_reason") String disabledReason; diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java index 5135d452a04..91fb6049f31 100644 --- a/src/main/java/com/stripe/model/PaymentLink.java +++ b/src/main/java/com/stripe/model/PaymentLink.java @@ -940,7 +940,8 @@ public void setShippingRateObject(ShippingRate expandableObject) { public static class SubscriptionData extends StripeObject { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") String description; diff --git a/src/main/java/com/stripe/model/Quote.java b/src/main/java/com/stripe/model/Quote.java index 9d32999e476..062930b6b05 100644 --- a/src/main/java/com/stripe/model/Quote.java +++ b/src/main/java/com/stripe/model/Quote.java @@ -1314,7 +1314,8 @@ public static class StatusTransitions extends StripeObject { public static class SubscriptionData extends StripeObject { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") String description; diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java index 3dc22aa1242..f5a48851976 100644 --- a/src/main/java/com/stripe/model/StripeError.java +++ b/src/main/java/com/stripe/model/StripeError.java @@ -23,9 +23,10 @@ public class StripeError extends StripeObject { * {@code account_invalid}, {@code account_number_invalid}, {@code acss_debit_session_incomplete}, * {@code alipay_upgrade_required}, {@code amount_too_large}, {@code amount_too_small}, {@code * api_key_expired}, {@code application_fees_not_allowed}, {@code authentication_required}, {@code - * balance_insufficient}, {@code bank_account_bad_routing_numbers}, {@code bank_account_declined}, - * {@code bank_account_exists}, {@code bank_account_restricted}, {@code bank_account_unusable}, - * {@code bank_account_unverified}, {@code bank_account_verification_failed}, {@code + * balance_insufficient}, {@code balance_invalid_parameter}, {@code + * bank_account_bad_routing_numbers}, {@code bank_account_declined}, {@code bank_account_exists}, + * {@code bank_account_restricted}, {@code bank_account_unusable}, {@code + * bank_account_unverified}, {@code bank_account_verification_failed}, {@code * billing_invalid_mandate}, {@code bitcoin_upgrade_required}, {@code * capture_charge_authorization_expired}, {@code capture_unauthorized_payment}, {@code * card_decline_rate_limit_exceeded}, {@code card_declined}, {@code diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index c5c4a4aed08..3f37f640807 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -174,7 +174,8 @@ public class Subscription extends ApiResource implements HasId, MetadataStoreincrement for this - * PaymentIntent. - */ + /** This field was released by mistake and will be removed in the next major version. */ @SerializedName("request_incremental_authorization") RequestIncrementalAuthorization requestIncrementalAuthorization; @@ -8821,11 +8817,7 @@ public Builder setRequestExtendedAuthorization(Boolean requestExtendedAuthorizat return this; } - /** - * Request ability to increment for this - * PaymentIntent. - */ + /** This field was released by mistake and will be removed in the next major version. */ public Builder setRequestIncrementalAuthorization( PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent .RequestIncrementalAuthorization diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index c49f3d9402f..8959972ac3a 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -254,9 +254,8 @@ public class PaymentIntentCreateParams extends ApiRequestParams { String statementDescriptorSuffix; /** - * The parameters that you can use to automatically create a Transfer after the payment succeeds. - * Learn more about the use case for - * connected accounts. + * The parameters that you can use to automatically create a Transfer. Learn more about the use case for connected accounts. */ @SerializedName("transfer_data") TransferData transferData; @@ -845,8 +844,7 @@ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { } /** - * The parameters that you can use to automatically create a Transfer after the payment - * succeeds. Learn more about the use case for connected * accounts. */ @@ -9237,11 +9235,7 @@ public static class CardPresent { @SerializedName("request_extended_authorization") Boolean requestExtendedAuthorization; - /** - * Request ability to increment for this - * PaymentIntent. - */ + /** This field was released by mistake and will be removed in the next major version. */ @SerializedName("request_incremental_authorization") RequestIncrementalAuthorization requestIncrementalAuthorization; @@ -9327,11 +9321,7 @@ public Builder setRequestExtendedAuthorization(Boolean requestExtendedAuthorizat return this; } - /** - * Request ability to increment for this - * PaymentIntent. - */ + /** This field was released by mistake and will be removed in the next major version. */ public Builder setRequestIncrementalAuthorization( PaymentIntentCreateParams.PaymentMethodOptions.CardPresent .RequestIncrementalAuthorization diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index e0d87a67044..51f868df663 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -8781,11 +8781,7 @@ public static class CardPresent { @SerializedName("request_extended_authorization") Boolean requestExtendedAuthorization; - /** - * Request ability to increment for this - * PaymentIntent. - */ + /** This field was released by mistake and will be removed in the next major version. */ @SerializedName("request_incremental_authorization") RequestIncrementalAuthorization requestIncrementalAuthorization; @@ -8871,11 +8867,7 @@ public Builder setRequestExtendedAuthorization(Boolean requestExtendedAuthorizat return this; } - /** - * Request ability to increment for this - * PaymentIntent. - */ + /** This field was released by mistake and will be removed in the next major version. */ public Builder setRequestIncrementalAuthorization( PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent .RequestIncrementalAuthorization diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index fdc5e198cf3..f4899564af7 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -4206,7 +4206,8 @@ public Builder setShippingRate(String shippingRate) { public static class SubscriptionData { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") String description; @@ -4269,7 +4270,8 @@ public PaymentLinkCreateParams.SubscriptionData build() { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(String description) { this.description = description; diff --git a/src/main/java/com/stripe/param/QuoteCreateParams.java b/src/main/java/com/stripe/param/QuoteCreateParams.java index 5344dc94d08..05ec834bbee 100644 --- a/src/main/java/com/stripe/param/QuoteCreateParams.java +++ b/src/main/java/com/stripe/param/QuoteCreateParams.java @@ -1465,7 +1465,8 @@ public enum TaxBehavior implements ApiRequestParams.EnumParam { public static class SubscriptionData { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") String description; @@ -1528,7 +1529,8 @@ public QuoteCreateParams.SubscriptionData build() { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(String description) { this.description = description; diff --git a/src/main/java/com/stripe/param/QuoteUpdateParams.java b/src/main/java/com/stripe/param/QuoteUpdateParams.java index 3ae303c2477..b7de52a2ded 100644 --- a/src/main/java/com/stripe/param/QuoteUpdateParams.java +++ b/src/main/java/com/stripe/param/QuoteUpdateParams.java @@ -1377,7 +1377,8 @@ public enum TaxBehavior implements ApiRequestParams.EnumParam { public static class SubscriptionData { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") Object description; @@ -1440,7 +1441,8 @@ public QuoteUpdateParams.SubscriptionData build() { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(String description) { this.description = description; @@ -1449,7 +1451,8 @@ public Builder setDescription(String description) { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(EmptyParam description) { this.description = description; diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index d166866b772..a6ebbe238cd 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -145,7 +145,8 @@ public class SubscriptionCreateParams extends ApiRequestParams { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription for rendering in Stripe surfaces. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") String description; @@ -698,7 +699,8 @@ public Builder setDefaultTaxRates(List defaultTaxRates) { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription for rendering in Stripe surfaces. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(String description) { this.description = description; diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java index 055bc9580bf..41384d303ec 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java @@ -375,7 +375,8 @@ public static class DefaultSettings { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") Object description; @@ -550,7 +551,8 @@ public Builder setDefaultPaymentMethod(String defaultPaymentMethod) { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(String description) { this.description = description; @@ -559,7 +561,8 @@ public Builder setDescription(String description) { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(EmptyParam description) { this.description = description; @@ -1102,7 +1105,8 @@ public static class Phase { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") Object description; @@ -1492,7 +1496,8 @@ public Builder setDefaultTaxRates(List defaultTaxRates) { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(String description) { this.description = description; @@ -1501,7 +1506,8 @@ public Builder setDescription(String description) { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(EmptyParam description) { this.description = description; diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java index cc1a5eb0c5f..7657a304ee9 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java @@ -323,7 +323,8 @@ public static class DefaultSettings { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") Object description; @@ -508,7 +509,8 @@ public Builder setDefaultPaymentMethod(EmptyParam defaultPaymentMethod) { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(String description) { this.description = description; @@ -517,7 +519,8 @@ public Builder setDescription(String description) { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(EmptyParam description) { this.description = description; @@ -1066,7 +1069,8 @@ public static class Phase { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") Object description; @@ -1494,7 +1498,8 @@ public Builder setDefaultTaxRates(List defaultTaxRates) { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(String description) { this.description = description; @@ -1503,7 +1508,8 @@ public Builder setDescription(String description) { /** * Subscription description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(EmptyParam description) { this.description = description; diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index 3ecc5257430..9cb9a614bbc 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -130,7 +130,8 @@ public class SubscriptionUpdateParams extends ApiRequestParams { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription for rendering in Stripe surfaces. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ @SerializedName("description") Object description; @@ -707,7 +708,8 @@ public Builder setDefaultTaxRates(List defaultTaxRates) { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription for rendering in Stripe surfaces. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(String description) { this.description = description; @@ -716,7 +718,8 @@ public Builder setDescription(String description) { /** * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription for rendering in Stripe surfaces. + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ public Builder setDescription(EmptyParam description) { this.description = description;