Skip to content

Commit

Permalink
Update generated code for v1448
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jan 15, 2025
1 parent 55152fb commit c7fa283
Show file tree
Hide file tree
Showing 23 changed files with 1,570 additions and 10 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1446
v1448
12 changes: 12 additions & 0 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("p24")
P24 p24;

@SerializedName("pay_by_bank")
PayByBank payByBank;

@SerializedName("payco")
Payco payco;

Expand Down Expand Up @@ -3389,6 +3392,15 @@ public static class P24 extends StripeObject {
String verifiedName;
}

/**
* For more details about PayByBank, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PayByBank extends StripeObject {}

/**
* For more details about Payco, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down
20 changes: 16 additions & 4 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ public static class PaymentMethodPreview extends StripeObject {
@SerializedName("p24")
P24 p24;

@SerializedName("pay_by_bank")
PayByBank payByBank;

@SerializedName("payco")
Payco payco;

Expand Down Expand Up @@ -406,10 +409,10 @@ public static class PaymentMethodPreview extends StripeObject {
* {@code grabpay}, {@code id_bank_transfer}, {@code ideal}, {@code interac_present}, {@code
* kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card}, {@code link}, {@code mb_way},
* {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code oxxo}, {@code p24}, {@code
* payco}, {@code paynow}, {@code paypal}, {@code payto}, {@code pix}, {@code promptpay}, {@code
* qris}, {@code rechnung}, {@code revolut_pay}, {@code samsung_pay}, {@code sepa_debit}, {@code
* shopeepay}, {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code
* wechat_pay}, or {@code zip}.
* pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal}, {@code payto}, {@code pix},
* {@code promptpay}, {@code qris}, {@code rechnung}, {@code revolut_pay}, {@code samsung_pay},
* {@code sepa_debit}, {@code shopeepay}, {@code sofort}, {@code swish}, {@code twint}, {@code
* us_bank_account}, {@code wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -1912,6 +1915,15 @@ public static class P24 extends StripeObject {
String bank;
}

/**
* For more details about PayByBank, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PayByBank extends StripeObject {}

/**
* For more details about Payco, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -3141,6 +3141,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("p24")
P24 p24;

@SerializedName("pay_by_bank")
PayByBank payByBank;

@SerializedName("payco")
Payco payco;

Expand Down Expand Up @@ -4890,6 +4893,15 @@ public static class P24 extends StripeObject {
String setupFutureUsage;
}

/**
* For more details about PayByBank, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PayByBank extends StripeObject {}

/**
* For more details about Payco, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down
23 changes: 18 additions & 5 deletions src/main/java/com/stripe/model/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore<P
@SerializedName("p24")
P24 p24;

@SerializedName("pay_by_bank")
PayByBank payByBank;

@SerializedName("payco")
Payco payco;

Expand Down Expand Up @@ -253,11 +256,11 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore<P
* customer_balance}, {@code eps}, {@code fpx}, {@code giropay}, {@code gopay}, {@code grabpay},
* {@code id_bank_transfer}, {@code ideal}, {@code interac_present}, {@code kakao_pay}, {@code
* klarna}, {@code konbini}, {@code kr_card}, {@code link}, {@code mb_way}, {@code mobilepay},
* {@code multibanco}, {@code naver_pay}, {@code oxxo}, {@code p24}, {@code payco}, {@code
* paynow}, {@code paypal}, {@code payto}, {@code pix}, {@code promptpay}, {@code qris}, {@code
* rechnung}, {@code revolut_pay}, {@code samsung_pay}, {@code sepa_debit}, {@code shopeepay},
* {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code wechat_pay}, or
* {@code zip}.
* {@code multibanco}, {@code naver_pay}, {@code oxxo}, {@code p24}, {@code pay_by_bank}, {@code
* payco}, {@code paynow}, {@code paypal}, {@code payto}, {@code pix}, {@code promptpay}, {@code
* qris}, {@code rechnung}, {@code revolut_pay}, {@code samsung_pay}, {@code sepa_debit}, {@code
* shopeepay}, {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code
* wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -2135,6 +2138,15 @@ public static class P24 extends StripeObject {
String bank;
}

/**
* For more details about PayByBank, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PayByBank extends StripeObject {}

/**
* For more details about Payco, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down Expand Up @@ -2618,6 +2630,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(naverPay, responseGetter);
trySetResponseGetter(oxxo, responseGetter);
trySetResponseGetter(p24, responseGetter);
trySetResponseGetter(payByBank, responseGetter);
trySetResponseGetter(payco, responseGetter);
trySetResponseGetter(paynow, responseGetter);
trySetResponseGetter(paypal, responseGetter);
Expand Down
55 changes: 55 additions & 0 deletions src/main/java/com/stripe/model/PaymentMethodConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId {
@SerializedName("parent")
String parent;

@SerializedName("pay_by_bank")
PayByBank payByBank;

@SerializedName("paynow")
Paynow paynow;

Expand Down Expand Up @@ -2016,6 +2019,57 @@ public static class DisplayPreference extends StripeObject {
}
}

/**
* For more details about PayByBank, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PayByBank extends StripeObject {
/**
* Whether this payment method may be offered at checkout. True if {@code display_preference} is
* {@code on} and the payment method's capability is active.
*/
@SerializedName("available")
Boolean available;

