Skip to content

Commit

Permalink
Update generated code for v592
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 9, 2023
1 parent 5df830b commit 15d6cc9
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 30 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v591
v592
24 changes: 12 additions & 12 deletions src/main/java/com/stripe/model/SetupIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,43 +354,43 @@ 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}.
*
* <p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an
* <p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an
* error.
*/
public SetupIntent cancel() throws StripeException {
return cancel((Map<String, Object>) 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}.
*
* <p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an
* <p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an
* error.
*/
public SetupIntent cancel(RequestOptions options) throws StripeException {
return cancel((Map<String, Object>) 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}.
*
* <p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an
* <p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an
* error.
*/
public SetupIntent cancel(Map<String, Object> params) throws StripeException {
return cancel(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}.
*
* <p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an
* <p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an
* error.
*/
public SetupIntent cancel(Map<String, Object> params, RequestOptions options)
Expand All @@ -409,21 +409,21 @@ public SetupIntent cancel(Map<String, Object> 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}.
*
* <p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an
* <p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an
* error.
*/
public SetupIntent cancel(SetupIntentCancelParams params) throws StripeException {
return cancel(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}.
*
* <p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an
* <p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an
* error.
*/
public SetupIntent cancel(SetupIntentCancelParams params, RequestOptions options)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/param/SetupIntentCancelParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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(
Expand Down
7 changes: 2 additions & 5 deletions src/main/java/com/stripe/param/SetupIntentConfirmParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public class SetupIntentConfirmParams extends ApiRequestParams {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** This hash contains details about the Mandate to create. */
@SerializedName("mandate_data")
Object mandateData;

Expand All @@ -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;

Expand Down Expand Up @@ -195,13 +194,11 @@ public Builder putAllExtraParam(Map<String, Object> 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;
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/param/SetupIntentListParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/stripe/service/SetupIntentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
*
* <p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an
* <p>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}.
*
* <p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an
* <p>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}.
*
* <p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an
* <p>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}.
*
* <p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an
* <p>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)
Expand Down

0 comments on commit 15d6cc9

Please sign in to comment.