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 9152fbc commit ef65e62
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 @@ -85,6 +85,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 @@ -152,6 +160,7 @@ private PaymentIntentConfirmParams(
String paymentMethod,
PaymentMethodData paymentMethodData,
PaymentMethodOptions paymentMethodOptions,
List<String> paymentMethodTypes,
RadarOptions radarOptions,
Object receiptEmail,
String returnUrl,
Expand All @@ -169,6 +178,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 @@ -204,6 +214,8 @@ public static class Builder {

private PaymentMethodOptions paymentMethodOptions;

private List<String> paymentMethodTypes;

private RadarOptions radarOptions;

private Object receiptEmail;
Expand All @@ -230,6 +242,7 @@ public PaymentIntentConfirmParams build() {
this.paymentMethod,
this.paymentMethodData,
this.paymentMethodOptions,
this.paymentMethodTypes,
this.radarOptions,
this.receiptEmail,
this.returnUrl,
Expand Down Expand Up @@ -387,6 +400,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 ef65e62

Please sign in to comment.