From 15d6cc9c8704ff23d30e8359d99dc675c35f42f2 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 17:56:24 +0000 Subject: [PATCH] Update generated code for v592 --- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/SetupIntent.java | 24 +++++++++---------- .../stripe/param/SetupIntentCancelParams.java | 4 ++-- .../param/SetupIntentConfirmParams.java | 7 ++---- .../stripe/param/SetupIntentListParams.java | 4 ++-- .../stripe/service/SetupIntentService.java | 16 ++++++------- 6 files changed, 27 insertions(+), 30 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8a06d226023..7c810c6c345 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v591 \ No newline at end of file +v592 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java index dee8e0637e5..b8b618ae206 100644 --- a/src/main/java/com/stripe/model/SetupIntent.java +++ b/src/main/java/com/stripe/model/SetupIntent.java @@ -354,10 +354,10 @@ public void setSingleUseMandateObject(Mandate expandableObject) { } /** - * A SetupIntent object can be canceled when it is in one of these statuses: {@code + * You can cancel a SetupIntent object when it’s in one of these statuses: {@code * requires_payment_method}, {@code requires_confirmation}, or {@code requires_action}. * - *

Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an + *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an * error. */ public SetupIntent cancel() throws StripeException { @@ -365,10 +365,10 @@ public SetupIntent cancel() throws StripeException { } /** - * A SetupIntent object can be canceled when it is in one of these statuses: {@code + * You can cancel a SetupIntent object when it’s in one of these statuses: {@code * requires_payment_method}, {@code requires_confirmation}, or {@code requires_action}. * - *

Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an + *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an * error. */ public SetupIntent cancel(RequestOptions options) throws StripeException { @@ -376,10 +376,10 @@ public SetupIntent cancel(RequestOptions options) throws StripeException { } /** - * A SetupIntent object can be canceled when it is in one of these statuses: {@code + * You can cancel a SetupIntent object when it’s in one of these statuses: {@code * requires_payment_method}, {@code requires_confirmation}, or {@code requires_action}. * - *

Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an + *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an * error. */ public SetupIntent cancel(Map params) throws StripeException { @@ -387,10 +387,10 @@ public SetupIntent cancel(Map params) throws StripeException { } /** - * A SetupIntent object can be canceled when it is in one of these statuses: {@code + * You can cancel a SetupIntent object when it’s in one of these statuses: {@code * requires_payment_method}, {@code requires_confirmation}, or {@code requires_action}. * - *

Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an + *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an * error. */ public SetupIntent cancel(Map params, RequestOptions options) @@ -409,10 +409,10 @@ public SetupIntent cancel(Map params, RequestOptions options) } /** - * A SetupIntent object can be canceled when it is in one of these statuses: {@code + * You can cancel a SetupIntent object when it’s in one of these statuses: {@code * requires_payment_method}, {@code requires_confirmation}, or {@code requires_action}. * - *

Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an + *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an * error. */ public SetupIntent cancel(SetupIntentCancelParams params) throws StripeException { @@ -420,10 +420,10 @@ public SetupIntent cancel(SetupIntentCancelParams params) throws StripeException } /** - * A SetupIntent object can be canceled when it is in one of these statuses: {@code + * You can cancel a SetupIntent object when it’s in one of these statuses: {@code * requires_payment_method}, {@code requires_confirmation}, or {@code requires_action}. * - *

Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an + *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an * error. */ public SetupIntent cancel(SetupIntentCancelParams params, RequestOptions options) diff --git a/src/main/java/com/stripe/param/SetupIntentCancelParams.java b/src/main/java/com/stripe/param/SetupIntentCancelParams.java index 3215a04ef6c..10b193779a8 100644 --- a/src/main/java/com/stripe/param/SetupIntentCancelParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCancelParams.java @@ -12,7 +12,7 @@ @Getter public class SetupIntentCancelParams extends ApiRequestParams { /** - * Reason for canceling this SetupIntent. Possible values are {@code abandoned}, {@code + * Reason for canceling this SetupIntent. Possible values are: {@code abandoned}, {@code * requested_by_customer}, or {@code duplicate} */ @SerializedName("cancellation_reason") @@ -55,7 +55,7 @@ public SetupIntentCancelParams build() { } /** - * Reason for canceling this SetupIntent. Possible values are {@code abandoned}, {@code + * Reason for canceling this SetupIntent. Possible values are: {@code abandoned}, {@code * requested_by_customer}, or {@code duplicate} */ public Builder setCancellationReason( diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index d93ac2871d6..ba79789ec35 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -34,7 +34,6 @@ public class SetupIntentConfirmParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** This hash contains details about the Mandate to create. */ @SerializedName("mandate_data") Object mandateData; @@ -53,7 +52,7 @@ public class SetupIntentConfirmParams extends ApiRequestParams { @SerializedName("payment_method_data") PaymentMethodData paymentMethodData; - /** Payment-method-specific configuration for this SetupIntent. */ + /** Payment method-specific configuration for this SetupIntent. */ @SerializedName("payment_method_options") PaymentMethodOptions paymentMethodOptions; @@ -195,13 +194,11 @@ public Builder putAllExtraParam(Map map) { return this; } - /** This hash contains details about the Mandate to create. */ public Builder setMandateData(SetupIntentConfirmParams.MandateData mandateData) { this.mandateData = mandateData; return this; } - /** This hash contains details about the Mandate to create. */ public Builder setMandateData(EmptyParam mandateData) { this.mandateData = mandateData; return this; @@ -227,7 +224,7 @@ public Builder setPaymentMethodData( return this; } - /** Payment-method-specific configuration for this SetupIntent. */ + /** Payment method-specific configuration for this SetupIntent. */ public Builder setPaymentMethodOptions( SetupIntentConfirmParams.PaymentMethodOptions paymentMethodOptions) { this.paymentMethodOptions = paymentMethodOptions; diff --git a/src/main/java/com/stripe/param/SetupIntentListParams.java b/src/main/java/com/stripe/param/SetupIntentListParams.java index 949ba07960b..6b73cc33136 100644 --- a/src/main/java/com/stripe/param/SetupIntentListParams.java +++ b/src/main/java/com/stripe/param/SetupIntentListParams.java @@ -61,7 +61,7 @@ public class SetupIntentListParams extends ApiRequestParams { @SerializedName("limit") Long limit; - /** Only return SetupIntents associated with the specified payment method. */ + /** Only return SetupIntents that associate with the specified payment method. */ @SerializedName("payment_method") String paymentMethod; @@ -244,7 +244,7 @@ public Builder setLimit(Long limit) { return this; } - /** Only return SetupIntents associated with the specified payment method. */ + /** Only return SetupIntents that associate with the specified payment method. */ public Builder setPaymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; return this; diff --git a/src/main/java/com/stripe/service/SetupIntentService.java b/src/main/java/com/stripe/service/SetupIntentService.java index b7ca2b7caae..44ace67d824 100644 --- a/src/main/java/com/stripe/service/SetupIntentService.java +++ b/src/main/java/com/stripe/service/SetupIntentService.java @@ -267,40 +267,40 @@ public SetupIntent confirm(String intent, SetupIntentConfirmParams params, Reque ApiMode.V1); } /** - * A SetupIntent object can be canceled when it is in one of these statuses: {@code + * You can cancel a SetupIntent object when it’s in one of these statuses: {@code * requires_payment_method}, {@code requires_confirmation}, or {@code requires_action}. * - *

Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an + *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an * error. */ public SetupIntent cancel(String intent, SetupIntentCancelParams params) throws StripeException { return cancel(intent, params, (RequestOptions) null); } /** - * A SetupIntent object can be canceled when it is in one of these statuses: {@code + * You can cancel a SetupIntent object when it’s in one of these statuses: {@code * requires_payment_method}, {@code requires_confirmation}, or {@code requires_action}. * - *

Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an + *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an * error. */ public SetupIntent cancel(String intent, RequestOptions options) throws StripeException { return cancel(intent, (SetupIntentCancelParams) null, options); } /** - * A SetupIntent object can be canceled when it is in one of these statuses: {@code + * You can cancel a SetupIntent object when it’s in one of these statuses: {@code * requires_payment_method}, {@code requires_confirmation}, or {@code requires_action}. * - *

Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an + *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an * error. */ public SetupIntent cancel(String intent) throws StripeException { return cancel(intent, (SetupIntentCancelParams) null, (RequestOptions) null); } /** - * A SetupIntent object can be canceled when it is in one of these statuses: {@code + * You can cancel a SetupIntent object when it’s in one of these statuses: {@code * requires_payment_method}, {@code requires_confirmation}, or {@code requires_action}. * - *

Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an + *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an * error. */ public SetupIntent cancel(String intent, SetupIntentCancelParams params, RequestOptions options)