diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 030caf2c1c9..a31c771440e 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v999
\ No newline at end of file
+v1000
\ No newline at end of file
diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
index c332403b760..018275eae0e 100644
--- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
@@ -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 Stripe Dashboard.
+ */
+ @SerializedName("payment_method_types")
+ List paymentMethodTypes;
+
/**
* Options to configure Radar. Learn more about Radar Sessions.
@@ -168,6 +176,7 @@ private PaymentIntentConfirmParams(
String paymentMethod,
PaymentMethodData paymentMethodData,
PaymentMethodOptions paymentMethodOptions,
+ List paymentMethodTypes,
RadarOptions radarOptions,
Object receiptEmail,
String returnUrl,
@@ -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;
@@ -226,6 +236,8 @@ public static class Builder {
private PaymentMethodOptions paymentMethodOptions;
+ private List paymentMethodTypes;
+
private RadarOptions radarOptions;
private Object receiptEmail;
@@ -254,6 +266,7 @@ public PaymentIntentConfirmParams build() {
this.paymentMethod,
this.paymentMethodData,
this.paymentMethodOptions,
+ this.paymentMethodTypes,
this.radarOptions,
this.receiptEmail,
this.returnUrl,
@@ -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 elements) {
+ if (this.paymentMethodTypes == null) {
+ this.paymentMethodTypes = new ArrayList<>();
+ }
+ this.paymentMethodTypes.addAll(elements);
+ return this;
+ }
+
/**
* Options to configure Radar. Learn more about Radar Sessions.