@SerializedName("display_preference")
DisplayPreference displayPreference;

/**
* For more details about DisplayPreference, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class DisplayPreference extends StripeObject {
/**
* For child configs, whether or not the account's preference will be observed. If {@code
* false}, the parent configuration's default is used.
*/
@SerializedName("overridable")
Boolean overridable;

/**
* The account's display preference.
*
* <p>One of {@code none}, {@code off}, or {@code on}.
*/
@SerializedName("preference")
String preference;

/**
* The effective display preference value.
*
* <p>One of {@code off}, or {@code on}.
*/
@SerializedName("value")
String value;
}
}

/**
* For more details about Paynow, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down Expand Up @@ -2765,6 +2819,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(multibanco, responseGetter);
trySetResponseGetter(oxxo, responseGetter);
trySetResponseGetter(p24, responseGetter);
trySetResponseGetter(payByBank, responseGetter);
trySetResponseGetter(paynow, responseGetter);
trySetResponseGetter(paypal, responseGetter);
trySetResponseGetter(payto, responseGetter);
Expand Down
82 changes: 82 additions & 0 deletions src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,13 @@ public static class PaymentMethodData {
@SerializedName("p24")
P24 p24;

/**
* If this is a {@code pay_by_bank} PaymentMethod, this hash contains details about the
* PayByBank payment method.
*/
@SerializedName("pay_by_bank")
PayByBank payByBank;

/**
* If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO payment
* method.
Expand Down Expand Up @@ -628,6 +635,7 @@ private PaymentMethodData(
NaverPay naverPay,
Oxxo oxxo,
P24 p24,
PayByBank payByBank,
Payco payco,
Paynow paynow,
Paypal paypal,
Expand Down Expand Up @@ -684,6 +692,7 @@ private PaymentMethodData(
this.naverPay = naverPay;
this.oxxo = oxxo;
this.p24 = p24;
this.payByBank = payByBank;
this.payco = payco;
this.paynow = paynow;
this.paypal = paypal;
Expand Down Expand Up @@ -783,6 +792,8 @@ public static class Builder {

private P24 p24;

private PayByBank payByBank;

private Payco payco;

private Paynow paynow;
Expand Down Expand Up @@ -862,6 +873,7 @@ public ConfirmationTokenCreateParams.PaymentMethodData build() {
this.naverPay,
this.oxxo,
this.p24,
this.payByBank,
this.payco,
this.paynow,
this.paypal,
Expand Down Expand Up @@ -1260,6 +1272,16 @@ public Builder setP24(ConfirmationTokenCreateParams.PaymentMethodData.P24 p24) {
return this;
}

/**
* If this is a {@code pay_by_bank} PaymentMethod, this hash contains details about the
* PayByBank payment method.
*/
public Builder setPayByBank(
ConfirmationTokenCreateParams.PaymentMethodData.PayByBank payByBank) {
this.payByBank = payByBank;
return this;
}

/**
* If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO
* payment method.
Expand Down Expand Up @@ -4295,6 +4317,63 @@ public enum Bank implements ApiRequestParams.EnumParam {
}
}

@Getter
public static class PayByBank {
/**
* 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;

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

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

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

/** Finalize and obtain parameter instance from this builder. */
public ConfirmationTokenCreateParams.PaymentMethodData.PayByBank build() {
return new ConfirmationTokenCreateParams.PaymentMethodData.PayByBank(this.extraParams);
}

/**
* 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 ConfirmationTokenCreateParams.PaymentMethodData.PayByBank#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 ConfirmationTokenCreateParams.PaymentMethodData.PayByBank#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;
}
}
}

@Getter
public static class Payco {
/**
Expand Down Expand Up @@ -5841,6 +5920,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("p24")
P24("p24"),

@SerializedName("pay_by_bank")
PAY_BY_BANK("pay_by_bank"),

@SerializedName("payco")
PAYCO("payco"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("p24")
P24("p24"),

@SerializedName("pay_by_bank")
PAY_BY_BANK("pay_by_bank"),

@SerializedName("payco")
PAYCO("payco"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("p24")
P24("p24"),

@SerializedName("pay_by_bank")
PAY_BY_BANK("pay_by_bank"),

@SerializedName("payco")
PAYCO("payco"),

Expand Down
Loading

0 comments on commit c7fa283

Please sign in to comment.