Skip to content

Commit

Permalink
Update generated code for v1000
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 29, 2024
1 parent 66b0851 commit 975d0d2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v999
v1000
39 changes: 39 additions & 0 deletions src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
Expand Up @@ -99,6 +99,14 @@ public class PaymentIntentConfirmParams extends ApiRequestParams {
@SerializedName("payment_method_options")
PaymentMethodOptions paymentMethodOptions;

/**
* The list of payment method types (for example, a card) that this PaymentIntent can use. Use
* {@code automatic_payment_methods} to manage payment methods from the <a
* href="https://dashboard.stripe.com/settings/payment_methods">Stripe Dashboard</a>.
*/
@SerializedName("payment_method_types")
List<String> paymentMethodTypes;

/**
* Options to configure Radar. Learn more about <a
* href="https://stripe.com/docs/radar/radar-session">Radar Sessions</a>.
Expand Down Expand Up @@ -168,6 +176,7 @@ private PaymentIntentConfirmParams(
String paymentMethod,
PaymentMethodData paymentMethodData,
PaymentMethodOptions paymentMethodOptions,
List<String> paymentMethodTypes,
RadarOptions radarOptions,
Object receiptEmail,
String returnUrl,
Expand All @@ -187,6 +196,7 @@ private PaymentIntentConfirmParams(
this.paymentMethod = paymentMethod;
this.paymentMethodData = paymentMethodData;
this.paymentMethodOptions = paymentMethodOptions;
this.paymentMethodTypes = paymentMethodTypes;
this.radarOptions = radarOptions;
this.receiptEmail = receiptEmail;
this.returnUrl = returnUrl;
Expand Down Expand Up @@ -226,6 +236,8 @@ public static class Builder {

private PaymentMethodOptions paymentMethodOptions;

private List<String> paymentMethodTypes;

private RadarOptions radarOptions;

private Object receiptEmail;
Expand Down Expand Up @@ -254,6 +266,7 @@ public PaymentIntentConfirmParams build() {
this.paymentMethod,
this.paymentMethodData,
this.paymentMethodOptions,
this.paymentMethodTypes,
this.radarOptions,
this.receiptEmail,
this.returnUrl,
Expand Down Expand Up @@ -447,6 +460,32 @@ public Builder setPaymentMethodOptions(
return this;
}

/**
* Add an element to `paymentMethodTypes` list. A list is initialized for the first `add/addAll`
* call, and subsequent calls adds additional elements to the original list. See {@link
* PaymentIntentConfirmParams#paymentMethodTypes} for the field documentation.
*/
public Builder addPaymentMethodType(String element) {
if (this.paymentMethodTypes == null) {
this.paymentMethodTypes = new ArrayList<>();
}
this.paymentMethodTypes.add(element);
return this;
}

/**
* Add all elements to `paymentMethodTypes` list. A list is initialized for the first
* `add/addAll` call, and subsequent calls adds additional elements to the original list. See
* {@link PaymentIntentConfirmParams#paymentMethodTypes} for the field documentation.
*/
public Builder addAllPaymentMethodType(List<String> elements) {
if (this.paymentMethodTypes == null) {
this.paymentMethodTypes = new ArrayList<>();
}
this.paymentMethodTypes.addAll(elements);
return this;
}

/**
* Options to configure Radar. Learn more about <a
* href="https://stripe.com/docs/radar/radar-session">Radar Sessions</a>.
Expand Down

0 comments on commit 975d0d2

Please sign in to comment.