diff --git a/API_VERSION b/API_VERSION
index cbfd144ed1d..8e27f52b526 100644
--- a/API_VERSION
+++ b/API_VERSION
@@ -1 +1 @@
-c5d9f47b11fbac901125e0621faadddc6ac6eb1e
\ No newline at end of file
+56689dcbcaa4c7ce6bf1b51a5add451972e0689c
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 523c6856a01..d58b721db45 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -70,6 +70,9 @@ This release changes the pinned API version to `2025-10-29.preview`.
* Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.apiVersion`
## 30.1.0 - 2025-10-29
+
+This release changes the pinned API version to `2025-10-29.clover`.
+
* [#2093](https://github.com/stripe/stripe-java/pull/2093) Update generated code
* Improve docs for PaymentIntent related endpoints
* [#2086](https://github.com/stripe/stripe-java/pull/2086) Update generated code
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 76d911f49fe..4dfe75c0edd 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2104
\ No newline at end of file
+v2106
\ No newline at end of file
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.java
index 74ac63b0321..56a8f7d3136 100644
--- a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.java
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.java
@@ -24,7 +24,8 @@ public static final class EventData {
*
*
One of {@code commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
* commercial.cross_river_bank.charge_card}, {@code commercial.cross_river_bank.spend_card},
- * {@code commercial.stripe.charge_card}, or {@code commercial.stripe.prepaid_card}.
+ * {@code commercial.lead.prepaid_card}, {@code commercial.stripe.charge_card}, or {@code
+ * commercial.stripe.prepaid_card}.
*/
@SerializedName("updated_capability")
String updatedCapability;
diff --git a/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java b/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java
index 7b5979ec678..722683582b9 100644
--- a/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java
+++ b/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java
@@ -101,6 +101,10 @@ public class RequestedSession extends ApiResource
@SerializedName("payment_method")
String paymentMethod;
+ /** The preview of the payment method to be created when the requested session is confirmed. */
+ @SerializedName("payment_method_preview")
+ PaymentMethodPreview paymentMethodPreview;
+
@SerializedName("seller_details")
SellerDetails sellerDetails;
@@ -561,11 +565,118 @@ public static class LineItemDetail extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class OrderDetails extends StripeObject {
+ /** The seller's order identifier. */
+ @SerializedName("order_id")
+ String orderId;
+
/** The URL to the order status. */
@SerializedName("order_status_url")
String orderStatusUrl;
}
+ /**
+ * For more details about PaymentMethodPreview, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaymentMethodPreview extends StripeObject {
+ /** The billing details of the payment method. */
+ @SerializedName("billing_details")
+ BillingDetails billingDetails;
+
+ /** The card details of the payment method. */
+ @SerializedName("card")
+ Card card;
+
+ /** The type of the payment method. */
+ @SerializedName("type")
+ String type;
+
+ /**
+ * For more details about BillingDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingDetails extends StripeObject {
+ /** The billing address. */
+ @SerializedName("address")
+ Address address;
+
+ /** The email address for the billing details. */
+ @SerializedName("email")
+ String email;
+
+ /** The name for the billing details. */
+ @SerializedName("name")
+ String name;
+
+ /** The phone number for the billing details. */
+ @SerializedName("phone")
+ String phone;
+
+ /**
+ * For more details about Address, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Address extends StripeObject {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
+
+ /** Address line 1, such as the street, PO Box, or company name. */
+ @SerializedName("line1")
+ String line1;
+
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ @SerializedName("line2")
+ String line2;
+
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /** State, county, province, or region. */
+ @SerializedName("state")
+ String state;
+ }
+ }
+
+ /**
+ * For more details about Card, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Card extends StripeObject {
+ /** The expiry month of the card. */
+ @SerializedName("exp_month")
+ Long expMonth;
+
+ /** The expiry year of the card. */
+ @SerializedName("exp_year")
+ Long expYear;
+
+ /** The last 4 digits of the card number. */
+ @SerializedName("last4")
+ String last4;
+ }
+ }
+
/**
* For more details about SellerDetails, please refer to the API Reference.
@@ -601,6 +712,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(fulfillmentDetails, responseGetter);
trySetResponseGetter(orderDetails, responseGetter);
+ trySetResponseGetter(paymentMethodPreview, responseGetter);
trySetResponseGetter(sellerDetails, responseGetter);
trySetResponseGetter(totalDetails, responseGetter);
}
diff --git a/src/main/java/com/stripe/model/v2/core/Account.java b/src/main/java/com/stripe/model/v2/core/Account.java
index 6a3b68f6f01..abf9dd4afd2 100644
--- a/src/main/java/com/stripe/model/v2/core/Account.java
+++ b/src/main/java/com/stripe/model/v2/core/Account.java
@@ -185,6 +185,10 @@ public static class Commercial extends StripeObject {
@SerializedName("cross_river_bank")
CrossRiverBank crossRiverBank;
+ /** Can create commercial issuing cards with Lead as a BIN sponsor. */
+ @SerializedName("lead")
+ Lead lead;
+
/** Can create commercial issuing cards with Stripe as a BIN sponsor. */
@SerializedName("stripe")
Stripe stripe;
@@ -449,6 +453,80 @@ public static class StatusDetail extends StripeObject {
}
}
+ /** Can create commercial issuing cards with Lead as a BIN sponsor. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Lead extends StripeObject {
+ /**
+ * Can create commercial Global(cross border) issuing prepaid cards with Lead as BIN
+ * sponsor.
+ */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
+ /**
+ * Can create commercial Global(cross border) issuing prepaid cards with Lead as BIN
+ * sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard extends StripeObject {
+ /** Whether the Capability has been requested. */
+ @SerializedName("requested")
+ Boolean requested;
+
+ /**
+ * The status of the Capability.
+ *
+ *
One of {@code active}, {@code pending}, {@code restricted}, or {@code
+ * unsupported}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * Additional details regarding the status of the Capability. {@code status_details}
+ * will be empty if the Capability's status is {@code active}.
+ */
+ @SerializedName("status_details")
+ List<
+ Account.Configuration.CardCreator.Capabilities.Commercial.Lead.PrepaidCard
+ .StatusDetail>
+ statusDetails;
+
+ /**
+ * For more details about StatusDetail, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetail extends StripeObject {
+ /**
+ * Machine-readable code explaining the reason for the Capability to be in its
+ * current status.
+ *
+ *
One of {@code determining_status}, {@code requirements_past_due}, {@code
+ * requirements_pending_verification}, {@code restricted_other}, {@code
+ * unsupported_business}, {@code unsupported_country}, or {@code
+ * unsupported_entity_type}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /**
+ * Machine-readable code explaining how to make the Capability active.
+ *
+ *
One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}.
+ */
+ @SerializedName("resolution")
+ String resolution;
+ }
+ }
+ }
+
/** Can create commercial issuing cards with Stripe as a BIN sponsor. */
@Getter
@Setter
@@ -5561,6 +5639,16 @@ public static class Commercial extends StripeObject {
@SerializedName("cross_river_bank")
CrossRiverBank crossRiverBank;
+ /** Terms of service acceptances for Stripe commercial card Global issuing. */
+ @SerializedName("global_account_holder")
+ GlobalAccountHolder globalAccountHolder;
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
+ */
+ @SerializedName("lead")
+ Lead lead;
+
/** Terms of service acceptances for Stripe commercial card issuing. */
@Getter
@Setter
@@ -6177,6 +6265,188 @@ public static class FinancingDisclosures extends StripeObject {
}
}
}
+
+ /** Terms of service acceptances for Stripe commercial card Global issuing. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class GlobalAccountHolder extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted the
+ * terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Lead extends StripeObject {
+ /**
+ * Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as
+ * BIN sponsor.
+ */
+ @SerializedName("apple_pay")
+ ApplePay applePay;
+
+ /**
+ * Terms of service acceptances for commercial issuing Global prepaid cards with Lead
+ * as BIN sponsor.
+ */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
+ /**
+ * Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as
+ * BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ApplePay extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing Global prepaid cards with Lead
+ * as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard extends StripeObject {
+ /**
+ * Bank terms of service acceptance for commercial Global issuing prepaid cards with
+ * Lead as BIN sponsor.
+ */
+ @SerializedName("bank_terms")
+ BankTerms bankTerms;
+
+ /**
+ * Platform terms of service acceptance for commercial Global issuing prepaid cards
+ * with Lead as BIN sponsor.
+ */
+ @SerializedName("platform")
+ Platform platform;
+
+ /**
+ * Bank terms of service acceptance for commercial Global issuing prepaid cards with
+ * Lead as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BankTerms extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Platform terms of service acceptance for commercial Global issuing prepaid cards
+ * with Lead as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Platform extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+ }
+ }
}
}
@@ -7778,11 +8048,11 @@ public static class RestrictsCapability extends StripeObject {
* cards}, {@code card_payments}, {@code cartes_bancaires_payments}, {@code
* cashapp_payments}, {@code commercial.celtic.charge_card}, {@code
* commercial.celtic.spend_card}, {@code commercial.cross_river_bank.charge_card}, {@code
- * commercial.cross_river_bank.spend_card}, {@code commercial.stripe.charge_card}, {@code
- * commercial.stripe.prepaid_card}, {@code crypto}, {@code eps_payments}, {@code
- * financial_addresses.bank_accounts}, {@code fpx_payments}, {@code
- * gb_bank_transfer_payments}, {@code grabpay_payments}, {@code holds_currencies.gbp},
- * {@code holds_currencies.usd}, {@code ideal_payments}, {@code
+ * commercial.cross_river_bank.spend_card}, {@code commercial.lead.prepaid_card}, {@code
+ * commercial.stripe.charge_card}, {@code commercial.stripe.prepaid_card}, {@code crypto},
+ * {@code eps_payments}, {@code financial_addresses.bank_accounts}, {@code fpx_payments},
+ * {@code gb_bank_transfer_payments}, {@code grabpay_payments}, {@code
+ * holds_currencies.gbp}, {@code holds_currencies.usd}, {@code ideal_payments}, {@code
* inbound_transfers.financial_accounts}, {@code jcb_payments}, {@code
* jp_bank_transfer_payments}, {@code kakao_pay_payments}, {@code klarna_payments}, {@code
* konbini_payments}, {@code kr_card_payments}, {@code link_payments}, {@code
diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java
index ad4cbe9e15d..946ecacda72 100644
--- a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java
@@ -807,7 +807,7 @@ public static class LineItemDetail {
@SerializedName("key")
Object key;
- /** The quantity of the line item. */
+ /** Required. The quantity of the line item. */
@SerializedName("quantity")
Long quantity;
@@ -873,7 +873,7 @@ public Builder setKey(EmptyParam key) {
return this;
}
- /** The quantity of the line item. */
+ /** Required. The quantity of the line item. */
public Builder setQuantity(Long quantity) {
this.quantity = quantity;
return this;
diff --git a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java
index 6f0425e4df8..b829c6b8b83 100644
--- a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java
@@ -568,6 +568,10 @@ public static class Commercial {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** Can create commercial issuing cards with Stripe as BIN sponsor. */
+ @SerializedName("lead")
+ Lead lead;
+
/** Can create commercial issuing cards with Stripe as BIN sponsor. */
@SerializedName("stripe")
Stripe stripe;
@@ -576,10 +580,12 @@ private Commercial(
Celtic celtic,
CrossRiverBank crossRiverBank,
Map extraParams,
+ Lead lead,
Stripe stripe) {
this.celtic = celtic;
this.crossRiverBank = crossRiverBank;
this.extraParams = extraParams;
+ this.lead = lead;
this.stripe = stripe;
}
@@ -594,12 +600,14 @@ public static class Builder {
private Map extraParams;
+ private Lead lead;
+
private Stripe stripe;
/** Finalize and obtain parameter instance from this builder. */
public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial build() {
return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial(
- this.celtic, this.crossRiverBank, this.extraParams, this.stripe);
+ this.celtic, this.crossRiverBank, this.extraParams, this.lead, this.stripe);
}
/** Can create commercial issuing cards with Celtic as BIN sponsor. */
@@ -648,6 +656,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /** Can create commercial issuing cards with Stripe as BIN sponsor. */
+ public Builder setLead(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead lead) {
+ this.lead = lead;
+ return this;
+ }
+
/** Can create commercial issuing cards with Stripe as BIN sponsor. */
public Builder setStripe(
AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
@@ -1184,6 +1199,168 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Lead {
+ /**
+ * 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 extraParams;
+
+ /** Can create commercial issuing prepaid cards with Lead as BIN sponsor. */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
+ private Lead(Map extraParams, PrepaidCard prepaidCard) {
+ this.extraParams = extraParams;
+ this.prepaidCard = prepaidCard;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private PrepaidCard prepaidCard;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
+ .Lead(this.extraParams, this.prepaidCard);
+ }
+
+ /**
+ * 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.Configuration.CardCreator.Capabilities.Commercial.Lead#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.Configuration.CardCreator.Capabilities.Commercial.Lead#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Can create commercial issuing prepaid cards with Lead as BIN sponsor. */
+ public Builder setPrepaidCard(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
+ .PrepaidCard
+ prepaidCard) {
+ this.prepaidCard = prepaidCard;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard {
+ /**
+ * 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 extraParams;
+
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private PrepaidCard(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
+ .PrepaidCard
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
+ .Lead.PrepaidCard(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.Configuration.CardCreator.Capabilities.Commercial.Lead.PrepaidCard#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.Configuration.CardCreator.Capabilities.Commercial.Lead.PrepaidCard#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Stripe {
@@ -12944,15 +13121,29 @@ public static class Commercial {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** Terms of service acceptances for Stripe commercial card Global issuing. */
+ @SerializedName("global_account_holder")
+ GlobalAccountHolder globalAccountHolder;
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
+ */
+ @SerializedName("lead")
+ Lead lead;
+
private Commercial(
AccountHolder accountHolder,
Celtic celtic,
CrossRiverBank crossRiverBank,
- Map extraParams) {
+ Map extraParams,
+ GlobalAccountHolder globalAccountHolder,
+ Lead lead) {
this.accountHolder = accountHolder;
this.celtic = celtic;
this.crossRiverBank = crossRiverBank;
this.extraParams = extraParams;
+ this.globalAccountHolder = globalAccountHolder;
+ this.lead = lead;
}
public static Builder builder() {
@@ -12968,12 +13159,21 @@ public static class Builder {
private Map extraParams;
+ private GlobalAccountHolder globalAccountHolder;
+
+ private Lead lead;
+
/** Finalize and obtain parameter instance from this builder. */
public AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial
build() {
return new AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
.Commercial(
- this.accountHolder, this.celtic, this.crossRiverBank, this.extraParams);
+ this.accountHolder,
+ this.celtic,
+ this.crossRiverBank,
+ this.extraParams,
+ this.globalAccountHolder,
+ this.lead);
}
/** Terms of service acceptances for Stripe commercial card issuing. */
@@ -13038,6 +13238,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /** Terms of service acceptances for Stripe commercial card Global issuing. */
+ public Builder setGlobalAccountHolder(
+ AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial
+ .GlobalAccountHolder
+ globalAccountHolder) {
+ this.globalAccountHolder = globalAccountHolder;
+ return this;
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
+ */
+ public Builder setLead(
+ AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial
+ .Lead
+ lead) {
+ this.lead = lead;
+ return this;
+ }
}
@Getter
@@ -15426,6 +15646,725 @@ public Builder setUserAgent(String userAgent) {
}
}
}
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class GlobalAccountHolder {
+ /**
+ * Required. The time when the Account's representative accepted the
+ * terms of service. Represented as a RFC 3339 date & time UTC value in
+ * millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * Required. The IP address from which the Account's representative
+ * accepted the terms of service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted the
+ * terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+
+ private GlobalAccountHolder(
+ Instant date, Map extraParams, String ip, String userAgent) {
+ this.date = date;
+ this.extraParams = extraParams;
+ this.ip = ip;
+ this.userAgent = userAgent;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Instant date;
+
+ private Map extraParams;
+
+ private String ip;
+
+ private String userAgent;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.GlobalAccountHolder
+ build() {
+ return new AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.GlobalAccountHolder(
+ this.date, this.extraParams, this.ip, this.userAgent);
+ }
+
+ /**
+ * Required. The time when the Account's representative accepted
+ * the terms of service. Represented as a RFC 3339 date & time UTC value in
+ * millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ */
+ public Builder setDate(Instant date) {
+ this.date = date;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.GlobalAccountHolder#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.GlobalAccountHolder#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. The IP address from which the Account's representative
+ * accepted the terms of service.
+ */
+ public Builder setIp(String ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ public Builder setUserAgent(String userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Lead {
+ /**
+ * Terms of service acceptances for commercial issuing Apple Pay cards with Lead as
+ * BIN sponsor.
+ */
+ @SerializedName("apple_pay")
+ ApplePay applePay;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * Terms of service acceptances for commercial issuing prepaid cards with Lead as BIN
+ * sponsor.
+ */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
+ private Lead(
+ ApplePay applePay, Map extraParams, PrepaidCard prepaidCard) {
+ this.applePay = applePay;
+ this.extraParams = extraParams;
+ this.prepaidCard = prepaidCard;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private ApplePay applePay;
+
+ private Map extraParams;
+
+ private PrepaidCard prepaidCard;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead
+ build() {
+ return new AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead(this.applePay, this.extraParams, this.prepaidCard);
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing Apple Pay cards with Lead as
+ * BIN sponsor.
+ */
+ public Builder setApplePay(
+ AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial
+ .Lead.ApplePay
+ applePay) {
+ this.applePay = applePay;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing prepaid cards with Lead as
+ * BIN sponsor.
+ */
+ public Builder setPrepaidCard(
+ AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial
+ .Lead.PrepaidCard
+ prepaidCard) {
+ this.prepaidCard = prepaidCard;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ApplePay {
+ /**
+ * Required. The time when the Account's representative accepted
+ * the terms of service. Represented as a RFC 3339 date & time UTC value in
+ * millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * Required. The IP address from which the Account's representative
+ * accepted the terms of service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+
+ private ApplePay(
+ Instant date, Map extraParams, String ip, String userAgent) {
+ this.date = date;
+ this.extraParams = extraParams;
+ this.ip = ip;
+ this.userAgent = userAgent;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Instant date;
+
+ private Map extraParams;
+
+ private String ip;
+
+ private String userAgent;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.ApplePay
+ build() {
+ return new AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.ApplePay(
+ this.date, this.extraParams, this.ip, this.userAgent);
+ }
+
+ /**
+ * Required. The time when the Account's representative accepted
+ * the terms of service. Represented as a RFC 3339 date & time UTC value in
+ * millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ */
+ public Builder setDate(Instant date) {
+ this.date = date;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.ApplePay#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.ApplePay#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. The IP address from which the Account's
+ * representative accepted the terms of service.
+ */
+ public Builder setIp(String ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ public Builder setUserAgent(String userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard {
+ /**
+ * Bank terms of service acceptance for commercial issuing prepaid cards with Lead
+ * as BIN sponsor.
+ */
+ @SerializedName("bank_terms")
+ BankTerms bankTerms;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * Platform terms of service acceptance for commercial issuing prepaid cards with
+ * Lead as BIN sponsor.
+ */
+ @SerializedName("platform")
+ Platform platform;
+
+ private PrepaidCard(
+ BankTerms bankTerms, Map extraParams, Platform platform) {
+ this.bankTerms = bankTerms;
+ this.extraParams = extraParams;
+ this.platform = platform;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private BankTerms bankTerms;
+
+ private Map extraParams;
+
+ private Platform platform;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard
+ build() {
+ return new AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard(
+ this.bankTerms, this.extraParams, this.platform);
+ }
+
+ /**
+ * Bank terms of service acceptance for commercial issuing prepaid cards with Lead
+ * as BIN sponsor.
+ */
+ public Builder setBankTerms(
+ AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard.BankTerms
+ bankTerms) {
+ this.bankTerms = bankTerms;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Platform terms of service acceptance for commercial issuing prepaid cards with
+ * Lead as BIN sponsor.
+ */
+ public Builder setPlatform(
+ AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard.Platform
+ platform) {
+ this.platform = platform;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BankTerms {
+ /**
+ * Required. The time when the Account's representative accepted
+ * the terms of service. Represented as a RFC 3339 date & time UTC value in
+ * millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * Required. The IP address from which the Account's
+ * representative accepted the terms of service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+
+ private BankTerms(
+ Instant date, Map extraParams, String ip, String userAgent) {
+ this.date = date;
+ this.extraParams = extraParams;
+ this.ip = ip;
+ this.userAgent = userAgent;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Instant date;
+
+ private Map extraParams;
+
+ private String ip;
+
+ private String userAgent;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard.BankTerms
+ build() {
+ return new AccountCreateParams.Identity.Attestations.TermsOfService
+ .CardCreator.Commercial.Lead.PrepaidCard.BankTerms(
+ this.date, this.extraParams, this.ip, this.userAgent);
+ }
+
+ /**
+ * Required. The time when the Account's representative
+ * accepted the terms of service. Represented as a RFC 3339 date & time UTC
+ * value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ */
+ public Builder setDate(Instant date) {
+ this.date = date;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard.BankTerms#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard.BankTerms#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. The IP address from which the Account's
+ * representative accepted the terms of service.
+ */
+ public Builder setIp(String ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative
+ * accepted the terms of service.
+ */
+ public Builder setUserAgent(String userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Platform {
+ /**
+ * Required. The time when the Account's representative accepted
+ * the terms of service. Represented as a RFC 3339 date & time UTC value in
+ * millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * Required. The IP address from which the Account's
+ * representative accepted the terms of service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+
+ private Platform(
+ Instant date, Map extraParams, String ip, String userAgent) {
+ this.date = date;
+ this.extraParams = extraParams;
+ this.ip = ip;
+ this.userAgent = userAgent;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Instant date;
+
+ private Map extraParams;
+
+ private String ip;
+
+ private String userAgent;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard.Platform
+ build() {
+ return new AccountCreateParams.Identity.Attestations.TermsOfService
+ .CardCreator.Commercial.Lead.PrepaidCard.Platform(
+ this.date, this.extraParams, this.ip, this.userAgent);
+ }
+
+ /**
+ * Required. The time when the Account's representative
+ * accepted the terms of service. Represented as a RFC 3339 date & time UTC
+ * value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ */
+ public Builder setDate(Instant date) {
+ this.date = date;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard.Platform#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard.Platform#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. The IP address from which the Account's
+ * representative accepted the terms of service.
+ */
+ public Builder setIp(String ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative
+ * accepted the terms of service.
+ */
+ public Builder setUserAgent(String userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+ }
+ }
+ }
+ }
}
}
diff --git a/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java b/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java
index 9b8998e11d3..01456e22f20 100644
--- a/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java
+++ b/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java
@@ -625,6 +625,10 @@ public static class Commercial {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** Can create commercial issuing cards with Lead as BIN sponsor. */
+ @SerializedName("lead")
+ Lead lead;
+
/** Can create commercial issuing cards with Stripe as BIN sponsor. */
@SerializedName("stripe")
Stripe stripe;
@@ -633,10 +637,12 @@ private Commercial(
Celtic celtic,
CrossRiverBank crossRiverBank,
Map extraParams,
+ Lead lead,
Stripe stripe) {
this.celtic = celtic;
this.crossRiverBank = crossRiverBank;
this.extraParams = extraParams;
+ this.lead = lead;
this.stripe = stripe;
}
@@ -651,12 +657,14 @@ public static class Builder {
private Map extraParams;
+ private Lead lead;
+
private Stripe stripe;
/** Finalize and obtain parameter instance from this builder. */
public AccountUpdateParams.Configuration.CardCreator.Capabilities.Commercial build() {
return new AccountUpdateParams.Configuration.CardCreator.Capabilities.Commercial(
- this.celtic, this.crossRiverBank, this.extraParams, this.stripe);
+ this.celtic, this.crossRiverBank, this.extraParams, this.lead, this.stripe);
}
/** Can create commercial issuing cards with Celtic as BIN sponsor. */
@@ -705,6 +713,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /** Can create commercial issuing cards with Lead as BIN sponsor. */
+ public Builder setLead(
+ AccountUpdateParams.Configuration.CardCreator.Capabilities.Commercial.Lead lead) {
+ this.lead = lead;
+ return this;
+ }
+
/** Can create commercial issuing cards with Stripe as BIN sponsor. */
public Builder setStripe(
AccountUpdateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
@@ -1241,6 +1256,168 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Lead {
+ /**
+ * 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 extraParams;
+
+ /** Can create commercial issuing prepaid cards with Lead as BIN sponsor. */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
+ private Lead(Map extraParams, PrepaidCard prepaidCard) {
+ this.extraParams = extraParams;
+ this.prepaidCard = prepaidCard;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private PrepaidCard prepaidCard;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
+ build() {
+ return new AccountUpdateParams.Configuration.CardCreator.Capabilities.Commercial
+ .Lead(this.extraParams, this.prepaidCard);
+ }
+
+ /**
+ * 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.Configuration.CardCreator.Capabilities.Commercial.Lead#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.Configuration.CardCreator.Capabilities.Commercial.Lead#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Can create commercial issuing prepaid cards with Lead as BIN sponsor. */
+ public Builder setPrepaidCard(
+ AccountUpdateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
+ .PrepaidCard
+ prepaidCard) {
+ this.prepaidCard = prepaidCard;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard {
+ /**
+ * 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 extraParams;
+
+ /**
+ * To request a new Capability for an account, pass true. There can be a delay before
+ * the requested Capability becomes active.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private PrepaidCard(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
+ .PrepaidCard
+ build() {
+ return new AccountUpdateParams.Configuration.CardCreator.Capabilities.Commercial
+ .Lead.PrepaidCard(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.Configuration.CardCreator.Capabilities.Commercial.Lead.PrepaidCard#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.Configuration.CardCreator.Capabilities.Commercial.Lead.PrepaidCard#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * To request a new Capability for an account, pass true. There can be a delay
+ * before the requested Capability becomes active.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Stripe {
@@ -13603,15 +13780,29 @@ public static class Commercial {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** Terms of service acceptances for Stripe commercial card Global issuing. */
+ @SerializedName("global_account_holder")
+ GlobalAccountHolder globalAccountHolder;
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
+ */
+ @SerializedName("lead")
+ Lead lead;
+
private Commercial(
AccountHolder accountHolder,
Celtic celtic,
CrossRiverBank crossRiverBank,
- Map extraParams) {
+ Map extraParams,
+ GlobalAccountHolder globalAccountHolder,
+ Lead lead) {
this.accountHolder = accountHolder;
this.celtic = celtic;
this.crossRiverBank = crossRiverBank;
this.extraParams = extraParams;
+ this.globalAccountHolder = globalAccountHolder;
+ this.lead = lead;
}
public static Builder builder() {
@@ -13627,12 +13818,21 @@ public static class Builder {
private Map extraParams;
+ private GlobalAccountHolder globalAccountHolder;
+
+ private Lead lead;
+
/** Finalize and obtain parameter instance from this builder. */
public AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial
build() {
return new AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
.Commercial(
- this.accountHolder, this.celtic, this.crossRiverBank, this.extraParams);
+ this.accountHolder,
+ this.celtic,
+ this.crossRiverBank,
+ this.extraParams,
+ this.globalAccountHolder,
+ this.lead);
}
/** Terms of service acceptances for Stripe commercial card issuing. */
@@ -13697,6 +13897,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /** Terms of service acceptances for Stripe commercial card Global issuing. */
+ public Builder setGlobalAccountHolder(
+ AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial
+ .GlobalAccountHolder
+ globalAccountHolder) {
+ this.globalAccountHolder = globalAccountHolder;
+ return this;
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
+ */
+ public Builder setLead(
+ AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial
+ .Lead
+ lead) {
+ this.lead = lead;
+ return this;
+ }
}
@Getter
@@ -16319,6 +16539,797 @@ public Builder setUserAgent(EmptyParam userAgent) {
}
}
}
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class GlobalAccountHolder {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ Object ip;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted the
+ * terms of service.
+ */
+ @SerializedName("user_agent")
+ Object userAgent;
+
+ private GlobalAccountHolder(
+ Instant date, Map extraParams, Object ip, Object userAgent) {
+ this.date = date;
+ this.extraParams = extraParams;
+ this.ip = ip;
+ this.userAgent = userAgent;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Instant date;
+
+ private Map extraParams;
+
+ private Object ip;
+
+ private Object userAgent;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.GlobalAccountHolder
+ build() {
+ return new AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.GlobalAccountHolder(
+ this.date, this.extraParams, this.ip, this.userAgent);
+ }
+
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ public Builder setDate(Instant date) {
+ this.date = date;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.GlobalAccountHolder#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.GlobalAccountHolder#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ public Builder setIp(String ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ public Builder setIp(EmptyParam ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ public Builder setUserAgent(String userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ public Builder setUserAgent(EmptyParam userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Lead {
+ /**
+ * Terms of service acceptances for commercial issuing Apple Pay cards with Lead as
+ * BIN sponsor.
+ */
+ @SerializedName("apple_pay")
+ ApplePay applePay;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * Terms of service acceptances for commercial issuing prepaid cards with Lead as BIN
+ * sponsor.
+ */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
+ private Lead(
+ ApplePay applePay, Map extraParams, PrepaidCard prepaidCard) {
+ this.applePay = applePay;
+ this.extraParams = extraParams;
+ this.prepaidCard = prepaidCard;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private ApplePay applePay;
+
+ private Map extraParams;
+
+ private PrepaidCard prepaidCard;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead
+ build() {
+ return new AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead(this.applePay, this.extraParams, this.prepaidCard);
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing Apple Pay cards with Lead as
+ * BIN sponsor.
+ */
+ public Builder setApplePay(
+ AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial
+ .Lead.ApplePay
+ applePay) {
+ this.applePay = applePay;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing prepaid cards with Lead as
+ * BIN sponsor.
+ */
+ public Builder setPrepaidCard(
+ AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator.Commercial
+ .Lead.PrepaidCard
+ prepaidCard) {
+ this.prepaidCard = prepaidCard;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ApplePay {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ Object ip;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ Object userAgent;
+
+ private ApplePay(
+ Instant date, Map extraParams, Object ip, Object userAgent) {
+ this.date = date;
+ this.extraParams = extraParams;
+ this.ip = ip;
+ this.userAgent = userAgent;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Instant date;
+
+ private Map extraParams;
+
+ private Object ip;
+
+ private Object userAgent;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.ApplePay
+ build() {
+ return new AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.ApplePay(
+ this.date, this.extraParams, this.ip, this.userAgent);
+ }
+
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ public Builder setDate(Instant date) {
+ this.date = date;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.ApplePay#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.ApplePay#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ public Builder setIp(String ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ public Builder setIp(EmptyParam ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ public Builder setUserAgent(String userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ public Builder setUserAgent(EmptyParam userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard {
+ /**
+ * Bank terms of service acceptance for commercial issuing prepaid cards with Lead
+ * as BIN sponsor.
+ */
+ @SerializedName("bank_terms")
+ BankTerms bankTerms;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * Platform terms of service acceptance for commercial issuing prepaid cards with
+ * Lead as BIN sponsor.
+ */
+ @SerializedName("platform")
+ Platform platform;
+
+ private PrepaidCard(
+ BankTerms bankTerms, Map extraParams, Platform platform) {
+ this.bankTerms = bankTerms;
+ this.extraParams = extraParams;
+ this.platform = platform;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private BankTerms bankTerms;
+
+ private Map extraParams;
+
+ private Platform platform;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard
+ build() {
+ return new AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard(
+ this.bankTerms, this.extraParams, this.platform);
+ }
+
+ /**
+ * Bank terms of service acceptance for commercial issuing prepaid cards with Lead
+ * as BIN sponsor.
+ */
+ public Builder setBankTerms(
+ AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard.BankTerms
+ bankTerms) {
+ this.bankTerms = bankTerms;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Platform terms of service acceptance for commercial issuing prepaid cards with
+ * Lead as BIN sponsor.
+ */
+ public Builder setPlatform(
+ AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard.Platform
+ platform) {
+ this.platform = platform;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BankTerms {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ Object ip;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ Object userAgent;
+
+ private BankTerms(
+ Instant date, Map extraParams, Object ip, Object userAgent) {
+ this.date = date;
+ this.extraParams = extraParams;
+ this.ip = ip;
+ this.userAgent = userAgent;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Instant date;
+
+ private Map extraParams;
+
+ private Object ip;
+
+ private Object userAgent;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard.BankTerms
+ build() {
+ return new AccountUpdateParams.Identity.Attestations.TermsOfService
+ .CardCreator.Commercial.Lead.PrepaidCard.BankTerms(
+ this.date, this.extraParams, this.ip, this.userAgent);
+ }
+
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ public Builder setDate(Instant date) {
+ this.date = date;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard.BankTerms#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard.BankTerms#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ public Builder setIp(String ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ public Builder setIp(EmptyParam ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative
+ * accepted the terms of service.
+ */
+ public Builder setUserAgent(String userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative
+ * accepted the terms of service.
+ */
+ public Builder setUserAgent(EmptyParam userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Platform {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * 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 extraParams;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ Object ip;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ Object userAgent;
+
+ private Platform(
+ Instant date, Map extraParams, Object ip, Object userAgent) {
+ this.date = date;
+ this.extraParams = extraParams;
+ this.ip = ip;
+ this.userAgent = userAgent;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Instant date;
+
+ private Map extraParams;
+
+ private Object ip;
+
+ private Object userAgent;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Identity.Attestations.TermsOfService.CardCreator
+ .Commercial.Lead.PrepaidCard.Platform
+ build() {
+ return new AccountUpdateParams.Identity.Attestations.TermsOfService
+ .CardCreator.Commercial.Lead.PrepaidCard.Platform(
+ this.date, this.extraParams, this.ip, this.userAgent);
+ }
+
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ public Builder setDate(Instant date) {
+ this.date = date;
+ return this;
+ }
+
+ /**
+ * 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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard.Platform#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.Identity.Attestations.TermsOfService.CardCreator.Commercial.Lead.PrepaidCard.Platform#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ public Builder setIp(String ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ public Builder setIp(EmptyParam ip) {
+ this.ip = ip;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative
+ * accepted the terms of service.
+ */
+ public Builder setUserAgent(String userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+
+ /**
+ * The user agent of the browser from which the Account's representative
+ * accepted the terms of service.
+ */
+ public Builder setUserAgent(EmptyParam userAgent) {
+ this.userAgent = userAgent;
+ return this;
+ }
+ }
+ }
+ }
+ }
}
}