Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by delombok at Thu Oct 07 18:42:34 EDT 2021
// File generated from our OpenAPI spec
package com.stripe.param;
import com.google.gson.annotations.SerializedName;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiRequestParams.EnumParam;
import com.stripe.param.common.EmptyParam;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AccountCreateParams extends ApiRequestParams {
/**
* An account token, used to
* securely provide details to the account.
*/
@SerializedName("account_token")
String accountToken;
/**
* Business information about the account.
*/
@SerializedName("business_profile")
BusinessProfile businessProfile;
/**
* The business type.
*/
@SerializedName("business_type")
Object businessType;
/**
* Each key of the dictionary represents a capability, and each capability maps to its settings
* (e.g. whether it has been requested or not). Each capability will be inactive until you have
* provided its specific requirements and Stripe has verified them. An account may have some of
* its requested capabilities be active and some be inactive.
*/
@SerializedName("capabilities")
Capabilities capabilities;
/**
* Information about the company or business. This field is available for any {@code
* business_type}.
*/
@SerializedName("company")
Company company;
/**
* The country in which the account holder resides, or in which the business is legally
* established. This should be an ISO 3166-1 alpha-2 country code. For example, if you are in the
* United States and the business for which you're creating an account is legally represented in
* Canada, you would use {@code CA} as the country for the account being created.
*/
@SerializedName("country")
String country;
/**
* Three-letter ISO currency code representing the default currency for the account. This must be
* a currency that Stripe supports in the account's
* country.
*/
@SerializedName("default_currency")
String defaultCurrency;
/**
* Documents that may be submitted to satisfy various informational requests.
*/
@SerializedName("documents")
Documents documents;
/**
* The email address of the account holder. This is only to make the account easier to identify to
* you. Stripe will never directly email Custom accounts.
*/
@SerializedName("email")
String email;
/**
* Specifies which fields in the response should be expanded.
*/
@SerializedName("expand")
List expand;
/**
* A card or bank account to attach to the account for receiving payouts (you won’t be able
* to use it for top-ups). You can provide either a token, like the ones returned by Stripe.js, or a dictionary, as documented in the
* {@code external_account} parameter for bank account creation.
* <br><br>By default, providing an external account sets it as the new default
* external account for its currency, and deletes the old default if one exists. To add additional
* external accounts without replacing the existing default for the currency, use the bank account
* or card creation API.
*/
@SerializedName("external_account")
String externalAccount;
/**
* 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;
/**
* Information about the person represented by the account. This field is null unless {@code
* business_type} is set to {@code individual}.
*/
@SerializedName("individual")
Individual individual;
/**
* Set of key-value pairs that you can attach
* to an object. This can be useful for storing additional information about the object in a
* structured format. Individual keys can be unset by posting an empty value to them. All keys can
* be unset by posting an empty value to {@code metadata}.
*/
@SerializedName("metadata")
Object metadata;
/**
* Options for customizing how the account functions within Stripe.
*/
@SerializedName("settings")
Settings settings;
/**
* Details on the account's acceptance of the Stripe Services
* Agreement.
*/
@SerializedName("tos_acceptance")
TosAcceptance tosAcceptance;
/**
* The type of Stripe account to create. May be one of {@code custom}, {@code express} or {@code
* standard}.
*/
@SerializedName("type")
Type type;
private AccountCreateParams(String accountToken, BusinessProfile businessProfile, Object businessType, Capabilities capabilities, Company company, String country, String defaultCurrency, Documents documents, String email, List expand, String externalAccount, Map extraParams, Individual individual, Object metadata, Settings settings, TosAcceptance tosAcceptance, Type type) {
this.accountToken = accountToken;
this.businessProfile = businessProfile;
this.businessType = businessType;
this.capabilities = capabilities;
this.company = company;
this.country = country;
this.defaultCurrency = defaultCurrency;
this.documents = documents;
this.email = email;
this.expand = expand;
this.externalAccount = externalAccount;
this.extraParams = extraParams;
this.individual = individual;
this.metadata = metadata;
this.settings = settings;
this.tosAcceptance = tosAcceptance;
this.type = type;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private String accountToken;
private BusinessProfile businessProfile;
private Object businessType;
private Capabilities capabilities;
private Company company;
private String country;
private String defaultCurrency;
private Documents documents;
private String email;
private List expand;
private String externalAccount;
private Map extraParams;
private Individual individual;
private Object metadata;
private Settings settings;
private TosAcceptance tosAcceptance;
private Type type;
/**
* Finalize and obtain parameter instance from this builder.
*/
public AccountCreateParams build() {
return new AccountCreateParams(this.accountToken, this.businessProfile, this.businessType, this.capabilities, this.company, this.country, this.defaultCurrency, this.documents, this.email, this.expand, this.externalAccount, this.extraParams, this.individual, this.metadata, this.settings, this.tosAcceptance, this.type);
}
/**
* An account token, used to
* securely provide details to the account.
*/
public Builder setAccountToken(String accountToken) {
this.accountToken = accountToken;
return this;
}
/**
* Business information about the account.
*/
public Builder setBusinessProfile(BusinessProfile businessProfile) {
this.businessProfile = businessProfile;
return this;
}
/**
* The business type.
*/
public Builder setBusinessType(BusinessType businessType) {
this.businessType = businessType;
return this;
}
/**
* The business type.
*/
public Builder setBusinessType(String businessType) {
this.businessType = businessType;
return this;
}
/**
* Each key of the dictionary represents a capability, and each capability maps to its settings
* (e.g. whether it has been requested or not). Each capability will be inactive until you have
* provided its specific requirements and Stripe has verified them. An account may have some of
* its requested capabilities be active and some be inactive.
*/
public Builder setCapabilities(Capabilities capabilities) {
this.capabilities = capabilities;
return this;
}
/**
* Information about the company or business. This field is available for any {@code
* business_type}.
*/
public Builder setCompany(Company company) {
this.company = company;
return this;
}
/**
* The country in which the account holder resides, or in which the business is legally
* established. This should be an ISO 3166-1 alpha-2 country code. For example, if you are in
* the United States and the business for which you're creating an account is legally
* represented in Canada, you would use {@code CA} as the country for the account being created.
*/
public Builder setCountry(String country) {
this.country = country;
return this;
}
/**
* Three-letter ISO currency code representing the default currency for the account. This must
* be a currency that Stripe supports in the account's
* country.
*/
public Builder setDefaultCurrency(String defaultCurrency) {
this.defaultCurrency = defaultCurrency;
return this;
}
/**
* Documents that may be submitted to satisfy various informational requests.
*/
public Builder setDocuments(Documents documents) {
this.documents = documents;
return this;
}
/**
* The email address of the account holder. This is only to make the account easier to identify
* to you. Stripe will never directly email Custom accounts.
*/
public Builder setEmail(String email) {
this.email = email;
return this;
}
/**
* Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
* subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams#expand} for the field documentation.
*/
public Builder addExpand(String element) {
if (this.expand == null) {
this.expand = new ArrayList<>();
}
this.expand.add(element);
return this;
}
/**
* Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
* subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams#expand} for the field documentation.
*/
public Builder addAllExpand(List elements) {
if (this.expand == null) {
this.expand = new ArrayList<>();
}
this.expand.addAll(elements);
return this;
}
/**
* A card or bank account to attach to the account for receiving payouts (you won’t be able
* to use it for top-ups). You can provide either a token, like the ones returned by Stripe.js, or a dictionary, as documented in the
* {@code external_account} parameter for bank account creation.
* <br><br>By default, providing an external account sets it as the new default
* external account for its currency, and deletes the old default if one exists. To add
* additional external accounts without replacing the existing default for the currency, use the
* bank account or card creation API.
*/
public Builder setExternalAccount(String externalAccount) {
this.externalAccount = externalAccount;
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#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#extraParams} for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/**
* Information about the person represented by the account. This field is null unless {@code
* business_type} is set to {@code individual}.
*/
public Builder setIndividual(Individual individual) {
this.individual = individual;
return this;
}
/**
* Add a key/value pair to `metadata` 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#metadata} for the field documentation.
*/
@SuppressWarnings("unchecked")
public Builder putMetadata(String key, String value) {
if (this.metadata == null || this.metadata instanceof EmptyParam) {
this.metadata = new HashMap();
}
((Map) this.metadata).put(key, value);
return this;
}
/**
* Add all map key/value pairs to `metadata` 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#metadata} for the field documentation.
*/
@SuppressWarnings("unchecked")
public Builder putAllMetadata(Map map) {
if (this.metadata == null || this.metadata instanceof EmptyParam) {
this.metadata = new HashMap();
}
((Map) this.metadata).putAll(map);
return this;
}
/**
* Set of key-value pairs that you can attach
* to an object. This can be useful for storing additional information about the object in a
* structured format. Individual keys can be unset by posting an empty value to them. All keys
* can be unset by posting an empty value to {@code metadata}.
*/
public Builder setMetadata(EmptyParam metadata) {
this.metadata = metadata;
return this;
}
/**
* Set of key-value pairs that you can attach
* to an object. This can be useful for storing additional information about the object in a
* structured format. Individual keys can be unset by posting an empty value to them. All keys
* can be unset by posting an empty value to {@code metadata}.
*/
public Builder setMetadata(Map metadata) {
this.metadata = metadata;
return this;
}
/**
* Options for customizing how the account functions within Stripe.
*/
public Builder setSettings(Settings settings) {
this.settings = settings;
return this;
}
/**
* Details on the account's acceptance of the Stripe Services
* Agreement.
*/
public Builder setTosAcceptance(TosAcceptance tosAcceptance) {
this.tosAcceptance = tosAcceptance;
return this;
}
/**
* The type of Stripe account to create. May be one of {@code custom}, {@code express} or {@code
* standard}.
*/
public Builder setType(Type type) {
this.type = type;
return this;
}
}
public static class BusinessProfile {
/**
* 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 merchant category code for the
* account. MCCs are used to classify businesses based on the goods or services they
* provide.
*/
@SerializedName("mcc")
String mcc;
/**
* The customer-facing business name.
*/
@SerializedName("name")
String name;
/**
* Internal-only description of the product sold by, or service provided by, the business. Used
* by Stripe for risk and underwriting purposes.
*/
@SerializedName("product_description")
String productDescription;
/**
* A publicly available mailing address for sending support issues to.
*/
@SerializedName("support_address")
SupportAddress supportAddress;
/**
* A publicly available email address for sending support issues to.
*/
@SerializedName("support_email")
String supportEmail;
/**
* A publicly available phone number to call with support issues.
*/
@SerializedName("support_phone")
String supportPhone;
/**
* A publicly available website for handling support issues.
*/
@SerializedName("support_url")
Object supportUrl;
/**
* The business's publicly available website.
*/
@SerializedName("url")
String url;
private BusinessProfile(Map extraParams, String mcc, String name, String productDescription, SupportAddress supportAddress, String supportEmail, String supportPhone, Object supportUrl, String url) {
this.extraParams = extraParams;
this.mcc = mcc;
this.name = name;
this.productDescription = productDescription;
this.supportAddress = supportAddress;
this.supportEmail = supportEmail;
this.supportPhone = supportPhone;
this.supportUrl = supportUrl;
this.url = url;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Map extraParams;
private String mcc;
private String name;
private String productDescription;
private SupportAddress supportAddress;
private String supportEmail;
private String supportPhone;
private Object supportUrl;
private String url;
/**
* Finalize and obtain parameter instance from this builder.
*/
public BusinessProfile build() {
return new BusinessProfile(this.extraParams, this.mcc, this.name, this.productDescription, this.supportAddress, this.supportEmail, this.supportPhone, this.supportUrl, this.url);
}
/**
* 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.BusinessProfile#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.BusinessProfile#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 merchant category code for the
* account. MCCs are used to classify businesses based on the goods or services they
* provide.
*/
public Builder setMcc(String mcc) {
this.mcc = mcc;
return this;
}
/**
* The customer-facing business name.
*/
public Builder setName(String name) {
this.name = name;
return this;
}
/**
* Internal-only description of the product sold by, or service provided by, the business.
* Used by Stripe for risk and underwriting purposes.
*/
public Builder setProductDescription(String productDescription) {
this.productDescription = productDescription;
return this;
}
/**
* A publicly available mailing address for sending support issues to.
*/
public Builder setSupportAddress(SupportAddress supportAddress) {
this.supportAddress = supportAddress;
return this;
}
/**
* A publicly available email address for sending support issues to.
*/
public Builder setSupportEmail(String supportEmail) {
this.supportEmail = supportEmail;
return this;
}
/**
* A publicly available phone number to call with support issues.
*/
public Builder setSupportPhone(String supportPhone) {
this.supportPhone = supportPhone;
return this;
}
/**
* A publicly available website for handling support issues.
*/
public Builder setSupportUrl(String supportUrl) {
this.supportUrl = supportUrl;
return this;
}
/**
* A publicly available website for handling support issues.
*/
public Builder setSupportUrl(EmptyParam supportUrl) {
this.supportUrl = supportUrl;
return this;
}
/**
* The business's publicly available website.
*/
public Builder setUrl(String url) {
this.url = url;
return this;
}
}
public static class SupportAddress {
/** City, district, suburb, town, or village. */
@SerializedName("city")
String city;
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
@SerializedName("country")
String country;
/**
* 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;
/** Address line 1 (e.g., street, PO Box, or company name). */
@SerializedName("line1")
String line1;
/** Address line 2 (e.g., 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;
private SupportAddress(String city, String country, Map extraParams, String line1, String line2, String postalCode, String state) {
this.city = city;
this.country = country;
this.extraParams = extraParams;
this.line1 = line1;
this.line2 = line2;
this.postalCode = postalCode;
this.state = state;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private String city;
private String country;
private Map extraParams;
private String line1;
private String line2;
private String postalCode;
private String state;
/** Finalize and obtain parameter instance from this builder. */
public SupportAddress build() {
return new SupportAddress(this.city, this.country, this.extraParams, this.line1, this.line2, this.postalCode, this.state);
}
/** City, district, suburb, town, or village. */
public Builder setCity(String city) {
this.city = city;
return this;
}
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
public Builder setCountry(String country) {
this.country = country;
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.BusinessProfile.SupportAddress#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.BusinessProfile.SupportAddress#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/** Address line 1 (e.g., street, PO Box, or company name). */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
/** Address line 2 (e.g., apartment, suite, unit, or building). */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
/** ZIP or postal code. */
public Builder setPostalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
public Builder setState(String state) {
this.state = state;
return this;
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getCity() {
return this.city;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getCountry() {
return this.country;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getLine1() {
return this.line1;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getLine2() {
return this.line2;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getPostalCode() {
return this.postalCode;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getState() {
return this.state;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* The merchant category code for the
* account. MCCs are used to classify businesses based on the goods or services they
* provide.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getMcc() {
return this.mcc;
}
/**
* The customer-facing business name.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getName() {
return this.name;
}
/**
* Internal-only description of the product sold by, or service provided by, the business. Used
* by Stripe for risk and underwriting purposes.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getProductDescription() {
return this.productDescription;
}
/**
* A publicly available mailing address for sending support issues to.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SupportAddress getSupportAddress() {
return this.supportAddress;
}
/**
* A publicly available email address for sending support issues to.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getSupportEmail() {
return this.supportEmail;
}
/**
* A publicly available phone number to call with support issues.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getSupportPhone() {
return this.supportPhone;
}
/**
* A publicly available website for handling support issues.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Object getSupportUrl() {
return this.supportUrl;
}
/**
* The business's publicly available website.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getUrl() {
return this.url;
}
}
/**
* State, county, province, or region.
*/
public static class Capabilities {
/**
* The acss_debit_payments capability.
*/
@SerializedName("acss_debit_payments")
AcssDebitPayments acssDebitPayments;
/**
* The afterpay_clearpay_payments capability.
*/
@SerializedName("afterpay_clearpay_payments")
AfterpayClearpayPayments afterpayClearpayPayments;
/**
* The au_becs_debit_payments capability.
*/
@SerializedName("au_becs_debit_payments")
AuBecsDebitPayments auBecsDebitPayments;
/**
* The bacs_debit_payments capability.
*/
@SerializedName("bacs_debit_payments")
BacsDebitPayments bacsDebitPayments;
/**
* The bancontact_payments capability.
*/
@SerializedName("bancontact_payments")
BancontactPayments bancontactPayments;
/**
* The boleto_payments capability.
*/
@SerializedName("boleto_payments")
BoletoPayments boletoPayments;
/**
* The card_issuing capability.
*/
@SerializedName("card_issuing")
CardIssuing cardIssuing;
/**
* The card_payments capability.
*/
@SerializedName("card_payments")
CardPayments cardPayments;
/**
* The cartes_bancaires_payments capability.
*/
@SerializedName("cartes_bancaires_payments")
CartesBancairesPayments cartesBancairesPayments;
/**
* The eps_payments capability.
*/
@SerializedName("eps_payments")
EpsPayments epsPayments;
/**
* 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 fpx_payments capability.
*/
@SerializedName("fpx_payments")
FpxPayments fpxPayments;
/**
* The giropay_payments capability.
*/
@SerializedName("giropay_payments")
GiropayPayments giropayPayments;
/**
* The grabpay_payments capability.
*/
@SerializedName("grabpay_payments")
GrabpayPayments grabpayPayments;
/**
* The ideal_payments capability.
*/
@SerializedName("ideal_payments")
IdealPayments idealPayments;
/**
* The jcb_payments capability.
*/
@SerializedName("jcb_payments")
JcbPayments jcbPayments;
/**
* The klarna_payments capability.
*/
@SerializedName("klarna_payments")
KlarnaPayments klarnaPayments;
/**
* The legacy_payments capability.
*/
@SerializedName("legacy_payments")
LegacyPayments legacyPayments;
/**
* The oxxo_payments capability.
*/
@SerializedName("oxxo_payments")
OxxoPayments oxxoPayments;
/**
* The p24_payments capability.
*/
@SerializedName("p24_payments")
P24Payments p24Payments;
/**
* The sepa_debit_payments capability.
*/
@SerializedName("sepa_debit_payments")
SepaDebitPayments sepaDebitPayments;
/**
* The sofort_payments capability.
*/
@SerializedName("sofort_payments")
SofortPayments sofortPayments;
/**
* The tax_reporting_us_1099_k capability.
*/
@SerializedName("tax_reporting_us_1099_k")
TaxReportingUs1099K taxReportingUs1099K;
/**
* The tax_reporting_us_1099_misc capability.
*/
@SerializedName("tax_reporting_us_1099_misc")
TaxReportingUs1099Misc taxReportingUs1099Misc;
/**
* The transfers capability.
*/
@SerializedName("transfers")
Transfers transfers;
private Capabilities(AcssDebitPayments acssDebitPayments, AfterpayClearpayPayments afterpayClearpayPayments, AuBecsDebitPayments auBecsDebitPayments, BacsDebitPayments bacsDebitPayments, BancontactPayments bancontactPayments, BoletoPayments boletoPayments, CardIssuing cardIssuing, CardPayments cardPayments, CartesBancairesPayments cartesBancairesPayments, EpsPayments epsPayments, Map extraParams, FpxPayments fpxPayments, GiropayPayments giropayPayments, GrabpayPayments grabpayPayments, IdealPayments idealPayments, JcbPayments jcbPayments, KlarnaPayments klarnaPayments, LegacyPayments legacyPayments, OxxoPayments oxxoPayments, P24Payments p24Payments, SepaDebitPayments sepaDebitPayments, SofortPayments sofortPayments, TaxReportingUs1099K taxReportingUs1099K, TaxReportingUs1099Misc taxReportingUs1099Misc, Transfers transfers) {
this.acssDebitPayments = acssDebitPayments;
this.afterpayClearpayPayments = afterpayClearpayPayments;
this.auBecsDebitPayments = auBecsDebitPayments;
this.bacsDebitPayments = bacsDebitPayments;
this.bancontactPayments = bancontactPayments;
this.boletoPayments = boletoPayments;
this.cardIssuing = cardIssuing;
this.cardPayments = cardPayments;
this.cartesBancairesPayments = cartesBancairesPayments;
this.epsPayments = epsPayments;
this.extraParams = extraParams;
this.fpxPayments = fpxPayments;
this.giropayPayments = giropayPayments;
this.grabpayPayments = grabpayPayments;
this.idealPayments = idealPayments;
this.jcbPayments = jcbPayments;
this.klarnaPayments = klarnaPayments;
this.legacyPayments = legacyPayments;
this.oxxoPayments = oxxoPayments;
this.p24Payments = p24Payments;
this.sepaDebitPayments = sepaDebitPayments;
this.sofortPayments = sofortPayments;
this.taxReportingUs1099K = taxReportingUs1099K;
this.taxReportingUs1099Misc = taxReportingUs1099Misc;
this.transfers = transfers;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private AcssDebitPayments acssDebitPayments;
private AfterpayClearpayPayments afterpayClearpayPayments;
private AuBecsDebitPayments auBecsDebitPayments;
private BacsDebitPayments bacsDebitPayments;
private BancontactPayments bancontactPayments;
private BoletoPayments boletoPayments;
private CardIssuing cardIssuing;
private CardPayments cardPayments;
private CartesBancairesPayments cartesBancairesPayments;
private EpsPayments epsPayments;
private Map extraParams;
private FpxPayments fpxPayments;
private GiropayPayments giropayPayments;
private GrabpayPayments grabpayPayments;
private IdealPayments idealPayments;
private JcbPayments jcbPayments;
private KlarnaPayments klarnaPayments;
private LegacyPayments legacyPayments;
private OxxoPayments oxxoPayments;
private P24Payments p24Payments;
private SepaDebitPayments sepaDebitPayments;
private SofortPayments sofortPayments;
private TaxReportingUs1099K taxReportingUs1099K;
private TaxReportingUs1099Misc taxReportingUs1099Misc;
private Transfers transfers;
/**
* Finalize and obtain parameter instance from this builder.
*/
public Capabilities build() {
return new Capabilities(this.acssDebitPayments, this.afterpayClearpayPayments, this.auBecsDebitPayments, this.bacsDebitPayments, this.bancontactPayments, this.boletoPayments, this.cardIssuing, this.cardPayments, this.cartesBancairesPayments, this.epsPayments, this.extraParams, this.fpxPayments, this.giropayPayments, this.grabpayPayments, this.idealPayments, this.jcbPayments, this.klarnaPayments, this.legacyPayments, this.oxxoPayments, this.p24Payments, this.sepaDebitPayments, this.sofortPayments, this.taxReportingUs1099K, this.taxReportingUs1099Misc, this.transfers);
}
/**
* The acss_debit_payments capability.
*/
public Builder setAcssDebitPayments(AcssDebitPayments acssDebitPayments) {
this.acssDebitPayments = acssDebitPayments;
return this;
}
/**
* The afterpay_clearpay_payments capability.
*/
public Builder setAfterpayClearpayPayments(AfterpayClearpayPayments afterpayClearpayPayments) {
this.afterpayClearpayPayments = afterpayClearpayPayments;
return this;
}
/**
* The au_becs_debit_payments capability.
*/
public Builder setAuBecsDebitPayments(AuBecsDebitPayments auBecsDebitPayments) {
this.auBecsDebitPayments = auBecsDebitPayments;
return this;
}
/**
* The bacs_debit_payments capability.
*/
public Builder setBacsDebitPayments(BacsDebitPayments bacsDebitPayments) {
this.bacsDebitPayments = bacsDebitPayments;
return this;
}
/**
* The bancontact_payments capability.
*/
public Builder setBancontactPayments(BancontactPayments bancontactPayments) {
this.bancontactPayments = bancontactPayments;
return this;
}
/**
* The boleto_payments capability.
*/
public Builder setBoletoPayments(BoletoPayments boletoPayments) {
this.boletoPayments = boletoPayments;
return this;
}
/**
* The card_issuing capability.
*/
public Builder setCardIssuing(CardIssuing cardIssuing) {
this.cardIssuing = cardIssuing;
return this;
}
/**
* The card_payments capability.
*/
public Builder setCardPayments(CardPayments cardPayments) {
this.cardPayments = cardPayments;
return this;
}
/**
* The cartes_bancaires_payments capability.
*/
public Builder setCartesBancairesPayments(CartesBancairesPayments cartesBancairesPayments) {
this.cartesBancairesPayments = cartesBancairesPayments;
return this;
}
/**
* The eps_payments capability.
*/
public Builder setEpsPayments(EpsPayments epsPayments) {
this.epsPayments = epsPayments;
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.Capabilities#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#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 fpx_payments capability.
*/
public Builder setFpxPayments(FpxPayments fpxPayments) {
this.fpxPayments = fpxPayments;
return this;
}
/**
* The giropay_payments capability.
*/
public Builder setGiropayPayments(GiropayPayments giropayPayments) {
this.giropayPayments = giropayPayments;
return this;
}
/**
* The grabpay_payments capability.
*/
public Builder setGrabpayPayments(GrabpayPayments grabpayPayments) {
this.grabpayPayments = grabpayPayments;
return this;
}
/**
* The ideal_payments capability.
*/
public Builder setIdealPayments(IdealPayments idealPayments) {
this.idealPayments = idealPayments;
return this;
}
/**
* The jcb_payments capability.
*/
public Builder setJcbPayments(JcbPayments jcbPayments) {
this.jcbPayments = jcbPayments;
return this;
}
/**
* The klarna_payments capability.
*/
public Builder setKlarnaPayments(KlarnaPayments klarnaPayments) {
this.klarnaPayments = klarnaPayments;
return this;
}
/**
* The legacy_payments capability.
*/
public Builder setLegacyPayments(LegacyPayments legacyPayments) {
this.legacyPayments = legacyPayments;
return this;
}
/**
* The oxxo_payments capability.
*/
public Builder setOxxoPayments(OxxoPayments oxxoPayments) {
this.oxxoPayments = oxxoPayments;
return this;
}
/**
* The p24_payments capability.
*/
public Builder setP24Payments(P24Payments p24Payments) {
this.p24Payments = p24Payments;
return this;
}
/**
* The sepa_debit_payments capability.
*/
public Builder setSepaDebitPayments(SepaDebitPayments sepaDebitPayments) {
this.sepaDebitPayments = sepaDebitPayments;
return this;
}
/**
* The sofort_payments capability.
*/
public Builder setSofortPayments(SofortPayments sofortPayments) {
this.sofortPayments = sofortPayments;
return this;
}
/**
* The tax_reporting_us_1099_k capability.
*/
public Builder setTaxReportingUs1099K(TaxReportingUs1099K taxReportingUs1099K) {
this.taxReportingUs1099K = taxReportingUs1099K;
return this;
}
/**
* The tax_reporting_us_1099_misc capability.
*/
public Builder setTaxReportingUs1099Misc(TaxReportingUs1099Misc taxReportingUs1099Misc) {
this.taxReportingUs1099Misc = taxReportingUs1099Misc;
return this;
}
/**
* The transfers capability.
*/
public Builder setTransfers(Transfers transfers) {
this.transfers = transfers;
return this;
}
}
public static class AcssDebitPayments {
/**
* 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;
/**
* 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 AcssDebitPayments(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 AcssDebitPayments build() {
return new AcssDebitPayments(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.AcssDebitPayments#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.AcssDebitPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class AfterpayClearpayPayments {
/**
* 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;
/**
* 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 AfterpayClearpayPayments(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 AfterpayClearpayPayments build() {
return new AfterpayClearpayPayments(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.AfterpayClearpayPayments#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.AfterpayClearpayPayments#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class AuBecsDebitPayments {
/**
* 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;
/**
* 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 AuBecsDebitPayments(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 AuBecsDebitPayments build() {
return new AuBecsDebitPayments(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.AuBecsDebitPayments#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.AuBecsDebitPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class BacsDebitPayments {
/**
* 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;
/**
* 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 BacsDebitPayments(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 BacsDebitPayments build() {
return new BacsDebitPayments(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.BacsDebitPayments#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.BacsDebitPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class BancontactPayments {
/**
* 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;
/**
* 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 BancontactPayments(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 BancontactPayments build() {
return new BancontactPayments(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.BancontactPayments#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.BancontactPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class BoletoPayments {
/**
* 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;
/**
* 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 BoletoPayments(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 BoletoPayments build() {
return new BoletoPayments(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.BoletoPayments#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.BoletoPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class CardIssuing {
/**
* 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;
/**
* 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 CardIssuing(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 CardIssuing build() {
return new CardIssuing(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.CardIssuing#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.CardIssuing#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class CardPayments {
/**
* 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;
/**
* 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 CardPayments(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 CardPayments build() {
return new CardPayments(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.CardPayments#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.CardPayments#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class CartesBancairesPayments {
/**
* 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;
/**
* 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 CartesBancairesPayments(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 CartesBancairesPayments build() {
return new CartesBancairesPayments(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.CartesBancairesPayments#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.CartesBancairesPayments#extraParams} for
* the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class EpsPayments {
/**
* 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;
/**
* 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 EpsPayments(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 EpsPayments build() {
return new EpsPayments(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.EpsPayments#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.EpsPayments#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class FpxPayments {
/**
* 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;
/**
* 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 FpxPayments(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 FpxPayments build() {
return new FpxPayments(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.FpxPayments#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.FpxPayments#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class GiropayPayments {
/**
* 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;
/**
* 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 GiropayPayments(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 GiropayPayments build() {
return new GiropayPayments(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.GiropayPayments#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.GiropayPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class GrabpayPayments {
/**
* 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;
/**
* 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 GrabpayPayments(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 GrabpayPayments build() {
return new GrabpayPayments(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.GrabpayPayments#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.GrabpayPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class IdealPayments {
/**
* 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;
/**
* 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 IdealPayments(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 IdealPayments build() {
return new IdealPayments(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.IdealPayments#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.IdealPayments#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class JcbPayments {
/**
* 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;
/**
* 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 JcbPayments(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 JcbPayments build() {
return new JcbPayments(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.JcbPayments#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.JcbPayments#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class KlarnaPayments {
/**
* 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;
/**
* 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 KlarnaPayments(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 KlarnaPayments build() {
return new KlarnaPayments(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.KlarnaPayments#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.KlarnaPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class LegacyPayments {
/**
* 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;
/**
* 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 LegacyPayments(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 LegacyPayments build() {
return new LegacyPayments(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.LegacyPayments#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.LegacyPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class OxxoPayments {
/**
* 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;
/**
* 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 OxxoPayments(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 OxxoPayments build() {
return new OxxoPayments(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.OxxoPayments#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.OxxoPayments#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class P24Payments {
/**
* 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;
/**
* 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 P24Payments(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 P24Payments build() {
return new P24Payments(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.P24Payments#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.P24Payments#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class SepaDebitPayments {
/**
* 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;
/**
* 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 SepaDebitPayments(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 SepaDebitPayments build() {
return new SepaDebitPayments(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.SepaDebitPayments#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.SepaDebitPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class SofortPayments {
/**
* 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;
/**
* 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 SofortPayments(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 SofortPayments build() {
return new SofortPayments(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.SofortPayments#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.SofortPayments#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class TaxReportingUs1099K {
/**
* 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;
/**
* 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 TaxReportingUs1099K(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 TaxReportingUs1099K build() {
return new TaxReportingUs1099K(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.TaxReportingUs1099K#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.TaxReportingUs1099K#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class TaxReportingUs1099Misc {
/**
* 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;
/**
* 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 TaxReportingUs1099Misc(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 TaxReportingUs1099Misc build() {
return new TaxReportingUs1099Misc(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.TaxReportingUs1099Misc#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.TaxReportingUs1099Misc#extraParams} for
* the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* 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 static class Transfers {
/**
* 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;
/**
* 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 Transfers(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 Transfers build() {
return new Transfers(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.Transfers#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.Transfers#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setRequested(Boolean requested) {
this.requested = requested;
return this;
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getRequested() {
return this.requested;
}
}
/**
* The acss_debit_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AcssDebitPayments getAcssDebitPayments() {
return this.acssDebitPayments;
}
/**
* The afterpay_clearpay_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AfterpayClearpayPayments getAfterpayClearpayPayments() {
return this.afterpayClearpayPayments;
}
/**
* The au_becs_debit_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AuBecsDebitPayments getAuBecsDebitPayments() {
return this.auBecsDebitPayments;
}
/**
* The bacs_debit_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public BacsDebitPayments getBacsDebitPayments() {
return this.bacsDebitPayments;
}
/**
* The bancontact_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public BancontactPayments getBancontactPayments() {
return this.bancontactPayments;
}
/**
* The boleto_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public BoletoPayments getBoletoPayments() {
return this.boletoPayments;
}
/**
* The card_issuing capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public CardIssuing getCardIssuing() {
return this.cardIssuing;
}
/**
* The card_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public CardPayments getCardPayments() {
return this.cardPayments;
}
/**
* The cartes_bancaires_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public CartesBancairesPayments getCartesBancairesPayments() {
return this.cartesBancairesPayments;
}
/**
* The eps_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public EpsPayments getEpsPayments() {
return this.epsPayments;
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* The fpx_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public FpxPayments getFpxPayments() {
return this.fpxPayments;
}
/**
* The giropay_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public GiropayPayments getGiropayPayments() {
return this.giropayPayments;
}
/**
* The grabpay_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public GrabpayPayments getGrabpayPayments() {
return this.grabpayPayments;
}
/**
* The ideal_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public IdealPayments getIdealPayments() {
return this.idealPayments;
}
/**
* The jcb_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public JcbPayments getJcbPayments() {
return this.jcbPayments;
}
/**
* The klarna_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public KlarnaPayments getKlarnaPayments() {
return this.klarnaPayments;
}
/**
* The legacy_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public LegacyPayments getLegacyPayments() {
return this.legacyPayments;
}
/**
* The oxxo_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public OxxoPayments getOxxoPayments() {
return this.oxxoPayments;
}
/**
* The p24_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public P24Payments getP24Payments() {
return this.p24Payments;
}
/**
* The sepa_debit_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SepaDebitPayments getSepaDebitPayments() {
return this.sepaDebitPayments;
}
/**
* The sofort_payments capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SofortPayments getSofortPayments() {
return this.sofortPayments;
}
/**
* The tax_reporting_us_1099_k capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public TaxReportingUs1099K getTaxReportingUs1099K() {
return this.taxReportingUs1099K;
}
/**
* The tax_reporting_us_1099_misc capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public TaxReportingUs1099Misc getTaxReportingUs1099Misc() {
return this.taxReportingUs1099Misc;
}
/**
* The transfers capability.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Transfers getTransfers() {
return this.transfers;
}
}
/**
* 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 static class Company {
/**
* The company's primary address.
*/
@SerializedName("address")
Address address;
/**
* The Kana variation of the company's primary address (Japan only).
*/
@SerializedName("address_kana")
AddressKana addressKana;
/**
* The Kanji variation of the company's primary address (Japan only).
*/
@SerializedName("address_kanji")
AddressKanji addressKanji;
/**
* Whether the company's directors have been provided. Set this Boolean to {@code true} after
* creating all the company's directors with the
* Persons API for accounts with a {@code relationship.director} requirement. This value is
* not automatically set to {@code true} after creating directors, so it needs to be updated to
* indicate all directors have been provided.
*/
@SerializedName("directors_provided")
Boolean directorsProvided;
/**
* Whether the company's executives have been provided. Set this Boolean to {@code true} after
* creating all the company's executives with the
* Persons API for accounts with a {@code relationship.executive} requirement.
*/
@SerializedName("executives_provided")
Boolean executivesProvided;
/**
* 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 company's legal name.
*/
@SerializedName("name")
String name;
/**
* The Kana variation of the company's legal name (Japan only).
*/
@SerializedName("name_kana")
String nameKana;
/**
* The Kanji variation of the company's legal name (Japan only).
*/
@SerializedName("name_kanji")
String nameKanji;
/**
* Whether the company's owners have been provided. Set this Boolean to {@code true} after
* creating all the company's owners with the
* Persons API for accounts with a {@code relationship.owner} requirement.
*/
@SerializedName("owners_provided")
Boolean ownersProvided;
/**
* The company's phone number (used for verification).
*/
@SerializedName("phone")
String phone;
/**
* The identification number given to a company when it is registered or incorporated, if
* distinct from the identification number used for filing taxes. (Examples are the CIN for
* companies and LLP IN for partnerships in India, and the Company Registration Number in Hong
* Kong).
*/
@SerializedName("registration_number")
String registrationNumber;
/**
* The category identifying the legal structure of the company or legal entity. See Business
* structure for more details.
*/
@SerializedName("structure")
EnumParam structure;
/**
* The business ID number of the company, as appropriate for the company’s country. (Examples
* are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in
* the UK.)
*/
@SerializedName("tax_id")
String taxId;
/**
* The jurisdiction in which the {@code tax_id} is registered (Germany-based companies only).
*/
@SerializedName("tax_id_registrar")
String taxIdRegistrar;
/**
* The VAT number of the company.
*/
@SerializedName("vat_id")
String vatId;
/**
* Information on the verification state of the company.
*/
@SerializedName("verification")
Verification verification;
private Company(Address address, AddressKana addressKana, AddressKanji addressKanji, Boolean directorsProvided, Boolean executivesProvided, Map extraParams, String name, String nameKana, String nameKanji, Boolean ownersProvided, String phone, String registrationNumber, EnumParam structure, String taxId, String taxIdRegistrar, String vatId, Verification verification) {
this.address = address;
this.addressKana = addressKana;
this.addressKanji = addressKanji;
this.directorsProvided = directorsProvided;
this.executivesProvided = executivesProvided;
this.extraParams = extraParams;
this.name = name;
this.nameKana = nameKana;
this.nameKanji = nameKanji;
this.ownersProvided = ownersProvided;
this.phone = phone;
this.registrationNumber = registrationNumber;
this.structure = structure;
this.taxId = taxId;
this.taxIdRegistrar = taxIdRegistrar;
this.vatId = vatId;
this.verification = verification;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Address address;
private AddressKana addressKana;
private AddressKanji addressKanji;
private Boolean directorsProvided;
private Boolean executivesProvided;
private Map extraParams;
private String name;
private String nameKana;
private String nameKanji;
private Boolean ownersProvided;
private String phone;
private String registrationNumber;
private EnumParam structure;
private String taxId;
private String taxIdRegistrar;
private String vatId;
private Verification verification;
/**
* Finalize and obtain parameter instance from this builder.
*/
public Company build() {
return new Company(this.address, this.addressKana, this.addressKanji, this.directorsProvided, this.executivesProvided, this.extraParams, this.name, this.nameKana, this.nameKanji, this.ownersProvided, this.phone, this.registrationNumber, this.structure, this.taxId, this.taxIdRegistrar, this.vatId, this.verification);
}
/**
* The company's primary address.
*/
public Builder setAddress(Address address) {
this.address = address;
return this;
}
/**
* The Kana variation of the company's primary address (Japan only).
*/
public Builder setAddressKana(AddressKana addressKana) {
this.addressKana = addressKana;
return this;
}
/**
* The Kanji variation of the company's primary address (Japan only).
*/
public Builder setAddressKanji(AddressKanji addressKanji) {
this.addressKanji = addressKanji;
return this;
}
/**
* Whether the company's directors have been provided. Set this Boolean to {@code true} after
* creating all the company's directors with the
* Persons API for accounts with a {@code relationship.director} requirement. This value
* is not automatically set to {@code true} after creating directors, so it needs to be
* updated to indicate all directors have been provided.
*/
public Builder setDirectorsProvided(Boolean directorsProvided) {
this.directorsProvided = directorsProvided;
return this;
}
/**
* Whether the company's executives have been provided. Set this Boolean to {@code true} after
* creating all the company's executives with the Persons API for accounts with a {@code
* relationship.executive} requirement.
*/
public Builder setExecutivesProvided(Boolean executivesProvided) {
this.executivesProvided = executivesProvided;
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.Company#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.Company#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 company's legal name.
*/
public Builder setName(String name) {
this.name = name;
return this;
}
/**
* The Kana variation of the company's legal name (Japan only).
*/
public Builder setNameKana(String nameKana) {
this.nameKana = nameKana;
return this;
}
/**
* The Kanji variation of the company's legal name (Japan only).
*/
public Builder setNameKanji(String nameKanji) {
this.nameKanji = nameKanji;
return this;
}
/**
* Whether the company's owners have been provided. Set this Boolean to {@code true} after
* creating all the company's owners with the
* Persons API for accounts with a {@code relationship.owner} requirement.
*/
public Builder setOwnersProvided(Boolean ownersProvided) {
this.ownersProvided = ownersProvided;
return this;
}
/**
* The company's phone number (used for verification).
*/
public Builder setPhone(String phone) {
this.phone = phone;
return this;
}
/**
* The identification number given to a company when it is registered or incorporated, if
* distinct from the identification number used for filing taxes. (Examples are the CIN for
* companies and LLP IN for partnerships in India, and the Company Registration Number in Hong
* Kong).
*/
public Builder setRegistrationNumber(String registrationNumber) {
this.registrationNumber = registrationNumber;
return this;
}
/**
* The category identifying the legal structure of the company or legal entity. See Business
* structure for more details.
*/
public Builder setStructure(Structure structure) {
this.structure = structure;
return this;
}
/**
* The category identifying the legal structure of the company or legal entity. See Business
* structure for more details.
*/
public Builder setStructure(EmptyParam structure) {
this.structure = structure;
return this;
}
/**
* The business ID number of the company, as appropriate for the company’s country. (Examples
* are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in
* the UK.)
*/
public Builder setTaxId(String taxId) {
this.taxId = taxId;
return this;
}
/**
* The jurisdiction in which the {@code tax_id} is registered (Germany-based companies only).
*/
public Builder setTaxIdRegistrar(String taxIdRegistrar) {
this.taxIdRegistrar = taxIdRegistrar;
return this;
}
/**
* The VAT number of the company.
*/
public Builder setVatId(String vatId) {
this.vatId = vatId;
return this;
}
/**
* Information on the verification state of the company.
*/
public Builder setVerification(Verification verification) {
this.verification = verification;
return this;
}
}
public static class Address {
/**
* City, district, suburb, town, or village.
*/
@SerializedName("city")
String city;
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
@SerializedName("country")
String country;
/**
* 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;
/**
* Address line 1 (e.g., street, PO Box, or company name).
*/
@SerializedName("line1")
String line1;
/**
* Address line 2 (e.g., 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;
private Address(String city, String country, Map extraParams, String line1, String line2, String postalCode, String state) {
this.city = city;
this.country = country;
this.extraParams = extraParams;
this.line1 = line1;
this.line2 = line2;
this.postalCode = postalCode;
this.state = state;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private String city;
private String country;
private Map extraParams;
private String line1;
private String line2;
private String postalCode;
private String state;
/** Finalize and obtain parameter instance from this builder. */
public Address build() {
return new Address(this.city, this.country, this.extraParams, this.line1, this.line2, this.postalCode, this.state);
}
/** City, district, suburb, town, or village. */
public Builder setCity(String city) {
this.city = city;
return this;
}
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
public Builder setCountry(String country) {
this.country = country;
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.Company.Address#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.Company.Address#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/** Address line 1 (e.g., street, PO Box, or company name). */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
/** Address line 2 (e.g., apartment, suite, unit, or building). */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
/** ZIP or postal code. */
public Builder setPostalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
public Builder setState(String state) {
this.state = state;
return this;
}
}
/**
* City, district, suburb, town, or village.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getCity() {
return this.city;
}
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getCountry() {
return this.country;
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* Address line 1 (e.g., street, PO Box, or company name).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getLine1() {
return this.line1;
}
/**
* Address line 2 (e.g., apartment, suite, unit, or building).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getLine2() {
return this.line2;
}
/**
* ZIP or postal code.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getPostalCode() {
return this.postalCode;
}
/**
* State, county, province, or region.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getState() {
return this.state;
}
}
/**
* State, county, province, or region.
*/
public static class AddressKana {
/**
* City or ward.
*/
@SerializedName("city")
String city;
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
@SerializedName("country")
String country;
/**
* 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;
/**
* Block or building number.
*/
@SerializedName("line1")
String line1;
/**
* Building details.
*/
@SerializedName("line2")
String line2;
/**
* Postal code.
*/
@SerializedName("postal_code")
String postalCode;
/**
* Prefecture.
*/
@SerializedName("state")
String state;
/**
* Town or cho-me.
*/
@SerializedName("town")
String town;
private AddressKana(String city, String country, Map extraParams, String line1, String line2, String postalCode, String state, String town) {
this.city = city;
this.country = country;
this.extraParams = extraParams;
this.line1 = line1;
this.line2 = line2;
this.postalCode = postalCode;
this.state = state;
this.town = town;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private String city;
private String country;
private Map extraParams;
private String line1;
private String line2;
private String postalCode;
private String state;
private String town;
/** Finalize and obtain parameter instance from this builder. */
public AddressKana build() {
return new AddressKana(this.city, this.country, this.extraParams, this.line1, this.line2, this.postalCode, this.state, this.town);
}
/** City or ward. */
public Builder setCity(String city) {
this.city = city;
return this;
}
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
public Builder setCountry(String country) {
this.country = country;
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.Company.AddressKana#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.Company.AddressKana#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/** Block or building number. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
/** Building details. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
/** Postal code. */
public Builder setPostalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/** Prefecture. */
public Builder setState(String state) {
this.state = state;
return this;
}
public Builder setTown(String town) {
this.town = town;
return this;
}
}
/**
* City or ward.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getCity() {
return this.city;
}
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getCountry() {
return this.country;
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* Block or building number.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getLine1() {
return this.line1;
}
/**
* Building details.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getLine2() {
return this.line2;
}
/**
* Postal code.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getPostalCode() {
return this.postalCode;
}
/**
* Prefecture.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getState() {
return this.state;
}
/**
* Town or cho-me.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getTown() {
return this.town;
}
}
/**
* Town or cho-me.
*/
public static class AddressKanji {
/**
* City or ward.
*/
@SerializedName("city")
String city;
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
@SerializedName("country")
String country;
/**
* 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;
/**
* Block or building number.
*/
@SerializedName("line1")
String line1;
/**
* Building details.
*/
@SerializedName("line2")
String line2;
/**
* Postal code.
*/
@SerializedName("postal_code")
String postalCode;
/**
* Prefecture.
*/
@SerializedName("state")
String state;
/**
* Town or cho-me.
*/
@SerializedName("town")
String town;
private AddressKanji(String city, String country, Map extraParams, String line1, String line2, String postalCode, String state, String town) {
this.city = city;
this.country = country;
this.extraParams = extraParams;
this.line1 = line1;
this.line2 = line2;
this.postalCode = postalCode;
this.state = state;
this.town = town;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private String city;
private String country;
private Map extraParams;
private String line1;
private String line2;
private String postalCode;
private String state;
private String town;
/** Finalize and obtain parameter instance from this builder. */
public AddressKanji build() {
return new AddressKanji(this.city, this.country, this.extraParams, this.line1, this.line2, this.postalCode, this.state, this.town);
}
/** City or ward. */
public Builder setCity(String city) {
this.city = city;
return this;
}
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
public Builder setCountry(String country) {
this.country = country;
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.Company.AddressKanji#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.Company.AddressKanji#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/** Block or building number. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
/** Building details. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
/** Postal code. */
public Builder setPostalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/** Prefecture. */
public Builder setState(String state) {
this.state = state;
return this;
}
public Builder setTown(String town) {
this.town = town;
return this;
}
}
/**
* City or ward.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getCity() {
return this.city;
}
/**
* Two-letter country code (ISO
* 3166-1 alpha-2).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getCountry() {
return this.country;
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* Block or building number.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getLine1() {
return this.line1;
}
/**
* Building details.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getLine2() {
return this.line2;
}
/**
* Postal code.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getPostalCode() {
return this.postalCode;
}
/**
* Prefecture.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getState() {
return this.state;
}
/**
* Town or cho-me.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getTown() {
return this.town;
}
}
/**
* Town or cho-me.
*/
public static class Verification {
/**
* A document verifying the business.
*/
@SerializedName("document")
Document document;
/**
* 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;
private Verification(Document document, Map extraParams) {
this.document = document;
this.extraParams = extraParams;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Document document;
private Map extraParams;
/**
* Finalize and obtain parameter instance from this builder.
*/
public Verification build() {
return new Verification(this.document, this.extraParams);
}
/**
* A document verifying the business.
*/
public Builder setDocument(Document document) {
this.document = document;
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.Company.Verification#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.Company.Verification#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
}
public static class Document {
/**
* The back of a document returned by a file upload with a {@code purpose}
* value of {@code additional_verification}. The uploaded file needs to be a color image
* (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in
* size.
*/
@SerializedName("back")
String back;
/**
* 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 front of a document returned by a file upload with a {@code purpose}
* value of {@code additional_verification}. The uploaded file needs to be a color image
* (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in
* size.
*/
@SerializedName("front")
String front;
private Document(String back, Map extraParams, String front) {
this.back = back;
this.extraParams = extraParams;
this.front = front;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private String back;
private Map extraParams;
private String front;
/** Finalize and obtain parameter instance from this builder. */
public Document build() {
return new Document(this.back, this.extraParams, this.front);
}
/**
* The back of a document returned by a file upload with a {@code purpose}
* value of {@code additional_verification}. The uploaded file needs to be a color image
* (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in
* size.
*/
public Builder setBack(String back) {
this.back = back;
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.Company.Verification.Document#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.Company.Verification.Document#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
public Builder setFront(String front) {
this.front = front;
return this;
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getBack() {
return this.back;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getFront() {
return this.front;
}
}
/**
* A document verifying the business.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Document getDocument() {
return this.document;
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
}
/**
* The front of a document returned by a file upload with a {@code purpose}
* value of {@code additional_verification}. The uploaded file needs to be a color image
* (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in
* size.
*/
public enum Structure implements ApiRequestParams.EnumParam {
@SerializedName("free_zone_establishment")
FREE_ZONE_ESTABLISHMENT("free_zone_establishment"), @SerializedName("free_zone_llc")
FREE_ZONE_LLC("free_zone_llc"), @SerializedName("government_instrumentality")
GOVERNMENT_INSTRUMENTALITY("government_instrumentality"), @SerializedName("governmental_unit")
GOVERNMENTAL_UNIT("governmental_unit"), @SerializedName("incorporated_non_profit")
INCORPORATED_NON_PROFIT("incorporated_non_profit"), @SerializedName("limited_liability_partnership")
LIMITED_LIABILITY_PARTNERSHIP("limited_liability_partnership"), @SerializedName("llc")
LLC("llc"), @SerializedName("multi_member_llc")
MULTI_MEMBER_LLC("multi_member_llc"), @SerializedName("private_company")
PRIVATE_COMPANY("private_company"), @SerializedName("private_corporation")
PRIVATE_CORPORATION("private_corporation"), @SerializedName("private_partnership")
PRIVATE_PARTNERSHIP("private_partnership"), @SerializedName("public_company")
PUBLIC_COMPANY("public_company"), @SerializedName("public_corporation")
PUBLIC_CORPORATION("public_corporation"), @SerializedName("public_partnership")
PUBLIC_PARTNERSHIP("public_partnership"), @SerializedName("single_member_llc")
SINGLE_MEMBER_LLC("single_member_llc"), @SerializedName("sole_establishment")
SOLE_ESTABLISHMENT("sole_establishment"), @SerializedName("sole_proprietorship")
SOLE_PROPRIETORSHIP("sole_proprietorship"), @SerializedName("tax_exempt_government_instrumentality")
TAX_EXEMPT_GOVERNMENT_INSTRUMENTALITY("tax_exempt_government_instrumentality"), @SerializedName("unincorporated_association")
UNINCORPORATED_ASSOCIATION("unincorporated_association"), @SerializedName("unincorporated_non_profit")
UNINCORPORATED_NON_PROFIT("unincorporated_non_profit");
private final String value;
Structure(String value) {
this.value = value;
}
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getValue() {
return this.value;
}
}
/**
* The company's primary address.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Address getAddress() {
return this.address;
}
/**
* The Kana variation of the company's primary address (Japan only).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AddressKana getAddressKana() {
return this.addressKana;
}
/**
* The Kanji variation of the company's primary address (Japan only).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AddressKanji getAddressKanji() {
return this.addressKanji;
}
/**
* Whether the company's directors have been provided. Set this Boolean to {@code true} after
* creating all the company's directors with the
* Persons API for accounts with a {@code relationship.director} requirement. This value is
* not automatically set to {@code true} after creating directors, so it needs to be updated to
* indicate all directors have been provided.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getDirectorsProvided() {
return this.directorsProvided;
}
/**
* Whether the company's executives have been provided. Set this Boolean to {@code true} after
* creating all the company's executives with the
* Persons API for accounts with a {@code relationship.executive} requirement.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getExecutivesProvided() {
return this.executivesProvided;
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* The company's legal name.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getName() {
return this.name;
}
/**
* The Kana variation of the company's legal name (Japan only).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getNameKana() {
return this.nameKana;
}
/**
* The Kanji variation of the company's legal name (Japan only).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getNameKanji() {
return this.nameKanji;
}
/**
* Whether the company's owners have been provided. Set this Boolean to {@code true} after
* creating all the company's owners with the
* Persons API for accounts with a {@code relationship.owner} requirement.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getOwnersProvided() {
return this.ownersProvided;
}
/**
* The company's phone number (used for verification).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getPhone() {
return this.phone;
}
/**
* The identification number given to a company when it is registered or incorporated, if
* distinct from the identification number used for filing taxes. (Examples are the CIN for
* companies and LLP IN for partnerships in India, and the Company Registration Number in Hong
* Kong).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getRegistrationNumber() {
return this.registrationNumber;
}
/**
* The category identifying the legal structure of the company or legal entity. See Business
* structure for more details.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public EnumParam getStructure() {
return this.structure;
}
/**
* The business ID number of the company, as appropriate for the company’s country. (Examples
* are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in
* the UK.)
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getTaxId() {
return this.taxId;
}
/**
* The jurisdiction in which the {@code tax_id} is registered (Germany-based companies only).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getTaxIdRegistrar() {
return this.taxIdRegistrar;
}
/**
* The VAT number of the company.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getVatId() {
return this.vatId;
}
/**
* Information on the verification state of the company.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Verification getVerification() {
return this.verification;
}
}
public static class Documents {
/**
* One or more documents that support the Bank account
* ownership verification requirement. Must be a document associated with the account’s
* primary active bank account that displays the last 4 digits of the account number, either a
* statement or a voided check.
*/
@SerializedName("bank_account_ownership_verification")
BankAccountOwnershipVerification bankAccountOwnershipVerification;
/**
* One or more documents that demonstrate proof of a company's license to operate.
*/
@SerializedName("company_license")
CompanyLicense companyLicense;
/**
* One or more documents showing the company's Memorandum of Association.
*/
@SerializedName("company_memorandum_of_association")
CompanyMemorandumOfAssociation companyMemorandumOfAssociation;
/**
* (Certain countries only) One or more documents showing the ministerial decree legalizing the
* company's establishment.
*/
@SerializedName("company_ministerial_decree")
CompanyMinisterialDecree companyMinisterialDecree;
/**
* One or more documents that demonstrate proof of a company's registration with the appropriate
* local authorities.
*/
@SerializedName("company_registration_verification")
CompanyRegistrationVerification companyRegistrationVerification;
/**
* One or more documents that demonstrate proof of a company's tax ID.
*/
@SerializedName("company_tax_id_verification")
CompanyTaxIdVerification companyTaxIdVerification;
/**
* 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;
private Documents(BankAccountOwnershipVerification bankAccountOwnershipVerification, CompanyLicense companyLicense, CompanyMemorandumOfAssociation companyMemorandumOfAssociation, CompanyMinisterialDecree companyMinisterialDecree, CompanyRegistrationVerification companyRegistrationVerification, CompanyTaxIdVerification companyTaxIdVerification, Map extraParams) {
this.bankAccountOwnershipVerification = bankAccountOwnershipVerification;
this.companyLicense = companyLicense;
this.companyMemorandumOfAssociation = companyMemorandumOfAssociation;
this.companyMinisterialDecree = companyMinisterialDecree;
this.companyRegistrationVerification = companyRegistrationVerification;
this.companyTaxIdVerification = companyTaxIdVerification;
this.extraParams = extraParams;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private BankAccountOwnershipVerification bankAccountOwnershipVerification;
private CompanyLicense companyLicense;
private CompanyMemorandumOfAssociation companyMemorandumOfAssociation;
private CompanyMinisterialDecree companyMinisterialDecree;
private CompanyRegistrationVerification companyRegistrationVerification;
private CompanyTaxIdVerification companyTaxIdVerification;
private Map extraParams;
/**
* Finalize and obtain parameter instance from this builder.
*/
public Documents build() {
return new Documents(this.bankAccountOwnershipVerification, this.companyLicense, this.companyMemorandumOfAssociation, this.companyMinisterialDecree, this.companyRegistrationVerification, this.companyTaxIdVerification, this.extraParams);
}
/**
* One or more documents that support the Bank
* account ownership verification requirement. Must be a document associated with the
* account’s primary active bank account that displays the last 4 digits of the account
* number, either a statement or a voided check.
*/
public Builder setBankAccountOwnershipVerification(BankAccountOwnershipVerification bankAccountOwnershipVerification) {
this.bankAccountOwnershipVerification = bankAccountOwnershipVerification;
return this;
}
/**
* One or more documents that demonstrate proof of a company's license to operate.
*/
public Builder setCompanyLicense(CompanyLicense companyLicense) {
this.companyLicense = companyLicense;
return this;
}
/**
* One or more documents showing the company's Memorandum of Association.
*/
public Builder setCompanyMemorandumOfAssociation(CompanyMemorandumOfAssociation companyMemorandumOfAssociation) {
this.companyMemorandumOfAssociation = companyMemorandumOfAssociation;
return this;
}
/**
* (Certain countries only) One or more documents showing the ministerial decree legalizing
* the company's establishment.
*/
public Builder setCompanyMinisterialDecree(CompanyMinisterialDecree companyMinisterialDecree) {
this.companyMinisterialDecree = companyMinisterialDecree;
return this;
}
/**
* One or more documents that demonstrate proof of a company's registration with the
* appropriate local authorities.
*/
public Builder setCompanyRegistrationVerification(CompanyRegistrationVerification companyRegistrationVerification) {
this.companyRegistrationVerification = companyRegistrationVerification;
return this;
}
/**
* One or more documents that demonstrate proof of a company's tax ID.
*/
public Builder setCompanyTaxIdVerification(CompanyTaxIdVerification companyTaxIdVerification) {
this.companyTaxIdVerification = companyTaxIdVerification;
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.Documents#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.Documents#extraParams} for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
}
public static class BankAccountOwnershipVerification {
/**
* 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;
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@SerializedName("files")
List files;
private BankAccountOwnershipVerification(Map extraParams, List files) {
this.extraParams = extraParams;
this.files = files;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Map extraParams;
private List files;
/** Finalize and obtain parameter instance from this builder. */
public BankAccountOwnershipVerification build() {
return new BankAccountOwnershipVerification(this.extraParams, this.files);
}
/**
* 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.Documents.BankAccountOwnershipVerification#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.Documents.BankAccountOwnershipVerification#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/**
* Add an element to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.BankAccountOwnershipVerification#files} for the field
* documentation.
*/
public Builder addFile(String element) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(element);
return this;
}
public Builder addAllFile(List elements) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.addAll(elements);
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getFiles() {
return this.files;
}
}
/**
* Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.BankAccountOwnershipVerification#files} for the field
* documentation.
*/
public static class CompanyLicense {
/**
* 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;
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@SerializedName("files")
List files;
private CompanyLicense(Map extraParams, List files) {
this.extraParams = extraParams;
this.files = files;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Map extraParams;
private List files;
/** Finalize and obtain parameter instance from this builder. */
public CompanyLicense build() {
return new CompanyLicense(this.extraParams, this.files);
}
/**
* 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.Documents.CompanyLicense#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.Documents.CompanyLicense#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/**
* Add an element to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.CompanyLicense#files} for the field documentation.
*/
public Builder addFile(String element) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(element);
return this;
}
public Builder addAllFile(List elements) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.addAll(elements);
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getFiles() {
return this.files;
}
}
/**
* Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.CompanyLicense#files} for the field documentation.
*/
public static class CompanyMemorandumOfAssociation {
/**
* 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;
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@SerializedName("files")
List files;
private CompanyMemorandumOfAssociation(Map extraParams, List files) {
this.extraParams = extraParams;
this.files = files;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Map extraParams;
private List files;
/** Finalize and obtain parameter instance from this builder. */
public CompanyMemorandumOfAssociation build() {
return new CompanyMemorandumOfAssociation(this.extraParams, this.files);
}
/**
* 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.Documents.CompanyMemorandumOfAssociation#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.Documents.CompanyMemorandumOfAssociation#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/**
* Add an element to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.CompanyMemorandumOfAssociation#files} for the field
* documentation.
*/
public Builder addFile(String element) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(element);
return this;
}
public Builder addAllFile(List elements) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.addAll(elements);
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getFiles() {
return this.files;
}
}
/**
* Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.CompanyMemorandumOfAssociation#files} for the field
* documentation.
*/
public static class CompanyMinisterialDecree {
/**
* 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;
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@SerializedName("files")
List files;
private CompanyMinisterialDecree(Map extraParams, List files) {
this.extraParams = extraParams;
this.files = files;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Map extraParams;
private List files;
/** Finalize and obtain parameter instance from this builder. */
public CompanyMinisterialDecree build() {
return new CompanyMinisterialDecree(this.extraParams, this.files);
}
/**
* 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.Documents.CompanyMinisterialDecree#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.Documents.CompanyMinisterialDecree#extraParams} for
* the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/**
* Add an element to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.CompanyMinisterialDecree#files} for the field
* documentation.
*/
public Builder addFile(String element) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(element);
return this;
}
public Builder addAllFile(List elements) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.addAll(elements);
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getFiles() {
return this.files;
}
}
/**
* Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.CompanyMinisterialDecree#files} for the field
* documentation.
*/
public static class CompanyRegistrationVerification {
/**
* 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;
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@SerializedName("files")
List files;
private CompanyRegistrationVerification(Map extraParams, List files) {
this.extraParams = extraParams;
this.files = files;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Map extraParams;
private List files;
/** Finalize and obtain parameter instance from this builder. */
public CompanyRegistrationVerification build() {
return new CompanyRegistrationVerification(this.extraParams, this.files);
}
/**
* 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.Documents.CompanyRegistrationVerification#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.Documents.CompanyRegistrationVerification#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/**
* Add an element to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.CompanyRegistrationVerification#files} for the field
* documentation.
*/
public Builder addFile(String element) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(element);
return this;
}
public Builder addAllFile(List elements) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.addAll(elements);
return this;
}
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getFiles() {
return this.files;
}
}
/**
* Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.CompanyRegistrationVerification#files} for the field
* documentation.
*/
public static class CompanyTaxIdVerification {
/**
* 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;
/**
* One or more document ids returned by a file upload with a {@code purpose} value
* of {@code account_requirement}.
*/
@SerializedName("files")
List files;
private CompanyTaxIdVerification(Map extraParams, List files) {
this.extraParams = extraParams;
this.files = files;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Map extraParams;
private List files;
/** Finalize and obtain parameter instance from this builder. */
public CompanyTaxIdVerification build() {
return new CompanyTaxIdVerification(this.extraParams, this.files);
}
/**
* 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.Documents.CompanyTaxIdVerification#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.Documents.CompanyTaxIdVerification#extraParams} for
* the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/**
* Add an element to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.CompanyTaxIdVerification#files} for the field
* documentation.
*/
public Builder addFile(String element) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(element);
return this;
}
public Builder addAllFile(List elements) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.addAll(elements);
return this;
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getFiles() {
return this.files;
}
}
/**
* One or more documents that support the Bank account
* ownership verification requirement. Must be a document associated with the account’s
* primary active bank account that displays the last 4 digits of the account number, either a
* statement or a voided check.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public BankAccountOwnershipVerification getBankAccountOwnershipVerification() {
return this.bankAccountOwnershipVerification;
}
/**
* One or more documents that demonstrate proof of a company's license to operate.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public CompanyLicense getCompanyLicense() {
return this.companyLicense;
}
/**
* One or more documents showing the company's Memorandum of Association.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public CompanyMemorandumOfAssociation getCompanyMemorandumOfAssociation() {
return this.companyMemorandumOfAssociation;
}
/**
* (Certain countries only) One or more documents showing the ministerial decree legalizing the
* company's establishment.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public CompanyMinisterialDecree getCompanyMinisterialDecree() {
return this.companyMinisterialDecree;
}
/**
* One or more documents that demonstrate proof of a company's registration with the appropriate
* local authorities.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public CompanyRegistrationVerification getCompanyRegistrationVerification() {
return this.companyRegistrationVerification;
}
/**
* One or more documents that demonstrate proof of a company's tax ID.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public CompanyTaxIdVerification getCompanyTaxIdVerification() {
return this.companyTaxIdVerification;
}
/**
* 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.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Map getExtraParams() {
return this.extraParams;
}
}
/**
* Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.CompanyTaxIdVerification#files} for the field
* documentation.
*/
public static class Individual {
/**
* The individual's primary address.
*/
@SerializedName("address")
Address address;
/**
* The Kana variation of the the individual's primary address (Japan only).
*/
@SerializedName("address_kana")
AddressKana addressKana;
/**
* The Kanji variation of the the individual's primary address (Japan only).
*/
@SerializedName("address_kanji")
AddressKanji addressKanji;
/**
* The individual's date of birth.
*/
@SerializedName("dob")
Object dob;
/**
* The individual's email address.
*/
@SerializedName("email")
String email;
/**
* 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 individual's first name.
*/
@SerializedName("first_name")
String firstName;
/**
* The Kana variation of the the individual's first name (Japan only).
*/
@SerializedName("first_name_kana")
String firstNameKana;
/**
* The Kanji variation of the individual's first name (Japan only).
*/
@SerializedName("first_name_kanji")
String firstNameKanji;
/**
* A list of alternate names or aliases that the individual is known by.
*/
@SerializedName("full_name_aliases")
List fullNameAliases;
/**
* The individual's gender (International regulations require either "male" or
* "female").
*/
@SerializedName("gender")
String gender;
/**
* The government-issued ID number of the individual, as appropriate for the representative’s
* country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in
* Canada). Instead of the number itself, you can also provide a PII token created with
* Stripe.js.
*/
@SerializedName("id_number")
String idNumber;
/**
* The individual's last name.
*/
@SerializedName("last_name")
String lastName;
/**
* The Kana varation of the individual's last name (Japan only).
*/
@SerializedName("last_name_kana")
String lastNameKana;
/**
* The Kanji varation of the individual's last name (Japan only).
*/
@SerializedName("last_name_kanji")
String lastNameKanji;
/**
* The individual's maiden name.
*/
@SerializedName("maiden_name")
String maidenName;
/**
* Set of key-value pairs that you can attach
* to an object. This can be useful for storing additional information about the object in a
* structured format. Individual keys can be unset by posting an empty value to them. All keys
* can be unset by posting an empty value to {@code metadata}.
*/
@SerializedName("metadata")
Object metadata;
/**
* The individual's phone number.
*/
@SerializedName("phone")
String phone;
/**
* Indicates if the person or any of their representatives, family members, or other closely
* related persons, declares that they hold or have held an important public job or function, in
* any jurisdiction.
*/
@SerializedName("political_exposure")
PoliticalExposure politicalExposure;
/**
* The last four digits of the individual's Social Security Number (U.S. only).
*/
@SerializedName("ssn_last_4")
String ssnLast4;
/**
* The individual's verification document information.
*/
@SerializedName("verification")
Verification verification;
private Individual(Address address, AddressKana addressKana, AddressKanji addressKanji, Object dob, String email, Map extraParams, String firstName, String firstNameKana, String firstNameKanji, List fullNameAliases, String gender, String idNumber, String lastName, String lastNameKana, String lastNameKanji, String maidenName, Object metadata, String phone, PoliticalExposure politicalExposure, String ssnLast4, Verification verification) {
this.address = address;
this.addressKana = addressKana;
this.addressKanji = addressKanji;
this.dob = dob;
this.email = email;
this.extraParams = extraParams;
this.firstName = firstName;
this.firstNameKana = firstNameKana;
this.firstNameKanji = firstNameKanji;
this.fullNameAliases = fullNameAliases;
this.gender = gender;
this.idNumber = idNumber;
this.lastName = lastName;
this.lastNameKana = lastNameKana;
this.lastNameKanji = lastNameKanji;
this.maidenName = maidenName;
this.metadata = metadata;
this.phone = phone;
this.politicalExposure = politicalExposure;
this.ssnLast4 = ssnLast4;
this.verification = verification;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Address address;
private AddressKana addressKana;
private AddressKanji addressKanji;
private Object dob;
private String email;
private Map extraParams;
private String firstName;
private String firstNameKana;
private String firstNameKanji;
private List fullNameAliases;
private String gender;
private String idNumber;
private String lastName;
private String lastNameKana;
private String lastNameKanji;
private String maidenName;
private Object metadata;
private String phone;
private PoliticalExposure politicalExposure;
private String ssnLast4;
private Verification verification;
/**
* Finalize and obtain parameter instance from this builder.
*/
public Individual build() {
return new Individual(this.address, this.addressKana, this.addressKanji, this.dob, this.email, this.extraParams, this.firstName, this.firstNameKana, this.firstNameKanji, this.fullNameAliases, this.gender, this.idNumber, this.lastName, this.lastNameKana, this.lastNameKanji, this.maidenName, this.metadata, this.phone, this.politicalExposure, this.ssnLast4, this.verification);
}
/**
* The individual's primary address.
*/
public Builder setAddress(Address address) {
this.address = address;
return this;
}
/**
* The Kana variation of the the individual's primary address (Japan only).
*/
public Builder setAddressKana(AddressKana addressKana) {
this.addressKana = addressKana;
return this;
}
/**
* The Kanji variation of the the individual's primary address (Japan only).
*/
public Builder setAddressKanji(AddressKanji addressKanji) {
this.addressKanji = addressKanji;
return this;
}
/**
* The individual's date of birth.
*/
public Builder setDob(Dob dob) {
this.dob = dob;
return this;
}
/**
* The individual's date of birth.
*/
public Builder setDob(EmptyParam dob) {
this.dob = dob;
return this;
}
/**
* The individual's email address.
*/
public Builder setEmail(String email) {
this.email = email;
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.Individual#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.Individual#extraParams} for the field documentation.
*/
public Builder putAllExtraParam(Map