Skip to content

Commit

Permalink
Update generated code for v1443
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jan 14, 2025
1 parent 1eee247 commit a5d9dab
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1442
v1443
9 changes: 9 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("p24_payments")
String p24Payments;

/**
* The status of the pay_by_bank payments capability of the account, or whether the account can
* directly process pay_by_bank charges.
*
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
*/
@SerializedName("pay_by_bank_payments")
String payByBankPayments;

/**
* The status of the Payco capability of the account, or whether the account can directly
* process Payco payments.
Expand Down
95 changes: 95 additions & 0 deletions src/main/java/com/stripe/param/AccountCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,10 @@ public static class Capabilities {
@SerializedName("p24_payments")
P24Payments p24Payments;

/** The pay_by_bank_payments capability. */
@SerializedName("pay_by_bank_payments")
PayByBankPayments payByBankPayments;

/** The payco_payments capability. */
@SerializedName("payco_payments")
PaycoPayments paycoPayments;
Expand Down Expand Up @@ -1541,6 +1545,7 @@ private Capabilities(
NaverPayPayments naverPayPayments,
OxxoPayments oxxoPayments,
P24Payments p24Payments,
PayByBankPayments payByBankPayments,
PaycoPayments paycoPayments,
PaynowPayments paynowPayments,
PaypalPayments paypalPayments,
Expand Down Expand Up @@ -1608,6 +1613,7 @@ private Capabilities(
this.naverPayPayments = naverPayPayments;
this.oxxoPayments = oxxoPayments;
this.p24Payments = p24Payments;
this.payByBankPayments = payByBankPayments;
this.paycoPayments = paycoPayments;
this.paynowPayments = paynowPayments;
this.paypalPayments = paypalPayments;
Expand Down Expand Up @@ -1724,6 +1730,8 @@ public static class Builder {

private P24Payments p24Payments;

private PayByBankPayments payByBankPayments;

private PaycoPayments paycoPayments;

private PaynowPayments paynowPayments;
Expand Down Expand Up @@ -1819,6 +1827,7 @@ public AccountCreateParams.Capabilities build() {
this.naverPayPayments,
this.oxxoPayments,
this.p24Payments,
this.payByBankPayments,
this.paycoPayments,
this.paynowPayments,
this.paypalPayments,
Expand Down Expand Up @@ -2149,6 +2158,13 @@ public Builder setP24Payments(AccountCreateParams.Capabilities.P24Payments p24Pa
return this;
}

/** The pay_by_bank_payments capability. */
public Builder setPayByBankPayments(
AccountCreateParams.Capabilities.PayByBankPayments payByBankPayments) {
this.payByBankPayments = payByBankPayments;
return this;
}

/** The payco_payments capability. */
public Builder setPaycoPayments(
AccountCreateParams.Capabilities.PaycoPayments paycoPayments) {
Expand Down Expand Up @@ -5555,6 +5571,85 @@ public Builder setRequested(Boolean requested) {
}
}

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

/**
* Passing true requests the capability for the account, if it is not already requested. A
* requested capability may not immediately become active. Any requirements to activate the
* capability are returned in the {@code requirements} arrays.
*/
@SerializedName("requested")
Boolean requested;

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

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

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

private Boolean requested;

/** Finalize and obtain parameter instance from this builder. */
public AccountCreateParams.Capabilities.PayByBankPayments build() {
return new AccountCreateParams.Capabilities.PayByBankPayments(
this.extraParams, this.requested);
}

/**
* 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 AccountCreateParams.Capabilities.PayByBankPayments#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 AccountCreateParams.Capabilities.PayByBankPayments#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;
}

/**
* Passing true requests the capability for the account, if it is not already requested. A
* requested capability may not immediately become active. Any requirements to activate the
* capability are returned in the {@code requirements} arrays.
*/
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
}

@Getter
public static class PaycoPayments {
/**
Expand Down
95 changes: 95 additions & 0 deletions src/main/java/com/stripe/param/AccountUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,10 @@ public static class Capabilities {
@SerializedName("p24_payments")
P24Payments p24Payments;

/** The pay_by_bank_payments capability. */
@SerializedName("pay_by_bank_payments")
PayByBankPayments payByBankPayments;

/** The payco_payments capability. */
@SerializedName("payco_payments")
PaycoPayments paycoPayments;
Expand Down Expand Up @@ -1639,6 +1643,7 @@ private Capabilities(
NaverPayPayments naverPayPayments,
OxxoPayments oxxoPayments,
P24Payments p24Payments,
PayByBankPayments payByBankPayments,
PaycoPayments paycoPayments,
PaynowPayments paynowPayments,
PaypalPayments paypalPayments,
Expand Down Expand Up @@ -1706,6 +1711,7 @@ private Capabilities(
this.naverPayPayments = naverPayPayments;
this.oxxoPayments = oxxoPayments;
this.p24Payments = p24Payments;
this.payByBankPayments = payByBankPayments;
this.paycoPayments = paycoPayments;
this.paynowPayments = paynowPayments;
this.paypalPayments = paypalPayments;
Expand Down Expand Up @@ -1822,6 +1828,8 @@ public static class Builder {

private P24Payments p24Payments;

private PayByBankPayments payByBankPayments;

private PaycoPayments paycoPayments;

private PaynowPayments paynowPayments;
Expand Down Expand Up @@ -1917,6 +1925,7 @@ public AccountUpdateParams.Capabilities build() {
this.naverPayPayments,
this.oxxoPayments,
this.p24Payments,
this.payByBankPayments,
this.paycoPayments,
this.paynowPayments,
this.paypalPayments,
Expand Down Expand Up @@ -2247,6 +2256,13 @@ public Builder setP24Payments(AccountUpdateParams.Capabilities.P24Payments p24Pa
return this;
}

/** The pay_by_bank_payments capability. */
public Builder setPayByBankPayments(
AccountUpdateParams.Capabilities.PayByBankPayments payByBankPayments) {
this.payByBankPayments = payByBankPayments;
return this;
}

/** The payco_payments capability. */
public Builder setPaycoPayments(
AccountUpdateParams.Capabilities.PaycoPayments paycoPayments) {
Expand Down Expand Up @@ -5653,6 +5669,85 @@ public Builder setRequested(Boolean requested) {
}
}

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

/**
* Passing true requests the capability for the account, if it is not already requested. A
* requested capability may not immediately become active. Any requirements to activate the
* capability are returned in the {@code requirements} arrays.
*/
@SerializedName("requested")
Boolean requested;

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

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

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

private Boolean requested;

/** Finalize and obtain parameter instance from this builder. */
public AccountUpdateParams.Capabilities.PayByBankPayments build() {
return new AccountUpdateParams.Capabilities.PayByBankPayments(
this.extraParams, this.requested);
}

/**
* 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 AccountUpdateParams.Capabilities.PayByBankPayments#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 AccountUpdateParams.Capabilities.PayByBankPayments#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;
}

/**
* Passing true requests the capability for the account, if it is not already requested. A
* requested capability may not immediately become active. Any requirements to activate the
* capability are returned in the {@code requirements} arrays.
*/
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
}

@Getter
public static class PaycoPayments {
/**
Expand Down

0 comments on commit a5d9dab

Please sign in to comment.