Skip to content

Commit

Permalink
Update generated code for v999
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 29, 2024
1 parent b7745cc commit ff8b89a
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v997
v999
28 changes: 28 additions & 0 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -1439,6 +1439,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("mobilepay")
Mobilepay mobilepay;

@SerializedName("multibanco")
Multibanco multibanco;

@SerializedName("oxxo")
Oxxo oxxo;

Expand Down Expand Up @@ -2172,6 +2175,31 @@ public static class Mobilepay extends StripeObject {
String setupFutureUsage;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Multibanco extends StripeObject {
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* <p>Providing this parameter will <a
* href="https://stripe.com/docs/payments/save-during-payment">attach the payment method</a>
* to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any
* required actions from the user are complete. If no Customer was provided, the payment
* method can still be <a
* href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer after
* the transaction completes.
*
* <p>When processing card payments, Stripe also uses {@code setup_future_usage} to
* dynamically optimize your payment flow and comply with regional legislation and network
* rules, such as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
*
* <p>Equal to {@code none}.
*/
@SerializedName("setup_future_usage")
String setupFutureUsage;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
131 changes: 131 additions & 0 deletions src/main/java/com/stripe/param/checkout/SessionCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -5595,6 +5595,10 @@ public static class PaymentMethodOptions {
@SerializedName("mobilepay")
Mobilepay mobilepay;

/** contains details about the Multibanco payment method options. */
@SerializedName("multibanco")
Multibanco multibanco;

/** contains details about the OXXO payment method options. */
@SerializedName("oxxo")
Oxxo oxxo;
Expand Down Expand Up @@ -5662,6 +5666,7 @@ private PaymentMethodOptions(
Konbini konbini,
Link link,
Mobilepay mobilepay,
Multibanco multibanco,
Oxxo oxxo,
P24 p24,
Paynow paynow,
Expand Down Expand Up @@ -5695,6 +5700,7 @@ private PaymentMethodOptions(
this.konbini = konbini;
this.link = link;
this.mobilepay = mobilepay;
this.multibanco = multibanco;
this.oxxo = oxxo;
this.p24 = p24;
this.paynow = paynow;
Expand Down Expand Up @@ -5757,6 +5763,8 @@ public static class Builder {

private Mobilepay mobilepay;

private Multibanco multibanco;

private Oxxo oxxo;

private P24 p24;
Expand Down Expand Up @@ -5804,6 +5812,7 @@ public SessionCreateParams.PaymentMethodOptions build() {
this.konbini,
this.link,
this.mobilepay,
this.multibanco,
this.oxxo,
this.p24,
this.paynow,
Expand Down Expand Up @@ -5973,6 +5982,12 @@ public Builder setMobilepay(SessionCreateParams.PaymentMethodOptions.Mobilepay m
return this;
}

/** contains details about the Multibanco payment method options. */
public Builder setMultibanco(SessionCreateParams.PaymentMethodOptions.Multibanco multibanco) {
this.multibanco = multibanco;
return this;
}

/** contains details about the OXXO payment method options. */
public Builder setOxxo(SessionCreateParams.PaymentMethodOptions.Oxxo oxxo) {
this.oxxo = oxxo;
Expand Down Expand Up @@ -9399,6 +9414,119 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
}
}

@Getter
public static class Multibanco {
/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName} value.
* Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
* name in this param object. Effectively, this map is flattened to its parent instance.
*/
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* <p>Providing this parameter will <a
* href="https://stripe.com/docs/payments/save-during-payment">attach the payment method</a>
* to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any
* required actions from the user are complete. If no Customer was provided, the payment
* method can still be <a
* href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer after
* the transaction completes.
*
* <p>When processing card payments, Stripe also uses {@code setup_future_usage} to
* dynamically optimize your payment flow and comply with regional legislation and network
* rules, such as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
*/
@SerializedName("setup_future_usage")
SetupFutureUsage setupFutureUsage;

private Multibanco(Map<String, Object> extraParams, SetupFutureUsage setupFutureUsage) {
this.extraParams = extraParams;
this.setupFutureUsage = setupFutureUsage;
}

public static Builder builder() {
return new Builder();
}

public static class Builder {
private Map<String, Object> extraParams;

private SetupFutureUsage setupFutureUsage;

/** Finalize and obtain parameter instance from this builder. */
public SessionCreateParams.PaymentMethodOptions.Multibanco build() {
return new SessionCreateParams.PaymentMethodOptions.Multibanco(
this.extraParams, this.setupFutureUsage);
}

/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link SessionCreateParams.PaymentMethodOptions.Multibanco#extraParams} for the
* field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.put(key, value);
return this;
}

/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link SessionCreateParams.PaymentMethodOptions.Multibanco#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map<String, Object> map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment
* method.
*
* <p>Providing this parameter will <a
* href="https://stripe.com/docs/payments/save-during-payment">attach the payment method</a>
* to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any
* required actions from the user are complete. If no Customer was provided, the payment
* method can still be <a
* href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer
* after the transaction completes.
*
* <p>When processing card payments, Stripe also uses {@code setup_future_usage} to
* dynamically optimize your payment flow and comply with regional legislation and network
* rules, such as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
*/
public Builder setSetupFutureUsage(
SessionCreateParams.PaymentMethodOptions.Multibanco.SetupFutureUsage setupFutureUsage) {
this.setupFutureUsage = setupFutureUsage;
return this;
}
}

public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
@SerializedName("none")
NONE("none");

@Getter(onMethod_ = {@Override})
private final String value;

SetupFutureUsage(String value) {
this.value = value;
}
}
}

@Getter
public static class Oxxo {
/**
Expand Down Expand Up @@ -14455,6 +14583,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("mobilepay")
MOBILEPAY("mobilepay"),

@SerializedName("multibanco")
MULTIBANCO("multibanco"),

@SerializedName("oxxo")
OXXO("oxxo"),

Expand Down

0 comments on commit ff8b89a

Please sign in to comment.