diff --git a/API_VERSION b/API_VERSION index 0336d6a3a58..fb725068586 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -2025-08-27.basil \ No newline at end of file +2025-09-30.clover \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a13383ca674..f295f551191 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -f4b80890ea17e89a543a77a389f29ca9be6fe615 \ No newline at end of file +768c16b55352ce5cc78d27c0bbd7448263942018 \ No newline at end of file diff --git a/README.md b/README.md index 9f803aeda71..be0dd4c4f1a 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ public class StripeExample { .build(); try { - Customer customer = client.customers().create(params); + Customer customer = client.v1().customers().create(params); System.out.println(customer); } catch (StripeException e) { e.printStackTrace(); @@ -102,7 +102,7 @@ Once the legacy pattern is deprecated, new API endpoints will only be accessible ### Per-request Configuration -All of the request methods accept an optional `RequestOptions` object. This is +All the request methods accept an optional `RequestOptions` object. This is used if you want to set an [idempotency key][idempotency-keys], if you are using [Stripe Connect][connect-auth], or if you want to pass the secret API key on each method. @@ -114,9 +114,9 @@ RequestOptions requestOptions = RequestOptions.builder() .setStripeAccount("acct_...") .build(); -client.customers().list(requestOptions); +client.v1().customers().list(requestOptions); -client.customers().retrieve("cus_123456789", requestOptions); +client.v1().customers().retrieve("cus_123456789", requestOptions); ``` ### Configuring automatic retries @@ -137,7 +137,7 @@ Or on a finer grain level using `RequestOptions`: RequestOptions options = RequestOptions.builder() .setMaxNetworkRetries(2) .build(); -client.customers().create(params, options); +client.v1().customers().create(params, options); ``` [Idempotency keys][idempotency-keys] are added to requests to guarantee that @@ -161,7 +161,7 @@ RequestOptions options = RequestOptions.builder() .setConnectTimeout(30 * 1000) // in milliseconds .setReadTimeout(80 * 1000) .build(); -client.customers().create(params, options); +client.v1().customers().create(params, options); ``` Please take care to set conservative read timeouts. Some API requests can take @@ -197,7 +197,7 @@ CustomerCreateParams params = .putExtraParam("secret_parameter[secondary]", "secondary value") .build(); -client.customers().create(params); +client.v1().customers().create(params); ``` #### Properties @@ -205,7 +205,7 @@ client.customers().create(params); To retrieve undocumented properties from Stripe using Java you can use an option in the library to return the raw JSON object and return the property as a native type. An example of this is shown below: ```java -final Customer customer = client.customers().retrieve("cus_1234"); +final Customer customer = client.v1().customers().retrieve("cus_1234"); Boolean featureEnabled = customer.getRawJsonObject() .getAsJsonPrimitive("secret_feature_enabled") diff --git a/src/main/java/com/stripe/StripeClient.java b/src/main/java/com/stripe/StripeClient.java index 7c4790da0d0..e5b816ddb45 100644 --- a/src/main/java/com/stripe/StripeClient.java +++ b/src/main/java/com/stripe/StripeClient.java @@ -126,808 +126,907 @@ public com.stripe.service.V2Services v2() { } /** - * Deprecation Warning: StripeClient.accountLinks() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().accountLinks(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.accountLinks() is deprecated, use StripeClient.v1().accountLinks() + * instead. All functionality under it has been copied over to + * StripeClient.v1().accountLinks(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.AccountLinkService accountLinks() { return new com.stripe.service.AccountLinkService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.accountNotices() will be deprecated in the next major - * release. All functionality under it has been copied over to StripeClient.v1().accountNotices(). - * See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.accountNotices() is deprecated, use StripeClient.v1().accountNotices() + * instead. All functionality under it has been copied over to + * StripeClient.v1().accountNotices(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.AccountNoticeService accountNotices() { return new com.stripe.service.AccountNoticeService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.accountSessions() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().accountSessions(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.accountSessions() is deprecated, use + * StripeClient.v1().accountSessions() instead. All functionality under it has been copied + * over to StripeClient.v1().accountSessions(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.AccountSessionService accountSessions() { return new com.stripe.service.AccountSessionService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.accounts() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().accounts(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.accounts() is deprecated, use StripeClient.v1().accounts() instead. + * All functionality under it has been copied over to StripeClient.v1().accounts(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.AccountService accounts() { return new com.stripe.service.AccountService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.applePayDomains() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().applePayDomains(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.applePayDomains() is deprecated, use + * StripeClient.v1().applePayDomains() instead. All functionality under it has been copied + * over to StripeClient.v1().applePayDomains(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ApplePayDomainService applePayDomains() { return new com.stripe.service.ApplePayDomainService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.applicationFees() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().applicationFees(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.applicationFees() is deprecated, use + * StripeClient.v1().applicationFees() instead. All functionality under it has been copied + * over to StripeClient.v1().applicationFees(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ApplicationFeeService applicationFees() { return new com.stripe.service.ApplicationFeeService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.apps() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().apps(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.apps() is deprecated, use StripeClient.v1().apps() instead. All + * functionality under it has been copied over to StripeClient.v1().apps(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.AppsService apps() { return new com.stripe.service.AppsService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.balance() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().balance(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.balance() is deprecated, use StripeClient.v1().balance() instead. All + * functionality under it has been copied over to StripeClient.v1().balance(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.BalanceService balance() { return new com.stripe.service.BalanceService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.balanceSettings() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().balanceSettings(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.balanceSettings() is deprecated, use + * StripeClient.v1().balanceSettings() instead. All functionality under it has been copied + * over to StripeClient.v1().balanceSettings(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.BalanceSettingsService balanceSettings() { return new com.stripe.service.BalanceSettingsService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.balanceTransactions() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().balanceTransactions(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.balanceTransactions() is deprecated, use + * StripeClient.v1().balanceTransactions() instead. All functionality under it has been copied + * over to StripeClient.v1().balanceTransactions(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.BalanceTransactionService balanceTransactions() { return new com.stripe.service.BalanceTransactionService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.billing() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().billing(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.billing() is deprecated, use StripeClient.v1().billing() instead. All + * functionality under it has been copied over to StripeClient.v1().billing(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.BillingService billing() { return new com.stripe.service.BillingService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.billingPortal() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().billingPortal(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.billingPortal() is deprecated, use StripeClient.v1().billingPortal() + * instead. All functionality under it has been copied over to + * StripeClient.v1().billingPortal(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.BillingPortalService billingPortal() { return new com.stripe.service.BillingPortalService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.capital() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().capital(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.capital() is deprecated, use StripeClient.v1().capital() instead. All + * functionality under it has been copied over to StripeClient.v1().capital(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.CapitalService capital() { return new com.stripe.service.CapitalService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.charges() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().charges(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.charges() is deprecated, use StripeClient.v1().charges() instead. All + * functionality under it has been copied over to StripeClient.v1().charges(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ChargeService charges() { return new com.stripe.service.ChargeService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.checkout() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().checkout(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.checkout() is deprecated, use StripeClient.v1().checkout() instead. + * All functionality under it has been copied over to StripeClient.v1().checkout(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.CheckoutService checkout() { return new com.stripe.service.CheckoutService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.climate() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().climate(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.climate() is deprecated, use StripeClient.v1().climate() instead. All + * functionality under it has been copied over to StripeClient.v1().climate(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ClimateService climate() { return new com.stripe.service.ClimateService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.confirmationTokens() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().confirmationTokens(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.confirmationTokens() is deprecated, use + * StripeClient.v1().confirmationTokens() instead. All functionality under it has been copied + * over to StripeClient.v1().confirmationTokens(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ConfirmationTokenService confirmationTokens() { return new com.stripe.service.ConfirmationTokenService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.countrySpecs() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().countrySpecs(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.countrySpecs() is deprecated, use StripeClient.v1().countrySpecs() + * instead. All functionality under it has been copied over to + * StripeClient.v1().countrySpecs(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.CountrySpecService countrySpecs() { return new com.stripe.service.CountrySpecService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.coupons() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().coupons(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.coupons() is deprecated, use StripeClient.v1().coupons() instead. All + * functionality under it has been copied over to StripeClient.v1().coupons(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.CouponService coupons() { return new com.stripe.service.CouponService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.creditNotes() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().creditNotes(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.creditNotes() is deprecated, use StripeClient.v1().creditNotes() + * instead. All functionality under it has been copied over to + * StripeClient.v1().creditNotes(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.CreditNoteService creditNotes() { return new com.stripe.service.CreditNoteService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.customerSessions() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().customerSessions(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.customerSessions() is deprecated, use + * StripeClient.v1().customerSessions() instead. All functionality under it has been copied + * over to StripeClient.v1().customerSessions(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.CustomerSessionService customerSessions() { return new com.stripe.service.CustomerSessionService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.customers() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().customers(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.customers() is deprecated, use StripeClient.v1().customers() instead. + * All functionality under it has been copied over to StripeClient.v1().customers(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.CustomerService customers() { return new com.stripe.service.CustomerService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.disputes() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().disputes(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.disputes() is deprecated, use StripeClient.v1().disputes() instead. + * All functionality under it has been copied over to StripeClient.v1().disputes(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.DisputeService disputes() { return new com.stripe.service.DisputeService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.entitlements() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().entitlements(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.entitlements() is deprecated, use StripeClient.v1().entitlements() + * instead. All functionality under it has been copied over to + * StripeClient.v1().entitlements(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.EntitlementsService entitlements() { return new com.stripe.service.EntitlementsService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.ephemeralKeys() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().ephemeralKeys(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.ephemeralKeys() is deprecated, use StripeClient.v1().ephemeralKeys() + * instead. All functionality under it has been copied over to + * StripeClient.v1().ephemeralKeys(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.EphemeralKeyService ephemeralKeys() { return new com.stripe.service.EphemeralKeyService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.events() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().events(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.events() is deprecated, use StripeClient.v1().events() instead. All + * functionality under it has been copied over to StripeClient.v1().events(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.EventService events() { return new com.stripe.service.EventService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.exchangeRates() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().exchangeRates(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.exchangeRates() is deprecated, use StripeClient.v1().exchangeRates() + * instead. All functionality under it has been copied over to + * StripeClient.v1().exchangeRates(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ExchangeRateService exchangeRates() { return new com.stripe.service.ExchangeRateService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.externalAccounts() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().externalAccounts(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.externalAccounts() is deprecated, use + * StripeClient.v1().externalAccounts() instead. All functionality under it has been copied + * over to StripeClient.v1().externalAccounts(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ExternalAccountService externalAccounts() { return new com.stripe.service.ExternalAccountService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.fileLinks() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().fileLinks(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.fileLinks() is deprecated, use StripeClient.v1().fileLinks() instead. + * All functionality under it has been copied over to StripeClient.v1().fileLinks(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.FileLinkService fileLinks() { return new com.stripe.service.FileLinkService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.files() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().files(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.files() is deprecated, use StripeClient.v1().files() instead. All + * functionality under it has been copied over to StripeClient.v1().files(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.FileService files() { return new com.stripe.service.FileService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.financialConnections() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().financialConnections(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.financialConnections() is deprecated, use + * StripeClient.v1().financialConnections() instead. All functionality under it has been + * copied over to StripeClient.v1().financialConnections(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.FinancialConnectionsService financialConnections() { return new com.stripe.service.FinancialConnectionsService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.forwarding() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().forwarding(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.forwarding() is deprecated, use StripeClient.v1().forwarding() + * instead. All functionality under it has been copied over to StripeClient.v1().forwarding(). + * See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ForwardingService forwarding() { return new com.stripe.service.ForwardingService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.fxQuotes() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().fxQuotes(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.fxQuotes() is deprecated, use StripeClient.v1().fxQuotes() instead. + * All functionality under it has been copied over to StripeClient.v1().fxQuotes(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.FxQuoteService fxQuotes() { return new com.stripe.service.FxQuoteService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.identity() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().identity(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.identity() is deprecated, use StripeClient.v1().identity() instead. + * All functionality under it has been copied over to StripeClient.v1().identity(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.IdentityService identity() { return new com.stripe.service.IdentityService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.invoiceItems() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().invoiceItems(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.invoiceItems() is deprecated, use StripeClient.v1().invoiceItems() + * instead. All functionality under it has been copied over to + * StripeClient.v1().invoiceItems(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.InvoiceItemService invoiceItems() { return new com.stripe.service.InvoiceItemService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.invoicePayments() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().invoicePayments(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.invoicePayments() is deprecated, use + * StripeClient.v1().invoicePayments() instead. All functionality under it has been copied + * over to StripeClient.v1().invoicePayments(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.InvoicePaymentService invoicePayments() { return new com.stripe.service.InvoicePaymentService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.invoiceRenderingTemplates() will be deprecated in the next - * major release. All functionality under it has been copied over to - * StripeClient.v1().invoiceRenderingTemplates(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.invoiceRenderingTemplates() is deprecated, use + * StripeClient.v1().invoiceRenderingTemplates() instead. All functionality under it has been + * copied over to StripeClient.v1().invoiceRenderingTemplates(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.InvoiceRenderingTemplateService invoiceRenderingTemplates() { return new com.stripe.service.InvoiceRenderingTemplateService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.invoices() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().invoices(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.invoices() is deprecated, use StripeClient.v1().invoices() instead. + * All functionality under it has been copied over to StripeClient.v1().invoices(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.InvoiceService invoices() { return new com.stripe.service.InvoiceService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.issuing() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().issuing(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.issuing() is deprecated, use StripeClient.v1().issuing() instead. All + * functionality under it has been copied over to StripeClient.v1().issuing(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.IssuingService issuing() { return new com.stripe.service.IssuingService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.mandates() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().mandates(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.mandates() is deprecated, use StripeClient.v1().mandates() instead. + * All functionality under it has been copied over to StripeClient.v1().mandates(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.MandateService mandates() { return new com.stripe.service.MandateService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.margins() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().margins(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.margins() is deprecated, use StripeClient.v1().margins() instead. All + * functionality under it has been copied over to StripeClient.v1().margins(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.MarginService margins() { return new com.stripe.service.MarginService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.orders() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().orders(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.orders() is deprecated, use StripeClient.v1().orders() instead. All + * functionality under it has been copied over to StripeClient.v1().orders(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.OrderService orders() { return new com.stripe.service.OrderService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.paymentAttemptRecords() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().paymentAttemptRecords(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.paymentAttemptRecords() is deprecated, use + * StripeClient.v1().paymentAttemptRecords() instead. All functionality under it has been + * copied over to StripeClient.v1().paymentAttemptRecords(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PaymentAttemptRecordService paymentAttemptRecords() { return new com.stripe.service.PaymentAttemptRecordService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.paymentIntents() will be deprecated in the next major - * release. All functionality under it has been copied over to StripeClient.v1().paymentIntents(). - * See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.paymentIntents() is deprecated, use StripeClient.v1().paymentIntents() + * instead. All functionality under it has been copied over to + * StripeClient.v1().paymentIntents(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PaymentIntentService paymentIntents() { return new com.stripe.service.PaymentIntentService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.paymentLinks() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().paymentLinks(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.paymentLinks() is deprecated, use StripeClient.v1().paymentLinks() + * instead. All functionality under it has been copied over to + * StripeClient.v1().paymentLinks(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PaymentLinkService paymentLinks() { return new com.stripe.service.PaymentLinkService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.paymentMethodConfigurations() will be deprecated in the next - * major release. All functionality under it has been copied over to - * StripeClient.v1().paymentMethodConfigurations(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.paymentMethodConfigurations() is deprecated, use + * StripeClient.v1().paymentMethodConfigurations() instead. All functionality under it has + * been copied over to StripeClient.v1().paymentMethodConfigurations(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PaymentMethodConfigurationService paymentMethodConfigurations() { return new com.stripe.service.PaymentMethodConfigurationService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.paymentMethodDomains() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().paymentMethodDomains(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.paymentMethodDomains() is deprecated, use + * StripeClient.v1().paymentMethodDomains() instead. All functionality under it has been + * copied over to StripeClient.v1().paymentMethodDomains(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PaymentMethodDomainService paymentMethodDomains() { return new com.stripe.service.PaymentMethodDomainService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.paymentMethods() will be deprecated in the next major - * release. All functionality under it has been copied over to StripeClient.v1().paymentMethods(). - * See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.paymentMethods() is deprecated, use StripeClient.v1().paymentMethods() + * instead. All functionality under it has been copied over to + * StripeClient.v1().paymentMethods(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PaymentMethodService paymentMethods() { return new com.stripe.service.PaymentMethodService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.paymentRecords() will be deprecated in the next major - * release. All functionality under it has been copied over to StripeClient.v1().paymentRecords(). - * See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.paymentRecords() is deprecated, use StripeClient.v1().paymentRecords() + * instead. All functionality under it has been copied over to + * StripeClient.v1().paymentRecords(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PaymentRecordService paymentRecords() { return new com.stripe.service.PaymentRecordService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.payouts() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().payouts(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.payouts() is deprecated, use StripeClient.v1().payouts() instead. All + * functionality under it has been copied over to StripeClient.v1().payouts(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PayoutService payouts() { return new com.stripe.service.PayoutService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.plans() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().plans(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.plans() is deprecated, use StripeClient.v1().plans() instead. All + * functionality under it has been copied over to StripeClient.v1().plans(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PlanService plans() { return new com.stripe.service.PlanService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.prices() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().prices(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.prices() is deprecated, use StripeClient.v1().prices() instead. All + * functionality under it has been copied over to StripeClient.v1().prices(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PriceService prices() { return new com.stripe.service.PriceService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.privacy() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().privacy(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.privacy() is deprecated, use StripeClient.v1().privacy() instead. All + * functionality under it has been copied over to StripeClient.v1().privacy(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PrivacyService privacy() { return new com.stripe.service.PrivacyService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.products() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().products(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.products() is deprecated, use StripeClient.v1().products() instead. + * All functionality under it has been copied over to StripeClient.v1().products(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ProductService products() { return new com.stripe.service.ProductService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.promotionCodes() will be deprecated in the next major - * release. All functionality under it has been copied over to StripeClient.v1().promotionCodes(). - * See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.promotionCodes() is deprecated, use StripeClient.v1().promotionCodes() + * instead. All functionality under it has been copied over to + * StripeClient.v1().promotionCodes(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.PromotionCodeService promotionCodes() { return new com.stripe.service.PromotionCodeService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.quotes() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().quotes(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.quotes() is deprecated, use StripeClient.v1().quotes() instead. All + * functionality under it has been copied over to StripeClient.v1().quotes(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.QuoteService quotes() { return new com.stripe.service.QuoteService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.radar() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().radar(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.radar() is deprecated, use StripeClient.v1().radar() instead. All + * functionality under it has been copied over to StripeClient.v1().radar(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.RadarService radar() { return new com.stripe.service.RadarService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.refunds() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().refunds(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.refunds() is deprecated, use StripeClient.v1().refunds() instead. All + * functionality under it has been copied over to StripeClient.v1().refunds(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.RefundService refunds() { return new com.stripe.service.RefundService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.reporting() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().reporting(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.reporting() is deprecated, use StripeClient.v1().reporting() instead. + * All functionality under it has been copied over to StripeClient.v1().reporting(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ReportingService reporting() { return new com.stripe.service.ReportingService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.reviews() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().reviews(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.reviews() is deprecated, use StripeClient.v1().reviews() instead. All + * functionality under it has been copied over to StripeClient.v1().reviews(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ReviewService reviews() { return new com.stripe.service.ReviewService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.setupAttempts() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().setupAttempts(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.setupAttempts() is deprecated, use StripeClient.v1().setupAttempts() + * instead. All functionality under it has been copied over to + * StripeClient.v1().setupAttempts(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.SetupAttemptService setupAttempts() { return new com.stripe.service.SetupAttemptService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.setupIntents() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().setupIntents(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.setupIntents() is deprecated, use StripeClient.v1().setupIntents() + * instead. All functionality under it has been copied over to + * StripeClient.v1().setupIntents(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.SetupIntentService setupIntents() { return new com.stripe.service.SetupIntentService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.shippingRates() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().shippingRates(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.shippingRates() is deprecated, use StripeClient.v1().shippingRates() + * instead. All functionality under it has been copied over to + * StripeClient.v1().shippingRates(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.ShippingRateService shippingRates() { return new com.stripe.service.ShippingRateService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.sigma() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().sigma(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.sigma() is deprecated, use StripeClient.v1().sigma() instead. All + * functionality under it has been copied over to StripeClient.v1().sigma(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.SigmaService sigma() { return new com.stripe.service.SigmaService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.sources() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().sources(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.sources() is deprecated, use StripeClient.v1().sources() instead. All + * functionality under it has been copied over to StripeClient.v1().sources(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.SourceService sources() { return new com.stripe.service.SourceService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.subscriptionItems() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().subscriptionItems(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.subscriptionItems() is deprecated, use + * StripeClient.v1().subscriptionItems() instead. All functionality under it has been copied + * over to StripeClient.v1().subscriptionItems(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.SubscriptionItemService subscriptionItems() { return new com.stripe.service.SubscriptionItemService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.subscriptionSchedules() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().subscriptionSchedules(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.subscriptionSchedules() is deprecated, use + * StripeClient.v1().subscriptionSchedules() instead. All functionality under it has been + * copied over to StripeClient.v1().subscriptionSchedules(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.SubscriptionScheduleService subscriptionSchedules() { return new com.stripe.service.SubscriptionScheduleService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.subscriptions() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().subscriptions(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.subscriptions() is deprecated, use StripeClient.v1().subscriptions() + * instead. All functionality under it has been copied over to + * StripeClient.v1().subscriptions(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.SubscriptionService subscriptions() { return new com.stripe.service.SubscriptionService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.tax() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().tax(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.tax() is deprecated, use StripeClient.v1().tax() instead. All + * functionality under it has been copied over to StripeClient.v1().tax(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.TaxService tax() { return new com.stripe.service.TaxService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.taxCodes() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().taxCodes(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.taxCodes() is deprecated, use StripeClient.v1().taxCodes() instead. + * All functionality under it has been copied over to StripeClient.v1().taxCodes(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.TaxCodeService taxCodes() { return new com.stripe.service.TaxCodeService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.taxIds() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().taxIds(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.taxIds() is deprecated, use StripeClient.v1().taxIds() instead. All + * functionality under it has been copied over to StripeClient.v1().taxIds(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.TaxIdService taxIds() { return new com.stripe.service.TaxIdService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.taxRates() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().taxRates(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.taxRates() is deprecated, use StripeClient.v1().taxRates() instead. + * All functionality under it has been copied over to StripeClient.v1().taxRates(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.TaxRateService taxRates() { return new com.stripe.service.TaxRateService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.terminal() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().terminal(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.terminal() is deprecated, use StripeClient.v1().terminal() instead. + * All functionality under it has been copied over to StripeClient.v1().terminal(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.TerminalService terminal() { return new com.stripe.service.TerminalService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.testHelpers() will be deprecated in the next major release. - * All functionality under it has been copied over to StripeClient.v1().testHelpers(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.testHelpers() is deprecated, use StripeClient.v1().testHelpers() + * instead. All functionality under it has been copied over to + * StripeClient.v1().testHelpers(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.TestHelpersService testHelpers() { return new com.stripe.service.TestHelpersService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.tokens() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().tokens(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.tokens() is deprecated, use StripeClient.v1().tokens() instead. All + * functionality under it has been copied over to StripeClient.v1().tokens(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.TokenService tokens() { return new com.stripe.service.TokenService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.topups() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().topups(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.topups() is deprecated, use StripeClient.v1().topups() instead. All + * functionality under it has been copied over to StripeClient.v1().topups(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.TopupService topups() { return new com.stripe.service.TopupService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.transfers() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().transfers(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.transfers() is deprecated, use StripeClient.v1().transfers() instead. + * All functionality under it has been copied over to StripeClient.v1().transfers(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.TransferService transfers() { return new com.stripe.service.TransferService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.treasury() will be deprecated in the next major release. All - * functionality under it has been copied over to StripeClient.v1().treasury(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.treasury() is deprecated, use StripeClient.v1().treasury() instead. + * All functionality under it has been copied over to StripeClient.v1().treasury(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.TreasuryService treasury() { return new com.stripe.service.TreasuryService(this.getResponseGetter()); } /** - * Deprecation Warning: StripeClient.webhookEndpoints() will be deprecated in the next major - * release. All functionality under it has been copied over to - * StripeClient.v1().webhookEndpoints(). See migration - * guide for more on this and tips on migrating to the new v1 namespace. + * @deprecated StripeClient.webhookEndpoints() is deprecated, use + * StripeClient.v1().webhookEndpoints() instead. All functionality under it has been copied + * over to StripeClient.v1().webhookEndpoints(). See migration + * guide for more on this and tips on migrating to the new v1 namespace. */ + @Deprecated public com.stripe.service.WebhookEndpointService webhookEndpoints() { return new com.stripe.service.WebhookEndpointService(this.getResponseGetter()); } diff --git a/src/main/java/com/stripe/events/V1BillingMeterErrorReportTriggeredEvent.java b/src/main/java/com/stripe/events/V1BillingMeterErrorReportTriggeredEvent.java index 0d70dcb7f5a..bab476098a3 100644 --- a/src/main/java/com/stripe/events/V1BillingMeterErrorReportTriggeredEvent.java +++ b/src/main/java/com/stripe/events/V1BillingMeterErrorReportTriggeredEvent.java @@ -35,7 +35,7 @@ public static final class EventData { public static final class Reason { /** The total error count within this window. */ @SerializedName("error_count") - Integer errorCount; + Long errorCount; /** The error details. */ @SerializedName("error_types") List errorTypes; @@ -53,7 +53,7 @@ public static final class ErrorType { String code; /** The number of errors of this type. */ @SerializedName("error_count") - Integer errorCount; + Long errorCount; /** A list of sample errors of this type. */ @SerializedName("sample_errors") List diff --git a/src/main/java/com/stripe/events/V1BillingMeterNoMeterFoundEvent.java b/src/main/java/com/stripe/events/V1BillingMeterNoMeterFoundEvent.java index e896ebe7687..97b26534230 100644 --- a/src/main/java/com/stripe/events/V1BillingMeterNoMeterFoundEvent.java +++ b/src/main/java/com/stripe/events/V1BillingMeterNoMeterFoundEvent.java @@ -33,7 +33,7 @@ public static final class EventData { public static final class Reason { /** The total error count within this window. */ @SerializedName("error_count") - Integer errorCount; + Long errorCount; /** The error details. */ @SerializedName("error_types") List errorTypes; @@ -51,7 +51,7 @@ public static final class ErrorType { String code; /** The number of errors of this type. */ @SerializedName("error_count") - Integer errorCount; + Long errorCount; /** A list of sample errors of this type. */ @SerializedName("sample_errors") List sampleErrors; diff --git a/src/main/java/com/stripe/events/V2BillingCadenceBilledEvent.java b/src/main/java/com/stripe/events/V2BillingCadenceBilledEvent.java index a279e41b702..247c699a259 100644 --- a/src/main/java/com/stripe/events/V2BillingCadenceBilledEvent.java +++ b/src/main/java/com/stripe/events/V2BillingCadenceBilledEvent.java @@ -5,24 +5,10 @@ import com.stripe.exception.StripeException; import com.stripe.model.v2.Event; import com.stripe.model.v2.billing.Cadence; -import java.util.List; import lombok.Getter; -import lombok.Setter; @Getter public final class V2BillingCadenceBilledEvent extends Event { - /** Data for the v2.billing.cadence.billed event. */ - @SerializedName("data") - V2BillingCadenceBilledEvent.EventData data; - - @Getter - @Setter - public static final class EventData { - /** The IDs of the invoices that were generated by the tick for this Cadence. */ - @SerializedName("invoices") - List invoices; - } - @SerializedName("related_object") /** Object containing the reference to API resource relevant to the event. */ diff --git a/src/main/java/com/stripe/events/V2ReportingReportRunFailedEvent.java b/src/main/java/com/stripe/events/V2BillingCadenceErroredEvent.java similarity index 65% rename from src/main/java/com/stripe/events/V2ReportingReportRunFailedEvent.java rename to src/main/java/com/stripe/events/V2BillingCadenceErroredEvent.java index abbe9400d22..2cb05a6a162 100644 --- a/src/main/java/com/stripe/events/V2ReportingReportRunFailedEvent.java +++ b/src/main/java/com/stripe/events/V2BillingCadenceErroredEvent.java @@ -4,18 +4,18 @@ import com.google.gson.annotations.SerializedName; import com.stripe.exception.StripeException; import com.stripe.model.v2.Event; -import com.stripe.model.v2.reporting.ReportRun; +import com.stripe.model.v2.billing.Cadence; import lombok.Getter; @Getter -public final class V2ReportingReportRunFailedEvent extends Event { +public final class V2BillingCadenceErroredEvent extends Event { @SerializedName("related_object") /** Object containing the reference to API resource relevant to the event. */ RelatedObject relatedObject; /** Retrieves the related object from the API. Make an API request on every call. */ - public ReportRun fetchRelatedObject() throws StripeException { - return (ReportRun) super.fetchRelatedObject(this.relatedObject); + public Cadence fetchRelatedObject() throws StripeException { + return (Cadence) super.fetchRelatedObject(this.relatedObject); } } diff --git a/src/main/java/com/stripe/events/V2CoreAccountPersonCreatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountPersonCreatedEvent.java index e5bee1f15bf..df147f10d99 100644 --- a/src/main/java/com/stripe/events/V2CoreAccountPersonCreatedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreAccountPersonCreatedEvent.java @@ -4,7 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.exception.StripeException; import com.stripe.model.v2.Event; -import com.stripe.model.v2.core.Person; +import com.stripe.model.v2.core.AccountPerson; import lombok.Getter; import lombok.Setter; @@ -28,7 +28,7 @@ public static final class EventData { RelatedObject relatedObject; /** Retrieves the related object from the API. Make an API request on every call. */ - public Person fetchRelatedObject() throws StripeException { - return (Person) super.fetchRelatedObject(this.relatedObject); + public AccountPerson fetchRelatedObject() throws StripeException { + return (AccountPerson) super.fetchRelatedObject(this.relatedObject); } } diff --git a/src/main/java/com/stripe/events/V2CoreAccountPersonDeletedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountPersonDeletedEvent.java index eae11bd9f37..021e1273d8a 100644 --- a/src/main/java/com/stripe/events/V2CoreAccountPersonDeletedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreAccountPersonDeletedEvent.java @@ -4,7 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.exception.StripeException; import com.stripe.model.v2.Event; -import com.stripe.model.v2.core.Person; +import com.stripe.model.v2.core.AccountPerson; import lombok.Getter; import lombok.Setter; @@ -28,7 +28,7 @@ public static final class EventData { RelatedObject relatedObject; /** Retrieves the related object from the API. Make an API request on every call. */ - public Person fetchRelatedObject() throws StripeException { - return (Person) super.fetchRelatedObject(this.relatedObject); + public AccountPerson fetchRelatedObject() throws StripeException { + return (AccountPerson) super.fetchRelatedObject(this.relatedObject); } } diff --git a/src/main/java/com/stripe/events/V2CoreAccountPersonUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountPersonUpdatedEvent.java index f7f12165ab4..0ab14ed5003 100644 --- a/src/main/java/com/stripe/events/V2CoreAccountPersonUpdatedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreAccountPersonUpdatedEvent.java @@ -4,7 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.exception.StripeException; import com.stripe.model.v2.Event; -import com.stripe.model.v2.core.Person; +import com.stripe.model.v2.core.AccountPerson; import lombok.Getter; import lombok.Setter; @@ -28,7 +28,7 @@ public static final class EventData { RelatedObject relatedObject; /** Retrieves the related object from the API. Make an API request on every call. */ - public Person fetchRelatedObject() throws StripeException { - return (Person) super.fetchRelatedObject(this.relatedObject); + public AccountPerson fetchRelatedObject() throws StripeException { + return (AccountPerson) super.fetchRelatedObject(this.relatedObject); } } diff --git a/src/main/java/com/stripe/events/V2CoreClaimableSandboxClaimedEvent.java b/src/main/java/com/stripe/events/V2CoreClaimableSandboxClaimedEvent.java deleted file mode 100644 index a5cb009f834..00000000000 --- a/src/main/java/com/stripe/events/V2CoreClaimableSandboxClaimedEvent.java +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.events; - -import com.google.gson.annotations.SerializedName; -import com.stripe.exception.StripeException; -import com.stripe.model.v2.Event; -import com.stripe.model.v2.core.ClaimableSandbox; -import lombok.Getter; - -@Getter -public final class V2CoreClaimableSandboxClaimedEvent extends Event { - @SerializedName("related_object") - - /** Object containing the reference to API resource relevant to the event. */ - RelatedObject relatedObject; - - /** Retrieves the related object from the API. Make an API request on every call. */ - public ClaimableSandbox fetchRelatedObject() throws StripeException { - return (ClaimableSandbox) super.fetchRelatedObject(this.relatedObject); - } -} diff --git a/src/main/java/com/stripe/events/V2CoreClaimableSandboxExpiredEvent.java b/src/main/java/com/stripe/events/V2CoreClaimableSandboxExpiredEvent.java deleted file mode 100644 index 77f27e489fd..00000000000 --- a/src/main/java/com/stripe/events/V2CoreClaimableSandboxExpiredEvent.java +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.events; - -import com.google.gson.annotations.SerializedName; -import com.stripe.exception.StripeException; -import com.stripe.model.v2.Event; -import com.stripe.model.v2.core.ClaimableSandbox; -import lombok.Getter; - -@Getter -public final class V2CoreClaimableSandboxExpiredEvent extends Event { - @SerializedName("related_object") - - /** Object containing the reference to API resource relevant to the event. */ - RelatedObject relatedObject; - - /** Retrieves the related object from the API. Make an API request on every call. */ - public ClaimableSandbox fetchRelatedObject() throws StripeException { - return (ClaimableSandbox) super.fetchRelatedObject(this.relatedObject); - } -} diff --git a/src/main/java/com/stripe/events/V2CoreClaimableSandboxExpiringEvent.java b/src/main/java/com/stripe/events/V2CoreClaimableSandboxExpiringEvent.java deleted file mode 100644 index b93573eacc2..00000000000 --- a/src/main/java/com/stripe/events/V2CoreClaimableSandboxExpiringEvent.java +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.events; - -import com.google.gson.annotations.SerializedName; -import com.stripe.exception.StripeException; -import com.stripe.model.v2.Event; -import com.stripe.model.v2.core.ClaimableSandbox; -import lombok.Getter; - -@Getter -public final class V2CoreClaimableSandboxExpiringEvent extends Event { - @SerializedName("related_object") - - /** Object containing the reference to API resource relevant to the event. */ - RelatedObject relatedObject; - - /** Retrieves the related object from the API. Make an API request on every call. */ - public ClaimableSandbox fetchRelatedObject() throws StripeException { - return (ClaimableSandbox) super.fetchRelatedObject(this.relatedObject); - } -} diff --git a/src/main/java/com/stripe/events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.java deleted file mode 100644 index f0fb0a02fe9..00000000000 --- a/src/main/java/com/stripe/events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.java +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.events; - -import com.google.gson.annotations.SerializedName; -import com.stripe.exception.StripeException; -import com.stripe.model.v2.Event; -import com.stripe.model.v2.core.ClaimableSandbox; -import lombok.Getter; - -@Getter -public final class V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent extends Event { - @SerializedName("related_object") - - /** Object containing the reference to API resource relevant to the event. */ - RelatedObject relatedObject; - - /** Retrieves the related object from the API. Make an API request on every call. */ - public ClaimableSandbox fetchRelatedObject() throws StripeException { - return (ClaimableSandbox) super.fetchRelatedObject(this.relatedObject); - } -} diff --git a/src/main/java/com/stripe/events/V2CoreHealthApiErrorFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthApiErrorFiringEvent.java index 3f434f94171..1a129d89aad 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthApiErrorFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthApiErrorFiringEvent.java @@ -51,7 +51,7 @@ public static final class Impact { String httpStatus; /** The number of impacted requests. */ @SerializedName("impacted_requests") - Integer impactedRequests; + Long impactedRequests; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthApiErrorResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthApiErrorResolvedEvent.java index fca59f8a6c3..040e8c6c833 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthApiErrorResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthApiErrorResolvedEvent.java @@ -54,7 +54,7 @@ public static final class Impact { String httpStatus; /** The number of impacted requests. */ @SerializedName("impacted_requests") - Integer impactedRequests; + Long impactedRequests; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthApiLatencyFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthApiLatencyFiringEvent.java index c6c39333844..88fa8bd3623 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthApiLatencyFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthApiLatencyFiringEvent.java @@ -48,7 +48,7 @@ public static final class Impact { String httpStatus; /** The number of impacted requests. */ @SerializedName("impacted_requests") - Integer impactedRequests; + Long impactedRequests; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthApiLatencyResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthApiLatencyResolvedEvent.java index 9293e3f375b..2f70677d621 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthApiLatencyResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthApiLatencyResolvedEvent.java @@ -51,7 +51,7 @@ public static final class Impact { String httpStatus; /** The number of impacted requests. */ @SerializedName("impacted_requests") - Integer impactedRequests; + Long impactedRequests; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthAuthorizationRateDropFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthAuthorizationRateDropFiringEvent.java index 073ba132b02..a028ff6c883 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthAuthorizationRateDropFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthAuthorizationRateDropFiringEvent.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.v2.Event; +import java.math.BigDecimal; import java.time.Instant; import java.util.List; import lombok.Getter; @@ -43,7 +44,7 @@ public static final class Impact { String chargeType; /** The current authorization rate percentage. */ @SerializedName("current_percentage") - String currentPercentage; + BigDecimal currentPercentage; /** Dimensions that describe what subset of payments are impacted. */ @SerializedName("dimensions") List dimensions; @@ -65,7 +66,7 @@ public static final class Impact { String paymentMethodType; /** The previous authorization rate percentage. */ @SerializedName("previous_percentage") - String previousPercentage; + BigDecimal previousPercentage; public static final class Dimension { /** The issuer dimension. */ diff --git a/src/main/java/com/stripe/events/V2CoreHealthAuthorizationRateDropResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthAuthorizationRateDropResolvedEvent.java index a7863d3eeb8..2d519e65571 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthAuthorizationRateDropResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthAuthorizationRateDropResolvedEvent.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.v2.Event; +import java.math.BigDecimal; import java.time.Instant; import java.util.List; import lombok.Getter; @@ -46,7 +47,7 @@ public static final class Impact { String chargeType; /** The current authorization rate percentage. */ @SerializedName("current_percentage") - String currentPercentage; + BigDecimal currentPercentage; /** Dimensions that describe what subset of payments are impacted. */ @SerializedName("dimensions") List dimensions; @@ -68,7 +69,7 @@ public static final class Impact { String paymentMethodType; /** The previous authorization rate percentage. */ @SerializedName("previous_percentage") - String previousPercentage; + BigDecimal previousPercentage; public static final class Dimension { /** The issuer dimension. */ diff --git a/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java index 08e0fa7bf59..070d53b329d 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthEventGenerationFailureResolvedEvent.java @@ -47,7 +47,7 @@ public static final class Impact { Boolean livemode; /** The number of webhooks that Stripe failed to create and deliver. */ @SerializedName("missing_delivery_attempts") - Integer missingDeliveryAttempts; + Long missingDeliveryAttempts; /** The related object id. */ @SerializedName("related_object_id") String relatedObjectId; diff --git a/src/main/java/com/stripe/events/V2CoreHealthFraudRateIncreasedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthFraudRateIncreasedEvent.java index 19d4ea0d309..a98cc65afde 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthFraudRateIncreasedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthFraudRateIncreasedEvent.java @@ -46,7 +46,7 @@ public static final class Impact { String attackType; /** The number of impacted requests which are detected. */ @SerializedName("impacted_requests") - Integer impactedRequests; + Long impactedRequests; /** Estimated aggregated amount for the impacted requests. */ @SerializedName("realized_fraud_amount") Amount realizedFraudAmount; diff --git a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.java index 808c95ba3e1..e5c5b91e660 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.java @@ -39,13 +39,13 @@ public static final class Impact { Amount approvedAmount; /** The number of approved requests which are impacted. */ @SerializedName("approved_impacted_requests") - Integer approvedImpactedRequests; + Long approvedImpactedRequests; /** Estimated aggregated amount for the declined requests. */ @SerializedName("declined_amount") Amount declinedAmount; /** The number of declined requests which are impacted. */ @SerializedName("declined_impacted_requests") - Integer declinedImpactedRequests; + Long declinedImpactedRequests; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.java index 0d602bad038..85c92ac8a36 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.java @@ -42,13 +42,13 @@ public static final class Impact { Amount approvedAmount; /** The number of approved requests which are impacted. */ @SerializedName("approved_impacted_requests") - Integer approvedImpactedRequests; + Long approvedImpactedRequests; /** Estimated aggregated amount for the declined requests. */ @SerializedName("declined_amount") Amount declinedAmount; /** The number of declined requests which are impacted. */ @SerializedName("declined_impacted_requests") - Integer declinedImpactedRequests; + Long declinedImpactedRequests; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorFiringEvent.java index f75c1aee7f2..de32e979595 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorFiringEvent.java @@ -38,7 +38,7 @@ public static final class Impact { String errorCode; /** The number of impacted requests. */ @SerializedName("impacted_requests") - Integer impactedRequests; + Long impactedRequests; /** * The type of the payment method. * diff --git a/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorResolvedEvent.java index 49c7ab253e7..971ce2961e8 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorResolvedEvent.java @@ -41,7 +41,7 @@ public static final class Impact { String errorCode; /** The number of impacted requests. */ @SerializedName("impacted_requests") - Integer impactedRequests; + Long impactedRequests; /** * The type of the payment method. * diff --git a/src/main/java/com/stripe/events/V2CoreHealthTrafficVolumeDropFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthTrafficVolumeDropFiringEvent.java index 97183112b51..b97dff249f8 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthTrafficVolumeDropFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthTrafficVolumeDropFiringEvent.java @@ -35,10 +35,10 @@ public static final class EventData { public static final class Impact { /** The total volume of payment requests within the latest observation time window. */ @SerializedName("actual_traffic") - Integer actualTraffic; + Long actualTraffic; /** The expected volume of payment requests within the latest observation time window. */ @SerializedName("expected_traffic") - Integer expectedTraffic; + Long expectedTraffic; /** The size of the observation time window. */ @SerializedName("time_window") String timeWindow; diff --git a/src/main/java/com/stripe/events/V2CoreHealthTrafficVolumeDropResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthTrafficVolumeDropResolvedEvent.java index f34c2d02bb0..77034969c55 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthTrafficVolumeDropResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthTrafficVolumeDropResolvedEvent.java @@ -38,10 +38,10 @@ public static final class EventData { public static final class Impact { /** The total volume of payment requests within the latest observation time window. */ @SerializedName("actual_traffic") - Integer actualTraffic; + Long actualTraffic; /** The expected volume of payment requests within the latest observation time window. */ @SerializedName("expected_traffic") - Integer expectedTraffic; + Long expectedTraffic; /** The size of the observation time window. */ @SerializedName("time_window") String timeWindow; diff --git a/src/main/java/com/stripe/events/V2CoreHealthWebhookLatencyFiringEvent.java b/src/main/java/com/stripe/events/V2CoreHealthWebhookLatencyFiringEvent.java index 014bfef54f5..f12e6f04c67 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthWebhookLatencyFiringEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthWebhookLatencyFiringEvent.java @@ -35,7 +35,7 @@ public static final class EventData { public static final class Impact { /** The number of impacted requests. */ @SerializedName("impacted_requests") - Integer impactedRequests; + Long impactedRequests; } } } diff --git a/src/main/java/com/stripe/events/V2CoreHealthWebhookLatencyResolvedEvent.java b/src/main/java/com/stripe/events/V2CoreHealthWebhookLatencyResolvedEvent.java index 3bcde5127ce..d9c3ffc0cc3 100644 --- a/src/main/java/com/stripe/events/V2CoreHealthWebhookLatencyResolvedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreHealthWebhookLatencyResolvedEvent.java @@ -38,7 +38,7 @@ public static final class EventData { public static final class Impact { /** The number of impacted requests. */ @SerializedName("impacted_requests") - Integer impactedRequests; + Long impactedRequests; } } } diff --git a/src/main/java/com/stripe/events/V2ReportingReportRunCreatedEvent.java b/src/main/java/com/stripe/events/V2ReportingReportRunCreatedEvent.java deleted file mode 100644 index 7ff0d304755..00000000000 --- a/src/main/java/com/stripe/events/V2ReportingReportRunCreatedEvent.java +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.events; - -import com.google.gson.annotations.SerializedName; -import com.stripe.exception.StripeException; -import com.stripe.model.v2.Event; -import com.stripe.model.v2.reporting.ReportRun; -import lombok.Getter; - -@Getter -public final class V2ReportingReportRunCreatedEvent extends Event { - @SerializedName("related_object") - - /** Object containing the reference to API resource relevant to the event. */ - RelatedObject relatedObject; - - /** Retrieves the related object from the API. Make an API request on every call. */ - public ReportRun fetchRelatedObject() throws StripeException { - return (ReportRun) super.fetchRelatedObject(this.relatedObject); - } -} diff --git a/src/main/java/com/stripe/events/V2ReportingReportRunSucceededEvent.java b/src/main/java/com/stripe/events/V2ReportingReportRunSucceededEvent.java deleted file mode 100644 index 214fecb7e85..00000000000 --- a/src/main/java/com/stripe/events/V2ReportingReportRunSucceededEvent.java +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.events; - -import com.google.gson.annotations.SerializedName; -import com.stripe.exception.StripeException; -import com.stripe.model.v2.Event; -import com.stripe.model.v2.reporting.ReportRun; -import lombok.Getter; - -@Getter -public final class V2ReportingReportRunSucceededEvent extends Event { - @SerializedName("related_object") - - /** Object containing the reference to API resource relevant to the event. */ - RelatedObject relatedObject; - - /** Retrieves the related object from the API. Make an API request on every call. */ - public ReportRun fetchRelatedObject() throws StripeException { - return (ReportRun) super.fetchRelatedObject(this.relatedObject); - } -} diff --git a/src/main/java/com/stripe/events/V2ReportingReportRunUpdatedEvent.java b/src/main/java/com/stripe/events/V2ReportingReportRunUpdatedEvent.java deleted file mode 100644 index 9ea6e690e8a..00000000000 --- a/src/main/java/com/stripe/events/V2ReportingReportRunUpdatedEvent.java +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.events; - -import com.google.gson.annotations.SerializedName; -import com.stripe.exception.StripeException; -import com.stripe.model.v2.Event; -import com.stripe.model.v2.reporting.ReportRun; -import lombok.Getter; - -@Getter -public final class V2ReportingReportRunUpdatedEvent extends Event { - @SerializedName("related_object") - - /** Object containing the reference to API resource relevant to the event. */ - RelatedObject relatedObject; - - /** Retrieves the related object from the API. Make an API request on every call. */ - public ReportRun fetchRelatedObject() throws StripeException { - return (ReportRun) super.fetchRelatedObject(this.relatedObject); - } -} diff --git a/src/main/java/com/stripe/exception/AlreadyCanceledException.java b/src/main/java/com/stripe/exception/AlreadyCanceledException.java index 8afb343d196..f0e2c0fe267 100644 --- a/src/main/java/com/stripe/exception/AlreadyCanceledException.java +++ b/src/main/java/com/stripe/exception/AlreadyCanceledException.java @@ -6,7 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** Error returned when user tries to cancel an OutboundPayment that was already canceled. */ +/** Information about the error that occurred. */ public final class AlreadyCanceledException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/AlreadyExistsException.java b/src/main/java/com/stripe/exception/AlreadyExistsException.java index 317c4407b9b..24d496994c2 100644 --- a/src/main/java/com/stripe/exception/AlreadyExistsException.java +++ b/src/main/java/com/stripe/exception/AlreadyExistsException.java @@ -6,7 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** The resource already exists. */ +/** Information about the error that occurred. */ public final class AlreadyExistsException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/BlockedByStripeException.java b/src/main/java/com/stripe/exception/BlockedByStripeException.java index 217ddab1229..c62049f1617 100644 --- a/src/main/java/com/stripe/exception/BlockedByStripeException.java +++ b/src/main/java/com/stripe/exception/BlockedByStripeException.java @@ -6,10 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** - * Returned if an InboundTransfer is not allowed for risk, legal, regulatory or other unforeseen - * reasons. - */ +/** Information about the error that occurred. */ public final class BlockedByStripeException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/ControlledByDashboardException.java b/src/main/java/com/stripe/exception/ControlledByDashboardException.java index cac7b66e44b..1326e4a1f4e 100644 --- a/src/main/java/com/stripe/exception/ControlledByDashboardException.java +++ b/src/main/java/com/stripe/exception/ControlledByDashboardException.java @@ -6,10 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** - * Returned when the PayoutMethodBankAccount object is controlled by the Stripe Dashboard, and - * cannot be archived. - */ +/** Information about the error that occurred. */ public final class ControlledByDashboardException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/FeatureNotEnabledException.java b/src/main/java/com/stripe/exception/FeatureNotEnabledException.java index e7557529f14..5e77d0d93d1 100644 --- a/src/main/java/com/stripe/exception/FeatureNotEnabledException.java +++ b/src/main/java/com/stripe/exception/FeatureNotEnabledException.java @@ -6,7 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** The required storer capabilities are missing. */ +/** Information about the error that occurred. */ public final class FeatureNotEnabledException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/FinancialAccountNotOpenException.java b/src/main/java/com/stripe/exception/FinancialAccountNotOpenException.java index 66a745010d4..f9cc6c3b0be 100644 --- a/src/main/java/com/stripe/exception/FinancialAccountNotOpenException.java +++ b/src/main/java/com/stripe/exception/FinancialAccountNotOpenException.java @@ -6,6 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; +/** Information about the error that occurred. */ public final class FinancialAccountNotOpenException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/InsufficientFundsException.java b/src/main/java/com/stripe/exception/InsufficientFundsException.java index e28c0065d0d..2d477585167 100644 --- a/src/main/java/com/stripe/exception/InsufficientFundsException.java +++ b/src/main/java/com/stripe/exception/InsufficientFundsException.java @@ -6,10 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** - * Error returned when the balance of provided financial account and balance type in the - * OutboundPayment/OutboundTransfer request does not have enough funds. - */ +/** Information about the error that occurred. */ public final class InsufficientFundsException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/InvalidPaymentMethodException.java b/src/main/java/com/stripe/exception/InvalidPaymentMethodException.java index 320cee6e260..597a5e06fa2 100644 --- a/src/main/java/com/stripe/exception/InvalidPaymentMethodException.java +++ b/src/main/java/com/stripe/exception/InvalidPaymentMethodException.java @@ -8,10 +8,7 @@ import com.stripe.net.StripeResponseGetter; import lombok.Getter; -/** - * Returned in cases where the bank account provided is not valid (wrong format of account number or - * a routing number that does not correspond to a banking institution). - */ +/** Information about the error that occurred. */ public final class InvalidPaymentMethodException extends ApiException { private static final long serialVersionUID = 2L; @Getter String invalidParam; diff --git a/src/main/java/com/stripe/exception/InvalidPayoutMethodException.java b/src/main/java/com/stripe/exception/InvalidPayoutMethodException.java index 1b92d726743..e10ea5a4a3c 100644 --- a/src/main/java/com/stripe/exception/InvalidPayoutMethodException.java +++ b/src/main/java/com/stripe/exception/InvalidPayoutMethodException.java @@ -6,7 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** Returned in cases where the ID provided doesn't correspond to a valid payout method. */ +/** Information about the error that occurred. */ public final class InvalidPayoutMethodException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/NonZeroBalanceException.java b/src/main/java/com/stripe/exception/NonZeroBalanceException.java index e9ffb6bc220..3f032e51c63 100644 --- a/src/main/java/com/stripe/exception/NonZeroBalanceException.java +++ b/src/main/java/com/stripe/exception/NonZeroBalanceException.java @@ -6,7 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** Error thrown if a user tries to close an account that has non-zero balances. */ +/** Information about the error that occurred. */ public final class NonZeroBalanceException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/NotCancelableException.java b/src/main/java/com/stripe/exception/NotCancelableException.java index d1a93541b2e..9f669ddcdc9 100644 --- a/src/main/java/com/stripe/exception/NotCancelableException.java +++ b/src/main/java/com/stripe/exception/NotCancelableException.java @@ -6,7 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** Error returned when user tries to cancel an OutboundPayment that is not cancelable. */ +/** Information about the error that occurred. */ public final class NotCancelableException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/QuotaExceededException.java b/src/main/java/com/stripe/exception/QuotaExceededException.java index 889b0a25e8d..9d568ac104d 100644 --- a/src/main/java/com/stripe/exception/QuotaExceededException.java +++ b/src/main/java/com/stripe/exception/QuotaExceededException.java @@ -6,10 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** - * Error returned when the recipient's recent total amount in outbound payments has exceeded its - * limit. - */ +/** Information about the error that occurred. */ public final class QuotaExceededException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/RecipientNotNotifiableException.java b/src/main/java/com/stripe/exception/RecipientNotNotifiableException.java index c6e7d2f6d93..9e4ccfb2473 100644 --- a/src/main/java/com/stripe/exception/RecipientNotNotifiableException.java +++ b/src/main/java/com/stripe/exception/RecipientNotNotifiableException.java @@ -6,10 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** - * Error returned when the user enables notifications in the OutboundPayment request, but an email - * is not set up on the recipient account. - */ +/** Information about the error that occurred. */ public final class RecipientNotNotifiableException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/exception/StripeException.java b/src/main/java/com/stripe/exception/StripeException.java index ebd21d25afb..d677c3cf252 100644 --- a/src/main/java/com/stripe/exception/StripeException.java +++ b/src/main/java/com/stripe/exception/StripeException.java @@ -146,9 +146,6 @@ public static StripeException parseV2Exception( case "quota_exceeded": return com.stripe.exception.QuotaExceededException.parse( body, statusCode, requestId, responseGetter); - case "rate_limit": - return com.stripe.exception.RateLimitException.parse( - body, statusCode, requestId, responseGetter); case "recipient_not_notifiable": return com.stripe.exception.RecipientNotNotifiableException.parse( body, statusCode, requestId, responseGetter); diff --git a/src/main/java/com/stripe/exception/TemporarySessionExpiredException.java b/src/main/java/com/stripe/exception/TemporarySessionExpiredException.java index 376c73a885b..9a9977b273e 100644 --- a/src/main/java/com/stripe/exception/TemporarySessionExpiredException.java +++ b/src/main/java/com/stripe/exception/TemporarySessionExpiredException.java @@ -6,7 +6,7 @@ import com.stripe.model.StripeObject; import com.stripe.net.StripeResponseGetter; -/** The temporary session token has expired. */ +/** Information about the error that occurred. */ public final class TemporarySessionExpiredException extends ApiException { private static final long serialVersionUID = 2L; diff --git a/src/main/java/com/stripe/model/v2/DeletedObject.java b/src/main/java/com/stripe/model/v2/DeletedObject.java new file mode 100644 index 00000000000..11c7fb566f3 --- /dev/null +++ b/src/main/java/com/stripe/model/v2/DeletedObject.java @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +package com.stripe.model.v2; + +import com.google.gson.annotations.SerializedName; +import com.stripe.model.HasId; +import com.stripe.model.StripeObject; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class DeletedObject extends StripeObject implements HasId { + /** The ID of the object that's being deleted. */ + @Getter(onMethod_ = {@Override}) + @SerializedName("id") + String id; + + /** + * String representing the type of the object that has been deleted. Objects of the same type + * share the same value of the object field. + */ + @SerializedName("object") + String object; +} diff --git a/src/main/java/com/stripe/model/v2/Event.java b/src/main/java/com/stripe/model/v2/Event.java index 2635b2ca53a..e3ace3e939c 100644 --- a/src/main/java/com/stripe/model/v2/Event.java +++ b/src/main/java/com/stripe/model/v2/Event.java @@ -18,6 +18,18 @@ import lombok.Getter; import lombok.Setter; +/** + * Events are generated to keep you informed of activity in your business account. APIs in the /v2 + * namespace generate thin events which + * have small, unversioned payloads that include a reference to the ID of the object that has + * changed. The Events v2 API returns these new thin events. Retrieve the event object for + * additional data about the event. Use the related object ID in the event payload to fetch + * the API resource of the object associated with the event. Comparatively, events generated by + * most API v1 include a versioned snapshot of an API object in their payload. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -126,10 +138,7 @@ public static class RelatedObject extends StripeObject implements HasId { String url; } - /** - * For more details about Reason, please refer to the API - * Reference. - */ + /** Reason for the event. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -146,10 +155,7 @@ public static class Reason extends StripeObject { @SerializedName("type") String type; - /** - * For more details about Request, please refer to the API - * Reference. - */ + /** Information on the API request that instigated the event. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java index 7d1b74a6f8c..dba3bfcb547 100644 --- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java +++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java @@ -75,7 +75,7 @@ public final class EventDataClassLookup { classLookup.put("v2.core.account", com.stripe.model.v2.core.Account.class); classLookup.put("v2.core.account_link", com.stripe.model.v2.core.AccountLink.class); - classLookup.put("v2.core.account_person", com.stripe.model.v2.core.Person.class); + classLookup.put("v2.core.account_person", com.stripe.model.v2.core.AccountPerson.class); classLookup.put("v2.core.claimable_sandbox", com.stripe.model.v2.core.ClaimableSandbox.class); classLookup.put( @@ -127,9 +127,6 @@ public final class EventDataClassLookup { classLookup.put( "v2.payments.off_session_payment", com.stripe.model.v2.payments.OffSessionPayment.class); - classLookup.put("v2.reporting.report", com.stripe.model.v2.reporting.Report.class); - classLookup.put("v2.reporting.report_run", com.stripe.model.v2.reporting.ReportRun.class); - classLookup.put("v2.tax.automatic_rule", com.stripe.model.v2.tax.AutomaticRule.class); eventClassLookup.put( @@ -143,6 +140,8 @@ public final class EventDataClassLookup { "v2.billing.cadence.canceled", com.stripe.events.V2BillingCadenceCanceledEvent.class); eventClassLookup.put( "v2.billing.cadence.created", com.stripe.events.V2BillingCadenceCreatedEvent.class); + eventClassLookup.put( + "v2.billing.cadence.errored", com.stripe.events.V2BillingCadenceErroredEvent.class); eventClassLookup.put( "v2.billing.license_fee.created", com.stripe.events.V2BillingLicenseFeeCreatedEvent.class); eventClassLookup.put( @@ -293,18 +292,6 @@ public final class EventDataClassLookup { "v2.core.account_person.deleted", com.stripe.events.V2CoreAccountPersonDeletedEvent.class); eventClassLookup.put( "v2.core.account_person.updated", com.stripe.events.V2CoreAccountPersonUpdatedEvent.class); - eventClassLookup.put( - "v2.core.claimable_sandbox.claimed", - com.stripe.events.V2CoreClaimableSandboxClaimedEvent.class); - eventClassLookup.put( - "v2.core.claimable_sandbox.expired", - com.stripe.events.V2CoreClaimableSandboxExpiredEvent.class); - eventClassLookup.put( - "v2.core.claimable_sandbox.expiring", - com.stripe.events.V2CoreClaimableSandboxExpiringEvent.class); - eventClassLookup.put( - "v2.core.claimable_sandbox.sandbox_details_owner_account_updated", - com.stripe.events.V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.class); eventClassLookup.put( "v2.core.event_destination.ping", com.stripe.events.V2CoreEventDestinationPingEvent.class); eventClassLookup.put( @@ -477,16 +464,5 @@ public final class EventDataClassLookup { eventClassLookup.put( "v2.payments.off_session_payment.succeeded", com.stripe.events.V2PaymentsOffSessionPaymentSucceededEvent.class); - eventClassLookup.put( - "v2.reporting.report_run.created", - com.stripe.events.V2ReportingReportRunCreatedEvent.class); - eventClassLookup.put( - "v2.reporting.report_run.failed", com.stripe.events.V2ReportingReportRunFailedEvent.class); - eventClassLookup.put( - "v2.reporting.report_run.succeeded", - com.stripe.events.V2ReportingReportRunSucceededEvent.class); - eventClassLookup.put( - "v2.reporting.report_run.updated", - com.stripe.events.V2ReportingReportRunUpdatedEvent.class); } } diff --git a/src/main/java/com/stripe/model/v2/EventDestination.java b/src/main/java/com/stripe/model/v2/EventDestination.java index 401cf4666c0..6da9435ba81 100644 --- a/src/main/java/com/stripe/model/v2/EventDestination.java +++ b/src/main/java/com/stripe/model/v2/EventDestination.java @@ -11,6 +11,13 @@ import lombok.Getter; import lombok.Setter; +/** + * Set up an event destination to receive events from Stripe across multiple destination types, + * including webhook endpoints and Amazon EventBridge. Event + * destinations support receiving thin events + * and snapshot events. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -104,10 +111,7 @@ public class EventDestination extends StripeObject implements HasId { @SerializedName("webhook_endpoint") WebhookEndpoint webhookEndpoint; - /** - * For more details about AmazonEventbridge, please refer to the API Reference. - */ + /** Amazon EventBridge configuration. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -129,10 +133,7 @@ public static class AmazonEventbridge extends StripeObject { String awsEventSourceStatus; } - /** - * For more details about StatusDetails, please refer to the API Reference. - */ + /** Additional information about event destination status. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -141,10 +142,7 @@ public static class StatusDetails extends StripeObject { @SerializedName("disabled") Disabled disabled; - /** - * For more details about Disabled, please refer to the API Reference. - */ + /** Details about why the event destination has been disabled. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -159,10 +157,7 @@ public static class Disabled extends StripeObject { } } - /** - * For more details about WebhookEndpoint, please refer to the API Reference. - */ + /** Webhook endpoint configuration. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/BillSetting.java b/src/main/java/com/stripe/model/v2/billing/BillSetting.java index 3c456d3453f..822aeafce24 100644 --- a/src/main/java/com/stripe/model/v2/billing/BillSetting.java +++ b/src/main/java/com/stripe/model/v2/billing/BillSetting.java @@ -9,6 +9,11 @@ import lombok.Getter; import lombok.Setter; +/** + * BillSetting is responsible for settings which dictate generating bills, which include settings + * for calculating totals on bills, tax on bill items, as well as how to generate and present + * invoices. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -75,10 +80,7 @@ public class BillSetting extends StripeObject implements HasId { @SerializedName("object") String object; - /** - * For more details about Calculation, please refer to the API Reference. - */ + /** Settings related to calculating a bill. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -87,10 +89,7 @@ public static class Calculation extends StripeObject { @SerializedName("tax") Tax tax; - /** - * For more details about Tax, please refer to the API - * Reference. - */ + /** Settings for calculating tax. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -106,10 +105,7 @@ public static class Tax extends StripeObject { } } - /** - * For more details about Invoice, please refer to the API - * Reference. - */ + /** Settings related to invoice behavior. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -118,10 +114,7 @@ public static class Invoice extends StripeObject { @SerializedName("time_until_due") TimeUntilDue timeUntilDue; - /** - * For more details about TimeUntilDue, please refer to the API Reference. - */ + /** The amount of time until the invoice will be overdue for payment. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -139,7 +132,7 @@ public static class TimeUntilDue extends StripeObject { * invoice will be due in 30 days. */ @SerializedName("interval_count") - Integer intervalCount; + Long intervalCount; } } } diff --git a/src/main/java/com/stripe/model/v2/billing/BillSettingVersion.java b/src/main/java/com/stripe/model/v2/billing/BillSettingVersion.java index 861158b5721..8824e58fa93 100644 --- a/src/main/java/com/stripe/model/v2/billing/BillSettingVersion.java +++ b/src/main/java/com/stripe/model/v2/billing/BillSettingVersion.java @@ -50,10 +50,7 @@ public class BillSettingVersion extends StripeObject implements HasId { @SerializedName("object") String object; - /** - * For more details about Calculation, please refer to the API Reference. - */ + /** Settings related to calculating a bill. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -62,10 +59,7 @@ public static class Calculation extends StripeObject { @SerializedName("tax") Tax tax; - /** - * For more details about Tax, please refer to the API - * Reference. - */ + /** Settings for calculating tax. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -81,10 +75,7 @@ public static class Tax extends StripeObject { } } - /** - * For more details about Invoice, please refer to the API - * Reference. - */ + /** Settings related to invoice behavior. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -93,10 +84,7 @@ public static class Invoice extends StripeObject { @SerializedName("time_until_due") TimeUntilDue timeUntilDue; - /** - * For more details about TimeUntilDue, please refer to the API Reference. - */ + /** The amount of time until the invoice will be overdue for payment. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -114,7 +102,7 @@ public static class TimeUntilDue extends StripeObject { * invoice will be due in 30 days. */ @SerializedName("interval_count") - Integer intervalCount; + Long intervalCount; } } } diff --git a/src/main/java/com/stripe/model/v2/billing/Cadence.java b/src/main/java/com/stripe/model/v2/billing/Cadence.java index d3abee72034..231d03a7383 100644 --- a/src/main/java/com/stripe/model/v2/billing/Cadence.java +++ b/src/main/java/com/stripe/model/v2/billing/Cadence.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; +import java.math.BigDecimal; import java.time.Instant; import java.util.List; import java.util.Map; @@ -80,10 +81,7 @@ public class Cadence extends StripeObject implements HasId { @SerializedName("test_clock") String testClock; - /** - * For more details about BillingCycle, please refer to the API Reference. - */ + /** The billing cycle is the object that defines future billing cycle dates. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -97,7 +95,7 @@ public static class BillingCycle extends StripeObject { * example, type=month and interval_count=3 bills every 3 months. */ @SerializedName("interval_count") - Integer intervalCount; + Long intervalCount; /** Specific configuration for determining billing dates when type=month. */ @SerializedName("month") @@ -119,10 +117,7 @@ public static class BillingCycle extends StripeObject { @SerializedName("year") Year year; - /** - * For more details about Day, please refer to the API - * Reference. - */ + /** Specific configuration for determining billing dates when type=day. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -131,10 +126,7 @@ public static class Day extends StripeObject { @SerializedName("time") Time time; - /** - * For more details about Time, please refer to the API - * Reference. - */ + /** The time at which the billing cycle ends. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -144,28 +136,25 @@ public static class Time extends StripeObject { * inclusive. 0 represents midnight, and 23 represents 11 PM. */ @SerializedName("hour") - Integer hour; + Long hour; /** * The minute at which the billing cycle ends. Must be an integer between 0 and 59, * inclusive. */ @SerializedName("minute") - Integer minute; + Long minute; /** * The second at which the billing cycle ends. Must be an integer between 0 and 59, * inclusive. */ @SerializedName("second") - Integer second; + Long second; } } - /** - * For more details about Month, please refer to the API - * Reference. - */ + /** Specific configuration for determining billing dates when type=month. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -176,23 +165,13 @@ public static class Month extends StripeObject { * to the last day of the month. */ @SerializedName("day_of_month") - Integer dayOfMonth; - - /** - * The month to anchor the billing on for a type="month" billing cycle from 1-12. - * Occurrences are calculated from the month anchor. - */ - @SerializedName("month_of_year") - Integer monthOfYear; + Long dayOfMonth; /** The time at which the billing cycle ends. */ @SerializedName("time") Time time; - /** - * For more details about Time, please refer to the API - * Reference. - */ + /** The time at which the billing cycle ends. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -202,28 +181,25 @@ public static class Time extends StripeObject { * inclusive. 0 represents midnight, and 23 represents 11 PM. */ @SerializedName("hour") - Integer hour; + Long hour; /** * The minute at which the billing cycle ends. Must be an integer between 0 and 59, * inclusive. */ @SerializedName("minute") - Integer minute; + Long minute; /** * The second at which the billing cycle ends. Must be an integer between 0 and 59, * inclusive. */ @SerializedName("second") - Integer second; + Long second; } } - /** - * For more details about Week, please refer to the API - * Reference. - */ + /** Specific configuration for determining billing dates when type=week. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -233,16 +209,13 @@ public static class Week extends StripeObject { * Sunday respectively, based on the ISO-8601 week day numbering. */ @SerializedName("day_of_week") - Integer dayOfWeek; + Long dayOfWeek; /** The time at which the billing cycle ends. */ @SerializedName("time") Time time; - /** - * For more details about Time, please refer to the API - * Reference. - */ + /** The time at which the billing cycle ends. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -252,28 +225,25 @@ public static class Time extends StripeObject { * inclusive. 0 represents midnight, and 23 represents 11 PM. */ @SerializedName("hour") - Integer hour; + Long hour; /** * The minute at which the billing cycle ends. Must be an integer between 0 and 59, * inclusive. */ @SerializedName("minute") - Integer minute; + Long minute; /** * The second at which the billing cycle ends. Must be an integer between 0 and 59, * inclusive. */ @SerializedName("second") - Integer second; + Long second; } } - /** - * For more details about Year, please refer to the API - * Reference. - */ + /** Specific configuration for determining billing dates when type=year. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -284,23 +254,20 @@ public static class Year extends StripeObject { * to the last day of the month. */ @SerializedName("day_of_month") - Integer dayOfMonth; + Long dayOfMonth; /** * The month to bill on from 1-12. If not provided, this will default to the month the cadence * was created. */ @SerializedName("month_of_year") - Integer monthOfYear; + Long monthOfYear; /** The time at which the billing cycle ends. */ @SerializedName("time") Time time; - /** - * For more details about Time, please refer to the API - * Reference. - */ + /** The time at which the billing cycle ends. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -310,21 +277,21 @@ public static class Time extends StripeObject { * inclusive. 0 represents midnight, and 23 represents 11 PM. */ @SerializedName("hour") - Integer hour; + Long hour; /** * The minute at which the billing cycle ends. Must be an integer between 0 and 59, * inclusive. */ @SerializedName("minute") - Integer minute; + Long minute; /** * The second at which the billing cycle ends. Must be an integer between 0 and 59, * inclusive. */ @SerializedName("second") - Integer second; + Long second; } } } @@ -354,10 +321,7 @@ public static class InvoiceDiscountRule extends StripeObject implements HasId { @SerializedName("type") String type; - /** - * For more details about PercentOff, please refer to the API Reference. - */ + /** Details if the discount is a percentage off. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -371,12 +335,9 @@ public static class PercentOff extends StripeObject { * $100 amount $50 instead. */ @SerializedName("percent_off") - String percentOff; + BigDecimal percentOff; - /** - * For more details about MaximumApplications, please refer to the API Reference. - */ + /** The maximum applications configuration for this discount. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -392,10 +353,7 @@ public static class MaximumApplications extends StripeObject { } } - /** - * For more details about Payer, please refer to the API - * Reference. - */ + /** The payer determines the entity financially responsible for the bill. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -418,10 +376,7 @@ public static class Payer extends StripeObject { String type; } - /** - * For more details about Settings, please refer to the API - * Reference. - */ + /** The settings associated with the cadence. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -438,8 +393,8 @@ public static class Settings extends StripeObject { Collection collection; /** - * For more details about Bill, please refer to the API - * Reference. + * Settings that configure bills generation, which includes calculating totals, tax, and + * presenting invoices. */ @Getter @Setter @@ -455,10 +410,7 @@ public static class Bill extends StripeObject implements HasId { String version; } - /** - * For more details about Collection, please refer to the API Reference. - */ + /** Settings that configure and manage the behavior of collecting payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/CollectionSetting.java b/src/main/java/com/stripe/model/v2/billing/CollectionSetting.java index bc8619d562f..5825c0a88b5 100644 --- a/src/main/java/com/stripe/model/v2/billing/CollectionSetting.java +++ b/src/main/java/com/stripe/model/v2/billing/CollectionSetting.java @@ -6,10 +6,12 @@ import com.stripe.model.StripeObject; import java.time.Instant; import java.util.List; +import java.util.Map; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; +/** Settings that configure and manage the behavior of collecting payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -90,10 +92,7 @@ public class CollectionSetting extends StripeObject implements HasId { @SerializedName("payment_method_options") PaymentMethodOptions paymentMethodOptions; - /** - * For more details about EmailDelivery, please refer to the API Reference. - */ + /** Email delivery settings. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -106,8 +105,8 @@ public static class EmailDelivery extends StripeObject { PaymentDue paymentDue; /** - * For more details about PaymentDue, please refer to the API Reference. + * Controls emails for when the payment is due. For example after the invoice is finilized and + * transition to Open state. */ @Getter @Setter @@ -126,10 +125,7 @@ public static class PaymentDue extends StripeObject { } } - /** - * For more details about PaymentMethodOptions, please refer to the API Reference. - */ + /** Payment Method specific configuration stored on the object. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -155,19 +151,19 @@ public static class PaymentMethodOptions extends StripeObject { /** This sub-hash contains details about the Konbini payment method options. */ @SerializedName("konbini") - Konbini konbini; + Map konbini; /** This sub-hash contains details about the SEPA Direct Debit payment method options. */ @SerializedName("sepa_debit") - SepaDebit sepaDebit; + Map sepaDebit; /** This sub-hash contains details about the ACH direct debit payment method options. */ @SerializedName("us_bank_account") UsBankAccount usBankAccount; /** - * For more details about AcssDebit, please refer to the API Reference. + * This sub-hash contains details about the Canadian pre-authorized debit payment method + * options. */ @Getter @Setter @@ -185,10 +181,7 @@ public static class AcssDebit extends StripeObject { @SerializedName("verification_method") String verificationMethod; - /** - * For more details about MandateOptions, please refer to the API Reference. - */ + /** Additional fields for Mandate creation. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -203,10 +196,7 @@ public static class MandateOptions extends StripeObject { } } - /** - * For more details about Bancontact, please refer to the API Reference. - */ + /** This sub-hash contains details about the Bancontact payment method. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -220,10 +210,7 @@ public static class Bancontact extends StripeObject { String preferredLanguage; } - /** - * For more details about Card, please refer to the API - * Reference. - */ + /** This sub-hash contains details about the Card payment method options. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -253,10 +240,7 @@ public static class Card extends StripeObject { @SerializedName("request_three_d_secure") String requestThreeDSecure; - /** - * For more details about MandateOptions, please refer to the API Reference. - */ + /** Configuration options for setting up an eMandate for cards issued in India. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -275,10 +259,7 @@ public static class MandateOptions extends StripeObject { } } - /** - * For more details about CustomerBalance, please refer to the API Reference. - */ + /** This sub-hash contains details about the Bank transfer payment method options. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -300,8 +281,8 @@ public static class CustomerBalance extends StripeObject { String fundingType; /** - * For more details about BankTransfer, please refer to the API Reference. + * Configuration for the bank transfer funding type, if the {@code funding_type} is set to + * {@code bank_transfer}. */ @Getter @Setter @@ -324,8 +305,8 @@ public static class BankTransfer extends StripeObject { String type; /** - * For more details about EuBankTransfer, please refer to the API Reference. + * Configuration for {@code eu_bank_transfer} funding type. Required if {@code type} is + * {@code eu_bank_transfer}. */ @Getter @Setter @@ -342,28 +323,7 @@ public static class EuBankTransfer extends StripeObject { } } - /** - * For more details about Konbini, please refer to the API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Konbini extends StripeObject {} - - /** - * For more details about SepaDebit, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class SepaDebit extends StripeObject {} - - /** - * For more details about UsBankAccount, please refer to the API Reference. - */ + /** This sub-hash contains details about the ACH direct debit payment method options. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -380,10 +340,7 @@ public static class UsBankAccount extends StripeObject { @SerializedName("verification_method") String verificationMethod; - /** - * For more details about FinancialConnections, please refer to the API Reference. - */ + /** Additional fields for Financial Connections Session creation. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -407,8 +364,8 @@ public static class FinancialConnections extends StripeObject { List prefetch; /** - * For more details about Filters, please refer to the API Reference. + * Provide filters for the linked accounts that the customer can select for the payment + * method. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/billing/CollectionSettingVersion.java b/src/main/java/com/stripe/model/v2/billing/CollectionSettingVersion.java index ac10ad08e90..d111fb5721c 100644 --- a/src/main/java/com/stripe/model/v2/billing/CollectionSettingVersion.java +++ b/src/main/java/com/stripe/model/v2/billing/CollectionSettingVersion.java @@ -6,6 +6,7 @@ import com.stripe.model.StripeObject; import java.time.Instant; import java.util.List; +import java.util.Map; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; @@ -65,10 +66,7 @@ public class CollectionSettingVersion extends StripeObject implements HasId { @SerializedName("payment_method_options") PaymentMethodOptions paymentMethodOptions; - /** - * For more details about EmailDelivery, please refer to the API Reference. - */ + /** Email delivery settings. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -81,8 +79,8 @@ public static class EmailDelivery extends StripeObject { PaymentDue paymentDue; /** - * For more details about PaymentDue, please refer to the API Reference. + * Controls emails for when the payment is due. For example after the invoice is finilized and + * transition to Open state. */ @Getter @Setter @@ -101,10 +99,7 @@ public static class PaymentDue extends StripeObject { } } - /** - * For more details about PaymentMethodOptions, please refer to the API Reference. - */ + /** Payment Method specific configuration stored on the object. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -130,19 +125,19 @@ public static class PaymentMethodOptions extends StripeObject { /** This sub-hash contains details about the Konbini payment method options. */ @SerializedName("konbini") - Konbini konbini; + Map konbini; /** This sub-hash contains details about the SEPA Direct Debit payment method options. */ @SerializedName("sepa_debit") - SepaDebit sepaDebit; + Map sepaDebit; /** This sub-hash contains details about the ACH direct debit payment method options. */ @SerializedName("us_bank_account") UsBankAccount usBankAccount; /** - * For more details about AcssDebit, please refer to the API Reference. + * This sub-hash contains details about the Canadian pre-authorized debit payment method + * options. */ @Getter @Setter @@ -160,10 +155,7 @@ public static class AcssDebit extends StripeObject { @SerializedName("verification_method") String verificationMethod; - /** - * For more details about MandateOptions, please refer to the API Reference. - */ + /** Additional fields for Mandate creation. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -178,10 +170,7 @@ public static class MandateOptions extends StripeObject { } } - /** - * For more details about Bancontact, please refer to the API Reference. - */ + /** This sub-hash contains details about the Bancontact payment method. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -195,10 +184,7 @@ public static class Bancontact extends StripeObject { String preferredLanguage; } - /** - * For more details about Card, please refer to the API - * Reference. - */ + /** This sub-hash contains details about the Card payment method options. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -228,10 +214,7 @@ public static class Card extends StripeObject { @SerializedName("request_three_d_secure") String requestThreeDSecure; - /** - * For more details about MandateOptions, please refer to the API Reference. - */ + /** Configuration options for setting up an eMandate for cards issued in India. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -250,10 +233,7 @@ public static class MandateOptions extends StripeObject { } } - /** - * For more details about CustomerBalance, please refer to the API Reference. - */ + /** This sub-hash contains details about the Bank transfer payment method options. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -275,8 +255,8 @@ public static class CustomerBalance extends StripeObject { String fundingType; /** - * For more details about BankTransfer, please refer to the API Reference. + * Configuration for the bank transfer funding type, if the {@code funding_type} is set to + * {@code bank_transfer}. */ @Getter @Setter @@ -299,8 +279,8 @@ public static class BankTransfer extends StripeObject { String type; /** - * For more details about EuBankTransfer, please refer to the API Reference. + * Configuration for {@code eu_bank_transfer} funding type. Required if {@code type} is + * {@code eu_bank_transfer}. */ @Getter @Setter @@ -317,28 +297,7 @@ public static class EuBankTransfer extends StripeObject { } } - /** - * For more details about Konbini, please refer to the API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Konbini extends StripeObject {} - - /** - * For more details about SepaDebit, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class SepaDebit extends StripeObject {} - - /** - * For more details about UsBankAccount, please refer to the API Reference. - */ + /** This sub-hash contains details about the ACH direct debit payment method options. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -355,10 +314,7 @@ public static class UsBankAccount extends StripeObject { @SerializedName("verification_method") String verificationMethod; - /** - * For more details about FinancialConnections, please refer to the API Reference. - */ + /** Additional fields for Financial Connections Session creation. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -382,8 +338,8 @@ public static class FinancialConnections extends StripeObject { List prefetch; /** - * For more details about Filters, please refer to the API Reference. + * Provide filters for the linked accounts that the customer can select for the payment + * method. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/billing/CustomPricingUnit.java b/src/main/java/com/stripe/model/v2/billing/CustomPricingUnit.java index 842bf1d2334..b63ce14820b 100644 --- a/src/main/java/com/stripe/model/v2/billing/CustomPricingUnit.java +++ b/src/main/java/com/stripe/model/v2/billing/CustomPricingUnit.java @@ -10,6 +10,7 @@ import lombok.Getter; import lombok.Setter; +/** The Custom Pricing Unit object. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/Intent.java b/src/main/java/com/stripe/model/v2/billing/Intent.java index af756a099d5..90e5b27caf9 100644 --- a/src/main/java/com/stripe/model/v2/billing/Intent.java +++ b/src/main/java/com/stripe/model/v2/billing/Intent.java @@ -62,10 +62,7 @@ public class Intent extends StripeObject implements HasId { @SerializedName("status_transitions") StatusTransitions statusTransitions; - /** - * For more details about AmountDetails, please refer to the API Reference. - */ + /** Breakdown of the amount for this Billing Intent. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -95,10 +92,7 @@ public static class AmountDetails extends StripeObject { String total; } - /** - * For more details about StatusTransitions, please refer to the API Reference. - */ + /** Timestamps for status transitions of the Billing Intent. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/IntentAction.java b/src/main/java/com/stripe/model/v2/billing/IntentAction.java index 13eb21ae507..688d5f2d83a 100644 --- a/src/main/java/com/stripe/model/v2/billing/IntentAction.java +++ b/src/main/java/com/stripe/model/v2/billing/IntentAction.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; +import java.math.BigDecimal; import java.time.Instant; import java.util.List; import java.util.Map; @@ -69,10 +70,7 @@ public class IntentAction extends StripeObject implements HasId { @SerializedName("type") String type; - /** - * For more details about Apply, please refer to the API - * Reference. - */ + /** Details for an apply action. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -89,10 +87,7 @@ public static class Apply extends StripeObject { @SerializedName("type") String type; - /** - * For more details about InvoiceDiscountRule, please refer to the API Reference. - */ + /** Details for applying a discount rule to future invoices. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -124,10 +119,7 @@ public static class InvoiceDiscountRule extends StripeObject { @SerializedName("type") String type; - /** - * For more details about PercentOff, please refer to the API Reference. - */ + /** Configuration for percentage off discount. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -141,12 +133,9 @@ public static class PercentOff extends StripeObject { * $100 amount $50 instead. */ @SerializedName("percent_off") - String percentOff; + BigDecimal percentOff; - /** - * For more details about MaximumApplications, please refer to the API Reference. - */ + /** The maximum number of times this discount can be applied for this Billing Cadence. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -163,10 +152,7 @@ public static class MaximumApplications extends StripeObject { } } - /** - * For more details about Deactivate, please refer to the API Reference. - */ + /** Details for a deactivate action. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -194,10 +180,7 @@ public static class Deactivate extends StripeObject { @SerializedName("type") String type; - /** - * For more details about BillingDetails, please refer to the API Reference. - */ + /** Configuration for the billing details. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -212,8 +195,8 @@ public static class BillingDetails extends StripeObject { } /** - * For more details about EffectiveAt, please refer to the API Reference. + * When the deactivate action will take effect. If not specified, the default behavior is + * on_reserve. */ @Getter @Setter @@ -229,17 +212,13 @@ public static class EffectiveAt extends StripeObject { /** * When the deactivate action will take effect. * - *

One of {@code current_billing_period_end}, {@code current_billing_period_start}, {@code - * on_reserve}, or {@code timestamp}. + *

One of {@code current_billing_period_start}, {@code on_reserve}, or {@code timestamp}. */ @SerializedName("type") String type; } - /** - * For more details about PricingPlanSubscriptionDetails, please refer to the API Reference. - */ + /** Details for deactivating a Pricing Plan Subscription. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -250,10 +229,7 @@ public static class PricingPlanSubscriptionDetails extends StripeObject { } } - /** - * For more details about Modify, please refer to the API - * Reference. - */ + /** Details for a modify action. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -281,10 +257,7 @@ public static class Modify extends StripeObject { @SerializedName("type") String type; - /** - * For more details about BillingDetails, please refer to the API Reference. - */ + /** Configuration for the billing details. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -299,8 +272,8 @@ public static class BillingDetails extends StripeObject { } /** - * For more details about EffectiveAt, please refer to the API Reference. + * When the modify action will take effect. If not specified, the default behavior is + * on_reserve. */ @Getter @Setter @@ -322,10 +295,7 @@ public static class EffectiveAt extends StripeObject { String type; } - /** - * For more details about PricingPlanSubscriptionDetails, please refer to the API Reference. - */ + /** Details for modifying a Pricing Plan Subscription. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -365,15 +335,12 @@ public static class ComponentConfiguration extends StripeObject { /** Quantity of the component to be used. */ @SerializedName("quantity") - Integer quantity; + Long quantity; } } } - /** - * For more details about Remove, please refer to the API - * Reference. - */ + /** Details for a remove action. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -391,10 +358,7 @@ public static class Remove extends StripeObject { String type; } - /** - * For more details about Subscribe, please refer to the API - * Reference. - */ + /** Details for a subscribe action. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -430,8 +394,8 @@ public static class Subscribe extends StripeObject { V1SubscriptionDetails v1SubscriptionDetails; /** - * For more details about BillingDetails, please refer to the API Reference. + * Configuration for the billing details. If not specified, see the default behavior for + * individual attributes. */ @Getter @Setter @@ -447,8 +411,8 @@ public static class BillingDetails extends StripeObject { } /** - * For more details about EffectiveAt, please refer to the API Reference. + * When the subscribe action will take effect. If not specified, the default behavior is + * on_reserve. */ @Getter @Setter @@ -470,10 +434,7 @@ public static class EffectiveAt extends StripeObject { String type; } - /** - * For more details about PricingPlanSubscriptionDetails, please refer to the API Reference. - */ + /** Details for subscribing to a Pricing Plan. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -524,14 +485,11 @@ public static class ComponentConfiguration extends StripeObject { /** Quantity of the component to be used. */ @SerializedName("quantity") - Integer quantity; + Long quantity; } } - /** - * For more details about V1SubscriptionDetails, please refer to the API Reference. - */ + /** Details for subscribing to a V1 subscription. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -576,7 +534,7 @@ public static class Item extends StripeObject { /** Quantity for this item. If not provided, will default to 1. */ @SerializedName("quantity") - Integer quantity; + Long quantity; } } } diff --git a/src/main/java/com/stripe/model/v2/billing/LicenseFee.java b/src/main/java/com/stripe/model/v2/billing/LicenseFee.java index f5da4f57bde..f32a61e6d09 100644 --- a/src/main/java/com/stripe/model/v2/billing/LicenseFee.java +++ b/src/main/java/com/stripe/model/v2/billing/LicenseFee.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; +import java.math.BigDecimal; import java.time.Instant; import java.util.List; import java.util.Map; @@ -47,7 +48,10 @@ public class LicenseFee extends StripeObject implements HasId { @SerializedName("latest_version") String latestVersion; - /** The Licensed Item that this License Fee binds to. */ + /** + * A Licensed Item represents a billable item whose pricing is based on license fees. You can use + * license fees to specify the pricing and create subscriptions to these items. + */ @SerializedName("licensed_item") LicensedItem licensedItem; @@ -102,7 +106,7 @@ public class LicenseFee extends StripeObject implements HasId { * service_interval} to {@code "month"} in order to specify quarterly service. */ @SerializedName("service_interval_count") - Integer serviceIntervalCount; + Long serviceIntervalCount; /** * The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax. @@ -167,7 +171,7 @@ public static class Tier extends StripeObject { * up_to_decimal} and {@code up_to_inf} may be set. */ @SerializedName("up_to_decimal") - String upToDecimal; + BigDecimal upToDecimal; /** * No upper bound to this tier. Only one of {@code up_to_decimal} and {@code up_to_inf} may be @@ -178,8 +182,8 @@ public static class Tier extends StripeObject { } /** - * For more details about TransformQuantity, please refer to the API Reference. + * Apply a transformation to the reported usage or set quantity before computing the amount + * billed. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/billing/LicenseFeeSubscription.java b/src/main/java/com/stripe/model/v2/billing/LicenseFeeSubscription.java index a92593ada9b..47096f3253f 100644 --- a/src/main/java/com/stripe/model/v2/billing/LicenseFeeSubscription.java +++ b/src/main/java/com/stripe/model/v2/billing/LicenseFeeSubscription.java @@ -60,7 +60,7 @@ public class LicenseFeeSubscription extends StripeObject implements HasId { /** Quantity of the License Fee subscribed to. */ @SerializedName("quantity") - Integer quantity; + Long quantity; /** The ID of the Test Clock, if any. */ @SerializedName("test_clock") diff --git a/src/main/java/com/stripe/model/v2/billing/LicenseFeeVersion.java b/src/main/java/com/stripe/model/v2/billing/LicenseFeeVersion.java index 6fa0c4df38c..e5b0e4937c1 100644 --- a/src/main/java/com/stripe/model/v2/billing/LicenseFeeVersion.java +++ b/src/main/java/com/stripe/model/v2/billing/LicenseFeeVersion.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; +import java.math.BigDecimal; import java.time.Instant; import java.util.List; import lombok.EqualsAndHashCode; @@ -98,7 +99,7 @@ public static class Tier extends StripeObject { * up_to_decimal} and {@code up_to_inf} may be set. */ @SerializedName("up_to_decimal") - String upToDecimal; + BigDecimal upToDecimal; /** * No upper bound to this tier. Only one of {@code up_to_decimal} and {@code up_to_inf} may be @@ -109,8 +110,8 @@ public static class Tier extends StripeObject { } /** - * For more details about TransformQuantity, please refer to the API Reference. + * Apply a transformation to the reported usage or set quantity before computing the amount + * billed. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/billing/LicensedItem.java b/src/main/java/com/stripe/model/v2/billing/LicensedItem.java index ae08030282d..b5741caf7ba 100644 --- a/src/main/java/com/stripe/model/v2/billing/LicensedItem.java +++ b/src/main/java/com/stripe/model/v2/billing/LicensedItem.java @@ -10,6 +10,10 @@ import lombok.Getter; import lombok.Setter; +/** + * A Licensed Item represents a billable item whose pricing is based on license fees. You can use + * license fees to specify the pricing and create subscriptions to these items. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -73,10 +77,7 @@ public class LicensedItem extends StripeObject implements HasId { @SerializedName("unit_label") String unitLabel; - /** - * For more details about TaxDetails, please refer to the API Reference. - */ + /** Stripe Tax details. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEvent.java b/src/main/java/com/stripe/model/v2/billing/MeterEvent.java index 854478014d2..698c1693576 100644 --- a/src/main/java/com/stripe/model/v2/billing/MeterEvent.java +++ b/src/main/java/com/stripe/model/v2/billing/MeterEvent.java @@ -9,6 +9,7 @@ import lombok.Getter; import lombok.Setter; +/** Fix me empty_doc_string. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java b/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java index 6fbad825d02..a81435ddf07 100644 --- a/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java +++ b/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java @@ -63,10 +63,7 @@ public class MeterEventAdjustment extends StripeObject implements HasId { @SerializedName("type") String type; - /** - * For more details about Cancel, please refer to the API - * Reference. - */ + /** Specifies which event to cancel. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/MeteredItem.java b/src/main/java/com/stripe/model/v2/billing/MeteredItem.java index 2757a14ec33..404e2800147 100644 --- a/src/main/java/com/stripe/model/v2/billing/MeteredItem.java +++ b/src/main/java/com/stripe/model/v2/billing/MeteredItem.java @@ -11,6 +11,10 @@ import lombok.Getter; import lombok.Setter; +/** + * A Metered Item represents a billable item whose pricing is based on usage, measured by a meter. + * You can use rate cards to specify the pricing and create subscriptions to these items. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -103,10 +107,7 @@ public static class MeterSegmentCondition extends StripeObject { String value; } - /** - * For more details about TaxDetails, please refer to the API Reference. - */ + /** Stripe Tax details. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/PricingPlanComponent.java b/src/main/java/com/stripe/model/v2/billing/PricingPlanComponent.java index 3bfb044d79b..afb0716a70a 100644 --- a/src/main/java/com/stripe/model/v2/billing/PricingPlanComponent.java +++ b/src/main/java/com/stripe/model/v2/billing/PricingPlanComponent.java @@ -79,10 +79,7 @@ public class PricingPlanComponent extends StripeObject implements HasId { @SerializedName("type") String type; - /** - * For more details about LicenseFee, please refer to the API Reference. - */ + /** Details if this component is a License Fee. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -97,10 +94,7 @@ public static class LicenseFee extends StripeObject implements HasId { String version; } - /** - * For more details about RateCard, please refer to the API - * Reference. - */ + /** Details if this component is a Rate Card. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -115,10 +109,7 @@ public static class RateCard extends StripeObject implements HasId { String version; } - /** - * For more details about ServiceAction, please refer to the API Reference. - */ + /** Details if this component is a Service Action. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/PricingPlanSubscription.java b/src/main/java/com/stripe/model/v2/billing/PricingPlanSubscription.java index cec9a68e7ca..2ee9603ef24 100644 --- a/src/main/java/com/stripe/model/v2/billing/PricingPlanSubscription.java +++ b/src/main/java/com/stripe/model/v2/billing/PricingPlanSubscription.java @@ -88,10 +88,7 @@ public class PricingPlanSubscription extends StripeObject implements HasId { @SerializedName("test_clock") String testClock; - /** - * For more details about CollectionStatusTransitions, please refer to the API Reference. - */ + /** Timestamps for collection status transitions. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -117,10 +114,7 @@ public static class CollectionStatusTransitions extends StripeObject { String unpaidAt; } - /** - * For more details about ServicingStatusTransitions, please refer to the API Reference. - */ + /** Timestamps for servicing status transitions. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -136,13 +130,5 @@ public static class ServicingStatusTransitions extends StripeObject { /** When the servicing status transitioned to paused. */ @SerializedName("paused_at") String pausedAt; - - /** When the servicing is scheduled to transition to activate. */ - @SerializedName("will_activate_at") - String willActivateAt; - - /** When the servicing is scheduled to cancel. */ - @SerializedName("will_cancel_at") - String willCancelAt; } } diff --git a/src/main/java/com/stripe/model/v2/billing/RateCard.java b/src/main/java/com/stripe/model/v2/billing/RateCard.java index 6c28631a2a3..6ef77aedbaa 100644 --- a/src/main/java/com/stripe/model/v2/billing/RateCard.java +++ b/src/main/java/com/stripe/model/v2/billing/RateCard.java @@ -10,6 +10,11 @@ import lombok.Getter; import lombok.Setter; +/** + * A Rate Card represents a versioned set of usage-based prices (rates). Each rate is associated + * with one Metered Item and defines how much to charge for usage of that item. After you've set up + * a RateCard, you can subscribe customers to it by creating a Rate Card Subscription. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -101,7 +106,7 @@ public class RateCard extends StripeObject implements HasId { * service_interval} to {@code "month"} in order to specify quarterly service. */ @SerializedName("service_interval_count") - Integer serviceIntervalCount; + Long serviceIntervalCount; /** * The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax. diff --git a/src/main/java/com/stripe/model/v2/billing/RateCardRate.java b/src/main/java/com/stripe/model/v2/billing/RateCardRate.java index 80ec678ddbc..6389ff7b7ff 100644 --- a/src/main/java/com/stripe/model/v2/billing/RateCardRate.java +++ b/src/main/java/com/stripe/model/v2/billing/RateCardRate.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; +import java.math.BigDecimal; import java.time.Instant; import java.util.List; import java.util.Map; @@ -43,7 +44,10 @@ public class RateCardRate extends StripeObject implements HasId { @SerializedName("metadata") Map metadata; - /** The Metered Item that this rate binds to. */ + /** + * A Metered Item represents a billable item whose pricing is based on usage, measured by a meter. + * You can use rate cards to specify the pricing and create subscriptions to these items. + */ @SerializedName("metered_item") MeteredItem meteredItem; @@ -92,10 +96,7 @@ public class RateCardRate extends StripeObject implements HasId { @SerializedName("unit_amount") String unitAmount; - /** - * For more details about CustomPricingUnitAmount, please refer to the API Reference. - */ + /** The custom pricing unit that this rate binds to. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -137,7 +138,7 @@ public static class Tier extends StripeObject { * up_to_decimal} and {@code up_to_inf} may be set. */ @SerializedName("up_to_decimal") - String upToDecimal; + BigDecimal upToDecimal; /** * No upper bound to this tier. Only one of {@code up_to_decimal} and {@code up_to_inf} may be @@ -148,8 +149,8 @@ public static class Tier extends StripeObject { } /** - * For more details about TransformQuantity, please refer to the API Reference. + * Apply a transformation to the reported usage or set quantity before computing the amount + * billed. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/billing/RateCardSubscription.java b/src/main/java/com/stripe/model/v2/billing/RateCardSubscription.java index 726e33f9628..da41969eee1 100644 --- a/src/main/java/com/stripe/model/v2/billing/RateCardSubscription.java +++ b/src/main/java/com/stripe/model/v2/billing/RateCardSubscription.java @@ -88,10 +88,7 @@ public class RateCardSubscription extends StripeObject implements HasId { @SerializedName("test_clock") String testClock; - /** - * For more details about CollectionStatusTransitions, please refer to the API Reference. - */ + /** The collection status transitions of the Rate Card Subscription. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -117,10 +114,7 @@ public static class CollectionStatusTransitions extends StripeObject { String unpaidAt; } - /** - * For more details about ServicingStatusTransitions, please refer to the API Reference. - */ + /** The servicing status transitions of the Rate Card Subscription. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -136,13 +130,5 @@ public static class ServicingStatusTransitions extends StripeObject { /** When the servicing status transitioned to paused. */ @SerializedName("paused_at") String pausedAt; - - /** When the servicing is scheduled to transition to activate. */ - @SerializedName("will_activate_at") - String willActivateAt; - - /** When the servicing is scheduled to cancel. */ - @SerializedName("will_cancel_at") - String willCancelAt; } } diff --git a/src/main/java/com/stripe/model/v2/billing/ServiceAction.java b/src/main/java/com/stripe/model/v2/billing/ServiceAction.java index a4d05b1dc55..1ecef347623 100644 --- a/src/main/java/com/stripe/model/v2/billing/ServiceAction.java +++ b/src/main/java/com/stripe/model/v2/billing/ServiceAction.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; +import java.math.BigDecimal; import java.time.Instant; import java.util.List; import lombok.EqualsAndHashCode; @@ -64,7 +65,7 @@ public class ServiceAction extends StripeObject implements HasId { /** The length of the interval for assessing service. */ @SerializedName("service_interval_count") - Integer serviceIntervalCount; + Long serviceIntervalCount; /** * The type of the service action. @@ -74,10 +75,7 @@ public class ServiceAction extends StripeObject implements HasId { @SerializedName("type") String type; - /** - * For more details about CreditGrant, please refer to the API Reference. - */ + /** Details for the credit grant. Provided only if {@code type} is "credit_grant". */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -90,14 +88,6 @@ public static class CreditGrant extends StripeObject { @SerializedName("applicability_config") ApplicabilityConfig applicabilityConfig; - /** - * The category of the credit grant. - * - *

One of {@code paid}, or {@code promotional}. - */ - @SerializedName("category") - String category; - /** The expiry configuration for the credit grant. */ @SerializedName("expiry_config") ExpiryConfig expiryConfig; @@ -106,17 +96,7 @@ public static class CreditGrant extends StripeObject { @SerializedName("name") String name; - /** - * The desired priority for applying this credit grant. If not specified, it will be set to the - * default value of 50. The highest priority is 0 and the lowest is 100. - */ - @SerializedName("priority") - Integer priority; - - /** - * For more details about Amount, please refer to the API - * Reference. - */ + /** The amount of the credit grant. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -142,8 +122,8 @@ public static class Amount extends StripeObject { String type; /** - * For more details about CustomPricingUnit, please refer to the API Reference. + * The custom pricing unit amount of the credit grant. Required if {@code type} is {@code + * custom_pricing_unit}. */ @Getter @Setter @@ -156,14 +136,11 @@ public static class CustomPricingUnit extends StripeObject implements HasId { /** The value of the credit grant, decimal value represented as a string. */ @SerializedName("value") - String value; + BigDecimal value; } } - /** - * For more details about ApplicabilityConfig, please refer to the API Reference. - */ + /** Defines the scope where the credit grant is applicable. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -172,10 +149,7 @@ public static class ApplicabilityConfig extends StripeObject { @SerializedName("scope") Scope scope; - /** - * For more details about Scope, please refer to the API - * Reference. - */ + /** The applicability scope of the credit grant. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -196,10 +170,7 @@ public static class Scope extends StripeObject { } } - /** - * For more details about ExpiryConfig, please refer to the API Reference. - */ + /** The expiry configuration for the credit grant. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -215,8 +186,8 @@ public static class ExpiryConfig extends StripeObject { } /** - * For more details about CreditGrantPerTenant, please refer to the API Reference. + * Details for the credit grant per tenant. Provided only if {@code type} is + * "credit_grant_per_tenant". */ @Getter @Setter @@ -230,14 +201,6 @@ public static class CreditGrantPerTenant extends StripeObject { @SerializedName("applicability_config") ApplicabilityConfig applicabilityConfig; - /** - * The category of the credit grant. - * - *

One of {@code paid}, or {@code promotional}. - */ - @SerializedName("category") - String category; - /** The expiry configuration for the credit grant. */ @SerializedName("expiry_config") ExpiryConfig expiryConfig; @@ -246,17 +209,7 @@ public static class CreditGrantPerTenant extends StripeObject { @SerializedName("name") String name; - /** - * The desired priority for applying this credit grant. If not specified, it will be set to the - * default value of 50. The highest priority is 0 and the lowest is 100. - */ - @SerializedName("priority") - Integer priority; - - /** - * For more details about Amount, please refer to the API - * Reference. - */ + /** The amount of the credit grant. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -282,8 +235,8 @@ public static class Amount extends StripeObject { String type; /** - * For more details about CustomPricingUnit, please refer to the API Reference. + * The custom pricing unit amount of the credit grant. Required if {@code type} is {@code + * custom_pricing_unit}. */ @Getter @Setter @@ -296,14 +249,11 @@ public static class CustomPricingUnit extends StripeObject implements HasId { /** The value of the credit grant, decimal value represented as a string. */ @SerializedName("value") - String value; + BigDecimal value; } } - /** - * For more details about ApplicabilityConfig, please refer to the API Reference. - */ + /** Defines the scope where the credit grant is applicable. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -312,10 +262,7 @@ public static class ApplicabilityConfig extends StripeObject { @SerializedName("scope") Scope scope; - /** - * For more details about Scope, please refer to the API - * Reference. - */ + /** The applicability scope of the credit grant. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -336,10 +283,7 @@ public static class Scope extends StripeObject { } } - /** - * For more details about ExpiryConfig, please refer to the API Reference. - */ + /** The expiry configuration for the credit grant. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/core/Account.java b/src/main/java/com/stripe/model/v2/core/Account.java index 7e4f05aaea4..073e0293c5d 100644 --- a/src/main/java/com/stripe/model/v2/core/Account.java +++ b/src/main/java/com/stripe/model/v2/core/Account.java @@ -5,6 +5,7 @@ import com.stripe.model.HasId; import com.stripe.model.StripeObject; import com.stripe.v2.Amount; +import java.math.BigDecimal; import java.time.Instant; import java.util.List; import java.util.Map; @@ -12,6 +13,11 @@ import lombok.Getter; import lombok.Setter; +/** + * A V2 Account is a representation of a company or individual that a Stripe user does business + * with. Accounts contain the contact details, Legal Entity information, and configuration required + * to enable the Account for use across Stripe products. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -104,8 +110,8 @@ public class Account extends StripeObject implements HasId { Requirements requirements; /** - * For more details about Configuration, please refer to the API Reference. + * An Account Configuration which allows the Account to take on a key persona across Stripe + * products. */ @Getter @Setter @@ -134,10 +140,7 @@ public static class Configuration extends StripeObject { @SerializedName("storer") Storer storer; - /** - * For more details about Customer, please refer to the API Reference. - */ + /** The Customer Configuration allows the Account to be used in inbound payment flows. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -180,8 +183,9 @@ public static class Customer extends StripeObject { String testClock; /** - * For more details about AutomaticIndirectTax, please refer to the API Reference. + * Automatic indirect tax settings to be used when automatic tax calculation is enabled on the + * customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if + * automatic tax calculation is possible given the current customer location information. */ @Getter @Setter @@ -221,53 +225,14 @@ public static class AutomaticIndirectTax extends StripeObject { String locationSource; /** - * For more details about Location, please refer to the API Reference. + * The customer’s identified tax location - uses {@code location_source}. Will only be + * rendered if the {@code automatic_indirect_tax} feature is requested and {@code active}. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Location extends StripeObject { - /** - * The identified tax country of the customer. - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, - * {@code am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, - * {@code aw}, {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, - * {@code bf}, {@code bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, - * {@code bn}, {@code bo}, {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, - * {@code bw}, {@code by}, {@code bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, - * {@code cg}, {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, {@code cn}, - * {@code co}, {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, - * {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, - * {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, - * {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, - * {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, {@code gi}, - * {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code gs}, - * {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, - * {@code in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, - * {@code jm}, {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, - * {@code km}, {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, - * {@code la}, {@code lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, - * {@code lt}, {@code lu}, {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, - * {@code me}, {@code mf}, {@code mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, - * {@code mn}, {@code mo}, {@code mp}, {@code mq}, {@code mr}, {@code ms}, {@code mt}, - * {@code mu}, {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, {@code na}, - * {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, - * {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, - * {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, - * {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, - * {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code sb}, - * {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, - * {@code st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, - * {@code tf}, {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, - * {@code tn}, {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, - * {@code ua}, {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, - * {@code vc}, {@code ve}, {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, - * {@code ws}, {@code xx}, {@code ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. - */ + /** The identified tax country of the customer. */ @SerializedName("country") String country; @@ -278,8 +243,8 @@ public static class Location extends StripeObject { } /** - * For more details about Billing, please refer to the API Reference. + * Billing settings - default settings used for this customer in Billing flows such as + * Invoices and Subscriptions. */ @Getter @Setter @@ -296,10 +261,7 @@ public static class Billing extends StripeObject { @SerializedName("invoice") Invoice invoice; - /** - * For more details about Invoice, please refer to the API Reference. - */ + /** Default settings used on invoices for this customer. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -317,7 +279,7 @@ public static class Invoice extends StripeObject { /** The sequence to be used on the customer's next invoice. Defaults to 1. */ @SerializedName("next_sequence") - Integer nextSequence; + Long nextSequence; /** * The prefix for the customer used to generate unique invoice numbers. Must be 3–12 @@ -350,10 +312,7 @@ public static class CustomField extends StripeObject { String value; } - /** - * For more details about Rendering, please refer to the API Reference. - */ + /** Default options for invoice PDF rendering for this customer. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -374,10 +333,7 @@ public static class Rendering extends StripeObject { } } - /** - * For more details about Capabilities, please refer to the API Reference. - */ + /** Capabilities that have been requested on the Customer Configuration. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -392,8 +348,10 @@ public static class Capabilities extends StripeObject { AutomaticIndirectTax automaticIndirectTax; /** - * For more details about AutomaticIndirectTax, please refer to the API Reference. + * Generates requirements for enabling automatic indirect tax calculation on this customer's + * invoices or subscriptions. Recommended to request this capability if planning to enable + * automatic tax calculation on this customer's invoices or subscriptions. Uses the {@code + * location_source} field. */ @Getter @Setter @@ -450,10 +408,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about Shipping, please refer to the API Reference. - */ + /** The customer's shipping information. Appears on invoices emailed to this customer. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -470,10 +425,7 @@ public static class Shipping extends StripeObject { @SerializedName("phone") String phone; - /** - * For more details about Address, please refer to the API Reference. - */ + /** Customer shipping address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -485,43 +437,6 @@ public static class Address extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, - * {@code am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, - * {@code aw}, {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, - * {@code bf}, {@code bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, - * {@code bn}, {@code bo}, {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, - * {@code bw}, {@code by}, {@code bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, - * {@code cg}, {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, {@code cn}, - * {@code co}, {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, - * {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, - * {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, - * {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, - * {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, {@code gi}, - * {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code gs}, - * {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, - * {@code in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, - * {@code jm}, {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, - * {@code km}, {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, - * {@code la}, {@code lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, - * {@code lt}, {@code lu}, {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, - * {@code me}, {@code mf}, {@code mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, - * {@code mn}, {@code mo}, {@code mp}, {@code mq}, {@code mr}, {@code ms}, {@code mt}, - * {@code mu}, {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, {@code na}, - * {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, - * {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, - * {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, - * {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, - * {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code sb}, - * {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, - * {@code st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, - * {@code tf}, {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, - * {@code tn}, {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, - * {@code ua}, {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, - * {@code vc}, {@code ve}, {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, - * {@code ws}, {@code xx}, {@code ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -546,8 +461,9 @@ public static class Address extends StripeObject { } /** - * For more details about Merchant, please refer to the API Reference. + * The Merchant configuration allows the Account to act as a connected account and collect + * payments facilitated by a Connect platform. You can add this configuration to your connected + * accounts only if you’ve completed onboarding as a Connect platform. */ @Getter @Setter @@ -598,10 +514,7 @@ public static class Merchant extends StripeObject { @SerializedName("support") Support support; - /** - * For more details about BacsDebitPayments, please refer to the API Reference. - */ + /** Settings used for Bacs debit payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -616,8 +529,8 @@ public static class BacsDebitPayments extends StripeObject { } /** - * For more details about Branding, please refer to the API Reference. + * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and + * other products. */ @Getter @Setter @@ -647,10 +560,7 @@ public static class Branding extends StripeObject { String secondaryColor; } - /** - * For more details about Capabilities, please refer to the API Reference. - */ + /** Capabilities that have been requested on the Merchant Configuration. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -835,10 +745,7 @@ public static class Capabilities extends StripeObject { @SerializedName("zip_payments") ZipPayments zipPayments; - /** - * For more details about AchDebitPayments, please refer to the API Reference. - */ + /** Allow the merchant to process ACH debit payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -893,10 +800,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about AcssDebitPayments, please refer to the API Reference. - */ + /** Allow the merchant to process ACSS debit payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -951,10 +855,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about AffirmPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Affirm payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1009,10 +910,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about AfterpayClearpayPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Afterpay/Clearpay payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1067,10 +965,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about AlmaPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Alma payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1124,10 +1019,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about AmazonPayPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Amazon Pay payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1182,10 +1074,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about AuBecsDebitPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Australian BECS Direct Debit payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1240,10 +1129,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about BacsDebitPayments, please refer to the API Reference. - */ + /** Allow the merchant to process BACS Direct Debit payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1298,10 +1184,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about BancontactPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Bancontact payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1356,10 +1239,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about BlikPayments, please refer to the API Reference. - */ + /** Allow the merchant to process BLIK payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1413,10 +1293,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about BoletoPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Boleto payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1471,10 +1348,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about CardPayments, please refer to the API Reference. - */ + /** Allow the merchant to collect card payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1528,10 +1402,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about CartesBancairesPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Cartes Bancaires payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1586,10 +1457,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about CashappPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Cash App payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1644,10 +1512,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about EpsPayments, please refer to the API Reference. - */ + /** Allow the merchant to process EPS payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1701,10 +1566,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about FpxPayments, please refer to the API Reference. - */ + /** Allow the merchant to process FPX payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1758,10 +1620,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about GbBankTransferPayments, please refer to the API Reference. - */ + /** Allow the merchant to process UK bank transfer payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1816,10 +1675,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about GrabpayPayments, please refer to the API Reference. - */ + /** Allow the merchant to process GrabPay payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1874,10 +1730,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about IdealPayments, please refer to the API Reference. - */ + /** Allow the merchant to process iDEAL payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1932,10 +1785,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about JcbPayments, please refer to the API Reference. - */ + /** Allow the merchant to process JCB card payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1989,10 +1839,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about JpBankTransferPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Japanese bank transfer payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2047,10 +1894,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about KakaoPayPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Kakao Pay payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2105,10 +1949,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about KlarnaPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Klarna payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2163,10 +2004,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about KonbiniPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Konbini convenience store payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2221,10 +2059,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about KrCardPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Korean card payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2279,10 +2114,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about LinkPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Link payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2336,10 +2168,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about MobilepayPayments, please refer to the API Reference. - */ + /** Allow the merchant to process MobilePay payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2394,10 +2223,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about MultibancoPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Multibanco payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2452,10 +2278,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about MxBankTransferPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Mexican bank transfer payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2510,10 +2333,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about NaverPayPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Naver Pay payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2568,10 +2388,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about OxxoPayments, please refer to the API Reference. - */ + /** Allow the merchant to process OXXO payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2625,10 +2442,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about P24Payments, please refer to the API Reference. - */ + /** Allow the merchant to process Przelewy24 (P24) payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2682,10 +2496,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about PayByBankPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Pay by Bank payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2740,10 +2551,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about PaycoPayments, please refer to the API Reference. - */ + /** Allow the merchant to process PAYCO payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2798,10 +2606,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about PaynowPayments, please refer to the API Reference. - */ + /** Allow the merchant to process PayNow payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2856,10 +2661,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about PromptpayPayments, please refer to the API Reference. - */ + /** Allow the merchant to process PromptPay payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2914,10 +2716,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about RevolutPayPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Revolut Pay payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2972,10 +2771,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about SamsungPayPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Samsung Pay payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3030,10 +2826,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about SepaBankTransferPayments, please refer to the API Reference. - */ + /** Allow the merchant to process SEPA bank transfer payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3088,10 +2881,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about SepaDebitPayments, please refer to the API Reference. - */ + /** Allow the merchant to process SEPA Direct Debit payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3146,10 +2936,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about StripeBalance, please refer to the API Reference. - */ + /** Capabilities that enable the merchant to manage their Stripe Balance (/v1/balance). */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3158,10 +2945,7 @@ public static class StripeBalance extends StripeObject { @SerializedName("payouts") Payouts payouts; - /** - * For more details about Payouts, please refer to the API Reference. - */ + /** Allows the account to do payouts using their Stripe Balance (/v1/balance). */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3218,10 +3002,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about SwishPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Swish payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3276,10 +3057,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about TwintPayments, please refer to the API Reference. - */ + /** Allow the merchant to process TWINT payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3334,10 +3112,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about UsBankTransferPayments, please refer to the API Reference. - */ + /** Allow the merchant to process US bank transfer payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3392,10 +3167,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about ZipPayments, please refer to the API Reference. - */ + /** Allow the merchant to process Zip payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3450,10 +3222,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about CardPayments, please refer to the API Reference. - */ + /** Card payments settings. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3466,8 +3235,8 @@ public static class CardPayments extends StripeObject { DeclineOn declineOn; /** - * For more details about DeclineOn, please refer to the API Reference. + * Automatically declines certain charge types regardless of whether the card issuer + * accepted or declined the charge. */ @Getter @Setter @@ -3490,10 +3259,7 @@ public static class DeclineOn extends StripeObject { } } - /** - * For more details about SepaDebitPayments, please refer to the API Reference. - */ + /** Settings used for SEPA debit payments. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3503,10 +3269,7 @@ public static class SepaDebitPayments extends StripeObject { String creditorId; } - /** - * For more details about StatementDescriptor, please refer to the API Reference. - */ + /** Statement descriptor. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3535,10 +3298,7 @@ public static class StatementDescriptor extends StripeObject { String prefix; } - /** - * For more details about Support, please refer to the API Reference. - */ + /** Publicly available contact information for sending support issues to. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3559,10 +3319,7 @@ public static class Support extends StripeObject { @SerializedName("url") String url; - /** - * For more details about Address, please refer to the API Reference. - */ + /** A publicly available mailing address for sending support issues to. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3574,43 +3331,6 @@ public static class Address extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, - * {@code am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, - * {@code aw}, {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, - * {@code bf}, {@code bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, - * {@code bn}, {@code bo}, {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, - * {@code bw}, {@code by}, {@code bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, - * {@code cg}, {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, {@code cn}, - * {@code co}, {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, - * {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, - * {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, - * {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, - * {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, {@code gi}, - * {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code gs}, - * {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, - * {@code in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, - * {@code jm}, {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, - * {@code km}, {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, - * {@code la}, {@code lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, - * {@code lt}, {@code lu}, {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, - * {@code me}, {@code mf}, {@code mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, - * {@code mn}, {@code mo}, {@code mp}, {@code mq}, {@code mr}, {@code ms}, {@code mt}, - * {@code mu}, {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, {@code na}, - * {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, - * {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, - * {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, - * {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, - * {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code sb}, - * {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, - * {@code st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, - * {@code tf}, {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, - * {@code tn}, {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, - * {@code ua}, {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, - * {@code vc}, {@code ve}, {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, - * {@code ws}, {@code xx}, {@code ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -3638,10 +3358,7 @@ public static class Address extends StripeObject { } } - /** - * For more details about Recipient, please refer to the API Reference. - */ + /** The Recipient Configuration allows the Account to receive funds. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3664,10 +3381,7 @@ public static class Recipient extends StripeObject { @SerializedName("default_outbound_destination") DefaultOutboundDestination defaultOutboundDestination; - /** - * For more details about Capabilities, please refer to the API Reference. - */ + /** Capabilities that have been requested on the Recipient Configuration. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3684,10 +3398,7 @@ public static class Capabilities extends StripeObject { @SerializedName("stripe_balance") StripeBalance stripeBalance; - /** - * For more details about BankAccounts, please refer to the API Reference. - */ + /** Capabilities that enable OutboundPayments to a bank account linked to this Account. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3704,8 +3415,8 @@ public static class BankAccounts extends StripeObject { Wire wire; /** - * For more details about Local, please refer to the API Reference. + * Enables this Account to receive OutboundPayments to linked bank accounts over local + * networks. */ @Getter @Setter @@ -3762,10 +3473,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about Wire, please refer to the API Reference. - */ + /** Enables this Account to receive OutboundPayments to linked bank accounts over wire. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3822,10 +3530,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about Cards, please refer to the API Reference. - */ + /** Capability that enable OutboundPayments to a debit card linked to this Account. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3879,10 +3584,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about StripeBalance, please refer to the API Reference. - */ + /** Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3897,10 +3599,7 @@ public static class StripeBalance extends StripeObject { @SerializedName("stripe_transfers") StripeTransfers stripeTransfers; - /** - * For more details about Payouts, please refer to the API Reference. - */ + /** Allows the account to do payouts using their Stripe Balance (/v1/balance). */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3957,8 +3656,7 @@ public static class StatusDetail extends StripeObject { } /** - * For more details about StripeTransfers, please refer to the API Reference. + * Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance). */ @Getter @Setter @@ -4020,8 +3718,8 @@ public static class StatusDetail extends StripeObject { } /** - * For more details about DefaultOutboundDestination, please refer to the API Reference. + * The payout method to be used as a default outbound destination. This will allow the + * PayoutMethod to be omitted on OutboundPayments made through the dashboard. */ @Getter @Setter @@ -4062,8 +3760,8 @@ public static class DefaultOutboundDestination extends StripeObject implements H } /** - * For more details about Storer, please refer to the API - * Reference. + * The Storer Configuration allows the Account to store and move funds using stored-value + * FinancialAccounts. */ @Getter @Setter @@ -4080,10 +3778,7 @@ public static class Storer extends StripeObject { @SerializedName("capabilities") Capabilities capabilities; - /** - * For more details about Capabilities, please refer to the API Reference. - */ + /** Capabilities that have been requested on the Storer Configuration. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4108,10 +3803,7 @@ public static class Capabilities extends StripeObject { @SerializedName("outbound_transfers") OutboundTransfers outboundTransfers; - /** - * For more details about FinancialAddresses, please refer to the API Reference. - */ + /** Can provision a financial address to credit/debit a FinancialAccount. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4124,8 +3816,8 @@ public static class FinancialAddresses extends StripeObject { BankAccounts bankAccounts; /** - * For more details about BankAccounts, please refer to the API Reference. + * Can provision a bank-account like financial address (VBAN) to credit/debit a + * FinancialAccount. */ @Getter @Setter @@ -4185,10 +3877,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about HoldsCurrencies, please refer to the API Reference. - */ + /** Can hold storage-type funds on Stripe. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4197,10 +3886,7 @@ public static class HoldsCurrencies extends StripeObject { @SerializedName("gbp") Gbp gbp; - /** - * For more details about Gbp, please refer to the API Reference. - */ + /** Can hold storage-type funds on Stripe in GBP. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4257,10 +3943,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about InboundTransfers, please refer to the API Reference. - */ + /** Can pull funds from an external source, owned by yourself, to a FinancialAccount. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4272,8 +3955,7 @@ public static class InboundTransfers extends StripeObject { BankAccounts bankAccounts; /** - * For more details about BankAccounts, please refer to the API Reference. + * Can pull funds from an external bank account, owned by yourself, to a FinancialAccount. */ @Getter @Setter @@ -4333,10 +4015,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about OutboundPayments, please refer to the API Reference. - */ + /** Can send funds from a FinancialAccount to a destination owned by someone else. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4356,10 +4035,7 @@ public static class OutboundPayments extends StripeObject { @SerializedName("financial_accounts") FinancialAccounts financialAccounts; - /** - * For more details about BankAccounts, please refer to the API Reference. - */ + /** Can send funds from a FinancialAccount to a bank account, owned by someone else. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4417,10 +4093,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about Cards, please refer to the API Reference. - */ + /** Can send funds from a FinancialAccount to a debit card, owned by someone else. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4477,8 +4150,8 @@ public static class StatusDetail extends StripeObject { } /** - * For more details about FinancialAccounts, please refer to the API Reference. + * Can send funds from a FinancialAccount to another FinancialAccount, owned by someone + * else. */ @Getter @Setter @@ -4538,10 +4211,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about OutboundTransfers, please refer to the API Reference. - */ + /** Can send funds from a FinancialAccount to a destination owned by yourself. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4556,10 +4226,7 @@ public static class OutboundTransfers extends StripeObject { @SerializedName("financial_accounts") FinancialAccounts financialAccounts; - /** - * For more details about BankAccounts, please refer to the API Reference. - */ + /** Can send funds from a FinancialAccount, to a bank account, owned by yourself. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4618,8 +4285,7 @@ public static class StatusDetail extends StripeObject { } /** - * For more details about FinancialAccounts, please refer to the API Reference. + * Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself. */ @Getter @Setter @@ -4682,10 +4348,7 @@ public static class StatusDetail extends StripeObject { } } - /** - * For more details about Defaults, please refer to the API - * Reference. - */ + /** Default values to be used on Account Configurations. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4694,33 +4357,6 @@ public static class Defaults extends StripeObject { * Three-letter ISO currency * code, in lowercase. Must be a supported * currency. - * - *

One of {@code aed}, {@code afn}, {@code all}, {@code amd}, {@code ang}, {@code aoa}, - * {@code ars}, {@code aud}, {@code awg}, {@code azn}, {@code bam}, {@code bbd}, {@code bdt}, - * {@code bgn}, {@code bhd}, {@code bif}, {@code bmd}, {@code bnd}, {@code bob}, {@code bov}, - * {@code brl}, {@code bsd}, {@code btn}, {@code bwp}, {@code byn}, {@code byr}, {@code bzd}, - * {@code cad}, {@code cdf}, {@code che}, {@code chf}, {@code chw}, {@code clf}, {@code clp}, - * {@code cny}, {@code cop}, {@code cou}, {@code crc}, {@code cuc}, {@code cup}, {@code cve}, - * {@code czk}, {@code djf}, {@code dkk}, {@code dop}, {@code dzd}, {@code eek}, {@code egp}, - * {@code ern}, {@code etb}, {@code eur}, {@code fjd}, {@code fkp}, {@code gbp}, {@code gel}, - * {@code ghc}, {@code ghs}, {@code gip}, {@code gmd}, {@code gnf}, {@code gtq}, {@code gyd}, - * {@code hkd}, {@code hnl}, {@code hrk}, {@code htg}, {@code huf}, {@code idr}, {@code ils}, - * {@code inr}, {@code iqd}, {@code irr}, {@code isk}, {@code jmd}, {@code jod}, {@code jpy}, - * {@code kes}, {@code kgs}, {@code khr}, {@code kmf}, {@code kpw}, {@code krw}, {@code kwd}, - * {@code kyd}, {@code kzt}, {@code lak}, {@code lbp}, {@code lkr}, {@code lrd}, {@code lsl}, - * {@code ltl}, {@code lvl}, {@code lyd}, {@code mad}, {@code mdl}, {@code mga}, {@code mkd}, - * {@code mmk}, {@code mnt}, {@code mop}, {@code mro}, {@code mru}, {@code mur}, {@code mvr}, - * {@code mwk}, {@code mxn}, {@code mxv}, {@code myr}, {@code mzn}, {@code nad}, {@code ngn}, - * {@code nio}, {@code nok}, {@code npr}, {@code nzd}, {@code omr}, {@code pab}, {@code pen}, - * {@code pgk}, {@code php}, {@code pkr}, {@code pln}, {@code pyg}, {@code qar}, {@code ron}, - * {@code rsd}, {@code rub}, {@code rwf}, {@code sar}, {@code sbd}, {@code scr}, {@code sdg}, - * {@code sek}, {@code sgd}, {@code shp}, {@code sle}, {@code sll}, {@code sos}, {@code srd}, - * {@code ssp}, {@code std}, {@code stn}, {@code svc}, {@code syp}, {@code szl}, {@code thb}, - * {@code tjs}, {@code tmt}, {@code tnd}, {@code top}, {@code try}, {@code ttd}, {@code twd}, - * {@code tzs}, {@code uah}, {@code ugx}, {@code usd}, {@code usdb}, {@code usdc}, {@code usn}, - * {@code uyi}, {@code uyu}, {@code uzs}, {@code vef}, {@code ves}, {@code vnd}, {@code vuv}, - * {@code wst}, {@code xaf}, {@code xcd}, {@code xcg}, {@code xof}, {@code xpf}, {@code yer}, - * {@code zar}, {@code zmk}, {@code zmw}, {@code zwd}, {@code zwg}, or {@code zwl}. */ @SerializedName("currency") String currency; @@ -4733,10 +4369,7 @@ public static class Defaults extends StripeObject { @SerializedName("responsibilities") Responsibilities responsibilities; - /** - * For more details about Responsibilities, please refer to the API Reference. - */ + /** Default responsibilities held by either Stripe or the platform. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4761,10 +4394,7 @@ public static class Responsibilities extends StripeObject { } } - /** - * For more details about Identity, please refer to the API - * Reference. - */ + /** Information about the company, individual, and business represented by the Account. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4781,41 +4411,6 @@ public static class Identity extends StripeObject { * 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. - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, {@code am}, - * {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, {@code aw}, {@code - * ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, {@code bf}, {@code bg}, - * {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, {@code bn}, {@code bo}, {@code - * bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, {@code bw}, {@code by}, {@code bz}, - * {@code ca}, {@code cc}, {@code cd}, {@code cf}, {@code cg}, {@code ch}, {@code ci}, {@code - * ck}, {@code cl}, {@code cm}, {@code cn}, {@code co}, {@code cr}, {@code cu}, {@code cv}, - * {@code cw}, {@code cx}, {@code cy}, {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code - * dm}, {@code do}, {@code dz}, {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, - * {@code es}, {@code et}, {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code - * fr}, {@code ga}, {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, - * {@code gi}, {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code - * gs}, {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, {@code - * in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, {@code jm}, - * {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, {@code km}, {@code - * kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, {@code la}, {@code lb}, - * {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, {@code lt}, {@code lu}, {@code - * lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, {@code me}, {@code mf}, {@code mg}, - * {@code mh}, {@code mk}, {@code ml}, {@code mm}, {@code mn}, {@code mo}, {@code mp}, {@code - * mq}, {@code mr}, {@code ms}, {@code mt}, {@code mu}, {@code mv}, {@code mw}, {@code mx}, - * {@code my}, {@code mz}, {@code na}, {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code - * ni}, {@code nl}, {@code no}, {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, - * {@code pa}, {@code pe}, {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code - * pm}, {@code pn}, {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, - * {@code qz}, {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code - * sb}, {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, {@code - * st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, {@code tf}, - * {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, {@code tn}, {@code - * to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, {@code ua}, {@code ug}, - * {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, {@code vc}, {@code ve}, {@code - * vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, {@code ws}, {@code xx}, {@code ye}, - * {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -4836,10 +4431,7 @@ public static class Identity extends StripeObject { @SerializedName("individual") Individual individual; - /** - * For more details about Attestations, please refer to the API Reference. - */ + /** Attestations from the identity's key people, e.g. owners, executives, directors. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4867,8 +4459,8 @@ public static class Attestations extends StripeObject { TermsOfService termsOfService; /** - * For more details about DirectorshipDeclaration, please refer to the API Reference. + * This hash is used to attest that the directors information provided to Stripe is both + * current and correct. */ @Getter @Setter @@ -4891,8 +4483,8 @@ public static class DirectorshipDeclaration extends StripeObject { } /** - * For more details about OwnershipDeclaration, please refer to the API Reference. + * This hash is used to attest that the beneficial owner information provided to Stripe is + * both current and correct. */ @Getter @Setter @@ -4915,10 +4507,7 @@ public static class OwnershipDeclaration extends StripeObject { String userAgent; } - /** - * For more details about PersonsProvided, please refer to the API Reference. - */ + /** Attestation that all Persons with a specific Relationship value have been provided. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4957,10 +4546,7 @@ public static class PersonsProvided extends StripeObject { String ownershipExemptionReason; } - /** - * For more details about TermsOfService, please refer to the API Reference. - */ + /** Attestations of accepted terms of service agreements. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4978,8 +4564,9 @@ public static class TermsOfService extends StripeObject { Storer storer; /** - * For more details about InnerAccount, please refer to the API Reference. + * Details on the Account's acceptance of the Stripe Services + * Agreement. */ @Getter @Setter @@ -5007,10 +4594,7 @@ public static class InnerAccount extends StripeObject { String userAgent; } - /** - * For more details about Storer, please refer to the API Reference. - */ + /** Details on the Account's acceptance of Treasury-specific terms of service. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5039,10 +4623,7 @@ public static class Storer extends StripeObject { } } - /** - * For more details about BusinessDetails, please refer to the API Reference. - */ + /** Information about the company or business. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5068,7 +4649,7 @@ public static class BusinessDetails extends StripeObject { * business. */ @SerializedName("estimated_worker_count") - Integer estimatedWorkerCount; + Long estimatedWorkerCount; /** The provided ID numbers of a business entity. */ @SerializedName("id_numbers") @@ -5122,10 +4703,7 @@ public static class BusinessDetails extends StripeObject { @SerializedName("url") String url; - /** - * For more details about Address, please refer to the API Reference. - */ + /** The company’s primary address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5137,43 +4715,6 @@ public static class Address extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, {@code - * am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, {@code aw}, - * {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, {@code bf}, - * {@code bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, {@code bn}, - * {@code bo}, {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, {@code bw}, - * {@code by}, {@code bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, {@code cg}, - * {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, {@code cn}, {@code co}, - * {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, {@code cz}, - * {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, {@code ec}, - * {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, {@code fi}, - * {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, {@code gb}, - * {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, {@code gi}, {@code gl}, - * {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code gs}, {@code gt}, - * {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, {@code hr}, - * {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, {@code in}, - * {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, {@code jm}, - * {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, {@code km}, - * {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, {@code la}, - * {@code lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, {@code lt}, - * {@code lu}, {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, {@code me}, - * {@code mf}, {@code mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, {@code mn}, - * {@code mo}, {@code mp}, {@code mq}, {@code mr}, {@code ms}, {@code mt}, {@code mu}, - * {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, {@code na}, {@code nc}, - * {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, {@code np}, - * {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, {@code pf}, - * {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, {@code pr}, - * {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, {@code re}, - * {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code sb}, {@code sc}, - * {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, {@code sk}, - * {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, {@code st}, - * {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, {@code tf}, - * {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, {@code tn}, - * {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, {@code ua}, - * {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, {@code vc}, - * {@code ve}, {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, {@code ws}, - * {@code xx}, {@code ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -5199,10 +4740,7 @@ public static class Address extends StripeObject { String town; } - /** - * For more details about AnnualRevenue, please refer to the API Reference. - */ + /** The business gross annual revenue for its preceding fiscal year. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5219,10 +4757,7 @@ public static class AnnualRevenue extends StripeObject { String fiscalYearEnd; } - /** - * For more details about Documents, please refer to the API Reference. - */ + /** Documents that may be submitted to satisfy various informational requests. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5281,8 +4816,9 @@ public static class Documents extends StripeObject { ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; /** - * For more details about BankAccountOwnershipVerification, please refer to the API Reference. + * 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 check. */ @Getter @Setter @@ -5305,10 +4841,7 @@ public static class BankAccountOwnershipVerification extends StripeObject { String type; } - /** - * For more details about CompanyLicense, please refer to the API Reference. - */ + /** One or more documents that demonstrate proof of a company’s license to operate. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5330,10 +4863,7 @@ public static class CompanyLicense extends StripeObject { String type; } - /** - * For more details about CompanyMemorandumOfAssociation, please refer to the API Reference. - */ + /** One or more documents showing the company’s Memorandum of Association. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5356,8 +4886,8 @@ public static class CompanyMemorandumOfAssociation extends StripeObject { } /** - * For more details about CompanyMinisterialDecree, please refer to the API Reference. + * Certain countries only: One or more documents showing the ministerial decree legalizing + * the company’s establishment. */ @Getter @Setter @@ -5381,8 +4911,8 @@ public static class CompanyMinisterialDecree extends StripeObject { } /** - * For more details about CompanyRegistrationVerification, please refer to the API Reference. + * One or more documents that demonstrate proof of a company’s registration with the + * appropriate local authorities. */ @Getter @Setter @@ -5405,10 +4935,7 @@ public static class CompanyRegistrationVerification extends StripeObject { String type; } - /** - * For more details about CompanyTaxIdVerification, please refer to the API Reference. - */ + /** One or more documents that demonstrate proof of a company’s tax ID. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5430,10 +4957,7 @@ public static class CompanyTaxIdVerification extends StripeObject { String type; } - /** - * For more details about PrimaryVerification, please refer to the API Reference. - */ + /** A document verifying the business. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5454,8 +4978,8 @@ public static class PrimaryVerification extends StripeObject { String type; /** - * For more details about FrontBack, please refer to the API Reference. + * The file upload + * tokens for the front and back of the verification document. */ @Getter @Setter @@ -5483,10 +5007,7 @@ public static class FrontBack extends StripeObject { } } - /** - * For more details about ProofOfAddress, please refer to the API Reference. - */ + /** One or more documents that demonstrate proof of address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5509,8 +5030,8 @@ public static class ProofOfAddress extends StripeObject { } /** - * For more details about ProofOfRegistration, please refer to the API Reference. + * One or more documents showing the company’s proof of registration with the national + * business registry. */ @Getter @Setter @@ -5533,10 +5054,7 @@ public static class ProofOfRegistration extends StripeObject { String type; } - /** - * For more details about ProofOfUltimateBeneficialOwnership, please refer to the API Reference. - */ + /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5593,10 +5111,7 @@ public static class IdNumber extends StripeObject { String type; } - /** - * For more details about MonthlyEstimatedRevenue, please refer to the API Reference. - */ + /** An estimate of the monthly revenue of the business. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5606,10 +5121,7 @@ public static class MonthlyEstimatedRevenue extends StripeObject { Amount amount; } - /** - * For more details about ScriptAddresses, please refer to the API Reference. - */ + /** The business registration address of the business entity in non latin script. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5622,10 +5134,7 @@ public static class ScriptAddresses extends StripeObject { @SerializedName("kanji") Kanji kanji; - /** - * For more details about Kana, please refer to the API Reference. - */ + /** Kana Address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5637,43 +5146,6 @@ public static class Kana extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, - * {@code am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, - * {@code aw}, {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, - * {@code bf}, {@code bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, - * {@code bn}, {@code bo}, {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, - * {@code bw}, {@code by}, {@code bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, - * {@code cg}, {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, {@code cn}, - * {@code co}, {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, - * {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, - * {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, - * {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, - * {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, {@code gi}, - * {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code gs}, - * {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, - * {@code in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, - * {@code jm}, {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, - * {@code km}, {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, - * {@code la}, {@code lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, - * {@code lt}, {@code lu}, {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, - * {@code me}, {@code mf}, {@code mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, - * {@code mn}, {@code mo}, {@code mp}, {@code mq}, {@code mr}, {@code ms}, {@code mt}, - * {@code mu}, {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, {@code na}, - * {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, - * {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, - * {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, - * {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, - * {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code sb}, - * {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, - * {@code st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, - * {@code tf}, {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, - * {@code tn}, {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, - * {@code ua}, {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, - * {@code vc}, {@code ve}, {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, - * {@code ws}, {@code xx}, {@code ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -5699,10 +5171,7 @@ public static class Kana extends StripeObject { String town; } - /** - * For more details about Kanji, please refer to the API Reference. - */ + /** Kanji Address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5714,43 +5183,6 @@ public static class Kanji extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, - * {@code am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, - * {@code aw}, {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, - * {@code bf}, {@code bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, - * {@code bn}, {@code bo}, {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, - * {@code bw}, {@code by}, {@code bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, - * {@code cg}, {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, {@code cn}, - * {@code co}, {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, - * {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, - * {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, - * {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, - * {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, {@code gi}, - * {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code gs}, - * {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, - * {@code in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, - * {@code jm}, {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, - * {@code km}, {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, - * {@code la}, {@code lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, - * {@code lt}, {@code lu}, {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, - * {@code me}, {@code mf}, {@code mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, - * {@code mn}, {@code mo}, {@code mp}, {@code mq}, {@code mr}, {@code ms}, {@code mt}, - * {@code mu}, {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, {@code na}, - * {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, - * {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, - * {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, - * {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, - * {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code sb}, - * {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, - * {@code st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, - * {@code tf}, {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, - * {@code tn}, {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, - * {@code ua}, {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, - * {@code vc}, {@code ve}, {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, - * {@code ws}, {@code xx}, {@code ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -5777,10 +5209,7 @@ public static class Kanji extends StripeObject { } } - /** - * For more details about ScriptNames, please refer to the API Reference. - */ + /** The business legal name in non latin script. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5793,10 +5222,7 @@ public static class ScriptNames extends StripeObject { @SerializedName("kanji") Kanji kanji; - /** - * For more details about Kana, please refer to the API Reference. - */ + /** Kana name. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5806,10 +5232,7 @@ public static class Kana extends StripeObject { String registeredName; } - /** - * For more details about Kanji, please refer to the API Reference. - */ + /** Kanji name. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -5822,8 +5245,8 @@ public static class Kanji extends StripeObject { } /** - * For more details about Individual, please refer to the API Reference. + * Information about the individual represented by the Account. This property is {@code null} + * unless {@code entity_type} is set to {@code individual}. */ @Getter @Setter @@ -5957,43 +5380,6 @@ public static class AdditionalAddress extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, {@code - * am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, {@code aw}, - * {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, {@code bf}, - * {@code bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, {@code bn}, - * {@code bo}, {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, {@code bw}, - * {@code by}, {@code bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, {@code cg}, - * {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, {@code cn}, {@code co}, - * {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, {@code cz}, - * {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, {@code ec}, - * {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, {@code fi}, - * {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, {@code gb}, - * {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, {@code gi}, {@code gl}, - * {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code gs}, {@code gt}, - * {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, {@code hr}, - * {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, {@code in}, - * {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, {@code jm}, - * {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, {@code km}, - * {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, {@code la}, - * {@code lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, {@code lt}, - * {@code lu}, {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, {@code me}, - * {@code mf}, {@code mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, {@code mn}, - * {@code mo}, {@code mp}, {@code mq}, {@code mr}, {@code ms}, {@code mt}, {@code mu}, - * {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, {@code na}, {@code nc}, - * {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, {@code np}, - * {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, {@code pf}, - * {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, {@code pr}, - * {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, {@code re}, - * {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code sb}, {@code sc}, - * {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, {@code sk}, - * {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, {@code st}, - * {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, {@code tf}, - * {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, {@code tn}, - * {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, {@code ua}, - * {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, {@code vc}, - * {@code ve}, {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, {@code ws}, - * {@code xx}, {@code ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -6056,10 +5442,7 @@ public static class AdditionalName extends StripeObject { String surname; } - /** - * For more details about AdditionalTermsOfService, please refer to the API Reference. - */ + /** Terms of service acceptances. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6068,10 +5451,7 @@ public static class AdditionalTermsOfService extends StripeObject { @SerializedName("account") InnerAccount account; - /** - * For more details about InnerAccount, please refer to the API Reference. - */ + /** Stripe terms of service agreement. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6099,10 +5479,7 @@ public static class InnerAccount extends StripeObject { } } - /** - * For more details about Address, please refer to the API Reference. - */ + /** The individual's residential address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6114,43 +5491,6 @@ public static class Address extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, {@code - * am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, {@code aw}, - * {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, {@code bf}, - * {@code bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, {@code bn}, - * {@code bo}, {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, {@code bw}, - * {@code by}, {@code bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, {@code cg}, - * {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, {@code cn}, {@code co}, - * {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, {@code cz}, - * {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, {@code ec}, - * {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, {@code fi}, - * {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, {@code gb}, - * {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, {@code gi}, {@code gl}, - * {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code gs}, {@code gt}, - * {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, {@code hr}, - * {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, {@code in}, - * {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, {@code jm}, - * {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, {@code km}, - * {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, {@code la}, - * {@code lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, {@code lt}, - * {@code lu}, {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, {@code me}, - * {@code mf}, {@code mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, {@code mn}, - * {@code mo}, {@code mp}, {@code mq}, {@code mr}, {@code ms}, {@code mt}, {@code mu}, - * {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, {@code na}, {@code nc}, - * {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, {@code np}, - * {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, {@code pf}, - * {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, {@code pr}, - * {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, {@code re}, - * {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code sb}, {@code sc}, - * {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, {@code sk}, - * {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, {@code st}, - * {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, {@code tf}, - * {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, {@code tn}, - * {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, {@code ua}, - * {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, {@code vc}, - * {@code ve}, {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, {@code ws}, - * {@code xx}, {@code ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -6176,31 +5516,25 @@ public static class Address extends StripeObject { String town; } - /** - * For more details about DateOfBirth, please refer to the API Reference. - */ + /** The individual's date of birth. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DateOfBirth extends StripeObject { /** The day of birth, between 1 and 31. */ @SerializedName("day") - Integer day; + Long day; /** The month of birth, between 1 and 12. */ @SerializedName("month") - Integer month; + Long month; /** The four-digit year of birth. */ @SerializedName("year") - Integer year; + Long year; } - /** - * For more details about Documents, please refer to the API Reference. - */ + /** Documents that may be submitted to satisfy various informational requests. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6239,8 +5573,8 @@ public static class Documents extends StripeObject { Visa visa; /** - * For more details about CompanyAuthorization, please refer to the API Reference. + * One or more documents that demonstrate proof that this person is authorized to represent + * the company. */ @Getter @Setter @@ -6264,8 +5598,7 @@ public static class CompanyAuthorization extends StripeObject { } /** - * For more details about Passport, please refer to the API Reference. + * One or more documents showing the person’s passport page with photo and personal data. */ @Getter @Setter @@ -6289,8 +5622,7 @@ public static class Passport extends StripeObject { } /** - * For more details about PrimaryVerification, please refer to the API Reference. + * An identifying document showing the person's name, either a passport or local ID card. */ @Getter @Setter @@ -6312,8 +5644,8 @@ public static class PrimaryVerification extends StripeObject { String type; /** - * For more details about FrontBack, please refer to the API Reference. + * The file upload + * tokens for the front and back of the verification document. */ @Getter @Setter @@ -6342,8 +5674,8 @@ public static class FrontBack extends StripeObject { } /** - * For more details about SecondaryVerification, please refer to the API Reference. + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. */ @Getter @Setter @@ -6365,8 +5697,8 @@ public static class SecondaryVerification extends StripeObject { String type; /** - * For more details about FrontBack, please refer to the API Reference. + * The file upload + * tokens for the front and back of the verification document. */ @Getter @Setter @@ -6395,8 +5727,8 @@ public static class FrontBack extends StripeObject { } /** - * For more details about Visa, please refer to the API Reference. + * One or more documents showing the person’s visa required for living in the country where + * they are residing. */ @Getter @Setter @@ -6443,10 +5775,7 @@ public static class IdNumber extends StripeObject { String type; } - /** - * For more details about Relationship, please refer to the API Reference. - */ + /** The relationship that this individual has with the Account's identity. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6480,7 +5809,7 @@ public static class Relationship extends StripeObject { /** The percent owned by the individual of the Account’s legal entity. */ @SerializedName("percent_ownership") - String percentOwnership; + BigDecimal percentOwnership; /** * Whether the individual is authorized as the primary representative of the Account. This @@ -6497,10 +5826,7 @@ public static class Relationship extends StripeObject { String title; } - /** - * For more details about ScriptAddresses, please refer to the API Reference. - */ + /** The script addresses (e.g., non-Latin characters) associated with the individual. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6513,10 +5839,7 @@ public static class ScriptAddresses extends StripeObject { @SerializedName("kanji") Kanji kanji; - /** - * For more details about Kana, please refer to the API Reference. - */ + /** Kana Address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6528,43 +5851,6 @@ public static class Kana extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, - * {@code am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, - * {@code aw}, {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, - * {@code bf}, {@code bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, - * {@code bn}, {@code bo}, {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, - * {@code bw}, {@code by}, {@code bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, - * {@code cg}, {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, {@code cn}, - * {@code co}, {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, - * {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, - * {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, - * {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, - * {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, {@code gi}, - * {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code gs}, - * {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, - * {@code in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, - * {@code jm}, {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, - * {@code km}, {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, - * {@code la}, {@code lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, - * {@code lt}, {@code lu}, {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, - * {@code me}, {@code mf}, {@code mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, - * {@code mn}, {@code mo}, {@code mp}, {@code mq}, {@code mr}, {@code ms}, {@code mt}, - * {@code mu}, {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, {@code na}, - * {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, - * {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, - * {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, - * {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, - * {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code sb}, - * {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, - * {@code st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, - * {@code tf}, {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, - * {@code tn}, {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, - * {@code ua}, {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, - * {@code vc}, {@code ve}, {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, - * {@code ws}, {@code xx}, {@code ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -6590,10 +5876,7 @@ public static class Kana extends StripeObject { String town; } - /** - * For more details about Kanji, please refer to the API Reference. - */ + /** Kanji Address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6605,43 +5888,6 @@ public static class Kanji extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, - * {@code am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, - * {@code aw}, {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, - * {@code bf}, {@code bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, - * {@code bn}, {@code bo}, {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, - * {@code bw}, {@code by}, {@code bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, - * {@code cg}, {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, {@code cn}, - * {@code co}, {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, - * {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, - * {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, - * {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, - * {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, {@code gi}, - * {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code gs}, - * {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, - * {@code in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, - * {@code jm}, {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, - * {@code km}, {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, - * {@code la}, {@code lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, - * {@code lt}, {@code lu}, {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, - * {@code me}, {@code mf}, {@code mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, - * {@code mn}, {@code mo}, {@code mp}, {@code mq}, {@code mr}, {@code ms}, {@code mt}, - * {@code mu}, {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, {@code na}, - * {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, - * {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, - * {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, - * {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, - * {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code sb}, - * {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, - * {@code st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, - * {@code tf}, {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, - * {@code tn}, {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, - * {@code ua}, {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, - * {@code vc}, {@code ve}, {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, - * {@code ws}, {@code xx}, {@code ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -6668,10 +5914,7 @@ public static class Kanji extends StripeObject { } } - /** - * For more details about ScriptNames, please refer to the API Reference. - */ + /** The script names (e.g. non-Latin characters) associated with the individual. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6684,10 +5927,7 @@ public static class ScriptNames extends StripeObject { @SerializedName("kanji") Kanji kanji; - /** - * For more details about Kana, please refer to the API Reference. - */ + /** Persons name in kana script. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6701,10 +5941,7 @@ public static class Kana extends StripeObject { String surname; } - /** - * For more details about Kanji, please refer to the API Reference. - */ + /** Persons name in kanji script. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6722,8 +5959,8 @@ public static class Kanji extends StripeObject { } /** - * For more details about Requirements, please refer to the API Reference. + * Information about the requirements for the Account, including what information needs to be + * collected, and by when. */ @Getter @Setter @@ -6872,8 +6109,8 @@ public static class Errors extends StripeObject { } /** - * For more details about Impact, please refer to the API Reference. + * A hash describing the impact of not collecting the requirement, or Stripe not being able to + * verify the collected information. */ @Getter @Setter @@ -6940,8 +6177,8 @@ public static class RestrictsCapability extends StripeObject { Deadline deadline; /** - * For more details about Deadline, please refer to the API Reference. + * Details about when in the account lifecycle the requirement must be collected by the + * avoid the Capability restriction. */ @Getter @Setter @@ -6958,10 +6195,7 @@ public static class Deadline extends StripeObject { } } - /** - * For more details about MinimumDeadline, please refer to the API Reference. - */ + /** The soonest point when the account will be impacted by not providing the requirement. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -6975,10 +6209,7 @@ public static class MinimumDeadline extends StripeObject { String status; } - /** - * For more details about Reference, please refer to the API Reference. - */ + /** A reference to the location of the requirement. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -7020,10 +6251,7 @@ public static class RequestedReason extends StripeObject { } } - /** - * For more details about Summary, please refer to the API - * Reference. - */ + /** An object containing an overview of requirements for the Account. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -7037,8 +6265,9 @@ public static class Summary extends StripeObject { MinimumDeadline minimumDeadline; /** - * For more details about MinimumDeadline, please refer to the API Reference. + * The soonest date and time a requirement on the Account will become {@code past due}. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: + * {@code 2022-09-18T13:22:18.123Z}. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/core/AccountLink.java b/src/main/java/com/stripe/model/v2/core/AccountLink.java index 823215608ea..7931531ede8 100644 --- a/src/main/java/com/stripe/model/v2/core/AccountLink.java +++ b/src/main/java/com/stripe/model/v2/core/AccountLink.java @@ -9,6 +9,11 @@ import lombok.Getter; import lombok.Setter; +/** + * AccountLinks are the means by which a Merchant grants an Account permission to access + * Stripe-hosted applications, such as Recipient Onboarding. This API is only available for users + * enrolled in the public preview for Accounts v2. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -49,10 +54,7 @@ public class AccountLink extends StripeObject { @SerializedName("use_case") UseCase useCase; - /** - * For more details about UseCase, please refer to the API - * Reference. - */ + /** The use case of AccountLink the user is requesting. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -73,10 +75,7 @@ public static class UseCase extends StripeObject { @SerializedName("type") String type; - /** - * For more details about AccountOnboarding, please refer to the API Reference. - */ + /** Indicates that the AccountLink provided should onboard an account. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -113,8 +112,8 @@ public static class AccountOnboarding extends StripeObject { String returnUrl; /** - * For more details about CollectionOptions, please refer to the API Reference. + * Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + * flow. */ @Getter @Setter @@ -142,10 +141,7 @@ public static class CollectionOptions extends StripeObject { } } - /** - * For more details about AccountUpdate, please refer to the API Reference. - */ + /** Indicates that the AccountLink provided should update a previously onboarded account. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -182,8 +178,8 @@ public static class AccountUpdate extends StripeObject { String returnUrl; /** - * For more details about CollectionOptions, please refer to the API Reference. + * Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + * flow. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/core/Person.java b/src/main/java/com/stripe/model/v2/core/AccountPerson.java similarity index 55% rename from src/main/java/com/stripe/model/v2/core/Person.java rename to src/main/java/com/stripe/model/v2/core/AccountPerson.java index f1e0ef3ed81..b12b4e33a60 100644 --- a/src/main/java/com/stripe/model/v2/core/Person.java +++ b/src/main/java/com/stripe/model/v2/core/AccountPerson.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.model.HasId; import com.stripe.model.StripeObject; +import java.math.BigDecimal; import java.time.Instant; import java.util.List; import java.util.Map; @@ -11,21 +12,22 @@ import lombok.Getter; import lombok.Setter; +/** Person retrieval response schema. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) -public class Person extends StripeObject implements HasId { +public class AccountPerson extends StripeObject implements HasId { /** The account ID which the individual belongs to. */ @SerializedName("account") String account; /** Additional addresses associated with the person. */ @SerializedName("additional_addresses") - List additionalAddresses; + List additionalAddresses; /** Additional names (e.g. aliases) associated with the person. */ @SerializedName("additional_names") - List additionalNames; + List additionalNames; /** Attestations of accepted terms of service agreements. */ @SerializedName("additional_terms_of_service") @@ -65,7 +67,7 @@ public class Person extends StripeObject implements HasId { /** The identification numbers (e.g., SSN) associated with the person. */ @SerializedName("id_numbers") - List idNumbers; + List idNumbers; /** * The person's gender (International regulations require either "male" or @@ -156,41 +158,6 @@ public static class AdditionalAddress extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, {@code am}, - * {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, {@code aw}, {@code - * ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, {@code bf}, {@code bg}, - * {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, {@code bn}, {@code bo}, {@code - * bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, {@code bw}, {@code by}, {@code bz}, - * {@code ca}, {@code cc}, {@code cd}, {@code cf}, {@code cg}, {@code ch}, {@code ci}, {@code - * ck}, {@code cl}, {@code cm}, {@code cn}, {@code co}, {@code cr}, {@code cu}, {@code cv}, - * {@code cw}, {@code cx}, {@code cy}, {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code - * dm}, {@code do}, {@code dz}, {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, - * {@code es}, {@code et}, {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code - * fr}, {@code ga}, {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, - * {@code gi}, {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code - * gs}, {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, {@code - * in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, {@code jm}, - * {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, {@code km}, {@code - * kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, {@code la}, {@code lb}, - * {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, {@code lt}, {@code lu}, {@code - * lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, {@code me}, {@code mf}, {@code mg}, - * {@code mh}, {@code mk}, {@code ml}, {@code mm}, {@code mn}, {@code mo}, {@code mp}, {@code - * mq}, {@code mr}, {@code ms}, {@code mt}, {@code mu}, {@code mv}, {@code mw}, {@code mx}, - * {@code my}, {@code mz}, {@code na}, {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code - * ni}, {@code nl}, {@code no}, {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, - * {@code pa}, {@code pe}, {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code - * pm}, {@code pn}, {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, - * {@code qz}, {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code - * sb}, {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, {@code - * st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, {@code tf}, - * {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, {@code tn}, {@code - * to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, {@code ua}, {@code ug}, - * {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, {@code vc}, {@code ve}, {@code - * vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, {@code ws}, {@code xx}, {@code ye}, - * {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -253,10 +220,7 @@ public static class AdditionalName extends StripeObject { String surname; } - /** - * For more details about AdditionalTermsOfService, please refer to the API Reference. - */ + /** Attestations of accepted terms of service agreements. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -265,10 +229,7 @@ public static class AdditionalTermsOfService extends StripeObject { @SerializedName("account") Account account; - /** - * For more details about Account, please refer to the API - * Reference. - */ + /** Stripe terms of service agreement. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -294,10 +255,7 @@ public static class Account extends StripeObject { } } - /** - * For more details about Address, please refer to the API - * Reference. - */ + /** The person's residential address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -309,41 +267,6 @@ public static class Address extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, {@code am}, - * {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, {@code aw}, {@code - * ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, {@code bf}, {@code bg}, - * {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, {@code bn}, {@code bo}, {@code - * bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, {@code bw}, {@code by}, {@code bz}, - * {@code ca}, {@code cc}, {@code cd}, {@code cf}, {@code cg}, {@code ch}, {@code ci}, {@code - * ck}, {@code cl}, {@code cm}, {@code cn}, {@code co}, {@code cr}, {@code cu}, {@code cv}, - * {@code cw}, {@code cx}, {@code cy}, {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code - * dm}, {@code do}, {@code dz}, {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, - * {@code es}, {@code et}, {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code - * fr}, {@code ga}, {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, - * {@code gi}, {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code - * gs}, {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, {@code - * in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, {@code jm}, - * {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, {@code km}, {@code - * kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, {@code la}, {@code lb}, - * {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, {@code lt}, {@code lu}, {@code - * lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, {@code me}, {@code mf}, {@code mg}, - * {@code mh}, {@code mk}, {@code ml}, {@code mm}, {@code mn}, {@code mo}, {@code mp}, {@code - * mq}, {@code mr}, {@code ms}, {@code mt}, {@code mu}, {@code mv}, {@code mw}, {@code mx}, - * {@code my}, {@code mz}, {@code na}, {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code - * ni}, {@code nl}, {@code no}, {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, - * {@code pa}, {@code pe}, {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code - * pm}, {@code pn}, {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, - * {@code qz}, {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code - * sb}, {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, {@code - * st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, {@code tf}, - * {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, {@code tn}, {@code - * to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, {@code ua}, {@code ug}, - * {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, {@code vc}, {@code ve}, {@code - * vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, {@code ws}, {@code xx}, {@code ye}, - * {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -369,31 +292,25 @@ public static class Address extends StripeObject { String town; } - /** - * For more details about DateOfBirth, please refer to the API Reference. - */ + /** The person's date of birth. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DateOfBirth extends StripeObject { /** The day of birth, between 1 and 31. */ @SerializedName("day") - Integer day; + Long day; /** The month of birth, between 1 and 12. */ @SerializedName("month") - Integer month; + Long month; /** The four-digit year of birth. */ @SerializedName("year") - Integer year; + Long year; } - /** - * For more details about Documents, please refer to the API - * Reference. - */ + /** Documents that may be submitted to satisfy various informational requests. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -428,8 +345,8 @@ public static class Documents extends StripeObject { Visa visa; /** - * For more details about CompanyAuthorization, please refer to the API Reference. + * One or more documents that demonstrate proof that this person is authorized to represent the + * company. */ @Getter @Setter @@ -452,10 +369,7 @@ public static class CompanyAuthorization extends StripeObject { String type; } - /** - * For more details about Passport, please refer to the API Reference. - */ + /** One or more documents showing the person’s passport page with photo and personal data. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -477,10 +391,7 @@ public static class Passport extends StripeObject { String type; } - /** - * For more details about PrimaryVerification, please refer to the API Reference. - */ + /** An identifying document showing the person's name, either a passport or local ID card. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -501,8 +412,8 @@ public static class PrimaryVerification extends StripeObject { String type; /** - * For more details about FrontBack, please refer to the API Reference. + * The file upload tokens + * for the front and back of the verification document. */ @Getter @Setter @@ -529,8 +440,8 @@ public static class FrontBack extends StripeObject { } /** - * For more details about SecondaryVerification, please refer to the API Reference. + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. */ @Getter @Setter @@ -552,8 +463,8 @@ public static class SecondaryVerification extends StripeObject { String type; /** - * For more details about FrontBack, please refer to the API Reference. + * The file upload tokens + * for the front and back of the verification document. */ @Getter @Setter @@ -580,8 +491,8 @@ public static class FrontBack extends StripeObject { } /** - * For more details about Visa, please refer to the API - * Reference. + * One or more documents showing the person’s visa required for living in the country where they + * are residing. */ @Getter @Setter @@ -627,10 +538,7 @@ public static class IdNumber extends StripeObject { String type; } - /** - * For more details about Relationship, please refer to the API Reference. - */ + /** The relationship that this person has with the Account's business or legal entity. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -664,7 +572,7 @@ public static class Relationship extends StripeObject { /** The percent owned by the individual of the Account’s legal entity. */ @SerializedName("percent_ownership") - String percentOwnership; + BigDecimal percentOwnership; /** * Whether the individual is authorized as the primary representative of the Account. This is @@ -681,10 +589,7 @@ public static class Relationship extends StripeObject { String title; } - /** - * For more details about ScriptAddresses, please refer to the API Reference. - */ + /** The script addresses (e.g., non-Latin characters) associated with the person. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -697,10 +602,7 @@ public static class ScriptAddresses extends StripeObject { @SerializedName("kanji") Kanji kanji; - /** - * For more details about Kana, please refer to the API - * Reference. - */ + /** Kana Address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -712,41 +614,6 @@ public static class Kana extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, {@code - * am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, {@code aw}, - * {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, {@code bf}, {@code - * bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, {@code bn}, {@code bo}, - * {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, {@code bw}, {@code by}, {@code - * bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, {@code cg}, {@code ch}, {@code ci}, - * {@code ck}, {@code cl}, {@code cm}, {@code cn}, {@code co}, {@code cr}, {@code cu}, {@code - * cv}, {@code cw}, {@code cx}, {@code cy}, {@code cz}, {@code de}, {@code dj}, {@code dk}, - * {@code dm}, {@code do}, {@code dz}, {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code - * er}, {@code es}, {@code et}, {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, - * {@code fr}, {@code ga}, {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code - * gh}, {@code gi}, {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, - * {@code gs}, {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code - * hn}, {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, - * {@code in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, {@code - * jm}, {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, {@code km}, - * {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, {@code la}, {@code - * lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, {@code lt}, {@code lu}, - * {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, {@code me}, {@code mf}, {@code - * mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, {@code mn}, {@code mo}, {@code mp}, - * {@code mq}, {@code mr}, {@code ms}, {@code mt}, {@code mu}, {@code mv}, {@code mw}, {@code - * mx}, {@code my}, {@code mz}, {@code na}, {@code nc}, {@code ne}, {@code nf}, {@code ng}, - * {@code ni}, {@code nl}, {@code no}, {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code - * om}, {@code pa}, {@code pe}, {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, - * {@code pm}, {@code pn}, {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code - * qa}, {@code qz}, {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, - * {@code sb}, {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code - * sj}, {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, - * {@code st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, {@code - * tf}, {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, {@code tn}, - * {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, {@code ua}, {@code - * ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, {@code vc}, {@code ve}, - * {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, {@code ws}, {@code xx}, {@code - * ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -772,10 +639,7 @@ public static class Kana extends StripeObject { String town; } - /** - * For more details about Kanji, please refer to the API - * Reference. - */ + /** Kanji Address. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -787,41 +651,6 @@ public static class Kanji extends StripeObject { /** * Two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, {@code - * am}, {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, {@code aw}, - * {@code ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, {@code bf}, {@code - * bg}, {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, {@code bn}, {@code bo}, - * {@code bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, {@code bw}, {@code by}, {@code - * bz}, {@code ca}, {@code cc}, {@code cd}, {@code cf}, {@code cg}, {@code ch}, {@code ci}, - * {@code ck}, {@code cl}, {@code cm}, {@code cn}, {@code co}, {@code cr}, {@code cu}, {@code - * cv}, {@code cw}, {@code cx}, {@code cy}, {@code cz}, {@code de}, {@code dj}, {@code dk}, - * {@code dm}, {@code do}, {@code dz}, {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code - * er}, {@code es}, {@code et}, {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, - * {@code fr}, {@code ga}, {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code - * gh}, {@code gi}, {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, - * {@code gs}, {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code - * hn}, {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, - * {@code in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, {@code - * jm}, {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, {@code km}, - * {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, {@code la}, {@code - * lb}, {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, {@code lt}, {@code lu}, - * {@code lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, {@code me}, {@code mf}, {@code - * mg}, {@code mh}, {@code mk}, {@code ml}, {@code mm}, {@code mn}, {@code mo}, {@code mp}, - * {@code mq}, {@code mr}, {@code ms}, {@code mt}, {@code mu}, {@code mv}, {@code mw}, {@code - * mx}, {@code my}, {@code mz}, {@code na}, {@code nc}, {@code ne}, {@code nf}, {@code ng}, - * {@code ni}, {@code nl}, {@code no}, {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code - * om}, {@code pa}, {@code pe}, {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, - * {@code pm}, {@code pn}, {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code - * qa}, {@code qz}, {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, - * {@code sb}, {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code - * sj}, {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, - * {@code st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, {@code - * tf}, {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, {@code tn}, - * {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, {@code ua}, {@code - * ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, {@code vc}, {@code ve}, - * {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, {@code ws}, {@code xx}, {@code - * ye}, {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -848,10 +677,7 @@ public static class Kanji extends StripeObject { } } - /** - * For more details about ScriptNames, please refer to the API Reference. - */ + /** The script names (e.g. non-Latin characters) associated with the person. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -864,10 +690,7 @@ public static class ScriptNames extends StripeObject { @SerializedName("kanji") Kanji kanji; - /** - * For more details about Kana, please refer to the API - * Reference. - */ + /** Persons name in kana script. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -881,10 +704,7 @@ public static class Kana extends StripeObject { String surname; } - /** - * For more details about Kanji, please refer to the API - * Reference. - */ + /** Persons name in kanji script. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/core/ClaimableSandbox.java b/src/main/java/com/stripe/model/v2/core/ClaimableSandbox.java index 28efef46471..57c39197097 100644 --- a/src/main/java/com/stripe/model/v2/core/ClaimableSandbox.java +++ b/src/main/java/com/stripe/model/v2/core/ClaimableSandbox.java @@ -9,35 +9,30 @@ import lombok.Getter; import lombok.Setter; +/** + * A claimable sandbox represents a Stripe sandbox that is anonymous. When it is created, it can be + * prefilled with specific metadata, such as email, name, or country. Claimable sandboxes can be + * claimed through a URL. When a user claims a sandbox through this URL, it will prompt them to + * create a new Stripe account. Or, it will allow them to claim this sandbox in their existing + * Stripe account. Claimable sandboxes have 60 days to be claimed. After this expiration time has + * passed, if the sandbox is not claimed, it will be deleted. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public class ClaimableSandbox extends StripeObject implements HasId { - /** - * URL for user to claim sandbox into their existing Stripe account. The value will be null if the - * sandbox status is {@code claimed} or {@code expired}. - */ + /** Keys that can be used to set up an integration for this sandbox and operate on the account. */ + @SerializedName("api_keys") + ApiKeys apiKeys; + + /** URL for user to claim sandbox into their existing Stripe account. */ @SerializedName("claim_url") String claimUrl; - /** - * The timestamp the sandbox was claimed. The value will be null if the sandbox status is not - * {@code claimed}. - */ - @SerializedName("claimed_at") - Instant claimedAt; - /** When the sandbox is created. */ @SerializedName("created") Instant created; - /** - * The timestamp the sandbox will expire. The value will be null if the sandbox is {@code - * claimed}. - */ - @SerializedName("expires_at") - Instant expiresAt; - /** Unique identifier for the Claimable sandbox. */ @Getter(onMethod_ = {@Override}) @SerializedName("id") @@ -63,18 +58,28 @@ public class ClaimableSandbox extends StripeObject implements HasId { @SerializedName("prefill") Prefill prefill; - /** Data about the Stripe sandbox object. */ - @SerializedName("sandbox_details") - SandboxDetails sandboxDetails; + /** Keys that can be used to set up an integration for this sandbox and operate on the account. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class ApiKeys extends StripeObject { + /** + * Used to communicate with Stripe's MCP server. This + * allows LLM agents to securely operate on a Stripe account. + */ + @SerializedName("mcp") + String mcp; - /** Status of the sandbox. One of {@code unclaimed}, {@code expired}, {@code claimed}. */ - @SerializedName("status") - String status; + /** Publicly accessible in a web or mobile app client-side code. */ + @SerializedName("publishable") + String publishable; - /** - * For more details about Prefill, please refer to the API - * Reference. - */ + /** Should be stored securely in server-side code (such as an environment variable). */ + @SerializedName("secret") + String secret; + } + + /** Values prefilled during the creation of the sandbox. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -83,41 +88,6 @@ public static class Prefill extends StripeObject { * Country in which the account holder resides, or in which the business is legally established. * Use two-letter country code (ISO * 3166-1 alpha-2). - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, {@code am}, - * {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, {@code aw}, {@code - * ax}, {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, {@code bf}, {@code bg}, - * {@code bh}, {@code bi}, {@code bj}, {@code bl}, {@code bm}, {@code bn}, {@code bo}, {@code - * bq}, {@code br}, {@code bs}, {@code bt}, {@code bv}, {@code bw}, {@code by}, {@code bz}, - * {@code ca}, {@code cc}, {@code cd}, {@code cf}, {@code cg}, {@code ch}, {@code ci}, {@code - * ck}, {@code cl}, {@code cm}, {@code cn}, {@code co}, {@code cr}, {@code cu}, {@code cv}, - * {@code cw}, {@code cx}, {@code cy}, {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code - * dm}, {@code do}, {@code dz}, {@code ec}, {@code ee}, {@code eg}, {@code eh}, {@code er}, - * {@code es}, {@code et}, {@code fi}, {@code fj}, {@code fk}, {@code fm}, {@code fo}, {@code - * fr}, {@code ga}, {@code gb}, {@code gd}, {@code ge}, {@code gf}, {@code gg}, {@code gh}, - * {@code gi}, {@code gl}, {@code gm}, {@code gn}, {@code gp}, {@code gq}, {@code gr}, {@code - * gs}, {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, {@code hm}, {@code hn}, - * {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, {@code im}, {@code - * in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, {@code jm}, - * {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, {@code km}, {@code - * kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, {@code la}, {@code lb}, - * {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, {@code lt}, {@code lu}, {@code - * lv}, {@code ly}, {@code ma}, {@code mc}, {@code md}, {@code me}, {@code mf}, {@code mg}, - * {@code mh}, {@code mk}, {@code ml}, {@code mm}, {@code mn}, {@code mo}, {@code mp}, {@code - * mq}, {@code mr}, {@code ms}, {@code mt}, {@code mu}, {@code mv}, {@code mw}, {@code mx}, - * {@code my}, {@code mz}, {@code na}, {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code - * ni}, {@code nl}, {@code no}, {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, - * {@code pa}, {@code pe}, {@code pf}, {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code - * pm}, {@code pn}, {@code pr}, {@code ps}, {@code pt}, {@code pw}, {@code py}, {@code qa}, - * {@code qz}, {@code re}, {@code ro}, {@code rs}, {@code ru}, {@code rw}, {@code sa}, {@code - * sb}, {@code sc}, {@code sd}, {@code se}, {@code sg}, {@code sh}, {@code si}, {@code sj}, - * {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, {@code sr}, {@code ss}, {@code - * st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, {@code td}, {@code tf}, - * {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, {@code tn}, {@code - * to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, {@code ua}, {@code ug}, - * {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, {@code vc}, {@code ve}, {@code - * vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, {@code ws}, {@code xx}, {@code ye}, - * {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -133,54 +103,4 @@ public static class Prefill extends StripeObject { @SerializedName("name") String name; } - - /** - * For more details about SandboxDetails, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class SandboxDetails extends StripeObject { - /** The sandbox's Stripe account ID. */ - @SerializedName("account") - String account; - - /** - * Keys that can be used to set up an integration for this sandbox and operate on the account. - */ - @SerializedName("api_keys") - ApiKeys apiKeys; - - /** - * The livemode sandbox Stripe account ID. This field is only set if the user activates their - * sandbox and chooses to install your platform's Stripe App in their live account. - */ - @SerializedName("owner_account") - String ownerAccount; - - /** - * For more details about ApiKeys, please refer to the API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class ApiKeys extends StripeObject { - /** - * Used to communicate with Stripe's MCP server. - * This allows LLM agents to securely operate on a Stripe account. - */ - @SerializedName("mcp") - String mcp; - - /** Publicly accessible in a web or mobile app client-side code. */ - @SerializedName("publishable") - String publishable; - - /** Should be stored securely in server-side code (such as an environment variable). */ - @SerializedName("secret") - String secret; - } - } } diff --git a/src/main/java/com/stripe/model/v2/core/vault/GbBankAccount.java b/src/main/java/com/stripe/model/v2/core/vault/GbBankAccount.java index cd42c22e8c9..766317d0182 100644 --- a/src/main/java/com/stripe/model/v2/core/vault/GbBankAccount.java +++ b/src/main/java/com/stripe/model/v2/core/vault/GbBankAccount.java @@ -9,6 +9,7 @@ import lombok.Getter; import lombok.Setter; +/** Use the GBBankAccounts API to create and manage GB bank account objects. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -76,8 +77,9 @@ public class GbBankAccount extends StripeObject implements HasId { String sortCode; /** - * For more details about ConfirmationOfPayee, please refer to the API Reference. + * Information around the status of Confirmation of Payee matching done on this bank account. + * Confirmation of Payee is a name matching service that must be done before making + * OutboundPayments in the UK. */ @Getter @Setter @@ -99,8 +101,8 @@ public static class ConfirmationOfPayee extends StripeObject { String status; /** - * For more details about Result, please refer to the API - * Reference. + * The result of the Confirmation of Payee check, once the check has been initiated. Closed + * enum. */ @Getter @Setter @@ -135,8 +137,8 @@ public static class Result extends StripeObject { Provided provided; /** - * For more details about Matched, please refer to the API Reference. + * The fields that CoP service matched against. Only has value if MATCH or PARTIAL_MATCH, + * empty otherwise. */ @Getter @Setter @@ -156,10 +158,7 @@ public static class Matched extends StripeObject { String name; } - /** - * For more details about Provided, please refer to the API Reference. - */ + /** The fields that are matched against what the network has on file. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/core/vault/UsBankAccount.java b/src/main/java/com/stripe/model/v2/core/vault/UsBankAccount.java index a583e26ac7b..a2ac614c1c3 100644 --- a/src/main/java/com/stripe/model/v2/core/vault/UsBankAccount.java +++ b/src/main/java/com/stripe/model/v2/core/vault/UsBankAccount.java @@ -9,6 +9,10 @@ import lombok.Getter; import lombok.Setter; +/** + * Use the USBankAccounts API to create and manage US bank accounts objects that you can use to + * receive funds. Note that these are not interchangeable with v1 Tokens. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/Adjustment.java b/src/main/java/com/stripe/model/v2/moneymanagement/Adjustment.java index e980bd50602..6c3003f3991 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/Adjustment.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/Adjustment.java @@ -10,6 +10,10 @@ import lombok.Getter; import lombok.Setter; +/** + * Adjustments represent Stripe-initiated credits or debits to a user balance. They might be used to + * amend balances due to technical or operational error. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -67,10 +71,7 @@ public class Adjustment extends StripeObject implements HasId { @SerializedName("receipt_url") String receiptUrl; - /** - * For more details about AdjustedFlow, please refer to the API Reference. - */ + /** If applicable, contains information about the original flow linked to this Adjustment. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java b/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java index 803eb31723f..a6777cc90a9 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java @@ -12,6 +12,10 @@ import lombok.Getter; import lombok.Setter; +/** + * A FinancialAccount represents a balance and can be used as the source or destination for the + * money management ({@code /v2/money_management}) APIs. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -27,39 +31,6 @@ public class FinancialAccount extends StripeObject implements HasId { /** * Open Enum. Two-letter country code that represents the country where the LegalEntity associated * with the FinancialAccount is based in. - * - *

One of {@code ad}, {@code ae}, {@code af}, {@code ag}, {@code ai}, {@code al}, {@code am}, - * {@code ao}, {@code aq}, {@code ar}, {@code as}, {@code at}, {@code au}, {@code aw}, {@code ax}, - * {@code az}, {@code ba}, {@code bb}, {@code bd}, {@code be}, {@code bf}, {@code bg}, {@code bh}, - * {@code bi}, {@code bj}, {@code bl}, {@code bm}, {@code bn}, {@code bo}, {@code bq}, {@code br}, - * {@code bs}, {@code bt}, {@code bv}, {@code bw}, {@code by}, {@code bz}, {@code ca}, {@code cc}, - * {@code cd}, {@code cf}, {@code cg}, {@code ch}, {@code ci}, {@code ck}, {@code cl}, {@code cm}, - * {@code cn}, {@code co}, {@code cr}, {@code cu}, {@code cv}, {@code cw}, {@code cx}, {@code cy}, - * {@code cz}, {@code de}, {@code dj}, {@code dk}, {@code dm}, {@code do}, {@code dz}, {@code ec}, - * {@code ee}, {@code eg}, {@code eh}, {@code er}, {@code es}, {@code et}, {@code fi}, {@code fj}, - * {@code fk}, {@code fm}, {@code fo}, {@code fr}, {@code ga}, {@code gb}, {@code gd}, {@code ge}, - * {@code gf}, {@code gg}, {@code gh}, {@code gi}, {@code gl}, {@code gm}, {@code gn}, {@code gp}, - * {@code gq}, {@code gr}, {@code gs}, {@code gt}, {@code gu}, {@code gw}, {@code gy}, {@code hk}, - * {@code hm}, {@code hn}, {@code hr}, {@code ht}, {@code hu}, {@code id}, {@code ie}, {@code il}, - * {@code im}, {@code in}, {@code io}, {@code iq}, {@code ir}, {@code is}, {@code it}, {@code je}, - * {@code jm}, {@code jo}, {@code jp}, {@code ke}, {@code kg}, {@code kh}, {@code ki}, {@code km}, - * {@code kn}, {@code kp}, {@code kr}, {@code kw}, {@code ky}, {@code kz}, {@code la}, {@code lb}, - * {@code lc}, {@code li}, {@code lk}, {@code lr}, {@code ls}, {@code lt}, {@code lu}, {@code lv}, - * {@code ly}, {@code ma}, {@code mc}, {@code md}, {@code me}, {@code mf}, {@code mg}, {@code mh}, - * {@code mk}, {@code ml}, {@code mm}, {@code mn}, {@code mo}, {@code mp}, {@code mq}, {@code mr}, - * {@code ms}, {@code mt}, {@code mu}, {@code mv}, {@code mw}, {@code mx}, {@code my}, {@code mz}, - * {@code na}, {@code nc}, {@code ne}, {@code nf}, {@code ng}, {@code ni}, {@code nl}, {@code no}, - * {@code np}, {@code nr}, {@code nu}, {@code nz}, {@code om}, {@code pa}, {@code pe}, {@code pf}, - * {@code pg}, {@code ph}, {@code pk}, {@code pl}, {@code pm}, {@code pn}, {@code pr}, {@code ps}, - * {@code pt}, {@code pw}, {@code py}, {@code qa}, {@code qz}, {@code re}, {@code ro}, {@code rs}, - * {@code ru}, {@code rw}, {@code sa}, {@code sb}, {@code sc}, {@code sd}, {@code se}, {@code sg}, - * {@code sh}, {@code si}, {@code sj}, {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so}, - * {@code sr}, {@code ss}, {@code st}, {@code sv}, {@code sx}, {@code sy}, {@code sz}, {@code tc}, - * {@code td}, {@code tf}, {@code tg}, {@code th}, {@code tj}, {@code tk}, {@code tl}, {@code tm}, - * {@code tn}, {@code to}, {@code tr}, {@code tt}, {@code tv}, {@code tw}, {@code tz}, {@code ua}, - * {@code ug}, {@code um}, {@code us}, {@code uy}, {@code uz}, {@code va}, {@code vc}, {@code ve}, - * {@code vg}, {@code vi}, {@code vn}, {@code vu}, {@code wf}, {@code ws}, {@code xx}, {@code ye}, - * {@code yt}, {@code za}, {@code zm}, or {@code zw}. */ @SerializedName("country") String country; @@ -137,8 +108,9 @@ public class FinancialAccount extends StripeObject implements HasId { String type; /** - * For more details about Balance, please refer to the API - * Reference. + * Multi-currency balance of this FinancialAccount, split by availability state. Each balance is + * represented as a hash where the key is the three-letter ISO currency code, in lowercase, and + * the value is the amount for that currency. */ @Getter @Setter @@ -158,8 +130,8 @@ public static class Balance extends StripeObject { } /** - * For more details about Other, please refer to the API - * Reference. + * If this is a {@code other} FinancialAccount, this hash indicates what the actual type is. + * Upgrade your API version to see it reflected in {@code type}. */ @Getter @Setter @@ -218,8 +190,8 @@ public static class ForwardingSettings extends StripeObject { } /** - * For more details about Storage, please refer to the API - * Reference. + * If this is a {@code storage} FinancialAccount, this hash includes details specific to {@code + * storage} FinancialAccounts. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAddress.java b/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAddress.java index e1e83c0fecb..84d42e783d5 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAddress.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/FinancialAddress.java @@ -9,6 +9,10 @@ import lombok.Getter; import lombok.Setter; +/** + * A FinancialAddress contains information needed to transfer money to a Financial Account. A + * Financial Account can have more than one Financial Address. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -26,36 +30,7 @@ public class FinancialAddress extends StripeObject implements HasId { @SerializedName("credentials") Credentials credentials; - /** - * Open Enum. The currency the FinancialAddress supports. - * - *

One of {@code aed}, {@code afn}, {@code all}, {@code amd}, {@code ang}, {@code aoa}, {@code - * ars}, {@code aud}, {@code awg}, {@code azn}, {@code bam}, {@code bbd}, {@code bdt}, {@code - * bgn}, {@code bhd}, {@code bif}, {@code bmd}, {@code bnd}, {@code bob}, {@code bov}, {@code - * brl}, {@code bsd}, {@code btn}, {@code bwp}, {@code byn}, {@code byr}, {@code bzd}, {@code - * cad}, {@code cdf}, {@code che}, {@code chf}, {@code chw}, {@code clf}, {@code clp}, {@code - * cny}, {@code cop}, {@code cou}, {@code crc}, {@code cuc}, {@code cup}, {@code cve}, {@code - * czk}, {@code djf}, {@code dkk}, {@code dop}, {@code dzd}, {@code eek}, {@code egp}, {@code - * ern}, {@code etb}, {@code eur}, {@code fjd}, {@code fkp}, {@code gbp}, {@code gel}, {@code - * ghc}, {@code ghs}, {@code gip}, {@code gmd}, {@code gnf}, {@code gtq}, {@code gyd}, {@code - * hkd}, {@code hnl}, {@code hrk}, {@code htg}, {@code huf}, {@code idr}, {@code ils}, {@code - * inr}, {@code iqd}, {@code irr}, {@code isk}, {@code jmd}, {@code jod}, {@code jpy}, {@code - * kes}, {@code kgs}, {@code khr}, {@code kmf}, {@code kpw}, {@code krw}, {@code kwd}, {@code - * kyd}, {@code kzt}, {@code lak}, {@code lbp}, {@code lkr}, {@code lrd}, {@code lsl}, {@code - * ltl}, {@code lvl}, {@code lyd}, {@code mad}, {@code mdl}, {@code mga}, {@code mkd}, {@code - * mmk}, {@code mnt}, {@code mop}, {@code mro}, {@code mru}, {@code mur}, {@code mvr}, {@code - * mwk}, {@code mxn}, {@code mxv}, {@code myr}, {@code mzn}, {@code nad}, {@code ngn}, {@code - * nio}, {@code nok}, {@code npr}, {@code nzd}, {@code omr}, {@code pab}, {@code pen}, {@code - * pgk}, {@code php}, {@code pkr}, {@code pln}, {@code pyg}, {@code qar}, {@code ron}, {@code - * rsd}, {@code rub}, {@code rwf}, {@code sar}, {@code sbd}, {@code scr}, {@code sdg}, {@code - * sek}, {@code sgd}, {@code shp}, {@code sle}, {@code sll}, {@code sos}, {@code srd}, {@code - * ssp}, {@code std}, {@code stn}, {@code svc}, {@code syp}, {@code szl}, {@code thb}, {@code - * tjs}, {@code tmt}, {@code tnd}, {@code top}, {@code try}, {@code ttd}, {@code twd}, {@code - * tzs}, {@code uah}, {@code ugx}, {@code usd}, {@code usdb}, {@code usdc}, {@code usn}, {@code - * uyi}, {@code uyu}, {@code uzs}, {@code vef}, {@code ves}, {@code vnd}, {@code vuv}, {@code - * wst}, {@code xaf}, {@code xcd}, {@code xcg}, {@code xof}, {@code xpf}, {@code yer}, {@code - * zar}, {@code zmk}, {@code zmw}, {@code zwd}, {@code zwg}, or {@code zwl}. - */ + /** Open Enum. The currency the FinancialAddress supports. */ @SerializedName("currency") String currency; @@ -94,8 +69,10 @@ public class FinancialAddress extends StripeObject implements HasId { String status; /** - * For more details about Credentials, please refer to the API Reference. + * Object indicates the type of credentials that have been allocated and attached to the + * FinancialAddress. It contains all necessary banking details with which to perform money + * movements with the FinancialAddress. This field is only available for FinancialAddresses with + * an active status. */ @Getter @Setter @@ -124,8 +101,8 @@ public static class Credentials extends StripeObject { UsBankAccount usBankAccount; /** - * For more details about GbBankAccount, please refer to the API Reference. + * The credentials of the UK Bank Account for the FinancialAddress. This contains unique banking + * details such as the sort code, account number, etc. of a UK bank account. */ @Getter @Setter @@ -153,8 +130,8 @@ public static class GbBankAccount extends StripeObject { } /** - * For more details about UsBankAccount, please refer to the API Reference. + * The credentials of the US Bank Account for the FinancialAddress. This contains unique banking + * details such as the routing number, account number, etc. of a US bank account. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/InboundTransfer.java b/src/main/java/com/stripe/model/v2/moneymanagement/InboundTransfer.java index f2d2cd3b9bf..4816f0ba479 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/InboundTransfer.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/InboundTransfer.java @@ -7,10 +7,15 @@ import com.stripe.v2.Amount; import java.time.Instant; import java.util.List; +import java.util.Map; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; +/** + * An InboundTransfer object, representing a money movement from a user owned PaymentMethod to a + * FinancialAccount belonging to the same user. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -70,10 +75,7 @@ public class InboundTransfer extends StripeObject implements HasId { @SerializedName("transfer_history") List transferHistory; - /** - * For more details about From, please refer to the API - * Reference. - */ + /** A nested object containing information about the origin of the InboundTransfer. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -86,10 +88,7 @@ public static class From extends StripeObject { @SerializedName("payment_method") PaymentMethod paymentMethod; - /** - * For more details about PaymentMethod, please refer to the API Reference. - */ + /** The Payment Method object used to create the InboundTransfer. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -107,10 +106,7 @@ public static class PaymentMethod extends StripeObject { } } - /** - * For more details about To, please refer to the API - * Reference. - */ + /** A nested object containing information about the destination of the InboundTransfer. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -138,11 +134,11 @@ public static class TransferHistory extends StripeObject implements HasId { /** The history entry for a processing InboundTransfer. */ @SerializedName("bank_debit_processing") - BankDebitProcessing bankDebitProcessing; + Map bankDebitProcessing; /** The history entry for a queued InboundTransfer. */ @SerializedName("bank_debit_queued") - BankDebitQueued bankDebitQueued; + Map bankDebitQueued; /** The history entry for a returned InboundTransfer. */ @SerializedName("bank_debit_returned") @@ -150,7 +146,7 @@ public static class TransferHistory extends StripeObject implements HasId { /** The history entry for a succeeded InboundTransfer. */ @SerializedName("bank_debit_succeeded") - BankDebitSucceeded bankDebitSucceeded; + Map bankDebitSucceeded; /** Creation time of the HistoryEntry in RFC 3339 format and UTC. */ @SerializedName("created") @@ -182,10 +178,7 @@ public static class TransferHistory extends StripeObject implements HasId { @SerializedName("type") String type; - /** - * For more details about BankDebitFailed, please refer to the API Reference. - */ + /** The history entry for a failed InboundTransfer. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -201,28 +194,7 @@ public static class BankDebitFailed extends StripeObject { String failureReason; } - /** - * For more details about BankDebitProcessing, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class BankDebitProcessing extends StripeObject {} - - /** - * For more details about BankDebitQueued, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class BankDebitQueued extends StripeObject {} - - /** - * For more details about BankDebitReturned, please refer to the API Reference. - */ + /** The history entry for a returned InboundTransfer. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -237,14 +209,5 @@ public static class BankDebitReturned extends StripeObject { @SerializedName("return_reason") String returnReason; } - - /** - * For more details about BankDebitSucceeded, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class BankDebitSucceeded extends StripeObject {} } } diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPayment.java b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPayment.java index 7de9c1f2081..7cf929f9692 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPayment.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPayment.java @@ -11,6 +11,10 @@ import lombok.Getter; import lombok.Setter; +/** + * OutboundPayment represents a single money movement from one FinancialAccount you own to a payout + * method someone else owns. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -139,10 +143,7 @@ public class OutboundPayment extends StripeObject implements HasId { @SerializedName("trace_id") TraceId traceId; - /** - * For more details about DeliveryOptions, please refer to the API Reference. - */ + /** Delivery options to be used to send the OutboundPayment. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -156,10 +157,7 @@ public static class DeliveryOptions extends StripeObject { String bankAccount; } - /** - * For more details about From, please refer to the API - * Reference. - */ + /** The FinancialAccount that funds were pulled from. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -173,10 +171,7 @@ public static class From extends StripeObject { String financialAccount; } - /** - * For more details about RecipientNotification, please refer to the API Reference. - */ + /** Details about the OutboundPayment notification settings for recipient. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -192,10 +187,7 @@ public static class RecipientNotification extends StripeObject { String setting; } - /** - * For more details about StatusDetails, please refer to the API Reference. - */ + /** Status details for an OutboundPayment in a {@code failed} or {@code returned} state. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -208,10 +200,7 @@ public static class StatusDetails extends StripeObject { @SerializedName("returned") Returned returned; - /** - * For more details about Failed, please refer to the API - * Reference. - */ + /** The {@code failed} status reason. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -227,10 +216,7 @@ public static class Failed extends StripeObject { String reason; } - /** - * For more details about Returned, please refer to the API Reference. - */ + /** The {@code returned} status reason. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -249,10 +235,7 @@ public static class Returned extends StripeObject { } } - /** - * For more details about StatusTransitions, please refer to the API Reference. - */ + /** Hash containing timestamps of when the object transitioned to a particular status. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -290,10 +273,7 @@ public static class StatusTransitions extends StripeObject { Instant returnedAt; } - /** - * For more details about To, please refer to the API - * Reference. - */ + /** To which payout method the OutboundPayment was sent. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -312,8 +292,8 @@ public static class To extends StripeObject { } /** - * For more details about TraceId, please refer to the API - * Reference. + * A unique identifier that can be used to track this OutboundPayment with recipient bank. Banks + * might call this a “reference number” or something similar. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPaymentQuote.java b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPaymentQuote.java index 847b29fdb72..07e925b9171 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPaymentQuote.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundPaymentQuote.java @@ -12,6 +12,10 @@ import lombok.Getter; import lombok.Setter; +/** + * OutboundPaymentQuote represents a quote that provides fee and amount estimates for + * OutboundPayment. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -68,10 +72,7 @@ public class OutboundPaymentQuote extends StripeObject implements HasId { @SerializedName("to") To to; - /** - * For more details about DeliveryOptions, please refer to the API Reference. - */ + /** Delivery options to be used to send the OutboundPayment. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -107,10 +108,7 @@ public static class EstimatedFee extends StripeObject { String type; } - /** - * For more details about From, please refer to the API - * Reference. - */ + /** Details about the sender of an OutboundPaymentQuote. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -124,10 +122,7 @@ public static class From extends StripeObject { String financialAccount; } - /** - * For more details about FxQuote, please refer to the API - * Reference. - */ + /** The underlying FXQuote details for the OutboundPaymentQuote. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -176,10 +171,7 @@ public static class Rate extends StripeObject { } } - /** - * For more details about To, please refer to the API - * Reference. - */ + /** Details about the recipient of an OutboundPaymentQuote. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundSetupIntent.java b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundSetupIntent.java index 38322c6472e..fd348e55d91 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundSetupIntent.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundSetupIntent.java @@ -9,6 +9,7 @@ import lombok.Getter; import lombok.Setter; +/** Use the OutboundSetupIntent API to create and setup usable payout methods. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -42,9 +43,7 @@ public class OutboundSetupIntent extends StripeObject implements HasId { @SerializedName("object") String object; - /** - * Information about the payout method that’s created and linked to this outbound setup intent. - */ + /** Use the PayoutMethods API to list and interact with PayoutMethod objects. */ @SerializedName("payout_method") PayoutMethod payoutMethod; @@ -65,10 +64,7 @@ public class OutboundSetupIntent extends StripeObject implements HasId { @SerializedName("usage_intent") String usageIntent; - /** - * For more details about NextAction, please refer to the API Reference. - */ + /** Specifies which actions needs to be taken next to continue setup of the credential. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -85,10 +81,7 @@ public static class NextAction extends StripeObject { @SerializedName("type") String type; - /** - * For more details about ConfirmationOfPayee, please refer to the API Reference. - */ + /** Confirmation of Payee details. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundTransfer.java b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundTransfer.java index 8749352020d..f6c67995654 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/OutboundTransfer.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/OutboundTransfer.java @@ -11,6 +11,10 @@ import lombok.Getter; import lombok.Setter; +/** + * OutboundTransfer represents a single money movement from one FinancialAccount you own to a payout + * method you also own. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -128,10 +132,7 @@ public class OutboundTransfer extends StripeObject implements HasId { @SerializedName("trace_id") TraceId traceId; - /** - * For more details about DeliveryOptions, please refer to the API Reference. - */ + /** Delivery options to be used to send the OutboundTransfer. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -145,10 +146,7 @@ public static class DeliveryOptions extends StripeObject { String bankAccount; } - /** - * For more details about From, please refer to the API - * Reference. - */ + /** The FinancialAccount that funds were pulled from. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -162,10 +160,7 @@ public static class From extends StripeObject { String financialAccount; } - /** - * For more details about StatusDetails, please refer to the API Reference. - */ + /** Status details for an OutboundTransfer in a {@code failed} or {@code returned} state. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -178,10 +173,7 @@ public static class StatusDetails extends StripeObject { @SerializedName("returned") Returned returned; - /** - * For more details about Failed, please refer to the API - * Reference. - */ + /** The {@code failed} status reason. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -197,10 +189,7 @@ public static class Failed extends StripeObject { String reason; } - /** - * For more details about Returned, please refer to the API Reference. - */ + /** The {@code returned} status reason. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -219,10 +208,7 @@ public static class Returned extends StripeObject { } } - /** - * For more details about StatusTransitions, please refer to the API Reference. - */ + /** Hash containing timestamps of when the object transitioned to a particular status. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -260,10 +246,7 @@ public static class StatusTransitions extends StripeObject { Instant returnedAt; } - /** - * For more details about To, please refer to the API - * Reference. - */ + /** To which payout method the OutboundTransfer was sent. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -278,8 +261,8 @@ public static class To extends StripeObject { } /** - * For more details about TraceId, please refer to the API - * Reference. + * A unique identifier that can be used to track this OutboundTransfer with recipient bank. Banks + * might call this a “reference number” or something similar. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java b/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java index 076373b395e..4d2af2abd08 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java @@ -10,6 +10,7 @@ import lombok.Getter; import lombok.Setter; +/** Use the PayoutMethods API to list and interact with PayoutMethod objects. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -70,10 +71,7 @@ public class PayoutMethod extends StripeObject implements HasId { @SerializedName("usage_status") UsageStatus usageStatus; - /** - * For more details about BankAccount, please refer to the API Reference. - */ + /** The PayoutMethodBankAccount object details. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -123,10 +121,7 @@ public static class BankAccount extends StripeObject { List supportedCurrencies; } - /** - * For more details about Card, please refer to the API - * Reference. - */ + /** The PayoutMethodCard object details. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -154,8 +149,8 @@ public static class Card extends StripeObject { } /** - * For more details about UsageStatus, please refer to the API Reference. + * Indicates whether the payout method has met the necessary requirements for outbound money + * movement. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethodsBankAccountSpec.java b/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethodsBankAccountSpec.java index a721c884e0c..23b774f7353 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethodsBankAccountSpec.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethodsBankAccountSpec.java @@ -9,6 +9,7 @@ import lombok.Getter; import lombok.Setter; +/** The PayoutMethodsBankAccountSpec object. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -63,11 +64,11 @@ public static class Field extends StripeObject { /** The maximum length of the field. */ @SerializedName("max_length") - Integer maxLength; + Long maxLength; /** THe minimum length of the field. */ @SerializedName("min_length") - Integer minLength; + Long minLength; /** The placeholder value of the field. */ @SerializedName("placeholder") @@ -81,17 +82,16 @@ public static class Field extends StripeObject { @SerializedName("validation_regex") String validationRegex; - /** - * For more details about LocalNameHuman, please refer to the API Reference. - */ + /** The human readable local name of the field. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class LocalNameHuman extends StripeObject { + /** The default content of the localizable string. */ @SerializedName("content") String content; + /** A unique key representing the instance of this localizable string. */ @SerializedName("localization_key") String localizationKey; } diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java index c627328e30b..a1f7fbb28fd 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java @@ -10,6 +10,10 @@ import lombok.Getter; import lombok.Setter; +/** + * Use ReceivedCredits API to retrieve information on when, where, and how funds are sent into your + * FinancialAccount. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -103,8 +107,8 @@ public class ReceivedCredit extends StripeObject implements HasId { String type; /** - * For more details about BalanceTransfer, please refer to the API Reference. + * This object stores details about the originating Stripe transaction that resulted in the + * ReceivedCredit. Present if {@code type} field value is {@code balance_transfer}. */ @Getter @Setter @@ -136,8 +140,8 @@ public static class BalanceTransfer extends StripeObject { } /** - * For more details about BankTransfer, please refer to the API Reference. + * This object stores details about the originating banking transaction that resulted in the + * ReceivedCredit. Present if {@code type} field value is {@code external_credit}. */ @Getter @Setter @@ -174,8 +178,8 @@ public static class BankTransfer extends StripeObject { UsBankAccount usBankAccount; /** - * For more details about GbBankAccount, please refer to the API Reference. + * Hash containing the transaction bank details. Present if {@code payment_method_type} field + * value is {@code gb_bank_account}. */ @Getter @Setter @@ -207,8 +211,8 @@ public static class GbBankAccount extends StripeObject { } /** - * For more details about UsBankAccount, please refer to the API Reference. + * Hash containing the transaction bank details. Present if {@code payment_method_type} field + * value is {@code us_bank_account}. */ @Getter @Setter @@ -237,8 +241,8 @@ public static class UsBankAccount extends StripeObject { } /** - * For more details about StatusDetails, please refer to the API Reference. + * This hash contains detailed information that elaborates on the specific status of the + * ReceivedCredit. e.g the reason behind a failure if the status is marked as {@code failed}. */ @Getter @Setter @@ -259,8 +263,8 @@ public static class StatusDetails extends StripeObject { Returned returned; /** - * For more details about Failed, please refer to the API - * Reference. + * Hash that provides additional information regarding the reason behind a {@code failed} + * ReceivedCredit status. It is only present when the ReceivedCredit status is {@code failed}. */ @Getter @Setter @@ -277,8 +281,8 @@ public static class Failed extends StripeObject { } /** - * For more details about Returned, please refer to the API Reference. + * Hash that provides additional information regarding the reason behind a {@code returned} + * ReceivedCredit status. It is only present when the ReceivedCredit status is {@code returned}. */ @Getter @Setter @@ -294,10 +298,7 @@ public static class Returned extends StripeObject { } } - /** - * For more details about StatusTransitions, please refer to the API Reference. - */ + /** Hash containing timestamps of when the object transitioned to a particular status. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java index e0ffe046d10..35e84bcd2d7 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java @@ -10,6 +10,7 @@ import lombok.Getter; import lombok.Setter; +/** ReceivedDebit resource. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -91,8 +92,8 @@ public class ReceivedDebit extends StripeObject implements HasId { String type; /** - * For more details about BankTransfer, please refer to the API Reference. + * This object stores details about the originating banking transaction that resulted in the + * ReceivedDebit. Present if {@code type} field value is {@code bank_transfer}. */ @Getter @Setter @@ -118,10 +119,7 @@ public static class BankTransfer extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; - /** - * For more details about UsBankAccount, please refer to the API Reference. - */ + /** The payment method used to originate the debit. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -144,10 +142,7 @@ public static class UsBankAccount extends StripeObject { } } - /** - * For more details about StatusDetails, please refer to the API Reference. - */ + /** Detailed information about the status of the ReceivedDebit. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -160,8 +155,8 @@ public static class StatusDetails extends StripeObject { Failed failed; /** - * For more details about Failed, please refer to the API - * Reference. + * Information that elaborates on the {@code failed} status of a ReceivedDebit. It is only + * present when the ReceivedDebit status is {@code failed}. */ @Getter @Setter @@ -178,10 +173,7 @@ public static class Failed extends StripeObject { } } - /** - * For more details about StatusTransitions, please refer to the API Reference. - */ + /** The time at which the ReceivedDebit transitioned to a particular status. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/Transaction.java b/src/main/java/com/stripe/model/v2/moneymanagement/Transaction.java index 68eec32418e..1cad83d755f 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/Transaction.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/Transaction.java @@ -10,6 +10,13 @@ import lombok.Getter; import lombok.Setter; +/** + * Use Transactions to view changes to your FinancialAccount balance over time. Every flow that + * moves money, such as OutboundPayments or ReceivedCredits, will have one or more Transactions that + * describes how the flow impacted your balance. Note that while the FinancialAccount balance will + * always be up to date, be aware that Transactions and TransactionEntries are created shortly after + * to reflect changes. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -88,8 +95,8 @@ public class Transaction extends StripeObject implements HasId { StatusTransitions statusTransitions; /** - * For more details about BalanceImpact, please refer to the API Reference. + * The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to + * sum of its TransactionEntries that have {@code effective_at}s in the past. */ @Getter @Setter @@ -108,10 +115,7 @@ public static class BalanceImpact extends StripeObject { Amount outboundPending; } - /** - * For more details about Flow, please refer to the API - * Reference. - */ + /** Details about the Flow object that created the Transaction. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -163,10 +167,7 @@ public static class Flow extends StripeObject { String type; } - /** - * For more details about StatusTransitions, please refer to the API Reference. - */ + /** Timestamps for when the Transaction transitioned to a particular status. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/TransactionEntry.java b/src/main/java/com/stripe/model/v2/moneymanagement/TransactionEntry.java index c0296b2a8a5..87d1e6f2e15 100644 --- a/src/main/java/com/stripe/model/v2/moneymanagement/TransactionEntry.java +++ b/src/main/java/com/stripe/model/v2/moneymanagement/TransactionEntry.java @@ -10,6 +10,10 @@ import lombok.Getter; import lombok.Setter; +/** + * TransactionEntries represent individual money movements across different states within a + * Transaction. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -58,10 +62,7 @@ public class TransactionEntry extends StripeObject implements HasId { @SerializedName("transaction_details") TransactionDetails transactionDetails; - /** - * For more details about BalanceImpact, please refer to the API Reference. - */ + /** The delta to the FinancialAccount's balance. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -79,10 +80,7 @@ public static class BalanceImpact extends StripeObject { Amount outboundPending; } - /** - * For more details about TransactionDetails, please refer to the API Reference. - */ + /** Details copied from the transaction that this TransactionEntry belongs to. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -106,10 +104,7 @@ public static class TransactionDetails extends StripeObject { @SerializedName("flow") Flow flow; - /** - * For more details about Flow, please refer to the API - * Reference. - */ + /** Details about the Flow object that created the Transaction. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java b/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java index 8f6cd546414..0d26e1c7c28 100644 --- a/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java +++ b/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java @@ -11,6 +11,7 @@ import lombok.Getter; import lombok.Setter; +/** OffSessionPayment resource. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -143,17 +144,14 @@ public class OffSessionPayment extends StripeObject implements HasId { @SerializedName("transfer_data") TransferData transferData; - /** - * For more details about RetryDetails, please refer to the API Reference. - */ + /** Details about the OffSessionPayment retries. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class RetryDetails extends StripeObject { /** Number of authorization attempts so far. */ @SerializedName("attempts") - Integer attempts; + Long attempts; /** * Indicates the strategy for how you want Stripe to retry the payment. @@ -165,8 +163,9 @@ public static class RetryDetails extends StripeObject { } /** - * For more details about TransferData, please refer to the API Reference. + * The data that automatically creates a Transfer after the payment finalizes. Learn more about + * the use case for connected + * accounts. */ @Getter @Setter @@ -181,7 +180,7 @@ public static class TransferData extends StripeObject { * unit (e.g., 100 cents to charge $1.00). */ @SerializedName("amount") - Integer amount; + Long amount; /** * The account (if any) that the payment is attributed to for tax reporting, and where funds diff --git a/src/main/java/com/stripe/model/v2/reporting/Report.java b/src/main/java/com/stripe/model/v2/reporting/Report.java deleted file mode 100644 index 615b2a2a775..00000000000 --- a/src/main/java/com/stripe/model/v2/reporting/Report.java +++ /dev/null @@ -1,150 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.model.v2.reporting; - -import com.google.gson.annotations.SerializedName; -import com.stripe.model.HasId; -import com.stripe.model.StripeObject; -import java.time.Instant; -import java.util.List; -import java.util.Map; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.Setter; - -@Getter -@Setter -@EqualsAndHashCode(callSuper = false) -public class Report extends StripeObject implements HasId { - /** The unique identifier of the {@code Report} object. */ - @Getter(onMethod_ = {@Override}) - @SerializedName("id") - String id; - - /** - * Has the value {@code true} if the object exists in live mode or the value {@code false} if the - * object exists in test mode. - */ - @SerializedName("livemode") - Boolean livemode; - - /** The human-readable name of the {@code Report}. */ - @SerializedName("name") - String name; - - /** - * String representing the object's type. Objects of the same type share the same value of the - * object field. - * - *

Equal to {@code v2.reporting.report}. - */ - @SerializedName("object") - String object; - - /** - * Specification of the parameters that the {@code Report} accepts. It details each parameter's - * name, description, whether it is required, and any validations performed. - */ - @SerializedName("parameters") - Map parameters; - - /** - * For more details about Parameter, please refer to the API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Parameter extends StripeObject { - /** For array parameters, provides details about the array elements. */ - @SerializedName("array_details") - ArrayDetails arrayDetails; - - /** Explains the purpose and usage of the parameter. */ - @SerializedName("description") - String description; - - /** For enum parameters, provides the list of allowed values. */ - @SerializedName("enum_details") - EnumDetails enumDetails; - - /** Indicates whether the parameter must be provided. */ - @SerializedName("required") - Boolean required; - - /** For timestamp parameters, specifies the allowed date range. */ - @SerializedName("timestamp_details") - TimestampDetails timestampDetails; - - /** - * The data type of the parameter. - * - *

One of {@code array}, {@code enum}, {@code string}, or {@code timestamp}. - */ - @SerializedName("type") - String type; - - /** - * For more details about ArrayDetails, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class ArrayDetails extends StripeObject { - /** - * Data type of the elements in the array. - * - *

Equal to {@code enum}. - */ - @SerializedName("element_type") - String elementType; - - /** Details about enum elements in the array. */ - @SerializedName("enum_details") - EnumDetails enumDetails; - - /** - * For more details about EnumDetails, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class EnumDetails extends StripeObject { - /** Allowed values of the enum. */ - @SerializedName("allowed_values") - List allowedValues; - } - } - - /** - * For more details about EnumDetails, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class EnumDetails extends StripeObject { - /** Allowed values of the enum. */ - @SerializedName("allowed_values") - List allowedValues; - } - - /** - * For more details about TimestampDetails, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class TimestampDetails extends StripeObject { - /** Maximum permitted timestamp which can be requested. */ - @SerializedName("max") - Instant max; - - /** Minimum permitted timestamp which can be requested. */ - @SerializedName("min") - Instant min; - } - } -} diff --git a/src/main/java/com/stripe/model/v2/reporting/ReportRun.java b/src/main/java/com/stripe/model/v2/reporting/ReportRun.java deleted file mode 100644 index da1c5258ca9..00000000000 --- a/src/main/java/com/stripe/model/v2/reporting/ReportRun.java +++ /dev/null @@ -1,215 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.model.v2.reporting; - -import com.google.gson.annotations.SerializedName; -import com.stripe.model.HasId; -import com.stripe.model.StripeObject; -import java.time.Instant; -import java.util.List; -import java.util.Map; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.Setter; - -@Getter -@Setter -@EqualsAndHashCode(callSuper = false) -public class ReportRun extends StripeObject implements HasId { - /** Time at which the object was created. */ - @SerializedName("created") - Instant created; - - /** The unique identifier of the {@code ReportRun} object. */ - @Getter(onMethod_ = {@Override}) - @SerializedName("id") - String id; - - /** - * Has the value {@code true} if the object exists in live mode or the value {@code false} if the - * object exists in test mode. - */ - @SerializedName("livemode") - Boolean livemode; - - /** - * String representing the object's type. Objects of the same type share the same value of the - * object field. - * - *

Equal to {@code v2.reporting.report_run}. - */ - @SerializedName("object") - String object; - - /** The unique identifier of the {@code Report} object which was run. */ - @SerializedName("report") - String report; - - /** The human-readable name of the {@code Report} which was run. */ - @SerializedName("report_name") - String reportName; - - /** The parameters used to customize the generation of the report. */ - @SerializedName("report_parameters") - Map reportParameters; - - /** Details how to retrieve the results of a successfully completed {@code ReportRun}. */ - @SerializedName("result") - Result result; - - /** The options specified for customizing the output file of the {@code ReportRun}. */ - @SerializedName("result_options") - ResultOptions resultOptions; - - /** - * The current status of the {@code ReportRun}. - * - *

One of {@code failed}, {@code running}, or {@code succeeded}. - */ - @SerializedName("status") - String status; - - /** - * Additional details about the current state of the {@code ReportRun}. The field is currently - * only populated when a {@code ReportRun} is in the {@code failed} state, providing more - * information about why the report failed to generate successfully. - */ - @SerializedName("status_details") - Map statusDetails; - - /** - * For more details about ReportParameter, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class ReportParameter extends StripeObject { - /** Parameter with an array data type. */ - @SerializedName("array_value") - ArrayValue arrayValue; - - /** Parameter with a string data type. */ - @SerializedName("string_value") - String stringValue; - - /** Parameter with a timestamp data type. */ - @SerializedName("timestamp_value") - Instant timestampValue; - - /** - * For more details about ArrayValue, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class ArrayValue extends StripeObject { - /** The list of string values in the array. */ - @SerializedName("items") - List items; - } - } - - /** - * For more details about Result, please refer to the API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Result extends StripeObject { - /** - * Contains metadata about the file produced by the {@code ReportRun}, including its content - * type, size, and a URL to download its contents. - */ - @SerializedName("file") - File file; - - /** - * The type of the {@code ReportRun} result. - * - *

Equal to {@code file}. - */ - @SerializedName("type") - String type; - - /** - * For more details about File, please refer to the API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class File extends StripeObject { - /** - * The content type of the file. - * - *

One of {@code csv}, or {@code zip}. - */ - @SerializedName("content_type") - String contentType; - - /** A pre-signed URL that allows secure, time-limited access to download the file. */ - @SerializedName("download_url") - DownloadUrl downloadUrl; - - /** The total size of the file in bytes. */ - @SerializedName("size") - Long size; - - /** - * For more details about DownloadUrl, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class DownloadUrl extends StripeObject { - /** The time that the URL expires. */ - @SerializedName("expires_at") - Instant expiresAt; - - /** The URL that can be used for accessing the file. */ - @SerializedName("url") - String url; - } - } - } - - /** - * For more details about ResultOptions, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class ResultOptions extends StripeObject { - /** - * If set, the generated report file will be compressed into a ZIP folder. This is useful for - * reducing file size and download time for large reports. - */ - @SerializedName("compress_file") - Boolean compressFile; - } - - /** - * For more details about StatusDetail, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class StatusDetail extends StripeObject { - /** - * Error code categorizing the reason the {@code ReportRun} failed. - * - *

One of {@code file_size_above_limit}, or {@code internal_error}. - */ - @SerializedName("error_code") - String errorCode; - - /** Error message with additional details about the failure. */ - @SerializedName("error_message") - String errorMessage; - } -} diff --git a/src/main/java/com/stripe/model/v2/tax/AutomaticRule.java b/src/main/java/com/stripe/model/v2/tax/AutomaticRule.java index 8be60bbf2e1..a0537de9048 100644 --- a/src/main/java/com/stripe/model/v2/tax/AutomaticRule.java +++ b/src/main/java/com/stripe/model/v2/tax/AutomaticRule.java @@ -9,6 +9,7 @@ import lombok.Getter; import lombok.Setter; +/** An AutomaticRule holds automatic Tax configuration for a BillableItem. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/net/ApiService.java b/src/main/java/com/stripe/net/ApiService.java index e2383b97705..8c9d22f7809 100644 --- a/src/main/java/com/stripe/net/ApiService.java +++ b/src/main/java/com/stripe/net/ApiService.java @@ -1,7 +1,7 @@ package com.stripe.net; import com.stripe.exception.StripeException; -import com.stripe.model.StripeObjectInterface; +import com.stripe.model.StripeObject; import java.io.InputStream; import java.lang.reflect.Type; import lombok.AccessLevel; @@ -17,7 +17,7 @@ protected ApiService(StripeResponseGetter responseGetter) { } @SuppressWarnings("TypeParameterUnusedInFormals") - protected T request(ApiRequest request, Type typeToken) + protected T request(ApiRequest request, Type typeToken) throws StripeException { return this.getResponseGetter().request(request.addUsage("stripe_client"), typeToken); } diff --git a/src/main/java/com/stripe/net/BearerTokenAuthenticator.java b/src/main/java/com/stripe/net/BearerTokenAuthenticator.java index 03c9faa8d8b..44bf2e21819 100644 --- a/src/main/java/com/stripe/net/BearerTokenAuthenticator.java +++ b/src/main/java/com/stripe/net/BearerTokenAuthenticator.java @@ -1,5 +1,6 @@ package com.stripe.net; +import com.stripe.exception.ApiKeyMissingException; import com.stripe.exception.AuthenticationException; import com.stripe.exception.StripeException; import com.stripe.util.StringUtils; @@ -11,7 +12,7 @@ public final class BearerTokenAuthenticator implements Authenticator { public BearerTokenAuthenticator(String apiKey) { if (apiKey == null) { - throw new IllegalArgumentException("apiKey should be not-null"); + throw new ApiKeyMissingException("API key cannot be null. Set Stripe.apiKey"); } this.apiKey = apiKey; } diff --git a/src/main/java/com/stripe/net/LiveStripeResponseGetter.java b/src/main/java/com/stripe/net/LiveStripeResponseGetter.java index 76b88830be3..d8fdc544cf7 100644 --- a/src/main/java/com/stripe/net/LiveStripeResponseGetter.java +++ b/src/main/java/com/stripe/net/LiveStripeResponseGetter.java @@ -117,7 +117,7 @@ private StripeRequest toRawStripeRequest(RawApiRequest apiRequest, RequestOption @Override @SuppressWarnings({"TypeParameterUnusedInFormals", "unchecked"}) - public T request(ApiRequest apiRequest, Type typeToken) + public T request(ApiRequest apiRequest, Type typeToken) throws StripeException { RequestOptions mergedOptions = RequestOptions.merge(this.options, apiRequest.getOptions()); @@ -229,7 +229,7 @@ public StripeResponse rawRequest(RawApiRequest apiRequest) throws StripeExceptio @Override @SuppressWarnings({"TypeParameterUnusedInFormals", "deprecation"}) - public T request( + public T request( BaseAddress baseAddress, ApiResource.RequestMethod method, String path, diff --git a/src/main/java/com/stripe/net/StripeResponseGetter.java b/src/main/java/com/stripe/net/StripeResponseGetter.java index cb6b54cf10d..c55d9958661 100644 --- a/src/main/java/com/stripe/net/StripeResponseGetter.java +++ b/src/main/java/com/stripe/net/StripeResponseGetter.java @@ -1,7 +1,7 @@ package com.stripe.net; import com.stripe.exception.StripeException; -import com.stripe.model.StripeObjectInterface; +import com.stripe.model.StripeObject; import java.io.InputStream; import java.lang.reflect.Type; import java.util.Map; @@ -10,7 +10,7 @@ public interface StripeResponseGetter { /** @deprecated Use {@link #request(ApiRequest, Type)} instead. */ @SuppressWarnings("TypeParameterUnusedInFormals") @Deprecated - T request( + T request( BaseAddress baseAddress, ApiResource.RequestMethod method, String path, @@ -21,7 +21,7 @@ T request( throws StripeException; @SuppressWarnings("TypeParameterUnusedInFormals") - default T request(ApiRequest request, Type typeToken) + default T request(ApiRequest request, Type typeToken) throws StripeException { return request( request.getBaseAddress(), diff --git a/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java b/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java index 61f335d1586..4a5f3a32883 100644 --- a/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -46,7 +47,7 @@ public class ActionServiceCreateParams extends ApiRequestParams { /** Required. The length of the interval for assessing service. */ @SerializedName("service_interval_count") - Integer serviceIntervalCount; + Long serviceIntervalCount; /** Required. The type of the service action. */ @SerializedName("type") @@ -58,7 +59,7 @@ private ActionServiceCreateParams( Map extraParams, String lookupKey, ServiceInterval serviceInterval, - Integer serviceIntervalCount, + Long serviceIntervalCount, Type type) { this.creditGrant = creditGrant; this.creditGrantPerTenant = creditGrantPerTenant; @@ -84,7 +85,7 @@ public static class Builder { private ServiceInterval serviceInterval; - private Integer serviceIntervalCount; + private Long serviceIntervalCount; private Type type; @@ -158,7 +159,7 @@ public Builder setServiceInterval(ActionServiceCreateParams.ServiceInterval serv } /** Required. The length of the interval for assessing service. */ - public Builder setServiceIntervalCount(Integer serviceIntervalCount) { + public Builder setServiceIntervalCount(Long serviceIntervalCount) { this.serviceIntervalCount = serviceIntervalCount; return this; } @@ -181,10 +182,6 @@ public static class CreditGrant { @SerializedName("applicability_config") ApplicabilityConfig applicabilityConfig; - /** The category of the credit grant. */ - @SerializedName("category") - Category category; - /** Required. The expiry configuration for the credit grant. */ @SerializedName("expiry_config") ExpiryConfig expiryConfig; @@ -202,28 +199,17 @@ public static class CreditGrant { @SerializedName("name") String name; - /** - * The desired priority for applying this credit grant. If not specified, it will be set to the - * default value of 50. The highest priority is 0 and the lowest is 100. - */ - @SerializedName("priority") - Integer priority; - private CreditGrant( com.stripe.param.v2.billing.ActionServiceCreateParams.CreditGrant.Amount amount, ApplicabilityConfig applicabilityConfig, - Category category, ExpiryConfig expiryConfig, Map extraParams, - String name, - Integer priority) { + String name) { this.amount = amount; this.applicabilityConfig = applicabilityConfig; - this.category = category; this.expiryConfig = expiryConfig; this.extraParams = extraParams; this.name = name; - this.priority = priority; } public static Builder builder() { @@ -235,26 +221,16 @@ public static class Builder { private ApplicabilityConfig applicabilityConfig; - private Category category; - private ExpiryConfig expiryConfig; private Map extraParams; private String name; - private Integer priority; - /** Finalize and obtain parameter instance from this builder. */ public ActionServiceCreateParams.CreditGrant build() { return new ActionServiceCreateParams.CreditGrant( - this.amount, - this.applicabilityConfig, - this.category, - this.expiryConfig, - this.extraParams, - this.name, - this.priority); + this.amount, this.applicabilityConfig, this.expiryConfig, this.extraParams, this.name); } /** Required. The amount of the credit grant. */ @@ -270,12 +246,6 @@ public Builder setApplicabilityConfig( return this; } - /** The category of the credit grant. */ - public Builder setCategory(ActionServiceCreateParams.CreditGrant.Category category) { - this.category = category; - return this; - } - /** Required. The expiry configuration for the credit grant. */ public Builder setExpiryConfig( ActionServiceCreateParams.CreditGrant.ExpiryConfig expiryConfig) { @@ -314,15 +284,6 @@ public Builder setName(String name) { this.name = name; return this; } - - /** - * The desired priority for applying this credit grant. If not specified, it will be set to - * the default value of 50. The highest priority is 0 and the lowest is 100. - */ - public Builder setPriority(Integer priority) { - this.priority = priority; - return this; - } } @Getter @@ -463,9 +424,9 @@ public static class CustomPricingUnit { * string. */ @SerializedName("value") - String value; + BigDecimal value; - private CustomPricingUnit(Map extraParams, String id, String value) { + private CustomPricingUnit(Map extraParams, String id, BigDecimal value) { this.extraParams = extraParams; this.id = id; this.value = value; @@ -480,7 +441,7 @@ public static class Builder { private String id; - private String value; + private BigDecimal value; /** Finalize and obtain parameter instance from this builder. */ public ActionServiceCreateParams.CreditGrant.Amount.CustomPricingUnit build() { @@ -528,7 +489,7 @@ public Builder setId(String id) { * Required. The value of the credit grant, decimal value represented as * a string. */ - public Builder setValue(String value) { + public Builder setValue(BigDecimal value) { this.value = value; return this; } @@ -847,21 +808,6 @@ public enum Type implements ApiRequestParams.EnumParam { } } } - - public enum Category implements ApiRequestParams.EnumParam { - @SerializedName("paid") - PAID("paid"), - - @SerializedName("promotional") - PROMOTIONAL("promotional"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Category(String value) { - this.value = value; - } - } } @Getter @@ -875,10 +821,6 @@ public static class CreditGrantPerTenant { @SerializedName("applicability_config") ApplicabilityConfig applicabilityConfig; - /** The category of the credit grant. */ - @SerializedName("category") - Category category; - /** Required. The expiry configuration for the credit grant. */ @SerializedName("expiry_config") ExpiryConfig expiryConfig; @@ -900,30 +842,19 @@ public static class CreditGrantPerTenant { @SerializedName("name") String name; - /** - * The desired priority for applying this credit grant. If not specified, it will be set to the - * default value of 50. The highest priority is 0 and the lowest is 100. - */ - @SerializedName("priority") - Integer priority; - private CreditGrantPerTenant( com.stripe.param.v2.billing.ActionServiceCreateParams.CreditGrantPerTenant.Amount amount, ApplicabilityConfig applicabilityConfig, - Category category, ExpiryConfig expiryConfig, Map extraParams, GrantCondition grantCondition, - String name, - Integer priority) { + String name) { this.amount = amount; this.applicabilityConfig = applicabilityConfig; - this.category = category; this.expiryConfig = expiryConfig; this.extraParams = extraParams; this.grantCondition = grantCondition; this.name = name; - this.priority = priority; } public static Builder builder() { @@ -936,8 +867,6 @@ public static class Builder { private ApplicabilityConfig applicabilityConfig; - private Category category; - private ExpiryConfig expiryConfig; private Map extraParams; @@ -946,19 +875,15 @@ public static class Builder { private String name; - private Integer priority; - /** Finalize and obtain parameter instance from this builder. */ public ActionServiceCreateParams.CreditGrantPerTenant build() { return new ActionServiceCreateParams.CreditGrantPerTenant( this.amount, this.applicabilityConfig, - this.category, this.expiryConfig, this.extraParams, this.grantCondition, - this.name, - this.priority); + this.name); } /** Required. The amount of the credit grant. */ @@ -974,12 +899,6 @@ public Builder setApplicabilityConfig( return this; } - /** The category of the credit grant. */ - public Builder setCategory(ActionServiceCreateParams.CreditGrantPerTenant.Category category) { - this.category = category; - return this; - } - /** Required. The expiry configuration for the credit grant. */ public Builder setExpiryConfig( ActionServiceCreateParams.CreditGrantPerTenant.ExpiryConfig expiryConfig) { @@ -1026,15 +945,6 @@ public Builder setName(String name) { this.name = name; return this; } - - /** - * The desired priority for applying this credit grant. If not specified, it will be set to - * the default value of 50. The highest priority is 0 and the lowest is 100. - */ - public Builder setPriority(Integer priority) { - this.priority = priority; - return this; - } } @Getter @@ -1176,9 +1086,9 @@ public static class CustomPricingUnit { * string. */ @SerializedName("value") - String value; + BigDecimal value; - private CustomPricingUnit(Map extraParams, String id, String value) { + private CustomPricingUnit(Map extraParams, String id, BigDecimal value) { this.extraParams = extraParams; this.id = id; this.value = value; @@ -1193,7 +1103,7 @@ public static class Builder { private String id; - private String value; + private BigDecimal value; /** Finalize and obtain parameter instance from this builder. */ public ActionServiceCreateParams.CreditGrantPerTenant.Amount.CustomPricingUnit build() { @@ -1241,7 +1151,7 @@ public Builder setId(String id) { * Required. The value of the credit grant, decimal value represented as * a string. */ - public Builder setValue(String value) { + public Builder setValue(BigDecimal value) { this.value = value; return this; } @@ -2001,21 +1911,6 @@ public enum Type implements ApiRequestParams.EnumParam { } } } - - public enum Category implements ApiRequestParams.EnumParam { - @SerializedName("paid") - PAID("paid"), - - @SerializedName("promotional") - PROMOTIONAL("promotional"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Category(String value) { - this.value = value; - } - } } public enum ServiceInterval implements ApiRequestParams.EnumParam { diff --git a/src/main/java/com/stripe/param/v2/billing/BillSettingCreateParams.java b/src/main/java/com/stripe/param/v2/billing/BillSettingCreateParams.java index 8f404e4652b..606585fd130 100644 --- a/src/main/java/com/stripe/param/v2/billing/BillSettingCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/BillSettingCreateParams.java @@ -402,10 +402,9 @@ public static class TimeUntilDue { * interval_count=30, the invoice will be due in 30 days. */ @SerializedName("interval_count") - Integer intervalCount; + Long intervalCount; - private TimeUntilDue( - Map extraParams, Interval interval, Integer intervalCount) { + private TimeUntilDue(Map extraParams, Interval interval, Long intervalCount) { this.extraParams = extraParams; this.interval = interval; this.intervalCount = intervalCount; @@ -420,7 +419,7 @@ public static class Builder { private Interval interval; - private Integer intervalCount; + private Long intervalCount; /** Finalize and obtain parameter instance from this builder. */ public BillSettingCreateParams.Invoice.TimeUntilDue build() { @@ -466,7 +465,7 @@ public Builder setInterval(BillSettingCreateParams.Invoice.TimeUntilDue.Interval * Required. The number of interval units. For example, if interval=day and * interval_count=30, the invoice will be due in 30 days. */ - public Builder setIntervalCount(Integer intervalCount) { + public Builder setIntervalCount(Long intervalCount) { this.intervalCount = intervalCount; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/BillSettingListParams.java b/src/main/java/com/stripe/param/v2/billing/BillSettingListParams.java index 7d1d8aeab8b..b972c7ab601 100644 --- a/src/main/java/com/stripe/param/v2/billing/BillSettingListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/BillSettingListParams.java @@ -24,7 +24,7 @@ public class BillSettingListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** * Only return the settings with these lookup_keys, if any exist. You can specify up to 10 @@ -34,7 +34,7 @@ public class BillSettingListParams extends ApiRequestParams { List lookupKeys; private BillSettingListParams( - Map extraParams, Integer limit, List lookupKeys) { + Map extraParams, Long limit, List lookupKeys) { this.extraParams = extraParams; this.limit = limit; this.lookupKeys = lookupKeys; @@ -47,7 +47,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private List lookupKeys; @@ -83,7 +83,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/BillSettingUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/BillSettingUpdateParams.java index d0edc9d5b94..e9aeba82b85 100644 --- a/src/main/java/com/stripe/param/v2/billing/BillSettingUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/BillSettingUpdateParams.java @@ -457,10 +457,9 @@ public static class TimeUntilDue { * interval_count=30, the invoice will be due in 30 days. */ @SerializedName("interval_count") - Integer intervalCount; + Long intervalCount; - private TimeUntilDue( - Map extraParams, Interval interval, Integer intervalCount) { + private TimeUntilDue(Map extraParams, Interval interval, Long intervalCount) { this.extraParams = extraParams; this.interval = interval; this.intervalCount = intervalCount; @@ -475,7 +474,7 @@ public static class Builder { private Interval interval; - private Integer intervalCount; + private Long intervalCount; /** Finalize and obtain parameter instance from this builder. */ public BillSettingUpdateParams.Invoice.TimeUntilDue build() { @@ -521,7 +520,7 @@ public Builder setInterval(BillSettingUpdateParams.Invoice.TimeUntilDue.Interval * Required. The number of interval units. For example, if interval=day and * interval_count=30, the invoice will be due in 30 days. */ - public Builder setIntervalCount(Integer intervalCount) { + public Builder setIntervalCount(Long intervalCount) { this.intervalCount = intervalCount; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/CadenceCreateParams.java b/src/main/java/com/stripe/param/v2/billing/CadenceCreateParams.java index 48cf16eb26d..d5f08623587 100644 --- a/src/main/java/com/stripe/param/v2/billing/CadenceCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CadenceCreateParams.java @@ -220,7 +220,7 @@ public static class BillingCycle { * will default to 1. */ @SerializedName("interval_count") - Integer intervalCount; + Long intervalCount; /** Specific configuration for determining billing dates when type=month. */ @SerializedName("month") @@ -241,7 +241,7 @@ public static class BillingCycle { private BillingCycle( Day day, Map extraParams, - Integer intervalCount, + Long intervalCount, Month month, Type type, Week week, @@ -264,7 +264,7 @@ public static class Builder { private Map extraParams; - private Integer intervalCount; + private Long intervalCount; private Month month; @@ -323,7 +323,7 @@ public Builder putAllExtraParam(Map map) { * example, type=month and interval_count=3 bills every 3 months. If this is not provided, it * will default to 1. */ - public Builder setIntervalCount(Integer intervalCount) { + public Builder setIntervalCount(Long intervalCount) { this.intervalCount = intervalCount; return this; } @@ -447,24 +447,23 @@ public static class Time { * integer between 0 and 23, inclusive. 0 represents midnight, and 23 represents 11 PM. */ @SerializedName("hour") - Integer hour; + Long hour; /** * Required. The minute at which the billing cycle ends. Must be an integer * between 0 and 59, inclusive. */ @SerializedName("minute") - Integer minute; + Long minute; /** * Required. The second at which the billing cycle ends. Must be an integer * between 0 and 59, inclusive. */ @SerializedName("second") - Integer second; + Long second; - private Time( - Map extraParams, Integer hour, Integer minute, Integer second) { + private Time(Map extraParams, Long hour, Long minute, Long second) { this.extraParams = extraParams; this.hour = hour; this.minute = minute; @@ -478,11 +477,11 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer hour; + private Long hour; - private Integer minute; + private Long minute; - private Integer second; + private Long second; /** Finalize and obtain parameter instance from this builder. */ public CadenceCreateParams.BillingCycle.Day.Time build() { @@ -522,7 +521,7 @@ public Builder putAllExtraParam(Map map) { * Required. The hour at which the billing cycle ends. This must be an * integer between 0 and 23, inclusive. 0 represents midnight, and 23 represents 11 PM. */ - public Builder setHour(Integer hour) { + public Builder setHour(Long hour) { this.hour = hour; return this; } @@ -531,7 +530,7 @@ public Builder setHour(Integer hour) { * Required. The minute at which the billing cycle ends. Must be an * integer between 0 and 59, inclusive. */ - public Builder setMinute(Integer minute) { + public Builder setMinute(Long minute) { this.minute = minute; return this; } @@ -540,7 +539,7 @@ public Builder setMinute(Integer minute) { * Required. The second at which the billing cycle ends. Must be an * integer between 0 and 59, inclusive. */ - public Builder setSecond(Integer second) { + public Builder setSecond(Long second) { this.second = second; return this; } @@ -558,7 +557,7 @@ public static class Month { * default to the day the cadence was created. */ @SerializedName("day_of_month") - Integer dayOfMonth; + Long dayOfMonth; /** * Map of extra parameters for custom features not available in this client library. The @@ -569,15 +568,6 @@ public static class Month { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * The month to anchor the billing on for a type="month" billing cycle from 1-12. If - * not provided, this will default to the month the cadence was created. This setting can only - * be used for monthly billing cycles with {@code interval_count} of 2, 3, 4 or 6. All - * occurrences will be calculated from month provided. - */ - @SerializedName("month_of_year") - Integer monthOfYear; - /** * The time at which the billing cycle ends. This field is optional, and if not provided, it * will default to the time at which the cadence was created in UTC timezone. @@ -585,11 +575,9 @@ public static class Month { @SerializedName("time") Time time; - private Month( - Integer dayOfMonth, Map extraParams, Integer monthOfYear, Time time) { + private Month(Long dayOfMonth, Map extraParams, Time time) { this.dayOfMonth = dayOfMonth; this.extraParams = extraParams; - this.monthOfYear = monthOfYear; this.time = time; } @@ -598,18 +586,16 @@ public static Builder builder() { } public static class Builder { - private Integer dayOfMonth; + private Long dayOfMonth; private Map extraParams; - private Integer monthOfYear; - private Time time; /** Finalize and obtain parameter instance from this builder. */ public CadenceCreateParams.BillingCycle.Month build() { return new CadenceCreateParams.BillingCycle.Month( - this.dayOfMonth, this.extraParams, this.monthOfYear, this.time); + this.dayOfMonth, this.extraParams, this.time); } /** @@ -618,7 +604,7 @@ public CadenceCreateParams.BillingCycle.Month build() { * being billed, this will anchor to the last day of the month. If not provided, this will * default to the day the cadence was created. */ - public Builder setDayOfMonth(Integer dayOfMonth) { + public Builder setDayOfMonth(Long dayOfMonth) { this.dayOfMonth = dayOfMonth; return this; } @@ -651,17 +637,6 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * The month to anchor the billing on for a type="month" billing cycle from 1-12. - * If not provided, this will default to the month the cadence was created. This setting can - * only be used for monthly billing cycles with {@code interval_count} of 2, 3, 4 or 6. All - * occurrences will be calculated from month provided. - */ - public Builder setMonthOfYear(Integer monthOfYear) { - this.monthOfYear = monthOfYear; - return this; - } - /** * The time at which the billing cycle ends. This field is optional, and if not provided, it * will default to the time at which the cadence was created in UTC timezone. @@ -690,24 +665,23 @@ public static class Time { * integer between 0 and 23, inclusive. 0 represents midnight, and 23 represents 11 PM. */ @SerializedName("hour") - Integer hour; + Long hour; /** * Required. The minute at which the billing cycle ends. Must be an integer * between 0 and 59, inclusive. */ @SerializedName("minute") - Integer minute; + Long minute; /** * Required. The second at which the billing cycle ends. Must be an integer * between 0 and 59, inclusive. */ @SerializedName("second") - Integer second; + Long second; - private Time( - Map extraParams, Integer hour, Integer minute, Integer second) { + private Time(Map extraParams, Long hour, Long minute, Long second) { this.extraParams = extraParams; this.hour = hour; this.minute = minute; @@ -721,11 +695,11 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer hour; + private Long hour; - private Integer minute; + private Long minute; - private Integer second; + private Long second; /** Finalize and obtain parameter instance from this builder. */ public CadenceCreateParams.BillingCycle.Month.Time build() { @@ -765,7 +739,7 @@ public Builder putAllExtraParam(Map map) { * Required. The hour at which the billing cycle ends. This must be an * integer between 0 and 23, inclusive. 0 represents midnight, and 23 represents 11 PM. */ - public Builder setHour(Integer hour) { + public Builder setHour(Long hour) { this.hour = hour; return this; } @@ -774,7 +748,7 @@ public Builder setHour(Integer hour) { * Required. The minute at which the billing cycle ends. Must be an * integer between 0 and 59, inclusive. */ - public Builder setMinute(Integer minute) { + public Builder setMinute(Long minute) { this.minute = minute; return this; } @@ -783,7 +757,7 @@ public Builder setMinute(Integer minute) { * Required. The second at which the billing cycle ends. Must be an * integer between 0 and 59, inclusive. */ - public Builder setSecond(Integer second) { + public Builder setSecond(Long second) { this.second = second; return this; } @@ -800,7 +774,7 @@ public static class Week { * numbering. If not provided, this will default to the day the cadence was created. */ @SerializedName("day_of_week") - Integer dayOfWeek; + Long dayOfWeek; /** * Map of extra parameters for custom features not available in this client library. The @@ -818,7 +792,7 @@ public static class Week { @SerializedName("time") Time time; - private Week(Integer dayOfWeek, Map extraParams, Time time) { + private Week(Long dayOfWeek, Map extraParams, Time time) { this.dayOfWeek = dayOfWeek; this.extraParams = extraParams; this.time = time; @@ -829,7 +803,7 @@ public static Builder builder() { } public static class Builder { - private Integer dayOfWeek; + private Long dayOfWeek; private Map extraParams; @@ -846,7 +820,7 @@ public CadenceCreateParams.BillingCycle.Week build() { * Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601 week day * numbering. If not provided, this will default to the day the cadence was created. */ - public Builder setDayOfWeek(Integer dayOfWeek) { + public Builder setDayOfWeek(Long dayOfWeek) { this.dayOfWeek = dayOfWeek; return this; } @@ -907,24 +881,23 @@ public static class Time { * integer between 0 and 23, inclusive. 0 represents midnight, and 23 represents 11 PM. */ @SerializedName("hour") - Integer hour; + Long hour; /** * Required. The minute at which the billing cycle ends. Must be an integer * between 0 and 59, inclusive. */ @SerializedName("minute") - Integer minute; + Long minute; /** * Required. The second at which the billing cycle ends. Must be an integer * between 0 and 59, inclusive. */ @SerializedName("second") - Integer second; + Long second; - private Time( - Map extraParams, Integer hour, Integer minute, Integer second) { + private Time(Map extraParams, Long hour, Long minute, Long second) { this.extraParams = extraParams; this.hour = hour; this.minute = minute; @@ -938,11 +911,11 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer hour; + private Long hour; - private Integer minute; + private Long minute; - private Integer second; + private Long second; /** Finalize and obtain parameter instance from this builder. */ public CadenceCreateParams.BillingCycle.Week.Time build() { @@ -982,7 +955,7 @@ public Builder putAllExtraParam(Map map) { * Required. The hour at which the billing cycle ends. This must be an * integer between 0 and 23, inclusive. 0 represents midnight, and 23 represents 11 PM. */ - public Builder setHour(Integer hour) { + public Builder setHour(Long hour) { this.hour = hour; return this; } @@ -991,7 +964,7 @@ public Builder setHour(Integer hour) { * Required. The minute at which the billing cycle ends. Must be an * integer between 0 and 59, inclusive. */ - public Builder setMinute(Integer minute) { + public Builder setMinute(Long minute) { this.minute = minute; return this; } @@ -1000,7 +973,7 @@ public Builder setMinute(Integer minute) { * Required. The second at which the billing cycle ends. Must be an * integer between 0 and 59, inclusive. */ - public Builder setSecond(Integer second) { + public Builder setSecond(Long second) { this.second = second; return this; } @@ -1018,7 +991,7 @@ public static class Year { * created. */ @SerializedName("day_of_month") - Integer dayOfMonth; + Long dayOfMonth; /** * Map of extra parameters for custom features not available in this client library. The @@ -1034,7 +1007,7 @@ public static class Year { * was created. */ @SerializedName("month_of_year") - Integer monthOfYear; + Long monthOfYear; /** * The time at which the billing cycle ends. This field is optional, and if not provided, it @@ -1043,8 +1016,7 @@ public static class Year { @SerializedName("time") Time time; - private Year( - Integer dayOfMonth, Map extraParams, Integer monthOfYear, Time time) { + private Year(Long dayOfMonth, Map extraParams, Long monthOfYear, Time time) { this.dayOfMonth = dayOfMonth; this.extraParams = extraParams; this.monthOfYear = monthOfYear; @@ -1056,11 +1028,11 @@ public static Builder builder() { } public static class Builder { - private Integer dayOfMonth; + private Long dayOfMonth; private Map extraParams; - private Integer monthOfYear; + private Long monthOfYear; private Time time; @@ -1076,7 +1048,7 @@ public CadenceCreateParams.BillingCycle.Year build() { * anchor to the last day of the month. If not provided, this will default to the day the * cadence was created. */ - public Builder setDayOfMonth(Integer dayOfMonth) { + public Builder setDayOfMonth(Long dayOfMonth) { this.dayOfMonth = dayOfMonth; return this; } @@ -1113,7 +1085,7 @@ public Builder putAllExtraParam(Map map) { * The month to bill on from 1-12. If not provided, this will default to the month the * cadence was created. */ - public Builder setMonthOfYear(Integer monthOfYear) { + public Builder setMonthOfYear(Long monthOfYear) { this.monthOfYear = monthOfYear; return this; } @@ -1146,24 +1118,23 @@ public static class Time { * integer between 0 and 23, inclusive. 0 represents midnight, and 23 represents 11 PM. */ @SerializedName("hour") - Integer hour; + Long hour; /** * Required. The minute at which the billing cycle ends. Must be an integer * between 0 and 59, inclusive. */ @SerializedName("minute") - Integer minute; + Long minute; /** * Required. The second at which the billing cycle ends. Must be an integer * between 0 and 59, inclusive. */ @SerializedName("second") - Integer second; + Long second; - private Time( - Map extraParams, Integer hour, Integer minute, Integer second) { + private Time(Map extraParams, Long hour, Long minute, Long second) { this.extraParams = extraParams; this.hour = hour; this.minute = minute; @@ -1177,11 +1148,11 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer hour; + private Long hour; - private Integer minute; + private Long minute; - private Integer second; + private Long second; /** Finalize and obtain parameter instance from this builder. */ public CadenceCreateParams.BillingCycle.Year.Time build() { @@ -1221,7 +1192,7 @@ public Builder putAllExtraParam(Map map) { * Required. The hour at which the billing cycle ends. This must be an * integer between 0 and 23, inclusive. 0 represents midnight, and 23 represents 11 PM. */ - public Builder setHour(Integer hour) { + public Builder setHour(Long hour) { this.hour = hour; return this; } @@ -1230,7 +1201,7 @@ public Builder setHour(Integer hour) { * Required. The minute at which the billing cycle ends. Must be an * integer between 0 and 59, inclusive. */ - public Builder setMinute(Integer minute) { + public Builder setMinute(Long minute) { this.minute = minute; return this; } @@ -1239,7 +1210,7 @@ public Builder setMinute(Integer minute) { * Required. The second at which the billing cycle ends. Must be an * integer between 0 and 59, inclusive. */ - public Builder setSecond(Integer second) { + public Builder setSecond(Long second) { this.second = second; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/CadenceListParams.java b/src/main/java/com/stripe/param/v2/billing/CadenceListParams.java index f081371b54c..b6f56040685 100644 --- a/src/main/java/com/stripe/param/v2/billing/CadenceListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CadenceListParams.java @@ -28,7 +28,7 @@ public class CadenceListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** * If provided, only cadences that specifically reference the payer will be returned. Mutually @@ -47,7 +47,7 @@ public class CadenceListParams extends ApiRequestParams { private CadenceListParams( Map extraParams, List include, - Integer limit, + Long limit, Payer payer, String testClock) { this.extraParams = extraParams; @@ -66,7 +66,7 @@ public static class Builder { private List include; - private Integer limit; + private Long limit; private Payer payer; @@ -131,7 +131,7 @@ public Builder addAllInclude(List elements) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/CadenceUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/CadenceUpdateParams.java index 2b79997a3a1..bf74589bcc0 100644 --- a/src/main/java/com/stripe/param/v2/billing/CadenceUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CadenceUpdateParams.java @@ -270,14 +270,14 @@ public static class Settings { * billing cadence. */ @SerializedName("bill") - Object bill; + Bill bill; /** * Settings that configure and manage the behavior of collecting payments. If null is provided, * the current collection settings will be removed from the billing cadence. */ @SerializedName("collection") - Object collection; + Collection collection; /** * Map of extra parameters for custom features not available in this client library. The content @@ -288,7 +288,7 @@ public static class Settings { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Settings(Object bill, Object collection, Map extraParams) { + private Settings(Bill bill, Collection collection, Map extraParams) { this.bill = bill; this.collection = collection; this.extraParams = extraParams; @@ -299,9 +299,9 @@ public static Builder builder() { } public static class Builder { - private Object bill; + private Bill bill; - private Object collection; + private Collection collection; private Map extraParams; @@ -320,16 +320,6 @@ public Builder setBill(CadenceUpdateParams.Settings.Bill bill) { return this; } - /** - * Settings that configure bills generation, which includes calculating totals, tax, and - * presenting invoices. If null is provided, the current bill settings will be removed from - * the billing cadence. - */ - public Builder setBill(EmptyParam bill) { - this.bill = bill; - return this; - } - /** * Settings that configure and manage the behavior of collecting payments. If null is * provided, the current collection settings will be removed from the billing cadence. @@ -339,15 +329,6 @@ public Builder setCollection(CadenceUpdateParams.Settings.Collection collection) return this; } - /** - * Settings that configure and manage the behavior of collecting payments. If null is - * provided, the current collection settings will be removed from the billing cadence. - */ - public Builder setCollection(EmptyParam collection) { - this.collection = collection; - 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 diff --git a/src/main/java/com/stripe/param/v2/billing/CollectionSettingCreateParams.java b/src/main/java/com/stripe/param/v2/billing/CollectionSettingCreateParams.java index 11d5597acdb..1e5d4125b6f 100644 --- a/src/main/java/com/stripe/param/v2/billing/CollectionSettingCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CollectionSettingCreateParams.java @@ -395,11 +395,11 @@ public static class PaymentMethodOptions { /** This sub-hash contains details about the Konbini payment method options. */ @SerializedName("konbini") - Konbini konbini; + Map konbini; /** This sub-hash contains details about the SEPA Direct Debit payment method options. */ @SerializedName("sepa_debit") - SepaDebit sepaDebit; + Map sepaDebit; /** This sub-hash contains details about the ACH direct debit payment method options. */ @SerializedName("us_bank_account") @@ -411,8 +411,8 @@ private PaymentMethodOptions( Card card, CustomerBalance customerBalance, Map extraParams, - Konbini konbini, - SepaDebit sepaDebit, + Map konbini, + Map sepaDebit, UsBankAccount usBankAccount) { this.acssDebit = acssDebit; this.bancontact = bancontact; @@ -439,9 +439,9 @@ public static class Builder { private Map extraParams; - private Konbini konbini; + private Map konbini; - private SepaDebit sepaDebit; + private Map sepaDebit; private UsBankAccount usBankAccount; @@ -516,17 +516,57 @@ public Builder putAllExtraParam(Map map) { return this; } - /** This sub-hash contains details about the Konbini payment method options. */ - public Builder setKonbini( - CollectionSettingCreateParams.PaymentMethodOptions.Konbini konbini) { - this.konbini = konbini; + /** + * Add a key/value pair to `konbini` 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 + * CollectionSettingCreateParams.PaymentMethodOptions#konbini} for the field documentation. + */ + public Builder putKonbini(String key, Object value) { + if (this.konbini == null) { + this.konbini = new HashMap<>(); + } + this.konbini.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `konbini` 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 CollectionSettingCreateParams.PaymentMethodOptions#konbini} for the field + * documentation. + */ + public Builder putAllKonbini(Map map) { + if (this.konbini == null) { + this.konbini = new HashMap<>(); + } + this.konbini.putAll(map); + return this; + } + + /** + * Add a key/value pair to `sepaDebit` 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 + * CollectionSettingCreateParams.PaymentMethodOptions#sepaDebit} for the field documentation. + */ + public Builder putSepaDebit(String key, Object value) { + if (this.sepaDebit == null) { + this.sepaDebit = new HashMap<>(); + } + this.sepaDebit.put(key, value); return this; } - /** This sub-hash contains details about the SEPA Direct Debit payment method options. */ - public Builder setSepaDebit( - CollectionSettingCreateParams.PaymentMethodOptions.SepaDebit sepaDebit) { - this.sepaDebit = sepaDebit; + /** + * Add all map key/value pairs to `sepaDebit` 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 CollectionSettingCreateParams.PaymentMethodOptions#sepaDebit} for the field + * documentation. + */ + public Builder putAllSepaDebit(Map map) { + if (this.sepaDebit == null) { + this.sepaDebit = new HashMap<>(); + } + this.sepaDebit.putAll(map); return this; } @@ -1464,122 +1504,6 @@ public enum FundingType implements ApiRequestParams.EnumParam { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Konbini { - /** - * 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 Konbini(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public CollectionSettingCreateParams.PaymentMethodOptions.Konbini build() { - return new CollectionSettingCreateParams.PaymentMethodOptions.Konbini(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link CollectionSettingCreateParams.PaymentMethodOptions.Konbini#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 CollectionSettingCreateParams.PaymentMethodOptions.Konbini#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class SepaDebit { - /** - * 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 SepaDebit(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public CollectionSettingCreateParams.PaymentMethodOptions.SepaDebit build() { - return new CollectionSettingCreateParams.PaymentMethodOptions.SepaDebit(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link CollectionSettingCreateParams.PaymentMethodOptions.SepaDebit#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 CollectionSettingCreateParams.PaymentMethodOptions.SepaDebit#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class UsBankAccount { diff --git a/src/main/java/com/stripe/param/v2/billing/CollectionSettingListParams.java b/src/main/java/com/stripe/param/v2/billing/CollectionSettingListParams.java index 79eede07ebc..e08cd2d1289 100644 --- a/src/main/java/com/stripe/param/v2/billing/CollectionSettingListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CollectionSettingListParams.java @@ -24,7 +24,7 @@ public class CollectionSettingListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** * Only return the settings with these lookup_keys, if any exist. You can specify up to 10 @@ -34,7 +34,7 @@ public class CollectionSettingListParams extends ApiRequestParams { List lookupKeys; private CollectionSettingListParams( - Map extraParams, Integer limit, List lookupKeys) { + Map extraParams, Long limit, List lookupKeys) { this.extraParams = extraParams; this.limit = limit; this.lookupKeys = lookupKeys; @@ -47,7 +47,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private List lookupKeys; @@ -83,7 +83,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/CollectionSettingUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/CollectionSettingUpdateParams.java index 02b62b78836..2642012da02 100644 --- a/src/main/java/com/stripe/param/v2/billing/CollectionSettingUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CollectionSettingUpdateParams.java @@ -31,7 +31,7 @@ public class CollectionSettingUpdateParams extends ApiRequestParams { /** Email delivery settings. */ @SerializedName("email_delivery") - Object emailDelivery; + EmailDelivery emailDelivery; /** * Map of extra parameters for custom features not available in this client library. The content @@ -72,7 +72,7 @@ public class CollectionSettingUpdateParams extends ApiRequestParams { private CollectionSettingUpdateParams( CollectionMethod collectionMethod, Object displayName, - Object emailDelivery, + EmailDelivery emailDelivery, Map extraParams, Object liveVersion, Object lookupKey, @@ -97,7 +97,7 @@ public static class Builder { private Object displayName; - private Object emailDelivery; + private EmailDelivery emailDelivery; private Map extraParams; @@ -158,12 +158,6 @@ public Builder setEmailDelivery(CollectionSettingUpdateParams.EmailDelivery emai return this; } - /** Email delivery settings. */ - public Builder setEmailDelivery(EmptyParam emailDelivery) { - this.emailDelivery = emailDelivery; - 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 @@ -464,11 +458,11 @@ public static class PaymentMethodOptions { /** This sub-hash contains details about the Konbini payment method options. */ @SerializedName("konbini") - Konbini konbini; + Map konbini; /** This sub-hash contains details about the SEPA Direct Debit payment method options. */ @SerializedName("sepa_debit") - SepaDebit sepaDebit; + Map sepaDebit; /** This sub-hash contains details about the ACH direct debit payment method options. */ @SerializedName("us_bank_account") @@ -480,8 +474,8 @@ private PaymentMethodOptions( Card card, CustomerBalance customerBalance, Map extraParams, - Konbini konbini, - SepaDebit sepaDebit, + Map konbini, + Map sepaDebit, UsBankAccount usBankAccount) { this.acssDebit = acssDebit; this.bancontact = bancontact; @@ -508,9 +502,9 @@ public static class Builder { private Map extraParams; - private Konbini konbini; + private Map konbini; - private SepaDebit sepaDebit; + private Map sepaDebit; private UsBankAccount usBankAccount; @@ -585,17 +579,57 @@ public Builder putAllExtraParam(Map map) { return this; } - /** This sub-hash contains details about the Konbini payment method options. */ - public Builder setKonbini( - CollectionSettingUpdateParams.PaymentMethodOptions.Konbini konbini) { - this.konbini = konbini; + /** + * Add a key/value pair to `konbini` 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 + * CollectionSettingUpdateParams.PaymentMethodOptions#konbini} for the field documentation. + */ + public Builder putKonbini(String key, Object value) { + if (this.konbini == null) { + this.konbini = new HashMap<>(); + } + this.konbini.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `konbini` 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 CollectionSettingUpdateParams.PaymentMethodOptions#konbini} for the field + * documentation. + */ + public Builder putAllKonbini(Map map) { + if (this.konbini == null) { + this.konbini = new HashMap<>(); + } + this.konbini.putAll(map); + return this; + } + + /** + * Add a key/value pair to `sepaDebit` 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 + * CollectionSettingUpdateParams.PaymentMethodOptions#sepaDebit} for the field documentation. + */ + public Builder putSepaDebit(String key, Object value) { + if (this.sepaDebit == null) { + this.sepaDebit = new HashMap<>(); + } + this.sepaDebit.put(key, value); return this; } - /** This sub-hash contains details about the SEPA Direct Debit payment method options. */ - public Builder setSepaDebit( - CollectionSettingUpdateParams.PaymentMethodOptions.SepaDebit sepaDebit) { - this.sepaDebit = sepaDebit; + /** + * Add all map key/value pairs to `sepaDebit` 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 CollectionSettingUpdateParams.PaymentMethodOptions#sepaDebit} for the field + * documentation. + */ + public Builder putAllSepaDebit(Map map) { + if (this.sepaDebit == null) { + this.sepaDebit = new HashMap<>(); + } + this.sepaDebit.putAll(map); return this; } @@ -1548,122 +1582,6 @@ public enum FundingType implements ApiRequestParams.EnumParam { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Konbini { - /** - * 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 Konbini(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public CollectionSettingUpdateParams.PaymentMethodOptions.Konbini build() { - return new CollectionSettingUpdateParams.PaymentMethodOptions.Konbini(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link CollectionSettingUpdateParams.PaymentMethodOptions.Konbini#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 CollectionSettingUpdateParams.PaymentMethodOptions.Konbini#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class SepaDebit { - /** - * 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 SepaDebit(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public CollectionSettingUpdateParams.PaymentMethodOptions.SepaDebit build() { - return new CollectionSettingUpdateParams.PaymentMethodOptions.SepaDebit(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link CollectionSettingUpdateParams.PaymentMethodOptions.SepaDebit#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 CollectionSettingUpdateParams.PaymentMethodOptions.SepaDebit#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class UsBankAccount { diff --git a/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitListParams.java b/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitListParams.java index 726e8ad394b..8698d451093 100644 --- a/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/CustomPricingUnitListParams.java @@ -30,7 +30,7 @@ public class CustomPricingUnitListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** * Filter by lookup keys. Mutually exclusive with {@code active}. You can specify up to 10 lookup @@ -40,7 +40,7 @@ public class CustomPricingUnitListParams extends ApiRequestParams { List lookupKeys; private CustomPricingUnitListParams( - Boolean active, Map extraParams, Integer limit, List lookupKeys) { + Boolean active, Map extraParams, Long limit, List lookupKeys) { this.active = active; this.extraParams = extraParams; this.limit = limit; @@ -56,7 +56,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private List lookupKeys; @@ -101,7 +101,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java b/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java index 50832e72862..d49701cc2e0 100644 --- a/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; +import java.math.BigDecimal; import java.time.Instant; import java.util.ArrayList; import java.util.HashMap; @@ -501,12 +502,12 @@ public static class PercentOff { * percent_off of 50.0 will make $100 amount $50 instead. */ @SerializedName("percent_off") - String percentOff; + BigDecimal percentOff; private PercentOff( Map extraParams, MaximumApplications maximumApplications, - String percentOff) { + BigDecimal percentOff) { this.extraParams = extraParams; this.maximumApplications = maximumApplications; this.percentOff = percentOff; @@ -521,7 +522,7 @@ public static class Builder { private MaximumApplications maximumApplications; - private String percentOff; + private BigDecimal percentOff; /** Finalize and obtain parameter instance from this builder. */ public IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff build() { @@ -574,7 +575,7 @@ public Builder setMaximumApplications( * Required. Percent that will be taken off of the amount. For example, * percent_off of 50.0 will make $100 amount $50 instead. */ - public Builder setPercentOff(String percentOff) { + public Builder setPercentOff(BigDecimal percentOff) { this.percentOff = percentOff; return this; } @@ -1023,9 +1024,6 @@ public Builder setType(IntentCreateParams.Action.Deactivate.EffectiveAt.Type typ } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("current_billing_period_end") - CURRENT_BILLING_PERIOD_END("current_billing_period_end"), - @SerializedName("current_billing_period_start") CURRENT_BILLING_PERIOD_START("current_billing_period_start"), @@ -1646,13 +1644,13 @@ public static class ComponentConfiguration { /** Quantity of the component to be used. */ @SerializedName("quantity") - Integer quantity; + Long quantity; private ComponentConfiguration( Map extraParams, String lookupKey, String pricingPlanComponent, - Integer quantity) { + Long quantity) { this.extraParams = extraParams; this.lookupKey = lookupKey; this.pricingPlanComponent = pricingPlanComponent; @@ -1670,7 +1668,7 @@ public static class Builder { private String pricingPlanComponent; - private Integer quantity; + private Long quantity; /** Finalize and obtain parameter instance from this builder. */ public IntentCreateParams.Action.Modify.PricingPlanSubscriptionDetails @@ -1724,7 +1722,7 @@ public Builder setPricingPlanComponent(String pricingPlanComponent) { } /** Quantity of the component to be used. */ - public Builder setQuantity(Integer quantity) { + public Builder setQuantity(Long quantity) { this.quantity = quantity; return this; } @@ -2408,13 +2406,13 @@ public static class ComponentConfiguration { /** Quantity of the component to be used. */ @SerializedName("quantity") - Integer quantity; + Long quantity; private ComponentConfiguration( Map extraParams, String lookupKey, String pricingPlanComponent, - Integer quantity) { + Long quantity) { this.extraParams = extraParams; this.lookupKey = lookupKey; this.pricingPlanComponent = pricingPlanComponent; @@ -2432,7 +2430,7 @@ public static class Builder { private String pricingPlanComponent; - private Integer quantity; + private Long quantity; /** Finalize and obtain parameter instance from this builder. */ public IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails @@ -2486,7 +2484,7 @@ public Builder setPricingPlanComponent(String pricingPlanComponent) { } /** Quantity of the component to be used. */ - public Builder setQuantity(Integer quantity) { + public Builder setQuantity(Long quantity) { this.quantity = quantity; return this; } @@ -2682,13 +2680,13 @@ public static class Item { /** Quantity for this item. If not provided, will default to 1. */ @SerializedName("quantity") - Integer quantity; + Long quantity; private Item( Map extraParams, Map metadata, String price, - Integer quantity) { + Long quantity) { this.extraParams = extraParams; this.metadata = metadata; this.price = price; @@ -2706,7 +2704,7 @@ public static class Builder { private String price; - private Integer quantity; + private Long quantity; /** Finalize and obtain parameter instance from this builder. */ public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item build() { @@ -2781,7 +2779,7 @@ public Builder setPrice(String price) { } /** Quantity for this item. If not provided, will default to 1. */ - public Builder setQuantity(Integer quantity) { + public Builder setQuantity(Long quantity) { this.quantity = quantity; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/IntentListParams.java b/src/main/java/com/stripe/param/v2/billing/IntentListParams.java index 188ab39a083..d64271c1af6 100644 --- a/src/main/java/com/stripe/param/v2/billing/IntentListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/IntentListParams.java @@ -22,9 +22,9 @@ public class IntentListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 10. */ @SerializedName("limit") - Integer limit; + Long limit; - private IntentListParams(Map extraParams, Integer limit) { + private IntentListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public IntentListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 10. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/LicenseFeeCreateParams.java b/src/main/java/com/stripe/param/v2/billing/LicenseFeeCreateParams.java index 5e095def0d0..4b752444490 100644 --- a/src/main/java/com/stripe/param/v2/billing/LicenseFeeCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/LicenseFeeCreateParams.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -73,7 +74,7 @@ public class LicenseFeeCreateParams extends ApiRequestParams { * service. */ @SerializedName("service_interval_count") - Integer serviceIntervalCount; + Long serviceIntervalCount; /** * Required. The Stripe Tax tax behavior - whether the license fee is inclusive @@ -116,7 +117,7 @@ private LicenseFeeCreateParams( String lookupKey, Map metadata, ServiceInterval serviceInterval, - Integer serviceIntervalCount, + Long serviceIntervalCount, TaxBehavior taxBehavior, TieringMode tieringMode, List tiers, @@ -156,7 +157,7 @@ public static class Builder { private ServiceInterval serviceInterval; - private Integer serviceIntervalCount; + private Long serviceIntervalCount; private TaxBehavior taxBehavior; @@ -290,7 +291,7 @@ public Builder setServiceInterval(LicenseFeeCreateParams.ServiceInterval service * this to 3 and {@code service_interval} to {@code "month"} in order to specify quarterly * service. */ - public Builder setServiceIntervalCount(Integer serviceIntervalCount) { + public Builder setServiceIntervalCount(Long serviceIntervalCount) { this.serviceIntervalCount = serviceIntervalCount; return this; } @@ -392,7 +393,7 @@ public static class Tier { * up_to_decimal} and {@code up_to_inf} may be set. */ @SerializedName("up_to_decimal") - String upToDecimal; + BigDecimal upToDecimal; /** * No upper bound to this tier. Only one of {@code up_to_decimal} and {@code up_to_inf} may be @@ -405,7 +406,7 @@ private Tier( Map extraParams, String flatAmount, String unitAmount, - String upToDecimal, + BigDecimal upToDecimal, UpToInf upToInf) { this.extraParams = extraParams; this.flatAmount = flatAmount; @@ -425,7 +426,7 @@ public static class Builder { private String unitAmount; - private String upToDecimal; + private BigDecimal upToDecimal; private UpToInf upToInf; @@ -483,7 +484,7 @@ public Builder setUnitAmount(String unitAmount) { * Up to and including this quantity will be contained in the tier. Only one of {@code * up_to_decimal} and {@code up_to_inf} may be set. */ - public Builder setUpToDecimal(String upToDecimal) { + public Builder setUpToDecimal(BigDecimal upToDecimal) { this.upToDecimal = upToDecimal; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/LicenseFeeListParams.java b/src/main/java/com/stripe/param/v2/billing/LicenseFeeListParams.java index 2401e90e40b..35524e70a95 100644 --- a/src/main/java/com/stripe/param/v2/billing/LicenseFeeListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/LicenseFeeListParams.java @@ -28,17 +28,14 @@ public class LicenseFeeListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** Required. Filter by lookup keys. You can specify up to 10 lookup keys. */ @SerializedName("lookup_keys") List lookupKeys; private LicenseFeeListParams( - Map extraParams, - String licensedItem, - Integer limit, - List lookupKeys) { + Map extraParams, String licensedItem, Long limit, List lookupKeys) { this.extraParams = extraParams; this.licensedItem = licensedItem; this.limit = limit; @@ -54,7 +51,7 @@ public static class Builder { private String licensedItem; - private Integer limit; + private Long limit; private List lookupKeys; @@ -97,7 +94,7 @@ public Builder setLicensedItem(String licensedItem) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/LicenseFeeUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/LicenseFeeUpdateParams.java index 83a356b9d73..382176e36da 100644 --- a/src/main/java/com/stripe/param/v2/billing/LicenseFeeUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/LicenseFeeUpdateParams.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; import com.stripe.param.common.EmptyParam; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -15,9 +16,9 @@ @EqualsAndHashCode(callSuper = false) public class LicenseFeeUpdateParams extends ApiRequestParams { /** - * A customer-facing name for the License Fee. This name is used in Stripe-hosted products like - * the Customer Portal and Checkout. It does not show up on Invoices. Maximum length of 250 - * characters. + * Required. A customer-facing name for the License Fee. This name is used in + * Stripe-hosted products like the Customer Portal and Checkout. It does not show up on Invoices. + * Maximum length of 250 characters. */ @SerializedName("display_name") Object displayName; @@ -138,9 +139,9 @@ public LicenseFeeUpdateParams build() { } /** - * A customer-facing name for the License Fee. This name is used in Stripe-hosted products like - * the Customer Portal and Checkout. It does not show up on Invoices. Maximum length of 250 - * characters. + * Required. A customer-facing name for the License Fee. This name is used in + * Stripe-hosted products like the Customer Portal and Checkout. It does not show up on + * Invoices. Maximum length of 250 characters. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; @@ -148,9 +149,9 @@ public Builder setDisplayName(String displayName) { } /** - * A customer-facing name for the License Fee. This name is used in Stripe-hosted products like - * the Customer Portal and Checkout. It does not show up on Invoices. Maximum length of 250 - * characters. + * Required. A customer-facing name for the License Fee. This name is used in + * Stripe-hosted products like the Customer Portal and Checkout. It does not show up on + * Invoices. Maximum length of 250 characters. */ public Builder setDisplayName(EmptyParam displayName) { this.displayName = displayName; @@ -469,7 +470,7 @@ public Builder setUnitAmount(EmptyParam unitAmount) { * Up to and including this quantity will be contained in the tier. Only one of {@code * up_to_decimal} and {@code up_to_inf} may be set. */ - public Builder setUpToDecimal(String upToDecimal) { + public Builder setUpToDecimal(BigDecimal upToDecimal) { this.upToDecimal = upToDecimal; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/LicensedItemListParams.java b/src/main/java/com/stripe/param/v2/billing/LicensedItemListParams.java index b3f3bdecd09..762687fffe0 100644 --- a/src/main/java/com/stripe/param/v2/billing/LicensedItemListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/LicensedItemListParams.java @@ -24,14 +24,14 @@ public class LicensedItemListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** Filter by lookup keys. You can specify up to 10 lookup keys. */ @SerializedName("lookup_keys") List lookupKeys; private LicensedItemListParams( - Map extraParams, Integer limit, List lookupKeys) { + Map extraParams, Long limit, List lookupKeys) { this.extraParams = extraParams; this.limit = limit; this.lookupKeys = lookupKeys; @@ -44,7 +44,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private List lookupKeys; @@ -80,7 +80,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/MeterEventStreamCreateParams.java b/src/main/java/com/stripe/param/v2/billing/MeterEventStreamCreateParams.java index 8712b57029c..5b0d475cd51 100644 --- a/src/main/java/com/stripe/param/v2/billing/MeterEventStreamCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/MeterEventStreamCreateParams.java @@ -14,10 +14,7 @@ @Getter @EqualsAndHashCode(callSuper = false) public class MeterEventStreamCreateParams extends ApiRequestParams { - /** - * Required. List of meter events to include in the request. Supports up to 100 - * events per request. - */ + /** Required. List of meter events to include in the request. */ @SerializedName("events") List events; diff --git a/src/main/java/com/stripe/param/v2/billing/MeteredItemListParams.java b/src/main/java/com/stripe/param/v2/billing/MeteredItemListParams.java index fda310b1aa1..d8c54b57760 100644 --- a/src/main/java/com/stripe/param/v2/billing/MeteredItemListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/MeteredItemListParams.java @@ -24,14 +24,14 @@ public class MeteredItemListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** Filter by lookup keys. You can specify up to 10 lookup keys. */ @SerializedName("lookup_keys") List lookupKeys; private MeteredItemListParams( - Map extraParams, Integer limit, List lookupKeys) { + Map extraParams, Long limit, List lookupKeys) { this.extraParams = extraParams; this.limit = limit; this.lookupKeys = lookupKeys; @@ -44,7 +44,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private List lookupKeys; @@ -80,7 +80,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/PricingPlanListParams.java b/src/main/java/com/stripe/param/v2/billing/PricingPlanListParams.java index bdc938d47ab..bad544127e0 100644 --- a/src/main/java/com/stripe/param/v2/billing/PricingPlanListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/PricingPlanListParams.java @@ -28,7 +28,7 @@ public class PricingPlanListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** * Filter by lookup keys. Mutually exclusive with {@code active}. You can specify up to 10 lookup @@ -38,7 +38,7 @@ public class PricingPlanListParams extends ApiRequestParams { List lookupKeys; private PricingPlanListParams( - Boolean active, Map extraParams, Integer limit, List lookupKeys) { + Boolean active, Map extraParams, Long limit, List lookupKeys) { this.active = active; this.extraParams = extraParams; this.limit = limit; @@ -54,7 +54,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private List lookupKeys; @@ -96,7 +96,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/PricingPlanSubscriptionListParams.java b/src/main/java/com/stripe/param/v2/billing/PricingPlanSubscriptionListParams.java index 3e90e652ced..178b4fb135f 100644 --- a/src/main/java/com/stripe/param/v2/billing/PricingPlanSubscriptionListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/PricingPlanSubscriptionListParams.java @@ -29,7 +29,7 @@ public class PricingPlanSubscriptionListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** * Filter by payer. Mutually exclusive with {@code billing_cadence}, {@code pricing_plan}, and @@ -59,7 +59,7 @@ public class PricingPlanSubscriptionListParams extends ApiRequestParams { private PricingPlanSubscriptionListParams( String billingCadence, Map extraParams, - Integer limit, + Long limit, Payer payer, String pricingPlan, String pricingPlanVersion, @@ -82,7 +82,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private Payer payer; @@ -140,7 +140,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/ProfileListParams.java b/src/main/java/com/stripe/param/v2/billing/ProfileListParams.java index 31735457278..07204f7c48b 100644 --- a/src/main/java/com/stripe/param/v2/billing/ProfileListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/ProfileListParams.java @@ -38,7 +38,7 @@ public class ProfileListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 10. */ @SerializedName("limit") - Integer limit; + Long limit; /** * Required. Filter billing profiles by lookup keys. Mutually exclusive with @@ -58,7 +58,7 @@ private ProfileListParams( String customer, String defaultPaymentMethod, Map extraParams, - Integer limit, + Long limit, List lookupKeys, Status status) { this.customer = customer; @@ -80,7 +80,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private List lookupKeys; @@ -142,7 +142,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 10. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/RateCardCreateParams.java b/src/main/java/com/stripe/param/v2/billing/RateCardCreateParams.java index 1c6ecb60454..2acb14d96b7 100644 --- a/src/main/java/com/stripe/param/v2/billing/RateCardCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/RateCardCreateParams.java @@ -64,7 +64,7 @@ public class RateCardCreateParams extends ApiRequestParams { * service. */ @SerializedName("service_interval_count") - Integer serviceIntervalCount; + Long serviceIntervalCount; /** * Required. The Stripe Tax tax behavior - whether the rates are inclusive or @@ -80,7 +80,7 @@ private RateCardCreateParams( String lookupKey, Map metadata, ServiceInterval serviceInterval, - Integer serviceIntervalCount, + Long serviceIntervalCount, TaxBehavior taxBehavior) { this.currency = currency; this.displayName = displayName; @@ -109,7 +109,7 @@ public static class Builder { private ServiceInterval serviceInterval; - private Integer serviceIntervalCount; + private Long serviceIntervalCount; private TaxBehavior taxBehavior; @@ -221,7 +221,7 @@ public Builder setServiceInterval(RateCardCreateParams.ServiceInterval serviceIn * this to 3 and {@code service_interval} to {@code "month"} in order to specify quarterly * service. */ - public Builder setServiceIntervalCount(Integer serviceIntervalCount) { + public Builder setServiceIntervalCount(Long serviceIntervalCount) { this.serviceIntervalCount = serviceIntervalCount; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/RateCardListParams.java b/src/main/java/com/stripe/param/v2/billing/RateCardListParams.java index f0d4d0ad84a..19ec34bc510 100644 --- a/src/main/java/com/stripe/param/v2/billing/RateCardListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/RateCardListParams.java @@ -28,14 +28,14 @@ public class RateCardListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** Filter by lookup keys. You can specify up to 10 lookup keys. */ @SerializedName("lookup_keys") List lookupKeys; private RateCardListParams( - Boolean active, Map extraParams, Integer limit, List lookupKeys) { + Boolean active, Map extraParams, Long limit, List lookupKeys) { this.active = active; this.extraParams = extraParams; this.limit = limit; @@ -51,7 +51,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private List lookupKeys; @@ -93,7 +93,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/RateCardSubscriptionListParams.java b/src/main/java/com/stripe/param/v2/billing/RateCardSubscriptionListParams.java index 60dc932cddd..3e6def0f721 100644 --- a/src/main/java/com/stripe/param/v2/billing/RateCardSubscriptionListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/RateCardSubscriptionListParams.java @@ -29,7 +29,7 @@ public class RateCardSubscriptionListParams extends ApiRequestParams { /** The page size limit, if not provided the default is 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** * Optionally filter by the payer associated with Billing Cadences which the Rate Card @@ -60,7 +60,7 @@ public class RateCardSubscriptionListParams extends ApiRequestParams { private RateCardSubscriptionListParams( String billingCadence, Map extraParams, - Integer limit, + Long limit, Payer payer, String rateCard, String rateCardVersion, @@ -83,7 +83,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private Payer payer; @@ -141,7 +141,7 @@ public Builder putAllExtraParam(Map map) { } /** The page size limit, if not provided the default is 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/billsettings/VersionListParams.java b/src/main/java/com/stripe/param/v2/billing/billsettings/VersionListParams.java index f80861da356..0a30abc86b4 100644 --- a/src/main/java/com/stripe/param/v2/billing/billsettings/VersionListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/billsettings/VersionListParams.java @@ -22,9 +22,9 @@ public class VersionListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; - private VersionListParams(Map extraParams, Integer limit) { + private VersionListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public VersionListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/collectionsettings/VersionListParams.java b/src/main/java/com/stripe/param/v2/billing/collectionsettings/VersionListParams.java index e73d944e318..412c300cb3c 100644 --- a/src/main/java/com/stripe/param/v2/billing/collectionsettings/VersionListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/collectionsettings/VersionListParams.java @@ -22,9 +22,9 @@ public class VersionListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; - private VersionListParams(Map extraParams, Integer limit) { + private VersionListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public VersionListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/intents/ActionListParams.java b/src/main/java/com/stripe/param/v2/billing/intents/ActionListParams.java index 6bdee847206..a7335e135cf 100644 --- a/src/main/java/com/stripe/param/v2/billing/intents/ActionListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/intents/ActionListParams.java @@ -22,9 +22,9 @@ public class ActionListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 10. */ @SerializedName("limit") - Integer limit; + Long limit; - private ActionListParams(Map extraParams, Integer limit) { + private ActionListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public ActionListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 10. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/licensefees/VersionListParams.java b/src/main/java/com/stripe/param/v2/billing/licensefees/VersionListParams.java index f4c6a0c6896..10d86da9be5 100644 --- a/src/main/java/com/stripe/param/v2/billing/licensefees/VersionListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/licensefees/VersionListParams.java @@ -22,9 +22,9 @@ public class VersionListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; - private VersionListParams(Map extraParams, Integer limit) { + private VersionListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public VersionListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/pricingplans/ComponentListParams.java b/src/main/java/com/stripe/param/v2/billing/pricingplans/ComponentListParams.java index 1c1c7f8d5ba..13ef4a66532 100644 --- a/src/main/java/com/stripe/param/v2/billing/pricingplans/ComponentListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/pricingplans/ComponentListParams.java @@ -24,7 +24,7 @@ public class ComponentListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** * Filter by lookup keys. Mutually exclusive with {@code pricing_plan_version}. You can specify up @@ -42,7 +42,7 @@ public class ComponentListParams extends ApiRequestParams { private ComponentListParams( Map extraParams, - Integer limit, + Long limit, List lookupKeys, String pricingPlanVersion) { this.extraParams = extraParams; @@ -58,7 +58,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private List lookupKeys; @@ -97,7 +97,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/pricingplans/VersionListParams.java b/src/main/java/com/stripe/param/v2/billing/pricingplans/VersionListParams.java index abee5a26f9d..5db5e5e69b3 100644 --- a/src/main/java/com/stripe/param/v2/billing/pricingplans/VersionListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/pricingplans/VersionListParams.java @@ -22,9 +22,9 @@ public class VersionListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; - private VersionListParams(Map extraParams, Integer limit) { + private VersionListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public VersionListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/ratecards/RateCreateParams.java b/src/main/java/com/stripe/param/v2/billing/ratecards/RateCreateParams.java index 5862f34e899..aea0d8aa517 100644 --- a/src/main/java/com/stripe/param/v2/billing/ratecards/RateCreateParams.java +++ b/src/main/java/com/stripe/param/v2/billing/ratecards/RateCreateParams.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -375,7 +376,7 @@ public static class Tier { * up_to_decimal} and {@code up_to_inf} may be set. */ @SerializedName("up_to_decimal") - String upToDecimal; + BigDecimal upToDecimal; /** * No upper bound to this tier. Only one of {@code up_to_decimal} and {@code up_to_inf} may be @@ -388,7 +389,7 @@ private Tier( Map extraParams, String flatAmount, String unitAmount, - String upToDecimal, + BigDecimal upToDecimal, UpToInf upToInf) { this.extraParams = extraParams; this.flatAmount = flatAmount; @@ -408,7 +409,7 @@ public static class Builder { private String unitAmount; - private String upToDecimal; + private BigDecimal upToDecimal; private UpToInf upToInf; @@ -466,7 +467,7 @@ public Builder setUnitAmount(String unitAmount) { * Up to and including this quantity will be contained in the tier. Only one of {@code * up_to_decimal} and {@code up_to_inf} may be set. */ - public Builder setUpToDecimal(String upToDecimal) { + public Builder setUpToDecimal(BigDecimal upToDecimal) { this.upToDecimal = upToDecimal; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/ratecards/RateListParams.java b/src/main/java/com/stripe/param/v2/billing/ratecards/RateListParams.java index 8638daffb4e..47576e32157 100644 --- a/src/main/java/com/stripe/param/v2/billing/ratecards/RateListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/ratecards/RateListParams.java @@ -22,7 +22,7 @@ public class RateListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; /** Optionally filter by a Metered Item. */ @SerializedName("metered_item") @@ -33,7 +33,7 @@ public class RateListParams extends ApiRequestParams { String rateCardVersion; private RateListParams( - Map extraParams, Integer limit, String meteredItem, String rateCardVersion) { + Map extraParams, Long limit, String meteredItem, String rateCardVersion) { this.extraParams = extraParams; this.limit = limit; this.meteredItem = meteredItem; @@ -47,7 +47,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private String meteredItem; @@ -86,7 +86,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/billing/ratecards/VersionListParams.java b/src/main/java/com/stripe/param/v2/billing/ratecards/VersionListParams.java index 9c73df383e5..d1fd541e3e3 100644 --- a/src/main/java/com/stripe/param/v2/billing/ratecards/VersionListParams.java +++ b/src/main/java/com/stripe/param/v2/billing/ratecards/VersionListParams.java @@ -22,9 +22,9 @@ public class VersionListParams extends ApiRequestParams { /** Optionally set the maximum number of results per page. Defaults to 20. */ @SerializedName("limit") - Integer limit; + Long limit; - private VersionListParams(Map extraParams, Integer limit) { + private VersionListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public VersionListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** Optionally set the maximum number of results per page. Defaults to 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java index de1bb2d8af1..b7c6c388685 100644 --- a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; import com.stripe.v2.Amount; +import java.math.BigDecimal; import java.time.Instant; import java.util.ArrayList; import java.util.HashMap; @@ -802,7 +803,7 @@ public static class Invoice { /** The sequence to be used on the customer's next invoice. Defaults to 1. */ @SerializedName("next_sequence") - Integer nextSequence; + Long nextSequence; /** * The prefix for the customer used to generate unique invoice numbers. Must be 3–12 @@ -820,7 +821,7 @@ private Invoice( customFields, Map extraParams, String footer, - Integer nextSequence, + Long nextSequence, String prefix, Rendering rendering) { this.customFields = customFields; @@ -843,7 +844,7 @@ public static class Builder { private String footer; - private Integer nextSequence; + private Long nextSequence; private String prefix; @@ -930,7 +931,7 @@ public Builder setFooter(String footer) { } /** The sequence to be used on the customer's next invoice. Defaults to 1. */ - public Builder setNextSequence(Integer nextSequence) { + public Builder setNextSequence(Long nextSequence) { this.nextSequence = nextSequence; return this; } @@ -1456,7 +1457,7 @@ public static class Address { * 3166-1 alpha-2). */ @SerializedName("country") - Country country; + String country; /** * Map of extra parameters for custom features not available in this client library. The @@ -1486,7 +1487,7 @@ public static class Address { private Address( String city, - Country country, + String country, Map extraParams, String line1, String line2, @@ -1508,7 +1509,7 @@ public static Builder builder() { public static class Builder { private String city; - private Country country; + private String country; private Map extraParams; @@ -1542,8 +1543,7 @@ public Builder setCity(String city) { * Two-letter country code (ISO 3166-1 alpha-2). */ - public Builder setCountry( - AccountCreateParams.Configuration.Customer.Shipping.Address.Country country) { + public Builder setCountry(String country) { this.country = country; return this; } @@ -1602,1990 +1602,2613 @@ public Builder setState(String state) { return this; } } + } + } + } - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Merchant { + /** Settings used for Bacs debit payments. */ + @SerializedName("bacs_debit_payments") + BacsDebitPayments bacsDebitPayments; - @SerializedName("am") - AM("am"), + /** + * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and + * other products. + */ + @SerializedName("branding") + Branding branding; - @SerializedName("ao") - AO("ao"), + /** Capabilities to request on the Merchant Configuration. */ + @SerializedName("capabilities") + Capabilities capabilities; - @SerializedName("aq") - AQ("aq"), + /** Card payments settings. */ + @SerializedName("card_payments") + CardPayments cardPayments; - @SerializedName("ar") - AR("ar"), + /** + * 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; - @SerializedName("as") - AS("as"), + /** + * The merchant category code for the Merchant Configuration. MCCs are used to classify + * businesses based on the goods or services they provide. + */ + @SerializedName("mcc") + String mcc; - @SerializedName("at") - AT("at"), + /** Statement descriptor. */ + @SerializedName("statement_descriptor") + StatementDescriptor statementDescriptor; - @SerializedName("au") - AU("au"), + /** Publicly available contact information for sending support issues to. */ + @SerializedName("support") + Support support; - @SerializedName("aw") - AW("aw"), + private Merchant( + BacsDebitPayments bacsDebitPayments, + Branding branding, + Capabilities capabilities, + CardPayments cardPayments, + Map extraParams, + String mcc, + StatementDescriptor statementDescriptor, + Support support) { + this.bacsDebitPayments = bacsDebitPayments; + this.branding = branding; + this.capabilities = capabilities; + this.cardPayments = cardPayments; + this.extraParams = extraParams; + this.mcc = mcc; + this.statementDescriptor = statementDescriptor; + this.support = support; + } - @SerializedName("ax") - AX("ax"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("az") - AZ("az"), + public static class Builder { + private BacsDebitPayments bacsDebitPayments; - @SerializedName("ba") - BA("ba"), + private Branding branding; - @SerializedName("bb") - BB("bb"), + private Capabilities capabilities; - @SerializedName("bd") - BD("bd"), + private CardPayments cardPayments; - @SerializedName("be") - BE("be"), + private Map extraParams; - @SerializedName("bf") - BF("bf"), + private String mcc; - @SerializedName("bg") - BG("bg"), + private StatementDescriptor statementDescriptor; - @SerializedName("bh") - BH("bh"), + private Support support; - @SerializedName("bi") - BI("bi"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant build() { + return new AccountCreateParams.Configuration.Merchant( + this.bacsDebitPayments, + this.branding, + this.capabilities, + this.cardPayments, + this.extraParams, + this.mcc, + this.statementDescriptor, + this.support); + } - @SerializedName("bj") - BJ("bj"), + /** Settings used for Bacs debit payments. */ + public Builder setBacsDebitPayments( + AccountCreateParams.Configuration.Merchant.BacsDebitPayments bacsDebitPayments) { + this.bacsDebitPayments = bacsDebitPayments; + return this; + } - @SerializedName("bl") - BL("bl"), + /** + * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and + * other products. + */ + public Builder setBranding(AccountCreateParams.Configuration.Merchant.Branding branding) { + this.branding = branding; + return this; + } - @SerializedName("bm") - BM("bm"), + /** Capabilities to request on the Merchant Configuration. */ + public Builder setCapabilities( + AccountCreateParams.Configuration.Merchant.Capabilities capabilities) { + this.capabilities = capabilities; + return this; + } - @SerializedName("bn") - BN("bn"), + /** Card payments settings. */ + public Builder setCardPayments( + AccountCreateParams.Configuration.Merchant.CardPayments cardPayments) { + this.cardPayments = cardPayments; + return this; + } - @SerializedName("bo") - BO("bo"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Merchant#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; + } - @SerializedName("bq") - BQ("bq"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Merchant#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("br") - BR("br"), + /** + * The merchant category code for the Merchant Configuration. MCCs are used to classify + * businesses based on the goods or services they provide. + */ + public Builder setMcc(String mcc) { + this.mcc = mcc; + return this; + } - @SerializedName("bs") - BS("bs"), + /** Statement descriptor. */ + public Builder setStatementDescriptor( + AccountCreateParams.Configuration.Merchant.StatementDescriptor statementDescriptor) { + this.statementDescriptor = statementDescriptor; + return this; + } - @SerializedName("bt") - BT("bt"), + /** Publicly available contact information for sending support issues to. */ + public Builder setSupport(AccountCreateParams.Configuration.Merchant.Support support) { + this.support = support; + return this; + } + } - @SerializedName("bv") - BV("bv"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BacsDebitPayments { + /** Display name for Bacs debit payments. */ + @SerializedName("display_name") + String displayName; - @SerializedName("bw") - BW("bw"), + /** + * 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; - @SerializedName("by") - BY("by"), + private BacsDebitPayments(String displayName, Map extraParams) { + this.displayName = displayName; + this.extraParams = extraParams; + } - @SerializedName("bz") - BZ("bz"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ca") - CA("ca"), + public static class Builder { + private String displayName; - @SerializedName("cc") - CC("cc"), + private Map extraParams; - @SerializedName("cd") - CD("cd"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.BacsDebitPayments build() { + return new AccountCreateParams.Configuration.Merchant.BacsDebitPayments( + this.displayName, this.extraParams); + } - @SerializedName("cf") - CF("cf"), + /** Display name for Bacs debit payments. */ + public Builder setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } - @SerializedName("cg") - CG("cg"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - @SerializedName("ch") - CH("ch"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } + } + } - @SerializedName("ci") - CI("ci"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Branding { + /** + * 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; - @SerializedName("ck") - CK("ck"), + /** + * ID of a file upload: + * An icon for the merchant. Must be square and at least 128px x 128px. + */ + @SerializedName("icon") + String icon; - @SerializedName("cl") - CL("cl"), + /** + * ID of a file upload: + * A logo for the merchant that will be used in Checkout instead of the icon and without the + * merchant's name next to it if provided. Must be at least 128px x 128px. + */ + @SerializedName("logo") + String logo; - @SerializedName("cm") - CM("cm"), + /** A CSS hex color value representing the primary branding color for the merchant. */ + @SerializedName("primary_color") + String primaryColor; - @SerializedName("cn") - CN("cn"), + /** A CSS hex color value representing the secondary branding color for the merchant. */ + @SerializedName("secondary_color") + String secondaryColor; - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), + private Branding( + Map extraParams, + String icon, + String logo, + String primaryColor, + String secondaryColor) { + this.extraParams = extraParams; + this.icon = icon; + this.logo = logo; + this.primaryColor = primaryColor; + this.secondaryColor = secondaryColor; + } - @SerializedName("gg") - GG("gg"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("gh") - GH("gh"), + public static class Builder { + private Map extraParams; - @SerializedName("gi") - GI("gi"), + private String icon; - @SerializedName("gl") - GL("gl"), + private String logo; - @SerializedName("gm") - GM("gm"), + private String primaryColor; - @SerializedName("gn") - GN("gn"), + private String secondaryColor; - @SerializedName("gp") - GP("gp"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Branding build() { + return new AccountCreateParams.Configuration.Merchant.Branding( + this.extraParams, this.icon, this.logo, this.primaryColor, this.secondaryColor); + } - @SerializedName("gq") - GQ("gq"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Merchant.Branding#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; + } - @SerializedName("gr") - GR("gr"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Merchant.Branding#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("gs") - GS("gs"), + /** + * ID of a file + * upload: An icon for the merchant. Must be square and at least 128px x 128px. + */ + public Builder setIcon(String icon) { + this.icon = icon; + return this; + } - @SerializedName("gt") - GT("gt"), + /** + * ID of a file + * upload: A logo for the merchant that will be used in Checkout instead of the icon + * and without the merchant's name next to it if provided. Must be at least 128px x 128px. + */ + public Builder setLogo(String logo) { + this.logo = logo; + return this; + } - @SerializedName("gu") - GU("gu"), + /** A CSS hex color value representing the primary branding color for the merchant. */ + public Builder setPrimaryColor(String primaryColor) { + this.primaryColor = primaryColor; + return this; + } - @SerializedName("gw") - GW("gw"), + /** A CSS hex color value representing the secondary branding color for the merchant. */ + public Builder setSecondaryColor(String secondaryColor) { + this.secondaryColor = secondaryColor; + return this; + } + } + } - @SerializedName("gy") - GY("gy"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Capabilities { + /** Allow the merchant to process ACH debit payments. */ + @SerializedName("ach_debit_payments") + AchDebitPayments achDebitPayments; - @SerializedName("hk") - HK("hk"), + /** Allow the merchant to process ACSS debit payments. */ + @SerializedName("acss_debit_payments") + AcssDebitPayments acssDebitPayments; - @SerializedName("hm") - HM("hm"), + /** Allow the merchant to process Affirm payments. */ + @SerializedName("affirm_payments") + AffirmPayments affirmPayments; - @SerializedName("hn") - HN("hn"), + /** Allow the merchant to process Afterpay/Clearpay payments. */ + @SerializedName("afterpay_clearpay_payments") + AfterpayClearpayPayments afterpayClearpayPayments; - @SerializedName("hr") - HR("hr"), + /** Allow the merchant to process Alma payments. */ + @SerializedName("alma_payments") + AlmaPayments almaPayments; - @SerializedName("ht") - HT("ht"), + /** Allow the merchant to process Amazon Pay payments. */ + @SerializedName("amazon_pay_payments") + AmazonPayPayments amazonPayPayments; - @SerializedName("hu") - HU("hu"), + /** Allow the merchant to process Australian BECS Direct Debit payments. */ + @SerializedName("au_becs_debit_payments") + AuBecsDebitPayments auBecsDebitPayments; - @SerializedName("id") - ID("id"), + /** Allow the merchant to process BACS Direct Debit payments. */ + @SerializedName("bacs_debit_payments") + BacsDebitPayments bacsDebitPayments; - @SerializedName("ie") - IE("ie"), + /** Allow the merchant to process Bancontact payments. */ + @SerializedName("bancontact_payments") + BancontactPayments bancontactPayments; - @SerializedName("il") - IL("il"), + /** Allow the merchant to process BLIK payments. */ + @SerializedName("blik_payments") + BlikPayments blikPayments; - @SerializedName("im") - IM("im"), + /** Allow the merchant to process Boleto payments. */ + @SerializedName("boleto_payments") + BoletoPayments boletoPayments; - @SerializedName("in") - IN("in"), + /** Allow the merchant to collect card payments. */ + @SerializedName("card_payments") + CardPayments cardPayments; - @SerializedName("io") - IO("io"), + /** Allow the merchant to process Cartes Bancaires payments. */ + @SerializedName("cartes_bancaires_payments") + CartesBancairesPayments cartesBancairesPayments; - @SerializedName("iq") - IQ("iq"), + /** Allow the merchant to process Cash App payments. */ + @SerializedName("cashapp_payments") + CashappPayments cashappPayments; - @SerializedName("ir") - IR("ir"), + /** Allow the merchant to process EPS payments. */ + @SerializedName("eps_payments") + EpsPayments epsPayments; - @SerializedName("is") - IS("is"), + /** + * 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; - @SerializedName("it") - IT("it"), + /** Allow the merchant to process FPX payments. */ + @SerializedName("fpx_payments") + FpxPayments fpxPayments; - @SerializedName("je") - JE("je"), + /** Allow the merchant to process UK bank transfer payments. */ + @SerializedName("gb_bank_transfer_payments") + GbBankTransferPayments gbBankTransferPayments; - @SerializedName("jm") - JM("jm"), + /** Allow the merchant to process GrabPay payments. */ + @SerializedName("grabpay_payments") + GrabpayPayments grabpayPayments; - @SerializedName("jo") - JO("jo"), + /** Allow the merchant to process iDEAL payments. */ + @SerializedName("ideal_payments") + IdealPayments idealPayments; - @SerializedName("jp") - JP("jp"), + /** Allow the merchant to process JCB card payments. */ + @SerializedName("jcb_payments") + JcbPayments jcbPayments; - @SerializedName("ke") - KE("ke"), + /** Allow the merchant to process Japanese bank transfer payments. */ + @SerializedName("jp_bank_transfer_payments") + JpBankTransferPayments jpBankTransferPayments; - @SerializedName("kg") - KG("kg"), + /** Allow the merchant to process Kakao Pay payments. */ + @SerializedName("kakao_pay_payments") + KakaoPayPayments kakaoPayPayments; - @SerializedName("kh") - KH("kh"), + /** Allow the merchant to process Klarna payments. */ + @SerializedName("klarna_payments") + KlarnaPayments klarnaPayments; - @SerializedName("ki") - KI("ki"), + /** Allow the merchant to process Konbini convenience store payments. */ + @SerializedName("konbini_payments") + KonbiniPayments konbiniPayments; - @SerializedName("km") - KM("km"), + /** Allow the merchant to process Korean card payments. */ + @SerializedName("kr_card_payments") + KrCardPayments krCardPayments; - @SerializedName("kn") - KN("kn"), + /** Allow the merchant to process Link payments. */ + @SerializedName("link_payments") + LinkPayments linkPayments; - @SerializedName("kp") - KP("kp"), + /** Allow the merchant to process MobilePay payments. */ + @SerializedName("mobilepay_payments") + MobilepayPayments mobilepayPayments; - @SerializedName("kr") - KR("kr"), + /** Allow the merchant to process Multibanco payments. */ + @SerializedName("multibanco_payments") + MultibancoPayments multibancoPayments; - @SerializedName("kw") - KW("kw"), + /** Allow the merchant to process Mexican bank transfer payments. */ + @SerializedName("mx_bank_transfer_payments") + MxBankTransferPayments mxBankTransferPayments; - @SerializedName("ky") - KY("ky"), + /** Allow the merchant to process Naver Pay payments. */ + @SerializedName("naver_pay_payments") + NaverPayPayments naverPayPayments; - @SerializedName("kz") - KZ("kz"), + /** Allow the merchant to process OXXO payments. */ + @SerializedName("oxxo_payments") + OxxoPayments oxxoPayments; - @SerializedName("la") - LA("la"), + /** Allow the merchant to process Przelewy24 (P24) payments. */ + @SerializedName("p24_payments") + P24Payments p24Payments; - @SerializedName("lb") - LB("lb"), + /** Allow the merchant to process Pay by Bank payments. */ + @SerializedName("pay_by_bank_payments") + PayByBankPayments payByBankPayments; - @SerializedName("lc") - LC("lc"), + /** Allow the merchant to process PAYCO payments. */ + @SerializedName("payco_payments") + PaycoPayments paycoPayments; - @SerializedName("li") - LI("li"), + /** Allow the merchant to process PayNow payments. */ + @SerializedName("paynow_payments") + PaynowPayments paynowPayments; - @SerializedName("lk") - LK("lk"), + /** Allow the merchant to process PromptPay payments. */ + @SerializedName("promptpay_payments") + PromptpayPayments promptpayPayments; - @SerializedName("lr") - LR("lr"), + /** Allow the merchant to process Revolut Pay payments. */ + @SerializedName("revolut_pay_payments") + RevolutPayPayments revolutPayPayments; - @SerializedName("ls") - LS("ls"), + /** Allow the merchant to process Samsung Pay payments. */ + @SerializedName("samsung_pay_payments") + SamsungPayPayments samsungPayPayments; - @SerializedName("lt") - LT("lt"), + /** Allow the merchant to process SEPA bank transfer payments. */ + @SerializedName("sepa_bank_transfer_payments") + SepaBankTransferPayments sepaBankTransferPayments; - @SerializedName("lu") - LU("lu"), + /** Allow the merchant to process SEPA Direct Debit payments. */ + @SerializedName("sepa_debit_payments") + SepaDebitPayments sepaDebitPayments; - @SerializedName("lv") - LV("lv"), + /** Allow the merchant to process Swish payments. */ + @SerializedName("swish_payments") + SwishPayments swishPayments; - @SerializedName("ly") - LY("ly"), + /** Allow the merchant to process TWINT payments. */ + @SerializedName("twint_payments") + TwintPayments twintPayments; - @SerializedName("ma") - MA("ma"), + /** Allow the merchant to process US bank transfer payments. */ + @SerializedName("us_bank_transfer_payments") + UsBankTransferPayments usBankTransferPayments; - @SerializedName("mc") - MC("mc"), + /** Allow the merchant to process Zip payments. */ + @SerializedName("zip_payments") + ZipPayments zipPayments; - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), + private Capabilities( + AchDebitPayments achDebitPayments, + AcssDebitPayments acssDebitPayments, + AffirmPayments affirmPayments, + AfterpayClearpayPayments afterpayClearpayPayments, + AlmaPayments almaPayments, + AmazonPayPayments amazonPayPayments, + AuBecsDebitPayments auBecsDebitPayments, + BacsDebitPayments bacsDebitPayments, + BancontactPayments bancontactPayments, + BlikPayments blikPayments, + BoletoPayments boletoPayments, + CardPayments cardPayments, + CartesBancairesPayments cartesBancairesPayments, + CashappPayments cashappPayments, + EpsPayments epsPayments, + Map extraParams, + FpxPayments fpxPayments, + GbBankTransferPayments gbBankTransferPayments, + GrabpayPayments grabpayPayments, + IdealPayments idealPayments, + JcbPayments jcbPayments, + JpBankTransferPayments jpBankTransferPayments, + KakaoPayPayments kakaoPayPayments, + KlarnaPayments klarnaPayments, + KonbiniPayments konbiniPayments, + KrCardPayments krCardPayments, + LinkPayments linkPayments, + MobilepayPayments mobilepayPayments, + MultibancoPayments multibancoPayments, + MxBankTransferPayments mxBankTransferPayments, + NaverPayPayments naverPayPayments, + OxxoPayments oxxoPayments, + P24Payments p24Payments, + PayByBankPayments payByBankPayments, + PaycoPayments paycoPayments, + PaynowPayments paynowPayments, + PromptpayPayments promptpayPayments, + RevolutPayPayments revolutPayPayments, + SamsungPayPayments samsungPayPayments, + SepaBankTransferPayments sepaBankTransferPayments, + SepaDebitPayments sepaDebitPayments, + SwishPayments swishPayments, + TwintPayments twintPayments, + UsBankTransferPayments usBankTransferPayments, + ZipPayments zipPayments) { + this.achDebitPayments = achDebitPayments; + this.acssDebitPayments = acssDebitPayments; + this.affirmPayments = affirmPayments; + this.afterpayClearpayPayments = afterpayClearpayPayments; + this.almaPayments = almaPayments; + this.amazonPayPayments = amazonPayPayments; + this.auBecsDebitPayments = auBecsDebitPayments; + this.bacsDebitPayments = bacsDebitPayments; + this.bancontactPayments = bancontactPayments; + this.blikPayments = blikPayments; + this.boletoPayments = boletoPayments; + this.cardPayments = cardPayments; + this.cartesBancairesPayments = cartesBancairesPayments; + this.cashappPayments = cashappPayments; + this.epsPayments = epsPayments; + this.extraParams = extraParams; + this.fpxPayments = fpxPayments; + this.gbBankTransferPayments = gbBankTransferPayments; + this.grabpayPayments = grabpayPayments; + this.idealPayments = idealPayments; + this.jcbPayments = jcbPayments; + this.jpBankTransferPayments = jpBankTransferPayments; + this.kakaoPayPayments = kakaoPayPayments; + this.klarnaPayments = klarnaPayments; + this.konbiniPayments = konbiniPayments; + this.krCardPayments = krCardPayments; + this.linkPayments = linkPayments; + this.mobilepayPayments = mobilepayPayments; + this.multibancoPayments = multibancoPayments; + this.mxBankTransferPayments = mxBankTransferPayments; + this.naverPayPayments = naverPayPayments; + this.oxxoPayments = oxxoPayments; + this.p24Payments = p24Payments; + this.payByBankPayments = payByBankPayments; + this.paycoPayments = paycoPayments; + this.paynowPayments = paynowPayments; + this.promptpayPayments = promptpayPayments; + this.revolutPayPayments = revolutPayPayments; + this.samsungPayPayments = samsungPayPayments; + this.sepaBankTransferPayments = sepaBankTransferPayments; + this.sepaDebitPayments = sepaDebitPayments; + this.swishPayments = swishPayments; + this.twintPayments = twintPayments; + this.usBankTransferPayments = usBankTransferPayments; + this.zipPayments = zipPayments; + } - @SerializedName("mk") - MK("mk"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ml") - ML("ml"), + public static class Builder { + private AchDebitPayments achDebitPayments; - @SerializedName("mm") - MM("mm"), + private AcssDebitPayments acssDebitPayments; - @SerializedName("mn") - MN("mn"), + private AffirmPayments affirmPayments; - @SerializedName("mo") - MO("mo"), + private AfterpayClearpayPayments afterpayClearpayPayments; - @SerializedName("mp") - MP("mp"), + private AlmaPayments almaPayments; - @SerializedName("mq") - MQ("mq"), + private AmazonPayPayments amazonPayPayments; - @SerializedName("mr") - MR("mr"), + private AuBecsDebitPayments auBecsDebitPayments; - @SerializedName("ms") - MS("ms"), + private BacsDebitPayments bacsDebitPayments; - @SerializedName("mt") - MT("mt"), + private BancontactPayments bancontactPayments; - @SerializedName("mu") - MU("mu"), + private BlikPayments blikPayments; - @SerializedName("mv") - MV("mv"), + private BoletoPayments boletoPayments; - @SerializedName("mw") - MW("mw"), + private CardPayments cardPayments; - @SerializedName("mx") - MX("mx"), + private CartesBancairesPayments cartesBancairesPayments; - @SerializedName("my") - MY("my"), + private CashappPayments cashappPayments; - @SerializedName("mz") - MZ("mz"), + private EpsPayments epsPayments; - @SerializedName("na") - NA("na"), + private Map extraParams; - @SerializedName("nc") - NC("nc"), + private FpxPayments fpxPayments; - @SerializedName("ne") - NE("ne"), + private GbBankTransferPayments gbBankTransferPayments; - @SerializedName("nf") - NF("nf"), + private GrabpayPayments grabpayPayments; - @SerializedName("ng") - NG("ng"), + private IdealPayments idealPayments; - @SerializedName("ni") - NI("ni"), + private JcbPayments jcbPayments; - @SerializedName("nl") - NL("nl"), + private JpBankTransferPayments jpBankTransferPayments; - @SerializedName("no") - NO("no"), + private KakaoPayPayments kakaoPayPayments; - @SerializedName("np") - NP("np"), + private KlarnaPayments klarnaPayments; - @SerializedName("nr") - NR("nr"), + private KonbiniPayments konbiniPayments; - @SerializedName("nu") - NU("nu"), + private KrCardPayments krCardPayments; - @SerializedName("nz") - NZ("nz"), + private LinkPayments linkPayments; - @SerializedName("om") - OM("om"), + private MobilepayPayments mobilepayPayments; - @SerializedName("pa") - PA("pa"), + private MultibancoPayments multibancoPayments; - @SerializedName("pe") - PE("pe"), + private MxBankTransferPayments mxBankTransferPayments; - @SerializedName("pf") - PF("pf"), + private NaverPayPayments naverPayPayments; - @SerializedName("pg") - PG("pg"), + private OxxoPayments oxxoPayments; - @SerializedName("ph") - PH("ph"), + private P24Payments p24Payments; - @SerializedName("pk") - PK("pk"), + private PayByBankPayments payByBankPayments; - @SerializedName("pl") - PL("pl"), + private PaycoPayments paycoPayments; - @SerializedName("pm") - PM("pm"), + private PaynowPayments paynowPayments; - @SerializedName("pn") - PN("pn"), + private PromptpayPayments promptpayPayments; - @SerializedName("pr") - PR("pr"), + private RevolutPayPayments revolutPayPayments; - @SerializedName("ps") - PS("ps"), + private SamsungPayPayments samsungPayPayments; - @SerializedName("pt") - PT("pt"), + private SepaBankTransferPayments sepaBankTransferPayments; - @SerializedName("pw") - PW("pw"), + private SepaDebitPayments sepaDebitPayments; - @SerializedName("py") - PY("py"), + private SwishPayments swishPayments; - @SerializedName("qa") - QA("qa"), + private TwintPayments twintPayments; - @SerializedName("qz") - QZ("qz"), + private UsBankTransferPayments usBankTransferPayments; - @SerializedName("re") - RE("re"), + private ZipPayments zipPayments; - @SerializedName("ro") - RO("ro"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities( + this.achDebitPayments, + this.acssDebitPayments, + this.affirmPayments, + this.afterpayClearpayPayments, + this.almaPayments, + this.amazonPayPayments, + this.auBecsDebitPayments, + this.bacsDebitPayments, + this.bancontactPayments, + this.blikPayments, + this.boletoPayments, + this.cardPayments, + this.cartesBancairesPayments, + this.cashappPayments, + this.epsPayments, + this.extraParams, + this.fpxPayments, + this.gbBankTransferPayments, + this.grabpayPayments, + this.idealPayments, + this.jcbPayments, + this.jpBankTransferPayments, + this.kakaoPayPayments, + this.klarnaPayments, + this.konbiniPayments, + this.krCardPayments, + this.linkPayments, + this.mobilepayPayments, + this.multibancoPayments, + this.mxBankTransferPayments, + this.naverPayPayments, + this.oxxoPayments, + this.p24Payments, + this.payByBankPayments, + this.paycoPayments, + this.paynowPayments, + this.promptpayPayments, + this.revolutPayPayments, + this.samsungPayPayments, + this.sepaBankTransferPayments, + this.sepaDebitPayments, + this.swishPayments, + this.twintPayments, + this.usBankTransferPayments, + this.zipPayments); + } - @SerializedName("rs") - RS("rs"), + /** Allow the merchant to process ACH debit payments. */ + public Builder setAchDebitPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments + achDebitPayments) { + this.achDebitPayments = achDebitPayments; + return this; + } - @SerializedName("ru") - RU("ru"), + /** Allow the merchant to process ACSS debit payments. */ + public Builder setAcssDebitPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments + acssDebitPayments) { + this.acssDebitPayments = acssDebitPayments; + return this; + } - @SerializedName("rw") - RW("rw"), + /** Allow the merchant to process Affirm payments. */ + public Builder setAffirmPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments + affirmPayments) { + this.affirmPayments = affirmPayments; + return this; + } - @SerializedName("sa") - SA("sa"), + /** Allow the merchant to process Afterpay/Clearpay payments. */ + public Builder setAfterpayClearpayPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments + afterpayClearpayPayments) { + this.afterpayClearpayPayments = afterpayClearpayPayments; + return this; + } - @SerializedName("sb") - SB("sb"), + /** Allow the merchant to process Alma payments. */ + public Builder setAlmaPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments almaPayments) { + this.almaPayments = almaPayments; + return this; + } - @SerializedName("sc") - SC("sc"), + /** Allow the merchant to process Amazon Pay payments. */ + public Builder setAmazonPayPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments + amazonPayPayments) { + this.amazonPayPayments = amazonPayPayments; + return this; + } - @SerializedName("sd") - SD("sd"), + /** Allow the merchant to process Australian BECS Direct Debit payments. */ + public Builder setAuBecsDebitPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments + auBecsDebitPayments) { + this.auBecsDebitPayments = auBecsDebitPayments; + return this; + } - @SerializedName("se") - SE("se"), + /** Allow the merchant to process BACS Direct Debit payments. */ + public Builder setBacsDebitPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.BacsDebitPayments + bacsDebitPayments) { + this.bacsDebitPayments = bacsDebitPayments; + return this; + } - @SerializedName("sg") - SG("sg"), + /** Allow the merchant to process Bancontact payments. */ + public Builder setBancontactPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.BancontactPayments + bancontactPayments) { + this.bancontactPayments = bancontactPayments; + return this; + } - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), + /** Allow the merchant to process BLIK payments. */ + public Builder setBlikPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments blikPayments) { + this.blikPayments = blikPayments; + return this; + } - @SerializedName("sm") - SM("sm"), + /** Allow the merchant to process Boleto payments. */ + public Builder setBoletoPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments + boletoPayments) { + this.boletoPayments = boletoPayments; + return this; + } - @SerializedName("sn") - SN("sn"), + /** Allow the merchant to collect card payments. */ + public Builder setCardPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.CardPayments cardPayments) { + this.cardPayments = cardPayments; + return this; + } - @SerializedName("so") - SO("so"), + /** Allow the merchant to process Cartes Bancaires payments. */ + public Builder setCartesBancairesPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments + cartesBancairesPayments) { + this.cartesBancairesPayments = cartesBancairesPayments; + return this; + } - @SerializedName("sr") - SR("sr"), + /** Allow the merchant to process Cash App payments. */ + public Builder setCashappPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments + cashappPayments) { + this.cashappPayments = cashappPayments; + return this; + } - @SerializedName("ss") - SS("ss"), + /** Allow the merchant to process EPS payments. */ + public Builder setEpsPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments epsPayments) { + this.epsPayments = epsPayments; + return this; + } - @SerializedName("st") - ST("st"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Merchant.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; + } - @SerializedName("sv") - SV("sv"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Merchant.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; + } - @SerializedName("sx") - SX("sx"), + /** Allow the merchant to process FPX payments. */ + public Builder setFpxPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments fpxPayments) { + this.fpxPayments = fpxPayments; + return this; + } - @SerializedName("sy") - SY("sy"), + /** Allow the merchant to process UK bank transfer payments. */ + public Builder setGbBankTransferPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments + gbBankTransferPayments) { + this.gbBankTransferPayments = gbBankTransferPayments; + return this; + } - @SerializedName("sz") - SZ("sz"), + /** Allow the merchant to process GrabPay payments. */ + public Builder setGrabpayPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments + grabpayPayments) { + this.grabpayPayments = grabpayPayments; + return this; + } - @SerializedName("tc") - TC("tc"), + /** Allow the merchant to process iDEAL payments. */ + public Builder setIdealPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments idealPayments) { + this.idealPayments = idealPayments; + return this; + } - @SerializedName("td") - TD("td"), + /** Allow the merchant to process JCB card payments. */ + public Builder setJcbPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments jcbPayments) { + this.jcbPayments = jcbPayments; + return this; + } - @SerializedName("tf") - TF("tf"), + /** Allow the merchant to process Japanese bank transfer payments. */ + public Builder setJpBankTransferPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments + jpBankTransferPayments) { + this.jpBankTransferPayments = jpBankTransferPayments; + return this; + } - @SerializedName("tg") - TG("tg"), + /** Allow the merchant to process Kakao Pay payments. */ + public Builder setKakaoPayPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments + kakaoPayPayments) { + this.kakaoPayPayments = kakaoPayPayments; + return this; + } - @SerializedName("th") - TH("th"), + /** Allow the merchant to process Klarna payments. */ + public Builder setKlarnaPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments + klarnaPayments) { + this.klarnaPayments = klarnaPayments; + return this; + } - @SerializedName("tj") - TJ("tj"), + /** Allow the merchant to process Konbini convenience store payments. */ + public Builder setKonbiniPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments + konbiniPayments) { + this.konbiniPayments = konbiniPayments; + return this; + } - @SerializedName("tk") - TK("tk"), + /** Allow the merchant to process Korean card payments. */ + public Builder setKrCardPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments + krCardPayments) { + this.krCardPayments = krCardPayments; + return this; + } - @SerializedName("tl") - TL("tl"), + /** Allow the merchant to process Link payments. */ + public Builder setLinkPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments linkPayments) { + this.linkPayments = linkPayments; + return this; + } - @SerializedName("tm") - TM("tm"), + /** Allow the merchant to process MobilePay payments. */ + public Builder setMobilepayPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments + mobilepayPayments) { + this.mobilepayPayments = mobilepayPayments; + return this; + } - @SerializedName("tn") - TN("tn"), + /** Allow the merchant to process Multibanco payments. */ + public Builder setMultibancoPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments + multibancoPayments) { + this.multibancoPayments = multibancoPayments; + return this; + } - @SerializedName("to") - TO("to"), + /** Allow the merchant to process Mexican bank transfer payments. */ + public Builder setMxBankTransferPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments + mxBankTransferPayments) { + this.mxBankTransferPayments = mxBankTransferPayments; + return this; + } - @SerializedName("tr") - TR("tr"), + /** Allow the merchant to process Naver Pay payments. */ + public Builder setNaverPayPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments + naverPayPayments) { + this.naverPayPayments = naverPayPayments; + return this; + } - @SerializedName("tt") - TT("tt"), + /** Allow the merchant to process OXXO payments. */ + public Builder setOxxoPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.OxxoPayments oxxoPayments) { + this.oxxoPayments = oxxoPayments; + return this; + } - @SerializedName("tv") - TV("tv"), + /** Allow the merchant to process Przelewy24 (P24) payments. */ + public Builder setP24Payments( + AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments p24Payments) { + this.p24Payments = p24Payments; + return this; + } - @SerializedName("tw") - TW("tw"), + /** Allow the merchant to process Pay by Bank payments. */ + public Builder setPayByBankPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments + payByBankPayments) { + this.payByBankPayments = payByBankPayments; + return this; + } - @SerializedName("tz") - TZ("tz"), + /** Allow the merchant to process PAYCO payments. */ + public Builder setPaycoPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments paycoPayments) { + this.paycoPayments = paycoPayments; + return this; + } - @SerializedName("ua") - UA("ua"), + /** Allow the merchant to process PayNow payments. */ + public Builder setPaynowPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments + paynowPayments) { + this.paynowPayments = paynowPayments; + return this; + } - @SerializedName("ug") - UG("ug"), + /** Allow the merchant to process PromptPay payments. */ + public Builder setPromptpayPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments + promptpayPayments) { + this.promptpayPayments = promptpayPayments; + return this; + } - @SerializedName("um") - UM("um"), + /** Allow the merchant to process Revolut Pay payments. */ + public Builder setRevolutPayPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments + revolutPayPayments) { + this.revolutPayPayments = revolutPayPayments; + return this; + } - @SerializedName("us") - US("us"), + /** Allow the merchant to process Samsung Pay payments. */ + public Builder setSamsungPayPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments + samsungPayPayments) { + this.samsungPayPayments = samsungPayPayments; + return this; + } - @SerializedName("uy") - UY("uy"), + /** Allow the merchant to process SEPA bank transfer payments. */ + public Builder setSepaBankTransferPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments + sepaBankTransferPayments) { + this.sepaBankTransferPayments = sepaBankTransferPayments; + return this; + } - @SerializedName("uz") - UZ("uz"), + /** Allow the merchant to process SEPA Direct Debit payments. */ + public Builder setSepaDebitPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments + sepaDebitPayments) { + this.sepaDebitPayments = sepaDebitPayments; + return this; + } - @SerializedName("va") - VA("va"), + /** Allow the merchant to process Swish payments. */ + public Builder setSwishPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments swishPayments) { + this.swishPayments = swishPayments; + return this; + } - @SerializedName("vc") - VC("vc"), + /** Allow the merchant to process TWINT payments. */ + public Builder setTwintPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments twintPayments) { + this.twintPayments = twintPayments; + return this; + } - @SerializedName("ve") - VE("ve"), + /** Allow the merchant to process US bank transfer payments. */ + public Builder setUsBankTransferPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments + usBankTransferPayments) { + this.usBankTransferPayments = usBankTransferPayments; + return this; + } - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), + /** Allow the merchant to process Zip payments. */ + public Builder setZipPayments( + AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments zipPayments) { + this.zipPayments = zipPayments; + return this; + } + } - @SerializedName("wf") - WF("wf"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AchDebitPayments { + /** + * 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; - @SerializedName("ws") - WS("ws"), + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("xx") - XX("xx"), + private AchDebitPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("ye") - YE("ye"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("yt") - YT("yt"), + public static class Builder { + private Map extraParams; - @SerializedName("za") - ZA("za"), + private Boolean requested; - @SerializedName("zm") - ZM("zm"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments( + this.extraParams, this.requested); + } - @SerializedName("zw") - ZW("zw"); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments#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; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - Country(String value) { - this.value = value; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; } } } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Merchant { - /** Settings used for Bacs debit payments. */ - @SerializedName("bacs_debit_payments") - BacsDebitPayments bacsDebitPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - /** - * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and - * other products. - */ - @SerializedName("branding") - Branding branding; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Capabilities to request on the Merchant Configuration. */ - @SerializedName("capabilities") - Capabilities capabilities; + private AcssDebitPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** Card payments settings. */ - @SerializedName("card_payments") - CardPayments cardPayments; + public static Builder builder() { + return new Builder(); + } - /** - * 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; + public static class Builder { + private Map extraParams; - /** - * The merchant category code for the Merchant Configuration. MCCs are used to classify - * businesses based on the goods or services they provide. - */ - @SerializedName("mcc") - String mcc; + private Boolean requested; - /** Statement descriptor. */ - @SerializedName("statement_descriptor") - StatementDescriptor statementDescriptor; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments( + this.extraParams, this.requested); + } - /** Publicly available contact information for sending support issues to. */ - @SerializedName("support") - Support support; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - private Merchant( - BacsDebitPayments bacsDebitPayments, - Branding branding, - Capabilities capabilities, - CardPayments cardPayments, - Map extraParams, - String mcc, - StatementDescriptor statementDescriptor, - Support support) { - this.bacsDebitPayments = bacsDebitPayments; - this.branding = branding; - this.capabilities = capabilities; - this.cardPayments = cardPayments; - this.extraParams = extraParams; - this.mcc = mcc; - this.statementDescriptor = statementDescriptor; - this.support = support; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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 static Builder builder() { - return new Builder(); - } + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - public static class Builder { - private BacsDebitPayments bacsDebitPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AffirmPayments { + /** + * 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 Branding branding; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private Capabilities capabilities; + private AffirmPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - private CardPayments cardPayments; + public static Builder builder() { + return new Builder(); + } - private Map extraParams; + public static class Builder { + private Map extraParams; - private String mcc; + private Boolean requested; - private StatementDescriptor statementDescriptor; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments( + this.extraParams, this.requested); + } - private Support support; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant build() { - return new AccountCreateParams.Configuration.Merchant( - this.bacsDebitPayments, - this.branding, - this.capabilities, - this.cardPayments, - this.extraParams, - this.mcc, - this.statementDescriptor, - this.support); - } + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments#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; + } - /** Settings used for Bacs debit payments. */ - public Builder setBacsDebitPayments( - AccountCreateParams.Configuration.Merchant.BacsDebitPayments bacsDebitPayments) { - this.bacsDebitPayments = bacsDebitPayments; - return this; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - /** - * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and - * other products. - */ - public Builder setBranding(AccountCreateParams.Configuration.Merchant.Branding branding) { - this.branding = branding; - return this; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } - /** Capabilities to request on the Merchant Configuration. */ - public Builder setCapabilities( - AccountCreateParams.Configuration.Merchant.Capabilities capabilities) { - this.capabilities = capabilities; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - /** Card payments settings. */ - public Builder setCardPayments( - AccountCreateParams.Configuration.Merchant.CardPayments cardPayments) { - this.cardPayments = cardPayments; - return this; - } + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Merchant#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + private AfterpayClearpayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Merchant#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + public static Builder builder() { + return new Builder(); } - this.extraParams.putAll(map); - return this; - } - - /** - * The merchant category code for the Merchant Configuration. MCCs are used to classify - * businesses based on the goods or services they provide. - */ - public Builder setMcc(String mcc) { - this.mcc = mcc; - return this; - } - /** Statement descriptor. */ - public Builder setStatementDescriptor( - AccountCreateParams.Configuration.Merchant.StatementDescriptor statementDescriptor) { - this.statementDescriptor = statementDescriptor; - return this; - } + public static class Builder { + private Map extraParams; - /** Publicly available contact information for sending support issues to. */ - public Builder setSupport(AccountCreateParams.Configuration.Merchant.Support support) { - this.support = support; - return this; - } - } + private Boolean requested; - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BacsDebitPayments { - /** Display name for Bacs debit payments. */ - @SerializedName("display_name") - String displayName; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities + .AfterpayClearpayPayments(this.extraParams, this.requested); + } - /** - * 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; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - private BacsDebitPayments(String displayName, Map extraParams) { - this.displayName = displayName; - this.extraParams = extraParams; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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 static Builder builder() { - return new Builder(); + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } - public static class Builder { - private String displayName; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AlmaPayments { + /** + * 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 Map extraParams; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.BacsDebitPayments build() { - return new AccountCreateParams.Configuration.Merchant.BacsDebitPayments( - this.displayName, this.extraParams); + private AlmaPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - /** Display name for Bacs debit payments. */ - public Builder setDisplayName(String displayName) { - this.displayName = displayName; - return this; + public static Builder builder() { + return new Builder(); } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Configuration.Merchant.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.Configuration.Merchant.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; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Branding { - /** - * 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; + public static class Builder { + private Map extraParams; - /** - * ID of a file upload: - * An icon for the merchant. Must be square and at least 128px x 128px. - */ - @SerializedName("icon") - String icon; + private Boolean requested; - /** - * ID of a file upload: - * A logo for the merchant that will be used in Checkout instead of the icon and without the - * merchant's name next to it if provided. Must be at least 128px x 128px. - */ - @SerializedName("logo") - String logo; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments( + this.extraParams, this.requested); + } - /** A CSS hex color value representing the primary branding color for the merchant. */ - @SerializedName("primary_color") - String primaryColor; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments#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; + } - /** A CSS hex color value representing the secondary branding color for the merchant. */ - @SerializedName("secondary_color") - String secondaryColor; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - private Branding( - Map extraParams, - String icon, - String logo, - String primaryColor, - String secondaryColor) { - this.extraParams = extraParams; - this.icon = icon; - this.logo = logo; - this.primaryColor = primaryColor; - this.secondaryColor = secondaryColor; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } - public static Builder builder() { - return new Builder(); - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AmazonPayPayments { + /** + * 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; - public static class Builder { - private Map extraParams; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private String icon; + private AmazonPayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - private String logo; + public static Builder builder() { + return new Builder(); + } - private String primaryColor; + public static class Builder { + private Map extraParams; - private String secondaryColor; + private Boolean requested; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Branding build() { - return new AccountCreateParams.Configuration.Merchant.Branding( - this.extraParams, this.icon, this.logo, this.primaryColor, this.secondaryColor); - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments( + this.extraParams, this.requested); + } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Merchant.Branding#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments#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; } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Merchant.Branding#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; } - this.extraParams.putAll(map); - return this; } + } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AuBecsDebitPayments { /** - * ID of a file - * upload: An icon for the merchant. Must be square and at least 128px x 128px. + * 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. */ - public Builder setIcon(String icon) { - this.icon = icon; - return this; - } + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; /** - * ID of a file - * upload: A logo for the merchant that will be used in Checkout instead of the icon - * and without the merchant's name next to it if provided. Must be at least 128px x 128px. + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. */ - public Builder setLogo(String logo) { - this.logo = logo; - return this; - } + @SerializedName("requested") + Boolean requested; - /** A CSS hex color value representing the primary branding color for the merchant. */ - public Builder setPrimaryColor(String primaryColor) { - this.primaryColor = primaryColor; - return this; + private AuBecsDebitPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - /** A CSS hex color value representing the secondary branding color for the merchant. */ - public Builder setSecondaryColor(String secondaryColor) { - this.secondaryColor = secondaryColor; - return this; + public static Builder builder() { + return new Builder(); } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Capabilities { - /** Allow the merchant to process ACH debit payments. */ - @SerializedName("ach_debit_payments") - AchDebitPayments achDebitPayments; - /** Allow the merchant to process ACSS debit payments. */ - @SerializedName("acss_debit_payments") - AcssDebitPayments acssDebitPayments; + public static class Builder { + private Map extraParams; - /** Allow the merchant to process Affirm payments. */ - @SerializedName("affirm_payments") - AffirmPayments affirmPayments; + private Boolean requested; - /** Allow the merchant to process Afterpay/Clearpay payments. */ - @SerializedName("afterpay_clearpay_payments") - AfterpayClearpayPayments afterpayClearpayPayments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities + .AuBecsDebitPayments(this.extraParams, this.requested); + } - /** Allow the merchant to process Alma payments. */ - @SerializedName("alma_payments") - AlmaPayments almaPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - /** Allow the merchant to process Amazon Pay payments. */ - @SerializedName("amazon_pay_payments") - AmazonPayPayments amazonPayPayments; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - /** Allow the merchant to process Australian BECS Direct Debit payments. */ - @SerializedName("au_becs_debit_payments") - AuBecsDebitPayments auBecsDebitPayments; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - /** Allow the merchant to process BACS Direct Debit payments. */ - @SerializedName("bacs_debit_payments") - BacsDebitPayments bacsDebitPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - /** Allow the merchant to process Bancontact payments. */ - @SerializedName("bancontact_payments") - BancontactPayments bancontactPayments; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Allow the merchant to process BLIK payments. */ - @SerializedName("blik_payments") - BlikPayments blikPayments; + private BacsDebitPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** Allow the merchant to process Boleto payments. */ - @SerializedName("boleto_payments") - BoletoPayments boletoPayments; + public static Builder builder() { + return new Builder(); + } - /** Allow the merchant to collect card payments. */ - @SerializedName("card_payments") - CardPayments cardPayments; + public static class Builder { + private Map extraParams; - /** Allow the merchant to process Cartes Bancaires payments. */ - @SerializedName("cartes_bancaires_payments") - CartesBancairesPayments cartesBancairesPayments; + private Boolean requested; - /** Allow the merchant to process Cash App payments. */ - @SerializedName("cashapp_payments") - CashappPayments cashappPayments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.BacsDebitPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.BacsDebitPayments( + this.extraParams, this.requested); + } - /** Allow the merchant to process EPS payments. */ - @SerializedName("eps_payments") - EpsPayments epsPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - /** - * 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; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - /** Allow the merchant to process FPX payments. */ - @SerializedName("fpx_payments") - FpxPayments fpxPayments; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - /** Allow the merchant to process UK bank transfer payments. */ - @SerializedName("gb_bank_transfer_payments") - GbBankTransferPayments gbBankTransferPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - /** Allow the merchant to process GrabPay payments. */ - @SerializedName("grabpay_payments") - GrabpayPayments grabpayPayments; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Allow the merchant to process iDEAL payments. */ - @SerializedName("ideal_payments") - IdealPayments idealPayments; + private BancontactPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** Allow the merchant to process JCB card payments. */ - @SerializedName("jcb_payments") - JcbPayments jcbPayments; + public static Builder builder() { + return new Builder(); + } - /** Allow the merchant to process Japanese bank transfer payments. */ - @SerializedName("jp_bank_transfer_payments") - JpBankTransferPayments jpBankTransferPayments; + public static class Builder { + private Map extraParams; - /** Allow the merchant to process Kakao Pay payments. */ - @SerializedName("kakao_pay_payments") - KakaoPayPayments kakaoPayPayments; + private Boolean requested; - /** Allow the merchant to process Klarna payments. */ - @SerializedName("klarna_payments") - KlarnaPayments klarnaPayments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.BancontactPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.BancontactPayments( + this.extraParams, this.requested); + } - /** Allow the merchant to process Konbini convenience store payments. */ - @SerializedName("konbini_payments") - KonbiniPayments konbiniPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - /** Allow the merchant to process Korean card payments. */ - @SerializedName("kr_card_payments") - KrCardPayments krCardPayments; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - /** Allow the merchant to process Link payments. */ - @SerializedName("link_payments") - LinkPayments linkPayments; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - /** Allow the merchant to process MobilePay payments. */ - @SerializedName("mobilepay_payments") - MobilepayPayments mobilepayPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BlikPayments { + /** + * 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; - /** Allow the merchant to process Multibanco payments. */ - @SerializedName("multibanco_payments") - MultibancoPayments multibancoPayments; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Allow the merchant to process Mexican bank transfer payments. */ - @SerializedName("mx_bank_transfer_payments") - MxBankTransferPayments mxBankTransferPayments; + private BlikPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** Allow the merchant to process Naver Pay payments. */ - @SerializedName("naver_pay_payments") - NaverPayPayments naverPayPayments; + public static Builder builder() { + return new Builder(); + } - /** Allow the merchant to process OXXO payments. */ - @SerializedName("oxxo_payments") - OxxoPayments oxxoPayments; + public static class Builder { + private Map extraParams; - /** Allow the merchant to process Przelewy24 (P24) payments. */ - @SerializedName("p24_payments") - P24Payments p24Payments; + private Boolean requested; - /** Allow the merchant to process Pay by Bank payments. */ - @SerializedName("pay_by_bank_payments") - PayByBankPayments payByBankPayments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments( + this.extraParams, this.requested); + } - /** Allow the merchant to process PAYCO payments. */ - @SerializedName("payco_payments") - PaycoPayments paycoPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments#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; + } - /** Allow the merchant to process PayNow payments. */ - @SerializedName("paynow_payments") - PaynowPayments paynowPayments; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - /** Allow the merchant to process PromptPay payments. */ - @SerializedName("promptpay_payments") - PromptpayPayments promptpayPayments; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - /** Allow the merchant to process Revolut Pay payments. */ - @SerializedName("revolut_pay_payments") - RevolutPayPayments revolutPayPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - /** Allow the merchant to process Samsung Pay payments. */ - @SerializedName("samsung_pay_payments") - SamsungPayPayments samsungPayPayments; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Allow the merchant to process SEPA bank transfer payments. */ - @SerializedName("sepa_bank_transfer_payments") - SepaBankTransferPayments sepaBankTransferPayments; + private BoletoPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** Allow the merchant to process SEPA Direct Debit payments. */ - @SerializedName("sepa_debit_payments") - SepaDebitPayments sepaDebitPayments; + public static Builder builder() { + return new Builder(); + } - /** Allow the merchant to process Swish payments. */ - @SerializedName("swish_payments") - SwishPayments swishPayments; + public static class Builder { + private Map extraParams; - /** Allow the merchant to process TWINT payments. */ - @SerializedName("twint_payments") - TwintPayments twintPayments; + private Boolean requested; - /** Allow the merchant to process US bank transfer payments. */ - @SerializedName("us_bank_transfer_payments") - UsBankTransferPayments usBankTransferPayments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments( + this.extraParams, this.requested); + } - /** Allow the merchant to process Zip payments. */ - @SerializedName("zip_payments") - ZipPayments zipPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - private Capabilities( - AchDebitPayments achDebitPayments, - AcssDebitPayments acssDebitPayments, - AffirmPayments affirmPayments, - AfterpayClearpayPayments afterpayClearpayPayments, - AlmaPayments almaPayments, - AmazonPayPayments amazonPayPayments, - AuBecsDebitPayments auBecsDebitPayments, - BacsDebitPayments bacsDebitPayments, - BancontactPayments bancontactPayments, - BlikPayments blikPayments, - BoletoPayments boletoPayments, - CardPayments cardPayments, - CartesBancairesPayments cartesBancairesPayments, - CashappPayments cashappPayments, - EpsPayments epsPayments, - Map extraParams, - FpxPayments fpxPayments, - GbBankTransferPayments gbBankTransferPayments, - GrabpayPayments grabpayPayments, - IdealPayments idealPayments, - JcbPayments jcbPayments, - JpBankTransferPayments jpBankTransferPayments, - KakaoPayPayments kakaoPayPayments, - KlarnaPayments klarnaPayments, - KonbiniPayments konbiniPayments, - KrCardPayments krCardPayments, - LinkPayments linkPayments, - MobilepayPayments mobilepayPayments, - MultibancoPayments multibancoPayments, - MxBankTransferPayments mxBankTransferPayments, - NaverPayPayments naverPayPayments, - OxxoPayments oxxoPayments, - P24Payments p24Payments, - PayByBankPayments payByBankPayments, - PaycoPayments paycoPayments, - PaynowPayments paynowPayments, - PromptpayPayments promptpayPayments, - RevolutPayPayments revolutPayPayments, - SamsungPayPayments samsungPayPayments, - SepaBankTransferPayments sepaBankTransferPayments, - SepaDebitPayments sepaDebitPayments, - SwishPayments swishPayments, - TwintPayments twintPayments, - UsBankTransferPayments usBankTransferPayments, - ZipPayments zipPayments) { - this.achDebitPayments = achDebitPayments; - this.acssDebitPayments = acssDebitPayments; - this.affirmPayments = affirmPayments; - this.afterpayClearpayPayments = afterpayClearpayPayments; - this.almaPayments = almaPayments; - this.amazonPayPayments = amazonPayPayments; - this.auBecsDebitPayments = auBecsDebitPayments; - this.bacsDebitPayments = bacsDebitPayments; - this.bancontactPayments = bancontactPayments; - this.blikPayments = blikPayments; - this.boletoPayments = boletoPayments; - this.cardPayments = cardPayments; - this.cartesBancairesPayments = cartesBancairesPayments; - this.cashappPayments = cashappPayments; - this.epsPayments = epsPayments; - this.extraParams = extraParams; - this.fpxPayments = fpxPayments; - this.gbBankTransferPayments = gbBankTransferPayments; - this.grabpayPayments = grabpayPayments; - this.idealPayments = idealPayments; - this.jcbPayments = jcbPayments; - this.jpBankTransferPayments = jpBankTransferPayments; - this.kakaoPayPayments = kakaoPayPayments; - this.klarnaPayments = klarnaPayments; - this.konbiniPayments = konbiniPayments; - this.krCardPayments = krCardPayments; - this.linkPayments = linkPayments; - this.mobilepayPayments = mobilepayPayments; - this.multibancoPayments = multibancoPayments; - this.mxBankTransferPayments = mxBankTransferPayments; - this.naverPayPayments = naverPayPayments; - this.oxxoPayments = oxxoPayments; - this.p24Payments = p24Payments; - this.payByBankPayments = payByBankPayments; - this.paycoPayments = paycoPayments; - this.paynowPayments = paynowPayments; - this.promptpayPayments = promptpayPayments; - this.revolutPayPayments = revolutPayPayments; - this.samsungPayPayments = samsungPayPayments; - this.sepaBankTransferPayments = sepaBankTransferPayments; - this.sepaDebitPayments = sepaDebitPayments; - this.swishPayments = swishPayments; - this.twintPayments = twintPayments; - this.usBankTransferPayments = usBankTransferPayments; - this.zipPayments = zipPayments; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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 static Builder builder() { - return new Builder(); + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } - public static class Builder { - private AchDebitPayments achDebitPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - private AcssDebitPayments acssDebitPayments; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private AffirmPayments affirmPayments; + private CardPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - private AfterpayClearpayPayments afterpayClearpayPayments; + public static Builder builder() { + return new Builder(); + } - private AlmaPayments almaPayments; + public static class Builder { + private Map extraParams; - private AmazonPayPayments amazonPayPayments; + private Boolean requested; - private AuBecsDebitPayments auBecsDebitPayments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.CardPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.CardPayments( + this.extraParams, this.requested); + } - private BacsDebitPayments bacsDebitPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - private BancontactPayments bancontactPayments; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - private BlikPayments blikPayments; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - private BoletoPayments boletoPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - private CardPayments cardPayments; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private CartesBancairesPayments cartesBancairesPayments; + private CartesBancairesPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - private CashappPayments cashappPayments; + public static Builder builder() { + return new Builder(); + } - private EpsPayments epsPayments; + public static class Builder { + private Map extraParams; - private Map extraParams; + private Boolean requested; - private FpxPayments fpxPayments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities + .CartesBancairesPayments(this.extraParams, this.requested); + } - private GbBankTransferPayments gbBankTransferPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - private GrabpayPayments grabpayPayments; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - private IdealPayments idealPayments; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - private JcbPayments jcbPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CashappPayments { + /** + * 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 JpBankTransferPayments jpBankTransferPayments; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private KakaoPayPayments kakaoPayPayments; + private CashappPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - private KlarnaPayments klarnaPayments; + public static Builder builder() { + return new Builder(); + } - private KonbiniPayments konbiniPayments; + public static class Builder { + private Map extraParams; - private KrCardPayments krCardPayments; - - private LinkPayments linkPayments; - - private MobilepayPayments mobilepayPayments; - - private MultibancoPayments multibancoPayments; - - private MxBankTransferPayments mxBankTransferPayments; - - private NaverPayPayments naverPayPayments; - - private OxxoPayments oxxoPayments; + private Boolean requested; - private P24Payments p24Payments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments( + this.extraParams, this.requested); + } - private PayByBankPayments payByBankPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments#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; + } - private PaycoPayments paycoPayments; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - private PaynowPayments paynowPayments; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - private PromptpayPayments promptpayPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - private RevolutPayPayments revolutPayPayments; + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private SamsungPayPayments samsungPayPayments; + private EpsPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - private SepaBankTransferPayments sepaBankTransferPayments; + public static Builder builder() { + return new Builder(); + } - private SepaDebitPayments sepaDebitPayments; + public static class Builder { + private Map extraParams; - private SwishPayments swishPayments; + private Boolean requested; - private TwintPayments twintPayments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments( + this.extraParams, this.requested); + } - private UsBankTransferPayments usBankTransferPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - private ZipPayments zipPayments; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities( - this.achDebitPayments, - this.acssDebitPayments, - this.affirmPayments, - this.afterpayClearpayPayments, - this.almaPayments, - this.amazonPayPayments, - this.auBecsDebitPayments, - this.bacsDebitPayments, - this.bancontactPayments, - this.blikPayments, - this.boletoPayments, - this.cardPayments, - this.cartesBancairesPayments, - this.cashappPayments, - this.epsPayments, - this.extraParams, - this.fpxPayments, - this.gbBankTransferPayments, - this.grabpayPayments, - this.idealPayments, - this.jcbPayments, - this.jpBankTransferPayments, - this.kakaoPayPayments, - this.klarnaPayments, - this.konbiniPayments, - this.krCardPayments, - this.linkPayments, - this.mobilepayPayments, - this.multibancoPayments, - this.mxBankTransferPayments, - this.naverPayPayments, - this.oxxoPayments, - this.p24Payments, - this.payByBankPayments, - this.paycoPayments, - this.paynowPayments, - this.promptpayPayments, - this.revolutPayPayments, - this.samsungPayPayments, - this.sepaBankTransferPayments, - this.sepaDebitPayments, - this.swishPayments, - this.twintPayments, - this.usBankTransferPayments, - this.zipPayments); + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } + } - /** Allow the merchant to process ACH debit payments. */ - public Builder setAchDebitPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments - achDebitPayments) { - this.achDebitPayments = achDebitPayments; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - /** Allow the merchant to process ACSS debit payments. */ - public Builder setAcssDebitPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments - acssDebitPayments) { - this.acssDebitPayments = acssDebitPayments; - return this; - } + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Allow the merchant to process Affirm payments. */ - public Builder setAffirmPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments - affirmPayments) { - this.affirmPayments = affirmPayments; - return this; + private FpxPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - /** Allow the merchant to process Afterpay/Clearpay payments. */ - public Builder setAfterpayClearpayPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments - afterpayClearpayPayments) { - this.afterpayClearpayPayments = afterpayClearpayPayments; - return this; + public static Builder builder() { + return new Builder(); } - /** Allow the merchant to process Alma payments. */ - public Builder setAlmaPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments almaPayments) { - this.almaPayments = almaPayments; - return this; - } + public static class Builder { + private Map extraParams; - /** Allow the merchant to process Amazon Pay payments. */ - public Builder setAmazonPayPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments - amazonPayPayments) { - this.amazonPayPayments = amazonPayPayments; - return this; - } + private Boolean requested; - /** Allow the merchant to process Australian BECS Direct Debit payments. */ - public Builder setAuBecsDebitPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments - auBecsDebitPayments) { - this.auBecsDebitPayments = auBecsDebitPayments; - return this; - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments( + this.extraParams, this.requested); + } - /** Allow the merchant to process BACS Direct Debit payments. */ - public Builder setBacsDebitPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.BacsDebitPayments - bacsDebitPayments) { - this.bacsDebitPayments = bacsDebitPayments; - 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.Configuration.Merchant.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; + } - /** Allow the merchant to process Bancontact payments. */ - public Builder setBancontactPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.BancontactPayments - bancontactPayments) { - this.bancontactPayments = bancontactPayments; - return this; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.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; + } - /** Allow the merchant to process BLIK payments. */ - public Builder setBlikPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments blikPayments) { - this.blikPayments = blikPayments; - return this; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } + } - /** Allow the merchant to process Boleto payments. */ - public Builder setBoletoPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments - boletoPayments) { - this.boletoPayments = boletoPayments; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class GbBankTransferPayments { + /** + * 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; - /** Allow the merchant to collect card payments. */ - public Builder setCardPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.CardPayments cardPayments) { - this.cardPayments = cardPayments; - return this; - } + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Allow the merchant to process Cartes Bancaires payments. */ - public Builder setCartesBancairesPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments - cartesBancairesPayments) { - this.cartesBancairesPayments = cartesBancairesPayments; - return this; + private GbBankTransferPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - /** Allow the merchant to process Cash App payments. */ - public Builder setCashappPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments - cashappPayments) { - this.cashappPayments = cashappPayments; - return this; + public static Builder builder() { + return new Builder(); } - /** Allow the merchant to process EPS payments. */ - public Builder setEpsPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments epsPayments) { - this.epsPayments = epsPayments; - return this; - } + public static class Builder { + private Map extraParams; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Merchant.Capabilities#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities + .GbBankTransferPayments(this.extraParams, this.requested); } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Merchant.Capabilities#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments#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; } - this.extraParams.putAll(map); - return this; - } - /** Allow the merchant to process FPX payments. */ - public Builder setFpxPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments fpxPayments) { - this.fpxPayments = fpxPayments; - return this; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - /** Allow the merchant to process UK bank transfer payments. */ - public Builder setGbBankTransferPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments - gbBankTransferPayments) { - this.gbBankTransferPayments = gbBankTransferPayments; - return this; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } + } - /** Allow the merchant to process GrabPay payments. */ - public Builder setGrabpayPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments - grabpayPayments) { - this.grabpayPayments = grabpayPayments; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - /** Allow the merchant to process iDEAL payments. */ - public Builder setIdealPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments idealPayments) { - this.idealPayments = idealPayments; - return this; - } + /** + * Required. To request a new Capability for an account, pass true. There + * can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Allow the merchant to process JCB card payments. */ - public Builder setJcbPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments jcbPayments) { - this.jcbPayments = jcbPayments; - return this; + private GrabpayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - /** Allow the merchant to process Japanese bank transfer payments. */ - public Builder setJpBankTransferPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments - jpBankTransferPayments) { - this.jpBankTransferPayments = jpBankTransferPayments; - return this; + public static Builder builder() { + return new Builder(); } - /** Allow the merchant to process Kakao Pay payments. */ - public Builder setKakaoPayPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments - kakaoPayPayments) { - this.kakaoPayPayments = kakaoPayPayments; - return this; - } - - /** Allow the merchant to process Klarna payments. */ - public Builder setKlarnaPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments - klarnaPayments) { - this.klarnaPayments = klarnaPayments; - return this; - } - - /** Allow the merchant to process Konbini convenience store payments. */ - public Builder setKonbiniPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments - konbiniPayments) { - this.konbiniPayments = konbiniPayments; - return this; - } - - /** Allow the merchant to process Korean card payments. */ - public Builder setKrCardPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments - krCardPayments) { - this.krCardPayments = krCardPayments; - return this; - } - - /** Allow the merchant to process Link payments. */ - public Builder setLinkPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments linkPayments) { - this.linkPayments = linkPayments; - return this; - } - - /** Allow the merchant to process MobilePay payments. */ - public Builder setMobilepayPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments - mobilepayPayments) { - this.mobilepayPayments = mobilepayPayments; - return this; - } - - /** Allow the merchant to process Multibanco payments. */ - public Builder setMultibancoPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments - multibancoPayments) { - this.multibancoPayments = multibancoPayments; - return this; - } - - /** Allow the merchant to process Mexican bank transfer payments. */ - public Builder setMxBankTransferPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments - mxBankTransferPayments) { - this.mxBankTransferPayments = mxBankTransferPayments; - return this; - } - - /** Allow the merchant to process Naver Pay payments. */ - public Builder setNaverPayPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments - naverPayPayments) { - this.naverPayPayments = naverPayPayments; - return this; - } - - /** Allow the merchant to process OXXO payments. */ - public Builder setOxxoPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.OxxoPayments oxxoPayments) { - this.oxxoPayments = oxxoPayments; - return this; - } - - /** Allow the merchant to process Przelewy24 (P24) payments. */ - public Builder setP24Payments( - AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments p24Payments) { - this.p24Payments = p24Payments; - return this; - } - - /** Allow the merchant to process Pay by Bank payments. */ - public Builder setPayByBankPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments - payByBankPayments) { - this.payByBankPayments = payByBankPayments; - return this; - } - - /** Allow the merchant to process PAYCO payments. */ - public Builder setPaycoPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments paycoPayments) { - this.paycoPayments = paycoPayments; - return this; - } - - /** Allow the merchant to process PayNow payments. */ - public Builder setPaynowPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments - paynowPayments) { - this.paynowPayments = paynowPayments; - return this; - } - - /** Allow the merchant to process PromptPay payments. */ - public Builder setPromptpayPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments - promptpayPayments) { - this.promptpayPayments = promptpayPayments; - return this; - } - - /** Allow the merchant to process Revolut Pay payments. */ - public Builder setRevolutPayPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments - revolutPayPayments) { - this.revolutPayPayments = revolutPayPayments; - return this; - } - - /** Allow the merchant to process Samsung Pay payments. */ - public Builder setSamsungPayPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments - samsungPayPayments) { - this.samsungPayPayments = samsungPayPayments; - return this; - } - - /** Allow the merchant to process SEPA bank transfer payments. */ - public Builder setSepaBankTransferPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments - sepaBankTransferPayments) { - this.sepaBankTransferPayments = sepaBankTransferPayments; - return this; - } - - /** Allow the merchant to process SEPA Direct Debit payments. */ - public Builder setSepaDebitPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments - sepaDebitPayments) { - this.sepaDebitPayments = sepaDebitPayments; - return this; - } - - /** Allow the merchant to process Swish payments. */ - public Builder setSwishPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments swishPayments) { - this.swishPayments = swishPayments; - return this; - } - - /** Allow the merchant to process TWINT payments. */ - public Builder setTwintPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments twintPayments) { - this.twintPayments = twintPayments; - return this; - } - - /** Allow the merchant to process US bank transfer payments. */ - public Builder setUsBankTransferPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments - usBankTransferPayments) { - this.usBankTransferPayments = usBankTransferPayments; - return this; - } - - /** Allow the merchant to process Zip payments. */ - public Builder setZipPayments( - AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments zipPayments) { - this.zipPayments = zipPayments; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AchDebitPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private AchDebitPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; + public static class Builder { + private Map extraParams; private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments( this.extraParams, this.requested); } @@ -3593,7 +4216,7 @@ public static class Builder { * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3608,7 +4231,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -3632,7 +4255,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class AcssDebitPayments { + 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. @@ -3650,7 +4273,7 @@ public static class AcssDebitPayments { @SerializedName("requested") Boolean requested; - private AcssDebitPayments(Map extraParams, Boolean requested) { + private IdealPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3665,9 +4288,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments( this.extraParams, this.requested); } @@ -3675,7 +4297,7 @@ public static class Builder { * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3690,7 +4312,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -3714,7 +4336,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class AffirmPayments { + 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. @@ -3732,7 +4354,7 @@ public static class AffirmPayments { @SerializedName("requested") Boolean requested; - private AffirmPayments(Map extraParams, Boolean requested) { + private JcbPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3747,8 +4369,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments( this.extraParams, this.requested); } @@ -3756,8 +4378,8 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments bu * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3771,8 +4393,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3795,7 +4417,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class AfterpayClearpayPayments { + public static class JpBankTransferPayments { /** * 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. @@ -3813,7 +4435,7 @@ public static class AfterpayClearpayPayments { @SerializedName("requested") Boolean requested; - private AfterpayClearpayPayments(Map extraParams, Boolean requested) { + private JpBankTransferPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3828,17 +4450,17 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments + public AccountCreateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments build() { return new AccountCreateParams.Configuration.Merchant.Capabilities - .AfterpayClearpayPayments(this.extraParams, this.requested); + .JpBankTransferPayments(this.extraParams, this.requested); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3853,7 +4475,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -3877,7 +4499,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class AlmaPayments { + public static class KakaoPayPayments { /** * 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. @@ -3895,7 +4517,7 @@ public static class AlmaPayments { @SerializedName("requested") Boolean requested; - private AlmaPayments(Map extraParams, Boolean requested) { + private KakaoPayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3910,8 +4532,9 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments( this.extraParams, this.requested); } @@ -3919,8 +4542,8 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments buil * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3934,8 +4557,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3958,7 +4581,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class AmazonPayPayments { + 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. @@ -3976,7 +4599,7 @@ public static class AmazonPayPayments { @SerializedName("requested") Boolean requested; - private AmazonPayPayments(Map extraParams, Boolean requested) { + private KlarnaPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3991,9 +4614,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments( this.extraParams, this.requested); } @@ -4001,7 +4623,7 @@ public static class Builder { * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4016,7 +4638,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4040,7 +4662,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class AuBecsDebitPayments { + public static class KonbiniPayments { /** * 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. @@ -4058,7 +4680,7 @@ public static class AuBecsDebitPayments { @SerializedName("requested") Boolean requested; - private AuBecsDebitPayments(Map extraParams, Boolean requested) { + private KonbiniPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4073,17 +4695,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities - .AuBecsDebitPayments(this.extraParams, this.requested); + public AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments( + this.extraParams, this.requested); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4098,7 +4719,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4122,7 +4743,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class BacsDebitPayments { + public static class KrCardPayments { /** * 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. @@ -4140,7 +4761,7 @@ public static class BacsDebitPayments { @SerializedName("requested") Boolean requested; - private BacsDebitPayments(Map extraParams, Boolean requested) { + private KrCardPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4155,9 +4776,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.BacsDebitPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.BacsDebitPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments( this.extraParams, this.requested); } @@ -4165,7 +4785,7 @@ public static class Builder { * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.BacsDebitPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4180,7 +4800,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.BacsDebitPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4204,7 +4824,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class BancontactPayments { + public static class LinkPayments { /** * 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. @@ -4222,7 +4842,7 @@ public static class BancontactPayments { @SerializedName("requested") Boolean requested; - private BancontactPayments(Map extraParams, Boolean requested) { + private LinkPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4237,9 +4857,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.BancontactPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.BancontactPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments( this.extraParams, this.requested); } @@ -4247,8 +4866,8 @@ public static class Builder { * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.BancontactPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4262,8 +4881,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.BancontactPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4286,7 +4905,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class BlikPayments { + public static class MobilepayPayments { /** * 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. @@ -4304,7 +4923,7 @@ public static class BlikPayments { @SerializedName("requested") Boolean requested; - private BlikPayments(Map extraParams, Boolean requested) { + private MobilepayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4319,8 +4938,9 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments( this.extraParams, this.requested); } @@ -4328,8 +4948,8 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments buil * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4343,8 +4963,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4367,7 +4987,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class BoletoPayments { + public static class MultibancoPayments { /** * 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. @@ -4385,7 +5005,7 @@ public static class BoletoPayments { @SerializedName("requested") Boolean requested; - private BoletoPayments(Map extraParams, Boolean requested) { + private MultibancoPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4400,8 +5020,9 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments( this.extraParams, this.requested); } @@ -4409,7 +5030,7 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments bu * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4424,7 +5045,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4448,7 +5069,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class CardPayments { + public static class MxBankTransferPayments { /** * 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. @@ -4466,7 +5087,7 @@ public static class CardPayments { @SerializedName("requested") Boolean requested; - private CardPayments(Map extraParams, Boolean requested) { + private MxBankTransferPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4481,17 +5102,18 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.CardPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.CardPayments( - this.extraParams, this.requested); + public AccountCreateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities + .MxBankTransferPayments(this.extraParams, this.requested); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.CardPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4505,8 +5127,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.CardPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4529,7 +5151,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class CartesBancairesPayments { + public static class NaverPayPayments { /** * 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. @@ -4547,7 +5169,7 @@ public static class CartesBancairesPayments { @SerializedName("requested") Boolean requested; - private CartesBancairesPayments(Map extraParams, Boolean requested) { + private NaverPayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4562,17 +5184,17 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments + public AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities - .CartesBancairesPayments(this.extraParams, this.requested); + return new AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments( + this.extraParams, this.requested); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4587,7 +5209,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4611,7 +5233,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class CashappPayments { + 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. @@ -4629,7 +5251,7 @@ public static class CashappPayments { @SerializedName("requested") Boolean requested; - private CashappPayments(Map extraParams, Boolean requested) { + private OxxoPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4644,8 +5266,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.OxxoPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.OxxoPayments( this.extraParams, this.requested); } @@ -4653,8 +5275,8 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments b * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.OxxoPayments#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4668,8 +5290,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.OxxoPayments#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4692,7 +5314,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class EpsPayments { + 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. @@ -4710,7 +5332,7 @@ public static class EpsPayments { @SerializedName("requested") Boolean requested; - private EpsPayments(Map extraParams, Boolean requested) { + private P24Payments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4725,8 +5347,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments( this.extraParams, this.requested); } @@ -4734,7 +5356,7 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments build * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments#extraParams} for + * AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4749,7 +5371,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments#extraParams} for + * AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4773,7 +5395,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class FpxPayments { + public static class PayByBankPayments { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -4791,7 +5413,7 @@ public static class FpxPayments { @SerializedName("requested") Boolean requested; - private FpxPayments(Map extraParams, Boolean requested) { + private PayByBankPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4806,8 +5428,9 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments( this.extraParams, this.requested); } @@ -4815,8 +5438,8 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments build * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4830,8 +5453,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4854,7 +5477,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class GbBankTransferPayments { + public static class PaycoPayments { /** * 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. @@ -4872,7 +5495,7 @@ public static class GbBankTransferPayments { @SerializedName("requested") Boolean requested; - private GbBankTransferPayments(Map extraParams, Boolean requested) { + private PaycoPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4887,17 +5510,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities - .GbBankTransferPayments(this.extraParams, this.requested); + public AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments( + this.extraParams, this.requested); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4912,7 +5534,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4936,7 +5558,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class GrabpayPayments { + public static class PaynowPayments { /** * 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. @@ -4954,7 +5576,7 @@ public static class GrabpayPayments { @SerializedName("requested") Boolean requested; - private GrabpayPayments(Map extraParams, Boolean requested) { + private PaynowPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4969,8 +5591,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments( this.extraParams, this.requested); } @@ -4978,7 +5600,7 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments b * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4993,7 +5615,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -5017,7 +5639,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class IdealPayments { + public static class PromptpayPayments { /** * 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. @@ -5035,7 +5657,7 @@ public static class IdealPayments { @SerializedName("requested") Boolean requested; - private IdealPayments(Map extraParams, Boolean requested) { + private PromptpayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -5050,8 +5672,9 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments( this.extraParams, this.requested); } @@ -5059,7 +5682,7 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments bui * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -5074,7 +5697,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -5098,7 +5721,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class JcbPayments { + public static class RevolutPayPayments { /** * 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. @@ -5116,7 +5739,7 @@ public static class JcbPayments { @SerializedName("requested") Boolean requested; - private JcbPayments(Map extraParams, Boolean requested) { + private RevolutPayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -5131,8 +5754,9 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments( this.extraParams, this.requested); } @@ -5140,8 +5764,8 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments build * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -5155,8 +5779,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -5179,7 +5803,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class JpBankTransferPayments { + public static class SamsungPayPayments { /** * 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. @@ -5197,7 +5821,7 @@ public static class JpBankTransferPayments { @SerializedName("requested") Boolean requested; - private JpBankTransferPayments(Map extraParams, Boolean requested) { + private SamsungPayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -5212,17 +5836,17 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments + public AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities - .JpBankTransferPayments(this.extraParams, this.requested); + return new AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments( + this.extraParams, this.requested); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -5237,7 +5861,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -5261,7 +5885,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class KakaoPayPayments { + public static class SepaBankTransferPayments { /** * 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. @@ -5279,7 +5903,7 @@ public static class KakaoPayPayments { @SerializedName("requested") Boolean requested; - private KakaoPayPayments(Map extraParams, Boolean requested) { + private SepaBankTransferPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -5294,17 +5918,17 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments + public AccountCreateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments( - this.extraParams, this.requested); + return new AccountCreateParams.Configuration.Merchant.Capabilities + .SepaBankTransferPayments(this.extraParams, this.requested); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -5319,7 +5943,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -5343,7 +5967,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class KlarnaPayments { + 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. @@ -5361,7 +5985,7 @@ public static class KlarnaPayments { @SerializedName("requested") Boolean requested; - private KlarnaPayments(Map extraParams, Boolean requested) { + private SepaDebitPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -5376,8 +6000,9 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments( this.extraParams, this.requested); } @@ -5385,7 +6010,7 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments bu * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -5400,7 +6025,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -5424,7 +6049,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class KonbiniPayments { + public static class SwishPayments { /** * 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. @@ -5442,7 +6067,7 @@ public static class KonbiniPayments { @SerializedName("requested") Boolean requested; - private KonbiniPayments(Map extraParams, Boolean requested) { + private SwishPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -5457,8 +6082,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments( this.extraParams, this.requested); } @@ -5466,7 +6091,7 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments b * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -5481,7 +6106,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -5505,7 +6130,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class KrCardPayments { + public static class TwintPayments { /** * 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. @@ -5523,7 +6148,7 @@ public static class KrCardPayments { @SerializedName("requested") Boolean requested; - private KrCardPayments(Map extraParams, Boolean requested) { + private TwintPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -5538,8 +6163,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments( this.extraParams, this.requested); } @@ -5547,7 +6172,7 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments bu * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -5562,7 +6187,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments#extraParams} + * AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -5586,7 +6211,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class LinkPayments { + public static class UsBankTransferPayments { /** * 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. @@ -5604,7 +6229,7 @@ public static class LinkPayments { @SerializedName("requested") Boolean requested; - private LinkPayments(Map extraParams, Boolean requested) { + private UsBankTransferPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -5619,17 +6244,18 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments( - this.extraParams, this.requested); + public AccountCreateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments + build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities + .UsBankTransferPayments(this.extraParams, this.requested); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -5643,8 +6269,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -5667,7 +6293,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class MobilepayPayments { + public static class ZipPayments { /** * 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. @@ -5685,7 +6311,7 @@ public static class MobilepayPayments { @SerializedName("requested") Boolean requested; - private MobilepayPayments(Map extraParams, Boolean requested) { + private ZipPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -5700,9 +6326,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments( + public AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments build() { + return new AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments( this.extraParams, this.requested); } @@ -5710,8 +6335,8 @@ public static class Builder { * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -5725,8 +6350,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -5746,10 +6371,105 @@ public Builder setRequested(Boolean requested) { } } } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CardPayments { + /** + * Automatically declines certain charge types regardless of whether the card issuer + * accepted or declined the charge. + */ + @SerializedName("decline_on") + DeclineOn declineOn; + + /** + * 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 CardPayments(DeclineOn declineOn, Map extraParams) { + this.declineOn = declineOn; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private DeclineOn declineOn; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.CardPayments build() { + return new AccountCreateParams.Configuration.Merchant.CardPayments( + this.declineOn, this.extraParams); + } + + /** + * Automatically declines certain charge types regardless of whether the card issuer + * accepted or declined the charge. + */ + public Builder setDeclineOn( + AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn declineOn) { + this.declineOn = declineOn; + 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.Configuration.Merchant.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.Configuration.Merchant.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; + } + } @Getter @EqualsAndHashCode(callSuper = false) - public static class MultibancoPayments { + public static class DeclineOn { + /** + * Whether Stripe automatically declines charges with an incorrect ZIP or postal code. + * This setting only applies when a ZIP or postal code is provided and they fail bank + * verification. + */ + @SerializedName("avs_failure") + Boolean avsFailure; + + /** + * Whether Stripe automatically declines charges with an incorrect CVC. This setting only + * applies when a CVC is provided and it fails bank verification. + */ + @SerializedName("cvc_failure") + Boolean cvcFailure; + /** * 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. @@ -5760,16 +6480,11 @@ public static class MultibancoPayments { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private MultibancoPayments(Map extraParams, Boolean requested) { + private DeclineOn( + Boolean avsFailure, Boolean cvcFailure, Map extraParams) { + this.avsFailure = avsFailure; + this.cvcFailure = cvcFailure; this.extraParams = extraParams; - this.requested = requested; } public static Builder builder() { @@ -5777,23 +6492,43 @@ public static Builder builder() { } public static class Builder { - private Map extraParams; + private Boolean avsFailure; - private Boolean requested; + private Boolean cvcFailure; + + private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments( - this.extraParams, this.requested); + public AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn build() { + return new AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn( + this.avsFailure, this.cvcFailure, this.extraParams); + } + + /** + * Whether Stripe automatically declines charges with an incorrect ZIP or postal code. + * This setting only applies when a ZIP or postal code is provided and they fail bank + * verification. + */ + public Builder setAvsFailure(Boolean avsFailure) { + this.avsFailure = avsFailure; + return this; + } + + /** + * Whether Stripe automatically declines charges with an incorrect CVC. This setting + * only applies when a CVC is provided and it fails bank verification. + */ + public Builder setCvcFailure(Boolean cvcFailure) { + this.cvcFailure = cvcFailure; + 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.Configuration.Merchant.Capabilities.MultibancoPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -5807,8 +6542,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -5817,266 +6552,260 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } } } + } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class MxBankTransferPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class StatementDescriptor { + /** + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement descriptor + * suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + * statement_descriptor text to limit the full descriptor to 22 characters. For more + * information about statement descriptors and their requirements, see the Merchant + * Configuration settings documentation. + */ + @SerializedName("descriptor") + String descriptor; - private MxBankTransferPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } + /** + * 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; - public static Builder builder() { - return new Builder(); - } + /** + * Default text that appears on statements for card charges outside of Japan, prefixing any + * dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + * dynamic part of the descriptor, keep this text short. If you don’t specify this value, + * statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + @SerializedName("prefix") + String prefix; - public static class Builder { - private Map extraParams; + private StatementDescriptor( + String descriptor, Map extraParams, String prefix) { + this.descriptor = descriptor; + this.extraParams = extraParams; + this.prefix = prefix; + } - private Boolean requested; + public static Builder builder() { + return new Builder(); + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities - .MxBankTransferPayments(this.extraParams, this.requested); - } + public static class Builder { + private String descriptor; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments#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; - } + private Map extraParams; - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + private String prefix; - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.StatementDescriptor build() { + return new AccountCreateParams.Configuration.Merchant.StatementDescriptor( + this.descriptor, this.extraParams, this.prefix); } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class NaverPayPayments { /** - * 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. + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the statement_descriptor text to limit the full descriptor to 22 characters. + * For more information about statement descriptors and their requirements, see the + * Merchant Configuration settings documentation. */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + public Builder setDescriptor(String descriptor) { + this.descriptor = descriptor; + return this; + } /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Configuration.Merchant.StatementDescriptor#extraParams} for the + * field documentation. */ - @SerializedName("requested") - Boolean requested; + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } - private NaverPayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Configuration.Merchant.StatementDescriptor#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 Builder builder() { - return new Builder(); + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for + * the dynamic part of the descriptor, keep this text short. If you don’t specify this + * value, statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + public Builder setPrefix(String prefix) { + this.prefix = prefix; + return this; } + } + } - public static class Builder { - private Map extraParams; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Support { + /** A publicly available mailing address for sending support issues to. */ + @SerializedName("address") + Address address; - private Boolean requested; + /** A publicly available email address for sending support issues to. */ + @SerializedName("email") + String email; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments( - this.extraParams, this.requested); - } + /** + * 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; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments#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; - } + /** A publicly available phone number to call with support issues. */ + @SerializedName("phone") + String phone; - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + /** A publicly available website for handling support issues. */ + @SerializedName("url") + String url; - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } + private Support( + Address address, + String email, + Map extraParams, + String phone, + String url) { + this.address = address; + this.email = email; + this.extraParams = extraParams; + this.phone = phone; + this.url = url; } - @Getter - @EqualsAndHashCode(callSuper = false) - 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; + public static Builder builder() { + return new Builder(); + } - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; + public static class Builder { + private Address address; - private OxxoPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } + private String email; - public static Builder builder() { - return new Builder(); + private Map extraParams; + + private String phone; + + private String url; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Merchant.Support build() { + return new AccountCreateParams.Configuration.Merchant.Support( + this.address, this.email, this.extraParams, this.phone, this.url); } - public static class Builder { - private Map extraParams; + /** A publicly available mailing address for sending support issues to. */ + public Builder setAddress( + AccountCreateParams.Configuration.Merchant.Support.Address address) { + this.address = address; + return this; + } - private Boolean requested; + /** A publicly available email address for sending support issues to. */ + public Builder setEmail(String email) { + this.email = email; + return this; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.OxxoPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.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.Configuration.Merchant.Support#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 a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.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.Configuration.Merchant.Support#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 all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.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; - } + /** A publicly available phone number to call with support issues. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; + } - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } + /** A publicly available website for handling support issues. */ + public Builder setUrl(String url) { + this.url = url; + return this; } } @Getter @EqualsAndHashCode(callSuper = false) - public static class P24Payments { + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Required. 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. @@ -6087,16 +6816,43 @@ public static class P24Payments { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - private P24Payments(Map extraParams, Boolean requested) { + /** 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; + + /** Town or cho-me. */ + @SerializedName("town") + String town; + + private Address( + 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.requested = requested; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + this.town = town; } public static Builder builder() { @@ -6104,22 +6860,56 @@ public static Builder builder() { } public static class Builder { + private String city; + + private String country; + private Map extraParams; - private Boolean requested; + private String line1; + + private String line2; + + private String postalCode; + + private String state; + + private String town; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments( - this.extraParams, this.requested); + public AccountCreateParams.Configuration.Merchant.Support.Address build() { + return new AccountCreateParams.Configuration.Merchant.Support.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** + * Required. 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.Configuration.Merchant.Capabilities.P24Payments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Support.Address#extraParams} for the field + * documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -6133,8 +6923,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Merchant.Support.Address#extraParams} for the field + * documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -6144,40 +6934,248 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; return this; } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PayByBankPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + /** 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; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Recipient { + /** Capabilities to be requested on the Recipient Configuration. */ + @SerializedName("capabilities") + Capabilities capabilities; + + /** + * 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 Recipient(Capabilities capabilities, Map extraParams) { + this.capabilities = capabilities; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Capabilities capabilities; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Recipient build() { + return new AccountCreateParams.Configuration.Recipient( + this.capabilities, this.extraParams); + } + + /** Capabilities to be requested on the Recipient Configuration. */ + public Builder setCapabilities( + AccountCreateParams.Configuration.Recipient.Capabilities capabilities) { + this.capabilities = capabilities; + 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.Configuration.Recipient#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Recipient#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Capabilities { + /** Capabilities that enable OutboundPayments to a bank account linked to this Account. */ + @SerializedName("bank_accounts") + BankAccounts bankAccounts; + + /** Capabilities that enable OutboundPayments to a card linked to this Account. */ + @SerializedName("cards") + Cards cards; + + /** + * 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; + + /** Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). */ + @SerializedName("stripe_balance") + StripeBalance stripeBalance; + + private Capabilities( + BankAccounts bankAccounts, + Cards cards, + Map extraParams, + StripeBalance stripeBalance) { + this.bankAccounts = bankAccounts; + this.cards = cards; + this.extraParams = extraParams; + this.stripeBalance = stripeBalance; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private BankAccounts bankAccounts; + + private Cards cards; + + private Map extraParams; + + private StripeBalance stripeBalance; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Recipient.Capabilities build() { + return new AccountCreateParams.Configuration.Recipient.Capabilities( + this.bankAccounts, this.cards, this.extraParams, this.stripeBalance); + } + + /** Capabilities that enable OutboundPayments to a bank account linked to this Account. */ + public Builder setBankAccounts( + AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts bankAccounts) { + this.bankAccounts = bankAccounts; + return this; + } + + /** Capabilities that enable OutboundPayments to a card linked to this Account. */ + public Builder setCards( + AccountCreateParams.Configuration.Recipient.Capabilities.Cards cards) { + this.cards = cards; + return this; + } /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Recipient.Capabilities#extraParams} + * for the field documentation. */ - @SerializedName("requested") - Boolean requested; + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } - private PayByBankPayments(Map extraParams, Boolean requested) { + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Recipient.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; + } + + /** + * Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + */ + public Builder setStripeBalance( + AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance + stripeBalance) { + this.stripeBalance = stripeBalance; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankAccounts { + /** + * 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; + + /** + * Enables this Account to receive OutboundPayments to linked bank accounts over local + * networks. + */ + @SerializedName("local") + Local local; + + /** Enables this Account to receive OutboundPayments to linked bank accounts over wire. */ + @SerializedName("wire") + Wire wire; + + private BankAccounts(Map extraParams, Local local, Wire wire) { this.extraParams = extraParams; - this.requested = requested; + this.local = local; + this.wire = wire; } public static Builder builder() { @@ -6187,20 +7185,21 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Boolean requested; + private Local local; + + private Wire wire; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments( - this.extraParams, this.requested); + public AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts build() { + return new AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts( + this.extraParams, this.local, this.wire); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments#extraParams} + * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -6215,7 +7214,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments#extraParams} + * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -6227,100 +7226,193 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. + * Enables this Account to receive OutboundPayments to linked bank accounts over local + * networks. */ - public Builder setRequested(Boolean requested) { - this.requested = requested; + public Builder setLocal( + AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Local local) { + this.local = local; + return this; + } + + /** + * Enables this Account to receive OutboundPayments to linked bank accounts over wire. + */ + public Builder setWire( + AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire wire) { + this.wire = wire; return this; } } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PaycoPayments { - /** - * 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; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Local { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} + * value. Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its + * parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private PaycoPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } + private Local(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - public static Builder builder() { - return new Builder(); - } + public static Builder builder() { + return new Builder(); + } - public static class Builder { - private Map extraParams; + public static class Builder { + private Map extraParams; - private Boolean requested; + private Boolean requested; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments( - this.extraParams, this.requested); - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Local + build() { + return new AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts + .Local(this.extraParams, this.requested); + } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Local#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Local#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; } - this.extraParams.put(key, value); - return this; } + } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Wire { /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments#extraParams} - * for the field documentation. + * 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. */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; /** * Required. To request a new Capability for an account, pass true. * There can be a delay before the requested Capability becomes active. */ - public Builder setRequested(Boolean requested) { + @SerializedName("requested") + Boolean requested; + + private Wire(Map extraParams, Boolean requested) { + this.extraParams = extraParams; this.requested = requested; - return this; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire + build() { + return new AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts + .Wire(this.extraParams, this.requested); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class PaynowPayments { + public static class Cards { /** * 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. @@ -6338,7 +7430,7 @@ public static class PaynowPayments { @SerializedName("requested") Boolean requested; - private PaynowPayments(Map extraParams, Boolean requested) { + private Cards(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -6353,8 +7445,8 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments( + public AccountCreateParams.Configuration.Recipient.Capabilities.Cards build() { + return new AccountCreateParams.Configuration.Recipient.Capabilities.Cards( this.extraParams, this.requested); } @@ -6362,8 +7454,8 @@ public AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments bu * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Recipient.Capabilities.Cards#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -6377,8 +7469,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments#extraParams} - * for the field documentation. + * AccountCreateParams.Configuration.Recipient.Capabilities.Cards#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -6401,7 +7493,7 @@ public Builder setRequested(Boolean requested) { @Getter @EqualsAndHashCode(callSuper = false) - public static class PromptpayPayments { + public static class StripeBalance { /** * 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. @@ -6413,15 +7505,14 @@ public static class PromptpayPayments { Map extraParams; /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. + * Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance). */ - @SerializedName("requested") - Boolean requested; + @SerializedName("stripe_transfers") + StripeTransfers stripeTransfers; - private PromptpayPayments(Map extraParams, Boolean requested) { + private StripeBalance(Map extraParams, StripeTransfers stripeTransfers) { this.extraParams = extraParams; - this.requested = requested; + this.stripeTransfers = stripeTransfers; } public static Builder builder() { @@ -6431,20 +7522,19 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Boolean requested; + private StripeTransfers stripeTransfers; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments( - this.extraParams, this.requested); + public AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance build() { + return new AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance( + this.extraParams, this.stripeTransfers); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments#extraParams} + * AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -6459,7 +7549,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments#extraParams} + * AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -6471,226 +7561,377 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. + * Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance). */ - public Builder setRequested(Boolean requested) { - this.requested = requested; + public Builder setStripeTransfers( + AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance + .StripeTransfers + stripeTransfers) { + this.stripeTransfers = stripeTransfers; return this; } } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class RevolutPayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private RevolutPayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments#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; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class StripeTransfers { /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments#extraParams} - * for the field documentation. + * 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. */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; /** * Required. To request a new Capability for an account, pass true. * There can be a delay before the requested Capability becomes active. */ - public Builder setRequested(Boolean requested) { + @SerializedName("requested") + Boolean requested; + + private StripeTransfers(Map extraParams, Boolean requested) { + this.extraParams = extraParams; this.requested = requested; - return this; } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class SamsungPayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private SamsungPayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } + public static Builder builder() { + return new Builder(); + } - public static class Builder { - private Map extraParams; + public static class Builder { + private Map extraParams; - private Boolean requested; + private Boolean requested; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments( - this.extraParams, this.requested); - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance + .StripeTransfers + build() { + return new AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance + .StripeTransfers(this.extraParams, this.requested); + } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers#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; } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; } - this.extraParams.putAll(map); - return this; - } - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } } } + } + } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class SepaBankTransferPayments { - /** - * 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; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Storer { + /** Capabilities to request on the Storer Configuration. */ + @SerializedName("capabilities") + Capabilities capabilities; - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; + /** + * 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 SepaBankTransferPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } + private Storer(Capabilities capabilities, Map extraParams) { + this.capabilities = capabilities; + this.extraParams = extraParams; + } - public static Builder builder() { + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Capabilities capabilities; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer build() { + return new AccountCreateParams.Configuration.Storer(this.capabilities, this.extraParams); + } + + /** Capabilities to request on the Storer Configuration. */ + public Builder setCapabilities( + AccountCreateParams.Configuration.Storer.Capabilities capabilities) { + this.capabilities = capabilities; + 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.Configuration.Storer#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Storer#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Capabilities { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Can provision a financial address to credit/debit a FinancialAccount. */ + @SerializedName("financial_addresses") + FinancialAddresses financialAddresses; + + /** Can hold storage-type funds on Stripe. */ + @SerializedName("holds_currencies") + HoldsCurrencies holdsCurrencies; + + /** Can pull funds from an external source, owned by yourself, to a FinancialAccount. */ + @SerializedName("inbound_transfers") + InboundTransfers inboundTransfers; + + /** Can send funds from a FinancialAccount to a destination owned by someone else. */ + @SerializedName("outbound_payments") + OutboundPayments outboundPayments; + + /** Can send funds from a FinancialAccount to a destination owned by yourself. */ + @SerializedName("outbound_transfers") + OutboundTransfers outboundTransfers; + + private Capabilities( + Map extraParams, + FinancialAddresses financialAddresses, + HoldsCurrencies holdsCurrencies, + InboundTransfers inboundTransfers, + OutboundPayments outboundPayments, + OutboundTransfers outboundTransfers) { + this.extraParams = extraParams; + this.financialAddresses = financialAddresses; + this.holdsCurrencies = holdsCurrencies; + this.inboundTransfers = inboundTransfers; + this.outboundPayments = outboundPayments; + this.outboundTransfers = outboundTransfers; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private FinancialAddresses financialAddresses; + + private HoldsCurrencies holdsCurrencies; + + private InboundTransfers inboundTransfers; + + private OutboundPayments outboundPayments; + + private OutboundTransfers outboundTransfers; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities build() { + return new AccountCreateParams.Configuration.Storer.Capabilities( + this.extraParams, + this.financialAddresses, + this.holdsCurrencies, + this.inboundTransfers, + this.outboundPayments, + this.outboundTransfers); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Configuration.Storer.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.Configuration.Storer.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; + } + + /** Can provision a financial address to credit/debit a FinancialAccount. */ + public Builder setFinancialAddresses( + AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses + financialAddresses) { + this.financialAddresses = financialAddresses; + return this; + } + + /** Can hold storage-type funds on Stripe. */ + public Builder setHoldsCurrencies( + AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies + holdsCurrencies) { + this.holdsCurrencies = holdsCurrencies; + return this; + } + + /** Can pull funds from an external source, owned by yourself, to a FinancialAccount. */ + public Builder setInboundTransfers( + AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers + inboundTransfers) { + this.inboundTransfers = inboundTransfers; + return this; + } + + /** Can send funds from a FinancialAccount to a destination owned by someone else. */ + public Builder setOutboundPayments( + AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments + outboundPayments) { + this.outboundPayments = outboundPayments; + return this; + } + + /** Can send funds from a FinancialAccount to a destination owned by yourself. */ + public Builder setOutboundTransfers( + AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers + outboundTransfers) { + this.outboundTransfers = outboundTransfers; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FinancialAddresses { + /** + * Can provision a bank-account-like financial address (VBAN) to credit/debit a + * FinancialAccount. + */ + @SerializedName("bank_accounts") + BankAccounts bankAccounts; + + /** + * 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 FinancialAddresses(BankAccounts bankAccounts, Map extraParams) { + this.bankAccounts = bankAccounts; + this.extraParams = extraParams; + } + + public static Builder builder() { return new Builder(); } public static class Builder { - private Map extraParams; + private BankAccounts bankAccounts; - private Boolean requested; + private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments + public AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities - .SepaBankTransferPayments(this.extraParams, this.requested); + return new AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses( + this.bankAccounts, this.extraParams); + } + + /** + * Can provision a bank-account-like financial address (VBAN) to credit/debit a + * FinancialAccount. + */ + public Builder setBankAccounts( + AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses + .BankAccounts + bankAccounts) { + this.bankAccounts = bankAccounts; + 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.Configuration.Merchant.Capabilities.SepaBankTransferPayments#extraParams} + * AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -6705,7 +7946,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments#extraParams} + * AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -6715,21 +7956,95 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankAccounts { /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} + * value. Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its + * parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; + + private BankAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses + .BankAccounts + build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses + .BankAccounts(this.extraParams, this.requested); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class SepaDebitPayments { + public static class HoldsCurrencies { /** * 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. @@ -6740,16 +8055,13 @@ public static class SepaDebitPayments { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; + /** Can hold storage-type funds on Stripe in GBP. */ + @SerializedName("gbp") + Gbp gbp; - private SepaDebitPayments(Map extraParams, Boolean requested) { + private HoldsCurrencies(Map extraParams, Gbp gbp) { this.extraParams = extraParams; - this.requested = requested; + this.gbp = gbp; } public static Builder builder() { @@ -6759,20 +8071,19 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Boolean requested; + private Gbp gbp; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments( - this.extraParams, this.requested); + public AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies( + this.extraParams, this.gbp); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments#extraParams} + * AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -6787,7 +8098,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments#extraParams} + * AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -6798,20 +8109,106 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Can hold storage-type funds on Stripe in GBP. */ + public Builder setGbp( + AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp gbp) { + this.gbp = gbp; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Gbp { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} + * value. Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its + * parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + /** * Required. To request a new Capability for an account, pass true. * There can be a delay before the requested Capability becomes active. */ - public Builder setRequested(Boolean requested) { + @SerializedName("requested") + Boolean requested; + + private Gbp(Map extraParams, Boolean requested) { + this.extraParams = extraParams; this.requested = requested; - return this; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp + build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies + .Gbp(this.extraParams, this.requested); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class SwishPayments { + public static class InboundTransfers { + /** + * Can pull funds from an external bank account owned by yourself to a FinancialAccount. + */ + @SerializedName("bank_accounts") + BankAccounts bankAccounts; + /** * 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. @@ -6822,16 +8219,9 @@ public static class SwishPayments { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private SwishPayments(Map extraParams, Boolean requested) { + private InboundTransfers(BankAccounts bankAccounts, Map extraParams) { + this.bankAccounts = bankAccounts; this.extraParams = extraParams; - this.requested = requested; } public static Builder builder() { @@ -6839,21 +8229,31 @@ public static Builder builder() { } public static class Builder { - private Map extraParams; + private BankAccounts bankAccounts; - private Boolean requested; + private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments( - this.extraParams, this.requested); + public AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers( + this.bankAccounts, this.extraParams); + } + + /** + * Can pull funds from an external bank account owned by yourself to a FinancialAccount. + */ + public Builder setBankAccounts( + AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts + bankAccounts) { + this.bankAccounts = bankAccounts; + 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.Configuration.Merchant.Capabilities.SwishPayments#extraParams} + * AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -6868,7 +8268,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments#extraParams} + * AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -6878,102 +8278,103 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankAccounts { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} + * value. Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its + * parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; /** * Required. To request a new Capability for an account, pass true. * There can be a delay before the requested Capability becomes active. */ - public Builder setRequested(Boolean requested) { + @SerializedName("requested") + Boolean requested; + + private BankAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; this.requested = requested; - return this; } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class TwintPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private TwintPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } + public static Builder builder() { + return new Builder(); + } - public static class Builder { - private Map extraParams; + public static class Builder { + private Map extraParams; - private Boolean requested; + private Boolean requested; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments( - this.extraParams, this.requested); - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers + .BankAccounts + build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers + .BankAccounts(this.extraParams, this.requested); + } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts#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; } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; } - this.extraParams.putAll(map); - return this; - } - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class UsBankTransferPayments { + public static class OutboundPayments { + /** Can send funds from a FinancialAccount to a bank account owned by someone else. */ + @SerializedName("bank_accounts") + BankAccounts bankAccounts; + + /** Can send funds from a FinancialAccount to a debit card owned by someone else. */ + @SerializedName("cards") + Cards cards; + /** * 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. @@ -6985,15 +8386,21 @@ public static class UsBankTransferPayments { Map extraParams; /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. + * Can send funds from a FinancialAccount to another FinancialAccount owned by someone + * else. */ - @SerializedName("requested") - Boolean requested; + @SerializedName("financial_accounts") + FinancialAccounts financialAccounts; - private UsBankTransferPayments(Map extraParams, Boolean requested) { + private OutboundPayments( + BankAccounts bankAccounts, + Cards cards, + Map extraParams, + FinancialAccounts financialAccounts) { + this.bankAccounts = bankAccounts; + this.cards = cards; this.extraParams = extraParams; - this.requested = requested; + this.financialAccounts = financialAccounts; } public static Builder builder() { @@ -7001,22 +8408,41 @@ public static Builder builder() { } public static class Builder { + private BankAccounts bankAccounts; + + private Cards cards; + private Map extraParams; - private Boolean requested; + private FinancialAccounts financialAccounts; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments - build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities - .UsBankTransferPayments(this.extraParams, this.requested); + public AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments( + this.bankAccounts, this.cards, this.extraParams, this.financialAccounts); + } + + /** Can send funds from a FinancialAccount to a bank account owned by someone else. */ + public Builder setBankAccounts( + AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts + bankAccounts) { + this.bankAccounts = bankAccounts; + return this; + } + + /** Can send funds from a FinancialAccount to a debit card owned by someone else. */ + public Builder setCards( + AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards + cards) { + this.cards = cards; + 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.Configuration.Merchant.Capabilities.UsBankTransferPayments#extraParams} + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -7031,7 +8457,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments#extraParams} + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -7043,210 +8469,297 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. + * Can send funds from a FinancialAccount to another FinancialAccount owned by someone + * else. */ - public Builder setRequested(Boolean requested) { - this.requested = requested; + public Builder setFinancialAccounts( + AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments + .FinancialAccounts + financialAccounts) { + this.financialAccounts = financialAccounts; return this; } } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ZipPayments { - /** - * 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; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankAccounts { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} + * value. Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its + * parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private ZipPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } + private BankAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - public static Builder builder() { - return new Builder(); - } + public static Builder builder() { + return new Builder(); + } - public static class Builder { - private Map extraParams; + public static class Builder { + private Map extraParams; - private Boolean requested; + private Boolean requested; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments build() { - return new AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments( - this.extraParams, this.requested); - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments + .BankAccounts + build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments + .BankAccounts(this.extraParams, this.requested); + } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; } - this.extraParams.put(key, value); - return this; } + } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Cards { /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments#extraParams} for - * the field documentation. + * 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. */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; /** * Required. To request a new Capability for an account, pass true. * There can be a delay before the requested Capability becomes active. */ - public Builder setRequested(Boolean requested) { + @SerializedName("requested") + Boolean requested; + + private Cards(Map extraParams, Boolean requested) { + this.extraParams = extraParams; this.requested = requested; - return this; } - } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class CardPayments { - /** - * Automatically declines certain charge types regardless of whether the card issuer - * accepted or declined the charge. - */ - @SerializedName("decline_on") - DeclineOn declineOn; + public static Builder builder() { + return new Builder(); + } - /** - * 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; + public static class Builder { + private Map extraParams; - private CardPayments(DeclineOn declineOn, Map extraParams) { - this.declineOn = declineOn; - this.extraParams = extraParams; - } + private Boolean requested; - public static Builder builder() { - return new Builder(); - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards + build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments + .Cards(this.extraParams, this.requested); + } - public static class Builder { - private DeclineOn declineOn; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards#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; + } - private Map extraParams; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.CardPayments build() { - return new AccountCreateParams.Configuration.Merchant.CardPayments( - this.declineOn, this.extraParams); + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } - /** - * Automatically declines certain charge types regardless of whether the card issuer - * accepted or declined the charge. - */ - public Builder setDeclineOn( - AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn declineOn) { - this.declineOn = declineOn; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FinancialAccounts { + /** + * 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; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Merchant.CardPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; + + private FinancialAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Merchant.CardPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + public static Builder builder() { + return new Builder(); } - this.extraParams.putAll(map); - return this; - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class DeclineOn { - /** - * Whether Stripe automatically declines charges with an incorrect ZIP or postal code. - * This setting only applies when a ZIP or postal code is provided and they fail bank - * verification. - */ - @SerializedName("avs_failure") - Boolean avsFailure; + public static class Builder { + private Map extraParams; - /** - * Whether Stripe automatically declines charges with an incorrect CVC. This setting only - * applies when a CVC is provided and it fails bank verification. - */ - @SerializedName("cvc_failure") - Boolean cvcFailure; + private Boolean requested; - /** - * 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; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments + .FinancialAccounts + build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments + .FinancialAccounts(this.extraParams, this.requested); + } - private DeclineOn( - Boolean avsFailure, Boolean cvcFailure, Map extraParams) { - this.avsFailure = avsFailure; - this.cvcFailure = cvcFailure; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class OutboundTransfers { + /** Can send funds from a FinancialAccount to a bank account owned by yourself. */ + @SerializedName("bank_accounts") + BankAccounts bankAccounts; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its + * parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. + */ + @SerializedName("financial_accounts") + FinancialAccounts financialAccounts; + + private OutboundTransfers( + BankAccounts bankAccounts, + Map extraParams, + FinancialAccounts financialAccounts) { + this.bankAccounts = bankAccounts; this.extraParams = extraParams; + this.financialAccounts = financialAccounts; } public static Builder builder() { @@ -7254,34 +8767,23 @@ public static Builder builder() { } public static class Builder { - private Boolean avsFailure; - - private Boolean cvcFailure; + private BankAccounts bankAccounts; private Map extraParams; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn build() { - return new AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn( - this.avsFailure, this.cvcFailure, this.extraParams); - } + private FinancialAccounts financialAccounts; - /** - * Whether Stripe automatically declines charges with an incorrect ZIP or postal code. - * This setting only applies when a ZIP or postal code is provided and they fail bank - * verification. - */ - public Builder setAvsFailure(Boolean avsFailure) { - this.avsFailure = avsFailure; - return this; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers( + this.bankAccounts, this.extraParams, this.financialAccounts); } - /** - * Whether Stripe automatically declines charges with an incorrect CVC. This setting - * only applies when a CVC is provided and it fails bank verification. - */ - public Builder setCvcFailure(Boolean cvcFailure) { - this.cvcFailure = cvcFailure; + /** Can send funds from a FinancialAccount to a bank account owned by yourself. */ + public Builder setBankAccounts( + AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts + bankAccounts) { + this.bankAccounts = bankAccounts; return this; } @@ -7289,8 +8791,8 @@ public Builder setCvcFailure(Boolean cvcFailure) { * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -7304,8 +8806,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for - * the field documentation. + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -7314,1267 +8816,1380 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. + */ + public Builder setFinancialAccounts( + AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers + .FinancialAccounts + financialAccounts) { + this.financialAccounts = financialAccounts; + return this; + } } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class StatementDescriptor { - /** - * The default text that appears on statements for non-card charges outside of Japan. For - * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as - * the statement descriptor prefix. In that case, if concatenating the statement descriptor - * suffix causes the combined statement descriptor to exceed 22 characters, we truncate the - * statement_descriptor text to limit the full descriptor to 22 characters. For more - * information about statement descriptors and their requirements, see the Merchant - * Configuration settings documentation. - */ - @SerializedName("descriptor") - String descriptor; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankAccounts { + /** + * 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; - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** - * Default text that appears on statements for card charges outside of Japan, prefixing any - * dynamic statement_descriptor_suffix specified on the charge. To maximize space for the - * dynamic part of the descriptor, keep this text short. If you don’t specify this value, - * statement_descriptor is used as the prefix. For more information about statement - * descriptors and their requirements, see the Merchant Configuration settings - * documentation. - */ - @SerializedName("prefix") - String prefix; + private BankAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - private StatementDescriptor( - String descriptor, Map extraParams, String prefix) { - this.descriptor = descriptor; - this.extraParams = extraParams; - this.prefix = prefix; - } + public static Builder builder() { + return new Builder(); + } - public static Builder builder() { - return new Builder(); - } + public static class Builder { + private Map extraParams; - public static class Builder { - private String descriptor; + private Boolean requested; - private Map extraParams; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers + .BankAccounts + build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers + .BankAccounts(this.extraParams, this.requested); + } - private String prefix; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts#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; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.StatementDescriptor build() { - return new AccountCreateParams.Configuration.Merchant.StatementDescriptor( - this.descriptor, this.extraParams, this.prefix); + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } - /** - * The default text that appears on statements for non-card charges outside of Japan. For - * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as - * the statement descriptor prefix. In that case, if concatenating the statement - * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we - * truncate the statement_descriptor text to limit the full descriptor to 22 characters. - * For more information about statement descriptors and their requirements, see the - * Merchant Configuration settings documentation. - */ - public Builder setDescriptor(String descriptor) { - this.descriptor = descriptor; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FinancialAccounts { + /** + * 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; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Configuration.Merchant.StatementDescriptor#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; - } + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Configuration.Merchant.StatementDescriptor#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + private FinancialAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - this.extraParams.putAll(map); - return this; - } - /** - * Default text that appears on statements for card charges outside of Japan, prefixing - * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for - * the dynamic part of the descriptor, keep this text short. If you don’t specify this - * value, statement_descriptor is used as the prefix. For more information about statement - * descriptors and their requirements, see the Merchant Configuration settings - * documentation. - */ - public Builder setPrefix(String prefix) { - this.prefix = prefix; - return this; - } - } - } + public static Builder builder() { + return new Builder(); + } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Support { - /** A publicly available mailing address for sending support issues to. */ - @SerializedName("address") - Address address; + public static class Builder { + private Map extraParams; - /** A publicly available email address for sending support issues to. */ - @SerializedName("email") - String email; + private Boolean requested; - /** - * 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; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers + .FinancialAccounts + build() { + return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers + .FinancialAccounts(this.extraParams, this.requested); + } - /** A publicly available phone number to call with support issues. */ - @SerializedName("phone") - String phone; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts#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; + } - /** A publicly available website for handling support issues. */ - @SerializedName("url") - String url; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - private Support( - Address address, - String email, - Map extraParams, - String phone, - String url) { - this.address = address; - this.email = email; - this.extraParams = extraParams; - this.phone = phone; - this.url = url; + /** + * Required. To request a new Capability for an account, pass true. + * There can be a delay before the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } } + } + } + } - public static Builder builder() { - return new Builder(); - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Defaults { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + String currency; - public static class Builder { - private Address address; + /** + * 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 String email; + /** The Account's preferred locales (languages), ordered by preference. */ + @SerializedName("locales") + List locales; - private Map extraParams; + /** Default responsibilities held by either Stripe or the platform. */ + @SerializedName("responsibilities") + Responsibilities responsibilities; - private String phone; + private Defaults( + String currency, + Map extraParams, + List locales, + Responsibilities responsibilities) { + this.currency = currency; + this.extraParams = extraParams; + this.locales = locales; + this.responsibilities = responsibilities; + } - private String url; + public static Builder builder() { + return new Builder(); + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Support build() { - return new AccountCreateParams.Configuration.Merchant.Support( - this.address, this.email, this.extraParams, this.phone, this.url); - } + public static class Builder { + private String currency; - /** A publicly available mailing address for sending support issues to. */ - public Builder setAddress( - AccountCreateParams.Configuration.Merchant.Support.Address address) { - this.address = address; - return this; - } + private Map extraParams; - /** A publicly available email address for sending support issues to. */ - public Builder setEmail(String email) { - this.email = email; - return this; - } + private List locales; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Merchant.Support#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; - } + private Responsibilities responsibilities; - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Merchant.Support#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Defaults build() { + return new AccountCreateParams.Defaults( + this.currency, this.extraParams, this.locales, this.responsibilities); + } - /** A publicly available phone number to call with support issues. */ - public Builder setPhone(String phone) { - this.phone = phone; - return this; - } + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + return this; + } - /** A publicly available website for handling support issues. */ - public Builder setUrl(String url) { - this.url = url; - 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.Defaults#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; + } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Address { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; + /** + * 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.Defaults#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country country; + /** + * Add an element to `locales` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * AccountCreateParams.Defaults#locales} for the field documentation. + */ + public Builder addLocale(AccountCreateParams.Defaults.Locale element) { + if (this.locales == null) { + this.locales = new ArrayList<>(); + } + this.locales.add(element); + 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. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + /** + * Add all elements to `locales` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * AccountCreateParams.Defaults#locales} for the field documentation. + */ + public Builder addAllLocale(List elements) { + if (this.locales == null) { + this.locales = new ArrayList<>(); + } + this.locales.addAll(elements); + return this; + } - /** Address line 1 (e.g., street, PO Box, or company name). */ - @SerializedName("line1") - String line1; + /** Default responsibilities held by either Stripe or the platform. */ + public Builder setResponsibilities( + AccountCreateParams.Defaults.Responsibilities responsibilities) { + this.responsibilities = responsibilities; + return this; + } + } - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - String line2; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Responsibilities { + /** + * 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; - /** ZIP or postal code. */ - @SerializedName("postal_code") - String postalCode; + /** + * Required. A value indicating the party responsible for collecting fees + * from this account. + */ + @SerializedName("fees_collector") + FeesCollector feesCollector; - /** State, county, province, or region. */ - @SerializedName("state") - String state; + /** + * Required. A value indicating who is responsible for losses when this + * Account can’t pay back negative balances from payments. + */ + @SerializedName("losses_collector") + LossesCollector lossesCollector; - /** Town or cho-me. */ - @SerializedName("town") - String town; + private Responsibilities( + Map extraParams, + FeesCollector feesCollector, + LossesCollector lossesCollector) { + this.extraParams = extraParams; + this.feesCollector = feesCollector; + this.lossesCollector = lossesCollector; + } - private Address( - String city, - Country 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 Map extraParams; + + private FeesCollector feesCollector; + + private LossesCollector lossesCollector; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Defaults.Responsibilities build() { + return new AccountCreateParams.Defaults.Responsibilities( + this.extraParams, this.feesCollector, this.lossesCollector); + } + + /** + * 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.Defaults.Responsibilities#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; + } - public static Builder builder() { - return new Builder(); + /** + * 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.Defaults.Responsibilities#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 Builder { - private String city; + /** + * Required. A value indicating the party responsible for collecting fees + * from this account. + */ + public Builder setFeesCollector( + AccountCreateParams.Defaults.Responsibilities.FeesCollector feesCollector) { + this.feesCollector = feesCollector; + return this; + } - private Country country; + /** + * Required. A value indicating who is responsible for losses when this + * Account can’t pay back negative balances from payments. + */ + public Builder setLossesCollector( + AccountCreateParams.Defaults.Responsibilities.LossesCollector lossesCollector) { + this.lossesCollector = lossesCollector; + return this; + } + } - private Map extraParams; + public enum FeesCollector implements ApiRequestParams.EnumParam { + @SerializedName("application") + APPLICATION("application"), - private String line1; + @SerializedName("stripe") + STRIPE("stripe"); - private String line2; + @Getter(onMethod_ = {@Override}) + private final String value; - private String postalCode; + FeesCollector(String value) { + this.value = value; + } + } - private String state; + public enum LossesCollector implements ApiRequestParams.EnumParam { + @SerializedName("application") + APPLICATION("application"), - private String town; + @SerializedName("stripe") + STRIPE("stripe"); - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Merchant.Support.Address build() { - return new AccountCreateParams.Configuration.Merchant.Support.Address( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } + @Getter(onMethod_ = {@Override}) + private final String value; - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry( - AccountCreateParams.Configuration.Merchant.Support.Address.Country 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.Configuration.Merchant.Support.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.Configuration.Merchant.Support.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; - } + LossesCollector(String value) { + this.value = value; + } + } + } - /** Address line 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(String line1) { - this.line1 = line1; - return this; - } + public enum Locale implements ApiRequestParams.EnumParam { + @SerializedName("ar-SA") + AR_SA("ar-SA"), - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(String line2) { - this.line2 = line2; - return this; - } + @SerializedName("bg") + BG("bg"), - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } + @SerializedName("bg-BG") + BG_BG("bg-BG"), - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } + @SerializedName("cs") + CS("cs"), - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - } + @SerializedName("cs-CZ") + CS_CZ("cs-CZ"), - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), + @SerializedName("da") + DA("da"), - @SerializedName("ae") - AE("ae"), + @SerializedName("da-DK") + DA_DK("da-DK"), - @SerializedName("af") - AF("af"), + @SerializedName("de") + DE("de"), - @SerializedName("ag") - AG("ag"), + @SerializedName("de-DE") + DE_DE("de-DE"), - @SerializedName("ai") - AI("ai"), + @SerializedName("el") + EL("el"), - @SerializedName("al") - AL("al"), + @SerializedName("el-GR") + EL_GR("el-GR"), - @SerializedName("am") - AM("am"), + @SerializedName("en") + EN("en"), - @SerializedName("ao") - AO("ao"), + @SerializedName("en-AU") + EN_AU("en-AU"), - @SerializedName("aq") - AQ("aq"), + @SerializedName("en-CA") + EN_CA("en-CA"), - @SerializedName("ar") - AR("ar"), + @SerializedName("en-GB") + EN_GB("en-GB"), - @SerializedName("as") - AS("as"), + @SerializedName("en-IE") + EN_IE("en-IE"), - @SerializedName("at") - AT("at"), + @SerializedName("en-IN") + EN_IN("en-IN"), - @SerializedName("au") - AU("au"), + @SerializedName("en-NZ") + EN_NZ("en-NZ"), - @SerializedName("aw") - AW("aw"), + @SerializedName("en-SG") + EN_SG("en-SG"), - @SerializedName("ax") - AX("ax"), + @SerializedName("en-US") + EN_US("en-US"), - @SerializedName("az") - AZ("az"), + @SerializedName("es") + ES("es"), - @SerializedName("ba") - BA("ba"), + @SerializedName("es-419") + ES_419("es-419"), - @SerializedName("bb") - BB("bb"), + @SerializedName("es-ES") + ES_ES("es-ES"), - @SerializedName("bd") - BD("bd"), + @SerializedName("et") + ET("et"), - @SerializedName("be") - BE("be"), + @SerializedName("et-EE") + ET_EE("et-EE"), - @SerializedName("bf") - BF("bf"), + @SerializedName("fi") + FI("fi"), - @SerializedName("bg") - BG("bg"), + @SerializedName("fil") + FIL("fil"), - @SerializedName("bh") - BH("bh"), + @SerializedName("fil-PH") + FIL_PH("fil-PH"), - @SerializedName("bi") - BI("bi"), + @SerializedName("fi-FI") + FI_FI("fi-FI"), - @SerializedName("bj") - BJ("bj"), + @SerializedName("fr") + FR("fr"), - @SerializedName("bl") - BL("bl"), + @SerializedName("fr-CA") + FR_CA("fr-CA"), - @SerializedName("bm") - BM("bm"), + @SerializedName("fr-FR") + FR_FR("fr-FR"), - @SerializedName("bn") - BN("bn"), + @SerializedName("he-IL") + HE_IL("he-IL"), - @SerializedName("bo") - BO("bo"), + @SerializedName("hr") + HR("hr"), - @SerializedName("bq") - BQ("bq"), + @SerializedName("hr-HR") + HR_HR("hr-HR"), - @SerializedName("br") - BR("br"), + @SerializedName("hu") + HU("hu"), - @SerializedName("bs") - BS("bs"), + @SerializedName("hu-HU") + HU_HU("hu-HU"), - @SerializedName("bt") - BT("bt"), + @SerializedName("id") + ID("id"), - @SerializedName("bv") - BV("bv"), + @SerializedName("id-ID") + ID_ID("id-ID"), - @SerializedName("bw") - BW("bw"), + @SerializedName("it") + IT("it"), - @SerializedName("by") - BY("by"), + @SerializedName("it-IT") + IT_IT("it-IT"), - @SerializedName("bz") - BZ("bz"), + @SerializedName("ja") + JA("ja"), - @SerializedName("ca") - CA("ca"), + @SerializedName("ja-JP") + JA_JP("ja-JP"), - @SerializedName("cc") - CC("cc"), + @SerializedName("ko") + KO("ko"), - @SerializedName("cd") - CD("cd"), + @SerializedName("ko-KR") + KO_KR("ko-KR"), - @SerializedName("cf") - CF("cf"), + @SerializedName("lt") + LT("lt"), - @SerializedName("cg") - CG("cg"), + @SerializedName("lt-LT") + LT_LT("lt-LT"), - @SerializedName("ch") - CH("ch"), + @SerializedName("lv") + LV("lv"), - @SerializedName("ci") - CI("ci"), + @SerializedName("lv-LV") + LV_LV("lv-LV"), - @SerializedName("ck") - CK("ck"), + @SerializedName("ms") + MS("ms"), - @SerializedName("cl") - CL("cl"), + @SerializedName("ms-MY") + MS_MY("ms-MY"), - @SerializedName("cm") - CM("cm"), + @SerializedName("mt") + MT("mt"), - @SerializedName("cn") - CN("cn"), + @SerializedName("mt-MT") + MT_MT("mt-MT"), - @SerializedName("co") - CO("co"), + @SerializedName("nb") + NB("nb"), - @SerializedName("cr") - CR("cr"), + @SerializedName("nb-NO") + NB_NO("nb-NO"), - @SerializedName("cu") - CU("cu"), + @SerializedName("nl") + NL("nl"), - @SerializedName("cv") - CV("cv"), + @SerializedName("nl-NL") + NL_NL("nl-NL"), - @SerializedName("cw") - CW("cw"), + @SerializedName("pl") + PL("pl"), - @SerializedName("cx") - CX("cx"), + @SerializedName("pl-PL") + PL_PL("pl-PL"), - @SerializedName("cy") - CY("cy"), + @SerializedName("pt") + PT("pt"), - @SerializedName("cz") - CZ("cz"), + @SerializedName("pt-BR") + PT_BR("pt-BR"), - @SerializedName("de") - DE("de"), + @SerializedName("pt-PT") + PT_PT("pt-PT"), - @SerializedName("dj") - DJ("dj"), + @SerializedName("ro") + RO("ro"), - @SerializedName("dk") - DK("dk"), + @SerializedName("ro-RO") + RO_RO("ro-RO"), - @SerializedName("dm") - DM("dm"), + @SerializedName("ru") + RU("ru"), - @SerializedName("do") - DO("do"), + @SerializedName("ru-RU") + RU_RU("ru-RU"), - @SerializedName("dz") - DZ("dz"), + @SerializedName("sk") + SK("sk"), - @SerializedName("ec") - EC("ec"), + @SerializedName("sk-SK") + SK_SK("sk-SK"), - @SerializedName("ee") - EE("ee"), + @SerializedName("sl") + SL("sl"), - @SerializedName("eg") - EG("eg"), + @SerializedName("sl-SI") + SL_SI("sl-SI"), - @SerializedName("eh") - EH("eh"), + @SerializedName("sv") + SV("sv"), - @SerializedName("er") - ER("er"), + @SerializedName("sv-SE") + SV_SE("sv-SE"), - @SerializedName("es") - ES("es"), + @SerializedName("th") + TH("th"), - @SerializedName("et") - ET("et"), + @SerializedName("th-TH") + TH_TH("th-TH"), - @SerializedName("fi") - FI("fi"), + @SerializedName("tr") + TR("tr"), - @SerializedName("fj") - FJ("fj"), + @SerializedName("tr-TR") + TR_TR("tr-TR"), - @SerializedName("fk") - FK("fk"), + @SerializedName("vi") + VI("vi"), - @SerializedName("fm") - FM("fm"), + @SerializedName("vi-VN") + VI_VN("vi-VN"), - @SerializedName("fo") - FO("fo"), + @SerializedName("zh") + ZH("zh"), - @SerializedName("fr") - FR("fr"), + @SerializedName("zh-Hans") + ZH_HANS("zh-Hans"), - @SerializedName("ga") - GA("ga"), + @SerializedName("zh-Hant-HK") + ZH_HANT_HK("zh-Hant-HK"), - @SerializedName("gb") - GB("gb"), + @SerializedName("zh-Hant-TW") + ZH_HANT_TW("zh-Hant-TW"), - @SerializedName("gd") - GD("gd"), + @SerializedName("zh-HK") + ZH_HK("zh-HK"), - @SerializedName("ge") - GE("ge"), + @SerializedName("zh-TW") + ZH_TW("zh-TW"); - @SerializedName("gf") - GF("gf"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("gg") - GG("gg"), + Locale(String value) { + this.value = value; + } + } + } - @SerializedName("gh") - GH("gh"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Identity { + /** Attestations from the identity's key people, e.g. owners, executives, directors. */ + @SerializedName("attestations") + Attestations attestations; - @SerializedName("gi") - GI("gi"), + /** Information about the company or business. */ + @SerializedName("business_details") + BusinessDetails businessDetails; - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), + /** + * 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. + */ + @SerializedName("country") + String country; - @SerializedName("gn") - GN("gn"), + /** The entity type. */ + @SerializedName("entity_type") + EntityType entityType; - @SerializedName("gp") - GP("gp"), + /** + * 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; - @SerializedName("gq") - GQ("gq"), + /** Information about the person represented by the account. */ + @SerializedName("individual") + Individual individual; - @SerializedName("gr") - GR("gr"), + private Identity( + Attestations attestations, + BusinessDetails businessDetails, + String country, + EntityType entityType, + Map extraParams, + Individual individual) { + this.attestations = attestations; + this.businessDetails = businessDetails; + this.country = country; + this.entityType = entityType; + this.extraParams = extraParams; + this.individual = individual; + } - @SerializedName("gs") - GS("gs"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("gt") - GT("gt"), + public static class Builder { + private Attestations attestations; - @SerializedName("gu") - GU("gu"), + private BusinessDetails businessDetails; - @SerializedName("gw") - GW("gw"), + private String country; - @SerializedName("gy") - GY("gy"), + private EntityType entityType; - @SerializedName("hk") - HK("hk"), + private Map extraParams; - @SerializedName("hm") - HM("hm"), + private Individual individual; - @SerializedName("hn") - HN("hn"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity build() { + return new AccountCreateParams.Identity( + this.attestations, + this.businessDetails, + this.country, + this.entityType, + this.extraParams, + this.individual); + } - @SerializedName("hr") - HR("hr"), + /** Attestations from the identity's key people, e.g. owners, executives, directors. */ + public Builder setAttestations(AccountCreateParams.Identity.Attestations attestations) { + this.attestations = attestations; + return this; + } - @SerializedName("ht") - HT("ht"), + /** Information about the company or business. */ + public Builder setBusinessDetails( + AccountCreateParams.Identity.BusinessDetails businessDetails) { + this.businessDetails = businessDetails; + return this; + } - @SerializedName("hu") - HU("hu"), + /** + * 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. + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("id") - ID("id"), + /** The entity type. */ + public Builder setEntityType(AccountCreateParams.Identity.EntityType entityType) { + this.entityType = entityType; + return this; + } - @SerializedName("ie") - IE("ie"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * AccountCreateParams.Identity#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; + } - @SerializedName("il") - IL("il"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link AccountCreateParams.Identity#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("im") - IM("im"), + /** Information about the person represented by the account. */ + public Builder setIndividual(AccountCreateParams.Identity.Individual individual) { + this.individual = individual; + return this; + } + } - @SerializedName("in") - IN("in"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Attestations { + /** + * This hash is used to attest that the directors information provided to Stripe is both + * current and correct. + */ + @SerializedName("directorship_declaration") + DirectorshipDeclaration directorshipDeclaration; - @SerializedName("io") - IO("io"), + /** + * 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; - @SerializedName("iq") - IQ("iq"), + /** + * This hash is used to attest that the beneficial owner information provided to Stripe is + * both current and correct. + */ + @SerializedName("ownership_declaration") + OwnershipDeclaration ownershipDeclaration; - @SerializedName("ir") - IR("ir"), + /** Attestation that all Persons with a specific Relationship value have been provided. */ + @SerializedName("persons_provided") + PersonsProvided personsProvided; - @SerializedName("is") - IS("is"), + /** Attestations of accepted terms of service agreements. */ + @SerializedName("terms_of_service") + TermsOfService termsOfService; - @SerializedName("it") - IT("it"), + private Attestations( + DirectorshipDeclaration directorshipDeclaration, + Map extraParams, + OwnershipDeclaration ownershipDeclaration, + PersonsProvided personsProvided, + TermsOfService termsOfService) { + this.directorshipDeclaration = directorshipDeclaration; + this.extraParams = extraParams; + this.ownershipDeclaration = ownershipDeclaration; + this.personsProvided = personsProvided; + this.termsOfService = termsOfService; + } - @SerializedName("je") - JE("je"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("jm") - JM("jm"), + public static class Builder { + private DirectorshipDeclaration directorshipDeclaration; - @SerializedName("jo") - JO("jo"), + private Map extraParams; - @SerializedName("jp") - JP("jp"), + private OwnershipDeclaration ownershipDeclaration; - @SerializedName("ke") - KE("ke"), + private PersonsProvided personsProvided; - @SerializedName("kg") - KG("kg"), + private TermsOfService termsOfService; - @SerializedName("kh") - KH("kh"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Attestations build() { + return new AccountCreateParams.Identity.Attestations( + this.directorshipDeclaration, + this.extraParams, + this.ownershipDeclaration, + this.personsProvided, + this.termsOfService); + } - @SerializedName("ki") - KI("ki"), + /** + * This hash is used to attest that the directors information provided to Stripe is both + * current and correct. + */ + public Builder setDirectorshipDeclaration( + AccountCreateParams.Identity.Attestations.DirectorshipDeclaration + directorshipDeclaration) { + this.directorshipDeclaration = directorshipDeclaration; + return this; + } - @SerializedName("km") - KM("km"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Attestations#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; + } - @SerializedName("kn") - KN("kn"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Attestations#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("kp") - KP("kp"), + /** + * This hash is used to attest that the beneficial owner information provided to Stripe is + * both current and correct. + */ + public Builder setOwnershipDeclaration( + AccountCreateParams.Identity.Attestations.OwnershipDeclaration ownershipDeclaration) { + this.ownershipDeclaration = ownershipDeclaration; + return this; + } - @SerializedName("kr") - KR("kr"), + /** Attestation that all Persons with a specific Relationship value have been provided. */ + public Builder setPersonsProvided( + AccountCreateParams.Identity.Attestations.PersonsProvided personsProvided) { + this.personsProvided = personsProvided; + return this; + } - @SerializedName("kw") - KW("kw"), + /** Attestations of accepted terms of service agreements. */ + public Builder setTermsOfService( + AccountCreateParams.Identity.Attestations.TermsOfService termsOfService) { + this.termsOfService = termsOfService; + return this; + } + } - @SerializedName("ky") - KY("ky"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class DirectorshipDeclaration { + /** + * The time marking when the director attestation was made. Represented as a RFC 3339 date + * & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + @SerializedName("date") + Instant date; - @SerializedName("kz") - KZ("kz"), + /** + * 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; - @SerializedName("la") - LA("la"), + /** The IP address from which the director attestation was made. */ + @SerializedName("ip") + String ip; - @SerializedName("lb") - LB("lb"), + /** The user agent of the browser from which the director attestation was made. */ + @SerializedName("user_agent") + String userAgent; - @SerializedName("lc") - LC("lc"), + private DirectorshipDeclaration( + Instant date, Map extraParams, String ip, String userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("lu") - LU("lu"), + public static class Builder { + private Instant date; - @SerializedName("lv") - LV("lv"), + private Map extraParams; - @SerializedName("ly") - LY("ly"), + private String ip; - @SerializedName("ma") - MA("ma"), + private String userAgent; - @SerializedName("mc") - MC("mc"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Attestations.DirectorshipDeclaration build() { + return new AccountCreateParams.Identity.Attestations.DirectorshipDeclaration( + this.date, this.extraParams, this.ip, this.userAgent); + } - @SerializedName("md") - MD("md"), + /** + * The time marking when the director attestation was made. Represented as a RFC 3339 date + * & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + public Builder setDate(Instant date) { + this.date = date; + return this; + } - @SerializedName("me") - ME("me"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Identity.Attestations.DirectorshipDeclaration#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; + } - @SerializedName("mf") - MF("mf"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Identity.Attestations.DirectorshipDeclaration#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("mg") - MG("mg"), + /** The IP address from which the director attestation was made. */ + public Builder setIp(String ip) { + this.ip = ip; + return this; + } - @SerializedName("mh") - MH("mh"), + /** The user agent of the browser from which the director attestation was made. */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } + } + } - @SerializedName("mk") - MK("mk"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class OwnershipDeclaration { + /** + * The time marking when the beneficial owner attestation was made. Represented as a RFC + * 3339 date & time UTC value in millisecond precision, for example: + * 2022-09-18T13:22:18.123Z. + */ + @SerializedName("date") + Instant date; - @SerializedName("ml") - ML("ml"), + /** + * 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; - @SerializedName("mm") - MM("mm"), + /** The IP address from which the beneficial owner attestation was made. */ + @SerializedName("ip") + String ip; - @SerializedName("mn") - MN("mn"), + /** The user agent of the browser from which the beneficial owner attestation was made. */ + @SerializedName("user_agent") + String userAgent; - @SerializedName("mo") - MO("mo"), + private OwnershipDeclaration( + Instant date, Map extraParams, String ip, String userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } - @SerializedName("mp") - MP("mp"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("mq") - MQ("mq"), + public static class Builder { + private Instant date; - @SerializedName("mr") - MR("mr"), + private Map extraParams; - @SerializedName("ms") - MS("ms"), + private String ip; - @SerializedName("mt") - MT("mt"), + private String userAgent; - @SerializedName("mu") - MU("mu"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Attestations.OwnershipDeclaration build() { + return new AccountCreateParams.Identity.Attestations.OwnershipDeclaration( + this.date, this.extraParams, this.ip, this.userAgent); + } - @SerializedName("mv") - MV("mv"), + /** + * The time marking when the beneficial owner attestation was made. Represented as a RFC + * 3339 date & time UTC value in millisecond precision, for example: + * 2022-09-18T13:22:18.123Z. + */ + public Builder setDate(Instant date) { + this.date = date; + return this; + } - @SerializedName("mw") - MW("mw"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Identity.Attestations.OwnershipDeclaration#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; + } - @SerializedName("mx") - MX("mx"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Identity.Attestations.OwnershipDeclaration#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("my") - MY("my"), + /** The IP address from which the beneficial owner attestation was made. */ + public Builder setIp(String ip) { + this.ip = ip; + return this; + } - @SerializedName("mz") - MZ("mz"), + /** The user agent of the browser from which the beneficial owner attestation was made. */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } + } + } - @SerializedName("na") - NA("na"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PersonsProvided { + /** + * Whether the company’s directors have been provided. Set this Boolean to true after + * creating all the company’s directors with the Persons API. + */ + @SerializedName("directors") + Boolean directors; - @SerializedName("nc") - NC("nc"), + /** + * Whether the company’s executives have been provided. Set this Boolean to true after + * creating all the company’s executives with the Persons API. + */ + @SerializedName("executives") + Boolean executives; - @SerializedName("ne") - NE("ne"), + /** + * 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; - @SerializedName("nf") - NF("nf"), + /** + * Whether the company’s owners have been provided. Set this Boolean to true after creating + * all the company’s owners with the Persons API. + */ + @SerializedName("owners") + Boolean owners; - @SerializedName("ng") - NG("ng"), + /** Reason for why the company is exempt from providing ownership information. */ + @SerializedName("ownership_exemption_reason") + OwnershipExemptionReason ownershipExemptionReason; - @SerializedName("ni") - NI("ni"), + private PersonsProvided( + Boolean directors, + Boolean executives, + Map extraParams, + Boolean owners, + OwnershipExemptionReason ownershipExemptionReason) { + this.directors = directors; + this.executives = executives; + this.extraParams = extraParams; + this.owners = owners; + this.ownershipExemptionReason = ownershipExemptionReason; + } - @SerializedName("nl") - NL("nl"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("no") - NO("no"), + public static class Builder { + private Boolean directors; - @SerializedName("np") - NP("np"), + private Boolean executives; - @SerializedName("nr") - NR("nr"), + private Map extraParams; - @SerializedName("nu") - NU("nu"), + private Boolean owners; - @SerializedName("nz") - NZ("nz"), + private OwnershipExemptionReason ownershipExemptionReason; - @SerializedName("om") - OM("om"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Attestations.PersonsProvided build() { + return new AccountCreateParams.Identity.Attestations.PersonsProvided( + this.directors, + this.executives, + this.extraParams, + this.owners, + this.ownershipExemptionReason); + } - @SerializedName("pa") - PA("pa"), + /** + * Whether the company’s directors have been provided. Set this Boolean to true after + * creating all the company’s directors with the Persons API. + */ + public Builder setDirectors(Boolean directors) { + this.directors = directors; + return this; + } - @SerializedName("pe") - PE("pe"), + /** + * Whether the company’s executives have been provided. Set this Boolean to true after + * creating all the company’s executives with the Persons API. + */ + public Builder setExecutives(Boolean executives) { + this.executives = executives; + return this; + } - @SerializedName("pf") - PF("pf"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Attestations.PersonsProvided#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; + } - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Attestations.PersonsProvided#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); } + this.extraParams.putAll(map); + return this; } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Recipient { - /** Capabilities to be requested on the Recipient Configuration. */ - @SerializedName("capabilities") - Capabilities capabilities; - - /** - * 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 Recipient(Capabilities capabilities, Map extraParams) { - this.capabilities = capabilities; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Capabilities capabilities; - private Map extraParams; + /** + * Whether the company’s owners have been provided. Set this Boolean to true after + * creating all the company’s owners with the Persons API. + */ + public Builder setOwners(Boolean owners) { + this.owners = owners; + return this; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Recipient build() { - return new AccountCreateParams.Configuration.Recipient( - this.capabilities, this.extraParams); + /** Reason for why the company is exempt from providing ownership information. */ + public Builder setOwnershipExemptionReason( + AccountCreateParams.Identity.Attestations.PersonsProvided.OwnershipExemptionReason + ownershipExemptionReason) { + this.ownershipExemptionReason = ownershipExemptionReason; + return this; + } } - /** Capabilities to be requested on the Recipient Configuration. */ - public Builder setCapabilities( - AccountCreateParams.Configuration.Recipient.Capabilities capabilities) { - this.capabilities = capabilities; - return this; - } + public enum OwnershipExemptionReason implements ApiRequestParams.EnumParam { + @SerializedName("qualified_entity_exceeds_ownership_threshold") + QUALIFIED_ENTITY_EXCEEDS_OWNERSHIP_THRESHOLD( + "qualified_entity_exceeds_ownership_threshold"), - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Recipient#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; - } + @SerializedName("qualifies_as_financial_institution") + QUALIFIES_AS_FINANCIAL_INSTITUTION("qualifies_as_financial_institution"); - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Recipient#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + @Getter(onMethod_ = {@Override}) + private final String value; + + OwnershipExemptionReason(String value) { + this.value = value; } - this.extraParams.putAll(map); - return this; } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Capabilities { - /** Capabilities that enable OutboundPayments to a bank account linked to this Account. */ - @SerializedName("bank_accounts") - BankAccounts bankAccounts; - - /** Capabilities that enable OutboundPayments to a card linked to this Account. */ - @SerializedName("cards") - Cards cards; + public static class TermsOfService { + /** + * Details on the Account's acceptance of the Stripe Services + * Agreement. + */ + @SerializedName("account") + Account account; /** * Map of extra parameters for custom features not available in this client library. The @@ -8586,19 +10201,14 @@ public static class Capabilities { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). */ - @SerializedName("stripe_balance") - StripeBalance stripeBalance; + /** Details on the Account's acceptance of Treasury-specific terms of service. */ + @SerializedName("storer") + Storer storer; - private Capabilities( - BankAccounts bankAccounts, - Cards cards, - Map extraParams, - StripeBalance stripeBalance) { - this.bankAccounts = bankAccounts; - this.cards = cards; + private TermsOfService(Account account, Map extraParams, Storer storer) { + this.account = account; this.extraParams = extraParams; - this.stripeBalance = stripeBalance; + this.storer = storer; } public static Builder builder() { @@ -8606,38 +10216,33 @@ public static Builder builder() { } public static class Builder { - private BankAccounts bankAccounts; - - private Cards cards; + private Account account; private Map extraParams; - private StripeBalance stripeBalance; + private Storer storer; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Recipient.Capabilities build() { - return new AccountCreateParams.Configuration.Recipient.Capabilities( - this.bankAccounts, this.cards, this.extraParams, this.stripeBalance); - } - - /** Capabilities that enable OutboundPayments to a bank account linked to this Account. */ - public Builder setBankAccounts( - AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts bankAccounts) { - this.bankAccounts = bankAccounts; - return this; + public AccountCreateParams.Identity.Attestations.TermsOfService build() { + return new AccountCreateParams.Identity.Attestations.TermsOfService( + this.account, this.extraParams, this.storer); } - /** Capabilities that enable OutboundPayments to a card linked to this Account. */ - public Builder setCards( - AccountCreateParams.Configuration.Recipient.Capabilities.Cards cards) { - this.cards = cards; + /** + * Details on the Account's acceptance of the Stripe Services + * Agreement. + */ + public Builder setAccount( + AccountCreateParams.Identity.Attestations.TermsOfService.Account account) { + this.account = account; 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.Configuration.Recipient.Capabilities#extraParams} + * map. See {@link AccountCreateParams.Identity.Attestations.TermsOfService#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -8651,7 +10256,7 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Recipient.Capabilities#extraParams} + * map. See {@link AccountCreateParams.Identity.Attestations.TermsOfService#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -8662,20 +10267,25 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). - */ - public Builder setStripeBalance( - AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance - stripeBalance) { - this.stripeBalance = stripeBalance; + /** Details on the Account's acceptance of Treasury-specific terms of service. */ + public Builder setStorer( + AccountCreateParams.Identity.Attestations.TermsOfService.Storer storer) { + this.storer = storer; return this; } } @Getter @EqualsAndHashCode(callSuper = false) - public static class BankAccounts { + public static class Account { + /** + * Required. The time when the Account's representative accepted the + * terms of service. Represented as a RFC 3339 date & time UTC value in millisecond + * precision, for example: 2022-09-18T13:22:18.123Z. + */ + @SerializedName("date") + Instant date; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -8687,20 +10297,25 @@ public static class BankAccounts { Map extraParams; /** - * Enables this Account to receive OutboundPayments to linked bank accounts over local - * networks. + * Required. The IP address from which the Account's representative + * accepted the terms of service. */ - @SerializedName("local") - Local local; + @SerializedName("ip") + String ip; - /** Enables this Account to receive OutboundPayments to linked bank accounts over wire. */ - @SerializedName("wire") - Wire wire; + /** + * The user agent of the browser from which the Account's representative accepted the + * terms of service. + */ + @SerializedName("user_agent") + String userAgent; - private BankAccounts(Map extraParams, Local local, Wire wire) { + private Account( + Instant date, Map extraParams, String ip, String userAgent) { + this.date = date; this.extraParams = extraParams; - this.local = local; - this.wire = wire; + this.ip = ip; + this.userAgent = userAgent; } public static Builder builder() { @@ -8708,24 +10323,36 @@ public static Builder builder() { } public static class Builder { + private Instant date; + private Map extraParams; - private Local local; + private String ip; - private Wire wire; + private String userAgent; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts build() { - return new AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts( - this.extraParams, this.local, this.wire); + public AccountCreateParams.Identity.Attestations.TermsOfService.Account build() { + return new AccountCreateParams.Identity.Attestations.TermsOfService.Account( + this.date, this.extraParams, this.ip, this.userAgent); + } + + /** + * Required. The time when the Account's representative accepted the + * terms of service. Represented as a RFC 3339 date & time UTC value in millisecond + * precision, for example: 2022-09-18T13:22:18.123Z. + */ + public Builder setDate(Instant date) { + this.date = date; + return this; } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts#extraParams} - * for the field documentation. + * AccountCreateParams.Identity.Attestations.TermsOfService.Account#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -8739,8 +10366,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts#extraParams} - * for the field documentation. + * AccountCreateParams.Identity.Attestations.TermsOfService.Account#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -8751,457 +10378,254 @@ public Builder putAllExtraParam(Map map) { } /** - * Enables this Account to receive OutboundPayments to linked bank accounts over local - * networks. + * Required. The IP address from which the Account's representative + * accepted the terms of service. */ - public Builder setLocal( - AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Local local) { - this.local = local; + public Builder setIp(String ip) { + this.ip = ip; return this; } /** - * Enables this Account to receive OutboundPayments to linked bank accounts over wire. + * The user agent of the browser from which the Account's representative accepted the + * terms of service. */ - public Builder setWire( - AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire wire) { - this.wire = wire; + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; return this; } } + } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Local { - /** - * 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; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Storer { + /** + * Required. The time when the Account's representative accepted the + * terms of service. Represented as a RFC 3339 date & time UTC value in millisecond + * precision, for example: 2022-09-18T13:22:18.123Z. + */ + @SerializedName("date") + Instant date; - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; + /** + * 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 Local(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } + /** + * Required. The IP address from which the Account's representative + * accepted the terms of service. + */ + @SerializedName("ip") + String ip; - public static Builder builder() { - return new Builder(); - } + /** + * The user agent of the browser from which the Account's representative accepted the + * terms of service. + */ + @SerializedName("user_agent") + String userAgent; - public static class Builder { - private Map extraParams; + private Storer( + Instant date, Map extraParams, String ip, String userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } - private Boolean requested; + public static Builder builder() { + return new Builder(); + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Local - build() { - return new AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts - .Local(this.extraParams, this.requested); - } + public static class Builder { + private Instant date; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Local#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; - } + private Map extraParams; - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Local#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + private String ip; - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } + private String userAgent; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Attestations.TermsOfService.Storer build() { + return new AccountCreateParams.Identity.Attestations.TermsOfService.Storer( + this.date, this.extraParams, this.ip, this.userAgent); } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Wire { /** - * 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. + * Required. The time when the Account's representative accepted the + * terms of service. Represented as a RFC 3339 date & time UTC value in millisecond + * precision, for example: 2022-09-18T13:22:18.123Z. */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + public Builder setDate(Instant date) { + this.date = date; + return this; + } /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Attestations.TermsOfService.Storer#extraParams} for the + * field documentation. */ - @SerializedName("requested") - Boolean requested; - - private Wire(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire - build() { - return new AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts - .Wire(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Cards { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. There - * can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private Cards(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Recipient.Capabilities.Cards build() { - return new AccountCreateParams.Configuration.Recipient.Capabilities.Cards( - this.extraParams, this.requested); + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; } /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.Cards#extraParams} for the + * AccountCreateParams.Identity.Attestations.TermsOfService.Storer#extraParams} for the * field documentation. */ - public Builder putExtraParam(String key, Object value) { + public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } - this.extraParams.put(key, value); + this.extraParams.putAll(map); return this; } /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.Cards#extraParams} for the - * field documentation. + * Required. The IP address from which the Account's representative + * accepted the terms of service. */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); + public Builder setIp(String ip) { + this.ip = ip; return this; } /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. + * The user agent of the browser from which the Account's representative accepted the + * terms of service. */ - public Builder setRequested(Boolean requested) { - this.requested = requested; + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; return this; } } } + } + } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class StripeBalance { - /** - * 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; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BusinessDetails { + /** The business registration address of the business entity. */ + @SerializedName("address") + Address address; - /** - * Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance). - */ - @SerializedName("stripe_transfers") - StripeTransfers stripeTransfers; + /** The business gross annual revenue for its preceding fiscal year. */ + @SerializedName("annual_revenue") + AnnualRevenue annualRevenue; - private StripeBalance(Map extraParams, StripeTransfers stripeTransfers) { - this.extraParams = extraParams; - this.stripeTransfers = stripeTransfers; - } + /** A document verifying the business. */ + @SerializedName("documents") + Documents documents; - public static Builder builder() { - return new Builder(); - } + /** The name which is used by the business. */ + @SerializedName("doing_business_as") + String doingBusinessAs; - public static class Builder { - private Map extraParams; + /** + * An estimated upper bound of employees, contractors, vendors, etc. currently working for the + * business. + */ + @SerializedName("estimated_worker_count") + Long estimatedWorkerCount; - private StripeTransfers stripeTransfers; + /** + * 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; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance build() { - return new AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance( - this.extraParams, this.stripeTransfers); - } + /** The ID numbers of a business entity. */ + @SerializedName("id_numbers") + List idNumbers; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance#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; - } + /** An estimate of the monthly revenue of the business. */ + @SerializedName("monthly_estimated_revenue") + MonthlyEstimatedRevenue monthlyEstimatedRevenue; - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance#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 phone number of the Business Entity. */ + @SerializedName("phone") + String phone; - /** - * Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance). - */ - public Builder setStripeTransfers( - AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance - .StripeTransfers - stripeTransfers) { - this.stripeTransfers = stripeTransfers; - return this; - } - } + /** + * Internal-only description of the product sold or service provided by the business. It's + * used by Stripe for risk and underwriting purposes. + */ + @SerializedName("product_description") + String productDescription; - @Getter - @EqualsAndHashCode(callSuper = false) - public static class StripeTransfers { - /** - * 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 business legal name. */ + @SerializedName("registered_name") + String registeredName; - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private StripeTransfers(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance - .StripeTransfers - build() { - return new AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance - .StripeTransfers(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers#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 business registration address of the business entity in non latin script. */ + @SerializedName("script_addresses") + ScriptAddresses scriptAddresses; - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - } - } + /** The business legal name in non latin script. */ + @SerializedName("script_names") + ScriptNames scriptNames; - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Storer { - /** Capabilities to request on the Storer Configuration. */ - @SerializedName("capabilities") - Capabilities capabilities; + /** The category identifying the legal structure of the business. */ + @SerializedName("structure") + Structure structure; - /** - * 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 business's publicly available website. */ + @SerializedName("url") + String url; - private Storer(Capabilities capabilities, Map extraParams) { - this.capabilities = capabilities; + private BusinessDetails( + Address address, + AnnualRevenue annualRevenue, + Documents documents, + String doingBusinessAs, + Long estimatedWorkerCount, + Map extraParams, + List idNumbers, + MonthlyEstimatedRevenue monthlyEstimatedRevenue, + String phone, + String productDescription, + String registeredName, + ScriptAddresses scriptAddresses, + ScriptNames scriptNames, + Structure structure, + String url) { + this.address = address; + this.annualRevenue = annualRevenue; + this.documents = documents; + this.doingBusinessAs = doingBusinessAs; + this.estimatedWorkerCount = estimatedWorkerCount; this.extraParams = extraParams; + this.idNumbers = idNumbers; + this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; + this.phone = phone; + this.productDescription = productDescription; + this.registeredName = registeredName; + this.scriptAddresses = scriptAddresses; + this.scriptNames = scriptNames; + this.structure = structure; + this.url = url; } public static Builder builder() { @@ -9209,26 +10633,95 @@ public static Builder builder() { } public static class Builder { - private Capabilities capabilities; + private Address address; + + private AnnualRevenue annualRevenue; + + private Documents documents; + + private String doingBusinessAs; + + private Long estimatedWorkerCount; private Map extraParams; + private List idNumbers; + + private MonthlyEstimatedRevenue monthlyEstimatedRevenue; + + private String phone; + + private String productDescription; + + private String registeredName; + + private ScriptAddresses scriptAddresses; + + private ScriptNames scriptNames; + + private Structure structure; + + private String url; + /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer build() { - return new AccountCreateParams.Configuration.Storer(this.capabilities, this.extraParams); + public AccountCreateParams.Identity.BusinessDetails build() { + return new AccountCreateParams.Identity.BusinessDetails( + this.address, + this.annualRevenue, + this.documents, + this.doingBusinessAs, + this.estimatedWorkerCount, + this.extraParams, + this.idNumbers, + this.monthlyEstimatedRevenue, + this.phone, + this.productDescription, + this.registeredName, + this.scriptAddresses, + this.scriptNames, + this.structure, + this.url); } - /** Capabilities to request on the Storer Configuration. */ - public Builder setCapabilities( - AccountCreateParams.Configuration.Storer.Capabilities capabilities) { - this.capabilities = capabilities; + /** The business registration address of the business entity. */ + public Builder setAddress(AccountCreateParams.Identity.BusinessDetails.Address address) { + this.address = address; + return this; + } + + /** The business gross annual revenue for its preceding fiscal year. */ + public Builder setAnnualRevenue( + AccountCreateParams.Identity.BusinessDetails.AnnualRevenue annualRevenue) { + this.annualRevenue = annualRevenue; + return this; + } + + /** A document verifying the business. */ + public Builder setDocuments( + AccountCreateParams.Identity.BusinessDetails.Documents documents) { + this.documents = documents; + return this; + } + + /** The name which is used by the business. */ + public Builder setDoingBusinessAs(String doingBusinessAs) { + this.doingBusinessAs = doingBusinessAs; + return this; + } + + /** + * An estimated upper bound of employees, contractors, vendors, etc. currently working for + * the business. + */ + public Builder setEstimatedWorkerCount(Long estimatedWorkerCount) { + this.estimatedWorkerCount = estimatedWorkerCount; 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.Configuration.Storer#extraParams} for the field + * map. See {@link AccountCreateParams.Identity.BusinessDetails#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -9242,7 +10735,7 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Storer#extraParams} for the field + * map. See {@link AccountCreateParams.Identity.BusinessDetails#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -9252,12712 +10745,270 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Capabilities { /** - * 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. + * Add an element to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountCreateParams.Identity.BusinessDetails#idNumbers} for the field documentation. */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + public Builder addIdNumber(AccountCreateParams.Identity.BusinessDetails.IdNumber element) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.add(element); + return this; + } - /** Can provision a financial address to credit/debit a FinancialAccount. */ - @SerializedName("financial_addresses") - FinancialAddresses financialAddresses; + /** + * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountCreateParams.Identity.BusinessDetails#idNumbers} for the field documentation. + */ + public Builder addAllIdNumber( + List elements) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.addAll(elements); + return this; + } - /** Can hold storage-type funds on Stripe. */ - @SerializedName("holds_currencies") - HoldsCurrencies holdsCurrencies; + /** An estimate of the monthly revenue of the business. */ + public Builder setMonthlyEstimatedRevenue( + AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue + monthlyEstimatedRevenue) { + this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; + return this; + } - /** Can pull funds from an external source, owned by yourself, to a FinancialAccount. */ - @SerializedName("inbound_transfers") - InboundTransfers inboundTransfers; - - /** Can send funds from a FinancialAccount to a destination owned by someone else. */ - @SerializedName("outbound_payments") - OutboundPayments outboundPayments; - - /** Can send funds from a FinancialAccount to a destination owned by yourself. */ - @SerializedName("outbound_transfers") - OutboundTransfers outboundTransfers; - - private Capabilities( - Map extraParams, - FinancialAddresses financialAddresses, - HoldsCurrencies holdsCurrencies, - InboundTransfers inboundTransfers, - OutboundPayments outboundPayments, - OutboundTransfers outboundTransfers) { - this.extraParams = extraParams; - this.financialAddresses = financialAddresses; - this.holdsCurrencies = holdsCurrencies; - this.inboundTransfers = inboundTransfers; - this.outboundPayments = outboundPayments; - this.outboundTransfers = outboundTransfers; + /** The phone number of the Business Entity. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; } - public static Builder builder() { - return new Builder(); + /** + * Internal-only description of the product sold or service provided by the business. It's + * used by Stripe for risk and underwriting purposes. + */ + public Builder setProductDescription(String productDescription) { + this.productDescription = productDescription; + return this; } - public static class Builder { - private Map extraParams; - - private FinancialAddresses financialAddresses; - - private HoldsCurrencies holdsCurrencies; - - private InboundTransfers inboundTransfers; - - private OutboundPayments outboundPayments; - - private OutboundTransfers outboundTransfers; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities build() { - return new AccountCreateParams.Configuration.Storer.Capabilities( - this.extraParams, - this.financialAddresses, - this.holdsCurrencies, - this.inboundTransfers, - this.outboundPayments, - this.outboundTransfers); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Configuration.Storer.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.Configuration.Storer.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; - } - - /** Can provision a financial address to credit/debit a FinancialAccount. */ - public Builder setFinancialAddresses( - AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses - financialAddresses) { - this.financialAddresses = financialAddresses; - return this; - } - - /** Can hold storage-type funds on Stripe. */ - public Builder setHoldsCurrencies( - AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies - holdsCurrencies) { - this.holdsCurrencies = holdsCurrencies; - return this; - } + /** The business legal name. */ + public Builder setRegisteredName(String registeredName) { + this.registeredName = registeredName; + return this; + } - /** Can pull funds from an external source, owned by yourself, to a FinancialAccount. */ - public Builder setInboundTransfers( - AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers - inboundTransfers) { - this.inboundTransfers = inboundTransfers; - return this; - } + /** The business registration address of the business entity in non latin script. */ + public Builder setScriptAddresses( + AccountCreateParams.Identity.BusinessDetails.ScriptAddresses scriptAddresses) { + this.scriptAddresses = scriptAddresses; + return this; + } - /** Can send funds from a FinancialAccount to a destination owned by someone else. */ - public Builder setOutboundPayments( - AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments - outboundPayments) { - this.outboundPayments = outboundPayments; - return this; - } + /** The business legal name in non latin script. */ + public Builder setScriptNames( + AccountCreateParams.Identity.BusinessDetails.ScriptNames scriptNames) { + this.scriptNames = scriptNames; + return this; + } - /** Can send funds from a FinancialAccount to a destination owned by yourself. */ - public Builder setOutboundTransfers( - AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers - outboundTransfers) { - this.outboundTransfers = outboundTransfers; - return this; - } + /** The category identifying the legal structure of the business. */ + public Builder setStructure( + AccountCreateParams.Identity.BusinessDetails.Structure structure) { + this.structure = structure; + return this; } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FinancialAddresses { - /** - * Can provision a bank-account-like financial address (VBAN) to credit/debit a - * FinancialAccount. - */ - @SerializedName("bank_accounts") - BankAccounts bankAccounts; + /** The business's publicly available website. */ + public Builder setUrl(String url) { + this.url = url; + 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. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; - private FinancialAddresses(BankAccounts bankAccounts, Map extraParams) { - this.bankAccounts = bankAccounts; - this.extraParams = extraParams; - } + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; - public static Builder builder() { - return new Builder(); - } + /** + * 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; - public static class Builder { - private BankAccounts bankAccounts; + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - private Map extraParams; + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses - build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses( - this.bankAccounts, this.extraParams); - } + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; - /** - * Can provision a bank-account-like financial address (VBAN) to credit/debit a - * FinancialAccount. - */ - public Builder setBankAccounts( - AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses - .BankAccounts - bankAccounts) { - this.bankAccounts = bankAccounts; - return this; - } + /** State, county, province, or region. */ + @SerializedName("state") + String state; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses#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; - } + /** Town or cho-me. */ + @SerializedName("town") + String town; - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BankAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private BankAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses - .BankAccounts - build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses - .BankAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class HoldsCurrencies { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Can hold storage-type funds on Stripe in GBP. */ - @SerializedName("gbp") - Gbp gbp; - - private HoldsCurrencies(Map extraParams, Gbp gbp) { - this.extraParams = extraParams; - this.gbp = gbp; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Gbp gbp; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies( - this.extraParams, this.gbp); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Can hold storage-type funds on Stripe in GBP. */ - public Builder setGbp( - AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp gbp) { - this.gbp = gbp; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Gbp { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private Gbp(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp - build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies - .Gbp(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class InboundTransfers { - /** - * Can pull funds from an external bank account owned by yourself to a FinancialAccount. - */ - @SerializedName("bank_accounts") - BankAccounts bankAccounts; - - /** - * 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 InboundTransfers(BankAccounts bankAccounts, Map extraParams) { - this.bankAccounts = bankAccounts; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private BankAccounts bankAccounts; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers( - this.bankAccounts, this.extraParams); - } - - /** - * Can pull funds from an external bank account owned by yourself to a FinancialAccount. - */ - public Builder setBankAccounts( - AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts - bankAccounts) { - this.bankAccounts = bankAccounts; - 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.Configuration.Storer.Capabilities.InboundTransfers#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BankAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private BankAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers - .BankAccounts - build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers - .BankAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class OutboundPayments { - /** Can send funds from a FinancialAccount to a bank account owned by someone else. */ - @SerializedName("bank_accounts") - BankAccounts bankAccounts; - - /** Can send funds from a FinancialAccount to a debit card owned by someone else. */ - @SerializedName("cards") - Cards cards; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Can send funds from a FinancialAccount to another FinancialAccount owned by someone - * else. - */ - @SerializedName("financial_accounts") - FinancialAccounts financialAccounts; - - private OutboundPayments( - BankAccounts bankAccounts, - Cards cards, - Map extraParams, - FinancialAccounts financialAccounts) { - this.bankAccounts = bankAccounts; - this.cards = cards; - this.extraParams = extraParams; - this.financialAccounts = financialAccounts; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private BankAccounts bankAccounts; - - private Cards cards; - - private Map extraParams; - - private FinancialAccounts financialAccounts; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments( - this.bankAccounts, this.cards, this.extraParams, this.financialAccounts); - } - - /** Can send funds from a FinancialAccount to a bank account owned by someone else. */ - public Builder setBankAccounts( - AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts - bankAccounts) { - this.bankAccounts = bankAccounts; - return this; - } - - /** Can send funds from a FinancialAccount to a debit card owned by someone else. */ - public Builder setCards( - AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards - cards) { - this.cards = cards; - 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.Configuration.Storer.Capabilities.OutboundPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Can send funds from a FinancialAccount to another FinancialAccount owned by someone - * else. - */ - public Builder setFinancialAccounts( - AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments - .FinancialAccounts - financialAccounts) { - this.financialAccounts = financialAccounts; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BankAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private BankAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments - .BankAccounts - build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments - .BankAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Cards { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private Cards(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards - build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments - .Cards(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FinancialAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private FinancialAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments - .FinancialAccounts - build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments - .FinancialAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class OutboundTransfers { - /** Can send funds from a FinancialAccount to a bank account owned by yourself. */ - @SerializedName("bank_accounts") - BankAccounts bankAccounts; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. - */ - @SerializedName("financial_accounts") - FinancialAccounts financialAccounts; - - private OutboundTransfers( - BankAccounts bankAccounts, - Map extraParams, - FinancialAccounts financialAccounts) { - this.bankAccounts = bankAccounts; - this.extraParams = extraParams; - this.financialAccounts = financialAccounts; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private BankAccounts bankAccounts; - - private Map extraParams; - - private FinancialAccounts financialAccounts; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers( - this.bankAccounts, this.extraParams, this.financialAccounts); - } - - /** Can send funds from a FinancialAccount to a bank account owned by yourself. */ - public Builder setBankAccounts( - AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts - bankAccounts) { - this.bankAccounts = bankAccounts; - 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.Configuration.Storer.Capabilities.OutboundTransfers#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. - */ - public Builder setFinancialAccounts( - AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers - .FinancialAccounts - financialAccounts) { - this.financialAccounts = financialAccounts; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BankAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private BankAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers - .BankAccounts - build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers - .BankAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FinancialAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private FinancialAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers - .FinancialAccounts - build() { - return new AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers - .FinancialAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. To request a new Capability for an account, pass true. - * There can be a delay before the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Defaults { - /** - * Three-letter ISO currency - * code, in lowercase. Must be a supported - * currency. - */ - @SerializedName("currency") - Currency currency; - - /** - * 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 Account's preferred locales (languages), ordered by preference. */ - @SerializedName("locales") - List locales; - - /** Default responsibilities held by either Stripe or the platform. */ - @SerializedName("responsibilities") - Responsibilities responsibilities; - - private Defaults( - Currency currency, - Map extraParams, - List locales, - Responsibilities responsibilities) { - this.currency = currency; - this.extraParams = extraParams; - this.locales = locales; - this.responsibilities = responsibilities; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Currency currency; - - private Map extraParams; - - private List locales; - - private Responsibilities responsibilities; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Defaults build() { - return new AccountCreateParams.Defaults( - this.currency, this.extraParams, this.locales, this.responsibilities); - } - - /** - * Three-letter ISO currency - * code, in lowercase. Must be a supported - * currency. - */ - public Builder setCurrency(AccountCreateParams.Defaults.Currency currency) { - this.currency = currency; - 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.Defaults#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.Defaults#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 `locales` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * AccountCreateParams.Defaults#locales} for the field documentation. - */ - public Builder addLocale(AccountCreateParams.Defaults.Locale element) { - if (this.locales == null) { - this.locales = new ArrayList<>(); - } - this.locales.add(element); - return this; - } - - /** - * Add all elements to `locales` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * AccountCreateParams.Defaults#locales} for the field documentation. - */ - public Builder addAllLocale(List elements) { - if (this.locales == null) { - this.locales = new ArrayList<>(); - } - this.locales.addAll(elements); - return this; - } - - /** Default responsibilities held by either Stripe or the platform. */ - public Builder setResponsibilities( - AccountCreateParams.Defaults.Responsibilities responsibilities) { - this.responsibilities = responsibilities; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Responsibilities { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. A value indicating the party responsible for collecting fees - * from this account. - */ - @SerializedName("fees_collector") - FeesCollector feesCollector; - - /** - * Required. A value indicating who is responsible for losses when this - * Account can’t pay back negative balances from payments. - */ - @SerializedName("losses_collector") - LossesCollector lossesCollector; - - private Responsibilities( - Map extraParams, - FeesCollector feesCollector, - LossesCollector lossesCollector) { - this.extraParams = extraParams; - this.feesCollector = feesCollector; - this.lossesCollector = lossesCollector; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private FeesCollector feesCollector; - - private LossesCollector lossesCollector; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Defaults.Responsibilities build() { - return new AccountCreateParams.Defaults.Responsibilities( - this.extraParams, this.feesCollector, this.lossesCollector); - } - - /** - * 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.Defaults.Responsibilities#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.Defaults.Responsibilities#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. A value indicating the party responsible for collecting fees - * from this account. - */ - public Builder setFeesCollector( - AccountCreateParams.Defaults.Responsibilities.FeesCollector feesCollector) { - this.feesCollector = feesCollector; - return this; - } - - /** - * Required. A value indicating who is responsible for losses when this - * Account can’t pay back negative balances from payments. - */ - public Builder setLossesCollector( - AccountCreateParams.Defaults.Responsibilities.LossesCollector lossesCollector) { - this.lossesCollector = lossesCollector; - return this; - } - } - - public enum FeesCollector implements ApiRequestParams.EnumParam { - @SerializedName("application") - APPLICATION("application"), - - @SerializedName("stripe") - STRIPE("stripe"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - FeesCollector(String value) { - this.value = value; - } - } - - public enum LossesCollector implements ApiRequestParams.EnumParam { - @SerializedName("application") - APPLICATION("application"), - - @SerializedName("stripe") - STRIPE("stripe"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - LossesCollector(String value) { - this.value = value; - } - } - } - - public enum Currency implements ApiRequestParams.EnumParam { - @SerializedName("aed") - AED("aed"), - - @SerializedName("afn") - AFN("afn"), - - @SerializedName("all") - ALL("all"), - - @SerializedName("amd") - AMD("amd"), - - @SerializedName("ang") - ANG("ang"), - - @SerializedName("aoa") - AOA("aoa"), - - @SerializedName("ars") - ARS("ars"), - - @SerializedName("aud") - AUD("aud"), - - @SerializedName("awg") - AWG("awg"), - - @SerializedName("azn") - AZN("azn"), - - @SerializedName("bam") - BAM("bam"), - - @SerializedName("bbd") - BBD("bbd"), - - @SerializedName("bdt") - BDT("bdt"), - - @SerializedName("bgn") - BGN("bgn"), - - @SerializedName("bhd") - BHD("bhd"), - - @SerializedName("bif") - BIF("bif"), - - @SerializedName("bmd") - BMD("bmd"), - - @SerializedName("bnd") - BND("bnd"), - - @SerializedName("bob") - BOB("bob"), - - @SerializedName("bov") - BOV("bov"), - - @SerializedName("brl") - BRL("brl"), - - @SerializedName("bsd") - BSD("bsd"), - - @SerializedName("btn") - BTN("btn"), - - @SerializedName("bwp") - BWP("bwp"), - - @SerializedName("byn") - BYN("byn"), - - @SerializedName("byr") - BYR("byr"), - - @SerializedName("bzd") - BZD("bzd"), - - @SerializedName("cad") - CAD("cad"), - - @SerializedName("cdf") - CDF("cdf"), - - @SerializedName("che") - CHE("che"), - - @SerializedName("chf") - CHF("chf"), - - @SerializedName("chw") - CHW("chw"), - - @SerializedName("clf") - CLF("clf"), - - @SerializedName("clp") - CLP("clp"), - - @SerializedName("cny") - CNY("cny"), - - @SerializedName("cop") - COP("cop"), - - @SerializedName("cou") - COU("cou"), - - @SerializedName("crc") - CRC("crc"), - - @SerializedName("cuc") - CUC("cuc"), - - @SerializedName("cup") - CUP("cup"), - - @SerializedName("cve") - CVE("cve"), - - @SerializedName("czk") - CZK("czk"), - - @SerializedName("djf") - DJF("djf"), - - @SerializedName("dkk") - DKK("dkk"), - - @SerializedName("dop") - DOP("dop"), - - @SerializedName("dzd") - DZD("dzd"), - - @SerializedName("eek") - EEK("eek"), - - @SerializedName("egp") - EGP("egp"), - - @SerializedName("ern") - ERN("ern"), - - @SerializedName("etb") - ETB("etb"), - - @SerializedName("eur") - EUR("eur"), - - @SerializedName("fjd") - FJD("fjd"), - - @SerializedName("fkp") - FKP("fkp"), - - @SerializedName("gbp") - GBP("gbp"), - - @SerializedName("gel") - GEL("gel"), - - @SerializedName("ghc") - GHC("ghc"), - - @SerializedName("ghs") - GHS("ghs"), - - @SerializedName("gip") - GIP("gip"), - - @SerializedName("gmd") - GMD("gmd"), - - @SerializedName("gnf") - GNF("gnf"), - - @SerializedName("gtq") - GTQ("gtq"), - - @SerializedName("gyd") - GYD("gyd"), - - @SerializedName("hkd") - HKD("hkd"), - - @SerializedName("hnl") - HNL("hnl"), - - @SerializedName("hrk") - HRK("hrk"), - - @SerializedName("htg") - HTG("htg"), - - @SerializedName("huf") - HUF("huf"), - - @SerializedName("idr") - IDR("idr"), - - @SerializedName("ils") - ILS("ils"), - - @SerializedName("inr") - INR("inr"), - - @SerializedName("iqd") - IQD("iqd"), - - @SerializedName("irr") - IRR("irr"), - - @SerializedName("isk") - ISK("isk"), - - @SerializedName("jmd") - JMD("jmd"), - - @SerializedName("jod") - JOD("jod"), - - @SerializedName("jpy") - JPY("jpy"), - - @SerializedName("kes") - KES("kes"), - - @SerializedName("kgs") - KGS("kgs"), - - @SerializedName("khr") - KHR("khr"), - - @SerializedName("kmf") - KMF("kmf"), - - @SerializedName("kpw") - KPW("kpw"), - - @SerializedName("krw") - KRW("krw"), - - @SerializedName("kwd") - KWD("kwd"), - - @SerializedName("kyd") - KYD("kyd"), - - @SerializedName("kzt") - KZT("kzt"), - - @SerializedName("lak") - LAK("lak"), - - @SerializedName("lbp") - LBP("lbp"), - - @SerializedName("lkr") - LKR("lkr"), - - @SerializedName("lrd") - LRD("lrd"), - - @SerializedName("lsl") - LSL("lsl"), - - @SerializedName("ltl") - LTL("ltl"), - - @SerializedName("lvl") - LVL("lvl"), - - @SerializedName("lyd") - LYD("lyd"), - - @SerializedName("mad") - MAD("mad"), - - @SerializedName("mdl") - MDL("mdl"), - - @SerializedName("mga") - MGA("mga"), - - @SerializedName("mkd") - MKD("mkd"), - - @SerializedName("mmk") - MMK("mmk"), - - @SerializedName("mnt") - MNT("mnt"), - - @SerializedName("mop") - MOP("mop"), - - @SerializedName("mro") - MRO("mro"), - - @SerializedName("mru") - MRU("mru"), - - @SerializedName("mur") - MUR("mur"), - - @SerializedName("mvr") - MVR("mvr"), - - @SerializedName("mwk") - MWK("mwk"), - - @SerializedName("mxn") - MXN("mxn"), - - @SerializedName("mxv") - MXV("mxv"), - - @SerializedName("myr") - MYR("myr"), - - @SerializedName("mzn") - MZN("mzn"), - - @SerializedName("nad") - NAD("nad"), - - @SerializedName("ngn") - NGN("ngn"), - - @SerializedName("nio") - NIO("nio"), - - @SerializedName("nok") - NOK("nok"), - - @SerializedName("npr") - NPR("npr"), - - @SerializedName("nzd") - NZD("nzd"), - - @SerializedName("omr") - OMR("omr"), - - @SerializedName("pab") - PAB("pab"), - - @SerializedName("pen") - PEN("pen"), - - @SerializedName("pgk") - PGK("pgk"), - - @SerializedName("php") - PHP("php"), - - @SerializedName("pkr") - PKR("pkr"), - - @SerializedName("pln") - PLN("pln"), - - @SerializedName("pyg") - PYG("pyg"), - - @SerializedName("qar") - QAR("qar"), - - @SerializedName("ron") - RON("ron"), - - @SerializedName("rsd") - RSD("rsd"), - - @SerializedName("rub") - RUB("rub"), - - @SerializedName("rwf") - RWF("rwf"), - - @SerializedName("sar") - SAR("sar"), - - @SerializedName("sbd") - SBD("sbd"), - - @SerializedName("scr") - SCR("scr"), - - @SerializedName("sdg") - SDG("sdg"), - - @SerializedName("sek") - SEK("sek"), - - @SerializedName("sgd") - SGD("sgd"), - - @SerializedName("shp") - SHP("shp"), - - @SerializedName("sle") - SLE("sle"), - - @SerializedName("sll") - SLL("sll"), - - @SerializedName("sos") - SOS("sos"), - - @SerializedName("srd") - SRD("srd"), - - @SerializedName("ssp") - SSP("ssp"), - - @SerializedName("std") - STD("std"), - - @SerializedName("stn") - STN("stn"), - - @SerializedName("svc") - SVC("svc"), - - @SerializedName("syp") - SYP("syp"), - - @SerializedName("szl") - SZL("szl"), - - @SerializedName("thb") - THB("thb"), - - @SerializedName("tjs") - TJS("tjs"), - - @SerializedName("tmt") - TMT("tmt"), - - @SerializedName("tnd") - TND("tnd"), - - @SerializedName("top") - TOP("top"), - - @SerializedName("try") - TRY("try"), - - @SerializedName("ttd") - TTD("ttd"), - - @SerializedName("twd") - TWD("twd"), - - @SerializedName("tzs") - TZS("tzs"), - - @SerializedName("uah") - UAH("uah"), - - @SerializedName("ugx") - UGX("ugx"), - - @SerializedName("usd") - USD("usd"), - - @SerializedName("usdb") - USDB("usdb"), - - @SerializedName("usdc") - USDC("usdc"), - - @SerializedName("usn") - USN("usn"), - - @SerializedName("uyi") - UYI("uyi"), - - @SerializedName("uyu") - UYU("uyu"), - - @SerializedName("uzs") - UZS("uzs"), - - @SerializedName("vef") - VEF("vef"), - - @SerializedName("ves") - VES("ves"), - - @SerializedName("vnd") - VND("vnd"), - - @SerializedName("vuv") - VUV("vuv"), - - @SerializedName("wst") - WST("wst"), - - @SerializedName("xaf") - XAF("xaf"), - - @SerializedName("xcd") - XCD("xcd"), - - @SerializedName("xcg") - XCG("xcg"), - - @SerializedName("xof") - XOF("xof"), - - @SerializedName("xpf") - XPF("xpf"), - - @SerializedName("yer") - YER("yer"), - - @SerializedName("zar") - ZAR("zar"), - - @SerializedName("zmk") - ZMK("zmk"), - - @SerializedName("zmw") - ZMW("zmw"), - - @SerializedName("zwd") - ZWD("zwd"), - - @SerializedName("zwg") - ZWG("zwg"), - - @SerializedName("zwl") - ZWL("zwl"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Currency(String value) { - this.value = value; - } - } - - public enum Locale implements ApiRequestParams.EnumParam { - @SerializedName("ar-SA") - AR_SA("ar-SA"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bg-BG") - BG_BG("bg-BG"), - - @SerializedName("cs") - CS("cs"), - - @SerializedName("cs-CZ") - CS_CZ("cs-CZ"), - - @SerializedName("da") - DA("da"), - - @SerializedName("da-DK") - DA_DK("da-DK"), - - @SerializedName("de") - DE("de"), - - @SerializedName("de-DE") - DE_DE("de-DE"), - - @SerializedName("el") - EL("el"), - - @SerializedName("el-GR") - EL_GR("el-GR"), - - @SerializedName("en") - EN("en"), - - @SerializedName("en-AU") - EN_AU("en-AU"), - - @SerializedName("en-CA") - EN_CA("en-CA"), - - @SerializedName("en-GB") - EN_GB("en-GB"), - - @SerializedName("en-IE") - EN_IE("en-IE"), - - @SerializedName("en-IN") - EN_IN("en-IN"), - - @SerializedName("en-NZ") - EN_NZ("en-NZ"), - - @SerializedName("en-SG") - EN_SG("en-SG"), - - @SerializedName("en-US") - EN_US("en-US"), - - @SerializedName("es") - ES("es"), - - @SerializedName("es-419") - ES_419("es-419"), - - @SerializedName("es-ES") - ES_ES("es-ES"), - - @SerializedName("et") - ET("et"), - - @SerializedName("et-EE") - ET_EE("et-EE"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fil") - FIL("fil"), - - @SerializedName("fil-PH") - FIL_PH("fil-PH"), - - @SerializedName("fi-FI") - FI_FI("fi-FI"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("fr-CA") - FR_CA("fr-CA"), - - @SerializedName("fr-FR") - FR_FR("fr-FR"), - - @SerializedName("he-IL") - HE_IL("he-IL"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("hr-HR") - HR_HR("hr-HR"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("hu-HU") - HU_HU("hu-HU"), - - @SerializedName("id") - ID("id"), - - @SerializedName("id-ID") - ID_ID("id-ID"), - - @SerializedName("it") - IT("it"), - - @SerializedName("it-IT") - IT_IT("it-IT"), - - @SerializedName("ja") - JA("ja"), - - @SerializedName("ja-JP") - JA_JP("ja-JP"), - - @SerializedName("ko") - KO("ko"), - - @SerializedName("ko-KR") - KO_KR("ko-KR"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lt-LT") - LT_LT("lt-LT"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("lv-LV") - LV_LV("lv-LV"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("ms-MY") - MS_MY("ms-MY"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mt-MT") - MT_MT("mt-MT"), - - @SerializedName("nb") - NB("nb"), - - @SerializedName("nb-NO") - NB_NO("nb-NO"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("nl-NL") - NL_NL("nl-NL"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pl-PL") - PL_PL("pl-PL"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pt-BR") - PT_BR("pt-BR"), - - @SerializedName("pt-PT") - PT_PT("pt-PT"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("ro-RO") - RO_RO("ro-RO"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("ru-RU") - RU_RU("ru-RU"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sk-SK") - SK_SK("sk-SK"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sl-SI") - SL_SI("sl-SI"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sv-SE") - SV_SE("sv-SE"), - - @SerializedName("th") - TH("th"), - - @SerializedName("th-TH") - TH_TH("th-TH"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tr-TR") - TR_TR("tr-TR"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vi-VN") - VI_VN("vi-VN"), - - @SerializedName("zh") - ZH("zh"), - - @SerializedName("zh-Hans") - ZH_HANS("zh-Hans"), - - @SerializedName("zh-Hant-HK") - ZH_HANT_HK("zh-Hant-HK"), - - @SerializedName("zh-Hant-TW") - ZH_HANT_TW("zh-Hant-TW"), - - @SerializedName("zh-HK") - ZH_HK("zh-HK"), - - @SerializedName("zh-TW") - ZH_TW("zh-TW"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Locale(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Identity { - /** Attestations from the identity's key people, e.g. owners, executives, directors. */ - @SerializedName("attestations") - Attestations attestations; - - /** Information about the company or business. */ - @SerializedName("business_details") - BusinessDetails businessDetails; - - /** - * 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. - */ - @SerializedName("country") - Country country; - - /** The entity type. */ - @SerializedName("entity_type") - EntityType entityType; - - /** - * 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. */ - @SerializedName("individual") - Individual individual; - - private Identity( - Attestations attestations, - BusinessDetails businessDetails, - Country country, - EntityType entityType, - Map extraParams, - Individual individual) { - this.attestations = attestations; - this.businessDetails = businessDetails; - this.country = country; - this.entityType = entityType; - this.extraParams = extraParams; - this.individual = individual; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Attestations attestations; - - private BusinessDetails businessDetails; - - private Country country; - - private EntityType entityType; - - private Map extraParams; - - private Individual individual; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity build() { - return new AccountCreateParams.Identity( - this.attestations, - this.businessDetails, - this.country, - this.entityType, - this.extraParams, - this.individual); - } - - /** Attestations from the identity's key people, e.g. owners, executives, directors. */ - public Builder setAttestations(AccountCreateParams.Identity.Attestations attestations) { - this.attestations = attestations; - return this; - } - - /** Information about the company or business. */ - public Builder setBusinessDetails( - AccountCreateParams.Identity.BusinessDetails businessDetails) { - this.businessDetails = businessDetails; - 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. - */ - public Builder setCountry(AccountCreateParams.Identity.Country country) { - this.country = country; - return this; - } - - /** The entity type. */ - public Builder setEntityType(AccountCreateParams.Identity.EntityType entityType) { - this.entityType = entityType; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` - * call, and subsequent calls add additional key/value pairs to the original map. See {@link - * AccountCreateParams.Identity#extraParams} for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. - * See {@link AccountCreateParams.Identity#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. */ - public Builder setIndividual(AccountCreateParams.Identity.Individual individual) { - this.individual = individual; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Attestations { - /** - * This hash is used to attest that the directors information provided to Stripe is both - * current and correct. - */ - @SerializedName("directorship_declaration") - DirectorshipDeclaration directorshipDeclaration; - - /** - * 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; - - /** - * This hash is used to attest that the beneficial owner information provided to Stripe is - * both current and correct. - */ - @SerializedName("ownership_declaration") - OwnershipDeclaration ownershipDeclaration; - - /** Attestation that all Persons with a specific Relationship value have been provided. */ - @SerializedName("persons_provided") - PersonsProvided personsProvided; - - /** Attestations of accepted terms of service agreements. */ - @SerializedName("terms_of_service") - TermsOfService termsOfService; - - private Attestations( - DirectorshipDeclaration directorshipDeclaration, - Map extraParams, - OwnershipDeclaration ownershipDeclaration, - PersonsProvided personsProvided, - TermsOfService termsOfService) { - this.directorshipDeclaration = directorshipDeclaration; - this.extraParams = extraParams; - this.ownershipDeclaration = ownershipDeclaration; - this.personsProvided = personsProvided; - this.termsOfService = termsOfService; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private DirectorshipDeclaration directorshipDeclaration; - - private Map extraParams; - - private OwnershipDeclaration ownershipDeclaration; - - private PersonsProvided personsProvided; - - private TermsOfService termsOfService; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Attestations build() { - return new AccountCreateParams.Identity.Attestations( - this.directorshipDeclaration, - this.extraParams, - this.ownershipDeclaration, - this.personsProvided, - this.termsOfService); - } - - /** - * This hash is used to attest that the directors information provided to Stripe is both - * current and correct. - */ - public Builder setDirectorshipDeclaration( - AccountCreateParams.Identity.Attestations.DirectorshipDeclaration - directorshipDeclaration) { - this.directorshipDeclaration = directorshipDeclaration; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Attestations#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Attestations#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * This hash is used to attest that the beneficial owner information provided to Stripe is - * both current and correct. - */ - public Builder setOwnershipDeclaration( - AccountCreateParams.Identity.Attestations.OwnershipDeclaration ownershipDeclaration) { - this.ownershipDeclaration = ownershipDeclaration; - return this; - } - - /** Attestation that all Persons with a specific Relationship value have been provided. */ - public Builder setPersonsProvided( - AccountCreateParams.Identity.Attestations.PersonsProvided personsProvided) { - this.personsProvided = personsProvided; - return this; - } - - /** Attestations of accepted terms of service agreements. */ - public Builder setTermsOfService( - AccountCreateParams.Identity.Attestations.TermsOfService termsOfService) { - this.termsOfService = termsOfService; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class DirectorshipDeclaration { - /** - * The time marking when the director attestation was made. Represented as a RFC 3339 date - * & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - @SerializedName("date") - Instant date; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** The IP address from which the director attestation was made. */ - @SerializedName("ip") - String ip; - - /** The user agent of the browser from which the director attestation was made. */ - @SerializedName("user_agent") - String userAgent; - - private DirectorshipDeclaration( - Instant date, Map extraParams, String ip, String userAgent) { - this.date = date; - this.extraParams = extraParams; - this.ip = ip; - this.userAgent = userAgent; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Instant date; - - private Map extraParams; - - private String ip; - - private String userAgent; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Attestations.DirectorshipDeclaration build() { - return new AccountCreateParams.Identity.Attestations.DirectorshipDeclaration( - this.date, this.extraParams, this.ip, this.userAgent); - } - - /** - * The time marking when the director attestation was made. Represented as a RFC 3339 date - * & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - public Builder setDate(Instant date) { - this.date = date; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Identity.Attestations.DirectorshipDeclaration#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Identity.Attestations.DirectorshipDeclaration#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** The IP address from which the director attestation was made. */ - public Builder setIp(String ip) { - this.ip = ip; - return this; - } - - /** The user agent of the browser from which the director attestation was made. */ - public Builder setUserAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class OwnershipDeclaration { - /** - * The time marking when the beneficial owner attestation was made. Represented as a RFC - * 3339 date & time UTC value in millisecond precision, for example: - * 2022-09-18T13:22:18.123Z. - */ - @SerializedName("date") - Instant date; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** The IP address from which the beneficial owner attestation was made. */ - @SerializedName("ip") - String ip; - - /** The user agent of the browser from which the beneficial owner attestation was made. */ - @SerializedName("user_agent") - String userAgent; - - private OwnershipDeclaration( - Instant date, Map extraParams, String ip, String userAgent) { - this.date = date; - this.extraParams = extraParams; - this.ip = ip; - this.userAgent = userAgent; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Instant date; - - private Map extraParams; - - private String ip; - - private String userAgent; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Attestations.OwnershipDeclaration build() { - return new AccountCreateParams.Identity.Attestations.OwnershipDeclaration( - this.date, this.extraParams, this.ip, this.userAgent); - } - - /** - * The time marking when the beneficial owner attestation was made. Represented as a RFC - * 3339 date & time UTC value in millisecond precision, for example: - * 2022-09-18T13:22:18.123Z. - */ - public Builder setDate(Instant date) { - this.date = date; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Identity.Attestations.OwnershipDeclaration#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Identity.Attestations.OwnershipDeclaration#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** The IP address from which the beneficial owner attestation was made. */ - public Builder setIp(String ip) { - this.ip = ip; - return this; - } - - /** The user agent of the browser from which the beneficial owner attestation was made. */ - public Builder setUserAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PersonsProvided { - /** - * Whether the company’s directors have been provided. Set this Boolean to true after - * creating all the company’s directors with the Persons API. - */ - @SerializedName("directors") - Boolean directors; - - /** - * Whether the company’s executives have been provided. Set this Boolean to true after - * creating all the company’s executives with the Persons API. - */ - @SerializedName("executives") - Boolean executives; - - /** - * 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; - - /** - * Whether the company’s owners have been provided. Set this Boolean to true after creating - * all the company’s owners with the Persons API. - */ - @SerializedName("owners") - Boolean owners; - - /** Reason for why the company is exempt from providing ownership information. */ - @SerializedName("ownership_exemption_reason") - OwnershipExemptionReason ownershipExemptionReason; - - private PersonsProvided( - Boolean directors, - Boolean executives, - Map extraParams, - Boolean owners, - OwnershipExemptionReason ownershipExemptionReason) { - this.directors = directors; - this.executives = executives; - this.extraParams = extraParams; - this.owners = owners; - this.ownershipExemptionReason = ownershipExemptionReason; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Boolean directors; - - private Boolean executives; - - private Map extraParams; - - private Boolean owners; - - private OwnershipExemptionReason ownershipExemptionReason; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Attestations.PersonsProvided build() { - return new AccountCreateParams.Identity.Attestations.PersonsProvided( - this.directors, - this.executives, - this.extraParams, - this.owners, - this.ownershipExemptionReason); - } - - /** - * Whether the company’s directors have been provided. Set this Boolean to true after - * creating all the company’s directors with the Persons API. - */ - public Builder setDirectors(Boolean directors) { - this.directors = directors; - return this; - } - - /** - * Whether the company’s executives have been provided. Set this Boolean to true after - * creating all the company’s executives with the Persons API. - */ - public Builder setExecutives(Boolean executives) { - this.executives = executives; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Attestations.PersonsProvided#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Attestations.PersonsProvided#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Whether the company’s owners have been provided. Set this Boolean to true after - * creating all the company’s owners with the Persons API. - */ - public Builder setOwners(Boolean owners) { - this.owners = owners; - return this; - } - - /** Reason for why the company is exempt from providing ownership information. */ - public Builder setOwnershipExemptionReason( - AccountCreateParams.Identity.Attestations.PersonsProvided.OwnershipExemptionReason - ownershipExemptionReason) { - this.ownershipExemptionReason = ownershipExemptionReason; - return this; - } - } - - public enum OwnershipExemptionReason implements ApiRequestParams.EnumParam { - @SerializedName("qualified_entity_exceeds_ownership_threshold") - QUALIFIED_ENTITY_EXCEEDS_OWNERSHIP_THRESHOLD( - "qualified_entity_exceeds_ownership_threshold"), - - @SerializedName("qualifies_as_financial_institution") - QUALIFIES_AS_FINANCIAL_INSTITUTION("qualifies_as_financial_institution"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - OwnershipExemptionReason(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class TermsOfService { - /** - * Details on the Account's acceptance of the Stripe Services - * Agreement. - */ - @SerializedName("account") - Account account; - - /** - * 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; - - /** Details on the Account's acceptance of Treasury-specific terms of service. */ - @SerializedName("storer") - Storer storer; - - private TermsOfService(Account account, Map extraParams, Storer storer) { - this.account = account; - this.extraParams = extraParams; - this.storer = storer; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Account account; - - private Map extraParams; - - private Storer storer; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Attestations.TermsOfService build() { - return new AccountCreateParams.Identity.Attestations.TermsOfService( - this.account, this.extraParams, this.storer); - } - - /** - * Details on the Account's acceptance of the Stripe Services - * Agreement. - */ - public Builder setAccount( - AccountCreateParams.Identity.Attestations.TermsOfService.Account account) { - this.account = account; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Attestations.TermsOfService#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Attestations.TermsOfService#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Details on the Account's acceptance of Treasury-specific terms of service. */ - public Builder setStorer( - AccountCreateParams.Identity.Attestations.TermsOfService.Storer storer) { - this.storer = storer; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Account { - /** - * Required. The time when the Account's representative accepted the - * terms of service. Represented as a RFC 3339 date & time UTC value in millisecond - * precision, for example: 2022-09-18T13:22:18.123Z. - */ - @SerializedName("date") - Instant date; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. The IP address from which the Account's representative - * accepted the terms of service. - */ - @SerializedName("ip") - String ip; - - /** - * The user agent of the browser from which the Account's representative accepted the - * terms of service. - */ - @SerializedName("user_agent") - String userAgent; - - private Account( - Instant date, Map extraParams, String ip, String userAgent) { - this.date = date; - this.extraParams = extraParams; - this.ip = ip; - this.userAgent = userAgent; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Instant date; - - private Map extraParams; - - private String ip; - - private String userAgent; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Attestations.TermsOfService.Account build() { - return new AccountCreateParams.Identity.Attestations.TermsOfService.Account( - this.date, this.extraParams, this.ip, this.userAgent); - } - - /** - * Required. The time when the Account's representative accepted the - * terms of service. Represented as a RFC 3339 date & time UTC value in millisecond - * precision, for example: 2022-09-18T13:22:18.123Z. - */ - public Builder setDate(Instant date) { - this.date = date; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Attestations.TermsOfService.Account#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Attestations.TermsOfService.Account#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. The IP address from which the Account's representative - * accepted the terms of service. - */ - public Builder setIp(String ip) { - this.ip = ip; - return this; - } - - /** - * The user agent of the browser from which the Account's representative accepted the - * terms of service. - */ - public Builder setUserAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Storer { - /** - * Required. The time when the Account's representative accepted the - * terms of service. Represented as a RFC 3339 date & time UTC value in millisecond - * precision, for example: 2022-09-18T13:22:18.123Z. - */ - @SerializedName("date") - Instant date; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. The IP address from which the Account's representative - * accepted the terms of service. - */ - @SerializedName("ip") - String ip; - - /** - * The user agent of the browser from which the Account's representative accepted the - * terms of service. - */ - @SerializedName("user_agent") - String userAgent; - - private Storer( - Instant date, Map extraParams, String ip, String userAgent) { - this.date = date; - this.extraParams = extraParams; - this.ip = ip; - this.userAgent = userAgent; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Instant date; - - private Map extraParams; - - private String ip; - - private String userAgent; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Attestations.TermsOfService.Storer build() { - return new AccountCreateParams.Identity.Attestations.TermsOfService.Storer( - this.date, this.extraParams, this.ip, this.userAgent); - } - - /** - * Required. The time when the Account's representative accepted the - * terms of service. Represented as a RFC 3339 date & time UTC value in millisecond - * precision, for example: 2022-09-18T13:22:18.123Z. - */ - public Builder setDate(Instant date) { - this.date = date; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Attestations.TermsOfService.Storer#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Attestations.TermsOfService.Storer#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. The IP address from which the Account's representative - * accepted the terms of service. - */ - public Builder setIp(String ip) { - this.ip = ip; - return this; - } - - /** - * The user agent of the browser from which the Account's representative accepted the - * terms of service. - */ - public Builder setUserAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BusinessDetails { - /** The business registration address of the business entity. */ - @SerializedName("address") - Address address; - - /** The business gross annual revenue for its preceding fiscal year. */ - @SerializedName("annual_revenue") - AnnualRevenue annualRevenue; - - /** A document verifying the business. */ - @SerializedName("documents") - Documents documents; - - /** The name which is used by the business. */ - @SerializedName("doing_business_as") - String doingBusinessAs; - - /** - * An estimated upper bound of employees, contractors, vendors, etc. currently working for the - * business. - */ - @SerializedName("estimated_worker_count") - Integer estimatedWorkerCount; - - /** - * 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 ID numbers of a business entity. */ - @SerializedName("id_numbers") - List idNumbers; - - /** An estimate of the monthly revenue of the business. */ - @SerializedName("monthly_estimated_revenue") - MonthlyEstimatedRevenue monthlyEstimatedRevenue; - - /** The phone number of the Business Entity. */ - @SerializedName("phone") - String phone; - - /** - * Internal-only description of the product sold or service provided by the business. It's - * used by Stripe for risk and underwriting purposes. - */ - @SerializedName("product_description") - String productDescription; - - /** The business legal name. */ - @SerializedName("registered_name") - String registeredName; - - /** The business registration address of the business entity in non latin script. */ - @SerializedName("script_addresses") - ScriptAddresses scriptAddresses; - - /** The business legal name in non latin script. */ - @SerializedName("script_names") - ScriptNames scriptNames; - - /** The category identifying the legal structure of the business. */ - @SerializedName("structure") - Structure structure; - - /** The business's publicly available website. */ - @SerializedName("url") - String url; - - private BusinessDetails( - Address address, - AnnualRevenue annualRevenue, - Documents documents, - String doingBusinessAs, - Integer estimatedWorkerCount, - Map extraParams, - List idNumbers, - MonthlyEstimatedRevenue monthlyEstimatedRevenue, - String phone, - String productDescription, - String registeredName, - ScriptAddresses scriptAddresses, - ScriptNames scriptNames, - Structure structure, - String url) { - this.address = address; - this.annualRevenue = annualRevenue; - this.documents = documents; - this.doingBusinessAs = doingBusinessAs; - this.estimatedWorkerCount = estimatedWorkerCount; - this.extraParams = extraParams; - this.idNumbers = idNumbers; - this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; - this.phone = phone; - this.productDescription = productDescription; - this.registeredName = registeredName; - this.scriptAddresses = scriptAddresses; - this.scriptNames = scriptNames; - this.structure = structure; - this.url = url; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Address address; - - private AnnualRevenue annualRevenue; - - private Documents documents; - - private String doingBusinessAs; - - private Integer estimatedWorkerCount; - - private Map extraParams; - - private List idNumbers; - - private MonthlyEstimatedRevenue monthlyEstimatedRevenue; - - private String phone; - - private String productDescription; - - private String registeredName; - - private ScriptAddresses scriptAddresses; - - private ScriptNames scriptNames; - - private Structure structure; - - private String url; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails build() { - return new AccountCreateParams.Identity.BusinessDetails( - this.address, - this.annualRevenue, - this.documents, - this.doingBusinessAs, - this.estimatedWorkerCount, - this.extraParams, - this.idNumbers, - this.monthlyEstimatedRevenue, - this.phone, - this.productDescription, - this.registeredName, - this.scriptAddresses, - this.scriptNames, - this.structure, - this.url); - } - - /** The business registration address of the business entity. */ - public Builder setAddress(AccountCreateParams.Identity.BusinessDetails.Address address) { - this.address = address; - return this; - } - - /** The business gross annual revenue for its preceding fiscal year. */ - public Builder setAnnualRevenue( - AccountCreateParams.Identity.BusinessDetails.AnnualRevenue annualRevenue) { - this.annualRevenue = annualRevenue; - return this; - } - - /** A document verifying the business. */ - public Builder setDocuments( - AccountCreateParams.Identity.BusinessDetails.Documents documents) { - this.documents = documents; - return this; - } - - /** The name which is used by the business. */ - public Builder setDoingBusinessAs(String doingBusinessAs) { - this.doingBusinessAs = doingBusinessAs; - return this; - } - - /** - * An estimated upper bound of employees, contractors, vendors, etc. currently working for - * the business. - */ - public Builder setEstimatedWorkerCount(Integer estimatedWorkerCount) { - this.estimatedWorkerCount = estimatedWorkerCount; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.BusinessDetails#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.BusinessDetails#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 `idNumbers` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * AccountCreateParams.Identity.BusinessDetails#idNumbers} for the field documentation. - */ - public Builder addIdNumber(AccountCreateParams.Identity.BusinessDetails.IdNumber element) { - if (this.idNumbers == null) { - this.idNumbers = new ArrayList<>(); - } - this.idNumbers.add(element); - return this; - } - - /** - * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * AccountCreateParams.Identity.BusinessDetails#idNumbers} for the field documentation. - */ - public Builder addAllIdNumber( - List elements) { - if (this.idNumbers == null) { - this.idNumbers = new ArrayList<>(); - } - this.idNumbers.addAll(elements); - return this; - } - - /** An estimate of the monthly revenue of the business. */ - public Builder setMonthlyEstimatedRevenue( - AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue - monthlyEstimatedRevenue) { - this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; - return this; - } - - /** The phone number of the Business Entity. */ - public Builder setPhone(String phone) { - this.phone = phone; - return this; - } - - /** - * Internal-only description of the product sold or service provided by the business. It's - * used by Stripe for risk and underwriting purposes. - */ - public Builder setProductDescription(String productDescription) { - this.productDescription = productDescription; - return this; - } - - /** The business legal name. */ - public Builder setRegisteredName(String registeredName) { - this.registeredName = registeredName; - return this; - } - - /** The business registration address of the business entity in non latin script. */ - public Builder setScriptAddresses( - AccountCreateParams.Identity.BusinessDetails.ScriptAddresses scriptAddresses) { - this.scriptAddresses = scriptAddresses; - return this; - } - - /** The business legal name in non latin script. */ - public Builder setScriptNames( - AccountCreateParams.Identity.BusinessDetails.ScriptNames scriptNames) { - this.scriptNames = scriptNames; - return this; - } - - /** The category identifying the legal structure of the business. */ - public Builder setStructure( - AccountCreateParams.Identity.BusinessDetails.Structure structure) { - this.structure = structure; - return this; - } - - /** The business's publicly available website. */ - public Builder setUrl(String url) { - this.url = url; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Address { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country 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; - - /** Town or cho-me. */ - @SerializedName("town") - String town; - - private Address( - String city, - Country 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 Country 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 AccountCreateParams.Identity.BusinessDetails.Address build() { - return new AccountCreateParams.Identity.BusinessDetails.Address( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry( - AccountCreateParams.Identity.BusinessDetails.Address.Country 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.Identity.BusinessDetails.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.Identity.BusinessDetails.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; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AnnualRevenue { - /** A non-negative integer representing the amount in the smallest currency unit. */ - @SerializedName("amount") - Amount amount; - - /** - * 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 close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for - * the 31st of December, 2023. - */ - @SerializedName("fiscal_year_end") - String fiscalYearEnd; - - private AnnualRevenue( - Amount amount, Map extraParams, String fiscalYearEnd) { - this.amount = amount; - this.extraParams = extraParams; - this.fiscalYearEnd = fiscalYearEnd; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Amount amount; - - private Map extraParams; - - private String fiscalYearEnd; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.AnnualRevenue build() { - return new AccountCreateParams.Identity.BusinessDetails.AnnualRevenue( - this.amount, this.extraParams, this.fiscalYearEnd); - } - - /** A non-negative integer representing the amount in the smallest currency unit. */ - public Builder setAmount(Amount amount) { - this.amount = amount; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.BusinessDetails.AnnualRevenue#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.BusinessDetails.AnnualRevenue#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 close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for - * the 31st of December, 2023. - */ - public Builder setFiscalYearEnd(String fiscalYearEnd) { - this.fiscalYearEnd = fiscalYearEnd; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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 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; - - /** A document verifying the business. */ - @SerializedName("primary_verification") - PrimaryVerification primaryVerification; - - /** One or more documents that demonstrate proof of address. */ - @SerializedName("proof_of_address") - ProofOfAddress proofOfAddress; - - /** - * One or more documents showing the company’s proof of registration with the national - * business registry. - */ - @SerializedName("proof_of_registration") - ProofOfRegistration proofOfRegistration; - - /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ - @SerializedName("proof_of_ultimate_beneficial_ownership") - ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; - - private Documents( - BankAccountOwnershipVerification bankAccountOwnershipVerification, - CompanyLicense companyLicense, - CompanyMemorandumOfAssociation companyMemorandumOfAssociation, - CompanyMinisterialDecree companyMinisterialDecree, - CompanyRegistrationVerification companyRegistrationVerification, - CompanyTaxIdVerification companyTaxIdVerification, - Map extraParams, - PrimaryVerification primaryVerification, - ProofOfAddress proofOfAddress, - ProofOfRegistration proofOfRegistration, - ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership) { - this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; - this.companyLicense = companyLicense; - this.companyMemorandumOfAssociation = companyMemorandumOfAssociation; - this.companyMinisterialDecree = companyMinisterialDecree; - this.companyRegistrationVerification = companyRegistrationVerification; - this.companyTaxIdVerification = companyTaxIdVerification; - this.extraParams = extraParams; - this.primaryVerification = primaryVerification; - this.proofOfAddress = proofOfAddress; - this.proofOfRegistration = proofOfRegistration; - this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership; - } - - 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; - - private PrimaryVerification primaryVerification; - - private ProofOfAddress proofOfAddress; - - private ProofOfRegistration proofOfRegistration; - - private ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents( - this.bankAccountOwnershipVerification, - this.companyLicense, - this.companyMemorandumOfAssociation, - this.companyMinisterialDecree, - this.companyRegistrationVerification, - this.companyTaxIdVerification, - this.extraParams, - this.primaryVerification, - this.proofOfAddress, - this.proofOfRegistration, - this.proofOfUltimateBeneficialOwnership); - } - - /** - * 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 check. - */ - public Builder setBankAccountOwnershipVerification( - AccountCreateParams.Identity.BusinessDetails.Documents - .BankAccountOwnershipVerification - bankAccountOwnershipVerification) { - this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; - return this; - } - - /** One or more documents that demonstrate proof of a company’s license to operate. */ - public Builder setCompanyLicense( - AccountCreateParams.Identity.BusinessDetails.Documents.CompanyLicense - companyLicense) { - this.companyLicense = companyLicense; - return this; - } - - /** One or more documents showing the company’s Memorandum of Association. */ - public Builder setCompanyMemorandumOfAssociation( - AccountCreateParams.Identity.BusinessDetails.Documents.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( - AccountCreateParams.Identity.BusinessDetails.Documents.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( - AccountCreateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification - companyRegistrationVerification) { - this.companyRegistrationVerification = companyRegistrationVerification; - return this; - } - - /** One or more documents that demonstrate proof of a company’s tax ID. */ - public Builder setCompanyTaxIdVerification( - AccountCreateParams.Identity.BusinessDetails.Documents.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.Identity.BusinessDetails.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.Identity.BusinessDetails.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; - } - - /** A document verifying the business. */ - public Builder setPrimaryVerification( - AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification - primaryVerification) { - this.primaryVerification = primaryVerification; - return this; - } - - /** One or more documents that demonstrate proof of address. */ - public Builder setProofOfAddress( - AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress - proofOfAddress) { - this.proofOfAddress = proofOfAddress; - return this; - } - - /** - * One or more documents showing the company’s proof of registration with the national - * business registry. - */ - public Builder setProofOfRegistration( - AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration - proofOfRegistration) { - this.proofOfRegistration = proofOfRegistration; - return this; - } - - /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ - public Builder setProofOfUltimateBeneficialOwnership( - AccountCreateParams.Identity.BusinessDetails.Documents - .ProofOfUltimateBeneficialOwnership - proofOfUltimateBeneficialOwnership) { - this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private BankAccountOwnershipVerification( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents - .BankAccountOwnershipVerification - build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents - .BankAccountOwnershipVerification(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.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.Identity.BusinessDetails.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.Identity.BusinessDetails.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; - } - - /** - * 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.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.BusinessDetails.Documents - .BankAccountOwnershipVerification.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyLicense(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents.CompanyLicense build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents.CompanyLicense( - this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.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.Identity.BusinessDetails.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.Identity.BusinessDetails.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; - } - - /** - * 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.Identity.BusinessDetails.Documents.CompanyLicense#files} for the - * field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.BusinessDetails.Documents.CompanyLicense.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyMemorandumOfAssociation( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents - .CompanyMemorandumOfAssociation - build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents - .CompanyMemorandumOfAssociation(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.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.Identity.BusinessDetails.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.Identity.BusinessDetails.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; - } - - /** - * 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.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.BusinessDetails.Documents - .CompanyMemorandumOfAssociation.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyMinisterialDecree( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree - build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents - .CompanyMinisterialDecree(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.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.Identity.BusinessDetails.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.Identity.BusinessDetails.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; - } - - /** - * 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.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyRegistrationVerification( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents - .CompanyRegistrationVerification - build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents - .CompanyRegistrationVerification(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.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.Identity.BusinessDetails.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.Identity.BusinessDetails.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; - } - - /** - * 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.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.BusinessDetails.Documents - .CompanyRegistrationVerification.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyTaxIdVerification( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification - build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents - .CompanyTaxIdVerification(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.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.Identity.BusinessDetails.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.Identity.BusinessDetails.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; - } - - /** - * 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.Identity.BusinessDetails.Documents.CompanyTaxIdVerification#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PrimaryVerification { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - @SerializedName("front_back") - FrontBack frontBack; - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - @SerializedName("type") - Type type; - - private PrimaryVerification( - Map extraParams, FrontBack frontBack, Type type) { - this.extraParams = extraParams; - this.frontBack = frontBack; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private FrontBack frontBack; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification - build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification( - this.extraParams, this.frontBack, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - public Builder setFrontBack( - AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack - frontBack) { - this.frontBack = frontBack; - return this; - } - - /** - * Required. The format of the verification document. Currently - * supports {@code front_back} only. - */ - public Builder setType( - AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.Type - type) { - this.type = type; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FrontBack { - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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; - - /** - * Required. A file upload token - * representing the front of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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 FrontBack(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 AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification - .FrontBack - build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents - .PrimaryVerification.FrontBack(this.back, this.extraParams, this.front); - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. A file upload token - * representing the front of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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 setFront(String front) { - this.front = front; - return this; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("front_back") - FRONT_BACK("front_back"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ProofOfAddress { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private ProofOfAddress(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress( - this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress#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.Identity.BusinessDetails.Documents.ProofOfAddress#files} for the - * field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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.Identity.BusinessDetails.Documents.ProofOfAddress#files} for the - * field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ProofOfRegistration { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private ProofOfRegistration( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration - build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration( - this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#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.Identity.BusinessDetails.Documents.ProofOfRegistration#files} for - * the field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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.Identity.BusinessDetails.Documents.ProofOfRegistration#files} for - * the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ProofOfUltimateBeneficialOwnership { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private ProofOfUltimateBeneficialOwnership( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.Documents - .ProofOfUltimateBeneficialOwnership - build() { - return new AccountCreateParams.Identity.BusinessDetails.Documents - .ProofOfUltimateBeneficialOwnership(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#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.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#files} - * for the field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.BusinessDetails.Documents - .ProofOfUltimateBeneficialOwnership.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class IdNumber { - /** - * 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 registrar of the ID number (Only valid for DE ID number types). */ - @SerializedName("registrar") - String registrar; - - /** Required. Open Enum. The ID number type of a business entity. */ - @SerializedName("type") - Type type; - - /** Required. The value of the ID number. */ - @SerializedName("value") - String value; - - private IdNumber( - Map extraParams, String registrar, Type type, String value) { - this.extraParams = extraParams; - this.registrar = registrar; - this.type = type; - this.value = value; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private String registrar; - - private Type type; - - private String value; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.IdNumber build() { - return new AccountCreateParams.Identity.BusinessDetails.IdNumber( - this.extraParams, this.registrar, this.type, this.value); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.BusinessDetails.IdNumber#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.BusinessDetails.IdNumber#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 registrar of the ID number (Only valid for DE ID number types). */ - public Builder setRegistrar(String registrar) { - this.registrar = registrar; - return this; - } - - /** Required. Open Enum. The ID number type of a business entity. */ - public Builder setType(AccountCreateParams.Identity.BusinessDetails.IdNumber.Type type) { - this.type = type; - return this; - } - - /** Required. The value of the ID number. */ - public Builder setValue(String value) { - this.value = value; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ae_crn") - AE_CRN("ae_crn"), - - @SerializedName("ae_vat") - AE_VAT("ae_vat"), - - @SerializedName("ao_nif") - AO_NIF("ao_nif"), - - @SerializedName("at_fn") - AT_FN("at_fn"), - - @SerializedName("au_abn") - AU_ABN("au_abn"), - - @SerializedName("au_acn") - AU_ACN("au_acn"), - - @SerializedName("au_in") - AU_IN("au_in"), - - @SerializedName("az_tin") - AZ_TIN("az_tin"), - - @SerializedName("bd_etin") - BD_ETIN("bd_etin"), - - @SerializedName("be_cbe") - BE_CBE("be_cbe"), - - @SerializedName("bg_uic") - BG_UIC("bg_uic"), - - @SerializedName("br_cnpj") - BR_CNPJ("br_cnpj"), - - @SerializedName("ca_cn") - CA_CN("ca_cn"), - - @SerializedName("ca_crarr") - CA_CRARR("ca_crarr"), - - @SerializedName("ca_neq") - CA_NEQ("ca_neq"), - - @SerializedName("ca_rid") - CA_RID("ca_rid"), - - @SerializedName("ch_chid") - CH_CHID("ch_chid"), - - @SerializedName("ch_uid") - CH_UID("ch_uid"), - - @SerializedName("cr_cpj") - CR_CPJ("cr_cpj"), - - @SerializedName("cr_nite") - CR_NITE("cr_nite"), - - @SerializedName("cy_tic") - CY_TIC("cy_tic"), - - @SerializedName("cz_ico") - CZ_ICO("cz_ico"), - - @SerializedName("de_hrn") - DE_HRN("de_hrn"), - - @SerializedName("de_vat") - DE_VAT("de_vat"), - - @SerializedName("dk_cvr") - DK_CVR("dk_cvr"), - - @SerializedName("do_rcn") - DO_RCN("do_rcn"), - - @SerializedName("ee_rk") - EE_RK("ee_rk"), - - @SerializedName("es_cif") - ES_CIF("es_cif"), - - @SerializedName("fi_yt") - FI_YT("fi_yt"), - - @SerializedName("fr_siren") - FR_SIREN("fr_siren"), - - @SerializedName("fr_vat") - FR_VAT("fr_vat"), - - @SerializedName("gb_crn") - GB_CRN("gb_crn"), - - @SerializedName("gi_crn") - GI_CRN("gi_crn"), - - @SerializedName("gr_gemi") - GR_GEMI("gr_gemi"), - - @SerializedName("gt_nit") - GT_NIT("gt_nit"), - - @SerializedName("hk_br") - HK_BR("hk_br"), - - @SerializedName("hk_cr") - HK_CR("hk_cr"), - - @SerializedName("hk_mbs") - HK_MBS("hk_mbs"), - - @SerializedName("hu_cjs") - HU_CJS("hu_cjs"), - - @SerializedName("ie_crn") - IE_CRN("ie_crn"), - - @SerializedName("it_rea") - IT_REA("it_rea"), - - @SerializedName("it_vat") - IT_VAT("it_vat"), - - @SerializedName("jp_cn") - JP_CN("jp_cn"), - - @SerializedName("kz_bin") - KZ_BIN("kz_bin"), - - @SerializedName("li_uid") - LI_UID("li_uid"), - - @SerializedName("lt_ccrn") - LT_CCRN("lt_ccrn"), - - @SerializedName("lu_rcs") - LU_RCS("lu_rcs"), - - @SerializedName("lv_urn") - LV_URN("lv_urn"), - - @SerializedName("mt_crn") - MT_CRN("mt_crn"), - - @SerializedName("mx_rfc") - MX_RFC("mx_rfc"), - - @SerializedName("my_brn") - MY_BRN("my_brn"), - - @SerializedName("my_coid") - MY_COID("my_coid"), - - @SerializedName("my_sst") - MY_SST("my_sst"), - - @SerializedName("mz_nuit") - MZ_NUIT("mz_nuit"), - - @SerializedName("nl_kvk") - NL_KVK("nl_kvk"), - - @SerializedName("no_orgnr") - NO_ORGNR("no_orgnr"), - - @SerializedName("nz_bn") - NZ_BN("nz_bn"), - - @SerializedName("pe_ruc") - PE_RUC("pe_ruc"), - - @SerializedName("pk_ntn") - PK_NTN("pk_ntn"), - - @SerializedName("pl_regon") - PL_REGON("pl_regon"), - - @SerializedName("pt_vat") - PT_VAT("pt_vat"), - - @SerializedName("ro_cui") - RO_CUI("ro_cui"), - - @SerializedName("sa_crn") - SA_CRN("sa_crn"), - - @SerializedName("sa_tin") - SA_TIN("sa_tin"), - - @SerializedName("se_orgnr") - SE_ORGNR("se_orgnr"), - - @SerializedName("sg_uen") - SG_UEN("sg_uen"), - - @SerializedName("si_msp") - SI_MSP("si_msp"), - - @SerializedName("sk_ico") - SK_ICO("sk_ico"), - - @SerializedName("th_crn") - TH_CRN("th_crn"), - - @SerializedName("th_prn") - TH_PRN("th_prn"), - - @SerializedName("th_tin") - TH_TIN("th_tin"), - - @SerializedName("us_ein") - US_EIN("us_ein"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class MonthlyEstimatedRevenue { - /** A non-negative integer representing the amount in the smallest currency unit. */ - @SerializedName("amount") - Amount amount; - - /** - * 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 MonthlyEstimatedRevenue(Amount amount, Map extraParams) { - this.amount = amount; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Amount amount; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue build() { - return new AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue( - this.amount, this.extraParams); - } - - /** A non-negative integer representing the amount in the smallest currency unit. */ - public Builder setAmount(Amount amount) { - this.amount = amount; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ScriptAddresses { - /** - * 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; - - /** Kana Address. */ - @SerializedName("kana") - Kana kana; - - /** Kanji Address. */ - @SerializedName("kanji") - Kanji kanji; - - private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { - this.extraParams = extraParams; - this.kana = kana; - this.kanji = kanji; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Kana kana; - - private Kanji kanji; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.ScriptAddresses build() { - return new AccountCreateParams.Identity.BusinessDetails.ScriptAddresses( - this.extraParams, this.kana, this.kanji); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Identity.BusinessDetails.ScriptAddresses#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountCreateParams.Identity.BusinessDetails.ScriptAddresses#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Kana Address. */ - public Builder setKana( - AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana kana) { - this.kana = kana; - return this; - } - - /** Kanji Address. */ - public Builder setKanji( - AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji kanji) { - this.kanji = kanji; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Kana { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country 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; - - /** Town or cho-me. */ - @SerializedName("town") - String town; - - private Kana( - String city, - Country 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 Country 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 AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana build() { - return new AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry( - AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana.Country 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.Identity.BusinessDetails.ScriptAddresses.Kana#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana#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; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Kanji { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country 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; - - /** Town or cho-me. */ - @SerializedName("town") - String town; - - private Kanji( - String city, - Country 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 Country 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 AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji build() { - return new AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry( - AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji.Country - 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.Identity.BusinessDetails.ScriptAddresses.Kanji#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji#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; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ScriptNames { - /** - * 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; - - /** Kana name. */ - @SerializedName("kana") - Kana kana; - - /** Kanji name. */ - @SerializedName("kanji") - Kanji kanji; - - private ScriptNames(Map extraParams, Kana kana, Kanji kanji) { - this.extraParams = extraParams; - this.kana = kana; - this.kanji = kanji; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Kana kana; - - private Kanji kanji; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.ScriptNames build() { - return new AccountCreateParams.Identity.BusinessDetails.ScriptNames( - this.extraParams, this.kana, this.kanji); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.BusinessDetails.ScriptNames#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.BusinessDetails.ScriptNames#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Kana name. */ - public Builder setKana( - AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana kana) { - this.kana = kana; - return this; - } - - /** Kanji name. */ - public Builder setKanji( - AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji kanji) { - this.kanji = kanji; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Kana { - /** - * 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; - - /** Registered name of the business. */ - @SerializedName("registered_name") - String registeredName; - - private Kana(Map extraParams, String registeredName) { - this.extraParams = extraParams; - this.registeredName = registeredName; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private String registeredName; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana build() { - return new AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana( - this.extraParams, this.registeredName); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Registered name of the business. */ - public Builder setRegisteredName(String registeredName) { - this.registeredName = registeredName; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Kanji { - /** - * 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; - - /** Registered name of the business. */ - @SerializedName("registered_name") - String registeredName; - - private Kanji(Map extraParams, String registeredName) { - this.extraParams = extraParams; - this.registeredName = registeredName; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private String registeredName; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji build() { - return new AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji( - this.extraParams, this.registeredName); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Registered name of the business. */ - public Builder setRegisteredName(String registeredName) { - this.registeredName = registeredName; - return this; - } - } - } - } - - public enum Structure implements ApiRequestParams.EnumParam { - @SerializedName("cooperative") - COOPERATIVE("cooperative"), - - @SerializedName("free_zone_establishment") - FREE_ZONE_ESTABLISHMENT("free_zone_establishment"), - - @SerializedName("free_zone_llc") - FREE_ZONE_LLC("free_zone_llc"), - - @SerializedName("governmental_unit") - GOVERNMENTAL_UNIT("governmental_unit"), - - @SerializedName("government_instrumentality") - GOVERNMENT_INSTRUMENTALITY("government_instrumentality"), - - @SerializedName("incorporated_association") - INCORPORATED_ASSOCIATION("incorporated_association"), - - @SerializedName("incorporated_non_profit") - INCORPORATED_NON_PROFIT("incorporated_non_profit"), - - @SerializedName("incorporated_partnership") - INCORPORATED_PARTNERSHIP("incorporated_partnership"), - - @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_listed_corporation") - PUBLIC_LISTED_CORPORATION("public_listed_corporation"), - - @SerializedName("public_partnership") - PUBLIC_PARTNERSHIP("public_partnership"), - - @SerializedName("registered_charity") - REGISTERED_CHARITY("registered_charity"), - - @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("trust") - TRUST("trust"), - - @SerializedName("unincorporated_association") - UNINCORPORATED_ASSOCIATION("unincorporated_association"), - - @SerializedName("unincorporated_non_profit") - UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"), - - @SerializedName("unincorporated_partnership") - UNINCORPORATED_PARTNERSHIP("unincorporated_partnership"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Structure(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Individual { - /** Additional addresses associated with the individual. */ - @SerializedName("additional_addresses") - List additionalAddresses; - - /** Additional names (e.g. aliases) associated with the individual. */ - @SerializedName("additional_names") - List additionalNames; - - /** The individual's residential address. */ - @SerializedName("address") - Address address; - - /** The individual's date of birth. */ - @SerializedName("date_of_birth") - DateOfBirth dateOfBirth; - - /** Documents that may be submitted to satisfy various informational requests. */ - @SerializedName("documents") - Documents documents; - - /** 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("given_name") - String givenName; - - /** The identification numbers (e.g., SSN) associated with the individual. */ - @SerializedName("id_numbers") - List idNumbers; - - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ - @SerializedName("legal_gender") - LegalGender legalGender; - - /** - * 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. - */ - @SerializedName("metadata") - Map metadata; - - /** - * The countries where the individual is a national. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("nationalities") - List nationalities; - - /** The individual's phone number. */ - @SerializedName("phone") - String phone; - - /** The individual's political exposure. */ - @SerializedName("political_exposure") - PoliticalExposure politicalExposure; - - /** The relationship that this individual has with the account's identity. */ - @SerializedName("relationship") - Relationship relationship; - - /** The script addresses (e.g., non-Latin characters) associated with the individual. */ - @SerializedName("script_addresses") - ScriptAddresses scriptAddresses; - - /** The individuals primary name in non latin script. */ - @SerializedName("script_names") - ScriptNames scriptNames; - - /** The individual's last name. */ - @SerializedName("surname") - String surname; - - private Individual( - List additionalAddresses, - List additionalNames, - Address address, - DateOfBirth dateOfBirth, - Documents documents, - String email, - Map extraParams, - String givenName, - List idNumbers, - LegalGender legalGender, - Map metadata, - List nationalities, - String phone, - PoliticalExposure politicalExposure, - Relationship relationship, - ScriptAddresses scriptAddresses, - ScriptNames scriptNames, - String surname) { - this.additionalAddresses = additionalAddresses; - this.additionalNames = additionalNames; - this.address = address; - this.dateOfBirth = dateOfBirth; - this.documents = documents; - this.email = email; - this.extraParams = extraParams; - this.givenName = givenName; - this.idNumbers = idNumbers; - this.legalGender = legalGender; - this.metadata = metadata; - this.nationalities = nationalities; - this.phone = phone; - this.politicalExposure = politicalExposure; - this.relationship = relationship; - this.scriptAddresses = scriptAddresses; - this.scriptNames = scriptNames; - this.surname = surname; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private List additionalAddresses; - - private List additionalNames; - - private Address address; - - private DateOfBirth dateOfBirth; - - private Documents documents; - - private String email; - - private Map extraParams; - - private String givenName; - - private List idNumbers; - - private LegalGender legalGender; - - private Map metadata; - - private List nationalities; - - private String phone; - - private PoliticalExposure politicalExposure; - - private Relationship relationship; - - private ScriptAddresses scriptAddresses; - - private ScriptNames scriptNames; - - private String surname; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual build() { - return new AccountCreateParams.Identity.Individual( - this.additionalAddresses, - this.additionalNames, - this.address, - this.dateOfBirth, - this.documents, - this.email, - this.extraParams, - this.givenName, - this.idNumbers, - this.legalGender, - this.metadata, - this.nationalities, - this.phone, - this.politicalExposure, - this.relationship, - this.scriptAddresses, - this.scriptNames, - this.surname); - } - - /** - * Add an element to `additionalAddresses` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. - * See {@link AccountCreateParams.Identity.Individual#additionalAddresses} for the field - * documentation. - */ - public Builder addAdditionalAddress( - AccountCreateParams.Identity.Individual.AdditionalAddress element) { - if (this.additionalAddresses == null) { - this.additionalAddresses = new ArrayList<>(); - } - this.additionalAddresses.add(element); - return this; - } - - /** - * Add all elements to `additionalAddresses` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. - * See {@link AccountCreateParams.Identity.Individual#additionalAddresses} for the field - * documentation. - */ - public Builder addAllAdditionalAddress( - List elements) { - if (this.additionalAddresses == null) { - this.additionalAddresses = new ArrayList<>(); - } - this.additionalAddresses.addAll(elements); - return this; - } - - /** - * Add an element to `additionalNames` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. - * See {@link AccountCreateParams.Identity.Individual#additionalNames} for the field - * documentation. - */ - public Builder addAdditionalName( - AccountCreateParams.Identity.Individual.AdditionalName element) { - if (this.additionalNames == null) { - this.additionalNames = new ArrayList<>(); - } - this.additionalNames.add(element); - return this; - } - - /** - * Add all elements to `additionalNames` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. - * See {@link AccountCreateParams.Identity.Individual#additionalNames} for the field - * documentation. - */ - public Builder addAllAdditionalName( - List elements) { - if (this.additionalNames == null) { - this.additionalNames = new ArrayList<>(); - } - this.additionalNames.addAll(elements); - return this; - } - - /** The individual's residential address. */ - public Builder setAddress(AccountCreateParams.Identity.Individual.Address address) { - this.address = address; - return this; - } - - /** The individual's date of birth. */ - public Builder setDateOfBirth( - AccountCreateParams.Identity.Individual.DateOfBirth dateOfBirth) { - this.dateOfBirth = dateOfBirth; - return this; - } - - /** Documents that may be submitted to satisfy various informational requests. */ - public Builder setDocuments(AccountCreateParams.Identity.Individual.Documents documents) { - this.documents = documents; - 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.Identity.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.Identity.Individual#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 individual's first name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** - * Add an element to `idNumbers` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * AccountCreateParams.Identity.Individual#idNumbers} for the field documentation. - */ - public Builder addIdNumber(AccountCreateParams.Identity.Individual.IdNumber element) { - if (this.idNumbers == null) { - this.idNumbers = new ArrayList<>(); - } - this.idNumbers.add(element); - return this; - } - - /** - * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * AccountCreateParams.Identity.Individual#idNumbers} for the field documentation. - */ - public Builder addAllIdNumber( - List elements) { - if (this.idNumbers == null) { - this.idNumbers = new ArrayList<>(); - } - this.idNumbers.addAll(elements); - return this; - } - - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ - public Builder setLegalGender( - AccountCreateParams.Identity.Individual.LegalGender legalGender) { - this.legalGender = legalGender; - 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.Identity.Individual#metadata} for the field documentation. - */ - public Builder putMetadata(String key, String value) { - if (this.metadata == null) { - this.metadata = new HashMap<>(); - } - 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.Identity.Individual#metadata} for the field - * documentation. - */ - public Builder putAllMetadata(Map map) { - if (this.metadata == null) { - this.metadata = new HashMap<>(); - } - this.metadata.putAll(map); - return this; - } - - /** - * Add an element to `nationalities` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * AccountCreateParams.Identity.Individual#nationalities} for the field documentation. - */ - public Builder addNationality(AccountCreateParams.Identity.Individual.Nationality element) { - if (this.nationalities == null) { - this.nationalities = new ArrayList<>(); - } - this.nationalities.add(element); - return this; - } - - /** - * Add all elements to `nationalities` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. - * See {@link AccountCreateParams.Identity.Individual#nationalities} for the field - * documentation. - */ - public Builder addAllNationality( - List elements) { - if (this.nationalities == null) { - this.nationalities = new ArrayList<>(); - } - this.nationalities.addAll(elements); - return this; - } - - /** The individual's phone number. */ - public Builder setPhone(String phone) { - this.phone = phone; - return this; - } - - /** The individual's political exposure. */ - public Builder setPoliticalExposure( - AccountCreateParams.Identity.Individual.PoliticalExposure politicalExposure) { - this.politicalExposure = politicalExposure; - return this; - } - - /** The relationship that this individual has with the account's identity. */ - public Builder setRelationship( - AccountCreateParams.Identity.Individual.Relationship relationship) { - this.relationship = relationship; - return this; - } - - /** The script addresses (e.g., non-Latin characters) associated with the individual. */ - public Builder setScriptAddresses( - AccountCreateParams.Identity.Individual.ScriptAddresses scriptAddresses) { - this.scriptAddresses = scriptAddresses; - return this; - } - - /** The individuals primary name in non latin script. */ - public Builder setScriptNames( - AccountCreateParams.Identity.Individual.ScriptNames scriptNames) { - this.scriptNames = scriptNames; - return this; - } - - /** The individual's last name. */ - public Builder setSurname(String surname) { - this.surname = surname; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AdditionalAddress { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country 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; - - /** Required. Purpose of additional address. */ - @SerializedName("purpose") - Purpose purpose; - - /** State, county, province, or region. */ - @SerializedName("state") - String state; - - /** Town or cho-me. */ - @SerializedName("town") - String town; - - private AdditionalAddress( - String city, - Country country, - Map extraParams, - String line1, - String line2, - String postalCode, - Purpose purpose, - String state, - String town) { - this.city = city; - this.country = country; - this.extraParams = extraParams; - this.line1 = line1; - this.line2 = line2; - this.postalCode = postalCode; - this.purpose = purpose; - this.state = state; - this.town = town; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private String city; - - private Country country; - - private Map extraParams; - - private String line1; - - private String line2; - - private String postalCode; - - private Purpose purpose; - - private String state; - - private String town; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.AdditionalAddress build() { - return new AccountCreateParams.Identity.Individual.AdditionalAddress( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.purpose, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry( - AccountCreateParams.Identity.Individual.AdditionalAddress.Country 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.Identity.Individual.AdditionalAddress#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.AdditionalAddress#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; - } - - /** Required. Purpose of additional address. */ - public Builder setPurpose( - AccountCreateParams.Identity.Individual.AdditionalAddress.Purpose purpose) { - this.purpose = purpose; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - - public enum Purpose implements ApiRequestParams.EnumParam { - @SerializedName("registered") - REGISTERED("registered"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Purpose(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AdditionalName { - /** - * 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 person's full name. */ - @SerializedName("full_name") - String fullName; - - /** The person's first or given name. */ - @SerializedName("given_name") - String givenName; - - /** Required. The purpose or type of the additional name. */ - @SerializedName("purpose") - Purpose purpose; - - /** The person's last or family name. */ - @SerializedName("surname") - String surname; - - private AdditionalName( - Map extraParams, - String fullName, - String givenName, - Purpose purpose, - String surname) { - this.extraParams = extraParams; - this.fullName = fullName; - this.givenName = givenName; - this.purpose = purpose; - this.surname = surname; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private String fullName; - - private String givenName; - - private Purpose purpose; - - private String surname; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.AdditionalName build() { - return new AccountCreateParams.Identity.Individual.AdditionalName( - this.extraParams, this.fullName, this.givenName, this.purpose, this.surname); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.AdditionalName#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.AdditionalName#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 person's full name. */ - public Builder setFullName(String fullName) { - this.fullName = fullName; - return this; - } - - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** Required. The purpose or type of the additional name. */ - public Builder setPurpose( - AccountCreateParams.Identity.Individual.AdditionalName.Purpose purpose) { - this.purpose = purpose; - return this; - } - - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; - return this; - } - } - - public enum Purpose implements ApiRequestParams.EnumParam { - @SerializedName("alias") - ALIAS("alias"), - - @SerializedName("maiden") - MAIDEN("maiden"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Purpose(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Address { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country 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; - - /** Town or cho-me. */ - @SerializedName("town") - String town; - - private Address( - String city, - Country 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 Country 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 AccountCreateParams.Identity.Individual.Address build() { - return new AccountCreateParams.Identity.Individual.Address( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry( - AccountCreateParams.Identity.Individual.Address.Country 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.Identity.Individual.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.Identity.Individual.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; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class DateOfBirth { - /** Required. The day of birth. */ - @SerializedName("day") - Integer day; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Required. The month of birth. */ - @SerializedName("month") - Integer month; - - /** Required. The year of birth. */ - @SerializedName("year") - Integer year; - - private DateOfBirth( - Integer day, Map extraParams, Integer month, Integer year) { - this.day = day; - this.extraParams = extraParams; - this.month = month; - this.year = year; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Integer day; - - private Map extraParams; - - private Integer month; - - private Integer year; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.DateOfBirth build() { - return new AccountCreateParams.Identity.Individual.DateOfBirth( - this.day, this.extraParams, this.month, this.year); - } - - /** Required. The day of birth. */ - public Builder setDay(Integer day) { - this.day = day; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.DateOfBirth#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.DateOfBirth#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Required. The month of birth. */ - public Builder setMonth(Integer month) { - this.month = month; - return this; - } - - /** Required. The year of birth. */ - public Builder setYear(Integer year) { - this.year = year; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Documents { - /** - * One or more documents that demonstrate proof that this person is authorized to represent - * the company. - */ - @SerializedName("company_authorization") - CompanyAuthorization companyAuthorization; - - /** - * 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 documents showing the person’s passport page with photo and personal data. - */ - @SerializedName("passport") - Passport passport; - - /** - * An identifying document showing the person's name, either a passport or local ID card. - */ - @SerializedName("primary_verification") - PrimaryVerification primaryVerification; - - /** - * A document showing address, either a passport, local ID card, or utility bill from a - * well-known utility company. - */ - @SerializedName("secondary_verification") - SecondaryVerification secondaryVerification; - - /** - * One or more documents showing the person’s visa required for living in the country where - * they are residing. - */ - @SerializedName("visa") - Visa visa; - - private Documents( - CompanyAuthorization companyAuthorization, - Map extraParams, - Passport passport, - PrimaryVerification primaryVerification, - SecondaryVerification secondaryVerification, - Visa visa) { - this.companyAuthorization = companyAuthorization; - this.extraParams = extraParams; - this.passport = passport; - this.primaryVerification = primaryVerification; - this.secondaryVerification = secondaryVerification; - this.visa = visa; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private CompanyAuthorization companyAuthorization; - - private Map extraParams; - - private Passport passport; - - private PrimaryVerification primaryVerification; - - private SecondaryVerification secondaryVerification; - - private Visa visa; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.Documents build() { - return new AccountCreateParams.Identity.Individual.Documents( - this.companyAuthorization, - this.extraParams, - this.passport, - this.primaryVerification, - this.secondaryVerification, - this.visa); - } - - /** - * One or more documents that demonstrate proof that this person is authorized to - * represent the company. - */ - public Builder setCompanyAuthorization( - AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization - companyAuthorization) { - this.companyAuthorization = companyAuthorization; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.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.Identity.Individual.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; - } - - /** - * One or more documents showing the person’s passport page with photo and personal data. - */ - public Builder setPassport( - AccountCreateParams.Identity.Individual.Documents.Passport passport) { - this.passport = passport; - return this; - } - - /** - * An identifying document showing the person's name, either a passport or local ID card. - */ - public Builder setPrimaryVerification( - AccountCreateParams.Identity.Individual.Documents.PrimaryVerification - primaryVerification) { - this.primaryVerification = primaryVerification; - return this; - } - - /** - * A document showing address, either a passport, local ID card, or utility bill from a - * well-known utility company. - */ - public Builder setSecondaryVerification( - AccountCreateParams.Identity.Individual.Documents.SecondaryVerification - secondaryVerification) { - this.secondaryVerification = secondaryVerification; - return this; - } - - /** - * One or more documents showing the person’s visa required for living in the country - * where they are residing. - */ - public Builder setVisa(AccountCreateParams.Identity.Individual.Documents.Visa visa) { - this.visa = visa; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class CompanyAuthorization { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyAuthorization( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization build() { - return new AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization( - this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization#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.Identity.Individual.Documents.CompanyAuthorization#files} for the - * field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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.Identity.Individual.Documents.CompanyAuthorization#files} for the - * field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Passport { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private Passport(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.Documents.Passport build() { - return new AccountCreateParams.Identity.Individual.Documents.Passport( - this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.Passport#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.Passport#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.Identity.Individual.Documents.Passport#files} for the field - * documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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.Identity.Individual.Documents.Passport#files} for the field - * documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.Individual.Documents.Passport.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PrimaryVerification { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - @SerializedName("front_back") - FrontBack frontBack; - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - @SerializedName("type") - Type type; - - private PrimaryVerification( - Map extraParams, FrontBack frontBack, Type type) { - this.extraParams = extraParams; - this.frontBack = frontBack; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private FrontBack frontBack; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.Documents.PrimaryVerification build() { - return new AccountCreateParams.Identity.Individual.Documents.PrimaryVerification( - this.extraParams, this.frontBack, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.PrimaryVerification#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.PrimaryVerification#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - public Builder setFrontBack( - AccountCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack - frontBack) { - this.frontBack = frontBack; - return this; - } - - /** - * Required. The format of the verification document. Currently - * supports {@code front_back} only. - */ - public Builder setType( - AccountCreateParams.Identity.Individual.Documents.PrimaryVerification.Type type) { - this.type = type; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FrontBack { - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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; - - /** - * Required. A file upload token - * representing the front of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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 FrontBack(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 AccountCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack - build() { - return new AccountCreateParams.Identity.Individual.Documents.PrimaryVerification - .FrontBack(this.back, this.extraParams, this.front); - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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.Identity.Individual.Documents.PrimaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. A file upload token - * representing the front of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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 setFront(String front) { - this.front = front; - return this; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("front_back") - FRONT_BACK("front_back"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class SecondaryVerification { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - @SerializedName("front_back") - FrontBack frontBack; - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - @SerializedName("type") - Type type; - - private SecondaryVerification( - Map extraParams, FrontBack frontBack, Type type) { - this.extraParams = extraParams; - this.frontBack = frontBack; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private FrontBack frontBack; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.Documents.SecondaryVerification build() { - return new AccountCreateParams.Identity.Individual.Documents.SecondaryVerification( - this.extraParams, this.frontBack, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.SecondaryVerification#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.SecondaryVerification#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - public Builder setFrontBack( - AccountCreateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack - frontBack) { - this.frontBack = frontBack; - return this; - } - - /** - * Required. The format of the verification document. Currently - * supports {@code front_back} only. - */ - public Builder setType( - AccountCreateParams.Identity.Individual.Documents.SecondaryVerification.Type type) { - this.type = type; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FrontBack { - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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; - - /** - * Required. A file upload token - * representing the front of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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 FrontBack(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 AccountCreateParams.Identity.Individual.Documents.SecondaryVerification - .FrontBack - build() { - return new AccountCreateParams.Identity.Individual.Documents.SecondaryVerification - .FrontBack(this.back, this.extraParams, this.front); - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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.Identity.Individual.Documents.SecondaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. A file upload token - * representing the front of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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 setFront(String front) { - this.front = front; - return this; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("front_back") - FRONT_BACK("front_back"); - - @Getter(onMethod_ = {@Override}) - private final String value; + private Address( + 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; + } - Type(String value) { - this.value = value; - } - } + public static Builder builder() { + return new Builder(); } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Visa { - /** - * 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; + public static class Builder { + private String city; - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; + private String country; - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; + private Map extraParams; - private Visa(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } + private String line1; - public static Builder builder() { - return new Builder(); - } + private String line2; - public static class Builder { - private Map extraParams; + private String postalCode; - private List files; + private String state; - private Type type; + private String town; - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.Documents.Visa build() { - return new AccountCreateParams.Identity.Individual.Documents.Visa( - this.extraParams, this.files, this.type); - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Address build() { + return new AccountCreateParams.Identity.BusinessDetails.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.Visa#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; - } + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountCreateParams.Identity.Individual.Documents.Visa#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + 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.Identity.Individual.Documents.Visa#files} for the field - * documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.BusinessDetails.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 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.Identity.Individual.Documents.Visa#files} for the field - * documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.BusinessDetails.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; + } - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountCreateParams.Identity.Individual.Documents.Visa.Type type) { - this.type = type; - return this; - } + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; } - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - Type(String value) { - this.value = value; - } + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class IdNumber { + public static class AnnualRevenue { + /** A non-negative integer representing the amount in the smallest currency unit. */ + @SerializedName("amount") + Amount amount; + /** * 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. @@ -21968,18 +11019,18 @@ public static class IdNumber { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. The ID number type of an individual. */ - @SerializedName("type") - Type type; - - /** Required. The value of the ID number. */ - @SerializedName("value") - String value; + /** + * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + * the 31st of December, 2023. + */ + @SerializedName("fiscal_year_end") + String fiscalYearEnd; - private IdNumber(Map extraParams, Type type, String value) { + private AnnualRevenue( + Amount amount, Map extraParams, String fiscalYearEnd) { + this.amount = amount; this.extraParams = extraParams; - this.type = type; - this.value = value; + this.fiscalYearEnd = fiscalYearEnd; } public static Builder builder() { @@ -21987,23 +11038,29 @@ public static Builder builder() { } public static class Builder { - private Map extraParams; + private Amount amount; - private Type type; + private Map extraParams; - private String value; + private String fiscalYearEnd; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.IdNumber build() { - return new AccountCreateParams.Identity.Individual.IdNumber( - this.extraParams, this.type, this.value); + public AccountCreateParams.Identity.BusinessDetails.AnnualRevenue build() { + return new AccountCreateParams.Identity.BusinessDetails.AnnualRevenue( + this.amount, this.extraParams, this.fiscalYearEnd); + } + + /** A non-negative integer representing the amount in the smallest currency unit. */ + public Builder setAmount(Amount amount) { + this.amount = amount; + return this; } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.IdNumber#extraParams} for the - * field documentation. + * map. See {@link AccountCreateParams.Identity.BusinessDetails.AnnualRevenue#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -22016,8 +11073,8 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.IdNumber#extraParams} for the - * field documentation. + * map. See {@link AccountCreateParams.Identity.BusinessDetails.AnnualRevenue#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -22027,139 +11084,53 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. The ID number type of an individual. */ - public Builder setType(AccountCreateParams.Identity.Individual.IdNumber.Type type) { - this.type = type; - return this; - } - - /** Required. The value of the ID number. */ - public Builder setValue(String value) { - this.value = value; + /** + * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + * the 31st of December, 2023. + */ + public Builder setFiscalYearEnd(String fiscalYearEnd) { + this.fiscalYearEnd = fiscalYearEnd; return this; } } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ae_eid") - AE_EID("ae_eid"), - - @SerializedName("ao_nif") - AO_NIF("ao_nif"), - - @SerializedName("az_tin") - AZ_TIN("az_tin"), - - @SerializedName("bd_brc") - BD_BRC("bd_brc"), - - @SerializedName("bd_etin") - BD_ETIN("bd_etin"), - - @SerializedName("bd_nid") - BD_NID("bd_nid"), - - @SerializedName("br_cpf") - BR_CPF("br_cpf"), - - @SerializedName("cr_cpf") - CR_CPF("cr_cpf"), - - @SerializedName("cr_dimex") - CR_DIMEX("cr_dimex"), - - @SerializedName("cr_nite") - CR_NITE("cr_nite"), - - @SerializedName("de_stn") - DE_STN("de_stn"), - - @SerializedName("do_rcn") - DO_RCN("do_rcn"), - - @SerializedName("gt_nit") - GT_NIT("gt_nit"), - - @SerializedName("hk_id") - HK_ID("hk_id"), - - @SerializedName("kz_iin") - KZ_IIN("kz_iin"), - - @SerializedName("mx_rfc") - MX_RFC("mx_rfc"), - - @SerializedName("my_nric") - MY_NRIC("my_nric"), - - @SerializedName("mz_nuit") - MZ_NUIT("mz_nuit"), - - @SerializedName("nl_bsn") - NL_BSN("nl_bsn"), - - @SerializedName("pe_dni") - PE_DNI("pe_dni"), - - @SerializedName("pk_cnic") - PK_CNIC("pk_cnic"), - - @SerializedName("pk_snic") - PK_SNIC("pk_snic"), - - @SerializedName("sa_tin") - SA_TIN("sa_tin"), - - @SerializedName("sg_fin") - SG_FIN("sg_fin"), - - @SerializedName("sg_nric") - SG_NRIC("sg_nric"), - - @SerializedName("th_lc") - TH_LC("th_lc"), - - @SerializedName("th_pin") - TH_PIN("th_pin"), - - @SerializedName("us_itin") - US_ITIN("us_itin"), - - @SerializedName("us_itin_last_4") - US_ITIN_LAST_4("us_itin_last_4"), - - @SerializedName("us_ssn") - US_SSN("us_ssn"), - - @SerializedName("us_ssn_last_4") - US_SSN_LAST_4("us_ssn_last_4"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Relationship { + public static class Documents { /** - * Whether the person is a director of the account's identity. Directors are typically - * members of the governing board of the company, or responsible for ensuring the company - * meets its regulatory obligations. + * 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 check. */ - @SerializedName("director") - Boolean director; + @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; /** - * Whether the person has significant responsibility to control, manage, or direct the - * organization. + * Certain countries only: One or more documents showing the ministerial decree legalizing + * the company’s establishment. */ - @SerializedName("executive") - Boolean executive; + @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 @@ -22171,31 +11142,48 @@ public static class Relationship { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Whether the person is an owner of the account’s identity. */ - @SerializedName("owner") - Boolean owner; + /** A document verifying the business. */ + @SerializedName("primary_verification") + PrimaryVerification primaryVerification; - /** The percent owned by the person of the account's legal entity. */ - @SerializedName("percent_ownership") - String percentOwnership; + /** One or more documents that demonstrate proof of address. */ + @SerializedName("proof_of_address") + ProofOfAddress proofOfAddress; - /** The person's title (e.g., CEO, Support Engineer). */ - @SerializedName("title") - String title; + /** + * One or more documents showing the company’s proof of registration with the national + * business registry. + */ + @SerializedName("proof_of_registration") + ProofOfRegistration proofOfRegistration; - private Relationship( - Boolean director, - Boolean executive, + /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ + @SerializedName("proof_of_ultimate_beneficial_ownership") + ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; + + private Documents( + BankAccountOwnershipVerification bankAccountOwnershipVerification, + CompanyLicense companyLicense, + CompanyMemorandumOfAssociation companyMemorandumOfAssociation, + CompanyMinisterialDecree companyMinisterialDecree, + CompanyRegistrationVerification companyRegistrationVerification, + CompanyTaxIdVerification companyTaxIdVerification, Map extraParams, - Boolean owner, - String percentOwnership, - String title) { - this.director = director; - this.executive = executive; + PrimaryVerification primaryVerification, + ProofOfAddress proofOfAddress, + ProofOfRegistration proofOfRegistration, + ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership) { + this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; + this.companyLicense = companyLicense; + this.companyMemorandumOfAssociation = companyMemorandumOfAssociation; + this.companyMinisterialDecree = companyMinisterialDecree; + this.companyRegistrationVerification = companyRegistrationVerification; + this.companyTaxIdVerification = companyTaxIdVerification; this.extraParams = extraParams; - this.owner = owner; - this.percentOwnership = percentOwnership; - this.title = title; + this.primaryVerification = primaryVerification; + this.proofOfAddress = proofOfAddress; + this.proofOfRegistration = proofOfRegistration; + this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership; } public static Builder builder() { @@ -22203,52 +11191,107 @@ public static Builder builder() { } public static class Builder { - private Boolean director; + private BankAccountOwnershipVerification bankAccountOwnershipVerification; - private Boolean executive; + private CompanyLicense companyLicense; + + private CompanyMemorandumOfAssociation companyMemorandumOfAssociation; + + private CompanyMinisterialDecree companyMinisterialDecree; + + private CompanyRegistrationVerification companyRegistrationVerification; + + private CompanyTaxIdVerification companyTaxIdVerification; private Map extraParams; - private Boolean owner; + private PrimaryVerification primaryVerification; + + private ProofOfAddress proofOfAddress; + + private ProofOfRegistration proofOfRegistration; + + private ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Documents build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents( + this.bankAccountOwnershipVerification, + this.companyLicense, + this.companyMemorandumOfAssociation, + this.companyMinisterialDecree, + this.companyRegistrationVerification, + this.companyTaxIdVerification, + this.extraParams, + this.primaryVerification, + this.proofOfAddress, + this.proofOfRegistration, + this.proofOfUltimateBeneficialOwnership); + } - private String percentOwnership; + /** + * 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 check. + */ + public Builder setBankAccountOwnershipVerification( + AccountCreateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification + bankAccountOwnershipVerification) { + this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; + return this; + } - private String title; + /** One or more documents that demonstrate proof of a company’s license to operate. */ + public Builder setCompanyLicense( + AccountCreateParams.Identity.BusinessDetails.Documents.CompanyLicense + companyLicense) { + this.companyLicense = companyLicense; + return this; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.Relationship build() { - return new AccountCreateParams.Identity.Individual.Relationship( - this.director, - this.executive, - this.extraParams, - this.owner, - this.percentOwnership, - this.title); + /** One or more documents showing the company’s Memorandum of Association. */ + public Builder setCompanyMemorandumOfAssociation( + AccountCreateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation + companyMemorandumOfAssociation) { + this.companyMemorandumOfAssociation = companyMemorandumOfAssociation; + return this; } /** - * Whether the person is a director of the account's identity. Directors are typically - * members of the governing board of the company, or responsible for ensuring the company - * meets its regulatory obligations. + * Certain countries only: One or more documents showing the ministerial decree legalizing + * the company’s establishment. */ - public Builder setDirector(Boolean director) { - this.director = director; + public Builder setCompanyMinisterialDecree( + AccountCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree + companyMinisterialDecree) { + this.companyMinisterialDecree = companyMinisterialDecree; return this; } /** - * Whether the person has significant responsibility to control, manage, or direct the - * organization. + * One or more documents that demonstrate proof of a company’s registration with the + * appropriate local authorities. */ - public Builder setExecutive(Boolean executive) { - this.executive = executive; + public Builder setCompanyRegistrationVerification( + AccountCreateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification + companyRegistrationVerification) { + this.companyRegistrationVerification = companyRegistrationVerification; + return this; + } + + /** One or more documents that demonstrate proof of a company’s tax ID. */ + public Builder setCompanyTaxIdVerification( + AccountCreateParams.Identity.BusinessDetails.Documents.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.Identity.Individual.Relationship#extraParams} for + * map. See {@link AccountCreateParams.Identity.BusinessDetails.Documents#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -22262,7 +11305,7 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.Relationship#extraParams} for + * map. See {@link AccountCreateParams.Identity.BusinessDetails.Documents#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -22273,127 +11316,317 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Whether the person is an owner of the account’s identity. */ - public Builder setOwner(Boolean owner) { - this.owner = owner; - return this; - } + /** A document verifying the business. */ + public Builder setPrimaryVerification( + AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification + primaryVerification) { + this.primaryVerification = primaryVerification; + return this; + } + + /** One or more documents that demonstrate proof of address. */ + public Builder setProofOfAddress( + AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress + proofOfAddress) { + this.proofOfAddress = proofOfAddress; + return this; + } + + /** + * One or more documents showing the company’s proof of registration with the national + * business registry. + */ + public Builder setProofOfRegistration( + AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration + proofOfRegistration) { + this.proofOfRegistration = proofOfRegistration; + return this; + } + + /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ + public Builder setProofOfUltimateBeneficialOwnership( + AccountCreateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership + proofOfUltimateBeneficialOwnership) { + this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + 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; + + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; + + private BankAccountOwnershipVerification( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification + build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification(this.extraParams, this.files, this.type); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.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.Identity.BusinessDetails.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.Identity.BusinessDetails.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; + } + + /** + * 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.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification.Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + 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; + + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - /** The percent owned by the person of the account's legal entity. */ - public Builder setPercentOwnership(String percentOwnership) { - this.percentOwnership = percentOwnership; - return this; + private CompanyLicense(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; } - /** The person's title (e.g., CEO, Support Engineer). */ - public Builder setTitle(String title) { - this.title = title; - return this; + public static Builder builder() { + return new Builder(); } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ScriptAddresses { - /** - * 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; - - /** Kana Address. */ - @SerializedName("kana") - Kana kana; - /** Kanji Address. */ - @SerializedName("kanji") - Kanji kanji; + public static class Builder { + private Map extraParams; - private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { - this.extraParams = extraParams; - this.kana = kana; - this.kanji = kanji; - } + private List files; - public static Builder builder() { - return new Builder(); - } + private Type type; - public static class Builder { - private Map extraParams; + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Documents.CompanyLicense build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents.CompanyLicense( + this.extraParams, this.files, this.type); + } - private Kana kana; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.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; + } - private Kanji kanji; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.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; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.ScriptAddresses build() { - return new AccountCreateParams.Identity.Individual.ScriptAddresses( - this.extraParams, this.kana, this.kanji); - } + /** + * 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.Identity.BusinessDetails.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; + } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.ScriptAddresses#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * 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.Identity.BusinessDetails.Documents.CompanyLicense#files} for the + * field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.ScriptAddresses#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.BusinessDetails.Documents.CompanyLicense.Type type) { + this.type = type; + return this; } - this.extraParams.putAll(map); - return this; } - /** Kana Address. */ - public Builder setKana( - AccountCreateParams.Identity.Individual.ScriptAddresses.Kana kana) { - this.kana = kana; - return this; - } + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - /** Kanji Address. */ - public Builder setKanji( - AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji kanji) { - this.kanji = kanji; - return this; + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Kana { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country country; - + 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. @@ -22404,101 +11637,53 @@ public static class Kana { @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; + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - /** Town or cho-me. */ - @SerializedName("town") - String town; + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - private Kana( - String city, - Country country, - Map extraParams, - String line1, - String line2, - String postalCode, - String state, - String town) { - this.city = city; - this.country = country; + private CompanyMemorandumOfAssociation( + Map extraParams, List files, Type type) { 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 Country country; - - private Map extraParams; - - private String line1; + this.files = files; + this.type = type; + } - private String line2; + public static Builder builder() { + return new Builder(); + } - private String postalCode; + public static class Builder { + private Map extraParams; - private String state; + private List files; - private String town; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.ScriptAddresses.Kana build() { - return new AccountCreateParams.Identity.Individual.ScriptAddresses.Kana( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry( - AccountCreateParams.Identity.Individual.ScriptAddresses.Kana.Country country) { - this.country = country; - return this; + public AccountCreateParams.Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation + build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation(this.extraParams, this.files, this.type); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Identity.Individual.ScriptAddresses.Kana#extraParams} for the - * field documentation. + * AccountCreateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -22512,8 +11697,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Identity.Individual.ScriptAddresses.Kana#extraParams} for the - * field documentation. + * AccountCreateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -22523,795 +11708,969 @@ public Builder putAllExtraParam(Map 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; + /** + * 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.Identity.BusinessDetails.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; } - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; + /** + * 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.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); return this; } - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation.Type + type) { + this.type = type; return this; } } - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("mc") - MC("mc"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("md") - MD("md"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("me") - ME("me"), + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - @SerializedName("mf") - MF("mf"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("mg") - MG("mg"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("mh") - MH("mh"), + private CompanyMinisterialDecree( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("mk") - MK("mk"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ml") - ML("ml"), + public static class Builder { + private Map extraParams; - @SerializedName("mm") - MM("mm"), + private List files; - @SerializedName("mn") - MN("mn"), + private Type type; - @SerializedName("mo") - MO("mo"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree + build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents + .CompanyMinisterialDecree(this.extraParams, this.files, this.type); + } - @SerializedName("mp") - MP("mp"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.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; + } - @SerializedName("mq") - MQ("mq"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.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; + } - @SerializedName("mr") - MR("mr"), + /** + * 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.Identity.BusinessDetails.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; + } - @SerializedName("ms") - MS("ms"), + /** + * 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.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("mt") - MT("mt"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree.Type + type) { + this.type = type; + return this; + } + } - @SerializedName("mu") - MU("mu"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("mv") - MV("mv"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("mw") - MW("mw"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("mx") - MX("mx"), + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - @SerializedName("my") - MY("my"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("mz") - MZ("mz"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("na") - NA("na"), + private CompanyRegistrationVerification( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("nc") - NC("nc"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ne") - NE("ne"), + public static class Builder { + private Map extraParams; - @SerializedName("nf") - NF("nf"), + private List files; - @SerializedName("ng") - NG("ng"), + private Type type; - @SerializedName("ni") - NI("ni"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Documents + .CompanyRegistrationVerification + build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents + .CompanyRegistrationVerification(this.extraParams, this.files, this.type); + } - @SerializedName("nl") - NL("nl"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.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; + } - @SerializedName("no") - NO("no"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.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; + } - @SerializedName("np") - NP("np"), + /** + * 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.Identity.BusinessDetails.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; + } - @SerializedName("nr") - NR("nr"), + /** + * 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.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("nu") - NU("nu"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.BusinessDetails.Documents + .CompanyRegistrationVerification.Type + type) { + this.type = type; + return this; + } + } - @SerializedName("nz") - NZ("nz"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("om") - OM("om"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("pa") - PA("pa"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("pe") - PE("pe"), + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - @SerializedName("pf") - PF("pf"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("pg") - PG("pg"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("ph") - PH("ph"), + private CompanyTaxIdVerification( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("pk") - PK("pk"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("pl") - PL("pl"), + public static class Builder { + private Map extraParams; - @SerializedName("pm") - PM("pm"), + private List files; - @SerializedName("pn") - PN("pn"), + private Type type; - @SerializedName("pr") - PR("pr"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification + build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents + .CompanyTaxIdVerification(this.extraParams, this.files, this.type); + } - @SerializedName("ps") - PS("ps"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.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; + } - @SerializedName("pt") - PT("pt"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.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; + } - @SerializedName("pw") - PW("pw"), + /** + * 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.Identity.BusinessDetails.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; + } - @SerializedName("py") - PY("py"), + /** + * 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.Identity.BusinessDetails.Documents.CompanyTaxIdVerification#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("qa") - QA("qa"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification.Type + type) { + this.type = type; + return this; + } + } - @SerializedName("qz") - QZ("qz"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("re") - RE("re"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("ro") - RO("ro"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("rs") - RS("rs"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PrimaryVerification { + /** + * 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; - @SerializedName("ru") - RU("ru"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; - @SerializedName("rw") - RW("rw"), + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; - @SerializedName("sa") - SA("sa"), + private PrimaryVerification( + Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } - @SerializedName("sb") - SB("sb"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("sc") - SC("sc"), + public static class Builder { + private Map extraParams; - @SerializedName("sd") - SD("sd"), + private FrontBack frontBack; - @SerializedName("se") - SE("se"), + private Type type; - @SerializedName("sg") - SG("sg"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification + build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification( + this.extraParams, this.frontBack, this.type); + } - @SerializedName("sh") - SH("sh"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification#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; + } - @SerializedName("si") - SI("si"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sj") - SJ("sj"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack + frontBack) { + this.frontBack = frontBack; + return this; + } - @SerializedName("sk") - SK("sk"), + /** + * Required. The format of the verification document. Currently + * supports {@code front_back} only. + */ + public Builder setType( + AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.Type + type) { + this.type = type; + return this; + } + } - @SerializedName("sl") - SL("sl"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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; - @SerializedName("sm") - SM("sm"), + /** + * 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; - @SerializedName("sn") - SN("sn"), + /** + * Required. A file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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; - @SerializedName("so") - SO("so"), + private FrontBack(String back, Map extraParams, String front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } - @SerializedName("sr") - SR("sr"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ss") - SS("ss"), + public static class Builder { + private String back; - @SerializedName("st") - ST("st"), + private Map extraParams; - @SerializedName("sv") - SV("sv"), + private String front; - @SerializedName("sx") - SX("sx"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification + .FrontBack + build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents + .PrimaryVerification.FrontBack(this.back, this.extraParams, this.front); + } - @SerializedName("sy") - SY("sy"), + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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; + } - @SerializedName("sz") - SZ("sz"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack#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; + } - @SerializedName("tc") - TC("tc"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("td") - TD("td"), + /** + * Required. A file upload token + * representing the front of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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 setFront(String front) { + this.front = front; + return this; + } + } + } - @SerializedName("tf") - TF("tf"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); - @SerializedName("tg") - TG("tg"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("th") - TH("th"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("tj") - TJ("tj"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ProofOfAddress { + /** + * 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; - @SerializedName("tk") - TK("tk"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("tl") - TL("tl"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("tm") - TM("tm"), + private ProofOfAddress(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("tn") - TN("tn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("to") - TO("to"), + public static class Builder { + private Map extraParams; - @SerializedName("tr") - TR("tr"), + private List files; - @SerializedName("tt") - TT("tt"), + private Type type; - @SerializedName("tv") - TV("tv"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress( + this.extraParams, this.files, this.type); + } - @SerializedName("tw") - TW("tw"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress#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; + } - @SerializedName("tz") - TZ("tz"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ua") - UA("ua"), + /** + * 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.Identity.BusinessDetails.Documents.ProofOfAddress#files} for the + * field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("ug") - UG("ug"), + /** + * 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.Identity.BusinessDetails.Documents.ProofOfAddress#files} for the + * field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("um") - UM("um"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress.Type type) { + this.type = type; + return this; + } + } - @SerializedName("us") - US("us"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("uy") - UY("uy"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("uz") - UZ("uz"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("va") - VA("va"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ProofOfRegistration { + /** + * 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; - @SerializedName("vc") - VC("vc"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("ve") - VE("ve"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("vg") - VG("vg"), + private ProofOfRegistration( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("vi") - VI("vi"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("vn") - VN("vn"), + public static class Builder { + private Map extraParams; - @SerializedName("vu") - VU("vu"), + private List files; - @SerializedName("wf") - WF("wf"), + private Type type; - @SerializedName("ws") - WS("ws"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration + build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration( + this.extraParams, this.files, this.type); + } - @SerializedName("xx") - XX("xx"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#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; + } - @SerializedName("ye") - YE("ye"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("yt") - YT("yt"), + /** + * 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.Identity.BusinessDetails.Documents.ProofOfRegistration#files} for + * the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("za") - ZA("za"), + /** + * 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.Identity.BusinessDetails.Documents.ProofOfRegistration#files} for + * the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("zm") - ZM("zm"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration.Type + type) { + this.type = type; + return this; + } + } - @SerializedName("zw") - ZW("zw"); + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); @Getter(onMethod_ = {@Override}) private final String value; - Country(String value) { + Type(String value) { this.value = value; } } @@ -23319,18 +12678,7 @@ public enum Country implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Kanji { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country country; - + public static class ProofOfUltimateBeneficialOwnership { /** * 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. @@ -23341,43 +12689,26 @@ public static class Kanji { @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; + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - /** Town or cho-me. */ - @SerializedName("town") - String town; + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - private Kanji( - String city, - Country country, - Map extraParams, - String line1, - String line2, - String postalCode, - String state, - String town) { - this.city = city; - this.country = country; + private ProofOfUltimateBeneficialOwnership( + Map extraParams, List files, Type type) { this.extraParams = extraParams; - this.line1 = line1; - this.line2 = line2; - this.postalCode = postalCode; - this.state = state; - this.town = town; + this.files = files; + this.type = type; } public static Builder builder() { @@ -23385,57 +12716,26 @@ public static Builder builder() { } public static class Builder { - private String city; - - private Country country; - private Map extraParams; - private String line1; - - private String line2; - - private String postalCode; - - private String state; + private List files; - private String town; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji build() { - return new AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry( - AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji.Country country) { - this.country = country; - return this; + public AccountCreateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership + build() { + return new AccountCreateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership(this.extraParams, this.files, this.type); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji#extraParams} for the - * field documentation. + * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -23449,8 +12749,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji#extraParams} for the - * field documentation. + * AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -23460,796 +12760,894 @@ public Builder putAllExtraParam(Map 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; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; + /** + * 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.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#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 enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), + /** + * 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.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("gg") - GG("gg"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership.Type + type) { + this.type = type; + return this; + } + } - @SerializedName("gh") - GH("gh"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("gi") - GI("gi"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("gl") - GL("gl"), + Type(String value) { + this.value = value; + } + } + } + } - @SerializedName("gm") - GM("gm"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class IdNumber { + /** + * 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; - @SerializedName("gn") - GN("gn"), + /** The registrar of the ID number (Only valid for DE ID number types). */ + @SerializedName("registrar") + String registrar; - @SerializedName("gp") - GP("gp"), + /** Required. Open Enum. The ID number type of a business entity. */ + @SerializedName("type") + Type type; - @SerializedName("gq") - GQ("gq"), + /** Required. The value of the ID number. */ + @SerializedName("value") + String value; - @SerializedName("gr") - GR("gr"), + private IdNumber( + Map extraParams, String registrar, Type type, String value) { + this.extraParams = extraParams; + this.registrar = registrar; + this.type = type; + this.value = value; + } - @SerializedName("gs") - GS("gs"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("gt") - GT("gt"), + public static class Builder { + private Map extraParams; - @SerializedName("gu") - GU("gu"), + private String registrar; - @SerializedName("gw") - GW("gw"), + private Type type; - @SerializedName("gy") - GY("gy"), + private String value; - @SerializedName("hk") - HK("hk"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.IdNumber build() { + return new AccountCreateParams.Identity.BusinessDetails.IdNumber( + this.extraParams, this.registrar, this.type, this.value); + } - @SerializedName("hm") - HM("hm"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.BusinessDetails.IdNumber#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; + } - @SerializedName("hn") - HN("hn"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.BusinessDetails.IdNumber#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("hr") - HR("hr"), + /** The registrar of the ID number (Only valid for DE ID number types). */ + public Builder setRegistrar(String registrar) { + this.registrar = registrar; + return this; + } - @SerializedName("ht") - HT("ht"), + /** Required. Open Enum. The ID number type of a business entity. */ + public Builder setType(AccountCreateParams.Identity.BusinessDetails.IdNumber.Type type) { + this.type = type; + return this; + } - @SerializedName("hu") - HU("hu"), + /** Required. The value of the ID number. */ + public Builder setValue(String value) { + this.value = value; + return this; + } + } - @SerializedName("id") - ID("id"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ae_crn") + AE_CRN("ae_crn"), - @SerializedName("ie") - IE("ie"), + @SerializedName("ae_vat") + AE_VAT("ae_vat"), - @SerializedName("il") - IL("il"), + @SerializedName("ao_nif") + AO_NIF("ao_nif"), - @SerializedName("im") - IM("im"), + @SerializedName("at_fn") + AT_FN("at_fn"), - @SerializedName("in") - IN("in"), + @SerializedName("au_abn") + AU_ABN("au_abn"), - @SerializedName("io") - IO("io"), + @SerializedName("au_acn") + AU_ACN("au_acn"), - @SerializedName("iq") - IQ("iq"), + @SerializedName("au_in") + AU_IN("au_in"), - @SerializedName("ir") - IR("ir"), + @SerializedName("az_tin") + AZ_TIN("az_tin"), - @SerializedName("is") - IS("is"), + @SerializedName("bd_etin") + BD_ETIN("bd_etin"), - @SerializedName("it") - IT("it"), + @SerializedName("be_cbe") + BE_CBE("be_cbe"), - @SerializedName("je") - JE("je"), + @SerializedName("bg_uic") + BG_UIC("bg_uic"), - @SerializedName("jm") - JM("jm"), + @SerializedName("br_cnpj") + BR_CNPJ("br_cnpj"), - @SerializedName("jo") - JO("jo"), + @SerializedName("ca_cn") + CA_CN("ca_cn"), - @SerializedName("jp") - JP("jp"), + @SerializedName("ca_crarr") + CA_CRARR("ca_crarr"), - @SerializedName("ke") - KE("ke"), + @SerializedName("ca_neq") + CA_NEQ("ca_neq"), - @SerializedName("kg") - KG("kg"), + @SerializedName("ca_rid") + CA_RID("ca_rid"), - @SerializedName("kh") - KH("kh"), + @SerializedName("ch_chid") + CH_CHID("ch_chid"), - @SerializedName("ki") - KI("ki"), + @SerializedName("ch_uid") + CH_UID("ch_uid"), - @SerializedName("km") - KM("km"), + @SerializedName("cr_cpj") + CR_CPJ("cr_cpj"), - @SerializedName("kn") - KN("kn"), + @SerializedName("cr_nite") + CR_NITE("cr_nite"), - @SerializedName("kp") - KP("kp"), + @SerializedName("cy_tic") + CY_TIC("cy_tic"), - @SerializedName("kr") - KR("kr"), + @SerializedName("cz_ico") + CZ_ICO("cz_ico"), - @SerializedName("kw") - KW("kw"), + @SerializedName("de_hrn") + DE_HRN("de_hrn"), - @SerializedName("ky") - KY("ky"), + @SerializedName("de_vat") + DE_VAT("de_vat"), - @SerializedName("kz") - KZ("kz"), + @SerializedName("dk_cvr") + DK_CVR("dk_cvr"), - @SerializedName("la") - LA("la"), + @SerializedName("do_rcn") + DO_RCN("do_rcn"), - @SerializedName("lb") - LB("lb"), + @SerializedName("ee_rk") + EE_RK("ee_rk"), - @SerializedName("lc") - LC("lc"), + @SerializedName("es_cif") + ES_CIF("es_cif"), - @SerializedName("li") - LI("li"), + @SerializedName("fi_yt") + FI_YT("fi_yt"), - @SerializedName("lk") - LK("lk"), + @SerializedName("fr_siren") + FR_SIREN("fr_siren"), - @SerializedName("lr") - LR("lr"), + @SerializedName("fr_vat") + FR_VAT("fr_vat"), - @SerializedName("ls") - LS("ls"), + @SerializedName("gb_crn") + GB_CRN("gb_crn"), - @SerializedName("lt") - LT("lt"), + @SerializedName("gi_crn") + GI_CRN("gi_crn"), - @SerializedName("lu") - LU("lu"), + @SerializedName("gr_gemi") + GR_GEMI("gr_gemi"), - @SerializedName("lv") - LV("lv"), + @SerializedName("gt_nit") + GT_NIT("gt_nit"), - @SerializedName("ly") - LY("ly"), + @SerializedName("hk_br") + HK_BR("hk_br"), - @SerializedName("ma") - MA("ma"), + @SerializedName("hk_cr") + HK_CR("hk_cr"), - @SerializedName("mc") - MC("mc"), + @SerializedName("hk_mbs") + HK_MBS("hk_mbs"), - @SerializedName("md") - MD("md"), + @SerializedName("hu_cjs") + HU_CJS("hu_cjs"), - @SerializedName("me") - ME("me"), + @SerializedName("ie_crn") + IE_CRN("ie_crn"), - @SerializedName("mf") - MF("mf"), + @SerializedName("it_rea") + IT_REA("it_rea"), - @SerializedName("mg") - MG("mg"), + @SerializedName("it_vat") + IT_VAT("it_vat"), - @SerializedName("mh") - MH("mh"), + @SerializedName("jp_cn") + JP_CN("jp_cn"), - @SerializedName("mk") - MK("mk"), + @SerializedName("kz_bin") + KZ_BIN("kz_bin"), - @SerializedName("ml") - ML("ml"), + @SerializedName("li_uid") + LI_UID("li_uid"), - @SerializedName("mm") - MM("mm"), + @SerializedName("lt_ccrn") + LT_CCRN("lt_ccrn"), - @SerializedName("mn") - MN("mn"), + @SerializedName("lu_rcs") + LU_RCS("lu_rcs"), - @SerializedName("mo") - MO("mo"), + @SerializedName("lv_urn") + LV_URN("lv_urn"), - @SerializedName("mp") - MP("mp"), + @SerializedName("mt_crn") + MT_CRN("mt_crn"), - @SerializedName("mq") - MQ("mq"), + @SerializedName("mx_rfc") + MX_RFC("mx_rfc"), - @SerializedName("mr") - MR("mr"), + @SerializedName("my_brn") + MY_BRN("my_brn"), - @SerializedName("ms") - MS("ms"), + @SerializedName("my_coid") + MY_COID("my_coid"), - @SerializedName("mt") - MT("mt"), + @SerializedName("my_sst") + MY_SST("my_sst"), - @SerializedName("mu") - MU("mu"), + @SerializedName("mz_nuit") + MZ_NUIT("mz_nuit"), - @SerializedName("mv") - MV("mv"), + @SerializedName("nl_kvk") + NL_KVK("nl_kvk"), - @SerializedName("mw") - MW("mw"), + @SerializedName("no_orgnr") + NO_ORGNR("no_orgnr"), - @SerializedName("mx") - MX("mx"), + @SerializedName("nz_bn") + NZ_BN("nz_bn"), - @SerializedName("my") - MY("my"), + @SerializedName("pe_ruc") + PE_RUC("pe_ruc"), - @SerializedName("mz") - MZ("mz"), + @SerializedName("pk_ntn") + PK_NTN("pk_ntn"), - @SerializedName("na") - NA("na"), + @SerializedName("pl_regon") + PL_REGON("pl_regon"), - @SerializedName("nc") - NC("nc"), + @SerializedName("pt_vat") + PT_VAT("pt_vat"), - @SerializedName("ne") - NE("ne"), + @SerializedName("ro_cui") + RO_CUI("ro_cui"), - @SerializedName("nf") - NF("nf"), + @SerializedName("sa_crn") + SA_CRN("sa_crn"), - @SerializedName("ng") - NG("ng"), + @SerializedName("sa_tin") + SA_TIN("sa_tin"), - @SerializedName("ni") - NI("ni"), + @SerializedName("se_orgnr") + SE_ORGNR("se_orgnr"), - @SerializedName("nl") - NL("nl"), + @SerializedName("sg_uen") + SG_UEN("sg_uen"), - @SerializedName("no") - NO("no"), + @SerializedName("si_msp") + SI_MSP("si_msp"), - @SerializedName("np") - NP("np"), + @SerializedName("sk_ico") + SK_ICO("sk_ico"), - @SerializedName("nr") - NR("nr"), + @SerializedName("th_crn") + TH_CRN("th_crn"), - @SerializedName("nu") - NU("nu"), + @SerializedName("th_prn") + TH_PRN("th_prn"), - @SerializedName("nz") - NZ("nz"), + @SerializedName("th_tin") + TH_TIN("th_tin"), - @SerializedName("om") - OM("om"), + @SerializedName("us_ein") + US_EIN("us_ein"); - @SerializedName("pa") - PA("pa"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("pe") - PE("pe"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("pf") - PF("pf"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class MonthlyEstimatedRevenue { + /** A non-negative integer representing the amount in the smallest currency unit. */ + @SerializedName("amount") + Amount amount; - @SerializedName("pg") - PG("pg"), + /** + * 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; - @SerializedName("ph") - PH("ph"), + private MonthlyEstimatedRevenue(Amount amount, Map extraParams) { + this.amount = amount; + this.extraParams = extraParams; + } - @SerializedName("pk") - PK("pk"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("pl") - PL("pl"), + public static class Builder { + private Amount amount; - @SerializedName("pm") - PM("pm"), + private Map extraParams; - @SerializedName("pn") - PN("pn"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue build() { + return new AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue( + this.amount, this.extraParams); + } - @SerializedName("pr") - PR("pr"), + /** A non-negative integer representing the amount in the smallest currency unit. */ + public Builder setAmount(Amount amount) { + this.amount = amount; + return this; + } - @SerializedName("ps") - PS("ps"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue#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; + } - @SerializedName("pt") - PT("pt"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } - @SerializedName("pw") - PW("pw"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptAddresses { + /** + * 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; - @SerializedName("py") - PY("py"), + /** Kana Address. */ + @SerializedName("kana") + Kana kana; - @SerializedName("qa") - QA("qa"), + /** Kanji Address. */ + @SerializedName("kanji") + Kanji kanji; - @SerializedName("qz") - QZ("qz"), + private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } - @SerializedName("re") - RE("re"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ro") - RO("ro"), + public static class Builder { + private Map extraParams; - @SerializedName("rs") - RS("rs"), + private Kana kana; - @SerializedName("ru") - RU("ru"), + private Kanji kanji; - @SerializedName("rw") - RW("rw"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.ScriptAddresses build() { + return new AccountCreateParams.Identity.BusinessDetails.ScriptAddresses( + this.extraParams, this.kana, this.kanji); + } - @SerializedName("sa") - SA("sa"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Identity.BusinessDetails.ScriptAddresses#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; + } - @SerializedName("sb") - SB("sb"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountCreateParams.Identity.BusinessDetails.ScriptAddresses#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sc") - SC("sc"), + /** Kana Address. */ + public Builder setKana( + AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana kana) { + this.kana = kana; + return this; + } - @SerializedName("sd") - SD("sd"), + /** Kanji Address. */ + public Builder setKanji( + AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji kanji) { + this.kanji = kanji; + return this; + } + } - @SerializedName("se") - SE("se"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; - @SerializedName("sg") - SG("sg"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; - @SerializedName("sh") - SH("sh"), + /** + * 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; - @SerializedName("si") - SI("si"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - @SerializedName("sj") - SJ("sj"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; - @SerializedName("sk") - SK("sk"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; - @SerializedName("sl") - SL("sl"), + /** State, county, province, or region. */ + @SerializedName("state") + String state; - @SerializedName("sm") - SM("sm"), + /** Town or cho-me. */ + @SerializedName("town") + String town; - @SerializedName("sn") - SN("sn"), + private Kana( + 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; + } - @SerializedName("so") - SO("so"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("sr") - SR("sr"), + public static class Builder { + private String city; - @SerializedName("ss") - SS("ss"), + private String country; - @SerializedName("st") - ST("st"), + private Map extraParams; - @SerializedName("sv") - SV("sv"), + private String line1; - @SerializedName("sx") - SX("sx"), + private String line2; - @SerializedName("sy") - SY("sy"), + private String postalCode; - @SerializedName("sz") - SZ("sz"), + private String state; - @SerializedName("tc") - TC("tc"), + private String town; - @SerializedName("td") - TD("td"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana build() { + return new AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("tf") - TF("tf"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("tg") - TG("tg"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("th") - TH("th"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana#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; + } - @SerializedName("tj") - TJ("tj"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("tk") - TK("tk"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("tl") - TL("tl"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("tm") - TM("tm"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("tn") - TN("tn"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("to") - TO("to"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } - @SerializedName("tr") - TR("tr"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; - @SerializedName("tt") - TT("tt"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; - @SerializedName("tv") - TV("tv"), + /** + * 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; - @SerializedName("tw") - TW("tw"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - @SerializedName("tz") - TZ("tz"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; - @SerializedName("ua") - UA("ua"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; - @SerializedName("ug") - UG("ug"), + /** State, county, province, or region. */ + @SerializedName("state") + String state; - @SerializedName("um") - UM("um"), + /** Town or cho-me. */ + @SerializedName("town") + String town; - @SerializedName("us") - US("us"), + private Kanji( + 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; + } - @SerializedName("uy") - UY("uy"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("uz") - UZ("uz"), + public static class Builder { + private String city; - @SerializedName("va") - VA("va"), + private String country; - @SerializedName("vc") - VC("vc"), + private Map extraParams; - @SerializedName("ve") - VE("ve"), + private String line1; - @SerializedName("vg") - VG("vg"), + private String line2; - @SerializedName("vi") - VI("vi"), + private String postalCode; - @SerializedName("vn") - VN("vn"), + private String state; - @SerializedName("vu") - VU("vu"), + private String town; - @SerializedName("wf") - WF("wf"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji build() { + return new AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("ws") - WS("ws"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("xx") - XX("xx"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("ye") - YE("ye"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji#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; + } - @SerializedName("yt") - YT("yt"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("za") - ZA("za"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("zm") - ZM("zm"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("zw") - ZW("zw"); + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - Country(String value) { - this.value = value; + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; } } } @@ -24268,11 +13666,11 @@ public static class ScriptNames { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Persons name in kana script. */ + /** Kana name. */ @SerializedName("kana") Kana kana; - /** Persons name in kanji script. */ + /** Kanji name. */ @SerializedName("kanji") Kanji kanji; @@ -24294,16 +13692,16 @@ public static class Builder { private Kanji kanji; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.ScriptNames build() { - return new AccountCreateParams.Identity.Individual.ScriptNames( + public AccountCreateParams.Identity.BusinessDetails.ScriptNames build() { + return new AccountCreateParams.Identity.BusinessDetails.ScriptNames( this.extraParams, this.kana, this.kanji); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.ScriptNames#extraParams} for - * the field documentation. + * map. See {@link AccountCreateParams.Identity.BusinessDetails.ScriptNames#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -24316,8 +13714,8 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Identity.Individual.ScriptNames#extraParams} for - * the field documentation. + * map. See {@link AccountCreateParams.Identity.BusinessDetails.ScriptNames#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -24327,14 +13725,16 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Persons name in kana script. */ - public Builder setKana(AccountCreateParams.Identity.Individual.ScriptNames.Kana kana) { + /** Kana name. */ + public Builder setKana( + AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana kana) { this.kana = kana; return this; } - /** Persons name in kanji script. */ - public Builder setKanji(AccountCreateParams.Identity.Individual.ScriptNames.Kanji kanji) { + /** Kanji name. */ + public Builder setKanji( + AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji kanji) { this.kanji = kanji; return this; } @@ -24353,18 +13753,13 @@ public static class Kana { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The person's first or given name. */ - @SerializedName("given_name") - String givenName; - - /** The person's last or family name. */ - @SerializedName("surname") - String surname; + /** Registered name of the business. */ + @SerializedName("registered_name") + String registeredName; - private Kana(Map extraParams, String givenName, String surname) { + private Kana(Map extraParams, String registeredName) { this.extraParams = extraParams; - this.givenName = givenName; - this.surname = surname; + this.registeredName = registeredName; } public static Builder builder() { @@ -24374,22 +13769,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private String givenName; - - private String surname; + private String registeredName; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.ScriptNames.Kana build() { - return new AccountCreateParams.Identity.Individual.ScriptNames.Kana( - this.extraParams, this.givenName, this.surname); + public AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana build() { + return new AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana( + this.extraParams, this.registeredName); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Identity.Individual.ScriptNames.Kana#extraParams} for the field - * documentation. + * AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -24403,8 +13796,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Identity.Individual.ScriptNames.Kana#extraParams} for the field - * documentation. + * AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -24414,15 +13807,9 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; + /** Registered name of the business. */ + public Builder setRegisteredName(String registeredName) { + this.registeredName = registeredName; return this; } } @@ -24441,18 +13828,13 @@ public static class Kanji { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The person's first or given name. */ - @SerializedName("given_name") - String givenName; - - /** The person's last or family name. */ - @SerializedName("surname") - String surname; + /** Registered name of the business. */ + @SerializedName("registered_name") + String registeredName; - private Kanji(Map extraParams, String givenName, String surname) { + private Kanji(Map extraParams, String registeredName) { this.extraParams = extraParams; - this.givenName = givenName; - this.surname = surname; + this.registeredName = registeredName; } public static Builder builder() { @@ -24462,22 +13844,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private String givenName; - - private String surname; + private String registeredName; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Identity.Individual.ScriptNames.Kanji build() { - return new AccountCreateParams.Identity.Individual.ScriptNames.Kanji( - this.extraParams, this.givenName, this.surname); + public AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji build() { + return new AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji( + this.extraParams, this.registeredName); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Identity.Individual.ScriptNames.Kanji#extraParams} for the field - * documentation. + * AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -24491,8 +13871,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountCreateParams.Identity.Individual.ScriptNames.Kanji#extraParams} for the field - * documentation. + * AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -24502,1573 +13882,3251 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; + /** Registered name of the business. */ + public Builder setRegisteredName(String registeredName) { + this.registeredName = registeredName; return this; } } } } - public enum LegalGender implements ApiRequestParams.EnumParam { - @SerializedName("female") - FEMALE("female"), - - @SerializedName("male") - MALE("male"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - LegalGender(String value) { - this.value = value; - } - } - - public enum Nationality implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), + public enum Structure implements ApiRequestParams.EnumParam { + @SerializedName("cooperative") + COOPERATIVE("cooperative"), - @SerializedName("ag") - AG("ag"), + @SerializedName("free_zone_establishment") + FREE_ZONE_ESTABLISHMENT("free_zone_establishment"), - @SerializedName("ai") - AI("ai"), + @SerializedName("free_zone_llc") + FREE_ZONE_LLC("free_zone_llc"), - @SerializedName("al") - AL("al"), + @SerializedName("governmental_unit") + GOVERNMENTAL_UNIT("governmental_unit"), - @SerializedName("am") - AM("am"), + @SerializedName("government_instrumentality") + GOVERNMENT_INSTRUMENTALITY("government_instrumentality"), - @SerializedName("ao") - AO("ao"), + @SerializedName("incorporated_association") + INCORPORATED_ASSOCIATION("incorporated_association"), - @SerializedName("aq") - AQ("aq"), + @SerializedName("incorporated_non_profit") + INCORPORATED_NON_PROFIT("incorporated_non_profit"), - @SerializedName("ar") - AR("ar"), + @SerializedName("incorporated_partnership") + INCORPORATED_PARTNERSHIP("incorporated_partnership"), - @SerializedName("as") - AS("as"), + @SerializedName("limited_liability_partnership") + LIMITED_LIABILITY_PARTNERSHIP("limited_liability_partnership"), - @SerializedName("at") - AT("at"), + @SerializedName("llc") + LLC("llc"), - @SerializedName("au") - AU("au"), + @SerializedName("multi_member_llc") + MULTI_MEMBER_LLC("multi_member_llc"), - @SerializedName("aw") - AW("aw"), + @SerializedName("private_company") + PRIVATE_COMPANY("private_company"), - @SerializedName("ax") - AX("ax"), + @SerializedName("private_corporation") + PRIVATE_CORPORATION("private_corporation"), - @SerializedName("az") - AZ("az"), + @SerializedName("private_partnership") + PRIVATE_PARTNERSHIP("private_partnership"), - @SerializedName("ba") - BA("ba"), + @SerializedName("public_company") + PUBLIC_COMPANY("public_company"), - @SerializedName("bb") - BB("bb"), + @SerializedName("public_corporation") + PUBLIC_CORPORATION("public_corporation"), - @SerializedName("bd") - BD("bd"), + @SerializedName("public_listed_corporation") + PUBLIC_LISTED_CORPORATION("public_listed_corporation"), - @SerializedName("be") - BE("be"), + @SerializedName("public_partnership") + PUBLIC_PARTNERSHIP("public_partnership"), - @SerializedName("bf") - BF("bf"), + @SerializedName("registered_charity") + REGISTERED_CHARITY("registered_charity"), - @SerializedName("bg") - BG("bg"), + @SerializedName("single_member_llc") + SINGLE_MEMBER_LLC("single_member_llc"), - @SerializedName("bh") - BH("bh"), + @SerializedName("sole_establishment") + SOLE_ESTABLISHMENT("sole_establishment"), - @SerializedName("bi") - BI("bi"), + @SerializedName("sole_proprietorship") + SOLE_PROPRIETORSHIP("sole_proprietorship"), - @SerializedName("bj") - BJ("bj"), + @SerializedName("tax_exempt_government_instrumentality") + TAX_EXEMPT_GOVERNMENT_INSTRUMENTALITY("tax_exempt_government_instrumentality"), - @SerializedName("bl") - BL("bl"), + @SerializedName("trust") + TRUST("trust"), - @SerializedName("bm") - BM("bm"), + @SerializedName("unincorporated_association") + UNINCORPORATED_ASSOCIATION("unincorporated_association"), - @SerializedName("bn") - BN("bn"), + @SerializedName("unincorporated_non_profit") + UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"), - @SerializedName("bo") - BO("bo"), + @SerializedName("unincorporated_partnership") + UNINCORPORATED_PARTNERSHIP("unincorporated_partnership"); - @SerializedName("bq") - BQ("bq"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("br") - BR("br"), + Structure(String value) { + this.value = value; + } + } + } - @SerializedName("bs") - BS("bs"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Individual { + /** Additional addresses associated with the individual. */ + @SerializedName("additional_addresses") + List additionalAddresses; - @SerializedName("bt") - BT("bt"), + /** Additional names (e.g. aliases) associated with the individual. */ + @SerializedName("additional_names") + List additionalNames; - @SerializedName("bv") - BV("bv"), + /** The individual's residential address. */ + @SerializedName("address") + Address address; - @SerializedName("bw") - BW("bw"), + /** The individual's date of birth. */ + @SerializedName("date_of_birth") + DateOfBirth dateOfBirth; - @SerializedName("by") - BY("by"), + /** Documents that may be submitted to satisfy various informational requests. */ + @SerializedName("documents") + Documents documents; - @SerializedName("bz") - BZ("bz"), + /** The individual's email address. */ + @SerializedName("email") + String email; - @SerializedName("ca") - CA("ca"), + /** + * 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; - @SerializedName("cc") - CC("cc"), + /** The individual's first name. */ + @SerializedName("given_name") + String givenName; - @SerializedName("cd") - CD("cd"), + /** The identification numbers (e.g., SSN) associated with the individual. */ + @SerializedName("id_numbers") + List idNumbers; - @SerializedName("cf") - CF("cf"), + /** + * The individual's gender (International regulations require either "male" or + * "female"). + */ + @SerializedName("legal_gender") + LegalGender legalGender; - @SerializedName("cg") - CG("cg"), + /** + * 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. + */ + @SerializedName("metadata") + Map metadata; - @SerializedName("ch") - CH("ch"), + /** + * The countries where the individual is a national. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("nationalities") + List nationalities; - @SerializedName("ci") - CI("ci"), + /** The individual's phone number. */ + @SerializedName("phone") + String phone; - @SerializedName("ck") - CK("ck"), + /** The individual's political exposure. */ + @SerializedName("political_exposure") + PoliticalExposure politicalExposure; - @SerializedName("cl") - CL("cl"), + /** The relationship that this individual has with the account's identity. */ + @SerializedName("relationship") + Relationship relationship; - @SerializedName("cm") - CM("cm"), + /** The script addresses (e.g., non-Latin characters) associated with the individual. */ + @SerializedName("script_addresses") + ScriptAddresses scriptAddresses; - @SerializedName("cn") - CN("cn"), + /** The individuals primary name in non latin script. */ + @SerializedName("script_names") + ScriptNames scriptNames; - @SerializedName("co") - CO("co"), + /** The individual's last name. */ + @SerializedName("surname") + String surname; - @SerializedName("cr") - CR("cr"), + private Individual( + List additionalAddresses, + List additionalNames, + Address address, + DateOfBirth dateOfBirth, + Documents documents, + String email, + Map extraParams, + String givenName, + List idNumbers, + LegalGender legalGender, + Map metadata, + List nationalities, + String phone, + PoliticalExposure politicalExposure, + Relationship relationship, + ScriptAddresses scriptAddresses, + ScriptNames scriptNames, + String surname) { + this.additionalAddresses = additionalAddresses; + this.additionalNames = additionalNames; + this.address = address; + this.dateOfBirth = dateOfBirth; + this.documents = documents; + this.email = email; + this.extraParams = extraParams; + this.givenName = givenName; + this.idNumbers = idNumbers; + this.legalGender = legalGender; + this.metadata = metadata; + this.nationalities = nationalities; + this.phone = phone; + this.politicalExposure = politicalExposure; + this.relationship = relationship; + this.scriptAddresses = scriptAddresses; + this.scriptNames = scriptNames; + this.surname = surname; + } - @SerializedName("cu") - CU("cu"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("cv") - CV("cv"), + public static class Builder { + private List additionalAddresses; - @SerializedName("cw") - CW("cw"), + private List additionalNames; - @SerializedName("cx") - CX("cx"), + private Address address; - @SerializedName("cy") - CY("cy"), + private DateOfBirth dateOfBirth; - @SerializedName("cz") - CZ("cz"), + private Documents documents; - @SerializedName("de") - DE("de"), + private String email; - @SerializedName("dj") - DJ("dj"), + private Map extraParams; - @SerializedName("dk") - DK("dk"), + private String givenName; - @SerializedName("dm") - DM("dm"), + private List idNumbers; - @SerializedName("do") - DO("do"), + private LegalGender legalGender; - @SerializedName("dz") - DZ("dz"), + private Map metadata; - @SerializedName("ec") - EC("ec"), + private List nationalities; - @SerializedName("ee") - EE("ee"), + private String phone; - @SerializedName("eg") - EG("eg"), + private PoliticalExposure politicalExposure; - @SerializedName("eh") - EH("eh"), + private Relationship relationship; - @SerializedName("er") - ER("er"), + private ScriptAddresses scriptAddresses; - @SerializedName("es") - ES("es"), + private ScriptNames scriptNames; - @SerializedName("et") - ET("et"), + private String surname; - @SerializedName("fi") - FI("fi"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual build() { + return new AccountCreateParams.Identity.Individual( + this.additionalAddresses, + this.additionalNames, + this.address, + this.dateOfBirth, + this.documents, + this.email, + this.extraParams, + this.givenName, + this.idNumbers, + this.legalGender, + this.metadata, + this.nationalities, + this.phone, + this.politicalExposure, + this.relationship, + this.scriptAddresses, + this.scriptNames, + this.surname); + } - @SerializedName("fj") - FJ("fj"), + /** + * Add an element to `additionalAddresses` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountCreateParams.Identity.Individual#additionalAddresses} for the field + * documentation. + */ + public Builder addAdditionalAddress( + AccountCreateParams.Identity.Individual.AdditionalAddress element) { + if (this.additionalAddresses == null) { + this.additionalAddresses = new ArrayList<>(); + } + this.additionalAddresses.add(element); + return this; + } - @SerializedName("fk") - FK("fk"), + /** + * Add all elements to `additionalAddresses` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountCreateParams.Identity.Individual#additionalAddresses} for the field + * documentation. + */ + public Builder addAllAdditionalAddress( + List elements) { + if (this.additionalAddresses == null) { + this.additionalAddresses = new ArrayList<>(); + } + this.additionalAddresses.addAll(elements); + return this; + } - @SerializedName("fm") - FM("fm"), + /** + * Add an element to `additionalNames` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountCreateParams.Identity.Individual#additionalNames} for the field + * documentation. + */ + public Builder addAdditionalName( + AccountCreateParams.Identity.Individual.AdditionalName element) { + if (this.additionalNames == null) { + this.additionalNames = new ArrayList<>(); + } + this.additionalNames.add(element); + return this; + } - @SerializedName("fo") - FO("fo"), + /** + * Add all elements to `additionalNames` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountCreateParams.Identity.Individual#additionalNames} for the field + * documentation. + */ + public Builder addAllAdditionalName( + List elements) { + if (this.additionalNames == null) { + this.additionalNames = new ArrayList<>(); + } + this.additionalNames.addAll(elements); + return this; + } - @SerializedName("fr") - FR("fr"), + /** The individual's residential address. */ + public Builder setAddress(AccountCreateParams.Identity.Individual.Address address) { + this.address = address; + return this; + } - @SerializedName("ga") - GA("ga"), + /** The individual's date of birth. */ + public Builder setDateOfBirth( + AccountCreateParams.Identity.Individual.DateOfBirth dateOfBirth) { + this.dateOfBirth = dateOfBirth; + return this; + } - @SerializedName("gb") - GB("gb"), + /** Documents that may be submitted to satisfy various informational requests. */ + public Builder setDocuments(AccountCreateParams.Identity.Individual.Documents documents) { + this.documents = documents; + return this; + } - @SerializedName("gd") - GD("gd"), + /** The individual's email address. */ + public Builder setEmail(String email) { + this.email = email; + return this; + } - @SerializedName("ge") - GE("ge"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.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; + } - @SerializedName("gf") - GF("gf"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("gg") - GG("gg"), + /** The individual's first name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("gh") - GH("gh"), + /** + * Add an element to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountCreateParams.Identity.Individual#idNumbers} for the field documentation. + */ + public Builder addIdNumber(AccountCreateParams.Identity.Individual.IdNumber element) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.add(element); + return this; + } - @SerializedName("gi") - GI("gi"), + /** + * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountCreateParams.Identity.Individual#idNumbers} for the field documentation. + */ + public Builder addAllIdNumber( + List elements) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.addAll(elements); + return this; + } - @SerializedName("gl") - GL("gl"), + /** + * The individual's gender (International regulations require either "male" or + * "female"). + */ + public Builder setLegalGender( + AccountCreateParams.Identity.Individual.LegalGender legalGender) { + this.legalGender = legalGender; + return this; + } - @SerializedName("gm") - GM("gm"), + /** + * 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.Identity.Individual#metadata} for the field documentation. + */ + public Builder putMetadata(String key, String value) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, value); + return this; + } - @SerializedName("gn") - GN("gn"), + /** + * 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.Identity.Individual#metadata} for the field + * documentation. + */ + public Builder putAllMetadata(Map map) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.putAll(map); + return this; + } - @SerializedName("gp") - GP("gp"), + /** + * Add an element to `nationalities` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountCreateParams.Identity.Individual#nationalities} for the field documentation. + */ + public Builder addNationality(String element) { + if (this.nationalities == null) { + this.nationalities = new ArrayList<>(); + } + this.nationalities.add(element); + return this; + } - @SerializedName("gq") - GQ("gq"), + /** + * Add all elements to `nationalities` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountCreateParams.Identity.Individual#nationalities} for the field + * documentation. + */ + public Builder addAllNationality(List elements) { + if (this.nationalities == null) { + this.nationalities = new ArrayList<>(); + } + this.nationalities.addAll(elements); + return this; + } - @SerializedName("gr") - GR("gr"), + /** The individual's phone number. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; + } - @SerializedName("gs") - GS("gs"), + /** The individual's political exposure. */ + public Builder setPoliticalExposure( + AccountCreateParams.Identity.Individual.PoliticalExposure politicalExposure) { + this.politicalExposure = politicalExposure; + return this; + } - @SerializedName("gt") - GT("gt"), + /** The relationship that this individual has with the account's identity. */ + public Builder setRelationship( + AccountCreateParams.Identity.Individual.Relationship relationship) { + this.relationship = relationship; + return this; + } - @SerializedName("gu") - GU("gu"), + /** The script addresses (e.g., non-Latin characters) associated with the individual. */ + public Builder setScriptAddresses( + AccountCreateParams.Identity.Individual.ScriptAddresses scriptAddresses) { + this.scriptAddresses = scriptAddresses; + return this; + } - @SerializedName("gw") - GW("gw"), + /** The individuals primary name in non latin script. */ + public Builder setScriptNames( + AccountCreateParams.Identity.Individual.ScriptNames scriptNames) { + this.scriptNames = scriptNames; + return this; + } - @SerializedName("gy") - GY("gy"), + /** The individual's last name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } - @SerializedName("hk") - HK("hk"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalAddress { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; - @SerializedName("hm") - HM("hm"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; - @SerializedName("hn") - HN("hn"), + /** + * 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; - @SerializedName("hr") - HR("hr"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - @SerializedName("ht") - HT("ht"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; - @SerializedName("hu") - HU("hu"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; - @SerializedName("id") - ID("id"), + /** Required. Purpose of additional address. */ + @SerializedName("purpose") + Purpose purpose; - @SerializedName("ie") - IE("ie"), + /** State, county, province, or region. */ + @SerializedName("state") + String state; - @SerializedName("il") - IL("il"), + /** Town or cho-me. */ + @SerializedName("town") + String town; - @SerializedName("im") - IM("im"), + private AdditionalAddress( + String city, + String country, + Map extraParams, + String line1, + String line2, + String postalCode, + Purpose purpose, + String state, + String town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.purpose = purpose; + this.state = state; + this.town = town; + } - @SerializedName("in") - IN("in"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("io") - IO("io"), + public static class Builder { + private String city; - @SerializedName("iq") - IQ("iq"), + private String country; - @SerializedName("ir") - IR("ir"), + private Map extraParams; - @SerializedName("is") - IS("is"), + private String line1; - @SerializedName("it") - IT("it"), + private String line2; - @SerializedName("je") - JE("je"), + private String postalCode; - @SerializedName("jm") - JM("jm"), + private Purpose purpose; - @SerializedName("jo") - JO("jo"), + private String state; - @SerializedName("jp") - JP("jp"), + private String town; - @SerializedName("ke") - KE("ke"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.AdditionalAddress build() { + return new AccountCreateParams.Identity.Individual.AdditionalAddress( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.purpose, + this.state, + this.town); + } - @SerializedName("kg") - KG("kg"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("kh") - KH("kh"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("ki") - KI("ki"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.AdditionalAddress#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; + } - @SerializedName("km") - KM("km"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.AdditionalAddress#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("kn") - KN("kn"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("kp") - KP("kp"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("kr") - KR("kr"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("kw") - KW("kw"), + /** Required. Purpose of additional address. */ + public Builder setPurpose( + AccountCreateParams.Identity.Individual.AdditionalAddress.Purpose purpose) { + this.purpose = purpose; + return this; + } - @SerializedName("ky") - KY("ky"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("kz") - KZ("kz"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } - @SerializedName("la") - LA("la"), + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("registered") + REGISTERED("registered"); - @SerializedName("lb") - LB("lb"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("lc") - LC("lc"), + Purpose(String value) { + this.value = value; + } + } + } - @SerializedName("li") - LI("li"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalName { + /** + * 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; - @SerializedName("lk") - LK("lk"), + /** The person's full name. */ + @SerializedName("full_name") + String fullName; - @SerializedName("lr") - LR("lr"), + /** The person's first or given name. */ + @SerializedName("given_name") + String givenName; - @SerializedName("ls") - LS("ls"), + /** Required. The purpose or type of the additional name. */ + @SerializedName("purpose") + Purpose purpose; - @SerializedName("lt") - LT("lt"), + /** The person's last or family name. */ + @SerializedName("surname") + String surname; - @SerializedName("lu") - LU("lu"), + private AdditionalName( + Map extraParams, + String fullName, + String givenName, + Purpose purpose, + String surname) { + this.extraParams = extraParams; + this.fullName = fullName; + this.givenName = givenName; + this.purpose = purpose; + this.surname = surname; + } - @SerializedName("lv") - LV("lv"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ly") - LY("ly"), + public static class Builder { + private Map extraParams; - @SerializedName("ma") - MA("ma"), + private String fullName; - @SerializedName("mc") - MC("mc"), + private String givenName; - @SerializedName("md") - MD("md"), + private Purpose purpose; - @SerializedName("me") - ME("me"), + private String surname; - @SerializedName("mf") - MF("mf"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.AdditionalName build() { + return new AccountCreateParams.Identity.Individual.AdditionalName( + this.extraParams, this.fullName, this.givenName, this.purpose, this.surname); + } - @SerializedName("mg") - MG("mg"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.AdditionalName#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; + } - @SerializedName("mh") - MH("mh"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.AdditionalName#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("mk") - MK("mk"), + /** The person's full name. */ + public Builder setFullName(String fullName) { + this.fullName = fullName; + return this; + } - @SerializedName("ml") - ML("ml"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("mm") - MM("mm"), + /** Required. The purpose or type of the additional name. */ + public Builder setPurpose( + AccountCreateParams.Identity.Individual.AdditionalName.Purpose purpose) { + this.purpose = purpose; + return this; + } - @SerializedName("mn") - MN("mn"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } - @SerializedName("mo") - MO("mo"), + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("alias") + ALIAS("alias"), - @SerializedName("mp") - MP("mp"), + @SerializedName("maiden") + MAIDEN("maiden"); - @SerializedName("mq") - MQ("mq"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("mr") - MR("mr"), + Purpose(String value) { + this.value = value; + } + } + } - @SerializedName("ms") - MS("ms"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; - @SerializedName("mt") - MT("mt"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; - @SerializedName("mu") - MU("mu"), + /** + * 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; - @SerializedName("mv") - MV("mv"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - @SerializedName("mw") - MW("mw"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; - @SerializedName("mx") - MX("mx"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; - @SerializedName("my") - MY("my"), + /** State, county, province, or region. */ + @SerializedName("state") + String state; - @SerializedName("mz") - MZ("mz"), + /** Town or cho-me. */ + @SerializedName("town") + String town; - @SerializedName("na") - NA("na"), + private Address( + 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; + } - @SerializedName("nc") - NC("nc"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ne") - NE("ne"), + public static class Builder { + private String city; - @SerializedName("nf") - NF("nf"), + private String country; - @SerializedName("ng") - NG("ng"), + private Map extraParams; - @SerializedName("ni") - NI("ni"), + private String line1; - @SerializedName("nl") - NL("nl"), + private String line2; - @SerializedName("no") - NO("no"), + private String postalCode; - @SerializedName("np") - NP("np"), + private String state; - @SerializedName("nr") - NR("nr"), + private String town; - @SerializedName("nu") - NU("nu"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.Address build() { + return new AccountCreateParams.Identity.Individual.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("nz") - NZ("nz"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("om") - OM("om"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("pa") - PA("pa"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.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; + } - @SerializedName("pe") - PE("pe"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.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; + } - @SerializedName("pf") - PF("pf"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("pg") - PG("pg"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("ph") - PH("ph"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("pk") - PK("pk"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("pl") - PL("pl"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } - @SerializedName("pm") - PM("pm"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class DateOfBirth { + /** Required. The day of birth. */ + @SerializedName("day") + Long day; - @SerializedName("pn") - PN("pn"), + /** + * 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; - @SerializedName("pr") - PR("pr"), + /** Required. The month of birth. */ + @SerializedName("month") + Long month; - @SerializedName("ps") - PS("ps"), + /** Required. The year of birth. */ + @SerializedName("year") + Long year; - @SerializedName("pt") - PT("pt"), + private DateOfBirth(Long day, Map extraParams, Long month, Long year) { + this.day = day; + this.extraParams = extraParams; + this.month = month; + this.year = year; + } - @SerializedName("pw") - PW("pw"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("py") - PY("py"), + public static class Builder { + private Long day; - @SerializedName("qa") - QA("qa"), + private Map extraParams; - @SerializedName("qz") - QZ("qz"), + private Long month; - @SerializedName("re") - RE("re"), + private Long year; - @SerializedName("ro") - RO("ro"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.DateOfBirth build() { + return new AccountCreateParams.Identity.Individual.DateOfBirth( + this.day, this.extraParams, this.month, this.year); + } - @SerializedName("rs") - RS("rs"), + /** Required. The day of birth. */ + public Builder setDay(Long day) { + this.day = day; + return this; + } - @SerializedName("ru") - RU("ru"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.DateOfBirth#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; + } - @SerializedName("rw") - RW("rw"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.DateOfBirth#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sa") - SA("sa"), + /** Required. The month of birth. */ + public Builder setMonth(Long month) { + this.month = month; + return this; + } - @SerializedName("sb") - SB("sb"), + /** Required. The year of birth. */ + public Builder setYear(Long year) { + this.year = year; + return this; + } + } + } - @SerializedName("sc") - SC("sc"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Documents { + /** + * One or more documents that demonstrate proof that this person is authorized to represent + * the company. + */ + @SerializedName("company_authorization") + CompanyAuthorization companyAuthorization; - @SerializedName("sd") - SD("sd"), + /** + * 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; - @SerializedName("se") - SE("se"), + /** + * One or more documents showing the person’s passport page with photo and personal data. + */ + @SerializedName("passport") + Passport passport; - @SerializedName("sg") - SG("sg"), + /** + * An identifying document showing the person's name, either a passport or local ID card. + */ + @SerializedName("primary_verification") + PrimaryVerification primaryVerification; - @SerializedName("sh") - SH("sh"), + /** + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. + */ + @SerializedName("secondary_verification") + SecondaryVerification secondaryVerification; - @SerializedName("si") - SI("si"), + /** + * One or more documents showing the person’s visa required for living in the country where + * they are residing. + */ + @SerializedName("visa") + Visa visa; - @SerializedName("sj") - SJ("sj"), + private Documents( + CompanyAuthorization companyAuthorization, + Map extraParams, + Passport passport, + PrimaryVerification primaryVerification, + SecondaryVerification secondaryVerification, + Visa visa) { + this.companyAuthorization = companyAuthorization; + this.extraParams = extraParams; + this.passport = passport; + this.primaryVerification = primaryVerification; + this.secondaryVerification = secondaryVerification; + this.visa = visa; + } - @SerializedName("sk") - SK("sk"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("sl") - SL("sl"), + public static class Builder { + private CompanyAuthorization companyAuthorization; - @SerializedName("sm") - SM("sm"), + private Map extraParams; - @SerializedName("sn") - SN("sn"), + private Passport passport; - @SerializedName("so") - SO("so"), + private PrimaryVerification primaryVerification; - @SerializedName("sr") - SR("sr"), + private SecondaryVerification secondaryVerification; - @SerializedName("ss") - SS("ss"), + private Visa visa; - @SerializedName("st") - ST("st"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.Documents build() { + return new AccountCreateParams.Identity.Individual.Documents( + this.companyAuthorization, + this.extraParams, + this.passport, + this.primaryVerification, + this.secondaryVerification, + this.visa); + } - @SerializedName("sv") - SV("sv"), + /** + * One or more documents that demonstrate proof that this person is authorized to + * represent the company. + */ + public Builder setCompanyAuthorization( + AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization + companyAuthorization) { + this.companyAuthorization = companyAuthorization; + return this; + } - @SerializedName("sx") - SX("sx"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.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; + } - @SerializedName("sy") - SY("sy"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.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; + } - @SerializedName("sz") - SZ("sz"), + /** + * One or more documents showing the person’s passport page with photo and personal data. + */ + public Builder setPassport( + AccountCreateParams.Identity.Individual.Documents.Passport passport) { + this.passport = passport; + return this; + } - @SerializedName("tc") - TC("tc"), + /** + * An identifying document showing the person's name, either a passport or local ID card. + */ + public Builder setPrimaryVerification( + AccountCreateParams.Identity.Individual.Documents.PrimaryVerification + primaryVerification) { + this.primaryVerification = primaryVerification; + return this; + } - @SerializedName("td") - TD("td"), + /** + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. + */ + public Builder setSecondaryVerification( + AccountCreateParams.Identity.Individual.Documents.SecondaryVerification + secondaryVerification) { + this.secondaryVerification = secondaryVerification; + return this; + } - @SerializedName("tf") - TF("tf"), + /** + * One or more documents showing the person’s visa required for living in the country + * where they are residing. + */ + public Builder setVisa(AccountCreateParams.Identity.Individual.Documents.Visa visa) { + this.visa = visa; + return this; + } + } - @SerializedName("tg") - TG("tg"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CompanyAuthorization { + /** + * 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; - @SerializedName("th") - TH("th"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("tj") - TJ("tj"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("tk") - TK("tk"), + private CompanyAuthorization( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("tl") - TL("tl"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("tm") - TM("tm"), + public static class Builder { + private Map extraParams; - @SerializedName("tn") - TN("tn"), + private List files; - @SerializedName("to") - TO("to"), + private Type type; - @SerializedName("tr") - TR("tr"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization build() { + return new AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization( + this.extraParams, this.files, this.type); + } - @SerializedName("tt") - TT("tt"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization#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; + } - @SerializedName("tv") - TV("tv"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("tw") - TW("tw"), + /** + * 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.Identity.Individual.Documents.CompanyAuthorization#files} for the + * field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("tz") - TZ("tz"), + /** + * 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.Identity.Individual.Documents.CompanyAuthorization#files} for the + * field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("ua") - UA("ua"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization.Type type) { + this.type = type; + return this; + } + } - @SerializedName("ug") - UG("ug"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("um") - UM("um"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("us") - US("us"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("uy") - UY("uy"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Passport { + /** + * 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; - @SerializedName("uz") - UZ("uz"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("va") - VA("va"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("vc") - VC("vc"), + private Passport(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("ve") - VE("ve"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("vg") - VG("vg"), + public static class Builder { + private Map extraParams; - @SerializedName("vi") - VI("vi"), + private List files; - @SerializedName("vn") - VN("vn"), + private Type type; - @SerializedName("vu") - VU("vu"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.Documents.Passport build() { + return new AccountCreateParams.Identity.Individual.Documents.Passport( + this.extraParams, this.files, this.type); + } - @SerializedName("wf") - WF("wf"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.Passport#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; + } - @SerializedName("ws") - WS("ws"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.Passport#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("xx") - XX("xx"), + /** + * 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.Identity.Individual.Documents.Passport#files} for the field + * documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("ye") - YE("ye"), + /** + * 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.Identity.Individual.Documents.Passport#files} for the field + * documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("yt") - YT("yt"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.Individual.Documents.Passport.Type type) { + this.type = type; + return this; + } + } - @SerializedName("za") - ZA("za"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("zm") - ZM("zm"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("zw") - ZW("zw"); + Type(String value) { + this.value = value; + } + } + } - @Getter(onMethod_ = {@Override}) - private final String value; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PrimaryVerification { + /** + * 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; - Nationality(String value) { - this.value = value; - } - } + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; - public enum PoliticalExposure implements ApiRequestParams.EnumParam { - @SerializedName("existing") - EXISTING("existing"), + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; - @SerializedName("none") - NONE("none"); + private PrimaryVerification( + Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } - @Getter(onMethod_ = {@Override}) - private final String value; + public static Builder builder() { + return new Builder(); + } - PoliticalExposure(String value) { - this.value = value; - } - } - } + public static class Builder { + private Map extraParams; - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), + private FrontBack frontBack; - @SerializedName("ae") - AE("ae"), + private Type type; - @SerializedName("af") - AF("af"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.Documents.PrimaryVerification build() { + return new AccountCreateParams.Identity.Individual.Documents.PrimaryVerification( + this.extraParams, this.frontBack, this.type); + } - @SerializedName("ag") - AG("ag"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.PrimaryVerification#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; + } - @SerializedName("ai") - AI("ai"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.PrimaryVerification#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("al") - AL("al"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + AccountCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack + frontBack) { + this.frontBack = frontBack; + return this; + } - @SerializedName("am") - AM("am"), + /** + * Required. The format of the verification document. Currently + * supports {@code front_back} only. + */ + public Builder setType( + AccountCreateParams.Identity.Individual.Documents.PrimaryVerification.Type type) { + this.type = type; + return this; + } + } - @SerializedName("ao") - AO("ao"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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; - @SerializedName("aq") - AQ("aq"), + /** + * 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; - @SerializedName("ar") - AR("ar"), + /** + * Required. A file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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; - @SerializedName("as") - AS("as"), + private FrontBack(String back, Map extraParams, String front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } - @SerializedName("at") - AT("at"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("au") - AU("au"), + public static class Builder { + private String back; - @SerializedName("aw") - AW("aw"), + private Map extraParams; - @SerializedName("ax") - AX("ax"), + private String front; - @SerializedName("az") - AZ("az"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack + build() { + return new AccountCreateParams.Identity.Individual.Documents.PrimaryVerification + .FrontBack(this.back, this.extraParams, this.front); + } - @SerializedName("ba") - BA("ba"), + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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; + } - @SerializedName("bb") - BB("bb"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack#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; + } - @SerializedName("bd") - BD("bd"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("be") - BE("be"), + /** + * Required. A file upload token + * representing the front of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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 setFront(String front) { + this.front = front; + return this; + } + } + } - @SerializedName("bf") - BF("bf"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); - @SerializedName("bg") - BG("bg"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("bh") - BH("bh"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("bi") - BI("bi"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class SecondaryVerification { + /** + * 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; - @SerializedName("bj") - BJ("bj"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; - @SerializedName("bl") - BL("bl"), + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; - @SerializedName("bm") - BM("bm"), + private SecondaryVerification( + Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } - @SerializedName("bn") - BN("bn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("bo") - BO("bo"), + public static class Builder { + private Map extraParams; - @SerializedName("bq") - BQ("bq"), + private FrontBack frontBack; - @SerializedName("br") - BR("br"), + private Type type; - @SerializedName("bs") - BS("bs"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.Documents.SecondaryVerification build() { + return new AccountCreateParams.Identity.Individual.Documents.SecondaryVerification( + this.extraParams, this.frontBack, this.type); + } - @SerializedName("bt") - BT("bt"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.SecondaryVerification#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; + } - @SerializedName("bv") - BV("bv"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.SecondaryVerification#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("bw") - BW("bw"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + AccountCreateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack + frontBack) { + this.frontBack = frontBack; + return this; + } - @SerializedName("by") - BY("by"), + /** + * Required. The format of the verification document. Currently + * supports {@code front_back} only. + */ + public Builder setType( + AccountCreateParams.Identity.Individual.Documents.SecondaryVerification.Type type) { + this.type = type; + return this; + } + } - @SerializedName("bz") - BZ("bz"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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; - @SerializedName("ca") - CA("ca"), + /** + * 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; - @SerializedName("cc") - CC("cc"), + /** + * Required. A file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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; - @SerializedName("cd") - CD("cd"), + private FrontBack(String back, Map extraParams, String front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } - @SerializedName("cf") - CF("cf"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("cg") - CG("cg"), + public static class Builder { + private String back; - @SerializedName("ch") - CH("ch"), + private Map extraParams; - @SerializedName("ci") - CI("ci"), + private String front; - @SerializedName("ck") - CK("ck"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.Documents.SecondaryVerification + .FrontBack + build() { + return new AccountCreateParams.Identity.Individual.Documents.SecondaryVerification + .FrontBack(this.back, this.extraParams, this.front); + } - @SerializedName("cl") - CL("cl"), + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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; + } - @SerializedName("cm") - CM("cm"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack#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; + } - @SerializedName("cn") - CN("cn"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("co") - CO("co"), + /** + * Required. A file upload token + * representing the front of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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 setFront(String front) { + this.front = front; + return this; + } + } + } - @SerializedName("cr") - CR("cr"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); - @SerializedName("cu") - CU("cu"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("cv") - CV("cv"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("cw") - CW("cw"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Visa { + /** + * 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; - @SerializedName("cx") - CX("cx"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("cy") - CY("cy"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("cz") - CZ("cz"), + private Visa(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("de") - DE("de"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("dj") - DJ("dj"), + public static class Builder { + private Map extraParams; - @SerializedName("dk") - DK("dk"), + private List files; - @SerializedName("dm") - DM("dm"), + private Type type; - @SerializedName("do") - DO("do"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.Documents.Visa build() { + return new AccountCreateParams.Identity.Individual.Documents.Visa( + this.extraParams, this.files, this.type); + } - @SerializedName("dz") - DZ("dz"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.Visa#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; + } - @SerializedName("ec") - EC("ec"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.Documents.Visa#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ee") - EE("ee"), + /** + * 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.Identity.Individual.Documents.Visa#files} for the field + * documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("eg") - EG("eg"), + /** + * 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.Identity.Individual.Documents.Visa#files} for the field + * documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("eh") - EH("eh"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountCreateParams.Identity.Individual.Documents.Visa.Type type) { + this.type = type; + return this; + } + } - @SerializedName("er") - ER("er"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("es") - ES("es"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("et") - ET("et"), + Type(String value) { + this.value = value; + } + } + } + } - @SerializedName("fi") - FI("fi"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class IdNumber { + /** + * 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; - @SerializedName("fj") - FJ("fj"), + /** Required. The ID number type of an individual. */ + @SerializedName("type") + Type type; - @SerializedName("fk") - FK("fk"), + /** Required. The value of the ID number. */ + @SerializedName("value") + String value; - @SerializedName("fm") - FM("fm"), + private IdNumber(Map extraParams, Type type, String value) { + this.extraParams = extraParams; + this.type = type; + this.value = value; + } - @SerializedName("fo") - FO("fo"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("fr") - FR("fr"), + public static class Builder { + private Map extraParams; - @SerializedName("ga") - GA("ga"), + private Type type; - @SerializedName("gb") - GB("gb"), + private String value; - @SerializedName("gd") - GD("gd"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.IdNumber build() { + return new AccountCreateParams.Identity.Individual.IdNumber( + this.extraParams, this.type, this.value); + } - @SerializedName("ge") - GE("ge"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.IdNumber#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; + } - @SerializedName("gf") - GF("gf"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.IdNumber#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("gg") - GG("gg"), + /** Required. The ID number type of an individual. */ + public Builder setType(AccountCreateParams.Identity.Individual.IdNumber.Type type) { + this.type = type; + return this; + } - @SerializedName("gh") - GH("gh"), + /** Required. The value of the ID number. */ + public Builder setValue(String value) { + this.value = value; + return this; + } + } - @SerializedName("gi") - GI("gi"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ae_eid") + AE_EID("ae_eid"), - @SerializedName("gl") - GL("gl"), + @SerializedName("ao_nif") + AO_NIF("ao_nif"), - @SerializedName("gm") - GM("gm"), + @SerializedName("az_tin") + AZ_TIN("az_tin"), - @SerializedName("gn") - GN("gn"), + @SerializedName("bd_brc") + BD_BRC("bd_brc"), - @SerializedName("gp") - GP("gp"), + @SerializedName("bd_etin") + BD_ETIN("bd_etin"), - @SerializedName("gq") - GQ("gq"), + @SerializedName("bd_nid") + BD_NID("bd_nid"), - @SerializedName("gr") - GR("gr"), + @SerializedName("br_cpf") + BR_CPF("br_cpf"), - @SerializedName("gs") - GS("gs"), + @SerializedName("cr_cpf") + CR_CPF("cr_cpf"), - @SerializedName("gt") - GT("gt"), + @SerializedName("cr_dimex") + CR_DIMEX("cr_dimex"), - @SerializedName("gu") - GU("gu"), + @SerializedName("cr_nite") + CR_NITE("cr_nite"), - @SerializedName("gw") - GW("gw"), + @SerializedName("de_stn") + DE_STN("de_stn"), - @SerializedName("gy") - GY("gy"), + @SerializedName("do_rcn") + DO_RCN("do_rcn"), - @SerializedName("hk") - HK("hk"), + @SerializedName("gt_nit") + GT_NIT("gt_nit"), - @SerializedName("hm") - HM("hm"), + @SerializedName("hk_id") + HK_ID("hk_id"), - @SerializedName("hn") - HN("hn"), + @SerializedName("kz_iin") + KZ_IIN("kz_iin"), - @SerializedName("hr") - HR("hr"), + @SerializedName("mx_rfc") + MX_RFC("mx_rfc"), - @SerializedName("ht") - HT("ht"), + @SerializedName("my_nric") + MY_NRIC("my_nric"), - @SerializedName("hu") - HU("hu"), + @SerializedName("mz_nuit") + MZ_NUIT("mz_nuit"), - @SerializedName("id") - ID("id"), + @SerializedName("nl_bsn") + NL_BSN("nl_bsn"), - @SerializedName("ie") - IE("ie"), + @SerializedName("pe_dni") + PE_DNI("pe_dni"), - @SerializedName("il") - IL("il"), + @SerializedName("pk_cnic") + PK_CNIC("pk_cnic"), - @SerializedName("im") - IM("im"), + @SerializedName("pk_snic") + PK_SNIC("pk_snic"), - @SerializedName("in") - IN("in"), + @SerializedName("sa_tin") + SA_TIN("sa_tin"), - @SerializedName("io") - IO("io"), + @SerializedName("sg_fin") + SG_FIN("sg_fin"), - @SerializedName("iq") - IQ("iq"), + @SerializedName("sg_nric") + SG_NRIC("sg_nric"), - @SerializedName("ir") - IR("ir"), + @SerializedName("th_lc") + TH_LC("th_lc"), - @SerializedName("is") - IS("is"), + @SerializedName("th_pin") + TH_PIN("th_pin"), - @SerializedName("it") - IT("it"), + @SerializedName("us_itin") + US_ITIN("us_itin"), - @SerializedName("je") - JE("je"), + @SerializedName("us_itin_last_4") + US_ITIN_LAST_4("us_itin_last_4"), - @SerializedName("jm") - JM("jm"), + @SerializedName("us_ssn") + US_SSN("us_ssn"), - @SerializedName("jo") - JO("jo"), + @SerializedName("us_ssn_last_4") + US_SSN_LAST_4("us_ssn_last_4"); - @SerializedName("jp") - JP("jp"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("ke") - KE("ke"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("kg") - KG("kg"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Relationship { + /** + * Whether the person is a director of the account's identity. Directors are typically + * members of the governing board of the company, or responsible for ensuring the company + * meets its regulatory obligations. + */ + @SerializedName("director") + Boolean director; - @SerializedName("kh") - KH("kh"), + /** + * Whether the person has significant responsibility to control, manage, or direct the + * organization. + */ + @SerializedName("executive") + Boolean executive; - @SerializedName("ki") - KI("ki"), + /** + * 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; - @SerializedName("km") - KM("km"), + /** Whether the person is an owner of the account’s identity. */ + @SerializedName("owner") + Boolean owner; - @SerializedName("kn") - KN("kn"), + /** The percent owned by the person of the account's legal entity. */ + @SerializedName("percent_ownership") + BigDecimal percentOwnership; - @SerializedName("kp") - KP("kp"), + /** The person's title (e.g., CEO, Support Engineer). */ + @SerializedName("title") + String title; - @SerializedName("kr") - KR("kr"), + private Relationship( + Boolean director, + Boolean executive, + Map extraParams, + Boolean owner, + BigDecimal percentOwnership, + String title) { + this.director = director; + this.executive = executive; + this.extraParams = extraParams; + this.owner = owner; + this.percentOwnership = percentOwnership; + this.title = title; + } - @SerializedName("kw") - KW("kw"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ky") - KY("ky"), + public static class Builder { + private Boolean director; - @SerializedName("kz") - KZ("kz"), + private Boolean executive; - @SerializedName("la") - LA("la"), + private Map extraParams; - @SerializedName("lb") - LB("lb"), + private Boolean owner; - @SerializedName("lc") - LC("lc"), + private BigDecimal percentOwnership; - @SerializedName("li") - LI("li"), + private String title; - @SerializedName("lk") - LK("lk"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.Relationship build() { + return new AccountCreateParams.Identity.Individual.Relationship( + this.director, + this.executive, + this.extraParams, + this.owner, + this.percentOwnership, + this.title); + } - @SerializedName("lr") - LR("lr"), + /** + * Whether the person is a director of the account's identity. Directors are typically + * members of the governing board of the company, or responsible for ensuring the company + * meets its regulatory obligations. + */ + public Builder setDirector(Boolean director) { + this.director = director; + return this; + } - @SerializedName("ls") - LS("ls"), + /** + * Whether the person has significant responsibility to control, manage, or direct the + * organization. + */ + public Builder setExecutive(Boolean executive) { + this.executive = executive; + return this; + } - @SerializedName("lt") - LT("lt"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.Relationship#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; + } - @SerializedName("lu") - LU("lu"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.Relationship#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("lv") - LV("lv"), + /** Whether the person is an owner of the account’s identity. */ + public Builder setOwner(Boolean owner) { + this.owner = owner; + return this; + } - @SerializedName("ly") - LY("ly"), + /** The percent owned by the person of the account's legal entity. */ + public Builder setPercentOwnership(BigDecimal percentOwnership) { + this.percentOwnership = percentOwnership; + return this; + } - @SerializedName("ma") - MA("ma"), + /** The person's title (e.g., CEO, Support Engineer). */ + public Builder setTitle(String title) { + this.title = title; + return this; + } + } + } - @SerializedName("mc") - MC("mc"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptAddresses { + /** + * 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; - @SerializedName("md") - MD("md"), + /** Kana Address. */ + @SerializedName("kana") + Kana kana; - @SerializedName("me") - ME("me"), + /** Kanji Address. */ + @SerializedName("kanji") + Kanji kanji; - @SerializedName("mf") - MF("mf"), + private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } - @SerializedName("mg") - MG("mg"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("mh") - MH("mh"), + public static class Builder { + private Map extraParams; - @SerializedName("mk") - MK("mk"), + private Kana kana; - @SerializedName("ml") - ML("ml"), + private Kanji kanji; - @SerializedName("mm") - MM("mm"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.ScriptAddresses build() { + return new AccountCreateParams.Identity.Individual.ScriptAddresses( + this.extraParams, this.kana, this.kanji); + } - @SerializedName("mn") - MN("mn"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.ScriptAddresses#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; + } - @SerializedName("mo") - MO("mo"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.ScriptAddresses#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("mp") - MP("mp"), + /** Kana Address. */ + public Builder setKana( + AccountCreateParams.Identity.Individual.ScriptAddresses.Kana kana) { + this.kana = kana; + return this; + } - @SerializedName("mq") - MQ("mq"), + /** Kanji Address. */ + public Builder setKanji( + AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji kanji) { + this.kanji = kanji; + return this; + } + } - @SerializedName("mr") - MR("mr"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; - @SerializedName("ms") - MS("ms"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; - @SerializedName("mt") - MT("mt"), + /** + * 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; - @SerializedName("mu") - MU("mu"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - @SerializedName("mv") - MV("mv"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; - @SerializedName("mw") - MW("mw"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; - @SerializedName("mx") - MX("mx"), + /** State, county, province, or region. */ + @SerializedName("state") + String state; - @SerializedName("my") - MY("my"), + /** Town or cho-me. */ + @SerializedName("town") + String town; - @SerializedName("mz") - MZ("mz"), + private Kana( + 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; + } - @SerializedName("na") - NA("na"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("nc") - NC("nc"), + public static class Builder { + private String city; - @SerializedName("ne") - NE("ne"), + private String country; - @SerializedName("nf") - NF("nf"), + private Map extraParams; - @SerializedName("ng") - NG("ng"), + private String line1; - @SerializedName("ni") - NI("ni"), + private String line2; - @SerializedName("nl") - NL("nl"), + private String postalCode; - @SerializedName("no") - NO("no"), + private String state; - @SerializedName("np") - NP("np"), + private String town; - @SerializedName("nr") - NR("nr"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.ScriptAddresses.Kana build() { + return new AccountCreateParams.Identity.Individual.ScriptAddresses.Kana( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("nu") - NU("nu"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("nz") - NZ("nz"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("om") - OM("om"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.ScriptAddresses.Kana#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; + } - @SerializedName("pa") - PA("pa"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.ScriptAddresses.Kana#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("pe") - PE("pe"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("pf") - PF("pf"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("pg") - PG("pg"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("ph") - PH("ph"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("pk") - PK("pk"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } - @SerializedName("pl") - PL("pl"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; - @SerializedName("pm") - PM("pm"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; - @SerializedName("pn") - PN("pn"), + /** + * 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; - @SerializedName("pr") - PR("pr"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - @SerializedName("ps") - PS("ps"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; - @SerializedName("pt") - PT("pt"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; - @SerializedName("pw") - PW("pw"), + /** State, county, province, or region. */ + @SerializedName("state") + String state; - @SerializedName("py") - PY("py"), + /** Town or cho-me. */ + @SerializedName("town") + String town; - @SerializedName("qa") - QA("qa"), + private Kanji( + 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; + } - @SerializedName("qz") - QZ("qz"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("re") - RE("re"), + public static class Builder { + private String city; - @SerializedName("ro") - RO("ro"), + private String country; - @SerializedName("rs") - RS("rs"), + private Map extraParams; - @SerializedName("ru") - RU("ru"), + private String line1; - @SerializedName("rw") - RW("rw"), + private String line2; - @SerializedName("sa") - SA("sa"), + private String postalCode; - @SerializedName("sb") - SB("sb"), + private String state; - @SerializedName("sc") - SC("sc"), + private String town; - @SerializedName("sd") - SD("sd"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji build() { + return new AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("se") - SE("se"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("sg") - SG("sg"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("sh") - SH("sh"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji#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; + } - @SerializedName("si") - SI("si"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sj") - SJ("sj"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("sk") - SK("sk"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("sl") - SL("sl"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("sm") - SM("sm"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("sn") - SN("sn"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + } - @SerializedName("so") - SO("so"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptNames { + /** + * 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; - @SerializedName("sr") - SR("sr"), + /** Persons name in kana script. */ + @SerializedName("kana") + Kana kana; - @SerializedName("ss") - SS("ss"), + /** Persons name in kanji script. */ + @SerializedName("kanji") + Kanji kanji; - @SerializedName("st") - ST("st"), + private ScriptNames(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } - @SerializedName("sv") - SV("sv"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("sx") - SX("sx"), + public static class Builder { + private Map extraParams; - @SerializedName("sy") - SY("sy"), + private Kana kana; - @SerializedName("sz") - SZ("sz"), + private Kanji kanji; - @SerializedName("tc") - TC("tc"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.ScriptNames build() { + return new AccountCreateParams.Identity.Individual.ScriptNames( + this.extraParams, this.kana, this.kanji); + } - @SerializedName("td") - TD("td"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.ScriptNames#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; + } - @SerializedName("tf") - TF("tf"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Identity.Individual.ScriptNames#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("tg") - TG("tg"), + /** Persons name in kana script. */ + public Builder setKana(AccountCreateParams.Identity.Individual.ScriptNames.Kana kana) { + this.kana = kana; + return this; + } - @SerializedName("th") - TH("th"), + /** Persons name in kanji script. */ + public Builder setKanji(AccountCreateParams.Identity.Individual.ScriptNames.Kanji kanji) { + this.kanji = kanji; + return this; + } + } - @SerializedName("tj") - TJ("tj"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** + * 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; - @SerializedName("tk") - TK("tk"), + /** The person's first or given name. */ + @SerializedName("given_name") + String givenName; - @SerializedName("tl") - TL("tl"), + /** The person's last or family name. */ + @SerializedName("surname") + String surname; - @SerializedName("tm") - TM("tm"), + private Kana(Map extraParams, String givenName, String surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } - @SerializedName("tn") - TN("tn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("to") - TO("to"), + public static class Builder { + private Map extraParams; - @SerializedName("tr") - TR("tr"), + private String givenName; - @SerializedName("tt") - TT("tt"), + private String surname; - @SerializedName("tv") - TV("tv"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.ScriptNames.Kana build() { + return new AccountCreateParams.Identity.Individual.ScriptNames.Kana( + this.extraParams, this.givenName, this.surname); + } - @SerializedName("tw") - TW("tw"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.ScriptNames.Kana#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; + } - @SerializedName("tz") - TZ("tz"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.ScriptNames.Kana#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ua") - UA("ua"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("ug") - UG("ug"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + } - @SerializedName("um") - UM("um"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** + * 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; - @SerializedName("us") - US("us"), + /** The person's first or given name. */ + @SerializedName("given_name") + String givenName; - @SerializedName("uy") - UY("uy"), + /** The person's last or family name. */ + @SerializedName("surname") + String surname; - @SerializedName("uz") - UZ("uz"), + private Kanji(Map extraParams, String givenName, String surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } - @SerializedName("va") - VA("va"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("vc") - VC("vc"), + public static class Builder { + private Map extraParams; - @SerializedName("ve") - VE("ve"), + private String givenName; - @SerializedName("vg") - VG("vg"), + private String surname; - @SerializedName("vi") - VI("vi"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Identity.Individual.ScriptNames.Kanji build() { + return new AccountCreateParams.Identity.Individual.ScriptNames.Kanji( + this.extraParams, this.givenName, this.surname); + } - @SerializedName("vn") - VN("vn"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.ScriptNames.Kanji#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; + } - @SerializedName("vu") - VU("vu"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountCreateParams.Identity.Individual.ScriptNames.Kanji#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("wf") - WF("wf"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("ws") - WS("ws"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + } + } - @SerializedName("xx") - XX("xx"), + public enum LegalGender implements ApiRequestParams.EnumParam { + @SerializedName("female") + FEMALE("female"), - @SerializedName("ye") - YE("ye"), + @SerializedName("male") + MALE("male"); - @SerializedName("yt") - YT("yt"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("za") - ZA("za"), + LegalGender(String value) { + this.value = value; + } + } - @SerializedName("zm") - ZM("zm"), + public enum PoliticalExposure implements ApiRequestParams.EnumParam { + @SerializedName("existing") + EXISTING("existing"), - @SerializedName("zw") - ZW("zw"); + @SerializedName("none") + NONE("none"); - @Getter(onMethod_ = {@Override}) - private final String value; + @Getter(onMethod_ = {@Override}) + private final String value; - Country(String value) { - this.value = value; + PoliticalExposure(String value) { + this.value = value; + } } } diff --git a/src/main/java/com/stripe/param/v2/core/AccountListParams.java b/src/main/java/com/stripe/param/v2/core/AccountListParams.java index 2fff5b18cad..a80c11fec53 100644 --- a/src/main/java/com/stripe/param/v2/core/AccountListParams.java +++ b/src/main/java/com/stripe/param/v2/core/AccountListParams.java @@ -31,10 +31,10 @@ public class AccountListParams extends ApiRequestParams { /** The upper limit on the number of accounts returned by the List Account request. */ @SerializedName("limit") - Integer limit; + Long limit; private AccountListParams( - List appliedConfigurations, Map extraParams, Integer limit) { + List appliedConfigurations, Map extraParams, Long limit) { this.appliedConfigurations = appliedConfigurations; this.extraParams = extraParams; this.limit = limit; @@ -49,7 +49,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public AccountListParams build() { @@ -109,7 +109,7 @@ public Builder putAllExtraParam(Map map) { } /** The upper limit on the number of accounts returned by the List Account request. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java b/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java index 0e2a52d5c5a..c79aadb314c 100644 --- a/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java @@ -5,6 +5,7 @@ import com.stripe.net.ApiRequestParams; import com.stripe.param.common.EmptyParam; import com.stripe.v2.Amount; +import java.math.BigDecimal; import java.time.Instant; import java.util.ArrayList; import java.util.HashMap; @@ -950,7 +951,7 @@ public static class Invoice { /** The sequence to be used on the customer's next invoice. Defaults to 1. */ @SerializedName("next_sequence") - Integer nextSequence; + Long nextSequence; /** * The prefix for the customer used to generate unique invoice numbers. Must be 3–12 @@ -968,7 +969,7 @@ private Invoice( customFields, Map extraParams, Object footer, - Integer nextSequence, + Long nextSequence, Object prefix, Rendering rendering) { this.customFields = customFields; @@ -991,7 +992,7 @@ public static class Builder { private Object footer; - private Integer nextSequence; + private Long nextSequence; private Object prefix; @@ -1084,7 +1085,7 @@ public Builder setFooter(EmptyParam footer) { } /** The sequence to be used on the customer's next invoice. Defaults to 1. */ - public Builder setNextSequence(Integer nextSequence) { + public Builder setNextSequence(Long nextSequence) { this.nextSequence = nextSequence; return this; } @@ -1656,7 +1657,7 @@ public static class Address { * 3166-1 alpha-2). */ @SerializedName("country") - Country country; + Object country; /** * Map of extra parameters for custom features not available in this client library. The @@ -1686,7 +1687,7 @@ public static class Address { private Address( Object city, - Country country, + Object country, Map extraParams, Object line1, Object line2, @@ -1708,7 +1709,7 @@ public static Builder builder() { public static class Builder { private Object city; - private Country country; + private Object country; private Map extraParams; @@ -1748,8 +1749,16 @@ public Builder setCity(EmptyParam city) { * Two-letter country code (ISO 3166-1 alpha-2). */ - public Builder setCountry( - AccountUpdateParams.Configuration.Customer.Shipping.Address.Country country) { + public Builder setCountry(String country) { + this.country = country; + return this; + } + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { this.country = country; return this; } @@ -1832,13929 +1841,2158 @@ public Builder setState(EmptyParam state) { return this; } } + } + } + } - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Merchant { + /** + * Represents the state of the configuration, and can be updated to deactivate or re-apply a + * configuration. + */ + @SerializedName("applied") + Boolean applied; - @SerializedName("aw") - AW("aw"), + /** Settings used for Bacs debit payments. */ + @SerializedName("bacs_debit_payments") + BacsDebitPayments bacsDebitPayments; - @SerializedName("ax") - AX("ax"), + /** + * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and + * other products. + */ + @SerializedName("branding") + Branding branding; - @SerializedName("az") - AZ("az"), + /** Capabilities to request on the Merchant Configuration. */ + @SerializedName("capabilities") + Capabilities capabilities; - @SerializedName("ba") - BA("ba"), + /** Card payments settings. */ + @SerializedName("card_payments") + CardPayments cardPayments; - @SerializedName("bb") - BB("bb"), + /** + * 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; - @SerializedName("bd") - BD("bd"), + /** + * The merchant category code for the merchant. MCCs are used to classify businesses based on + * the goods or services they provide. + */ + @SerializedName("mcc") + Object mcc; - @SerializedName("be") - BE("be"), + /** Statement descriptor. */ + @SerializedName("statement_descriptor") + StatementDescriptor statementDescriptor; - @SerializedName("bf") - BF("bf"), + /** Publicly available contact information for sending support issues to. */ + @SerializedName("support") + Support support; - @SerializedName("bg") - BG("bg"), + private Merchant( + Boolean applied, + BacsDebitPayments bacsDebitPayments, + Branding branding, + Capabilities capabilities, + CardPayments cardPayments, + Map extraParams, + Object mcc, + StatementDescriptor statementDescriptor, + Support support) { + this.applied = applied; + this.bacsDebitPayments = bacsDebitPayments; + this.branding = branding; + this.capabilities = capabilities; + this.cardPayments = cardPayments; + this.extraParams = extraParams; + this.mcc = mcc; + this.statementDescriptor = statementDescriptor; + this.support = support; + } - @SerializedName("bh") - BH("bh"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("bi") - BI("bi"), + public static class Builder { + private Boolean applied; - @SerializedName("bj") - BJ("bj"), + private BacsDebitPayments bacsDebitPayments; - @SerializedName("bl") - BL("bl"), + private Branding branding; - @SerializedName("bm") - BM("bm"), + private Capabilities capabilities; - @SerializedName("bn") - BN("bn"), + private CardPayments cardPayments; - @SerializedName("bo") - BO("bo"), + private Map extraParams; - @SerializedName("bq") - BQ("bq"), + private Object mcc; - @SerializedName("br") - BR("br"), + private StatementDescriptor statementDescriptor; - @SerializedName("bs") - BS("bs"), + private Support support; - @SerializedName("bt") - BT("bt"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant build() { + return new AccountUpdateParams.Configuration.Merchant( + this.applied, + this.bacsDebitPayments, + this.branding, + this.capabilities, + this.cardPayments, + this.extraParams, + this.mcc, + this.statementDescriptor, + this.support); + } - @SerializedName("bv") - BV("bv"), + /** + * Represents the state of the configuration, and can be updated to deactivate or re-apply a + * configuration. + */ + public Builder setApplied(Boolean applied) { + this.applied = applied; + return this; + } - @SerializedName("bw") - BW("bw"), + /** Settings used for Bacs debit payments. */ + public Builder setBacsDebitPayments( + AccountUpdateParams.Configuration.Merchant.BacsDebitPayments bacsDebitPayments) { + this.bacsDebitPayments = bacsDebitPayments; + return this; + } - @SerializedName("by") - BY("by"), + /** + * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and + * other products. + */ + public Builder setBranding(AccountUpdateParams.Configuration.Merchant.Branding branding) { + this.branding = branding; + return this; + } - @SerializedName("bz") - BZ("bz"), + /** Capabilities to request on the Merchant Configuration. */ + public Builder setCapabilities( + AccountUpdateParams.Configuration.Merchant.Capabilities capabilities) { + this.capabilities = capabilities; + return this; + } - @SerializedName("ca") - CA("ca"), + /** Card payments settings. */ + public Builder setCardPayments( + AccountUpdateParams.Configuration.Merchant.CardPayments cardPayments) { + this.cardPayments = cardPayments; + return this; + } - @SerializedName("cc") - CC("cc"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Merchant#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; + } - @SerializedName("cd") - CD("cd"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Merchant#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("cf") - CF("cf"), + /** + * The merchant category code for the merchant. MCCs are used to classify businesses based + * on the goods or services they provide. + */ + public Builder setMcc(String mcc) { + this.mcc = mcc; + return this; + } - @SerializedName("cg") - CG("cg"), + /** + * The merchant category code for the merchant. MCCs are used to classify businesses based + * on the goods or services they provide. + */ + public Builder setMcc(EmptyParam mcc) { + this.mcc = mcc; + return this; + } - @SerializedName("ch") - CH("ch"), + /** Statement descriptor. */ + public Builder setStatementDescriptor( + AccountUpdateParams.Configuration.Merchant.StatementDescriptor statementDescriptor) { + this.statementDescriptor = statementDescriptor; + return this; + } - @SerializedName("ci") - CI("ci"), + /** Publicly available contact information for sending support issues to. */ + public Builder setSupport(AccountUpdateParams.Configuration.Merchant.Support support) { + this.support = support; + return this; + } + } - @SerializedName("ck") - CK("ck"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BacsDebitPayments { + /** Display name for Bacs debit payments. */ + @SerializedName("display_name") + Object displayName; - @SerializedName("cl") - CL("cl"), + /** + * 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; - @SerializedName("cm") - CM("cm"), + private BacsDebitPayments(Object displayName, Map extraParams) { + this.displayName = displayName; + this.extraParams = extraParams; + } - @SerializedName("cn") - CN("cn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("co") - CO("co"), + public static class Builder { + private Object displayName; - @SerializedName("cr") - CR("cr"), + private Map extraParams; - @SerializedName("cu") - CU("cu"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.BacsDebitPayments build() { + return new AccountUpdateParams.Configuration.Merchant.BacsDebitPayments( + this.displayName, this.extraParams); + } - @SerializedName("cv") - CV("cv"), + /** Display name for Bacs debit payments. */ + public Builder setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } - @SerializedName("cw") - CW("cw"), + /** Display name for Bacs debit payments. */ + public Builder setDisplayName(EmptyParam displayName) { + this.displayName = displayName; + return this; + } - @SerializedName("cx") - CX("cx"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } + } + } - @SerializedName("dj") - DJ("dj"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Branding { + /** + * 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; - @SerializedName("dk") - DK("dk"), + /** + * ID of a file upload: + * An icon for the merchant. Must be square and at least 128px x 128px. + */ + @SerializedName("icon") + Object icon; - @SerializedName("dm") - DM("dm"), + /** + * ID of a file upload: + * A logo for the merchant that will be used in Checkout instead of the icon and without the + * merchant's name next to it if provided. Must be at least 128px x 128px. + */ + @SerializedName("logo") + Object logo; - @SerializedName("do") - DO("do"), + /** A CSS hex color value representing the primary branding color for the merchant. */ + @SerializedName("primary_color") + Object primaryColor; - @SerializedName("dz") - DZ("dz"), + /** A CSS hex color value representing the secondary branding color for the merchant. */ + @SerializedName("secondary_color") + Object secondaryColor; - @SerializedName("ec") - EC("ec"), + private Branding( + Map extraParams, + Object icon, + Object logo, + Object primaryColor, + Object secondaryColor) { + this.extraParams = extraParams; + this.icon = icon; + this.logo = logo; + this.primaryColor = primaryColor; + this.secondaryColor = secondaryColor; + } - @SerializedName("ee") - EE("ee"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("eg") - EG("eg"), + public static class Builder { + private Map extraParams; - @SerializedName("eh") - EH("eh"), + private Object icon; - @SerializedName("er") - ER("er"), + private Object logo; - @SerializedName("es") - ES("es"), + private Object primaryColor; - @SerializedName("et") - ET("et"), + private Object secondaryColor; - @SerializedName("fi") - FI("fi"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Branding build() { + return new AccountUpdateParams.Configuration.Merchant.Branding( + this.extraParams, this.icon, this.logo, this.primaryColor, this.secondaryColor); + } - @SerializedName("fj") - FJ("fj"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Merchant.Branding#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; + } - @SerializedName("fk") - FK("fk"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Merchant.Branding#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("fm") - FM("fm"), + /** + * ID of a file + * upload: An icon for the merchant. Must be square and at least 128px x 128px. + */ + public Builder setIcon(String icon) { + this.icon = icon; + return this; + } - @SerializedName("fo") - FO("fo"), + /** + * ID of a file + * upload: An icon for the merchant. Must be square and at least 128px x 128px. + */ + public Builder setIcon(EmptyParam icon) { + this.icon = icon; + return this; + } - @SerializedName("fr") - FR("fr"), + /** + * ID of a file + * upload: A logo for the merchant that will be used in Checkout instead of the icon + * and without the merchant's name next to it if provided. Must be at least 128px x 128px. + */ + public Builder setLogo(String logo) { + this.logo = logo; + return this; + } - @SerializedName("ga") - GA("ga"), + /** + * ID of a file + * upload: A logo for the merchant that will be used in Checkout instead of the icon + * and without the merchant's name next to it if provided. Must be at least 128px x 128px. + */ + public Builder setLogo(EmptyParam logo) { + this.logo = logo; + return this; + } - @SerializedName("gb") - GB("gb"), + /** A CSS hex color value representing the primary branding color for the merchant. */ + public Builder setPrimaryColor(String primaryColor) { + this.primaryColor = primaryColor; + return this; + } - @SerializedName("gd") - GD("gd"), + /** A CSS hex color value representing the primary branding color for the merchant. */ + public Builder setPrimaryColor(EmptyParam primaryColor) { + this.primaryColor = primaryColor; + return this; + } - @SerializedName("ge") - GE("ge"), + /** A CSS hex color value representing the secondary branding color for the merchant. */ + public Builder setSecondaryColor(String secondaryColor) { + this.secondaryColor = secondaryColor; + return this; + } - @SerializedName("gf") - GF("gf"), + /** A CSS hex color value representing the secondary branding color for the merchant. */ + public Builder setSecondaryColor(EmptyParam secondaryColor) { + this.secondaryColor = secondaryColor; + return this; + } + } + } - @SerializedName("gg") - GG("gg"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Capabilities { + /** Allow the merchant to process ACH debit payments. */ + @SerializedName("ach_debit_payments") + AchDebitPayments achDebitPayments; - @SerializedName("gh") - GH("gh"), + /** Allow the merchant to process ACSS debit payments. */ + @SerializedName("acss_debit_payments") + AcssDebitPayments acssDebitPayments; - @SerializedName("gi") - GI("gi"), + /** Allow the merchant to process Affirm payments. */ + @SerializedName("affirm_payments") + AffirmPayments affirmPayments; - @SerializedName("gl") - GL("gl"), + /** Allow the merchant to process Afterpay/Clearpay payments. */ + @SerializedName("afterpay_clearpay_payments") + AfterpayClearpayPayments afterpayClearpayPayments; - @SerializedName("gm") - GM("gm"), + /** Allow the merchant to process Alma payments. */ + @SerializedName("alma_payments") + AlmaPayments almaPayments; - @SerializedName("gn") - GN("gn"), + /** Allow the merchant to process Amazon Pay payments. */ + @SerializedName("amazon_pay_payments") + AmazonPayPayments amazonPayPayments; - @SerializedName("gp") - GP("gp"), + /** Allow the merchant to process Australian BECS Direct Debit payments. */ + @SerializedName("au_becs_debit_payments") + AuBecsDebitPayments auBecsDebitPayments; - @SerializedName("gq") - GQ("gq"), + /** Allow the merchant to process BACS Direct Debit payments. */ + @SerializedName("bacs_debit_payments") + BacsDebitPayments bacsDebitPayments; - @SerializedName("gr") - GR("gr"), + /** Allow the merchant to process Bancontact payments. */ + @SerializedName("bancontact_payments") + BancontactPayments bancontactPayments; - @SerializedName("gs") - GS("gs"), + /** Allow the merchant to process BLIK payments. */ + @SerializedName("blik_payments") + BlikPayments blikPayments; - @SerializedName("gt") - GT("gt"), + /** Allow the merchant to process Boleto payments. */ + @SerializedName("boleto_payments") + BoletoPayments boletoPayments; - @SerializedName("gu") - GU("gu"), + /** Allow the merchant to collect card payments. */ + @SerializedName("card_payments") + CardPayments cardPayments; - @SerializedName("gw") - GW("gw"), + /** Allow the merchant to process Cartes Bancaires payments. */ + @SerializedName("cartes_bancaires_payments") + CartesBancairesPayments cartesBancairesPayments; - @SerializedName("gy") - GY("gy"), + /** Allow the merchant to process Cash App payments. */ + @SerializedName("cashapp_payments") + CashappPayments cashappPayments; - @SerializedName("hk") - HK("hk"), + /** Allow the merchant to process EPS payments. */ + @SerializedName("eps_payments") + EpsPayments epsPayments; - @SerializedName("hm") - HM("hm"), + /** + * 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; - @SerializedName("hn") - HN("hn"), + /** Allow the merchant to process FPX payments. */ + @SerializedName("fpx_payments") + FpxPayments fpxPayments; - @SerializedName("hr") - HR("hr"), + /** Allow the merchant to process UK bank transfer payments. */ + @SerializedName("gb_bank_transfer_payments") + GbBankTransferPayments gbBankTransferPayments; - @SerializedName("ht") - HT("ht"), + /** Allow the merchant to process GrabPay payments. */ + @SerializedName("grabpay_payments") + GrabpayPayments grabpayPayments; - @SerializedName("hu") - HU("hu"), + /** Allow the merchant to process iDEAL payments. */ + @SerializedName("ideal_payments") + IdealPayments idealPayments; - @SerializedName("id") - ID("id"), + /** Allow the merchant to process JCB card payments. */ + @SerializedName("jcb_payments") + JcbPayments jcbPayments; - @SerializedName("ie") - IE("ie"), + /** Allow the merchant to process Japanese bank transfer payments. */ + @SerializedName("jp_bank_transfer_payments") + JpBankTransferPayments jpBankTransferPayments; - @SerializedName("il") - IL("il"), + /** Allow the merchant to process Kakao Pay payments. */ + @SerializedName("kakao_pay_payments") + KakaoPayPayments kakaoPayPayments; - @SerializedName("im") - IM("im"), + /** Allow the merchant to process Klarna payments. */ + @SerializedName("klarna_payments") + KlarnaPayments klarnaPayments; - @SerializedName("in") - IN("in"), + /** Allow the merchant to process Konbini convenience store payments. */ + @SerializedName("konbini_payments") + KonbiniPayments konbiniPayments; - @SerializedName("io") - IO("io"), + /** Allow the merchant to process Korean card payments. */ + @SerializedName("kr_card_payments") + KrCardPayments krCardPayments; - @SerializedName("iq") - IQ("iq"), + /** Allow the merchant to process Link payments. */ + @SerializedName("link_payments") + LinkPayments linkPayments; - @SerializedName("ir") - IR("ir"), + /** Allow the merchant to process MobilePay payments. */ + @SerializedName("mobilepay_payments") + MobilepayPayments mobilepayPayments; - @SerializedName("is") - IS("is"), + /** Allow the merchant to process Multibanco payments. */ + @SerializedName("multibanco_payments") + MultibancoPayments multibancoPayments; - @SerializedName("it") - IT("it"), + /** Allow the merchant to process Mexican bank transfer payments. */ + @SerializedName("mx_bank_transfer_payments") + MxBankTransferPayments mxBankTransferPayments; - @SerializedName("je") - JE("je"), + /** Allow the merchant to process Naver Pay payments. */ + @SerializedName("naver_pay_payments") + NaverPayPayments naverPayPayments; - @SerializedName("jm") - JM("jm"), + /** Allow the merchant to process OXXO payments. */ + @SerializedName("oxxo_payments") + OxxoPayments oxxoPayments; - @SerializedName("jo") - JO("jo"), + /** Allow the merchant to process Przelewy24 (P24) payments. */ + @SerializedName("p24_payments") + P24Payments p24Payments; - @SerializedName("jp") - JP("jp"), + /** Allow the merchant to process Pay by Bank payments. */ + @SerializedName("pay_by_bank_payments") + PayByBankPayments payByBankPayments; - @SerializedName("ke") - KE("ke"), + /** Allow the merchant to process PAYCO payments. */ + @SerializedName("payco_payments") + PaycoPayments paycoPayments; - @SerializedName("kg") - KG("kg"), + /** Allow the merchant to process PayNow payments. */ + @SerializedName("paynow_payments") + PaynowPayments paynowPayments; - @SerializedName("kh") - KH("kh"), + /** Allow the merchant to process PromptPay payments. */ + @SerializedName("promptpay_payments") + PromptpayPayments promptpayPayments; - @SerializedName("ki") - KI("ki"), + /** Allow the merchant to process Revolut Pay payments. */ + @SerializedName("revolut_pay_payments") + RevolutPayPayments revolutPayPayments; - @SerializedName("km") - KM("km"), + /** Allow the merchant to process Samsung Pay payments. */ + @SerializedName("samsung_pay_payments") + SamsungPayPayments samsungPayPayments; - @SerializedName("kn") - KN("kn"), + /** Allow the merchant to process SEPA bank transfer payments. */ + @SerializedName("sepa_bank_transfer_payments") + SepaBankTransferPayments sepaBankTransferPayments; - @SerializedName("kp") - KP("kp"), + /** Allow the merchant to process SEPA Direct Debit payments. */ + @SerializedName("sepa_debit_payments") + SepaDebitPayments sepaDebitPayments; - @SerializedName("kr") - KR("kr"), + /** Allow the merchant to process Swish payments. */ + @SerializedName("swish_payments") + SwishPayments swishPayments; - @SerializedName("kw") - KW("kw"), + /** Allow the merchant to process TWINT payments. */ + @SerializedName("twint_payments") + TwintPayments twintPayments; - @SerializedName("ky") - KY("ky"), + /** Allow the merchant to process US bank transfer payments. */ + @SerializedName("us_bank_transfer_payments") + UsBankTransferPayments usBankTransferPayments; - @SerializedName("kz") - KZ("kz"), + /** Allow the merchant to process Zip payments. */ + @SerializedName("zip_payments") + ZipPayments zipPayments; - @SerializedName("la") - LA("la"), + private Capabilities( + AchDebitPayments achDebitPayments, + AcssDebitPayments acssDebitPayments, + AffirmPayments affirmPayments, + AfterpayClearpayPayments afterpayClearpayPayments, + AlmaPayments almaPayments, + AmazonPayPayments amazonPayPayments, + AuBecsDebitPayments auBecsDebitPayments, + BacsDebitPayments bacsDebitPayments, + BancontactPayments bancontactPayments, + BlikPayments blikPayments, + BoletoPayments boletoPayments, + CardPayments cardPayments, + CartesBancairesPayments cartesBancairesPayments, + CashappPayments cashappPayments, + EpsPayments epsPayments, + Map extraParams, + FpxPayments fpxPayments, + GbBankTransferPayments gbBankTransferPayments, + GrabpayPayments grabpayPayments, + IdealPayments idealPayments, + JcbPayments jcbPayments, + JpBankTransferPayments jpBankTransferPayments, + KakaoPayPayments kakaoPayPayments, + KlarnaPayments klarnaPayments, + KonbiniPayments konbiniPayments, + KrCardPayments krCardPayments, + LinkPayments linkPayments, + MobilepayPayments mobilepayPayments, + MultibancoPayments multibancoPayments, + MxBankTransferPayments mxBankTransferPayments, + NaverPayPayments naverPayPayments, + OxxoPayments oxxoPayments, + P24Payments p24Payments, + PayByBankPayments payByBankPayments, + PaycoPayments paycoPayments, + PaynowPayments paynowPayments, + PromptpayPayments promptpayPayments, + RevolutPayPayments revolutPayPayments, + SamsungPayPayments samsungPayPayments, + SepaBankTransferPayments sepaBankTransferPayments, + SepaDebitPayments sepaDebitPayments, + SwishPayments swishPayments, + TwintPayments twintPayments, + UsBankTransferPayments usBankTransferPayments, + ZipPayments zipPayments) { + this.achDebitPayments = achDebitPayments; + this.acssDebitPayments = acssDebitPayments; + this.affirmPayments = affirmPayments; + this.afterpayClearpayPayments = afterpayClearpayPayments; + this.almaPayments = almaPayments; + this.amazonPayPayments = amazonPayPayments; + this.auBecsDebitPayments = auBecsDebitPayments; + this.bacsDebitPayments = bacsDebitPayments; + this.bancontactPayments = bancontactPayments; + this.blikPayments = blikPayments; + this.boletoPayments = boletoPayments; + this.cardPayments = cardPayments; + this.cartesBancairesPayments = cartesBancairesPayments; + this.cashappPayments = cashappPayments; + this.epsPayments = epsPayments; + this.extraParams = extraParams; + this.fpxPayments = fpxPayments; + this.gbBankTransferPayments = gbBankTransferPayments; + this.grabpayPayments = grabpayPayments; + this.idealPayments = idealPayments; + this.jcbPayments = jcbPayments; + this.jpBankTransferPayments = jpBankTransferPayments; + this.kakaoPayPayments = kakaoPayPayments; + this.klarnaPayments = klarnaPayments; + this.konbiniPayments = konbiniPayments; + this.krCardPayments = krCardPayments; + this.linkPayments = linkPayments; + this.mobilepayPayments = mobilepayPayments; + this.multibancoPayments = multibancoPayments; + this.mxBankTransferPayments = mxBankTransferPayments; + this.naverPayPayments = naverPayPayments; + this.oxxoPayments = oxxoPayments; + this.p24Payments = p24Payments; + this.payByBankPayments = payByBankPayments; + this.paycoPayments = paycoPayments; + this.paynowPayments = paynowPayments; + this.promptpayPayments = promptpayPayments; + this.revolutPayPayments = revolutPayPayments; + this.samsungPayPayments = samsungPayPayments; + this.sepaBankTransferPayments = sepaBankTransferPayments; + this.sepaDebitPayments = sepaDebitPayments; + this.swishPayments = swishPayments; + this.twintPayments = twintPayments; + this.usBankTransferPayments = usBankTransferPayments; + this.zipPayments = zipPayments; + } - @SerializedName("lb") - LB("lb"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("lc") - LC("lc"), + public static class Builder { + private AchDebitPayments achDebitPayments; - @SerializedName("li") - LI("li"), + private AcssDebitPayments acssDebitPayments; - @SerializedName("lk") - LK("lk"), + private AffirmPayments affirmPayments; - @SerializedName("lr") - LR("lr"), + private AfterpayClearpayPayments afterpayClearpayPayments; - @SerializedName("ls") - LS("ls"), + private AlmaPayments almaPayments; - @SerializedName("lt") - LT("lt"), + private AmazonPayPayments amazonPayPayments; - @SerializedName("lu") - LU("lu"), + private AuBecsDebitPayments auBecsDebitPayments; - @SerializedName("lv") - LV("lv"), + private BacsDebitPayments bacsDebitPayments; - @SerializedName("ly") - LY("ly"), + private BancontactPayments bancontactPayments; - @SerializedName("ma") - MA("ma"), + private BlikPayments blikPayments; - @SerializedName("mc") - MC("mc"), + private BoletoPayments boletoPayments; - @SerializedName("md") - MD("md"), + private CardPayments cardPayments; - @SerializedName("me") - ME("me"), + private CartesBancairesPayments cartesBancairesPayments; - @SerializedName("mf") - MF("mf"), + private CashappPayments cashappPayments; - @SerializedName("mg") - MG("mg"), + private EpsPayments epsPayments; - @SerializedName("mh") - MH("mh"), + private Map extraParams; - @SerializedName("mk") - MK("mk"), + private FpxPayments fpxPayments; - @SerializedName("ml") - ML("ml"), + private GbBankTransferPayments gbBankTransferPayments; - @SerializedName("mm") - MM("mm"), + private GrabpayPayments grabpayPayments; - @SerializedName("mn") - MN("mn"), + private IdealPayments idealPayments; - @SerializedName("mo") - MO("mo"), + private JcbPayments jcbPayments; - @SerializedName("mp") - MP("mp"), + private JpBankTransferPayments jpBankTransferPayments; - @SerializedName("mq") - MQ("mq"), + private KakaoPayPayments kakaoPayPayments; - @SerializedName("mr") - MR("mr"), + private KlarnaPayments klarnaPayments; - @SerializedName("ms") - MS("ms"), + private KonbiniPayments konbiniPayments; - @SerializedName("mt") - MT("mt"), + private KrCardPayments krCardPayments; - @SerializedName("mu") - MU("mu"), + private LinkPayments linkPayments; - @SerializedName("mv") - MV("mv"), + private MobilepayPayments mobilepayPayments; - @SerializedName("mw") - MW("mw"), + private MultibancoPayments multibancoPayments; - @SerializedName("mx") - MX("mx"), + private MxBankTransferPayments mxBankTransferPayments; - @SerializedName("my") - MY("my"), + private NaverPayPayments naverPayPayments; - @SerializedName("mz") - MZ("mz"), + private OxxoPayments oxxoPayments; - @SerializedName("na") - NA("na"), + private P24Payments p24Payments; - @SerializedName("nc") - NC("nc"), + private PayByBankPayments payByBankPayments; - @SerializedName("ne") - NE("ne"), + private PaycoPayments paycoPayments; - @SerializedName("nf") - NF("nf"), + private PaynowPayments paynowPayments; - @SerializedName("ng") - NG("ng"), + private PromptpayPayments promptpayPayments; - @SerializedName("ni") - NI("ni"), + private RevolutPayPayments revolutPayPayments; - @SerializedName("nl") - NL("nl"), + private SamsungPayPayments samsungPayPayments; - @SerializedName("no") - NO("no"), + private SepaBankTransferPayments sepaBankTransferPayments; - @SerializedName("np") - NP("np"), + private SepaDebitPayments sepaDebitPayments; - @SerializedName("nr") - NR("nr"), + private SwishPayments swishPayments; - @SerializedName("nu") - NU("nu"), + private TwintPayments twintPayments; - @SerializedName("nz") - NZ("nz"), + private UsBankTransferPayments usBankTransferPayments; - @SerializedName("om") - OM("om"), + private ZipPayments zipPayments; - @SerializedName("pa") - PA("pa"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities( + this.achDebitPayments, + this.acssDebitPayments, + this.affirmPayments, + this.afterpayClearpayPayments, + this.almaPayments, + this.amazonPayPayments, + this.auBecsDebitPayments, + this.bacsDebitPayments, + this.bancontactPayments, + this.blikPayments, + this.boletoPayments, + this.cardPayments, + this.cartesBancairesPayments, + this.cashappPayments, + this.epsPayments, + this.extraParams, + this.fpxPayments, + this.gbBankTransferPayments, + this.grabpayPayments, + this.idealPayments, + this.jcbPayments, + this.jpBankTransferPayments, + this.kakaoPayPayments, + this.klarnaPayments, + this.konbiniPayments, + this.krCardPayments, + this.linkPayments, + this.mobilepayPayments, + this.multibancoPayments, + this.mxBankTransferPayments, + this.naverPayPayments, + this.oxxoPayments, + this.p24Payments, + this.payByBankPayments, + this.paycoPayments, + this.paynowPayments, + this.promptpayPayments, + this.revolutPayPayments, + this.samsungPayPayments, + this.sepaBankTransferPayments, + this.sepaDebitPayments, + this.swishPayments, + this.twintPayments, + this.usBankTransferPayments, + this.zipPayments); + } - @SerializedName("pe") - PE("pe"), + /** Allow the merchant to process ACH debit payments. */ + public Builder setAchDebitPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.AchDebitPayments + achDebitPayments) { + this.achDebitPayments = achDebitPayments; + return this; + } - @SerializedName("pf") - PF("pf"), + /** Allow the merchant to process ACSS debit payments. */ + public Builder setAcssDebitPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.AcssDebitPayments + acssDebitPayments) { + this.acssDebitPayments = acssDebitPayments; + return this; + } - @SerializedName("pg") - PG("pg"), + /** Allow the merchant to process Affirm payments. */ + public Builder setAffirmPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.AffirmPayments + affirmPayments) { + this.affirmPayments = affirmPayments; + return this; + } - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), + /** Allow the merchant to process Afterpay/Clearpay payments. */ + public Builder setAfterpayClearpayPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments + afterpayClearpayPayments) { + this.afterpayClearpayPayments = afterpayClearpayPayments; + return this; + } - @SerializedName("pn") - PN("pn"), + /** Allow the merchant to process Alma payments. */ + public Builder setAlmaPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.AlmaPayments almaPayments) { + this.almaPayments = almaPayments; + return this; + } - @SerializedName("pr") - PR("pr"), + /** Allow the merchant to process Amazon Pay payments. */ + public Builder setAmazonPayPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.AmazonPayPayments + amazonPayPayments) { + this.amazonPayPayments = amazonPayPayments; + return this; + } - @SerializedName("ps") - PS("ps"), + /** Allow the merchant to process Australian BECS Direct Debit payments. */ + public Builder setAuBecsDebitPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments + auBecsDebitPayments) { + this.auBecsDebitPayments = auBecsDebitPayments; + return this; + } - @SerializedName("pt") - PT("pt"), + /** Allow the merchant to process BACS Direct Debit payments. */ + public Builder setBacsDebitPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.BacsDebitPayments + bacsDebitPayments) { + this.bacsDebitPayments = bacsDebitPayments; + return this; + } - @SerializedName("pw") - PW("pw"), + /** Allow the merchant to process Bancontact payments. */ + public Builder setBancontactPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.BancontactPayments + bancontactPayments) { + this.bancontactPayments = bancontactPayments; + return this; + } - @SerializedName("py") - PY("py"), + /** Allow the merchant to process BLIK payments. */ + public Builder setBlikPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.BlikPayments blikPayments) { + this.blikPayments = blikPayments; + return this; + } - @SerializedName("qa") - QA("qa"), + /** Allow the merchant to process Boleto payments. */ + public Builder setBoletoPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.BoletoPayments + boletoPayments) { + this.boletoPayments = boletoPayments; + return this; + } - @SerializedName("qz") - QZ("qz"), + /** Allow the merchant to collect card payments. */ + public Builder setCardPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.CardPayments cardPayments) { + this.cardPayments = cardPayments; + return this; + } - @SerializedName("re") - RE("re"), + /** Allow the merchant to process Cartes Bancaires payments. */ + public Builder setCartesBancairesPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments + cartesBancairesPayments) { + this.cartesBancairesPayments = cartesBancairesPayments; + return this; + } - @SerializedName("ro") - RO("ro"), + /** Allow the merchant to process Cash App payments. */ + public Builder setCashappPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.CashappPayments + cashappPayments) { + this.cashappPayments = cashappPayments; + return this; + } - @SerializedName("rs") - RS("rs"), + /** Allow the merchant to process EPS payments. */ + public Builder setEpsPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.EpsPayments epsPayments) { + this.epsPayments = epsPayments; + return this; + } - @SerializedName("ru") - RU("ru"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("rw") - RW("rw"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("sa") - SA("sa"), + /** Allow the merchant to process FPX payments. */ + public Builder setFpxPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.FpxPayments fpxPayments) { + this.fpxPayments = fpxPayments; + return this; + } - @SerializedName("sb") - SB("sb"), + /** Allow the merchant to process UK bank transfer payments. */ + public Builder setGbBankTransferPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments + gbBankTransferPayments) { + this.gbBankTransferPayments = gbBankTransferPayments; + return this; + } - @SerializedName("sc") - SC("sc"), + /** Allow the merchant to process GrabPay payments. */ + public Builder setGrabpayPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.GrabpayPayments + grabpayPayments) { + this.grabpayPayments = grabpayPayments; + return this; + } - @SerializedName("sd") - SD("sd"), + /** Allow the merchant to process iDEAL payments. */ + public Builder setIdealPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.IdealPayments idealPayments) { + this.idealPayments = idealPayments; + return this; + } - @SerializedName("se") - SE("se"), + /** Allow the merchant to process JCB card payments. */ + public Builder setJcbPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.JcbPayments jcbPayments) { + this.jcbPayments = jcbPayments; + return this; + } - @SerializedName("sg") - SG("sg"), + /** Allow the merchant to process Japanese bank transfer payments. */ + public Builder setJpBankTransferPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments + jpBankTransferPayments) { + this.jpBankTransferPayments = jpBankTransferPayments; + return this; + } - @SerializedName("sh") - SH("sh"), + /** Allow the merchant to process Kakao Pay payments. */ + public Builder setKakaoPayPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.KakaoPayPayments + kakaoPayPayments) { + this.kakaoPayPayments = kakaoPayPayments; + return this; + } - @SerializedName("si") - SI("si"), + /** Allow the merchant to process Klarna payments. */ + public Builder setKlarnaPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.KlarnaPayments + klarnaPayments) { + this.klarnaPayments = klarnaPayments; + return this; + } - @SerializedName("sj") - SJ("sj"), + /** Allow the merchant to process Konbini convenience store payments. */ + public Builder setKonbiniPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.KonbiniPayments + konbiniPayments) { + this.konbiniPayments = konbiniPayments; + return this; + } - @SerializedName("sk") - SK("sk"), + /** Allow the merchant to process Korean card payments. */ + public Builder setKrCardPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.KrCardPayments + krCardPayments) { + this.krCardPayments = krCardPayments; + return this; + } - @SerializedName("sl") - SL("sl"), + /** Allow the merchant to process Link payments. */ + public Builder setLinkPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.LinkPayments linkPayments) { + this.linkPayments = linkPayments; + return this; + } - @SerializedName("sm") - SM("sm"), + /** Allow the merchant to process MobilePay payments. */ + public Builder setMobilepayPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.MobilepayPayments + mobilepayPayments) { + this.mobilepayPayments = mobilepayPayments; + return this; + } - @SerializedName("sn") - SN("sn"), + /** Allow the merchant to process Multibanco payments. */ + public Builder setMultibancoPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.MultibancoPayments + multibancoPayments) { + this.multibancoPayments = multibancoPayments; + return this; + } - @SerializedName("so") - SO("so"), + /** Allow the merchant to process Mexican bank transfer payments. */ + public Builder setMxBankTransferPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments + mxBankTransferPayments) { + this.mxBankTransferPayments = mxBankTransferPayments; + return this; + } - @SerializedName("sr") - SR("sr"), + /** Allow the merchant to process Naver Pay payments. */ + public Builder setNaverPayPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.NaverPayPayments + naverPayPayments) { + this.naverPayPayments = naverPayPayments; + return this; + } - @SerializedName("ss") - SS("ss"), + /** Allow the merchant to process OXXO payments. */ + public Builder setOxxoPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.OxxoPayments oxxoPayments) { + this.oxxoPayments = oxxoPayments; + return this; + } - @SerializedName("st") - ST("st"), + /** Allow the merchant to process Przelewy24 (P24) payments. */ + public Builder setP24Payments( + AccountUpdateParams.Configuration.Merchant.Capabilities.P24Payments p24Payments) { + this.p24Payments = p24Payments; + return this; + } - @SerializedName("sv") - SV("sv"), + /** Allow the merchant to process Pay by Bank payments. */ + public Builder setPayByBankPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.PayByBankPayments + payByBankPayments) { + this.payByBankPayments = payByBankPayments; + return this; + } - @SerializedName("sx") - SX("sx"), + /** Allow the merchant to process PAYCO payments. */ + public Builder setPaycoPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.PaycoPayments paycoPayments) { + this.paycoPayments = paycoPayments; + return this; + } - @SerializedName("sy") - SY("sy"), + /** Allow the merchant to process PayNow payments. */ + public Builder setPaynowPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.PaynowPayments + paynowPayments) { + this.paynowPayments = paynowPayments; + return this; + } - @SerializedName("sz") - SZ("sz"), + /** Allow the merchant to process PromptPay payments. */ + public Builder setPromptpayPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.PromptpayPayments + promptpayPayments) { + this.promptpayPayments = promptpayPayments; + return this; + } - @SerializedName("tc") - TC("tc"), + /** Allow the merchant to process Revolut Pay payments. */ + public Builder setRevolutPayPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.RevolutPayPayments + revolutPayPayments) { + this.revolutPayPayments = revolutPayPayments; + return this; + } - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), + /** Allow the merchant to process Samsung Pay payments. */ + public Builder setSamsungPayPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.SamsungPayPayments + samsungPayPayments) { + this.samsungPayPayments = samsungPayPayments; + return this; + } - @SerializedName("tj") - TJ("tj"), + /** Allow the merchant to process SEPA bank transfer payments. */ + public Builder setSepaBankTransferPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments + sepaBankTransferPayments) { + this.sepaBankTransferPayments = sepaBankTransferPayments; + return this; + } - @SerializedName("tk") - TK("tk"), + /** Allow the merchant to process SEPA Direct Debit payments. */ + public Builder setSepaDebitPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.SepaDebitPayments + sepaDebitPayments) { + this.sepaDebitPayments = sepaDebitPayments; + return this; + } - @SerializedName("tl") - TL("tl"), + /** Allow the merchant to process Swish payments. */ + public Builder setSwishPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.SwishPayments swishPayments) { + this.swishPayments = swishPayments; + return this; + } - @SerializedName("tm") - TM("tm"), + /** Allow the merchant to process TWINT payments. */ + public Builder setTwintPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.TwintPayments twintPayments) { + this.twintPayments = twintPayments; + return this; + } - @SerializedName("tn") - TN("tn"), + /** Allow the merchant to process US bank transfer payments. */ + public Builder setUsBankTransferPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments + usBankTransferPayments) { + this.usBankTransferPayments = usBankTransferPayments; + return this; + } - @SerializedName("to") - TO("to"), + /** Allow the merchant to process Zip payments. */ + public Builder setZipPayments( + AccountUpdateParams.Configuration.Merchant.Capabilities.ZipPayments zipPayments) { + this.zipPayments = zipPayments; + return this; + } + } - @SerializedName("tr") - TR("tr"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AchDebitPayments { + /** + * 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; - @SerializedName("tt") - TT("tt"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("tv") - TV("tv"), + private AchDebitPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("tw") - TW("tw"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("tz") - TZ("tz"), + public static class Builder { + private Map extraParams; - @SerializedName("ua") - UA("ua"), + private Boolean requested; - @SerializedName("ug") - UG("ug"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.AchDebitPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.AchDebitPayments( + this.extraParams, this.requested); + } - @SerializedName("um") - UM("um"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.AchDebitPayments#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; + } - @SerializedName("us") - US("us"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.AchDebitPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("uy") - UY("uy"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("uz") - UZ("uz"), + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - @SerializedName("va") - VA("va"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("vc") - VC("vc"), + private AcssDebitPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("ve") - VE("ve"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("vg") - VG("vg"), + public static class Builder { + private Map extraParams; - @SerializedName("vi") - VI("vi"), + private Boolean requested; - @SerializedName("vn") - VN("vn"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.AcssDebitPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.AcssDebitPayments( + this.extraParams, this.requested); + } - @SerializedName("vu") - VU("vu"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("wf") - WF("wf"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("ws") - WS("ws"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("xx") - XX("xx"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AffirmPayments { + /** + * 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; - @SerializedName("ye") - YE("ye"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("yt") - YT("yt"), + private AffirmPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("za") - ZA("za"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("zm") - ZM("zm"), + public static class Builder { + private Map extraParams; - @SerializedName("zw") - ZW("zw"); + private Boolean requested; - @Getter(onMethod_ = {@Override}) - private final String value; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.AffirmPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.AffirmPayments( + this.extraParams, this.requested); + } - Country(String value) { - this.value = value; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.AffirmPayments#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; } - } - } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Merchant { - /** - * Represents the state of the configuration, and can be updated to deactivate or re-apply a - * configuration. - */ - @SerializedName("applied") - Boolean applied; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.AffirmPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - /** Settings used for Bacs debit payments. */ - @SerializedName("bacs_debit_payments") - BacsDebitPayments bacsDebitPayments; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - /** - * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and - * other products. - */ - @SerializedName("branding") - Branding branding; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - /** Capabilities to request on the Merchant Configuration. */ - @SerializedName("capabilities") - Capabilities capabilities; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Card payments settings. */ - @SerializedName("card_payments") - CardPayments cardPayments; + private AfterpayClearpayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** - * 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; + public static Builder builder() { + return new Builder(); + } - /** - * The merchant category code for the merchant. MCCs are used to classify businesses based on - * the goods or services they provide. - */ - @SerializedName("mcc") - Object mcc; + public static class Builder { + private Map extraParams; - /** Statement descriptor. */ - @SerializedName("statement_descriptor") - StatementDescriptor statementDescriptor; + private Boolean requested; - /** Publicly available contact information for sending support issues to. */ - @SerializedName("support") - Support support; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities + .AfterpayClearpayPayments(this.extraParams, this.requested); + } - private Merchant( - Boolean applied, - BacsDebitPayments bacsDebitPayments, - Branding branding, - Capabilities capabilities, - CardPayments cardPayments, - Map extraParams, - Object mcc, - StatementDescriptor statementDescriptor, - Support support) { - this.applied = applied; - this.bacsDebitPayments = bacsDebitPayments; - this.branding = branding; - this.capabilities = capabilities; - this.cardPayments = cardPayments; - this.extraParams = extraParams; - this.mcc = mcc; - this.statementDescriptor = statementDescriptor; - this.support = support; - } + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - public static Builder builder() { - return new Builder(); - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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 static class Builder { - private Boolean applied; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - private BacsDebitPayments bacsDebitPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AlmaPayments { + /** + * 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 Branding branding; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private Capabilities capabilities; + private AlmaPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - private CardPayments cardPayments; + public static Builder builder() { + return new Builder(); + } - private Map extraParams; + public static class Builder { + private Map extraParams; - private Object mcc; + private Boolean requested; - private StatementDescriptor statementDescriptor; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.AlmaPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.AlmaPayments( + this.extraParams, this.requested); + } - private Support support; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.AlmaPayments#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; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant build() { - return new AccountUpdateParams.Configuration.Merchant( - this.applied, - this.bacsDebitPayments, - this.branding, - this.capabilities, - this.cardPayments, - this.extraParams, - this.mcc, - this.statementDescriptor, - this.support); - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.AlmaPayments#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - /** - * Represents the state of the configuration, and can be updated to deactivate or re-apply a - * configuration. - */ - public Builder setApplied(Boolean applied) { - this.applied = applied; - return this; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } - /** Settings used for Bacs debit payments. */ - public Builder setBacsDebitPayments( - AccountUpdateParams.Configuration.Merchant.BacsDebitPayments bacsDebitPayments) { - this.bacsDebitPayments = bacsDebitPayments; - return this; - } - - /** - * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and - * other products. - */ - public Builder setBranding(AccountUpdateParams.Configuration.Merchant.Branding branding) { - this.branding = branding; - return this; - } - - /** Capabilities to request on the Merchant Configuration. */ - public Builder setCapabilities( - AccountUpdateParams.Configuration.Merchant.Capabilities capabilities) { - this.capabilities = capabilities; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AmazonPayPayments { + /** + * 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; - /** Card payments settings. */ - public Builder setCardPayments( - AccountUpdateParams.Configuration.Merchant.CardPayments cardPayments) { - this.cardPayments = cardPayments; - return this; - } + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Merchant#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + private AmazonPayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Merchant#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + public static Builder builder() { + return new Builder(); } - this.extraParams.putAll(map); - return this; - } - - /** - * The merchant category code for the merchant. 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 merchant category code for the merchant. MCCs are used to classify businesses based - * on the goods or services they provide. - */ - public Builder setMcc(EmptyParam mcc) { - this.mcc = mcc; - return this; - } - /** Statement descriptor. */ - public Builder setStatementDescriptor( - AccountUpdateParams.Configuration.Merchant.StatementDescriptor statementDescriptor) { - this.statementDescriptor = statementDescriptor; - return this; - } + public static class Builder { + private Map extraParams; - /** Publicly available contact information for sending support issues to. */ - public Builder setSupport(AccountUpdateParams.Configuration.Merchant.Support support) { - this.support = support; - return this; - } - } + private Boolean requested; - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BacsDebitPayments { - /** Display name for Bacs debit payments. */ - @SerializedName("display_name") - Object displayName; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.AmazonPayPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.AmazonPayPayments( + this.extraParams, this.requested); + } - /** - * 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; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.AmazonPayPayments#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; + } - private BacsDebitPayments(Object displayName, Map extraParams) { - this.displayName = displayName; - this.extraParams = extraParams; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.AmazonPayPayments#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 Builder builder() { - return new Builder(); + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } - public static class Builder { - private Object displayName; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - private Map extraParams; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.BacsDebitPayments build() { - return new AccountUpdateParams.Configuration.Merchant.BacsDebitPayments( - this.displayName, this.extraParams); + private AuBecsDebitPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - /** Display name for Bacs debit payments. */ - public Builder setDisplayName(String displayName) { - this.displayName = displayName; - return this; + public static Builder builder() { + return new Builder(); } - /** Display name for Bacs debit payments. */ - public Builder setDisplayName(EmptyParam displayName) { - this.displayName = displayName; - return this; - } + public static class Builder { + private Map extraParams; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Configuration.Merchant.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; - } + private Boolean requested; - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Configuration.Merchant.BacsDebitPayments#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities + .AuBecsDebitPayments(this.extraParams, this.requested); } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Branding { - /** - * 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; - - /** - * ID of a file upload: - * An icon for the merchant. Must be square and at least 128px x 128px. - */ - @SerializedName("icon") - Object icon; - - /** - * ID of a file upload: - * A logo for the merchant that will be used in Checkout instead of the icon and without the - * merchant's name next to it if provided. Must be at least 128px x 128px. - */ - @SerializedName("logo") - Object logo; - - /** A CSS hex color value representing the primary branding color for the merchant. */ - @SerializedName("primary_color") - Object primaryColor; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - /** A CSS hex color value representing the secondary branding color for the merchant. */ - @SerializedName("secondary_color") - Object secondaryColor; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - private Branding( - Map extraParams, - Object icon, - Object logo, - Object primaryColor, - Object secondaryColor) { - this.extraParams = extraParams; - this.icon = icon; - this.logo = logo; - this.primaryColor = primaryColor; - this.secondaryColor = secondaryColor; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } - public static Builder builder() { - return new Builder(); - } + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - public static class Builder { - private Map extraParams; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private Object icon; + private BacsDebitPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - private Object logo; + public static Builder builder() { + return new Builder(); + } - private Object primaryColor; + public static class Builder { + private Map extraParams; - private Object secondaryColor; + private Boolean requested; - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Branding build() { - return new AccountUpdateParams.Configuration.Merchant.Branding( - this.extraParams, this.icon, this.logo, this.primaryColor, this.secondaryColor); - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.BacsDebitPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 AccountUpdateParams.Configuration.Merchant.Branding#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Merchant.Branding#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; } - this.extraParams.putAll(map); - return this; - } - /** - * ID of a file - * upload: An icon for the merchant. Must be square and at least 128px x 128px. - */ - public Builder setIcon(String icon) { - this.icon = icon; - return this; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } + } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BancontactPayments { /** - * ID of a file - * upload: An icon for the merchant. Must be square and at least 128px x 128px. + * 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. */ - public Builder setIcon(EmptyParam icon) { - this.icon = icon; - return this; - } + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; /** - * ID of a file - * upload: A logo for the merchant that will be used in Checkout instead of the icon - * and without the merchant's name next to it if provided. Must be at least 128px x 128px. + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. */ - public Builder setLogo(String logo) { - this.logo = logo; - return this; - } + @SerializedName("requested") + Boolean requested; - /** - * ID of a file - * upload: A logo for the merchant that will be used in Checkout instead of the icon - * and without the merchant's name next to it if provided. Must be at least 128px x 128px. - */ - public Builder setLogo(EmptyParam logo) { - this.logo = logo; - return this; + private BancontactPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - /** A CSS hex color value representing the primary branding color for the merchant. */ - public Builder setPrimaryColor(String primaryColor) { - this.primaryColor = primaryColor; - return this; + public static Builder builder() { + return new Builder(); } - /** A CSS hex color value representing the primary branding color for the merchant. */ - public Builder setPrimaryColor(EmptyParam primaryColor) { - this.primaryColor = primaryColor; - return this; - } + public static class Builder { + private Map extraParams; - /** A CSS hex color value representing the secondary branding color for the merchant. */ - public Builder setSecondaryColor(String secondaryColor) { - this.secondaryColor = secondaryColor; - return this; - } + private Boolean requested; - /** A CSS hex color value representing the secondary branding color for the merchant. */ - public Builder setSecondaryColor(EmptyParam secondaryColor) { - this.secondaryColor = secondaryColor; - return this; - } - } - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.BancontactPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.BancontactPayments( + this.extraParams, this.requested); + } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Capabilities { - /** Allow the merchant to process ACH debit payments. */ - @SerializedName("ach_debit_payments") - AchDebitPayments achDebitPayments; - - /** Allow the merchant to process ACSS debit payments. */ - @SerializedName("acss_debit_payments") - AcssDebitPayments acssDebitPayments; - - /** Allow the merchant to process Affirm payments. */ - @SerializedName("affirm_payments") - AffirmPayments affirmPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - /** Allow the merchant to process Afterpay/Clearpay payments. */ - @SerializedName("afterpay_clearpay_payments") - AfterpayClearpayPayments afterpayClearpayPayments; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - /** Allow the merchant to process Alma payments. */ - @SerializedName("alma_payments") - AlmaPayments almaPayments; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - /** Allow the merchant to process Amazon Pay payments. */ - @SerializedName("amazon_pay_payments") - AmazonPayPayments amazonPayPayments; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BlikPayments { + /** + * 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; - /** Allow the merchant to process Australian BECS Direct Debit payments. */ - @SerializedName("au_becs_debit_payments") - AuBecsDebitPayments auBecsDebitPayments; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Allow the merchant to process BACS Direct Debit payments. */ - @SerializedName("bacs_debit_payments") - BacsDebitPayments bacsDebitPayments; + private BlikPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** Allow the merchant to process Bancontact payments. */ - @SerializedName("bancontact_payments") - BancontactPayments bancontactPayments; + public static Builder builder() { + return new Builder(); + } - /** Allow the merchant to process BLIK payments. */ - @SerializedName("blik_payments") - BlikPayments blikPayments; + public static class Builder { + private Map extraParams; - /** Allow the merchant to process Boleto payments. */ - @SerializedName("boleto_payments") - BoletoPayments boletoPayments; + private Boolean requested; - /** Allow the merchant to collect card payments. */ - @SerializedName("card_payments") - CardPayments cardPayments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.BlikPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.BlikPayments( + this.extraParams, this.requested); + } - /** Allow the merchant to process Cartes Bancaires payments. */ - @SerializedName("cartes_bancaires_payments") - CartesBancairesPayments cartesBancairesPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.BlikPayments#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; + } - /** Allow the merchant to process Cash App payments. */ - @SerializedName("cashapp_payments") - CashappPayments cashappPayments; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.BlikPayments#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - /** Allow the merchant to process EPS payments. */ - @SerializedName("eps_payments") - EpsPayments epsPayments; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - /** - * 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; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - /** Allow the merchant to process FPX payments. */ - @SerializedName("fpx_payments") - FpxPayments fpxPayments; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Allow the merchant to process UK bank transfer payments. */ - @SerializedName("gb_bank_transfer_payments") - GbBankTransferPayments gbBankTransferPayments; + private BoletoPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** Allow the merchant to process GrabPay payments. */ - @SerializedName("grabpay_payments") - GrabpayPayments grabpayPayments; + public static Builder builder() { + return new Builder(); + } - /** Allow the merchant to process iDEAL payments. */ - @SerializedName("ideal_payments") - IdealPayments idealPayments; + public static class Builder { + private Map extraParams; - /** Allow the merchant to process JCB card payments. */ - @SerializedName("jcb_payments") - JcbPayments jcbPayments; + private Boolean requested; - /** Allow the merchant to process Japanese bank transfer payments. */ - @SerializedName("jp_bank_transfer_payments") - JpBankTransferPayments jpBankTransferPayments; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.BoletoPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.BoletoPayments( + this.extraParams, this.requested); + } - /** Allow the merchant to process Kakao Pay payments. */ - @SerializedName("kakao_pay_payments") - KakaoPayPayments kakaoPayPayments; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - /** Allow the merchant to process Klarna payments. */ - @SerializedName("klarna_payments") - KlarnaPayments klarnaPayments; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - /** Allow the merchant to process Konbini convenience store payments. */ - @SerializedName("konbini_payments") - KonbiniPayments konbiniPayments; - - /** Allow the merchant to process Korean card payments. */ - @SerializedName("kr_card_payments") - KrCardPayments krCardPayments; - - /** Allow the merchant to process Link payments. */ - @SerializedName("link_payments") - LinkPayments linkPayments; - - /** Allow the merchant to process MobilePay payments. */ - @SerializedName("mobilepay_payments") - MobilepayPayments mobilepayPayments; - - /** Allow the merchant to process Multibanco payments. */ - @SerializedName("multibanco_payments") - MultibancoPayments multibancoPayments; - - /** Allow the merchant to process Mexican bank transfer payments. */ - @SerializedName("mx_bank_transfer_payments") - MxBankTransferPayments mxBankTransferPayments; - - /** Allow the merchant to process Naver Pay payments. */ - @SerializedName("naver_pay_payments") - NaverPayPayments naverPayPayments; - - /** Allow the merchant to process OXXO payments. */ - @SerializedName("oxxo_payments") - OxxoPayments oxxoPayments; - - /** Allow the merchant to process Przelewy24 (P24) payments. */ - @SerializedName("p24_payments") - P24Payments p24Payments; - - /** Allow the merchant to process Pay by Bank payments. */ - @SerializedName("pay_by_bank_payments") - PayByBankPayments payByBankPayments; - - /** Allow the merchant to process PAYCO payments. */ - @SerializedName("payco_payments") - PaycoPayments paycoPayments; - - /** Allow the merchant to process PayNow payments. */ - @SerializedName("paynow_payments") - PaynowPayments paynowPayments; - - /** Allow the merchant to process PromptPay payments. */ - @SerializedName("promptpay_payments") - PromptpayPayments promptpayPayments; - - /** Allow the merchant to process Revolut Pay payments. */ - @SerializedName("revolut_pay_payments") - RevolutPayPayments revolutPayPayments; - - /** Allow the merchant to process Samsung Pay payments. */ - @SerializedName("samsung_pay_payments") - SamsungPayPayments samsungPayPayments; - - /** Allow the merchant to process SEPA bank transfer payments. */ - @SerializedName("sepa_bank_transfer_payments") - SepaBankTransferPayments sepaBankTransferPayments; - - /** Allow the merchant to process SEPA Direct Debit payments. */ - @SerializedName("sepa_debit_payments") - SepaDebitPayments sepaDebitPayments; - - /** Allow the merchant to process Swish payments. */ - @SerializedName("swish_payments") - SwishPayments swishPayments; - - /** Allow the merchant to process TWINT payments. */ - @SerializedName("twint_payments") - TwintPayments twintPayments; - - /** Allow the merchant to process US bank transfer payments. */ - @SerializedName("us_bank_transfer_payments") - UsBankTransferPayments usBankTransferPayments; - - /** Allow the merchant to process Zip payments. */ - @SerializedName("zip_payments") - ZipPayments zipPayments; - - private Capabilities( - AchDebitPayments achDebitPayments, - AcssDebitPayments acssDebitPayments, - AffirmPayments affirmPayments, - AfterpayClearpayPayments afterpayClearpayPayments, - AlmaPayments almaPayments, - AmazonPayPayments amazonPayPayments, - AuBecsDebitPayments auBecsDebitPayments, - BacsDebitPayments bacsDebitPayments, - BancontactPayments bancontactPayments, - BlikPayments blikPayments, - BoletoPayments boletoPayments, - CardPayments cardPayments, - CartesBancairesPayments cartesBancairesPayments, - CashappPayments cashappPayments, - EpsPayments epsPayments, - Map extraParams, - FpxPayments fpxPayments, - GbBankTransferPayments gbBankTransferPayments, - GrabpayPayments grabpayPayments, - IdealPayments idealPayments, - JcbPayments jcbPayments, - JpBankTransferPayments jpBankTransferPayments, - KakaoPayPayments kakaoPayPayments, - KlarnaPayments klarnaPayments, - KonbiniPayments konbiniPayments, - KrCardPayments krCardPayments, - LinkPayments linkPayments, - MobilepayPayments mobilepayPayments, - MultibancoPayments multibancoPayments, - MxBankTransferPayments mxBankTransferPayments, - NaverPayPayments naverPayPayments, - OxxoPayments oxxoPayments, - P24Payments p24Payments, - PayByBankPayments payByBankPayments, - PaycoPayments paycoPayments, - PaynowPayments paynowPayments, - PromptpayPayments promptpayPayments, - RevolutPayPayments revolutPayPayments, - SamsungPayPayments samsungPayPayments, - SepaBankTransferPayments sepaBankTransferPayments, - SepaDebitPayments sepaDebitPayments, - SwishPayments swishPayments, - TwintPayments twintPayments, - UsBankTransferPayments usBankTransferPayments, - ZipPayments zipPayments) { - this.achDebitPayments = achDebitPayments; - this.acssDebitPayments = acssDebitPayments; - this.affirmPayments = affirmPayments; - this.afterpayClearpayPayments = afterpayClearpayPayments; - this.almaPayments = almaPayments; - this.amazonPayPayments = amazonPayPayments; - this.auBecsDebitPayments = auBecsDebitPayments; - this.bacsDebitPayments = bacsDebitPayments; - this.bancontactPayments = bancontactPayments; - this.blikPayments = blikPayments; - this.boletoPayments = boletoPayments; - this.cardPayments = cardPayments; - this.cartesBancairesPayments = cartesBancairesPayments; - this.cashappPayments = cashappPayments; - this.epsPayments = epsPayments; - this.extraParams = extraParams; - this.fpxPayments = fpxPayments; - this.gbBankTransferPayments = gbBankTransferPayments; - this.grabpayPayments = grabpayPayments; - this.idealPayments = idealPayments; - this.jcbPayments = jcbPayments; - this.jpBankTransferPayments = jpBankTransferPayments; - this.kakaoPayPayments = kakaoPayPayments; - this.klarnaPayments = klarnaPayments; - this.konbiniPayments = konbiniPayments; - this.krCardPayments = krCardPayments; - this.linkPayments = linkPayments; - this.mobilepayPayments = mobilepayPayments; - this.multibancoPayments = multibancoPayments; - this.mxBankTransferPayments = mxBankTransferPayments; - this.naverPayPayments = naverPayPayments; - this.oxxoPayments = oxxoPayments; - this.p24Payments = p24Payments; - this.payByBankPayments = payByBankPayments; - this.paycoPayments = paycoPayments; - this.paynowPayments = paynowPayments; - this.promptpayPayments = promptpayPayments; - this.revolutPayPayments = revolutPayPayments; - this.samsungPayPayments = samsungPayPayments; - this.sepaBankTransferPayments = sepaBankTransferPayments; - this.sepaDebitPayments = sepaDebitPayments; - this.swishPayments = swishPayments; - this.twintPayments = twintPayments; - this.usBankTransferPayments = usBankTransferPayments; - this.zipPayments = zipPayments; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private AchDebitPayments achDebitPayments; - - private AcssDebitPayments acssDebitPayments; - - private AffirmPayments affirmPayments; - - private AfterpayClearpayPayments afterpayClearpayPayments; - - private AlmaPayments almaPayments; - - private AmazonPayPayments amazonPayPayments; - - private AuBecsDebitPayments auBecsDebitPayments; - - private BacsDebitPayments bacsDebitPayments; - - private BancontactPayments bancontactPayments; - - private BlikPayments blikPayments; - - private BoletoPayments boletoPayments; - - private CardPayments cardPayments; - - private CartesBancairesPayments cartesBancairesPayments; - - private CashappPayments cashappPayments; - - private EpsPayments epsPayments; - - private Map extraParams; - - private FpxPayments fpxPayments; - - private GbBankTransferPayments gbBankTransferPayments; - - private GrabpayPayments grabpayPayments; - - private IdealPayments idealPayments; - - private JcbPayments jcbPayments; - - private JpBankTransferPayments jpBankTransferPayments; - - private KakaoPayPayments kakaoPayPayments; - - private KlarnaPayments klarnaPayments; - - private KonbiniPayments konbiniPayments; - - private KrCardPayments krCardPayments; - - private LinkPayments linkPayments; - - private MobilepayPayments mobilepayPayments; - - private MultibancoPayments multibancoPayments; - - private MxBankTransferPayments mxBankTransferPayments; - - private NaverPayPayments naverPayPayments; - - private OxxoPayments oxxoPayments; - - private P24Payments p24Payments; - - private PayByBankPayments payByBankPayments; - - private PaycoPayments paycoPayments; - - private PaynowPayments paynowPayments; - - private PromptpayPayments promptpayPayments; - - private RevolutPayPayments revolutPayPayments; - - private SamsungPayPayments samsungPayPayments; - - private SepaBankTransferPayments sepaBankTransferPayments; - - private SepaDebitPayments sepaDebitPayments; - - private SwishPayments swishPayments; - - private TwintPayments twintPayments; - - private UsBankTransferPayments usBankTransferPayments; - - private ZipPayments zipPayments; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities( - this.achDebitPayments, - this.acssDebitPayments, - this.affirmPayments, - this.afterpayClearpayPayments, - this.almaPayments, - this.amazonPayPayments, - this.auBecsDebitPayments, - this.bacsDebitPayments, - this.bancontactPayments, - this.blikPayments, - this.boletoPayments, - this.cardPayments, - this.cartesBancairesPayments, - this.cashappPayments, - this.epsPayments, - this.extraParams, - this.fpxPayments, - this.gbBankTransferPayments, - this.grabpayPayments, - this.idealPayments, - this.jcbPayments, - this.jpBankTransferPayments, - this.kakaoPayPayments, - this.klarnaPayments, - this.konbiniPayments, - this.krCardPayments, - this.linkPayments, - this.mobilepayPayments, - this.multibancoPayments, - this.mxBankTransferPayments, - this.naverPayPayments, - this.oxxoPayments, - this.p24Payments, - this.payByBankPayments, - this.paycoPayments, - this.paynowPayments, - this.promptpayPayments, - this.revolutPayPayments, - this.samsungPayPayments, - this.sepaBankTransferPayments, - this.sepaDebitPayments, - this.swishPayments, - this.twintPayments, - this.usBankTransferPayments, - this.zipPayments); - } - - /** Allow the merchant to process ACH debit payments. */ - public Builder setAchDebitPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.AchDebitPayments - achDebitPayments) { - this.achDebitPayments = achDebitPayments; - return this; - } - - /** Allow the merchant to process ACSS debit payments. */ - public Builder setAcssDebitPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.AcssDebitPayments - acssDebitPayments) { - this.acssDebitPayments = acssDebitPayments; - return this; - } - - /** Allow the merchant to process Affirm payments. */ - public Builder setAffirmPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.AffirmPayments - affirmPayments) { - this.affirmPayments = affirmPayments; - return this; - } - - /** Allow the merchant to process Afterpay/Clearpay payments. */ - public Builder setAfterpayClearpayPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments - afterpayClearpayPayments) { - this.afterpayClearpayPayments = afterpayClearpayPayments; - return this; - } - - /** Allow the merchant to process Alma payments. */ - public Builder setAlmaPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.AlmaPayments almaPayments) { - this.almaPayments = almaPayments; - return this; - } - - /** Allow the merchant to process Amazon Pay payments. */ - public Builder setAmazonPayPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.AmazonPayPayments - amazonPayPayments) { - this.amazonPayPayments = amazonPayPayments; - return this; - } - - /** Allow the merchant to process Australian BECS Direct Debit payments. */ - public Builder setAuBecsDebitPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments - auBecsDebitPayments) { - this.auBecsDebitPayments = auBecsDebitPayments; - return this; - } - - /** Allow the merchant to process BACS Direct Debit payments. */ - public Builder setBacsDebitPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.BacsDebitPayments - bacsDebitPayments) { - this.bacsDebitPayments = bacsDebitPayments; - return this; - } - - /** Allow the merchant to process Bancontact payments. */ - public Builder setBancontactPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.BancontactPayments - bancontactPayments) { - this.bancontactPayments = bancontactPayments; - return this; - } - - /** Allow the merchant to process BLIK payments. */ - public Builder setBlikPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.BlikPayments blikPayments) { - this.blikPayments = blikPayments; - return this; - } - - /** Allow the merchant to process Boleto payments. */ - public Builder setBoletoPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.BoletoPayments - boletoPayments) { - this.boletoPayments = boletoPayments; - return this; - } - - /** Allow the merchant to collect card payments. */ - public Builder setCardPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.CardPayments cardPayments) { - this.cardPayments = cardPayments; - return this; - } - - /** Allow the merchant to process Cartes Bancaires payments. */ - public Builder setCartesBancairesPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments - cartesBancairesPayments) { - this.cartesBancairesPayments = cartesBancairesPayments; - return this; - } - - /** Allow the merchant to process Cash App payments. */ - public Builder setCashappPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.CashappPayments - cashappPayments) { - this.cashappPayments = cashappPayments; - return this; - } - - /** Allow the merchant to process EPS payments. */ - public Builder setEpsPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.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 AccountUpdateParams.Configuration.Merchant.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 AccountUpdateParams.Configuration.Merchant.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; - } - - /** Allow the merchant to process FPX payments. */ - public Builder setFpxPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.FpxPayments fpxPayments) { - this.fpxPayments = fpxPayments; - return this; - } - - /** Allow the merchant to process UK bank transfer payments. */ - public Builder setGbBankTransferPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments - gbBankTransferPayments) { - this.gbBankTransferPayments = gbBankTransferPayments; - return this; - } - - /** Allow the merchant to process GrabPay payments. */ - public Builder setGrabpayPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.GrabpayPayments - grabpayPayments) { - this.grabpayPayments = grabpayPayments; - return this; - } - - /** Allow the merchant to process iDEAL payments. */ - public Builder setIdealPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.IdealPayments idealPayments) { - this.idealPayments = idealPayments; - return this; - } - - /** Allow the merchant to process JCB card payments. */ - public Builder setJcbPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.JcbPayments jcbPayments) { - this.jcbPayments = jcbPayments; - return this; - } - - /** Allow the merchant to process Japanese bank transfer payments. */ - public Builder setJpBankTransferPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments - jpBankTransferPayments) { - this.jpBankTransferPayments = jpBankTransferPayments; - return this; - } - - /** Allow the merchant to process Kakao Pay payments. */ - public Builder setKakaoPayPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.KakaoPayPayments - kakaoPayPayments) { - this.kakaoPayPayments = kakaoPayPayments; - return this; - } - - /** Allow the merchant to process Klarna payments. */ - public Builder setKlarnaPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.KlarnaPayments - klarnaPayments) { - this.klarnaPayments = klarnaPayments; - return this; - } - - /** Allow the merchant to process Konbini convenience store payments. */ - public Builder setKonbiniPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.KonbiniPayments - konbiniPayments) { - this.konbiniPayments = konbiniPayments; - return this; - } - - /** Allow the merchant to process Korean card payments. */ - public Builder setKrCardPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.KrCardPayments - krCardPayments) { - this.krCardPayments = krCardPayments; - return this; - } - - /** Allow the merchant to process Link payments. */ - public Builder setLinkPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.LinkPayments linkPayments) { - this.linkPayments = linkPayments; - return this; - } - - /** Allow the merchant to process MobilePay payments. */ - public Builder setMobilepayPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.MobilepayPayments - mobilepayPayments) { - this.mobilepayPayments = mobilepayPayments; - return this; - } - - /** Allow the merchant to process Multibanco payments. */ - public Builder setMultibancoPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.MultibancoPayments - multibancoPayments) { - this.multibancoPayments = multibancoPayments; - return this; - } - - /** Allow the merchant to process Mexican bank transfer payments. */ - public Builder setMxBankTransferPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments - mxBankTransferPayments) { - this.mxBankTransferPayments = mxBankTransferPayments; - return this; - } - - /** Allow the merchant to process Naver Pay payments. */ - public Builder setNaverPayPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.NaverPayPayments - naverPayPayments) { - this.naverPayPayments = naverPayPayments; - return this; - } - - /** Allow the merchant to process OXXO payments. */ - public Builder setOxxoPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.OxxoPayments oxxoPayments) { - this.oxxoPayments = oxxoPayments; - return this; - } - - /** Allow the merchant to process Przelewy24 (P24) payments. */ - public Builder setP24Payments( - AccountUpdateParams.Configuration.Merchant.Capabilities.P24Payments p24Payments) { - this.p24Payments = p24Payments; - return this; - } - - /** Allow the merchant to process Pay by Bank payments. */ - public Builder setPayByBankPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.PayByBankPayments - payByBankPayments) { - this.payByBankPayments = payByBankPayments; - return this; - } - - /** Allow the merchant to process PAYCO payments. */ - public Builder setPaycoPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.PaycoPayments paycoPayments) { - this.paycoPayments = paycoPayments; - return this; - } - - /** Allow the merchant to process PayNow payments. */ - public Builder setPaynowPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.PaynowPayments - paynowPayments) { - this.paynowPayments = paynowPayments; - return this; - } - - /** Allow the merchant to process PromptPay payments. */ - public Builder setPromptpayPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.PromptpayPayments - promptpayPayments) { - this.promptpayPayments = promptpayPayments; - return this; - } - - /** Allow the merchant to process Revolut Pay payments. */ - public Builder setRevolutPayPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.RevolutPayPayments - revolutPayPayments) { - this.revolutPayPayments = revolutPayPayments; - return this; - } - - /** Allow the merchant to process Samsung Pay payments. */ - public Builder setSamsungPayPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.SamsungPayPayments - samsungPayPayments) { - this.samsungPayPayments = samsungPayPayments; - return this; - } - - /** Allow the merchant to process SEPA bank transfer payments. */ - public Builder setSepaBankTransferPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments - sepaBankTransferPayments) { - this.sepaBankTransferPayments = sepaBankTransferPayments; - return this; - } - - /** Allow the merchant to process SEPA Direct Debit payments. */ - public Builder setSepaDebitPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.SepaDebitPayments - sepaDebitPayments) { - this.sepaDebitPayments = sepaDebitPayments; - return this; - } - - /** Allow the merchant to process Swish payments. */ - public Builder setSwishPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.SwishPayments swishPayments) { - this.swishPayments = swishPayments; - return this; - } - - /** Allow the merchant to process TWINT payments. */ - public Builder setTwintPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.TwintPayments twintPayments) { - this.twintPayments = twintPayments; - return this; - } - - /** Allow the merchant to process US bank transfer payments. */ - public Builder setUsBankTransferPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments - usBankTransferPayments) { - this.usBankTransferPayments = usBankTransferPayments; - return this; - } - - /** Allow the merchant to process Zip payments. */ - public Builder setZipPayments( - AccountUpdateParams.Configuration.Merchant.Capabilities.ZipPayments zipPayments) { - this.zipPayments = zipPayments; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AchDebitPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private AchDebitPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.AchDebitPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.AchDebitPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.AchDebitPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.AchDebitPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.AcssDebitPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AffirmPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private AffirmPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.AffirmPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.AffirmPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.AffirmPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.AffirmPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities - .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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AlmaPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private AlmaPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.AlmaPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.AlmaPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.AlmaPayments#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.AlmaPayments#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AmazonPayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private AmazonPayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.AmazonPayPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.AmazonPayPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.AmazonPayPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.AmazonPayPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities - .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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.BacsDebitPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.BancontactPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BlikPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private BlikPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.BlikPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.BlikPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.BlikPayments#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.BlikPayments#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.BoletoPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.CardPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities - .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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class CashappPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private CashappPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.CashappPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.CashappPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.CashappPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.CashappPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.EpsPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.FpxPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class GbBankTransferPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private GbBankTransferPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities - .GbBankTransferPayments(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.GrabpayPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.IdealPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.JcbPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class JpBankTransferPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private JpBankTransferPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities - .JpBankTransferPayments(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class KakaoPayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private KakaoPayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.KakaoPayPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.KakaoPayPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.KakaoPayPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.KakaoPayPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.KlarnaPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class KonbiniPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private KonbiniPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.KonbiniPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.KonbiniPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.KonbiniPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.KonbiniPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class KrCardPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private KrCardPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.KrCardPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.KrCardPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.KrCardPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.KrCardPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class LinkPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private LinkPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.LinkPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.LinkPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.LinkPayments#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.LinkPayments#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class MobilepayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private MobilepayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.MobilepayPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.MobilepayPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.MobilepayPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.MobilepayPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class MultibancoPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private MultibancoPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.MultibancoPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.MultibancoPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.MultibancoPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.MultibancoPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class MxBankTransferPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private MxBankTransferPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities - .MxBankTransferPayments(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class NaverPayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private NaverPayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.NaverPayPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.NaverPayPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.NaverPayPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.NaverPayPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.OxxoPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.P24Payments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PayByBankPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private PayByBankPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.PayByBankPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.PayByBankPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.PayByBankPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.PayByBankPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PaycoPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private PaycoPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.PaycoPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.PaycoPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.PaycoPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.PaycoPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PaynowPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private PaynowPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.PaynowPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.PaynowPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.PaynowPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.PaynowPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PromptpayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private PromptpayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.PromptpayPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.PromptpayPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.PromptpayPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.PromptpayPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class RevolutPayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private RevolutPayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.RevolutPayPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.RevolutPayPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.RevolutPayPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.RevolutPayPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class SamsungPayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private SamsungPayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.SamsungPayPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.SamsungPayPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.SamsungPayPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.SamsungPayPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class SepaBankTransferPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private SepaBankTransferPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities - .SepaBankTransferPayments(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.SepaDebitPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Configuration.Merchant.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 - * AccountUpdateParams.Configuration.Merchant.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; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class SwishPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private SwishPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.SwishPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.SwishPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.SwishPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.SwishPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class TwintPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private TwintPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.TwintPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.TwintPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.TwintPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.TwintPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class UsBankTransferPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private UsBankTransferPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments - build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities - .UsBankTransferPayments(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ZipPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private ZipPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Capabilities.ZipPayments build() { - return new AccountUpdateParams.Configuration.Merchant.Capabilities.ZipPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.ZipPayments#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.Capabilities.ZipPayments#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class CardPayments { - /** - * Automatically declines certain charge types regardless of whether the card issuer - * accepted or declined the charge. - */ - @SerializedName("decline_on") - DeclineOn declineOn; - - /** - * 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 CardPayments(DeclineOn declineOn, Map extraParams) { - this.declineOn = declineOn; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private DeclineOn declineOn; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.CardPayments build() { - return new AccountUpdateParams.Configuration.Merchant.CardPayments( - this.declineOn, this.extraParams); - } - - /** - * Automatically declines certain charge types regardless of whether the card issuer - * accepted or declined the charge. - */ - public Builder setDeclineOn( - AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn declineOn) { - this.declineOn = declineOn; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Merchant.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 AccountUpdateParams.Configuration.Merchant.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; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class DeclineOn { - /** - * Whether Stripe automatically declines charges with an incorrect ZIP or postal code. - * This setting only applies when a ZIP or postal code is provided and they fail bank - * verification. - */ - @SerializedName("avs_failure") - Boolean avsFailure; - - /** - * Whether Stripe automatically declines charges with an incorrect CVC. This setting only - * applies when a CVC is provided and it fails bank verification. - */ - @SerializedName("cvc_failure") - Boolean cvcFailure; - - /** - * 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 DeclineOn( - Boolean avsFailure, Boolean cvcFailure, Map extraParams) { - this.avsFailure = avsFailure; - this.cvcFailure = cvcFailure; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Boolean avsFailure; - - private Boolean cvcFailure; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn build() { - return new AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn( - this.avsFailure, this.cvcFailure, this.extraParams); - } - - /** - * Whether Stripe automatically declines charges with an incorrect ZIP or postal code. - * This setting only applies when a ZIP or postal code is provided and they fail bank - * verification. - */ - public Builder setAvsFailure(Boolean avsFailure) { - this.avsFailure = avsFailure; - return this; - } - - /** - * Whether Stripe automatically declines charges with an incorrect CVC. This setting - * only applies when a CVC is provided and it fails bank verification. - */ - public Builder setCvcFailure(Boolean cvcFailure) { - this.cvcFailure = cvcFailure; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class StatementDescriptor { - /** - * The default text that appears on statements for non-card charges outside of Japan. For - * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as - * the statement descriptor prefix. In that case, if concatenating the statement descriptor - * suffix causes the combined statement descriptor to exceed 22 characters, we truncate the - * statement_descriptor text to limit the full descriptor to 22 characters. For more - * information about statement descriptors and their requirements, see the Merchant - * Configuration settings documentation. - */ - @SerializedName("descriptor") - Object descriptor; - - /** - * 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; - - /** - * Default text that appears on statements for card charges outside of Japan, prefixing any - * dynamic statement_descriptor_suffix specified on the charge. To maximize space for the - * dynamic part of the descriptor, keep this text short. If you don’t specify this value, - * statement_descriptor is used as the prefix. For more information about statement - * descriptors and their requirements, see the Merchant Configuration settings - * documentation. - */ - @SerializedName("prefix") - Object prefix; - - private StatementDescriptor( - Object descriptor, Map extraParams, Object prefix) { - this.descriptor = descriptor; - this.extraParams = extraParams; - this.prefix = prefix; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object descriptor; - - private Map extraParams; - - private Object prefix; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.StatementDescriptor build() { - return new AccountUpdateParams.Configuration.Merchant.StatementDescriptor( - this.descriptor, this.extraParams, this.prefix); - } - - /** - * The default text that appears on statements for non-card charges outside of Japan. For - * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as - * the statement descriptor prefix. In that case, if concatenating the statement - * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we - * truncate the statement_descriptor text to limit the full descriptor to 22 characters. - * For more information about statement descriptors and their requirements, see the - * Merchant Configuration settings documentation. - */ - public Builder setDescriptor(String descriptor) { - this.descriptor = descriptor; - return this; - } - - /** - * The default text that appears on statements for non-card charges outside of Japan. For - * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as - * the statement descriptor prefix. In that case, if concatenating the statement - * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we - * truncate the statement_descriptor text to limit the full descriptor to 22 characters. - * For more information about statement descriptors and their requirements, see the - * Merchant Configuration settings documentation. - */ - public Builder setDescriptor(EmptyParam descriptor) { - this.descriptor = descriptor; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Configuration.Merchant.StatementDescriptor#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Configuration.Merchant.StatementDescriptor#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Default text that appears on statements for card charges outside of Japan, prefixing - * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for - * the dynamic part of the descriptor, keep this text short. If you don’t specify this - * value, statement_descriptor is used as the prefix. For more information about statement - * descriptors and their requirements, see the Merchant Configuration settings - * documentation. - */ - public Builder setPrefix(String prefix) { - this.prefix = prefix; - return this; - } - - /** - * Default text that appears on statements for card charges outside of Japan, prefixing - * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for - * the dynamic part of the descriptor, keep this text short. If you don’t specify this - * value, statement_descriptor is used as the prefix. For more information about statement - * descriptors and their requirements, see the Merchant Configuration settings - * documentation. - */ - public Builder setPrefix(EmptyParam prefix) { - this.prefix = prefix; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Support { - /** A publicly available mailing address for sending support issues to. */ - @SerializedName("address") - Address address; - - /** A publicly available email address for sending support issues to. */ - @SerializedName("email") - Object 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; - - /** A publicly available phone number to call with support issues. */ - @SerializedName("phone") - Object phone; - - /** A publicly available website for handling support issues. */ - @SerializedName("url") - Object url; - - private Support( - Address address, - Object email, - Map extraParams, - Object phone, - Object url) { - this.address = address; - this.email = email; - this.extraParams = extraParams; - this.phone = phone; - this.url = url; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Address address; - - private Object email; - - private Map extraParams; - - private Object phone; - - private Object url; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Support build() { - return new AccountUpdateParams.Configuration.Merchant.Support( - this.address, this.email, this.extraParams, this.phone, this.url); - } - - /** A publicly available mailing address for sending support issues to. */ - public Builder setAddress( - AccountUpdateParams.Configuration.Merchant.Support.Address address) { - this.address = address; - return this; - } - - /** A publicly available email address for sending support issues to. */ - public Builder setEmail(String email) { - this.email = email; - return this; - } - - /** A publicly available email address for sending support issues to. */ - public Builder setEmail(EmptyParam 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 AccountUpdateParams.Configuration.Merchant.Support#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Merchant.Support#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** A publicly available phone number to call with support issues. */ - public Builder setPhone(String phone) { - this.phone = phone; - return this; - } - - /** A publicly available phone number to call with support issues. */ - public Builder setPhone(EmptyParam phone) { - this.phone = phone; - return this; - } - - /** A publicly available website for handling support issues. */ - public Builder setUrl(String url) { - this.url = url; - return this; - } - - /** A publicly available website for handling support issues. */ - public Builder setUrl(EmptyParam url) { - this.url = url; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Address { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - Object city; - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - @SerializedName("country") - ApiRequestParams.EnumParam 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") - Object line1; - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - Object line2; - - /** ZIP or postal code. */ - @SerializedName("postal_code") - Object postalCode; - - /** State, county, province, or region. */ - @SerializedName("state") - Object state; - - /** Town or cho-me. */ - @SerializedName("town") - Object town; - - private Address( - Object city, - ApiRequestParams.EnumParam country, - Map extraParams, - Object line1, - Object line2, - Object postalCode, - Object state, - Object 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 Object city; - - private ApiRequestParams.EnumParam country; - - private Map extraParams; - - private Object line1; - - private Object line2; - - private Object postalCode; - - private Object state; - - private Object town; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Merchant.Support.Address build() { - return new AccountUpdateParams.Configuration.Merchant.Support.Address( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(EmptyParam city) { - this.city = city; - return this; - } - - /** - * Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry( - AccountUpdateParams.Configuration.Merchant.Support.Address.Country country) { - this.country = country; - return this; - } - - /** - * Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry(EmptyParam 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 - * AccountUpdateParams.Configuration.Merchant.Support.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 - * AccountUpdateParams.Configuration.Merchant.Support.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 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(EmptyParam 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; - } - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(EmptyParam line2) { - this.line2 = line2; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(EmptyParam postalCode) { - this.postalCode = postalCode; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(EmptyParam state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(EmptyParam town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Recipient { - /** - * Represents the state of the configuration, and can be updated to deactivate or re-apply a - * configuration. - */ - @SerializedName("applied") - Boolean applied; - - /** Capabilities to request on the Recipient Configuration. */ - @SerializedName("capabilities") - Capabilities capabilities; - - /** - * The payout method id to be used as a default outbound destination. This will allow the - * PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via - * dashboard. Can also be explicitly set to {@code null} to clear the existing default - * outbound destination. - */ - @SerializedName("default_outbound_destination") - Object defaultOutboundDestination; - - /** - * 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 Recipient( - Boolean applied, - Capabilities capabilities, - Object defaultOutboundDestination, - Map extraParams) { - this.applied = applied; - this.capabilities = capabilities; - this.defaultOutboundDestination = defaultOutboundDestination; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Boolean applied; - - private Capabilities capabilities; - - private Object defaultOutboundDestination; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Recipient build() { - return new AccountUpdateParams.Configuration.Recipient( - this.applied, this.capabilities, this.defaultOutboundDestination, this.extraParams); - } - - /** - * Represents the state of the configuration, and can be updated to deactivate or re-apply a - * configuration. - */ - public Builder setApplied(Boolean applied) { - this.applied = applied; - return this; - } - - /** Capabilities to request on the Recipient Configuration. */ - public Builder setCapabilities( - AccountUpdateParams.Configuration.Recipient.Capabilities capabilities) { - this.capabilities = capabilities; - return this; - } - - /** - * The payout method id to be used as a default outbound destination. This will allow the - * PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via - * dashboard. Can also be explicitly set to {@code null} to clear the existing default - * outbound destination. - */ - public Builder setDefaultOutboundDestination(String defaultOutboundDestination) { - this.defaultOutboundDestination = defaultOutboundDestination; - return this; - } - - /** - * The payout method id to be used as a default outbound destination. This will allow the - * PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via - * dashboard. Can also be explicitly set to {@code null} to clear the existing default - * outbound destination. - */ - public Builder setDefaultOutboundDestination(EmptyParam defaultOutboundDestination) { - this.defaultOutboundDestination = defaultOutboundDestination; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Recipient#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Recipient#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Capabilities { - /** Capabilities that enable OutboundPayments to a bank account linked to this Account. */ - @SerializedName("bank_accounts") - BankAccounts bankAccounts; - - /** Capability that enable OutboundPayments to a debit card linked to this Account. */ - @SerializedName("cards") - Cards cards; - - /** - * 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; - - /** Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). */ - @SerializedName("stripe_balance") - StripeBalance stripeBalance; - - private Capabilities( - BankAccounts bankAccounts, - Cards cards, - Map extraParams, - StripeBalance stripeBalance) { - this.bankAccounts = bankAccounts; - this.cards = cards; - this.extraParams = extraParams; - this.stripeBalance = stripeBalance; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private BankAccounts bankAccounts; - - private Cards cards; - - private Map extraParams; - - private StripeBalance stripeBalance; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Recipient.Capabilities build() { - return new AccountUpdateParams.Configuration.Recipient.Capabilities( - this.bankAccounts, this.cards, this.extraParams, this.stripeBalance); - } - - /** Capabilities that enable OutboundPayments to a bank account linked to this Account. */ - public Builder setBankAccounts( - AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts bankAccounts) { - this.bankAccounts = bankAccounts; - return this; - } - - /** Capability that enable OutboundPayments to a debit card linked to this Account. */ - public Builder setCards( - AccountUpdateParams.Configuration.Recipient.Capabilities.Cards cards) { - this.cards = cards; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Recipient.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 AccountUpdateParams.Configuration.Recipient.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; - } - - /** - * Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). - */ - public Builder setStripeBalance( - AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance - stripeBalance) { - this.stripeBalance = stripeBalance; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BankAccounts { - /** - * 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; - - /** - * Enables this Account to receive OutboundPayments to linked bank accounts over local - * networks. - */ - @SerializedName("local") - Local local; - - /** Enables this Account to receive OutboundPayments to linked bank accounts over wire. */ - @SerializedName("wire") - Wire wire; - - private BankAccounts(Map extraParams, Local local, Wire wire) { - this.extraParams = extraParams; - this.local = local; - this.wire = wire; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Local local; - - private Wire wire; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts build() { - return new AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts( - this.extraParams, this.local, this.wire); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Enables this Account to receive OutboundPayments to linked bank accounts over local - * networks. - */ - public Builder setLocal( - AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Local local) { - this.local = local; - return this; - } - - /** - * Enables this Account to receive OutboundPayments to linked bank accounts over wire. - */ - public Builder setWire( - AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire wire) { - this.wire = wire; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Local { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private Local(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Local - build() { - return new AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts - .Local(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Local#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Local#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Wire { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private Wire(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire - build() { - return new AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts - .Wire(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Cards { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before the - * requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private Cards(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Recipient.Capabilities.Cards build() { - return new AccountUpdateParams.Configuration.Recipient.Capabilities.Cards( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.Cards#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.Cards#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class StripeBalance { - /** - * 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; - - /** - * Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance). - */ - @SerializedName("stripe_transfers") - StripeTransfers stripeTransfers; - - private StripeBalance(Map extraParams, StripeTransfers stripeTransfers) { - this.extraParams = extraParams; - this.stripeTransfers = stripeTransfers; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private StripeTransfers stripeTransfers; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance build() { - return new AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance( - this.extraParams, this.stripeTransfers); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance). - */ - public Builder setStripeTransfers( - AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance - .StripeTransfers - stripeTransfers) { - this.stripeTransfers = stripeTransfers; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class StripeTransfers { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private StripeTransfers(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance - .StripeTransfers - build() { - return new AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance - .StripeTransfers(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Storer { - /** - * Represents the state of the configuration, and can be updated to deactivate or re-apply a - * configuration. - */ - @SerializedName("applied") - Boolean applied; - - /** Capabilities to request on the Storer Configuration. */ - @SerializedName("capabilities") - Capabilities capabilities; - - /** - * 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 Storer(Boolean applied, Capabilities capabilities, Map extraParams) { - this.applied = applied; - this.capabilities = capabilities; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Boolean applied; - - private Capabilities capabilities; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer build() { - return new AccountUpdateParams.Configuration.Storer( - this.applied, this.capabilities, this.extraParams); - } - - /** - * Represents the state of the configuration, and can be updated to deactivate or re-apply a - * configuration. - */ - public Builder setApplied(Boolean applied) { - this.applied = applied; - return this; - } - - /** Capabilities to request on the Storer Configuration. */ - public Builder setCapabilities( - AccountUpdateParams.Configuration.Storer.Capabilities capabilities) { - this.capabilities = capabilities; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Storer#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Storer#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Capabilities { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Can provision a financial address to credit/debit a FinancialAccount. */ - @SerializedName("financial_addresses") - FinancialAddresses financialAddresses; - - /** Can hold storage-type funds on Stripe. */ - @SerializedName("holds_currencies") - HoldsCurrencies holdsCurrencies; - - /** Can pull funds from an external source, owned by yourself, to a FinancialAccount. */ - @SerializedName("inbound_transfers") - InboundTransfers inboundTransfers; - - /** Can send funds from a FinancialAccount to a destination owned by someone else. */ - @SerializedName("outbound_payments") - OutboundPayments outboundPayments; - - /** Can send funds from a FinancialAccount to a destination owned by yourself. */ - @SerializedName("outbound_transfers") - OutboundTransfers outboundTransfers; - - private Capabilities( - Map extraParams, - FinancialAddresses financialAddresses, - HoldsCurrencies holdsCurrencies, - InboundTransfers inboundTransfers, - OutboundPayments outboundPayments, - OutboundTransfers outboundTransfers) { - this.extraParams = extraParams; - this.financialAddresses = financialAddresses; - this.holdsCurrencies = holdsCurrencies; - this.inboundTransfers = inboundTransfers; - this.outboundPayments = outboundPayments; - this.outboundTransfers = outboundTransfers; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private FinancialAddresses financialAddresses; - - private HoldsCurrencies holdsCurrencies; - - private InboundTransfers inboundTransfers; - - private OutboundPayments outboundPayments; - - private OutboundTransfers outboundTransfers; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities( - this.extraParams, - this.financialAddresses, - this.holdsCurrencies, - this.inboundTransfers, - this.outboundPayments, - this.outboundTransfers); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Configuration.Storer.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 AccountUpdateParams.Configuration.Storer.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; - } - - /** Can provision a financial address to credit/debit a FinancialAccount. */ - public Builder setFinancialAddresses( - AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses - financialAddresses) { - this.financialAddresses = financialAddresses; - return this; - } - - /** Can hold storage-type funds on Stripe. */ - public Builder setHoldsCurrencies( - AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies - holdsCurrencies) { - this.holdsCurrencies = holdsCurrencies; - return this; - } - - /** Can pull funds from an external source, owned by yourself, to a FinancialAccount. */ - public Builder setInboundTransfers( - AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers - inboundTransfers) { - this.inboundTransfers = inboundTransfers; - return this; - } - - /** Can send funds from a FinancialAccount to a destination owned by someone else. */ - public Builder setOutboundPayments( - AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments - outboundPayments) { - this.outboundPayments = outboundPayments; - return this; - } - - /** Can send funds from a FinancialAccount to a destination owned by yourself. */ - public Builder setOutboundTransfers( - AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers - outboundTransfers) { - this.outboundTransfers = outboundTransfers; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FinancialAddresses { - /** - * Can provision a bank-account-like financial address (VBAN) to credit/debit a - * FinancialAccount. - */ - @SerializedName("bank_accounts") - BankAccounts bankAccounts; - - /** - * 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 FinancialAddresses(BankAccounts bankAccounts, Map extraParams) { - this.bankAccounts = bankAccounts; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private BankAccounts bankAccounts; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses - build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses( - this.bankAccounts, this.extraParams); - } - - /** - * Can provision a bank-account-like financial address (VBAN) to credit/debit a - * FinancialAccount. - */ - public Builder setBankAccounts( - AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses - .BankAccounts - bankAccounts) { - this.bankAccounts = bankAccounts; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BankAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private BankAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses - .BankAccounts - build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses - .BankAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class HoldsCurrencies { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Can hold storage-type funds on Stripe in GBP. */ - @SerializedName("gbp") - Gbp gbp; - - private HoldsCurrencies(Map extraParams, Gbp gbp) { - this.extraParams = extraParams; - this.gbp = gbp; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Gbp gbp; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies( - this.extraParams, this.gbp); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Can hold storage-type funds on Stripe in GBP. */ - public Builder setGbp( - AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp gbp) { - this.gbp = gbp; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Gbp { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private Gbp(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp - build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies - .Gbp(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class InboundTransfers { - /** - * Can pull funds from an external bank account owned by yourself to a FinancialAccount. - */ - @SerializedName("bank_accounts") - BankAccounts bankAccounts; - - /** - * 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 InboundTransfers(BankAccounts bankAccounts, Map extraParams) { - this.bankAccounts = bankAccounts; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private BankAccounts bankAccounts; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers( - this.bankAccounts, this.extraParams); - } - - /** - * Can pull funds from an external bank account owned by yourself to a FinancialAccount. - */ - public Builder setBankAccounts( - AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts - bankAccounts) { - this.bankAccounts = bankAccounts; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BankAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private BankAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers - .BankAccounts - build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers - .BankAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class OutboundPayments { - /** Can send funds from a FinancialAccount to a bank account owned by someone else. */ - @SerializedName("bank_accounts") - BankAccounts bankAccounts; - - /** Can send funds from a FinancialAccount to a debit card owned by someone else. */ - @SerializedName("cards") - Cards cards; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Can send funds from a FinancialAccount to another FinancialAccount owned by someone - * else. - */ - @SerializedName("financial_accounts") - FinancialAccounts financialAccounts; - - private OutboundPayments( - BankAccounts bankAccounts, - Cards cards, - Map extraParams, - FinancialAccounts financialAccounts) { - this.bankAccounts = bankAccounts; - this.cards = cards; - this.extraParams = extraParams; - this.financialAccounts = financialAccounts; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private BankAccounts bankAccounts; - - private Cards cards; - - private Map extraParams; - - private FinancialAccounts financialAccounts; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments( - this.bankAccounts, this.cards, this.extraParams, this.financialAccounts); - } - - /** Can send funds from a FinancialAccount to a bank account owned by someone else. */ - public Builder setBankAccounts( - AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts - bankAccounts) { - this.bankAccounts = bankAccounts; - return this; - } - - /** Can send funds from a FinancialAccount to a debit card owned by someone else. */ - public Builder setCards( - AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards - cards) { - this.cards = cards; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Can send funds from a FinancialAccount to another FinancialAccount owned by someone - * else. - */ - public Builder setFinancialAccounts( - AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments - .FinancialAccounts - financialAccounts) { - this.financialAccounts = financialAccounts; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BankAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private BankAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments - .BankAccounts - build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments - .BankAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Cards { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private Cards(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards - build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments - .Cards(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FinancialAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private FinancialAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments - .FinancialAccounts - build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments - .FinancialAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class OutboundTransfers { - /** Can send funds from a FinancialAccount to a bank account owned by yourself. */ - @SerializedName("bank_accounts") - BankAccounts bankAccounts; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. - */ - @SerializedName("financial_accounts") - FinancialAccounts financialAccounts; - - private OutboundTransfers( - BankAccounts bankAccounts, - Map extraParams, - FinancialAccounts financialAccounts) { - this.bankAccounts = bankAccounts; - this.extraParams = extraParams; - this.financialAccounts = financialAccounts; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private BankAccounts bankAccounts; - - private Map extraParams; - - private FinancialAccounts financialAccounts; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers( - this.bankAccounts, this.extraParams, this.financialAccounts); - } - - /** Can send funds from a FinancialAccount to a bank account owned by yourself. */ - public Builder setBankAccounts( - AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts - bankAccounts) { - this.bankAccounts = bankAccounts; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. - */ - public Builder setFinancialAccounts( - AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers - .FinancialAccounts - financialAccounts) { - this.financialAccounts = financialAccounts; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BankAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private BankAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers - .BankAccounts - build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers - .BankAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FinancialAccounts { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} - * value. Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - @SerializedName("requested") - Boolean requested; - - private FinancialAccounts(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers - .FinancialAccounts - build() { - return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers - .FinancialAccounts(this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * To request a new Capability for an account, pass true. There can be a delay before - * the requested Capability becomes active. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Defaults { - /** - * Three-letter ISO currency - * code, in lowercase. Must be a supported - * currency. - */ - @SerializedName("currency") - Currency currency; - - /** - * 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 Account's preferred locales (languages), ordered by preference. */ - @SerializedName("locales") - List locales; - - /** Default responsibilities held by either Stripe or the platform. */ - @SerializedName("responsibilities") - Responsibilities responsibilities; - - private Defaults( - Currency currency, - Map extraParams, - List locales, - Responsibilities responsibilities) { - this.currency = currency; - this.extraParams = extraParams; - this.locales = locales; - this.responsibilities = responsibilities; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Currency currency; - - private Map extraParams; - - private List locales; - - private Responsibilities responsibilities; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Defaults build() { - return new AccountUpdateParams.Defaults( - this.currency, this.extraParams, this.locales, this.responsibilities); - } - - /** - * Three-letter ISO currency - * code, in lowercase. Must be a supported - * currency. - */ - public Builder setCurrency(AccountUpdateParams.Defaults.Currency currency) { - this.currency = currency; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` - * call, and subsequent calls add additional key/value pairs to the original map. See {@link - * AccountUpdateParams.Defaults#extraParams} for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. - * See {@link AccountUpdateParams.Defaults#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 `locales` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * AccountUpdateParams.Defaults#locales} for the field documentation. - */ - public Builder addLocale(AccountUpdateParams.Defaults.Locale element) { - if (this.locales == null) { - this.locales = new ArrayList<>(); - } - this.locales.add(element); - return this; - } - - /** - * Add all elements to `locales` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * AccountUpdateParams.Defaults#locales} for the field documentation. - */ - public Builder addAllLocale(List elements) { - if (this.locales == null) { - this.locales = new ArrayList<>(); - } - this.locales.addAll(elements); - return this; - } - - /** Default responsibilities held by either Stripe or the platform. */ - public Builder setResponsibilities( - AccountUpdateParams.Defaults.Responsibilities responsibilities) { - this.responsibilities = responsibilities; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Responsibilities { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. A value indicating the party responsible for collecting fees - * from this account. - */ - @SerializedName("fees_collector") - FeesCollector feesCollector; - - /** - * Required. A value indicating who is responsible for losses when this - * Account can’t pay back negative balances from payments. - */ - @SerializedName("losses_collector") - LossesCollector lossesCollector; - - private Responsibilities( - Map extraParams, - FeesCollector feesCollector, - LossesCollector lossesCollector) { - this.extraParams = extraParams; - this.feesCollector = feesCollector; - this.lossesCollector = lossesCollector; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private FeesCollector feesCollector; - - private LossesCollector lossesCollector; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Defaults.Responsibilities build() { - return new AccountUpdateParams.Defaults.Responsibilities( - this.extraParams, this.feesCollector, this.lossesCollector); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Defaults.Responsibilities#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Defaults.Responsibilities#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. A value indicating the party responsible for collecting fees - * from this account. - */ - public Builder setFeesCollector( - AccountUpdateParams.Defaults.Responsibilities.FeesCollector feesCollector) { - this.feesCollector = feesCollector; - return this; - } - - /** - * Required. A value indicating who is responsible for losses when this - * Account can’t pay back negative balances from payments. - */ - public Builder setLossesCollector( - AccountUpdateParams.Defaults.Responsibilities.LossesCollector lossesCollector) { - this.lossesCollector = lossesCollector; - return this; - } - } - - public enum FeesCollector implements ApiRequestParams.EnumParam { - @SerializedName("application") - APPLICATION("application"), - - @SerializedName("stripe") - STRIPE("stripe"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - FeesCollector(String value) { - this.value = value; - } - } - - public enum LossesCollector implements ApiRequestParams.EnumParam { - @SerializedName("application") - APPLICATION("application"), - - @SerializedName("stripe") - STRIPE("stripe"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - LossesCollector(String value) { - this.value = value; - } - } - } - - public enum Currency implements ApiRequestParams.EnumParam { - @SerializedName("aed") - AED("aed"), - - @SerializedName("afn") - AFN("afn"), - - @SerializedName("all") - ALL("all"), - - @SerializedName("amd") - AMD("amd"), - - @SerializedName("ang") - ANG("ang"), - - @SerializedName("aoa") - AOA("aoa"), - - @SerializedName("ars") - ARS("ars"), - - @SerializedName("aud") - AUD("aud"), - - @SerializedName("awg") - AWG("awg"), - - @SerializedName("azn") - AZN("azn"), - - @SerializedName("bam") - BAM("bam"), - - @SerializedName("bbd") - BBD("bbd"), - - @SerializedName("bdt") - BDT("bdt"), - - @SerializedName("bgn") - BGN("bgn"), - - @SerializedName("bhd") - BHD("bhd"), - - @SerializedName("bif") - BIF("bif"), - - @SerializedName("bmd") - BMD("bmd"), - - @SerializedName("bnd") - BND("bnd"), - - @SerializedName("bob") - BOB("bob"), - - @SerializedName("bov") - BOV("bov"), - - @SerializedName("brl") - BRL("brl"), - - @SerializedName("bsd") - BSD("bsd"), - - @SerializedName("btn") - BTN("btn"), - - @SerializedName("bwp") - BWP("bwp"), - - @SerializedName("byn") - BYN("byn"), - - @SerializedName("byr") - BYR("byr"), - - @SerializedName("bzd") - BZD("bzd"), - - @SerializedName("cad") - CAD("cad"), - - @SerializedName("cdf") - CDF("cdf"), - - @SerializedName("che") - CHE("che"), - - @SerializedName("chf") - CHF("chf"), - - @SerializedName("chw") - CHW("chw"), - - @SerializedName("clf") - CLF("clf"), - - @SerializedName("clp") - CLP("clp"), - - @SerializedName("cny") - CNY("cny"), - - @SerializedName("cop") - COP("cop"), - - @SerializedName("cou") - COU("cou"), - - @SerializedName("crc") - CRC("crc"), - - @SerializedName("cuc") - CUC("cuc"), - - @SerializedName("cup") - CUP("cup"), - - @SerializedName("cve") - CVE("cve"), - - @SerializedName("czk") - CZK("czk"), - - @SerializedName("djf") - DJF("djf"), - - @SerializedName("dkk") - DKK("dkk"), - - @SerializedName("dop") - DOP("dop"), - - @SerializedName("dzd") - DZD("dzd"), - - @SerializedName("eek") - EEK("eek"), - - @SerializedName("egp") - EGP("egp"), - - @SerializedName("ern") - ERN("ern"), - - @SerializedName("etb") - ETB("etb"), - - @SerializedName("eur") - EUR("eur"), - - @SerializedName("fjd") - FJD("fjd"), - - @SerializedName("fkp") - FKP("fkp"), - - @SerializedName("gbp") - GBP("gbp"), - - @SerializedName("gel") - GEL("gel"), - - @SerializedName("ghc") - GHC("ghc"), - - @SerializedName("ghs") - GHS("ghs"), - - @SerializedName("gip") - GIP("gip"), - - @SerializedName("gmd") - GMD("gmd"), - - @SerializedName("gnf") - GNF("gnf"), - - @SerializedName("gtq") - GTQ("gtq"), - - @SerializedName("gyd") - GYD("gyd"), - - @SerializedName("hkd") - HKD("hkd"), - - @SerializedName("hnl") - HNL("hnl"), - - @SerializedName("hrk") - HRK("hrk"), - - @SerializedName("htg") - HTG("htg"), - - @SerializedName("huf") - HUF("huf"), - - @SerializedName("idr") - IDR("idr"), - - @SerializedName("ils") - ILS("ils"), - - @SerializedName("inr") - INR("inr"), - - @SerializedName("iqd") - IQD("iqd"), - - @SerializedName("irr") - IRR("irr"), - - @SerializedName("isk") - ISK("isk"), - - @SerializedName("jmd") - JMD("jmd"), - - @SerializedName("jod") - JOD("jod"), - - @SerializedName("jpy") - JPY("jpy"), - - @SerializedName("kes") - KES("kes"), - - @SerializedName("kgs") - KGS("kgs"), - - @SerializedName("khr") - KHR("khr"), - - @SerializedName("kmf") - KMF("kmf"), - - @SerializedName("kpw") - KPW("kpw"), - - @SerializedName("krw") - KRW("krw"), - - @SerializedName("kwd") - KWD("kwd"), - - @SerializedName("kyd") - KYD("kyd"), - - @SerializedName("kzt") - KZT("kzt"), - - @SerializedName("lak") - LAK("lak"), - - @SerializedName("lbp") - LBP("lbp"), - - @SerializedName("lkr") - LKR("lkr"), - - @SerializedName("lrd") - LRD("lrd"), - - @SerializedName("lsl") - LSL("lsl"), - - @SerializedName("ltl") - LTL("ltl"), - - @SerializedName("lvl") - LVL("lvl"), - - @SerializedName("lyd") - LYD("lyd"), - - @SerializedName("mad") - MAD("mad"), - - @SerializedName("mdl") - MDL("mdl"), - - @SerializedName("mga") - MGA("mga"), - - @SerializedName("mkd") - MKD("mkd"), - - @SerializedName("mmk") - MMK("mmk"), - - @SerializedName("mnt") - MNT("mnt"), - - @SerializedName("mop") - MOP("mop"), - - @SerializedName("mro") - MRO("mro"), - - @SerializedName("mru") - MRU("mru"), - - @SerializedName("mur") - MUR("mur"), - - @SerializedName("mvr") - MVR("mvr"), - - @SerializedName("mwk") - MWK("mwk"), - - @SerializedName("mxn") - MXN("mxn"), - - @SerializedName("mxv") - MXV("mxv"), - - @SerializedName("myr") - MYR("myr"), - - @SerializedName("mzn") - MZN("mzn"), - - @SerializedName("nad") - NAD("nad"), - - @SerializedName("ngn") - NGN("ngn"), - - @SerializedName("nio") - NIO("nio"), - - @SerializedName("nok") - NOK("nok"), - - @SerializedName("npr") - NPR("npr"), - - @SerializedName("nzd") - NZD("nzd"), - - @SerializedName("omr") - OMR("omr"), - - @SerializedName("pab") - PAB("pab"), - - @SerializedName("pen") - PEN("pen"), - - @SerializedName("pgk") - PGK("pgk"), - - @SerializedName("php") - PHP("php"), - - @SerializedName("pkr") - PKR("pkr"), - - @SerializedName("pln") - PLN("pln"), - - @SerializedName("pyg") - PYG("pyg"), - - @SerializedName("qar") - QAR("qar"), - - @SerializedName("ron") - RON("ron"), - - @SerializedName("rsd") - RSD("rsd"), - - @SerializedName("rub") - RUB("rub"), - - @SerializedName("rwf") - RWF("rwf"), - - @SerializedName("sar") - SAR("sar"), - - @SerializedName("sbd") - SBD("sbd"), - - @SerializedName("scr") - SCR("scr"), - - @SerializedName("sdg") - SDG("sdg"), - - @SerializedName("sek") - SEK("sek"), - - @SerializedName("sgd") - SGD("sgd"), - - @SerializedName("shp") - SHP("shp"), - - @SerializedName("sle") - SLE("sle"), - - @SerializedName("sll") - SLL("sll"), - - @SerializedName("sos") - SOS("sos"), - - @SerializedName("srd") - SRD("srd"), - - @SerializedName("ssp") - SSP("ssp"), - - @SerializedName("std") - STD("std"), - - @SerializedName("stn") - STN("stn"), - - @SerializedName("svc") - SVC("svc"), - - @SerializedName("syp") - SYP("syp"), - - @SerializedName("szl") - SZL("szl"), - - @SerializedName("thb") - THB("thb"), - - @SerializedName("tjs") - TJS("tjs"), - - @SerializedName("tmt") - TMT("tmt"), - - @SerializedName("tnd") - TND("tnd"), - - @SerializedName("top") - TOP("top"), - - @SerializedName("try") - TRY("try"), - - @SerializedName("ttd") - TTD("ttd"), - - @SerializedName("twd") - TWD("twd"), - - @SerializedName("tzs") - TZS("tzs"), - - @SerializedName("uah") - UAH("uah"), - - @SerializedName("ugx") - UGX("ugx"), - - @SerializedName("usd") - USD("usd"), - - @SerializedName("usdb") - USDB("usdb"), - - @SerializedName("usdc") - USDC("usdc"), - - @SerializedName("usn") - USN("usn"), - - @SerializedName("uyi") - UYI("uyi"), - - @SerializedName("uyu") - UYU("uyu"), - - @SerializedName("uzs") - UZS("uzs"), - - @SerializedName("vef") - VEF("vef"), - - @SerializedName("ves") - VES("ves"), - - @SerializedName("vnd") - VND("vnd"), - - @SerializedName("vuv") - VUV("vuv"), - - @SerializedName("wst") - WST("wst"), - - @SerializedName("xaf") - XAF("xaf"), - - @SerializedName("xcd") - XCD("xcd"), - - @SerializedName("xcg") - XCG("xcg"), - - @SerializedName("xof") - XOF("xof"), - - @SerializedName("xpf") - XPF("xpf"), - - @SerializedName("yer") - YER("yer"), - - @SerializedName("zar") - ZAR("zar"), - - @SerializedName("zmk") - ZMK("zmk"), - - @SerializedName("zmw") - ZMW("zmw"), - - @SerializedName("zwd") - ZWD("zwd"), - - @SerializedName("zwg") - ZWG("zwg"), - - @SerializedName("zwl") - ZWL("zwl"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Currency(String value) { - this.value = value; - } - } - - public enum Locale implements ApiRequestParams.EnumParam { - @SerializedName("ar-SA") - AR_SA("ar-SA"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bg-BG") - BG_BG("bg-BG"), - - @SerializedName("cs") - CS("cs"), - - @SerializedName("cs-CZ") - CS_CZ("cs-CZ"), - - @SerializedName("da") - DA("da"), - - @SerializedName("da-DK") - DA_DK("da-DK"), - - @SerializedName("de") - DE("de"), - - @SerializedName("de-DE") - DE_DE("de-DE"), - - @SerializedName("el") - EL("el"), - - @SerializedName("el-GR") - EL_GR("el-GR"), - - @SerializedName("en") - EN("en"), - - @SerializedName("en-AU") - EN_AU("en-AU"), - - @SerializedName("en-CA") - EN_CA("en-CA"), - - @SerializedName("en-GB") - EN_GB("en-GB"), - - @SerializedName("en-IE") - EN_IE("en-IE"), - - @SerializedName("en-IN") - EN_IN("en-IN"), - - @SerializedName("en-NZ") - EN_NZ("en-NZ"), - - @SerializedName("en-SG") - EN_SG("en-SG"), - - @SerializedName("en-US") - EN_US("en-US"), - - @SerializedName("es") - ES("es"), - - @SerializedName("es-419") - ES_419("es-419"), - - @SerializedName("es-ES") - ES_ES("es-ES"), - - @SerializedName("et") - ET("et"), - - @SerializedName("et-EE") - ET_EE("et-EE"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fil") - FIL("fil"), - - @SerializedName("fil-PH") - FIL_PH("fil-PH"), - - @SerializedName("fi-FI") - FI_FI("fi-FI"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("fr-CA") - FR_CA("fr-CA"), - - @SerializedName("fr-FR") - FR_FR("fr-FR"), - - @SerializedName("he-IL") - HE_IL("he-IL"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("hr-HR") - HR_HR("hr-HR"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("hu-HU") - HU_HU("hu-HU"), - - @SerializedName("id") - ID("id"), - - @SerializedName("id-ID") - ID_ID("id-ID"), - - @SerializedName("it") - IT("it"), - - @SerializedName("it-IT") - IT_IT("it-IT"), - - @SerializedName("ja") - JA("ja"), - - @SerializedName("ja-JP") - JA_JP("ja-JP"), - - @SerializedName("ko") - KO("ko"), - - @SerializedName("ko-KR") - KO_KR("ko-KR"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lt-LT") - LT_LT("lt-LT"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("lv-LV") - LV_LV("lv-LV"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("ms-MY") - MS_MY("ms-MY"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mt-MT") - MT_MT("mt-MT"), - - @SerializedName("nb") - NB("nb"), - - @SerializedName("nb-NO") - NB_NO("nb-NO"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("nl-NL") - NL_NL("nl-NL"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pl-PL") - PL_PL("pl-PL"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pt-BR") - PT_BR("pt-BR"), - - @SerializedName("pt-PT") - PT_PT("pt-PT"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("ro-RO") - RO_RO("ro-RO"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("ru-RU") - RU_RU("ru-RU"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sk-SK") - SK_SK("sk-SK"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sl-SI") - SL_SI("sl-SI"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sv-SE") - SV_SE("sv-SE"), - - @SerializedName("th") - TH("th"), - - @SerializedName("th-TH") - TH_TH("th-TH"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tr-TR") - TR_TR("tr-TR"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vi-VN") - VI_VN("vi-VN"), - - @SerializedName("zh") - ZH("zh"), - - @SerializedName("zh-Hans") - ZH_HANS("zh-Hans"), - - @SerializedName("zh-Hant-HK") - ZH_HANT_HK("zh-Hant-HK"), - - @SerializedName("zh-Hant-TW") - ZH_HANT_TW("zh-Hant-TW"), - - @SerializedName("zh-HK") - ZH_HK("zh-HK"), - - @SerializedName("zh-TW") - ZH_TW("zh-TW"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Locale(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Identity { - /** Attestations from the identity's key people, e.g. owners, executives, directors. */ - @SerializedName("attestations") - Attestations attestations; - - /** Information about the company or business. */ - @SerializedName("business_details") - BusinessDetails businessDetails; - - /** - * 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. - */ - @SerializedName("country") - Country country; - - /** The entity type. */ - @SerializedName("entity_type") - EntityType entityType; - - /** - * 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 individual represented by the Account. This property is {@code null} - * unless {@code entity_type} is set to {@code individual}. - */ - @SerializedName("individual") - Individual individual; - - private Identity( - Attestations attestations, - BusinessDetails businessDetails, - Country country, - EntityType entityType, - Map extraParams, - Individual individual) { - this.attestations = attestations; - this.businessDetails = businessDetails; - this.country = country; - this.entityType = entityType; - this.extraParams = extraParams; - this.individual = individual; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Attestations attestations; - - private BusinessDetails businessDetails; - - private Country country; - - private EntityType entityType; - - private Map extraParams; - - private Individual individual; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity build() { - return new AccountUpdateParams.Identity( - this.attestations, - this.businessDetails, - this.country, - this.entityType, - this.extraParams, - this.individual); - } - - /** Attestations from the identity's key people, e.g. owners, executives, directors. */ - public Builder setAttestations(AccountUpdateParams.Identity.Attestations attestations) { - this.attestations = attestations; - return this; - } - - /** Information about the company or business. */ - public Builder setBusinessDetails( - AccountUpdateParams.Identity.BusinessDetails businessDetails) { - this.businessDetails = businessDetails; - 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. - */ - public Builder setCountry(AccountUpdateParams.Identity.Country country) { - this.country = country; - return this; - } - - /** The entity type. */ - public Builder setEntityType(AccountUpdateParams.Identity.EntityType entityType) { - this.entityType = entityType; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` - * call, and subsequent calls add additional key/value pairs to the original map. See {@link - * AccountUpdateParams.Identity#extraParams} for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. - * See {@link AccountUpdateParams.Identity#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 individual represented by the Account. This property is {@code null} - * unless {@code entity_type} is set to {@code individual}. - */ - public Builder setIndividual(AccountUpdateParams.Identity.Individual individual) { - this.individual = individual; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Attestations { - /** - * This hash is used to attest that the directors information provided to Stripe is both - * current and correct. - */ - @SerializedName("directorship_declaration") - DirectorshipDeclaration directorshipDeclaration; - - /** - * 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; - - /** - * This hash is used to attest that the beneficial owner information provided to Stripe is - * both current and correct. - */ - @SerializedName("ownership_declaration") - OwnershipDeclaration ownershipDeclaration; - - /** Attestation that all Persons with a specific Relationship value have been provided. */ - @SerializedName("persons_provided") - PersonsProvided personsProvided; - - /** Attestations of accepted terms of service agreements. */ - @SerializedName("terms_of_service") - TermsOfService termsOfService; - - private Attestations( - DirectorshipDeclaration directorshipDeclaration, - Map extraParams, - OwnershipDeclaration ownershipDeclaration, - PersonsProvided personsProvided, - TermsOfService termsOfService) { - this.directorshipDeclaration = directorshipDeclaration; - this.extraParams = extraParams; - this.ownershipDeclaration = ownershipDeclaration; - this.personsProvided = personsProvided; - this.termsOfService = termsOfService; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private DirectorshipDeclaration directorshipDeclaration; - - private Map extraParams; - - private OwnershipDeclaration ownershipDeclaration; - - private PersonsProvided personsProvided; - - private TermsOfService termsOfService; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Attestations build() { - return new AccountUpdateParams.Identity.Attestations( - this.directorshipDeclaration, - this.extraParams, - this.ownershipDeclaration, - this.personsProvided, - this.termsOfService); - } - - /** - * This hash is used to attest that the directors information provided to Stripe is both - * current and correct. - */ - public Builder setDirectorshipDeclaration( - AccountUpdateParams.Identity.Attestations.DirectorshipDeclaration - directorshipDeclaration) { - this.directorshipDeclaration = directorshipDeclaration; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Attestations#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Attestations#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * This hash is used to attest that the beneficial owner information provided to Stripe is - * both current and correct. - */ - public Builder setOwnershipDeclaration( - AccountUpdateParams.Identity.Attestations.OwnershipDeclaration ownershipDeclaration) { - this.ownershipDeclaration = ownershipDeclaration; - return this; - } - - /** Attestation that all Persons with a specific Relationship value have been provided. */ - public Builder setPersonsProvided( - AccountUpdateParams.Identity.Attestations.PersonsProvided personsProvided) { - this.personsProvided = personsProvided; - return this; - } - - /** Attestations of accepted terms of service agreements. */ - public Builder setTermsOfService( - AccountUpdateParams.Identity.Attestations.TermsOfService termsOfService) { - this.termsOfService = termsOfService; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class DirectorshipDeclaration { - /** - * The time marking when the director attestation was made. Represented as a RFC 3339 date - * & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - @SerializedName("date") - Instant date; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** The IP address from which the director attestation was made. */ - @SerializedName("ip") - Object ip; - - /** The user agent of the browser from which the director attestation was made. */ - @SerializedName("user_agent") - Object userAgent; - - private DirectorshipDeclaration( - Instant date, Map extraParams, Object ip, Object userAgent) { - this.date = date; - this.extraParams = extraParams; - this.ip = ip; - this.userAgent = userAgent; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Instant date; - - private Map extraParams; - - private Object ip; - - private Object userAgent; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Attestations.DirectorshipDeclaration build() { - return new AccountUpdateParams.Identity.Attestations.DirectorshipDeclaration( - this.date, this.extraParams, this.ip, this.userAgent); - } - - /** - * The time marking when the director attestation was made. Represented as a RFC 3339 date - * & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - public Builder setDate(Instant date) { - this.date = date; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Identity.Attestations.DirectorshipDeclaration#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Identity.Attestations.DirectorshipDeclaration#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** The IP address from which the director attestation was made. */ - public Builder setIp(String ip) { - this.ip = ip; - return this; - } - - /** The IP address from which the director attestation was made. */ - public Builder setIp(EmptyParam ip) { - this.ip = ip; - return this; - } - - /** The user agent of the browser from which the director attestation was made. */ - public Builder setUserAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - - /** The user agent of the browser from which the director attestation was made. */ - public Builder setUserAgent(EmptyParam userAgent) { - this.userAgent = userAgent; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class OwnershipDeclaration { - /** - * The time marking when the beneficial owner attestation was made. Represented as a RFC - * 3339 date & time UTC value in millisecond precision, for example: - * 2022-09-18T13:22:18.123Z. - */ - @SerializedName("date") - Instant date; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** The IP address from which the beneficial owner attestation was made. */ - @SerializedName("ip") - Object ip; - - /** The user agent of the browser from which the beneficial owner attestation was made. */ - @SerializedName("user_agent") - Object userAgent; - - private OwnershipDeclaration( - Instant date, Map extraParams, Object ip, Object userAgent) { - this.date = date; - this.extraParams = extraParams; - this.ip = ip; - this.userAgent = userAgent; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Instant date; - - private Map extraParams; - - private Object ip; - - private Object userAgent; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Attestations.OwnershipDeclaration build() { - return new AccountUpdateParams.Identity.Attestations.OwnershipDeclaration( - this.date, this.extraParams, this.ip, this.userAgent); - } - - /** - * The time marking when the beneficial owner attestation was made. Represented as a RFC - * 3339 date & time UTC value in millisecond precision, for example: - * 2022-09-18T13:22:18.123Z. - */ - public Builder setDate(Instant date) { - this.date = date; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Identity.Attestations.OwnershipDeclaration#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Identity.Attestations.OwnershipDeclaration#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** The IP address from which the beneficial owner attestation was made. */ - public Builder setIp(String ip) { - this.ip = ip; - return this; - } - - /** The IP address from which the beneficial owner attestation was made. */ - public Builder setIp(EmptyParam ip) { - this.ip = ip; - return this; - } - - /** The user agent of the browser from which the beneficial owner attestation was made. */ - public Builder setUserAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - - /** The user agent of the browser from which the beneficial owner attestation was made. */ - public Builder setUserAgent(EmptyParam userAgent) { - this.userAgent = userAgent; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PersonsProvided { - /** - * Whether the company’s directors have been provided. Set this Boolean to true after - * creating all the company’s directors with the Persons API. - */ - @SerializedName("directors") - Boolean directors; - - /** - * Whether the company’s executives have been provided. Set this Boolean to true after - * creating all the company’s executives with the Persons API. - */ - @SerializedName("executives") - Boolean executives; - - /** - * 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; - - /** - * Whether the company’s owners have been provided. Set this Boolean to true after creating - * all the company’s owners with the Persons API. - */ - @SerializedName("owners") - Boolean owners; - - /** Reason for why the company is exempt from providing ownership information. */ - @SerializedName("ownership_exemption_reason") - OwnershipExemptionReason ownershipExemptionReason; - - private PersonsProvided( - Boolean directors, - Boolean executives, - Map extraParams, - Boolean owners, - OwnershipExemptionReason ownershipExemptionReason) { - this.directors = directors; - this.executives = executives; - this.extraParams = extraParams; - this.owners = owners; - this.ownershipExemptionReason = ownershipExemptionReason; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Boolean directors; - - private Boolean executives; - - private Map extraParams; - - private Boolean owners; - - private OwnershipExemptionReason ownershipExemptionReason; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Attestations.PersonsProvided build() { - return new AccountUpdateParams.Identity.Attestations.PersonsProvided( - this.directors, - this.executives, - this.extraParams, - this.owners, - this.ownershipExemptionReason); - } - - /** - * Whether the company’s directors have been provided. Set this Boolean to true after - * creating all the company’s directors with the Persons API. - */ - public Builder setDirectors(Boolean directors) { - this.directors = directors; - return this; - } - - /** - * Whether the company’s executives have been provided. Set this Boolean to true after - * creating all the company’s executives with the Persons API. - */ - public Builder setExecutives(Boolean executives) { - this.executives = executives; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Attestations.PersonsProvided#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Attestations.PersonsProvided#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Whether the company’s owners have been provided. Set this Boolean to true after - * creating all the company’s owners with the Persons API. - */ - public Builder setOwners(Boolean owners) { - this.owners = owners; - return this; - } - - /** Reason for why the company is exempt from providing ownership information. */ - public Builder setOwnershipExemptionReason( - AccountUpdateParams.Identity.Attestations.PersonsProvided.OwnershipExemptionReason - ownershipExemptionReason) { - this.ownershipExemptionReason = ownershipExemptionReason; - return this; - } - } - - public enum OwnershipExemptionReason implements ApiRequestParams.EnumParam { - @SerializedName("qualified_entity_exceeds_ownership_threshold") - QUALIFIED_ENTITY_EXCEEDS_OWNERSHIP_THRESHOLD( - "qualified_entity_exceeds_ownership_threshold"), - - @SerializedName("qualifies_as_financial_institution") - QUALIFIES_AS_FINANCIAL_INSTITUTION("qualifies_as_financial_institution"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - OwnershipExemptionReason(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class TermsOfService { - /** - * Details on the Account's acceptance of the Stripe Services - * Agreement. - */ - @SerializedName("account") - Account account; - - /** - * 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; - - /** Details on the Account's acceptance of Treasury-specific terms of service. */ - @SerializedName("storer") - Storer storer; - - private TermsOfService(Account account, Map extraParams, Storer storer) { - this.account = account; - this.extraParams = extraParams; - this.storer = storer; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Account account; - - private Map extraParams; - - private Storer storer; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Attestations.TermsOfService build() { - return new AccountUpdateParams.Identity.Attestations.TermsOfService( - this.account, this.extraParams, this.storer); - } - - /** - * Details on the Account's acceptance of the Stripe Services - * Agreement. - */ - public Builder setAccount( - AccountUpdateParams.Identity.Attestations.TermsOfService.Account account) { - this.account = account; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Attestations.TermsOfService#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Attestations.TermsOfService#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Details on the Account's acceptance of Treasury-specific terms of service. */ - public Builder setStorer( - AccountUpdateParams.Identity.Attestations.TermsOfService.Storer storer) { - this.storer = storer; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Account { - /** - * The time when the Account's representative accepted the terms of service. Represented - * as a RFC 3339 date & time UTC value in millisecond precision, for example: - * 2022-09-18T13:22:18.123Z. - */ - @SerializedName("date") - Instant date; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * The IP address from which the Account's representative accepted the terms of service. - */ - @SerializedName("ip") - Object ip; - - /** - * The user agent of the browser from which the Account's representative accepted the - * terms of service. - */ - @SerializedName("user_agent") - Object userAgent; - - private Account( - Instant date, Map extraParams, Object ip, Object userAgent) { - this.date = date; - this.extraParams = extraParams; - this.ip = ip; - this.userAgent = userAgent; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Instant date; - - private Map extraParams; - - private Object ip; - - private Object userAgent; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Attestations.TermsOfService.Account build() { - return new AccountUpdateParams.Identity.Attestations.TermsOfService.Account( - this.date, this.extraParams, this.ip, this.userAgent); - } - - /** - * The time when the Account's representative accepted the terms of service. Represented - * as a RFC 3339 date & time UTC value in millisecond precision, for example: - * 2022-09-18T13:22:18.123Z. - */ - public Builder setDate(Instant date) { - this.date = date; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.Attestations.TermsOfService.Account#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.Attestations.TermsOfService.Account#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * The IP address from which the Account's representative accepted the terms of service. - */ - public Builder setIp(String ip) { - this.ip = ip; - return this; - } - - /** - * The IP address from which the Account's representative accepted the terms of service. - */ - public Builder setIp(EmptyParam ip) { - this.ip = ip; - return this; - } - - /** - * The user agent of the browser from which the Account's representative accepted the - * terms of service. - */ - public Builder setUserAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - - /** - * The user agent of the browser from which the Account's representative accepted the - * terms of service. - */ - public Builder setUserAgent(EmptyParam userAgent) { - this.userAgent = userAgent; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Storer { - /** - * The time when the Account's representative accepted the terms of service. Represented - * as a RFC 3339 date & time UTC value in millisecond precision, for example: - * 2022-09-18T13:22:18.123Z. - */ - @SerializedName("date") - Instant date; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its - * parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * The IP address from which the Account's representative accepted the terms of service. - */ - @SerializedName("ip") - Object ip; - - /** - * The user agent of the browser from which the Account's representative accepted the - * terms of service. - */ - @SerializedName("user_agent") - Object userAgent; - - private Storer( - Instant date, Map extraParams, Object ip, Object userAgent) { - this.date = date; - this.extraParams = extraParams; - this.ip = ip; - this.userAgent = userAgent; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Instant date; - - private Map extraParams; - - private Object ip; - - private Object userAgent; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Attestations.TermsOfService.Storer build() { - return new AccountUpdateParams.Identity.Attestations.TermsOfService.Storer( - this.date, this.extraParams, this.ip, this.userAgent); - } - - /** - * The time when the Account's representative accepted the terms of service. Represented - * as a RFC 3339 date & time UTC value in millisecond precision, for example: - * 2022-09-18T13:22:18.123Z. - */ - public Builder setDate(Instant date) { - this.date = date; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.Attestations.TermsOfService.Storer#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.Attestations.TermsOfService.Storer#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * The IP address from which the Account's representative accepted the terms of service. - */ - public Builder setIp(String ip) { - this.ip = ip; - return this; - } - - /** - * The IP address from which the Account's representative accepted the terms of service. - */ - public Builder setIp(EmptyParam ip) { - this.ip = ip; - return this; - } - - /** - * The user agent of the browser from which the Account's representative accepted the - * terms of service. - */ - public Builder setUserAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - - /** - * The user agent of the browser from which the Account's representative accepted the - * terms of service. - */ - public Builder setUserAgent(EmptyParam userAgent) { - this.userAgent = userAgent; - return this; - } - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class BusinessDetails { - /** The business registration address of the business entity. */ - @SerializedName("address") - Object address; - - /** The business gross annual revenue for its preceding fiscal year. */ - @SerializedName("annual_revenue") - Object annualRevenue; - - /** A document verifying the business. */ - @SerializedName("documents") - Object documents; - - /** The name which is used by the business. */ - @SerializedName("doing_business_as") - Object doingBusinessAs; - - /** - * An estimated upper bound of employees, contractors, vendors, etc. currently working for the - * business. - */ - @SerializedName("estimated_worker_count") - Object estimatedWorkerCount; - - /** - * 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 ID numbers of a business entity. */ - @SerializedName("id_numbers") - Object idNumbers; - - /** An estimate of the monthly revenue of the business. */ - @SerializedName("monthly_estimated_revenue") - Object monthlyEstimatedRevenue; - - /** The phone number of the Business Entity. */ - @SerializedName("phone") - Object phone; - - /** - * Internal-only description of the product sold or service provided by the business. It’s - * used by Stripe for risk and underwriting purposes. - */ - @SerializedName("product_description") - Object productDescription; - - /** The business legal name. */ - @SerializedName("registered_name") - Object registeredName; - - /** The business registration address of the business entity in non latin script. */ - @SerializedName("script_addresses") - Object scriptAddresses; - - /** The business legal name in non latin script. */ - @SerializedName("script_names") - Object scriptNames; - - /** The category identifying the legal structure of the business. */ - @SerializedName("structure") - ApiRequestParams.EnumParam structure; - - /** The business's publicly available website. */ - @SerializedName("url") - Object url; - - private BusinessDetails( - Object address, - Object annualRevenue, - Object documents, - Object doingBusinessAs, - Object estimatedWorkerCount, - Map extraParams, - Object idNumbers, - Object monthlyEstimatedRevenue, - Object phone, - Object productDescription, - Object registeredName, - Object scriptAddresses, - Object scriptNames, - ApiRequestParams.EnumParam structure, - Object url) { - this.address = address; - this.annualRevenue = annualRevenue; - this.documents = documents; - this.doingBusinessAs = doingBusinessAs; - this.estimatedWorkerCount = estimatedWorkerCount; - this.extraParams = extraParams; - this.idNumbers = idNumbers; - this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; - this.phone = phone; - this.productDescription = productDescription; - this.registeredName = registeredName; - this.scriptAddresses = scriptAddresses; - this.scriptNames = scriptNames; - this.structure = structure; - this.url = url; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object address; - - private Object annualRevenue; - - private Object documents; - - private Object doingBusinessAs; - - private Object estimatedWorkerCount; - - private Map extraParams; - - private Object idNumbers; - - private Object monthlyEstimatedRevenue; - - private Object phone; - - private Object productDescription; - - private Object registeredName; - - private Object scriptAddresses; - - private Object scriptNames; - - private ApiRequestParams.EnumParam structure; - - private Object url; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails build() { - return new AccountUpdateParams.Identity.BusinessDetails( - this.address, - this.annualRevenue, - this.documents, - this.doingBusinessAs, - this.estimatedWorkerCount, - this.extraParams, - this.idNumbers, - this.monthlyEstimatedRevenue, - this.phone, - this.productDescription, - this.registeredName, - this.scriptAddresses, - this.scriptNames, - this.structure, - this.url); - } - - /** The business registration address of the business entity. */ - public Builder setAddress(AccountUpdateParams.Identity.BusinessDetails.Address address) { - this.address = address; - return this; - } - - /** The business registration address of the business entity. */ - public Builder setAddress(EmptyParam address) { - this.address = address; - return this; - } - - /** The business gross annual revenue for its preceding fiscal year. */ - public Builder setAnnualRevenue( - AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue annualRevenue) { - this.annualRevenue = annualRevenue; - return this; - } - - /** The business gross annual revenue for its preceding fiscal year. */ - public Builder setAnnualRevenue(EmptyParam annualRevenue) { - this.annualRevenue = annualRevenue; - return this; - } - - /** A document verifying the business. */ - public Builder setDocuments( - AccountUpdateParams.Identity.BusinessDetails.Documents documents) { - this.documents = documents; - return this; - } - - /** A document verifying the business. */ - public Builder setDocuments(EmptyParam documents) { - this.documents = documents; - return this; - } - - /** The name which is used by the business. */ - public Builder setDoingBusinessAs(String doingBusinessAs) { - this.doingBusinessAs = doingBusinessAs; - return this; - } - - /** The name which is used by the business. */ - public Builder setDoingBusinessAs(EmptyParam doingBusinessAs) { - this.doingBusinessAs = doingBusinessAs; - return this; - } - - /** - * An estimated upper bound of employees, contractors, vendors, etc. currently working for - * the business. - */ - public Builder setEstimatedWorkerCount(Integer estimatedWorkerCount) { - this.estimatedWorkerCount = estimatedWorkerCount; - return this; - } - - /** - * An estimated upper bound of employees, contractors, vendors, etc. currently working for - * the business. - */ - public Builder setEstimatedWorkerCount(EmptyParam estimatedWorkerCount) { - this.estimatedWorkerCount = estimatedWorkerCount; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.BusinessDetails#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.BusinessDetails#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 `idNumbers` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * AccountUpdateParams.Identity.BusinessDetails#idNumbers} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addIdNumber(AccountUpdateParams.Identity.BusinessDetails.IdNumber element) { - if (this.idNumbers == null || this.idNumbers instanceof EmptyParam) { - this.idNumbers = new ArrayList(); - } - ((List) this.idNumbers) - .add(element); - return this; - } - - /** - * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * AccountUpdateParams.Identity.BusinessDetails#idNumbers} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAllIdNumber( - List elements) { - if (this.idNumbers == null || this.idNumbers instanceof EmptyParam) { - this.idNumbers = new ArrayList(); - } - ((List) this.idNumbers) - .addAll(elements); - return this; - } - - /** The ID numbers of a business entity. */ - public Builder setIdNumbers(EmptyParam idNumbers) { - this.idNumbers = idNumbers; - return this; - } - - /** The ID numbers of a business entity. */ - public Builder setIdNumbers( - List idNumbers) { - this.idNumbers = idNumbers; - return this; - } - - /** An estimate of the monthly revenue of the business. */ - public Builder setMonthlyEstimatedRevenue( - AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue - monthlyEstimatedRevenue) { - this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; - return this; - } - - /** An estimate of the monthly revenue of the business. */ - public Builder setMonthlyEstimatedRevenue(EmptyParam monthlyEstimatedRevenue) { - this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; - return this; - } - - /** The phone number of the Business Entity. */ - public Builder setPhone(String phone) { - this.phone = phone; - return this; - } - - /** The phone number of the Business Entity. */ - public Builder setPhone(EmptyParam phone) { - this.phone = phone; - return this; - } - - /** - * Internal-only description of the product sold or service provided by the business. It’s - * used by Stripe for risk and underwriting purposes. - */ - public Builder setProductDescription(String productDescription) { - this.productDescription = productDescription; - return this; - } - - /** - * Internal-only description of the product sold or service provided by the business. It’s - * used by Stripe for risk and underwriting purposes. - */ - public Builder setProductDescription(EmptyParam productDescription) { - this.productDescription = productDescription; - return this; - } - - /** The business legal name. */ - public Builder setRegisteredName(String registeredName) { - this.registeredName = registeredName; - return this; - } - - /** The business legal name. */ - public Builder setRegisteredName(EmptyParam registeredName) { - this.registeredName = registeredName; - return this; - } - - /** The business registration address of the business entity in non latin script. */ - public Builder setScriptAddresses( - AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses scriptAddresses) { - this.scriptAddresses = scriptAddresses; - return this; - } - - /** The business registration address of the business entity in non latin script. */ - public Builder setScriptAddresses(EmptyParam scriptAddresses) { - this.scriptAddresses = scriptAddresses; - return this; - } - - /** The business legal name in non latin script. */ - public Builder setScriptNames( - AccountUpdateParams.Identity.BusinessDetails.ScriptNames scriptNames) { - this.scriptNames = scriptNames; - return this; - } - - /** The business legal name in non latin script. */ - public Builder setScriptNames(EmptyParam scriptNames) { - this.scriptNames = scriptNames; - return this; - } - - /** The category identifying the legal structure of the business. */ - public Builder setStructure( - AccountUpdateParams.Identity.BusinessDetails.Structure structure) { - this.structure = structure; - return this; - } - - /** The category identifying the legal structure of the business. */ - public Builder setStructure(EmptyParam structure) { - this.structure = structure; - return this; - } - - /** The business's publicly available website. */ - public Builder setUrl(String url) { - this.url = url; - return this; - } - - /** The business's publicly available website. */ - public Builder setUrl(EmptyParam url) { - this.url = url; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Address { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - Object city; - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - @SerializedName("country") - ApiRequestParams.EnumParam 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") - Object line1; - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - Object line2; - - /** ZIP or postal code. */ - @SerializedName("postal_code") - Object postalCode; - - /** State, county, province, or region. */ - @SerializedName("state") - Object state; - - /** Town or cho-me. */ - @SerializedName("town") - Object town; - - private Address( - Object city, - ApiRequestParams.EnumParam country, - Map extraParams, - Object line1, - Object line2, - Object postalCode, - Object state, - Object 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 Object city; - - private ApiRequestParams.EnumParam country; - - private Map extraParams; - - private Object line1; - - private Object line2; - - private Object postalCode; - - private Object state; - - private Object town; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Address build() { - return new AccountUpdateParams.Identity.BusinessDetails.Address( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(EmptyParam city) { - this.city = city; - return this; - } - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - public Builder setCountry( - AccountUpdateParams.Identity.BusinessDetails.Address.Country country) { - this.country = country; - return this; - } - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - public Builder setCountry(EmptyParam 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 AccountUpdateParams.Identity.BusinessDetails.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 AccountUpdateParams.Identity.BusinessDetails.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 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(EmptyParam 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; - } - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(EmptyParam line2) { - this.line2 = line2; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(EmptyParam postalCode) { - this.postalCode = postalCode; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(EmptyParam state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(EmptyParam town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AnnualRevenue { - /** A non-negative integer representing the amount in the smallest currency unit. */ - @SerializedName("amount") - Amount amount; - - /** - * 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 close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for - * the 31st of December, 2023. - */ - @SerializedName("fiscal_year_end") - Object fiscalYearEnd; - - private AnnualRevenue( - Amount amount, Map extraParams, Object fiscalYearEnd) { - this.amount = amount; - this.extraParams = extraParams; - this.fiscalYearEnd = fiscalYearEnd; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Amount amount; - - private Map extraParams; - - private Object fiscalYearEnd; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue build() { - return new AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue( - this.amount, this.extraParams, this.fiscalYearEnd); - } - - /** A non-negative integer representing the amount in the smallest currency unit. */ - public Builder setAmount(Amount amount) { - this.amount = amount; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue#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 close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for - * the 31st of December, 2023. - */ - public Builder setFiscalYearEnd(String fiscalYearEnd) { - this.fiscalYearEnd = fiscalYearEnd; - return this; - } - - /** - * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for - * the 31st of December, 2023. - */ - public Builder setFiscalYearEnd(EmptyParam fiscalYearEnd) { - this.fiscalYearEnd = fiscalYearEnd; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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 check. - */ - @SerializedName("bank_account_ownership_verification") - Object bankAccountOwnershipVerification; - - /** One or more documents that demonstrate proof of a company’s license to operate. */ - @SerializedName("company_license") - Object companyLicense; - - /** One or more documents showing the company’s Memorandum of Association. */ - @SerializedName("company_memorandum_of_association") - Object companyMemorandumOfAssociation; - - /** - * Certain countries only: One or more documents showing the ministerial decree legalizing - * the company’s establishment. - */ - @SerializedName("company_ministerial_decree") - Object companyMinisterialDecree; - - /** - * One or more documents that demonstrate proof of a company’s registration with the - * appropriate local authorities. - */ - @SerializedName("company_registration_verification") - Object companyRegistrationVerification; - - /** One or more documents that demonstrate proof of a company’s tax ID. */ - @SerializedName("company_tax_id_verification") - Object 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; - - /** A document verifying the business. */ - @SerializedName("primary_verification") - Object primaryVerification; - - /** One or more documents that demonstrate proof of address. */ - @SerializedName("proof_of_address") - ProofOfAddress proofOfAddress; - - /** - * One or more documents showing the company’s proof of registration with the national - * business registry. - */ - @SerializedName("proof_of_registration") - Object proofOfRegistration; - - /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ - @SerializedName("proof_of_ultimate_beneficial_ownership") - ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; - - private Documents( - Object bankAccountOwnershipVerification, - Object companyLicense, - Object companyMemorandumOfAssociation, - Object companyMinisterialDecree, - Object companyRegistrationVerification, - Object companyTaxIdVerification, - Map extraParams, - Object primaryVerification, - ProofOfAddress proofOfAddress, - Object proofOfRegistration, - ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership) { - this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; - this.companyLicense = companyLicense; - this.companyMemorandumOfAssociation = companyMemorandumOfAssociation; - this.companyMinisterialDecree = companyMinisterialDecree; - this.companyRegistrationVerification = companyRegistrationVerification; - this.companyTaxIdVerification = companyTaxIdVerification; - this.extraParams = extraParams; - this.primaryVerification = primaryVerification; - this.proofOfAddress = proofOfAddress; - this.proofOfRegistration = proofOfRegistration; - this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object bankAccountOwnershipVerification; - - private Object companyLicense; - - private Object companyMemorandumOfAssociation; - - private Object companyMinisterialDecree; - - private Object companyRegistrationVerification; - - private Object companyTaxIdVerification; - - private Map extraParams; - - private Object primaryVerification; - - private ProofOfAddress proofOfAddress; - - private Object proofOfRegistration; - - private ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents( - this.bankAccountOwnershipVerification, - this.companyLicense, - this.companyMemorandumOfAssociation, - this.companyMinisterialDecree, - this.companyRegistrationVerification, - this.companyTaxIdVerification, - this.extraParams, - this.primaryVerification, - this.proofOfAddress, - this.proofOfRegistration, - this.proofOfUltimateBeneficialOwnership); - } - - /** - * 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 check. - */ - public Builder setBankAccountOwnershipVerification( - AccountUpdateParams.Identity.BusinessDetails.Documents - .BankAccountOwnershipVerification - bankAccountOwnershipVerification) { - this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; - return this; - } - - /** - * 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 check. - */ - public Builder setBankAccountOwnershipVerification( - EmptyParam bankAccountOwnershipVerification) { - this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; - return this; - } - - /** One or more documents that demonstrate proof of a company’s license to operate. */ - public Builder setCompanyLicense( - AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense - companyLicense) { - this.companyLicense = companyLicense; - return this; - } - - /** One or more documents that demonstrate proof of a company’s license to operate. */ - public Builder setCompanyLicense(EmptyParam companyLicense) { - this.companyLicense = companyLicense; - return this; - } - - /** One or more documents showing the company’s Memorandum of Association. */ - public Builder setCompanyMemorandumOfAssociation( - AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation - companyMemorandumOfAssociation) { - this.companyMemorandumOfAssociation = companyMemorandumOfAssociation; - return this; - } - - /** One or more documents showing the company’s Memorandum of Association. */ - public Builder setCompanyMemorandumOfAssociation( - EmptyParam 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( - AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree - companyMinisterialDecree) { - this.companyMinisterialDecree = companyMinisterialDecree; - return this; - } - - /** - * Certain countries only: One or more documents showing the ministerial decree legalizing - * the company’s establishment. - */ - public Builder setCompanyMinisterialDecree(EmptyParam 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( - AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification - companyRegistrationVerification) { - this.companyRegistrationVerification = companyRegistrationVerification; - return this; - } - - /** - * One or more documents that demonstrate proof of a company’s registration with the - * appropriate local authorities. - */ - public Builder setCompanyRegistrationVerification( - EmptyParam companyRegistrationVerification) { - this.companyRegistrationVerification = companyRegistrationVerification; - return this; - } - - /** One or more documents that demonstrate proof of a company’s tax ID. */ - public Builder setCompanyTaxIdVerification( - AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification - companyTaxIdVerification) { - this.companyTaxIdVerification = companyTaxIdVerification; - return this; - } - - /** One or more documents that demonstrate proof of a company’s tax ID. */ - public Builder setCompanyTaxIdVerification(EmptyParam 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 AccountUpdateParams.Identity.BusinessDetails.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 AccountUpdateParams.Identity.BusinessDetails.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; - } - - /** A document verifying the business. */ - public Builder setPrimaryVerification( - AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification - primaryVerification) { - this.primaryVerification = primaryVerification; - return this; - } - - /** A document verifying the business. */ - public Builder setPrimaryVerification(EmptyParam primaryVerification) { - this.primaryVerification = primaryVerification; - return this; - } - - /** One or more documents that demonstrate proof of address. */ - public Builder setProofOfAddress( - AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress - proofOfAddress) { - this.proofOfAddress = proofOfAddress; - return this; - } - - /** - * One or more documents showing the company’s proof of registration with the national - * business registry. - */ - public Builder setProofOfRegistration( - AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration - proofOfRegistration) { - this.proofOfRegistration = proofOfRegistration; - return this; - } - - /** - * One or more documents showing the company’s proof of registration with the national - * business registry. - */ - public Builder setProofOfRegistration(EmptyParam proofOfRegistration) { - this.proofOfRegistration = proofOfRegistration; - return this; - } - - /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ - public Builder setProofOfUltimateBeneficialOwnership( - AccountUpdateParams.Identity.BusinessDetails.Documents - .ProofOfUltimateBeneficialOwnership - proofOfUltimateBeneficialOwnership) { - this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private BankAccountOwnershipVerification( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents - .BankAccountOwnershipVerification - build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents - .BankAccountOwnershipVerification(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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; - } - - /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountUpdateParams.Identity.BusinessDetails.Documents - .BankAccountOwnershipVerification.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyLicense(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense( - this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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; - } - - /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense#files} for the - * field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyMemorandumOfAssociation( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents - .CompanyMemorandumOfAssociation - build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents - .CompanyMemorandumOfAssociation(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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; - } - - /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountUpdateParams.Identity.BusinessDetails.Documents - .CompanyMemorandumOfAssociation.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyMinisterialDecree( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree - build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents - .CompanyMinisterialDecree(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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; - } - - /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyRegistrationVerification( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents - .CompanyRegistrationVerification - build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents - .CompanyRegistrationVerification(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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; - } - - /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountUpdateParams.Identity.BusinessDetails.Documents - .CompanyRegistrationVerification.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - 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; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyTaxIdVerification( - Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification - build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents - .CompanyTaxIdVerification(this.extraParams, this.files, this.type); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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 - * AccountUpdateParams.Identity.BusinessDetails.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; - } - - /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification.Type - type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class PrimaryVerification { + 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. @@ -15766,25 +4004,15 @@ public static class PrimaryVerification { Map extraParams; /** - * Required. The file upload tokens - * referring to each side of the document. - */ - @SerializedName("front_back") - FrontBack frontBack; - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. */ - @SerializedName("type") - Type type; + @SerializedName("requested") + Boolean requested; - private PrimaryVerification( - Map extraParams, FrontBack frontBack, Type type) { + private CardPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; - this.frontBack = frontBack; - this.type = type; + this.requested = requested; } public static Builder builder() { @@ -15794,23 +4022,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private FrontBack frontBack; - - private Type type; + private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification - build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification( - this.extraParams, this.frontBack, this.type); + public AccountUpdateParams.Configuration.Merchant.Capabilities.CardPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification#extraParams} - * for the field documentation. + * AccountUpdateParams.Configuration.Merchant.Capabilities.CardPayments#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -15824,8 +4049,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification#extraParams} - * for the field documentation. + * AccountUpdateParams.Configuration.Merchant.Capabilities.CardPayments#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -15836,183 +4061,101 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The file upload tokens - * referring to each side of the document. - */ - public Builder setFrontBack( - AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack - frontBack) { - this.frontBack = frontBack; - return this; - } - - /** - * Required. The format of the verification document. Currently - * supports {@code front_back} only. + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. */ - public Builder setType( - AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification.Type - type) { - this.type = type; + public Builder setRequested(Boolean requested) { + this.requested = requested; return this; } } + } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FrontBack { - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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") - Object 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; - - /** - * A file upload - * token representing the front of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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") - Object front; - - private FrontBack(Object back, Map extraParams, Object front) { - this.back = back; - this.extraParams = extraParams; - this.front = front; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object back; - - private Map extraParams; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - private Object front; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification - .FrontBack - build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents - .PrimaryVerification.FrontBack(this.back, this.extraParams, this.front); - } + private CartesBancairesPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** - * A file upload - * token representing the back of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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; - } + public static Builder builder() { + return new Builder(); + } - /** - * A file upload - * token representing the back of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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(EmptyParam back) { - this.back = back; - return this; - } + public static class Builder { + private Map extraParams; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack#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; - } + private Boolean requested; - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities + .CartesBancairesPayments(this.extraParams, this.requested); + } - /** - * A file upload - * token representing the front of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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 setFront(String front) { - this.front = front; - return this; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - /** - * A file upload - * token representing the front of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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 setFront(EmptyParam front) { - this.front = front; - return this; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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 enum Type implements ApiRequestParams.EnumParam { - @SerializedName("front_back") - FRONT_BACK("front_back"); - - @Getter(onMethod_ = {@Override}) - private final String value; - Type(String value) { - this.value = value; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class ProofOfAddress { + public static class CashappPayments { /** * 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. @@ -16024,24 +4167,15 @@ public static class ProofOfAddress { Map extraParams; /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. */ - @SerializedName("type") - Type type; + @SerializedName("requested") + Boolean requested; - private ProofOfAddress(Map extraParams, List files, Type type) { + private CashappPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; - this.files = files; - this.type = type; + this.requested = requested; } public static Builder builder() { @@ -16051,21 +4185,19 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private List files; - - private Type type; + private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress( - this.extraParams, this.files, this.type); + public AccountUpdateParams.Configuration.Merchant.Capabilities.CashappPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.CashappPayments( + this.extraParams, this.requested); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress#extraParams} + * AccountUpdateParams.Configuration.Merchant.Capabilities.CashappPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -16080,7 +4212,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress#extraParams} + * AccountUpdateParams.Configuration.Merchant.Capabilities.CashappPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -16092,60 +4224,19 @@ public Builder putAllExtraParam(Map map) { } /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress#files} for the - * field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress#files} for the - * field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. */ - public Builder setType( - AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress.Type type) { - this.type = type; + public Builder setRequested(Boolean requested) { + this.requested = requested; return this; } } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } } @Getter @EqualsAndHashCode(callSuper = false) - public static class ProofOfRegistration { + 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. @@ -16157,25 +4248,15 @@ public static class ProofOfRegistration { Map extraParams; /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. */ - @SerializedName("type") - Type type; + @SerializedName("requested") + Boolean requested; - private ProofOfRegistration( - Map extraParams, List files, Type type) { + private EpsPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; - this.files = files; - this.type = type; + this.requested = requested; } public static Builder builder() { @@ -16185,23 +4266,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private List files; - - private Type type; + private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration - build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration( - this.extraParams, this.files, this.type); + public AccountUpdateParams.Configuration.Merchant.Capabilities.EpsPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#extraParams} - * for the field documentation. + * AccountUpdateParams.Configuration.Merchant.Capabilities.EpsPayments#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -16215,8 +4293,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#extraParams} - * for the field documentation. + * AccountUpdateParams.Configuration.Merchant.Capabilities.EpsPayments#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -16227,61 +4305,100 @@ public Builder putAllExtraParam(Map map) { } /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#files} for - * the field documentation. + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); + public Builder setRequested(Boolean requested) { + this.requested = requested; return this; } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + 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; + + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; + + private 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 AccountUpdateParams.Configuration.Merchant.Capabilities.FpxPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.FpxPayments( + this.extraParams, this.requested); + } /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#files} for + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.FpxPayments#extraParams} for * the field documentation. */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); } - this.files.addAll(elements); + this.extraParams.put(key, value); return this; } /** - * Required. The format of the document. Currently supports {@code - * files} only. + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.FpxPayments#extraParams} for + * the field documentation. */ - public Builder setType( - AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration.Type - type) { - this.type = type; + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); return this; } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - Type(String value) { - this.value = value; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class ProofOfUltimateBeneficialOwnership { + public static class GbBankTransferPayments { /** * 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. @@ -16293,25 +4410,15 @@ public static class ProofOfUltimateBeneficialOwnership { Map extraParams; /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. */ - @SerializedName("type") - Type type; + @SerializedName("requested") + Boolean requested; - private ProofOfUltimateBeneficialOwnership( - Map extraParams, List files, Type type) { + private GbBankTransferPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; - this.files = files; - this.type = type; + this.requested = requested; } public static Builder builder() { @@ -16321,23 +4428,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private List files; - - private Type type; + private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.Documents - .ProofOfUltimateBeneficialOwnership + public AccountUpdateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments build() { - return new AccountUpdateParams.Identity.BusinessDetails.Documents - .ProofOfUltimateBeneficialOwnership(this.extraParams, this.files, this.type); + return new AccountUpdateParams.Configuration.Merchant.Capabilities + .GbBankTransferPayments(this.extraParams, this.requested); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#extraParams} + * AccountUpdateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -16352,7 +4456,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#extraParams} + * AccountUpdateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -16364,587 +4468,750 @@ public Builder putAllExtraParam(Map map) { } /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#files} - * for the field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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 - * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#files} - * for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. */ - public Builder setType( - AccountUpdateParams.Identity.BusinessDetails.Documents - .ProofOfUltimateBeneficialOwnership.Type - type) { - this.type = type; + public Builder setRequested(Boolean requested) { + this.requested = requested; return this; } } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class IdNumber { - /** - * 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 registrar of the ID number (Only valid for DE ID number types). */ - @SerializedName("registrar") - Object registrar; - - /** Required. Open Enum. The ID number type of a business entity. */ - @SerializedName("type") - Type type; - - /** Required. The value of the ID number. */ - @SerializedName("value") - Object value; - - private IdNumber( - Map extraParams, Object registrar, Type type, Object value) { - this.extraParams = extraParams; - this.registrar = registrar; - this.type = type; - this.value = value; - } - - public static Builder builder() { - return new Builder(); } - public static class Builder { - private Map extraParams; - - private Object registrar; - - private Type type; - - private Object value; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.IdNumber build() { - return new AccountUpdateParams.Identity.BusinessDetails.IdNumber( - this.extraParams, this.registrar, this.type, this.value); - } - + @Getter + @EqualsAndHashCode(callSuper = false) + public static class GrabpayPayments { /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.BusinessDetails.IdNumber#extraParams} for - * the field documentation. + * 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. */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.BusinessDetails.IdNumber#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 registrar of the ID number (Only valid for DE ID number types). */ - public Builder setRegistrar(String registrar) { - this.registrar = registrar; - return this; - } - - /** The registrar of the ID number (Only valid for DE ID number types). */ - public Builder setRegistrar(EmptyParam registrar) { - this.registrar = registrar; - return this; - } - - /** Required. Open Enum. The ID number type of a business entity. */ - public Builder setType(AccountUpdateParams.Identity.BusinessDetails.IdNumber.Type type) { - this.type = type; - return this; - } - - /** Required. The value of the ID number. */ - public Builder setValue(String value) { - this.value = value; - return this; - } - - /** Required. The value of the ID number. */ - public Builder setValue(EmptyParam value) { - this.value = value; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ae_crn") - AE_CRN("ae_crn"), - - @SerializedName("ae_vat") - AE_VAT("ae_vat"), - - @SerializedName("ao_nif") - AO_NIF("ao_nif"), - - @SerializedName("at_fn") - AT_FN("at_fn"), - - @SerializedName("au_abn") - AU_ABN("au_abn"), - - @SerializedName("au_acn") - AU_ACN("au_acn"), - - @SerializedName("au_in") - AU_IN("au_in"), - - @SerializedName("az_tin") - AZ_TIN("az_tin"), - - @SerializedName("bd_etin") - BD_ETIN("bd_etin"), - - @SerializedName("be_cbe") - BE_CBE("be_cbe"), - - @SerializedName("bg_uic") - BG_UIC("bg_uic"), - - @SerializedName("br_cnpj") - BR_CNPJ("br_cnpj"), - - @SerializedName("ca_cn") - CA_CN("ca_cn"), - - @SerializedName("ca_crarr") - CA_CRARR("ca_crarr"), - - @SerializedName("ca_neq") - CA_NEQ("ca_neq"), - - @SerializedName("ca_rid") - CA_RID("ca_rid"), + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("ch_chid") - CH_CHID("ch_chid"), + private GrabpayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("ch_uid") - CH_UID("ch_uid"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("cr_cpj") - CR_CPJ("cr_cpj"), + public static class Builder { + private Map extraParams; - @SerializedName("cr_nite") - CR_NITE("cr_nite"), + private Boolean requested; - @SerializedName("cy_tic") - CY_TIC("cy_tic"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.GrabpayPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.GrabpayPayments( + this.extraParams, this.requested); + } - @SerializedName("cz_ico") - CZ_ICO("cz_ico"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("de_hrn") - DE_HRN("de_hrn"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("de_vat") - DE_VAT("de_vat"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("dk_cvr") - DK_CVR("dk_cvr"), + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - @SerializedName("do_rcn") - DO_RCN("do_rcn"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("ee_rk") - EE_RK("ee_rk"), + private IdealPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("es_cif") - ES_CIF("es_cif"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("fi_yt") - FI_YT("fi_yt"), + public static class Builder { + private Map extraParams; - @SerializedName("fr_siren") - FR_SIREN("fr_siren"), + private Boolean requested; - @SerializedName("fr_vat") - FR_VAT("fr_vat"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.IdealPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.IdealPayments( + this.extraParams, this.requested); + } - @SerializedName("gb_crn") - GB_CRN("gb_crn"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("gi_crn") - GI_CRN("gi_crn"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("gr_gemi") - GR_GEMI("gr_gemi"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("gt_nit") - GT_NIT("gt_nit"), + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - @SerializedName("hk_br") - HK_BR("hk_br"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("hk_cr") - HK_CR("hk_cr"), + private JcbPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("hk_mbs") - HK_MBS("hk_mbs"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("hu_cjs") - HU_CJS("hu_cjs"), + public static class Builder { + private Map extraParams; - @SerializedName("ie_crn") - IE_CRN("ie_crn"), + private Boolean requested; - @SerializedName("it_rea") - IT_REA("it_rea"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.JcbPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.JcbPayments( + this.extraParams, this.requested); + } - @SerializedName("it_vat") - IT_VAT("it_vat"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("jp_cn") - JP_CN("jp_cn"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("kz_bin") - KZ_BIN("kz_bin"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("li_uid") - LI_UID("li_uid"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class JpBankTransferPayments { + /** + * 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; - @SerializedName("lt_ccrn") - LT_CCRN("lt_ccrn"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("lu_rcs") - LU_RCS("lu_rcs"), + private JpBankTransferPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("lv_urn") - LV_URN("lv_urn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("mt_crn") - MT_CRN("mt_crn"), + public static class Builder { + private Map extraParams; - @SerializedName("mx_rfc") - MX_RFC("mx_rfc"), + private Boolean requested; - @SerializedName("my_brn") - MY_BRN("my_brn"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities + .JpBankTransferPayments(this.extraParams, this.requested); + } - @SerializedName("my_coid") - MY_COID("my_coid"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments#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; + } - @SerializedName("my_sst") - MY_SST("my_sst"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("mz_nuit") - MZ_NUIT("mz_nuit"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("nl_kvk") - NL_KVK("nl_kvk"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class KakaoPayPayments { + /** + * 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; - @SerializedName("no_orgnr") - NO_ORGNR("no_orgnr"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("nz_bn") - NZ_BN("nz_bn"), + private KakaoPayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("pe_ruc") - PE_RUC("pe_ruc"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("pk_ntn") - PK_NTN("pk_ntn"), + public static class Builder { + private Map extraParams; - @SerializedName("pl_regon") - PL_REGON("pl_regon"), + private Boolean requested; - @SerializedName("pt_vat") - PT_VAT("pt_vat"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.KakaoPayPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.KakaoPayPayments( + this.extraParams, this.requested); + } - @SerializedName("ro_cui") - RO_CUI("ro_cui"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.KakaoPayPayments#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; + } - @SerializedName("sa_crn") - SA_CRN("sa_crn"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.KakaoPayPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sa_tin") - SA_TIN("sa_tin"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("se_orgnr") - SE_ORGNR("se_orgnr"), + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - @SerializedName("sg_uen") - SG_UEN("sg_uen"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("si_msp") - SI_MSP("si_msp"), + private KlarnaPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("sk_ico") - SK_ICO("sk_ico"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("th_crn") - TH_CRN("th_crn"), + public static class Builder { + private Map extraParams; - @SerializedName("th_prn") - TH_PRN("th_prn"), + private Boolean requested; - @SerializedName("th_tin") - TH_TIN("th_tin"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.KlarnaPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.KlarnaPayments( + this.extraParams, this.requested); + } - @SerializedName("us_ein") - US_EIN("us_ein"); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - Type(String value) { - this.value = value; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class MonthlyEstimatedRevenue { - /** A non-negative integer representing the amount in the smallest currency unit. */ - @SerializedName("amount") - Amount amount; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class KonbiniPayments { + /** + * 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; - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private MonthlyEstimatedRevenue(Amount amount, Map extraParams) { - this.amount = amount; - this.extraParams = extraParams; - } + private KonbiniPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - public static Builder builder() { - return new Builder(); - } + public static Builder builder() { + return new Builder(); + } - public static class Builder { - private Amount amount; + public static class Builder { + private Map extraParams; - private Map extraParams; + private Boolean requested; - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue build() { - return new AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue( - this.amount, this.extraParams); - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.KonbiniPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.KonbiniPayments( + this.extraParams, this.requested); + } - /** A non-negative integer representing the amount in the smallest currency unit. */ - public Builder setAmount(Amount amount) { - this.amount = amount; - return this; - } + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.KonbiniPayments#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 a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.KonbiniPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; } - this.extraParams.putAll(map); - return this; } } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ScriptAddresses { - /** - * 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; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class KrCardPayments { + /** + * 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; - /** Kana Address. */ - @SerializedName("kana") - Object kana; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Kanji Address. */ - @SerializedName("kanji") - Object kanji; + private KrCardPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - private ScriptAddresses(Map extraParams, Object kana, Object kanji) { - this.extraParams = extraParams; - this.kana = kana; - this.kanji = kanji; - } + public static Builder builder() { + return new Builder(); + } - public static Builder builder() { - return new Builder(); - } + public static class Builder { + private Map extraParams; - public static class Builder { - private Map extraParams; + private Boolean requested; - private Object kana; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.KrCardPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.KrCardPayments( + this.extraParams, this.requested); + } - private Object kanji; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.KrCardPayments#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; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses build() { - return new AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses( - this.extraParams, this.kana, this.kanji); + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.KrCardPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } + } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class LinkPayments { /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses#extraParams} for the field - * documentation. + * 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. */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses#extraParams} for the field - * documentation. + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + @SerializedName("requested") + Boolean requested; - /** Kana Address. */ - public Builder setKana( - AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana kana) { - this.kana = kana; - return this; + private LinkPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - /** Kana Address. */ - public Builder setKana(EmptyParam kana) { - this.kana = kana; - return this; + public static Builder builder() { + return new Builder(); } - /** Kanji Address. */ - public Builder setKanji( - AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji kanji) { - this.kanji = kanji; - return this; - } + public static class Builder { + private Map extraParams; - /** Kanji Address. */ - public Builder setKanji(EmptyParam kanji) { - this.kanji = kanji; - return this; + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.LinkPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.LinkPayments( + this.extraParams, this.requested); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.LinkPayments#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.LinkPayments#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Kana { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - Object city; - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - @SerializedName("country") - ApiRequestParams.EnumParam country; - + public static class MobilepayPayments { /** * 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. @@ -16955,43 +5222,16 @@ public static class Kana { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Address line 1 (e.g., street, PO Box, or company name). */ - @SerializedName("line1") - Object line1; - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - Object line2; - - /** ZIP or postal code. */ - @SerializedName("postal_code") - Object postalCode; - - /** State, county, province, or region. */ - @SerializedName("state") - Object state; - - /** Town or cho-me. */ - @SerializedName("town") - Object town; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private Kana( - Object city, - ApiRequestParams.EnumParam country, - Map extraParams, - Object line1, - Object line2, - Object postalCode, - Object state, - Object town) { - this.city = city; - this.country = country; + private MobilepayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; - this.line1 = line1; - this.line2 = line2; - this.postalCode = postalCode; - this.state = state; - this.town = town; + this.requested = requested; } public static Builder builder() { @@ -16999,72 +5239,105 @@ public static Builder builder() { } public static class Builder { - private Object city; - - private ApiRequestParams.EnumParam country; - private Map extraParams; - private Object line1; - - private Object line2; - - private Object postalCode; - - private Object state; - - private Object town; + private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana build() { - return new AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; + public AccountUpdateParams.Configuration.Merchant.Capabilities.MobilepayPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.MobilepayPayments( + this.extraParams, this.requested); } - /** City, district, suburb, town, or village. */ - public Builder setCity(EmptyParam city) { - this.city = city; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.MobilepayPayments#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; } /** - * Two-letter country code (ISO 3166-1 alpha-2). + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.MobilepayPayments#extraParams} + * for the field documentation. */ - public Builder setCountry( - AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana.Country country) { - this.country = country; + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); return this; } /** - * Two-letter country code (ISO 3166-1 alpha-2). + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. */ - public Builder setCountry(EmptyParam country) { - this.country = country; + public Builder setRequested(Boolean requested) { + this.requested = requested; return this; } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class MultibancoPayments { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its + * parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; + + private MultibancoPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.MultibancoPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.MultibancoPayments( + this.extraParams, this.requested); + } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana#extraParams} for - * the field documentation. + * AccountUpdateParams.Configuration.Merchant.Capabilities.MultibancoPayments#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -17078,8 +5351,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana#extraParams} for - * the field documentation. + * AccountUpdateParams.Configuration.Merchant.Capabilities.MultibancoPayments#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -17089,844 +5362,1081 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Address line 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(String line1) { - this.line1 = line1; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; return this; } + } + } - /** Address line 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(EmptyParam line1) { - this.line1 = line1; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class MxBankTransferPayments { + /** + * 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 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(String line2) { - this.line2 = line2; - return this; - } + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(EmptyParam line2) { - this.line2 = line2; - return this; - } + private MxBankTransferPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } + public static Builder builder() { + return new Builder(); + } - /** ZIP or postal code. */ - public Builder setPostalCode(EmptyParam postalCode) { - this.postalCode = postalCode; - return this; - } + public static class Builder { + private Map extraParams; - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } + private Boolean requested; - /** State, county, province, or region. */ - public Builder setState(EmptyParam state) { - this.state = state; - return this; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities + .MxBankTransferPayments(this.extraParams, this.requested); } - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments#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; } - /** Town or cho-me. */ - public Builder setTown(EmptyParam town) { - this.town = town; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments#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 enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("lu") - LU("lu"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class NaverPayPayments { + /** + * 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; - @SerializedName("lv") - LV("lv"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("ly") - LY("ly"), + private NaverPayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("ma") - MA("ma"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("mc") - MC("mc"), + public static class Builder { + private Map extraParams; - @SerializedName("md") - MD("md"), + private Boolean requested; - @SerializedName("me") - ME("me"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.NaverPayPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.NaverPayPayments( + this.extraParams, this.requested); + } - @SerializedName("mf") - MF("mf"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.NaverPayPayments#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; + } - @SerializedName("mg") - MG("mg"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.NaverPayPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("mh") - MH("mh"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("mk") - MK("mk"), + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - @SerializedName("ml") - ML("ml"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("mm") - MM("mm"), + private OxxoPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("mn") - MN("mn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("mo") - MO("mo"), + public static class Builder { + private Map extraParams; - @SerializedName("mp") - MP("mp"), + private Boolean requested; - @SerializedName("mq") - MQ("mq"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.OxxoPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.OxxoPayments( + this.extraParams, this.requested); + } - @SerializedName("mr") - MR("mr"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("ms") - MS("ms"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("mt") - MT("mt"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("mu") - MU("mu"), + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - @SerializedName("mv") - MV("mv"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("mw") - MW("mw"), + private P24Payments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("mx") - MX("mx"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("my") - MY("my"), + public static class Builder { + private Map extraParams; - @SerializedName("mz") - MZ("mz"), + private Boolean requested; - @SerializedName("na") - NA("na"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.P24Payments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.P24Payments( + this.extraParams, this.requested); + } - @SerializedName("nc") - NC("nc"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("ne") - NE("ne"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("nf") - NF("nf"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("ng") - NG("ng"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PayByBankPayments { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its + * parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; - @SerializedName("ni") - NI("ni"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("nl") - NL("nl"), + private PayByBankPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("no") - NO("no"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("np") - NP("np"), + public static class Builder { + private Map extraParams; - @SerializedName("nr") - NR("nr"), + private Boolean requested; - @SerializedName("nu") - NU("nu"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.PayByBankPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.PayByBankPayments( + this.extraParams, this.requested); + } - @SerializedName("nz") - NZ("nz"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.PayByBankPayments#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } - @SerializedName("om") - OM("om"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.PayByBankPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("pa") - PA("pa"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("pe") - PE("pe"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PaycoPayments { + /** + * 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; - @SerializedName("pf") - PF("pf"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("pg") - PG("pg"), + private PaycoPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("ph") - PH("ph"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("pk") - PK("pk"), + public static class Builder { + private Map extraParams; - @SerializedName("pl") - PL("pl"), + private Boolean requested; - @SerializedName("pm") - PM("pm"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.PaycoPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.PaycoPayments( + this.extraParams, this.requested); + } - @SerializedName("pn") - PN("pn"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.PaycoPayments#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; + } - @SerializedName("pr") - PR("pr"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.PaycoPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ps") - PS("ps"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("pt") - PT("pt"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PaynowPayments { + /** + * 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; - @SerializedName("pw") - PW("pw"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("py") - PY("py"), + private PaynowPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("qa") - QA("qa"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("qz") - QZ("qz"), + public static class Builder { + private Map extraParams; - @SerializedName("re") - RE("re"), + private Boolean requested; - @SerializedName("ro") - RO("ro"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.PaynowPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.PaynowPayments( + this.extraParams, this.requested); + } - @SerializedName("rs") - RS("rs"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.PaynowPayments#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; + } - @SerializedName("ru") - RU("ru"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.PaynowPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("rw") - RW("rw"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("sa") - SA("sa"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PromptpayPayments { + /** + * 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; - @SerializedName("sb") - SB("sb"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("sc") - SC("sc"), + private PromptpayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("sd") - SD("sd"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("se") - SE("se"), + public static class Builder { + private Map extraParams; - @SerializedName("sg") - SG("sg"), + private Boolean requested; - @SerializedName("sh") - SH("sh"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.PromptpayPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.PromptpayPayments( + this.extraParams, this.requested); + } - @SerializedName("si") - SI("si"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.PromptpayPayments#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; + } - @SerializedName("sj") - SJ("sj"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.PromptpayPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sk") - SK("sk"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("sl") - SL("sl"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class RevolutPayPayments { + /** + * 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; - @SerializedName("sm") - SM("sm"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("sn") - SN("sn"), + private RevolutPayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("so") - SO("so"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("sr") - SR("sr"), + public static class Builder { + private Map extraParams; - @SerializedName("ss") - SS("ss"), + private Boolean requested; - @SerializedName("st") - ST("st"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.RevolutPayPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.RevolutPayPayments( + this.extraParams, this.requested); + } - @SerializedName("sv") - SV("sv"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.RevolutPayPayments#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; + } - @SerializedName("sx") - SX("sx"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.RevolutPayPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sy") - SY("sy"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("sz") - SZ("sz"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class SamsungPayPayments { + /** + * 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; - @SerializedName("tc") - TC("tc"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("td") - TD("td"), + private SamsungPayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("tf") - TF("tf"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("tg") - TG("tg"), + public static class Builder { + private Map extraParams; - @SerializedName("th") - TH("th"), + private Boolean requested; - @SerializedName("tj") - TJ("tj"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.SamsungPayPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.SamsungPayPayments( + this.extraParams, this.requested); + } - @SerializedName("tk") - TK("tk"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.SamsungPayPayments#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; + } - @SerializedName("tl") - TL("tl"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.SamsungPayPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("tm") - TM("tm"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("tn") - TN("tn"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class SepaBankTransferPayments { + /** + * 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; - @SerializedName("to") - TO("to"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("tr") - TR("tr"), + private SepaBankTransferPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("tt") - TT("tt"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("tv") - TV("tv"), + public static class Builder { + private Map extraParams; - @SerializedName("tw") - TW("tw"), + private Boolean requested; - @SerializedName("tz") - TZ("tz"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities + .SepaBankTransferPayments(this.extraParams, this.requested); + } - @SerializedName("ua") - UA("ua"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments#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; + } - @SerializedName("ug") - UG("ug"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("um") - UM("um"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("us") - US("us"), + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - @SerializedName("uy") - UY("uy"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("uz") - UZ("uz"), + private SepaDebitPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("va") - VA("va"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("vc") - VC("vc"), + public static class Builder { + private Map extraParams; - @SerializedName("ve") - VE("ve"), + private Boolean requested; - @SerializedName("vg") - VG("vg"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.SepaDebitPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.SepaDebitPayments( + this.extraParams, this.requested); + } - @SerializedName("vi") - VI("vi"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("vn") - VN("vn"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("vu") - VU("vu"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("wf") - WF("wf"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class SwishPayments { + /** + * 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; - @SerializedName("ws") - WS("ws"), + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("xx") - XX("xx"), + private SwishPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("ye") - YE("ye"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("yt") - YT("yt"), + public static class Builder { + private Map extraParams; - @SerializedName("za") - ZA("za"), + private Boolean requested; - @SerializedName("zm") - ZM("zm"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.SwishPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.SwishPayments( + this.extraParams, this.requested); + } - @SerializedName("zw") - ZW("zw"); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.SwishPayments#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; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.SwishPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - Country(String value) { - this.value = value; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Kanji { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - Object city; - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - @SerializedName("country") - ApiRequestParams.EnumParam country; - + public static class TwintPayments { /** * 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. @@ -17937,43 +6447,16 @@ public static class Kanji { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Address line 1 (e.g., street, PO Box, or company name). */ - @SerializedName("line1") - Object line1; - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - Object line2; - - /** ZIP or postal code. */ - @SerializedName("postal_code") - Object postalCode; - - /** State, county, province, or region. */ - @SerializedName("state") - Object state; - - /** Town or cho-me. */ - @SerializedName("town") - Object town; + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private Kanji( - Object city, - ApiRequestParams.EnumParam country, - Map extraParams, - Object line1, - Object line2, - Object postalCode, - Object state, - Object town) { - this.city = city; - this.country = country; + private TwintPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; - this.line1 = line1; - this.line2 = line2; - this.postalCode = postalCode; - this.state = state; - this.town = town; + this.requested = requested; } public static Builder builder() { @@ -17981,73 +6464,104 @@ public static Builder builder() { } public static class Builder { - private Object city; - - private ApiRequestParams.EnumParam country; - private Map extraParams; - private Object line1; - - private Object line2; - - private Object postalCode; - - private Object state; - - private Object town; + private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji build() { - return new AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; + public AccountUpdateParams.Configuration.Merchant.Capabilities.TwintPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.TwintPayments( + this.extraParams, this.requested); } - /** City, district, suburb, town, or village. */ - public Builder setCity(EmptyParam city) { - this.city = city; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.TwintPayments#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; } /** - * Two-letter country code (ISO 3166-1 alpha-2). + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.TwintPayments#extraParams} + * for the field documentation. */ - public Builder setCountry( - AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji.Country - country) { - this.country = country; + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); return this; } /** - * Two-letter country code (ISO 3166-1 alpha-2). + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. */ - public Builder setCountry(EmptyParam country) { - this.country = country; + public Builder setRequested(Boolean requested) { + this.requested = requested; return this; } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class UsBankTransferPayments { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its + * parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; + + private UsBankTransferPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments + build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities + .UsBankTransferPayments(this.extraParams, this.requested); + } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji#extraParams} for - * the field documentation. + * AccountUpdateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -18061,8 +6575,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji#extraParams} for - * the field documentation. + * AccountUpdateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -18072,834 +6586,924 @@ public Builder putAllExtraParam(Map 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 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(EmptyParam line1) { - this.line1 = line1; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; return this; } + } + } - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(String line2) { - this.line2 = line2; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ZipPayments { + /** + * 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 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(EmptyParam line2) { - this.line2 = line2; - return this; - } + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } + private ZipPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** ZIP or postal code. */ - public Builder setPostalCode(EmptyParam postalCode) { - this.postalCode = postalCode; - return this; - } + public static Builder builder() { + return new Builder(); + } - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } + public static class Builder { + private Map extraParams; - /** State, county, province, or region. */ - public Builder setState(EmptyParam state) { - this.state = state; - return this; - } + private Boolean requested; - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Capabilities.ZipPayments build() { + return new AccountUpdateParams.Configuration.Merchant.Capabilities.ZipPayments( + this.extraParams, this.requested); } - /** Town or cho-me. */ - public Builder setTown(EmptyParam town) { - this.town = town; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.ZipPayments#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; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), + } - @SerializedName("me") - ME("me"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Capabilities.ZipPayments#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("mf") - MF("mf"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } + } - @SerializedName("mg") - MG("mg"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CardPayments { + /** + * Automatically declines certain charge types regardless of whether the card issuer + * accepted or declined the charge. + */ + @SerializedName("decline_on") + DeclineOn declineOn; - @SerializedName("mh") - MH("mh"), + /** + * 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; - @SerializedName("mk") - MK("mk"), + private CardPayments(DeclineOn declineOn, Map extraParams) { + this.declineOn = declineOn; + this.extraParams = extraParams; + } - @SerializedName("ml") - ML("ml"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("mm") - MM("mm"), + public static class Builder { + private DeclineOn declineOn; - @SerializedName("mn") - MN("mn"), + private Map extraParams; - @SerializedName("mo") - MO("mo"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.CardPayments build() { + return new AccountUpdateParams.Configuration.Merchant.CardPayments( + this.declineOn, this.extraParams); + } - @SerializedName("mp") - MP("mp"), + /** + * Automatically declines certain charge types regardless of whether the card issuer + * accepted or declined the charge. + */ + public Builder setDeclineOn( + AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn declineOn) { + this.declineOn = declineOn; + return this; + } - @SerializedName("mq") - MQ("mq"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Merchant.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; + } - @SerializedName("mr") - MR("mr"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Merchant.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; + } + } - @SerializedName("ms") - MS("ms"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class DeclineOn { + /** + * Whether Stripe automatically declines charges with an incorrect ZIP or postal code. + * This setting only applies when a ZIP or postal code is provided and they fail bank + * verification. + */ + @SerializedName("avs_failure") + Boolean avsFailure; - @SerializedName("mt") - MT("mt"), + /** + * Whether Stripe automatically declines charges with an incorrect CVC. This setting only + * applies when a CVC is provided and it fails bank verification. + */ + @SerializedName("cvc_failure") + Boolean cvcFailure; - @SerializedName("mu") - MU("mu"), + /** + * 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; - @SerializedName("mv") - MV("mv"), + private DeclineOn( + Boolean avsFailure, Boolean cvcFailure, Map extraParams) { + this.avsFailure = avsFailure; + this.cvcFailure = cvcFailure; + this.extraParams = extraParams; + } - @SerializedName("mw") - MW("mw"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("mx") - MX("mx"), + public static class Builder { + private Boolean avsFailure; - @SerializedName("my") - MY("my"), + private Boolean cvcFailure; - @SerializedName("mz") - MZ("mz"), + private Map extraParams; - @SerializedName("na") - NA("na"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn build() { + return new AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn( + this.avsFailure, this.cvcFailure, this.extraParams); + } - @SerializedName("nc") - NC("nc"), + /** + * Whether Stripe automatically declines charges with an incorrect ZIP or postal code. + * This setting only applies when a ZIP or postal code is provided and they fail bank + * verification. + */ + public Builder setAvsFailure(Boolean avsFailure) { + this.avsFailure = avsFailure; + return this; + } - @SerializedName("ne") - NE("ne"), + /** + * Whether Stripe automatically declines charges with an incorrect CVC. This setting + * only applies when a CVC is provided and it fails bank verification. + */ + public Builder setCvcFailure(Boolean cvcFailure) { + this.cvcFailure = cvcFailure; + return this; + } - @SerializedName("nf") - NF("nf"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn#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; + } - @SerializedName("ng") - NG("ng"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.CardPayments.DeclineOn#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + } - @SerializedName("ni") - NI("ni"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class StatementDescriptor { + /** + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement descriptor + * suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + * statement_descriptor text to limit the full descriptor to 22 characters. For more + * information about statement descriptors and their requirements, see the Merchant + * Configuration settings documentation. + */ + @SerializedName("descriptor") + Object descriptor; - @SerializedName("nl") - NL("nl"), + /** + * 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; - @SerializedName("no") - NO("no"), + /** + * Default text that appears on statements for card charges outside of Japan, prefixing any + * dynamic statement_descriptor_suffix specified on the charge. To maximize space for the + * dynamic part of the descriptor, keep this text short. If you don’t specify this value, + * statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + @SerializedName("prefix") + Object prefix; - @SerializedName("np") - NP("np"), + private StatementDescriptor( + Object descriptor, Map extraParams, Object prefix) { + this.descriptor = descriptor; + this.extraParams = extraParams; + this.prefix = prefix; + } - @SerializedName("nr") - NR("nr"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("nu") - NU("nu"), + public static class Builder { + private Object descriptor; - @SerializedName("nz") - NZ("nz"), + private Map extraParams; - @SerializedName("om") - OM("om"), + private Object prefix; - @SerializedName("pa") - PA("pa"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.StatementDescriptor build() { + return new AccountUpdateParams.Configuration.Merchant.StatementDescriptor( + this.descriptor, this.extraParams, this.prefix); + } - @SerializedName("pe") - PE("pe"), + /** + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the statement_descriptor text to limit the full descriptor to 22 characters. + * For more information about statement descriptors and their requirements, see the + * Merchant Configuration settings documentation. + */ + public Builder setDescriptor(String descriptor) { + this.descriptor = descriptor; + return this; + } - @SerializedName("pf") - PF("pf"), + /** + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don’t set a statement_descriptor_prefix, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the statement_descriptor text to limit the full descriptor to 22 characters. + * For more information about statement descriptors and their requirements, see the + * Merchant Configuration settings documentation. + */ + public Builder setDescriptor(EmptyParam descriptor) { + this.descriptor = descriptor; + return this; + } - @SerializedName("pg") - PG("pg"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountUpdateParams.Configuration.Merchant.StatementDescriptor#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; + } - @SerializedName("ph") - PH("ph"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountUpdateParams.Configuration.Merchant.StatementDescriptor#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("pk") - PK("pk"), + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for + * the dynamic part of the descriptor, keep this text short. If you don’t specify this + * value, statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + public Builder setPrefix(String prefix) { + this.prefix = prefix; + return this; + } - @SerializedName("pl") - PL("pl"), + /** + * Default text that appears on statements for card charges outside of Japan, prefixing + * any dynamic statement_descriptor_suffix specified on the charge. To maximize space for + * the dynamic part of the descriptor, keep this text short. If you don’t specify this + * value, statement_descriptor is used as the prefix. For more information about statement + * descriptors and their requirements, see the Merchant Configuration settings + * documentation. + */ + public Builder setPrefix(EmptyParam prefix) { + this.prefix = prefix; + return this; + } + } + } - @SerializedName("pm") - PM("pm"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Support { + /** A publicly available mailing address for sending support issues to. */ + @SerializedName("address") + Address address; - @SerializedName("pn") - PN("pn"), + /** A publicly available email address for sending support issues to. */ + @SerializedName("email") + Object email; - @SerializedName("pr") - PR("pr"), + /** + * 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; - @SerializedName("ps") - PS("ps"), + /** A publicly available phone number to call with support issues. */ + @SerializedName("phone") + Object phone; - @SerializedName("pt") - PT("pt"), + /** A publicly available website for handling support issues. */ + @SerializedName("url") + Object url; - @SerializedName("pw") - PW("pw"), + private Support( + Address address, + Object email, + Map extraParams, + Object phone, + Object url) { + this.address = address; + this.email = email; + this.extraParams = extraParams; + this.phone = phone; + this.url = url; + } - @SerializedName("py") - PY("py"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("qa") - QA("qa"), + public static class Builder { + private Address address; - @SerializedName("qz") - QZ("qz"), + private Object email; - @SerializedName("re") - RE("re"), + private Map extraParams; - @SerializedName("ro") - RO("ro"), + private Object phone; - @SerializedName("rs") - RS("rs"), + private Object url; - @SerializedName("ru") - RU("ru"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Support build() { + return new AccountUpdateParams.Configuration.Merchant.Support( + this.address, this.email, this.extraParams, this.phone, this.url); + } - @SerializedName("rw") - RW("rw"), + /** A publicly available mailing address for sending support issues to. */ + public Builder setAddress( + AccountUpdateParams.Configuration.Merchant.Support.Address address) { + this.address = address; + return this; + } - @SerializedName("sa") - SA("sa"), + /** A publicly available email address for sending support issues to. */ + public Builder setEmail(String email) { + this.email = email; + return this; + } - @SerializedName("sb") - SB("sb"), + /** A publicly available email address for sending support issues to. */ + public Builder setEmail(EmptyParam email) { + this.email = email; + return this; + } - @SerializedName("sc") - SC("sc"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Merchant.Support#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; + } - @SerializedName("sd") - SD("sd"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Merchant.Support#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("se") - SE("se"), + /** A publicly available phone number to call with support issues. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; + } - @SerializedName("sg") - SG("sg"), + /** A publicly available phone number to call with support issues. */ + public Builder setPhone(EmptyParam phone) { + this.phone = phone; + return this; + } - @SerializedName("sh") - SH("sh"), + /** A publicly available website for handling support issues. */ + public Builder setUrl(String url) { + this.url = url; + return this; + } - @SerializedName("si") - SI("si"), + /** A publicly available website for handling support issues. */ + public Builder setUrl(EmptyParam url) { + this.url = url; + return this; + } + } - @SerializedName("sj") - SJ("sj"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; - @SerializedName("sk") - SK("sk"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; - @SerializedName("sl") - SL("sl"), + /** + * 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; - @SerializedName("sm") - SM("sm"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; - @SerializedName("sn") - SN("sn"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; - @SerializedName("so") - SO("so"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; - @SerializedName("sr") - SR("sr"), + /** State, county, province, or region. */ + @SerializedName("state") + Object state; - @SerializedName("ss") - SS("ss"), + /** Town or cho-me. */ + @SerializedName("town") + Object town; - @SerializedName("st") - ST("st"), + private Address( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state, + Object 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; + } - @SerializedName("sv") - SV("sv"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("sx") - SX("sx"), + public static class Builder { + private Object city; - @SerializedName("sy") - SY("sy"), + private Object country; - @SerializedName("sz") - SZ("sz"), + private Map extraParams; - @SerializedName("tc") - TC("tc"), + private Object line1; - @SerializedName("td") - TD("td"), + private Object line2; - @SerializedName("tf") - TF("tf"), + private Object postalCode; - @SerializedName("tg") - TG("tg"), + private Object state; - @SerializedName("th") - TH("th"), + private Object town; - @SerializedName("tj") - TJ("tj"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Merchant.Support.Address build() { + return new AccountUpdateParams.Configuration.Merchant.Support.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("tk") - TK("tk"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("tl") - TL("tl"), + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } - @SerializedName("tm") - TM("tm"), + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("tn") - TN("tn"), + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("to") - TO("to"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Support.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; + } - @SerializedName("tr") - TR("tr"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Merchant.Support.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; + } - @SerializedName("tt") - TT("tt"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("tv") - TV("tv"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } - @SerializedName("tw") - TW("tw"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("tz") - TZ("tz"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } - @SerializedName("ua") - UA("ua"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("ug") - UG("ug"), + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("um") - UM("um"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("us") - US("us"), + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } - @SerializedName("uy") - UY("uy"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } - @SerializedName("uz") - UZ("uz"), + /** Town or cho-me. */ + public Builder setTown(EmptyParam town) { + this.town = town; + return this; + } + } + } + } + } - @SerializedName("va") - VA("va"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Recipient { + /** + * Represents the state of the configuration, and can be updated to deactivate or re-apply a + * configuration. + */ + @SerializedName("applied") + Boolean applied; - @SerializedName("vc") - VC("vc"), + /** Capabilities to request on the Recipient Configuration. */ + @SerializedName("capabilities") + Capabilities capabilities; - @SerializedName("ve") - VE("ve"), + /** + * The payout method id to be used as a default outbound destination. This will allow the + * PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via + * dashboard. Can also be explicitly set to {@code null} to clear the existing default + * outbound destination. + */ + @SerializedName("default_outbound_destination") + Object defaultOutboundDestination; - @SerializedName("vg") - VG("vg"), + /** + * 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; - @SerializedName("vi") - VI("vi"), + private Recipient( + Boolean applied, + Capabilities capabilities, + Object defaultOutboundDestination, + Map extraParams) { + this.applied = applied; + this.capabilities = capabilities; + this.defaultOutboundDestination = defaultOutboundDestination; + this.extraParams = extraParams; + } - @SerializedName("vn") - VN("vn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("vu") - VU("vu"), + public static class Builder { + private Boolean applied; - @SerializedName("wf") - WF("wf"), + private Capabilities capabilities; - @SerializedName("ws") - WS("ws"), + private Object defaultOutboundDestination; - @SerializedName("xx") - XX("xx"), + private Map extraParams; - @SerializedName("ye") - YE("ye"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Recipient build() { + return new AccountUpdateParams.Configuration.Recipient( + this.applied, this.capabilities, this.defaultOutboundDestination, this.extraParams); + } - @SerializedName("yt") - YT("yt"), + /** + * Represents the state of the configuration, and can be updated to deactivate or re-apply a + * configuration. + */ + public Builder setApplied(Boolean applied) { + this.applied = applied; + return this; + } - @SerializedName("za") - ZA("za"), + /** Capabilities to request on the Recipient Configuration. */ + public Builder setCapabilities( + AccountUpdateParams.Configuration.Recipient.Capabilities capabilities) { + this.capabilities = capabilities; + return this; + } - @SerializedName("zm") - ZM("zm"), + /** + * The payout method id to be used as a default outbound destination. This will allow the + * PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via + * dashboard. Can also be explicitly set to {@code null} to clear the existing default + * outbound destination. + */ + public Builder setDefaultOutboundDestination(String defaultOutboundDestination) { + this.defaultOutboundDestination = defaultOutboundDestination; + return this; + } - @SerializedName("zw") - ZW("zw"); + /** + * The payout method id to be used as a default outbound destination. This will allow the + * PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via + * dashboard. Can also be explicitly set to {@code null} to clear the existing default + * outbound destination. + */ + public Builder setDefaultOutboundDestination(EmptyParam defaultOutboundDestination) { + this.defaultOutboundDestination = defaultOutboundDestination; + return this; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Recipient#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; + } - Country(String value) { - this.value = value; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Recipient#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); } + this.extraParams.putAll(map); + return this; } } @Getter @EqualsAndHashCode(callSuper = false) - public static class ScriptNames { + public static class Capabilities { + /** Capabilities that enable OutboundPayments to a bank account linked to this Account. */ + @SerializedName("bank_accounts") + BankAccounts bankAccounts; + + /** Capability that enable OutboundPayments to a debit card linked to this Account. */ + @SerializedName("cards") + Cards cards; + /** * 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. @@ -18910,18 +7514,19 @@ public static class ScriptNames { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Kana name. */ - @SerializedName("kana") - Object kana; - - /** Kanji name. */ - @SerializedName("kanji") - Object kanji; + /** Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). */ + @SerializedName("stripe_balance") + StripeBalance stripeBalance; - private ScriptNames(Map extraParams, Object kana, Object kanji) { + private Capabilities( + BankAccounts bankAccounts, + Cards cards, + Map extraParams, + StripeBalance stripeBalance) { + this.bankAccounts = bankAccounts; + this.cards = cards; this.extraParams = extraParams; - this.kana = kana; - this.kanji = kanji; + this.stripeBalance = stripeBalance; } public static Builder builder() { @@ -18929,22 +7534,38 @@ public static Builder builder() { } public static class Builder { + private BankAccounts bankAccounts; + + private Cards cards; + private Map extraParams; - private Object kana; + private StripeBalance stripeBalance; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Recipient.Capabilities build() { + return new AccountUpdateParams.Configuration.Recipient.Capabilities( + this.bankAccounts, this.cards, this.extraParams, this.stripeBalance); + } - private Object kanji; + /** Capabilities that enable OutboundPayments to a bank account linked to this Account. */ + public Builder setBankAccounts( + AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts bankAccounts) { + this.bankAccounts = bankAccounts; + return this; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.ScriptNames build() { - return new AccountUpdateParams.Identity.BusinessDetails.ScriptNames( - this.extraParams, this.kana, this.kanji); + /** Capability that enable OutboundPayments to a debit card linked to this Account. */ + public Builder setCards( + AccountUpdateParams.Configuration.Recipient.Capabilities.Cards cards) { + this.cards = cards; + return this; } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.BusinessDetails.ScriptNames#extraParams} + * map. See {@link AccountUpdateParams.Configuration.Recipient.Capabilities#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -18958,7 +7579,7 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.BusinessDetails.ScriptNames#extraParams} + * map. See {@link AccountUpdateParams.Configuration.Recipient.Capabilities#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -18969,36 +7590,20 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Kana name. */ - public Builder setKana( - AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kana kana) { - this.kana = kana; - return this; - } - - /** Kana name. */ - public Builder setKana(EmptyParam kana) { - this.kana = kana; - return this; - } - - /** Kanji name. */ - public Builder setKanji( - AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kanji kanji) { - this.kanji = kanji; - return this; - } - - /** Kanji name. */ - public Builder setKanji(EmptyParam kanji) { - this.kanji = kanji; + /** + * Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + */ + public Builder setStripeBalance( + AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance + stripeBalance) { + this.stripeBalance = stripeBalance; return this; } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Kana { + public static class BankAccounts { /** * 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. @@ -19009,13 +7614,21 @@ public static class Kana { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Registered name of the business. */ - @SerializedName("registered_name") - Object registeredName; + /** + * Enables this Account to receive OutboundPayments to linked bank accounts over local + * networks. + */ + @SerializedName("local") + Local local; - private Kana(Map extraParams, Object registeredName) { + /** Enables this Account to receive OutboundPayments to linked bank accounts over wire. */ + @SerializedName("wire") + Wire wire; + + private BankAccounts(Map extraParams, Local local, Wire wire) { this.extraParams = extraParams; - this.registeredName = registeredName; + this.local = local; + this.wire = wire; } public static Builder builder() { @@ -19025,20 +7638,22 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Object registeredName; + private Local local; + + private Wire wire; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kana build() { - return new AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kana( - this.extraParams, this.registeredName); + public AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts build() { + return new AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts( + this.extraParams, this.local, this.wire); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kana#extraParams} for the - * field documentation. + * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -19052,8 +7667,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kana#extraParams} for the - * field documentation. + * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -19063,538 +7678,505 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Registered name of the business. */ - public Builder setRegisteredName(String registeredName) { - this.registeredName = registeredName; - return this; - } - - /** Registered name of the business. */ - public Builder setRegisteredName(EmptyParam registeredName) { - this.registeredName = registeredName; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Kanji { - /** - * 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; - - /** Registered name of the business. */ - @SerializedName("registered_name") - Object registeredName; - - private Kanji(Map extraParams, Object registeredName) { - this.extraParams = extraParams; - this.registeredName = registeredName; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Object registeredName; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kanji build() { - return new AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kanji( - this.extraParams, this.registeredName); - } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kanji#extraParams} for the - * field documentation. + * Enables this Account to receive OutboundPayments to linked bank accounts over local + * networks. */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); + public Builder setLocal( + AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Local local) { + this.local = local; return this; } /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kanji#extraParams} for the - * field documentation. + * Enables this Account to receive OutboundPayments to linked bank accounts over wire. */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Registered name of the business. */ - public Builder setRegisteredName(String registeredName) { - this.registeredName = registeredName; - return this; - } - - /** Registered name of the business. */ - public Builder setRegisteredName(EmptyParam registeredName) { - this.registeredName = registeredName; - return this; - } - } - } - } - - public enum Structure implements ApiRequestParams.EnumParam { - @SerializedName("cooperative") - COOPERATIVE("cooperative"), - - @SerializedName("free_zone_establishment") - FREE_ZONE_ESTABLISHMENT("free_zone_establishment"), - - @SerializedName("free_zone_llc") - FREE_ZONE_LLC("free_zone_llc"), - - @SerializedName("governmental_unit") - GOVERNMENTAL_UNIT("governmental_unit"), - - @SerializedName("government_instrumentality") - GOVERNMENT_INSTRUMENTALITY("government_instrumentality"), - - @SerializedName("incorporated_association") - INCORPORATED_ASSOCIATION("incorporated_association"), - - @SerializedName("incorporated_non_profit") - INCORPORATED_NON_PROFIT("incorporated_non_profit"), - - @SerializedName("incorporated_partnership") - INCORPORATED_PARTNERSHIP("incorporated_partnership"), - - @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_listed_corporation") - PUBLIC_LISTED_CORPORATION("public_listed_corporation"), - - @SerializedName("public_partnership") - PUBLIC_PARTNERSHIP("public_partnership"), - - @SerializedName("registered_charity") - REGISTERED_CHARITY("registered_charity"), - - @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("trust") - TRUST("trust"), - - @SerializedName("unincorporated_association") - UNINCORPORATED_ASSOCIATION("unincorporated_association"), - - @SerializedName("unincorporated_non_profit") - UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"), + public Builder setWire( + AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire wire) { + this.wire = wire; + return this; + } + } - @SerializedName("unincorporated_partnership") - UNINCORPORATED_PARTNERSHIP("unincorporated_partnership"); + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Local { + /** + * 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; - @Getter(onMethod_ = {@Override}) - private final String value; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - Structure(String value) { - this.value = value; - } - } - } + private Local(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Individual { - /** Additional addresses associated with the individual. */ - @SerializedName("additional_addresses") - Object additionalAddresses; + public static Builder builder() { + return new Builder(); + } - /** Additional names (e.g. aliases) associated with the individual. */ - @SerializedName("additional_names") - Object additionalNames; + public static class Builder { + private Map extraParams; - /** The individual's residential address. */ - @SerializedName("address") - Object address; + private Boolean requested; - /** The individual's date of birth. */ - @SerializedName("date_of_birth") - Object dateOfBirth; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Local + build() { + return new AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts + .Local(this.extraParams, this.requested); + } - /** Documents that may be submitted to satisfy various informational requests. */ - @SerializedName("documents") - Object documents; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Local#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; + } - /** The individual's email address. */ - @SerializedName("email") - Object email; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Local#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + 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. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - /** The individual's first name. */ - @SerializedName("given_name") - Object givenName; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Wire { + /** + * 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 identification numbers (e.g., SSN) associated with the individual. */ - @SerializedName("id_numbers") - Object idNumbers; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ - @SerializedName("legal_gender") - ApiRequestParams.EnumParam legalGender; + private Wire(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** - * 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. - */ - @SerializedName("metadata") - Map metadata; + public static Builder builder() { + return new Builder(); + } - /** - * The countries where the individual is a national. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("nationalities") - List nationalities; + public static class Builder { + private Map extraParams; - /** The individual's phone number. */ - @SerializedName("phone") - Object phone; + private Boolean requested; - /** The individual's political exposure. */ - @SerializedName("political_exposure") - ApiRequestParams.EnumParam politicalExposure; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire + build() { + return new AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts + .Wire(this.extraParams, this.requested); + } - /** The relationship that this individual has with the account's identity. */ - @SerializedName("relationship") - Object relationship; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire#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; + } - /** The script addresses (e.g., non-Latin characters) associated with the individual. */ - @SerializedName("script_addresses") - Object scriptAddresses; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire#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 individuals primary name in non latin script. */ - @SerializedName("script_names") - Object scriptNames; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } + } - /** The individual's last name. */ - @SerializedName("surname") - Object surname; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Cards { + /** + * 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 Individual( - Object additionalAddresses, - Object additionalNames, - Object address, - Object dateOfBirth, - Object documents, - Object email, - Map extraParams, - Object givenName, - Object idNumbers, - ApiRequestParams.EnumParam legalGender, - Map metadata, - List nationalities, - Object phone, - ApiRequestParams.EnumParam politicalExposure, - Object relationship, - Object scriptAddresses, - Object scriptNames, - Object surname) { - this.additionalAddresses = additionalAddresses; - this.additionalNames = additionalNames; - this.address = address; - this.dateOfBirth = dateOfBirth; - this.documents = documents; - this.email = email; - this.extraParams = extraParams; - this.givenName = givenName; - this.idNumbers = idNumbers; - this.legalGender = legalGender; - this.metadata = metadata; - this.nationalities = nationalities; - this.phone = phone; - this.politicalExposure = politicalExposure; - this.relationship = relationship; - this.scriptAddresses = scriptAddresses; - this.scriptNames = scriptNames; - this.surname = surname; - } + /** + * To request a new Capability for an account, pass true. There can be a delay before the + * requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - public static Builder builder() { - return new Builder(); - } + private Cards(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - public static class Builder { - private Object additionalAddresses; + public static Builder builder() { + return new Builder(); + } - private Object additionalNames; + public static class Builder { + private Map extraParams; - private Object address; + private Boolean requested; - private Object dateOfBirth; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Recipient.Capabilities.Cards build() { + return new AccountUpdateParams.Configuration.Recipient.Capabilities.Cards( + this.extraParams, this.requested); + } - private Object documents; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Recipient.Capabilities.Cards#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; + } - private Object email; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Recipient.Capabilities.Cards#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - private Map extraParams; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - private Object givenName; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class StripeBalance { + /** + * 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; + + /** + * Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance). + */ + @SerializedName("stripe_transfers") + StripeTransfers stripeTransfers; - private Object idNumbers; + private StripeBalance(Map extraParams, StripeTransfers stripeTransfers) { + this.extraParams = extraParams; + this.stripeTransfers = stripeTransfers; + } - private ApiRequestParams.EnumParam legalGender; + public static Builder builder() { + return new Builder(); + } - private Map metadata; + public static class Builder { + private Map extraParams; - private List nationalities; + private StripeTransfers stripeTransfers; - private Object phone; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance build() { + return new AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance( + this.extraParams, this.stripeTransfers); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance#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; + } - private ApiRequestParams.EnumParam politicalExposure; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - private Object relationship; + /** + * Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance). + */ + public Builder setStripeTransfers( + AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance + .StripeTransfers + stripeTransfers) { + this.stripeTransfers = stripeTransfers; + return this; + } + } - private Object scriptAddresses; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class StripeTransfers { + /** + * 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 Object scriptNames; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - private Object surname; + private StripeTransfers(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual build() { - return new AccountUpdateParams.Identity.Individual( - this.additionalAddresses, - this.additionalNames, - this.address, - this.dateOfBirth, - this.documents, - this.email, - this.extraParams, - this.givenName, - this.idNumbers, - this.legalGender, - this.metadata, - this.nationalities, - this.phone, - this.politicalExposure, - this.relationship, - this.scriptAddresses, - this.scriptNames, - this.surname); - } + public static Builder builder() { + return new Builder(); + } - /** - * Add an element to `additionalAddresses` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. - * See {@link AccountUpdateParams.Identity.Individual#additionalAddresses} for the field - * documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAdditionalAddress( - AccountUpdateParams.Identity.Individual.AdditionalAddress element) { - if (this.additionalAddresses == null || this.additionalAddresses instanceof EmptyParam) { - this.additionalAddresses = - new ArrayList(); - } - ((List) - this.additionalAddresses) - .add(element); - return this; - } + public static class Builder { + private Map extraParams; - /** - * Add all elements to `additionalAddresses` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. - * See {@link AccountUpdateParams.Identity.Individual#additionalAddresses} for the field - * documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAllAdditionalAddress( - List elements) { - if (this.additionalAddresses == null || this.additionalAddresses instanceof EmptyParam) { - this.additionalAddresses = - new ArrayList(); - } - ((List) - this.additionalAddresses) - .addAll(elements); - return this; - } + private Boolean requested; - /** Additional addresses associated with the individual. */ - public Builder setAdditionalAddresses(EmptyParam additionalAddresses) { - this.additionalAddresses = additionalAddresses; - return this; - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance + .StripeTransfers + build() { + return new AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance + .StripeTransfers(this.extraParams, this.requested); + } - /** Additional addresses associated with the individual. */ - public Builder setAdditionalAddresses( - List additionalAddresses) { - this.additionalAddresses = additionalAddresses; - return this; - } + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers#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 an element to `additionalNames` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. - * See {@link AccountUpdateParams.Identity.Individual#additionalNames} for the field - * documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAdditionalName( - AccountUpdateParams.Identity.Individual.AdditionalName element) { - if (this.additionalNames == null || this.additionalNames instanceof EmptyParam) { - this.additionalNames = - new ArrayList(); - } - ((List) this.additionalNames) - .add(element); - return this; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers#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 all elements to `additionalNames` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. - * See {@link AccountUpdateParams.Identity.Individual#additionalNames} for the field - * documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAllAdditionalName( - List elements) { - if (this.additionalNames == null || this.additionalNames instanceof EmptyParam) { - this.additionalNames = - new ArrayList(); + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } - ((List) this.additionalNames) - .addAll(elements); - return this; } + } + } - /** Additional names (e.g. aliases) associated with the individual. */ - public Builder setAdditionalNames(EmptyParam additionalNames) { - this.additionalNames = additionalNames; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Storer { + /** + * Represents the state of the configuration, and can be updated to deactivate or re-apply a + * configuration. + */ + @SerializedName("applied") + Boolean applied; - /** Additional names (e.g. aliases) associated with the individual. */ - public Builder setAdditionalNames( - List additionalNames) { - this.additionalNames = additionalNames; - return this; - } + /** Capabilities to request on the Storer Configuration. */ + @SerializedName("capabilities") + Capabilities capabilities; - /** The individual's residential address. */ - public Builder setAddress(AccountUpdateParams.Identity.Individual.Address address) { - this.address = address; - 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. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; - /** The individual's residential address. */ - public Builder setAddress(EmptyParam address) { - this.address = address; - return this; - } + private Storer(Boolean applied, Capabilities capabilities, Map extraParams) { + this.applied = applied; + this.capabilities = capabilities; + this.extraParams = extraParams; + } - /** The individual's date of birth. */ - public Builder setDateOfBirth( - AccountUpdateParams.Identity.Individual.DateOfBirth dateOfBirth) { - this.dateOfBirth = dateOfBirth; - return this; - } + public static Builder builder() { + return new Builder(); + } - /** The individual's date of birth. */ - public Builder setDateOfBirth(EmptyParam dateOfBirth) { - this.dateOfBirth = dateOfBirth; - return this; - } + public static class Builder { + private Boolean applied; - /** Documents that may be submitted to satisfy various informational requests. */ - public Builder setDocuments(AccountUpdateParams.Identity.Individual.Documents documents) { - this.documents = documents; - return this; - } + private Capabilities capabilities; - /** Documents that may be submitted to satisfy various informational requests. */ - public Builder setDocuments(EmptyParam documents) { - this.documents = documents; - return this; + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer build() { + return new AccountUpdateParams.Configuration.Storer( + this.applied, this.capabilities, this.extraParams); } - /** The individual's email address. */ - public Builder setEmail(String email) { - this.email = email; + /** + * Represents the state of the configuration, and can be updated to deactivate or re-apply a + * configuration. + */ + public Builder setApplied(Boolean applied) { + this.applied = applied; return this; } - /** The individual's email address. */ - public Builder setEmail(EmptyParam email) { - this.email = email; + /** Capabilities to request on the Storer Configuration. */ + public Builder setCapabilities( + AccountUpdateParams.Configuration.Storer.Capabilities capabilities) { + this.capabilities = capabilities; return this; } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual#extraParams} for the field + * map. See {@link AccountUpdateParams.Configuration.Storer#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -19608,1252 +8190,2246 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual#extraParams} for the field + * map. See {@link AccountUpdateParams.Configuration.Storer#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } - this.extraParams.putAll(map); - return this; + this.extraParams.putAll(map); + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Capabilities { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Can provision a financial address to credit/debit a FinancialAccount. */ + @SerializedName("financial_addresses") + FinancialAddresses financialAddresses; + + /** Can hold storage-type funds on Stripe. */ + @SerializedName("holds_currencies") + HoldsCurrencies holdsCurrencies; + + /** Can pull funds from an external source, owned by yourself, to a FinancialAccount. */ + @SerializedName("inbound_transfers") + InboundTransfers inboundTransfers; + + /** Can send funds from a FinancialAccount to a destination owned by someone else. */ + @SerializedName("outbound_payments") + OutboundPayments outboundPayments; + + /** Can send funds from a FinancialAccount to a destination owned by yourself. */ + @SerializedName("outbound_transfers") + OutboundTransfers outboundTransfers; + + private Capabilities( + Map extraParams, + FinancialAddresses financialAddresses, + HoldsCurrencies holdsCurrencies, + InboundTransfers inboundTransfers, + OutboundPayments outboundPayments, + OutboundTransfers outboundTransfers) { + this.extraParams = extraParams; + this.financialAddresses = financialAddresses; + this.holdsCurrencies = holdsCurrencies; + this.inboundTransfers = inboundTransfers; + this.outboundPayments = outboundPayments; + this.outboundTransfers = outboundTransfers; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private FinancialAddresses financialAddresses; + + private HoldsCurrencies holdsCurrencies; + + private InboundTransfers inboundTransfers; + + private OutboundPayments outboundPayments; + + private OutboundTransfers outboundTransfers; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities( + this.extraParams, + this.financialAddresses, + this.holdsCurrencies, + this.inboundTransfers, + this.outboundPayments, + this.outboundTransfers); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Configuration.Storer.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 AccountUpdateParams.Configuration.Storer.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; + } + + /** Can provision a financial address to credit/debit a FinancialAccount. */ + public Builder setFinancialAddresses( + AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses + financialAddresses) { + this.financialAddresses = financialAddresses; + return this; + } + + /** Can hold storage-type funds on Stripe. */ + public Builder setHoldsCurrencies( + AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies + holdsCurrencies) { + this.holdsCurrencies = holdsCurrencies; + return this; + } + + /** Can pull funds from an external source, owned by yourself, to a FinancialAccount. */ + public Builder setInboundTransfers( + AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers + inboundTransfers) { + this.inboundTransfers = inboundTransfers; + return this; + } + + /** Can send funds from a FinancialAccount to a destination owned by someone else. */ + public Builder setOutboundPayments( + AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments + outboundPayments) { + this.outboundPayments = outboundPayments; + return this; + } + + /** Can send funds from a FinancialAccount to a destination owned by yourself. */ + public Builder setOutboundTransfers( + AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers + outboundTransfers) { + this.outboundTransfers = outboundTransfers; + return this; + } } - /** The individual's first name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FinancialAddresses { + /** + * Can provision a bank-account-like financial address (VBAN) to credit/debit a + * FinancialAccount. + */ + @SerializedName("bank_accounts") + BankAccounts bankAccounts; - /** The individual's first name. */ - public Builder setGivenName(EmptyParam givenName) { - this.givenName = givenName; - 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. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; - /** - * Add an element to `idNumbers` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * AccountUpdateParams.Identity.Individual#idNumbers} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addIdNumber(AccountUpdateParams.Identity.Individual.IdNumber element) { - if (this.idNumbers == null || this.idNumbers instanceof EmptyParam) { - this.idNumbers = new ArrayList(); + private FinancialAddresses(BankAccounts bankAccounts, Map extraParams) { + this.bankAccounts = bankAccounts; + this.extraParams = extraParams; } - ((List) this.idNumbers).add(element); - return this; - } - /** - * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * AccountUpdateParams.Identity.Individual#idNumbers} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAllIdNumber( - List elements) { - if (this.idNumbers == null || this.idNumbers instanceof EmptyParam) { - this.idNumbers = new ArrayList(); + public static Builder builder() { + return new Builder(); } - ((List) this.idNumbers) - .addAll(elements); - return this; - } - /** The identification numbers (e.g., SSN) associated with the individual. */ - public Builder setIdNumbers(EmptyParam idNumbers) { - this.idNumbers = idNumbers; - return this; - } + public static class Builder { + private BankAccounts bankAccounts; - /** The identification numbers (e.g., SSN) associated with the individual. */ - public Builder setIdNumbers( - List idNumbers) { - this.idNumbers = idNumbers; - return this; - } + private Map extraParams; - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ - public Builder setLegalGender( - AccountUpdateParams.Identity.Individual.LegalGender legalGender) { - this.legalGender = legalGender; - return this; - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses + build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses( + this.bankAccounts, this.extraParams); + } - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ - public Builder setLegalGender(EmptyParam legalGender) { - this.legalGender = legalGender; - return this; - } + /** + * Can provision a bank-account-like financial address (VBAN) to credit/debit a + * FinancialAccount. + */ + public Builder setBankAccounts( + AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses + .BankAccounts + bankAccounts) { + this.bankAccounts = bankAccounts; + 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 - * AccountUpdateParams.Identity.Individual#metadata} for the field documentation. - */ - public Builder putMetadata(String key, String value) { - if (this.metadata == null) { - this.metadata = new HashMap<>(); - } - this.metadata.put(key, value); - return this; - } + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses#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 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 - * AccountUpdateParams.Identity.Individual#metadata} for the field documentation. - */ - public Builder putMetadata(String key, EmptyParam value) { - if (this.metadata == null) { - this.metadata = new HashMap<>(); + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } } - 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. Map values can only be one of the following types: `String`, `EmptyParam`. See - * {@link AccountUpdateParams.Identity.Individual#metadata} for the field documentation. - */ - public Builder putAllMetadata(Map map) { - if (!map.values().stream() - .allMatch(v -> v instanceof String || v instanceof EmptyParam)) { - throw new IllegalArgumentException( - "All map values must one of the following types: String, EmptyParam"); - } - if (this.metadata == null) { - this.metadata = new HashMap<>(); - } - this.metadata.putAll(map); - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankAccounts { + /** + * 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; - /** - * Add an element to `nationalities` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * AccountUpdateParams.Identity.Individual#nationalities} for the field documentation. - */ - public Builder addNationality(AccountUpdateParams.Identity.Individual.Nationality element) { - if (this.nationalities == null) { - this.nationalities = new ArrayList<>(); - } - this.nationalities.add(element); - return this; - } + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** - * Add all elements to `nationalities` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. - * See {@link AccountUpdateParams.Identity.Individual#nationalities} for the field - * documentation. - */ - public Builder addAllNationality( - List elements) { - if (this.nationalities == null) { - this.nationalities = new ArrayList<>(); - } - this.nationalities.addAll(elements); - return this; - } + private BankAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** The individual's phone number. */ - public Builder setPhone(String phone) { - this.phone = phone; - return this; - } + public static Builder builder() { + return new Builder(); + } - /** The individual's phone number. */ - public Builder setPhone(EmptyParam phone) { - this.phone = phone; - return this; - } + public static class Builder { + private Map extraParams; - /** The individual's political exposure. */ - public Builder setPoliticalExposure( - AccountUpdateParams.Identity.Individual.PoliticalExposure politicalExposure) { - this.politicalExposure = politicalExposure; - return this; - } + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses + .BankAccounts + build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses + .BankAccounts(this.extraParams, this.requested); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts#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; + } - /** The individual's political exposure. */ - public Builder setPoliticalExposure(EmptyParam politicalExposure) { - this.politicalExposure = politicalExposure; - return this; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts#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 relationship that this individual has with the account's identity. */ - public Builder setRelationship( - AccountUpdateParams.Identity.Individual.Relationship relationship) { - this.relationship = relationship; - return this; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } } - /** The relationship that this individual has with the account's identity. */ - public Builder setRelationship(EmptyParam relationship) { - this.relationship = relationship; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class HoldsCurrencies { + /** + * 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 script addresses (e.g., non-Latin characters) associated with the individual. */ - public Builder setScriptAddresses( - AccountUpdateParams.Identity.Individual.ScriptAddresses scriptAddresses) { - this.scriptAddresses = scriptAddresses; - return this; - } + /** Can hold storage-type funds on Stripe in GBP. */ + @SerializedName("gbp") + Gbp gbp; - /** The script addresses (e.g., non-Latin characters) associated with the individual. */ - public Builder setScriptAddresses(EmptyParam scriptAddresses) { - this.scriptAddresses = scriptAddresses; - return this; - } + private HoldsCurrencies(Map extraParams, Gbp gbp) { + this.extraParams = extraParams; + this.gbp = gbp; + } - /** The individuals primary name in non latin script. */ - public Builder setScriptNames( - AccountUpdateParams.Identity.Individual.ScriptNames scriptNames) { - this.scriptNames = scriptNames; - return this; - } + public static Builder builder() { + return new Builder(); + } - /** The individuals primary name in non latin script. */ - public Builder setScriptNames(EmptyParam scriptNames) { - this.scriptNames = scriptNames; - return this; - } + public static class Builder { + private Map extraParams; - /** The individual's last name. */ - public Builder setSurname(String surname) { - this.surname = surname; - return this; - } + private Gbp gbp; - /** The individual's last name. */ - public Builder setSurname(EmptyParam surname) { - this.surname = surname; - return this; - } - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies( + this.extraParams, this.gbp); + } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AdditionalAddress { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - Object city; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies#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; + } - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - @SerializedName("country") - ApiRequestParams.EnumParam country; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + 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. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + /** Can hold storage-type funds on Stripe in GBP. */ + public Builder setGbp( + AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp gbp) { + this.gbp = gbp; + return this; + } + } - /** Address line 1 (e.g., street, PO Box, or company name). */ - @SerializedName("line1") - Object line1; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Gbp { + /** + * 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 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - Object line2; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** ZIP or postal code. */ - @SerializedName("postal_code") - Object postalCode; + private Gbp(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - /** Required. Purpose of additional address. */ - @SerializedName("purpose") - Purpose purpose; + public static Builder builder() { + return new Builder(); + } - /** State, county, province, or region. */ - @SerializedName("state") - Object state; + public static class Builder { + private Map extraParams; - /** Town or cho-me. */ - @SerializedName("town") - Object town; + private Boolean requested; - private AdditionalAddress( - Object city, - ApiRequestParams.EnumParam country, - Map extraParams, - Object line1, - Object line2, - Object postalCode, - Purpose purpose, - Object state, - Object town) { - this.city = city; - this.country = country; - this.extraParams = extraParams; - this.line1 = line1; - this.line2 = line2; - this.postalCode = postalCode; - this.purpose = purpose; - this.state = state; - this.town = town; - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp + build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies + .Gbp(this.extraParams, this.requested); + } - public static Builder builder() { - return new Builder(); - } + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp#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; + } - public static class Builder { - private Object city; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - private ApiRequestParams.EnumParam country; + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } + } - private Map extraParams; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class InboundTransfers { + /** + * Can pull funds from an external bank account owned by yourself to a FinancialAccount. + */ + @SerializedName("bank_accounts") + BankAccounts bankAccounts; - private Object line1; + /** + * 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 Object line2; + private InboundTransfers(BankAccounts bankAccounts, Map extraParams) { + this.bankAccounts = bankAccounts; + this.extraParams = extraParams; + } - private Object postalCode; + public static Builder builder() { + return new Builder(); + } - private Purpose purpose; + public static class Builder { + private BankAccounts bankAccounts; - private Object state; + private Map extraParams; - private Object town; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers( + this.bankAccounts, this.extraParams); + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.AdditionalAddress build() { - return new AccountUpdateParams.Identity.Individual.AdditionalAddress( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.purpose, - this.state, - this.town); - } + /** + * Can pull funds from an external bank account owned by yourself to a FinancialAccount. + */ + public Builder setBankAccounts( + AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts + bankAccounts) { + this.bankAccounts = bankAccounts; + return this; + } - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers#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; + } - /** City, district, suburb, town, or village. */ - public Builder setCity(EmptyParam city) { - this.city = city; - return this; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } } - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - public Builder setCountry( - AccountUpdateParams.Identity.Individual.AdditionalAddress.Country country) { - this.country = country; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankAccounts { + /** + * 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; - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - public Builder setCountry(EmptyParam country) { - this.country = country; - return this; - } + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.AdditionalAddress#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + private BankAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.AdditionalAddress#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + public static Builder builder() { + return new Builder(); } - 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; - } + public static class Builder { + private Map extraParams; - /** Address line 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(EmptyParam line1) { - this.line1 = line1; - return this; - } + private Boolean requested; - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(String line2) { - this.line2 = line2; - return this; - } + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers + .BankAccounts + build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers + .BankAccounts(this.extraParams, this.requested); + } - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(EmptyParam line2) { - this.line2 = line2; - return this; - } + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts#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; + } - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class OutboundPayments { + /** Can send funds from a FinancialAccount to a bank account owned by someone else. */ + @SerializedName("bank_accounts") + BankAccounts bankAccounts; + + /** Can send funds from a FinancialAccount to a debit card owned by someone else. */ + @SerializedName("cards") + Cards cards; - /** ZIP or postal code. */ - public Builder setPostalCode(EmptyParam postalCode) { - this.postalCode = postalCode; - 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. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; - /** Required. Purpose of additional address. */ - public Builder setPurpose( - AccountUpdateParams.Identity.Individual.AdditionalAddress.Purpose purpose) { - this.purpose = purpose; - return this; - } + /** + * Can send funds from a FinancialAccount to another FinancialAccount owned by someone + * else. + */ + @SerializedName("financial_accounts") + FinancialAccounts financialAccounts; - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; + private OutboundPayments( + BankAccounts bankAccounts, + Cards cards, + Map extraParams, + FinancialAccounts financialAccounts) { + this.bankAccounts = bankAccounts; + this.cards = cards; + this.extraParams = extraParams; + this.financialAccounts = financialAccounts; } - /** State, county, province, or region. */ - public Builder setState(EmptyParam state) { - this.state = state; - return this; + public static Builder builder() { + return new Builder(); } - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } + public static class Builder { + private BankAccounts bankAccounts; - /** Town or cho-me. */ - public Builder setTown(EmptyParam town) { - this.town = town; - return this; - } - } + private Cards cards; - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), + private Map extraParams; - @SerializedName("ae") - AE("ae"), + private FinancialAccounts financialAccounts; - @SerializedName("af") - AF("af"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments( + this.bankAccounts, this.cards, this.extraParams, this.financialAccounts); + } - @SerializedName("ag") - AG("ag"), + /** Can send funds from a FinancialAccount to a bank account owned by someone else. */ + public Builder setBankAccounts( + AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts + bankAccounts) { + this.bankAccounts = bankAccounts; + return this; + } - @SerializedName("ai") - AI("ai"), + /** Can send funds from a FinancialAccount to a debit card owned by someone else. */ + public Builder setCards( + AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards + cards) { + this.cards = cards; + return this; + } - @SerializedName("al") - AL("al"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments#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; + } - @SerializedName("am") - AM("am"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ao") - AO("ao"), + /** + * Can send funds from a FinancialAccount to another FinancialAccount owned by someone + * else. + */ + public Builder setFinancialAccounts( + AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments + .FinancialAccounts + financialAccounts) { + this.financialAccounts = financialAccounts; + return this; + } + } - @SerializedName("aq") - AQ("aq"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankAccounts { + /** + * 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; - @SerializedName("ar") - AR("ar"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("as") - AS("as"), + private BankAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("at") - AT("at"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("au") - AU("au"), + public static class Builder { + private Map extraParams; - @SerializedName("aw") - AW("aw"), + private Boolean requested; - @SerializedName("ax") - AX("ax"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments + .BankAccounts + build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments + .BankAccounts(this.extraParams, this.requested); + } - @SerializedName("az") - AZ("az"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts#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; + } - @SerializedName("ba") - BA("ba"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("bb") - BB("bb"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("bd") - BD("bd"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Cards { + /** + * 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; - @SerializedName("be") - BE("be"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("bf") - BF("bf"), + private Cards(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("bg") - BG("bg"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("bh") - BH("bh"), + public static class Builder { + private Map extraParams; - @SerializedName("bi") - BI("bi"), + private Boolean requested; - @SerializedName("bj") - BJ("bj"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards + build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments + .Cards(this.extraParams, this.requested); + } - @SerializedName("bl") - BL("bl"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards#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; + } - @SerializedName("bm") - BM("bm"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("bn") - BN("bn"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("bo") - BO("bo"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FinancialAccounts { + /** + * 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; - @SerializedName("bq") - BQ("bq"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("br") - BR("br"), + private FinancialAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("bs") - BS("bs"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("bt") - BT("bt"), + public static class Builder { + private Map extraParams; - @SerializedName("bv") - BV("bv"), + private Boolean requested; - @SerializedName("bw") - BW("bw"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments + .FinancialAccounts + build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments + .FinancialAccounts(this.extraParams, this.requested); + } - @SerializedName("by") - BY("by"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts#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; + } - @SerializedName("bz") - BZ("bz"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ca") - CA("ca"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } + } - @SerializedName("cc") - CC("cc"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class OutboundTransfers { + /** Can send funds from a FinancialAccount to a bank account owned by yourself. */ + @SerializedName("bank_accounts") + BankAccounts bankAccounts; - @SerializedName("cd") - CD("cd"), + /** + * 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; - @SerializedName("cf") - CF("cf"), + /** + * Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. + */ + @SerializedName("financial_accounts") + FinancialAccounts financialAccounts; - @SerializedName("cg") - CG("cg"), + private OutboundTransfers( + BankAccounts bankAccounts, + Map extraParams, + FinancialAccounts financialAccounts) { + this.bankAccounts = bankAccounts; + this.extraParams = extraParams; + this.financialAccounts = financialAccounts; + } - @SerializedName("ch") - CH("ch"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ci") - CI("ci"), + public static class Builder { + private BankAccounts bankAccounts; - @SerializedName("ck") - CK("ck"), + private Map extraParams; - @SerializedName("cl") - CL("cl"), + private FinancialAccounts financialAccounts; - @SerializedName("cm") - CM("cm"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers( + this.bankAccounts, this.extraParams, this.financialAccounts); + } - @SerializedName("cn") - CN("cn"), + /** Can send funds from a FinancialAccount to a bank account owned by yourself. */ + public Builder setBankAccounts( + AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts + bankAccounts) { + this.bankAccounts = bankAccounts; + return this; + } - @SerializedName("co") - CO("co"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers#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; + } - @SerializedName("cr") - CR("cr"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("cu") - CU("cu"), + /** + * Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. + */ + public Builder setFinancialAccounts( + AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers + .FinancialAccounts + financialAccounts) { + this.financialAccounts = financialAccounts; + return this; + } + } - @SerializedName("cv") - CV("cv"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BankAccounts { + /** + * 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; - @SerializedName("cw") - CW("cw"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("cx") - CX("cx"), + private BankAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("cy") - CY("cy"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("cz") - CZ("cz"), + public static class Builder { + private Map extraParams; - @SerializedName("de") - DE("de"), + private Boolean requested; - @SerializedName("dj") - DJ("dj"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers + .BankAccounts + build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers + .BankAccounts(this.extraParams, this.requested); + } - @SerializedName("dk") - DK("dk"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts#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; + } - @SerializedName("dm") - DM("dm"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("do") - DO("do"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } - @SerializedName("dz") - DZ("dz"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FinancialAccounts { + /** + * 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; - @SerializedName("ec") - EC("ec"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + @SerializedName("requested") + Boolean requested; - @SerializedName("ee") - EE("ee"), + private FinancialAccounts(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } - @SerializedName("eg") - EG("eg"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("eh") - EH("eh"), + public static class Builder { + private Map extraParams; - @SerializedName("er") - ER("er"), + private Boolean requested; - @SerializedName("es") - ES("es"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers + .FinancialAccounts + build() { + return new AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers + .FinancialAccounts(this.extraParams, this.requested); + } - @SerializedName("et") - ET("et"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts#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; + } - @SerializedName("fi") - FI("fi"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("fj") - FJ("fj"), + /** + * To request a new Capability for an account, pass true. There can be a delay before + * the requested Capability becomes active. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } + } + } + } + } - @SerializedName("fk") - FK("fk"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Defaults { + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + @SerializedName("currency") + Object currency; - @SerializedName("fm") - FM("fm"), + /** + * 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; - @SerializedName("fo") - FO("fo"), + /** The Account's preferred locales (languages), ordered by preference. */ + @SerializedName("locales") + List locales; - @SerializedName("fr") - FR("fr"), + /** Default responsibilities held by either Stripe or the platform. */ + @SerializedName("responsibilities") + Responsibilities responsibilities; - @SerializedName("ga") - GA("ga"), + private Defaults( + Object currency, + Map extraParams, + List locales, + Responsibilities responsibilities) { + this.currency = currency; + this.extraParams = extraParams; + this.locales = locales; + this.responsibilities = responsibilities; + } - @SerializedName("gb") - GB("gb"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("gd") - GD("gd"), + public static class Builder { + private Object currency; - @SerializedName("ge") - GE("ge"), + private Map extraParams; - @SerializedName("gf") - GF("gf"), + private List locales; - @SerializedName("gg") - GG("gg"), + private Responsibilities responsibilities; - @SerializedName("gh") - GH("gh"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Defaults build() { + return new AccountUpdateParams.Defaults( + this.currency, this.extraParams, this.locales, this.responsibilities); + } - @SerializedName("gi") - GI("gi"), + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(String currency) { + this.currency = currency; + return this; + } - @SerializedName("gl") - GL("gl"), + /** + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setCurrency(EmptyParam currency) { + this.currency = currency; + return this; + } - @SerializedName("gm") - GM("gm"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * AccountUpdateParams.Defaults#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; + } - @SerializedName("gn") - GN("gn"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link AccountUpdateParams.Defaults#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("gp") - GP("gp"), + /** + * Add an element to `locales` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * AccountUpdateParams.Defaults#locales} for the field documentation. + */ + public Builder addLocale(AccountUpdateParams.Defaults.Locale element) { + if (this.locales == null) { + this.locales = new ArrayList<>(); + } + this.locales.add(element); + return this; + } - @SerializedName("gq") - GQ("gq"), + /** + * Add all elements to `locales` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * AccountUpdateParams.Defaults#locales} for the field documentation. + */ + public Builder addAllLocale(List elements) { + if (this.locales == null) { + this.locales = new ArrayList<>(); + } + this.locales.addAll(elements); + return this; + } - @SerializedName("gr") - GR("gr"), + /** Default responsibilities held by either Stripe or the platform. */ + public Builder setResponsibilities( + AccountUpdateParams.Defaults.Responsibilities responsibilities) { + this.responsibilities = responsibilities; + return this; + } + } - @SerializedName("gs") - GS("gs"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Responsibilities { + /** + * 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; - @SerializedName("gt") - GT("gt"), + /** + * Required. A value indicating the party responsible for collecting fees + * from this account. + */ + @SerializedName("fees_collector") + FeesCollector feesCollector; - @SerializedName("gu") - GU("gu"), + /** + * Required. A value indicating who is responsible for losses when this + * Account can’t pay back negative balances from payments. + */ + @SerializedName("losses_collector") + LossesCollector lossesCollector; - @SerializedName("gw") - GW("gw"), + private Responsibilities( + Map extraParams, + FeesCollector feesCollector, + LossesCollector lossesCollector) { + this.extraParams = extraParams; + this.feesCollector = feesCollector; + this.lossesCollector = lossesCollector; + } - @SerializedName("gy") - GY("gy"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("hk") - HK("hk"), + public static class Builder { + private Map extraParams; - @SerializedName("hm") - HM("hm"), + private FeesCollector feesCollector; - @SerializedName("hn") - HN("hn"), + private LossesCollector lossesCollector; - @SerializedName("hr") - HR("hr"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Defaults.Responsibilities build() { + return new AccountUpdateParams.Defaults.Responsibilities( + this.extraParams, this.feesCollector, this.lossesCollector); + } - @SerializedName("ht") - HT("ht"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Defaults.Responsibilities#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; + } - @SerializedName("hu") - HU("hu"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Defaults.Responsibilities#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("id") - ID("id"), + /** + * Required. A value indicating the party responsible for collecting fees + * from this account. + */ + public Builder setFeesCollector( + AccountUpdateParams.Defaults.Responsibilities.FeesCollector feesCollector) { + this.feesCollector = feesCollector; + return this; + } - @SerializedName("ie") - IE("ie"), + /** + * Required. A value indicating who is responsible for losses when this + * Account can’t pay back negative balances from payments. + */ + public Builder setLossesCollector( + AccountUpdateParams.Defaults.Responsibilities.LossesCollector lossesCollector) { + this.lossesCollector = lossesCollector; + return this; + } + } - @SerializedName("il") - IL("il"), + public enum FeesCollector implements ApiRequestParams.EnumParam { + @SerializedName("application") + APPLICATION("application"), - @SerializedName("im") - IM("im"), + @SerializedName("stripe") + STRIPE("stripe"); - @SerializedName("in") - IN("in"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("io") - IO("io"), + FeesCollector(String value) { + this.value = value; + } + } - @SerializedName("iq") - IQ("iq"), + public enum LossesCollector implements ApiRequestParams.EnumParam { + @SerializedName("application") + APPLICATION("application"), - @SerializedName("ir") - IR("ir"), + @SerializedName("stripe") + STRIPE("stripe"); - @SerializedName("is") - IS("is"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("it") - IT("it"), + LossesCollector(String value) { + this.value = value; + } + } + } - @SerializedName("je") - JE("je"), + public enum Locale implements ApiRequestParams.EnumParam { + @SerializedName("ar-SA") + AR_SA("ar-SA"), - @SerializedName("jm") - JM("jm"), + @SerializedName("bg") + BG("bg"), - @SerializedName("jo") - JO("jo"), + @SerializedName("bg-BG") + BG_BG("bg-BG"), - @SerializedName("jp") - JP("jp"), + @SerializedName("cs") + CS("cs"), - @SerializedName("ke") - KE("ke"), + @SerializedName("cs-CZ") + CS_CZ("cs-CZ"), - @SerializedName("kg") - KG("kg"), + @SerializedName("da") + DA("da"), - @SerializedName("kh") - KH("kh"), + @SerializedName("da-DK") + DA_DK("da-DK"), - @SerializedName("ki") - KI("ki"), + @SerializedName("de") + DE("de"), - @SerializedName("km") - KM("km"), + @SerializedName("de-DE") + DE_DE("de-DE"), - @SerializedName("kn") - KN("kn"), + @SerializedName("el") + EL("el"), - @SerializedName("kp") - KP("kp"), + @SerializedName("el-GR") + EL_GR("el-GR"), - @SerializedName("kr") - KR("kr"), + @SerializedName("en") + EN("en"), - @SerializedName("kw") - KW("kw"), + @SerializedName("en-AU") + EN_AU("en-AU"), - @SerializedName("ky") - KY("ky"), + @SerializedName("en-CA") + EN_CA("en-CA"), - @SerializedName("kz") - KZ("kz"), + @SerializedName("en-GB") + EN_GB("en-GB"), - @SerializedName("la") - LA("la"), + @SerializedName("en-IE") + EN_IE("en-IE"), - @SerializedName("lb") - LB("lb"), + @SerializedName("en-IN") + EN_IN("en-IN"), - @SerializedName("lc") - LC("lc"), + @SerializedName("en-NZ") + EN_NZ("en-NZ"), - @SerializedName("li") - LI("li"), + @SerializedName("en-SG") + EN_SG("en-SG"), - @SerializedName("lk") - LK("lk"), + @SerializedName("en-US") + EN_US("en-US"), - @SerializedName("lr") - LR("lr"), + @SerializedName("es") + ES("es"), - @SerializedName("ls") - LS("ls"), + @SerializedName("es-419") + ES_419("es-419"), - @SerializedName("lt") - LT("lt"), + @SerializedName("es-ES") + ES_ES("es-ES"), - @SerializedName("lu") - LU("lu"), + @SerializedName("et") + ET("et"), - @SerializedName("lv") - LV("lv"), + @SerializedName("et-EE") + ET_EE("et-EE"), - @SerializedName("ly") - LY("ly"), + @SerializedName("fi") + FI("fi"), - @SerializedName("ma") - MA("ma"), + @SerializedName("fil") + FIL("fil"), - @SerializedName("mc") - MC("mc"), + @SerializedName("fil-PH") + FIL_PH("fil-PH"), - @SerializedName("md") - MD("md"), + @SerializedName("fi-FI") + FI_FI("fi-FI"), - @SerializedName("me") - ME("me"), + @SerializedName("fr") + FR("fr"), - @SerializedName("mf") - MF("mf"), + @SerializedName("fr-CA") + FR_CA("fr-CA"), - @SerializedName("mg") - MG("mg"), + @SerializedName("fr-FR") + FR_FR("fr-FR"), - @SerializedName("mh") - MH("mh"), + @SerializedName("he-IL") + HE_IL("he-IL"), - @SerializedName("mk") - MK("mk"), + @SerializedName("hr") + HR("hr"), - @SerializedName("ml") - ML("ml"), + @SerializedName("hr-HR") + HR_HR("hr-HR"), - @SerializedName("mm") - MM("mm"), + @SerializedName("hu") + HU("hu"), - @SerializedName("mn") - MN("mn"), + @SerializedName("hu-HU") + HU_HU("hu-HU"), - @SerializedName("mo") - MO("mo"), + @SerializedName("id") + ID("id"), - @SerializedName("mp") - MP("mp"), + @SerializedName("id-ID") + ID_ID("id-ID"), - @SerializedName("mq") - MQ("mq"), + @SerializedName("it") + IT("it"), - @SerializedName("mr") - MR("mr"), + @SerializedName("it-IT") + IT_IT("it-IT"), - @SerializedName("ms") - MS("ms"), + @SerializedName("ja") + JA("ja"), - @SerializedName("mt") - MT("mt"), + @SerializedName("ja-JP") + JA_JP("ja-JP"), - @SerializedName("mu") - MU("mu"), + @SerializedName("ko") + KO("ko"), - @SerializedName("mv") - MV("mv"), + @SerializedName("ko-KR") + KO_KR("ko-KR"), - @SerializedName("mw") - MW("mw"), + @SerializedName("lt") + LT("lt"), - @SerializedName("mx") - MX("mx"), + @SerializedName("lt-LT") + LT_LT("lt-LT"), - @SerializedName("my") - MY("my"), + @SerializedName("lv") + LV("lv"), - @SerializedName("mz") - MZ("mz"), + @SerializedName("lv-LV") + LV_LV("lv-LV"), - @SerializedName("na") - NA("na"), + @SerializedName("ms") + MS("ms"), - @SerializedName("nc") - NC("nc"), + @SerializedName("ms-MY") + MS_MY("ms-MY"), - @SerializedName("ne") - NE("ne"), + @SerializedName("mt") + MT("mt"), - @SerializedName("nf") - NF("nf"), + @SerializedName("mt-MT") + MT_MT("mt-MT"), - @SerializedName("ng") - NG("ng"), + @SerializedName("nb") + NB("nb"), - @SerializedName("ni") - NI("ni"), + @SerializedName("nb-NO") + NB_NO("nb-NO"), - @SerializedName("nl") - NL("nl"), + @SerializedName("nl") + NL("nl"), - @SerializedName("no") - NO("no"), + @SerializedName("nl-NL") + NL_NL("nl-NL"), - @SerializedName("np") - NP("np"), + @SerializedName("pl") + PL("pl"), - @SerializedName("nr") - NR("nr"), + @SerializedName("pl-PL") + PL_PL("pl-PL"), - @SerializedName("nu") - NU("nu"), + @SerializedName("pt") + PT("pt"), - @SerializedName("nz") - NZ("nz"), + @SerializedName("pt-BR") + PT_BR("pt-BR"), - @SerializedName("om") - OM("om"), + @SerializedName("pt-PT") + PT_PT("pt-PT"), - @SerializedName("pa") - PA("pa"), + @SerializedName("ro") + RO("ro"), - @SerializedName("pe") - PE("pe"), + @SerializedName("ro-RO") + RO_RO("ro-RO"), - @SerializedName("pf") - PF("pf"), + @SerializedName("ru") + RU("ru"), - @SerializedName("pg") - PG("pg"), + @SerializedName("ru-RU") + RU_RU("ru-RU"), - @SerializedName("ph") - PH("ph"), + @SerializedName("sk") + SK("sk"), - @SerializedName("pk") - PK("pk"), + @SerializedName("sk-SK") + SK_SK("sk-SK"), - @SerializedName("pl") - PL("pl"), + @SerializedName("sl") + SL("sl"), - @SerializedName("pm") - PM("pm"), + @SerializedName("sl-SI") + SL_SI("sl-SI"), - @SerializedName("pn") - PN("pn"), + @SerializedName("sv") + SV("sv"), - @SerializedName("pr") - PR("pr"), + @SerializedName("sv-SE") + SV_SE("sv-SE"), - @SerializedName("ps") - PS("ps"), + @SerializedName("th") + TH("th"), - @SerializedName("pt") - PT("pt"), + @SerializedName("th-TH") + TH_TH("th-TH"), - @SerializedName("pw") - PW("pw"), + @SerializedName("tr") + TR("tr"), - @SerializedName("py") - PY("py"), + @SerializedName("tr-TR") + TR_TR("tr-TR"), - @SerializedName("qa") - QA("qa"), + @SerializedName("vi") + VI("vi"), - @SerializedName("qz") - QZ("qz"), + @SerializedName("vi-VN") + VI_VN("vi-VN"), - @SerializedName("re") - RE("re"), + @SerializedName("zh") + ZH("zh"), - @SerializedName("ro") - RO("ro"), + @SerializedName("zh-Hans") + ZH_HANS("zh-Hans"), - @SerializedName("rs") - RS("rs"), + @SerializedName("zh-Hant-HK") + ZH_HANT_HK("zh-Hant-HK"), - @SerializedName("ru") - RU("ru"), + @SerializedName("zh-Hant-TW") + ZH_HANT_TW("zh-Hant-TW"), - @SerializedName("rw") - RW("rw"), + @SerializedName("zh-HK") + ZH_HK("zh-HK"), - @SerializedName("sa") - SA("sa"), + @SerializedName("zh-TW") + ZH_TW("zh-TW"); - @SerializedName("sb") - SB("sb"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("sc") - SC("sc"), + Locale(String value) { + this.value = value; + } + } + } - @SerializedName("sd") - SD("sd"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Identity { + /** Attestations from the identity's key people, e.g. owners, executives, directors. */ + @SerializedName("attestations") + Attestations attestations; - @SerializedName("se") - SE("se"), + /** Information about the company or business. */ + @SerializedName("business_details") + BusinessDetails businessDetails; - @SerializedName("sg") - SG("sg"), + /** + * 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. + */ + @SerializedName("country") + Object country; - @SerializedName("sh") - SH("sh"), + /** The entity type. */ + @SerializedName("entity_type") + EntityType entityType; - @SerializedName("si") - SI("si"), + /** + * 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; - @SerializedName("sj") - SJ("sj"), + /** + * Information about the individual represented by the Account. This property is {@code null} + * unless {@code entity_type} is set to {@code individual}. + */ + @SerializedName("individual") + Individual individual; - @SerializedName("sk") - SK("sk"), + private Identity( + Attestations attestations, + BusinessDetails businessDetails, + Object country, + EntityType entityType, + Map extraParams, + Individual individual) { + this.attestations = attestations; + this.businessDetails = businessDetails; + this.country = country; + this.entityType = entityType; + this.extraParams = extraParams; + this.individual = individual; + } - @SerializedName("sl") - SL("sl"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("sm") - SM("sm"), + public static class Builder { + private Attestations attestations; - @SerializedName("sn") - SN("sn"), + private BusinessDetails businessDetails; - @SerializedName("so") - SO("so"), + private Object country; - @SerializedName("sr") - SR("sr"), + private EntityType entityType; - @SerializedName("ss") - SS("ss"), + private Map extraParams; - @SerializedName("st") - ST("st"), + private Individual individual; - @SerializedName("sv") - SV("sv"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity build() { + return new AccountUpdateParams.Identity( + this.attestations, + this.businessDetails, + this.country, + this.entityType, + this.extraParams, + this.individual); + } - @SerializedName("sx") - SX("sx"), + /** Attestations from the identity's key people, e.g. owners, executives, directors. */ + public Builder setAttestations(AccountUpdateParams.Identity.Attestations attestations) { + this.attestations = attestations; + return this; + } - @SerializedName("sy") - SY("sy"), + /** Information about the company or business. */ + public Builder setBusinessDetails( + AccountUpdateParams.Identity.BusinessDetails businessDetails) { + this.businessDetails = businessDetails; + return this; + } - @SerializedName("sz") - SZ("sz"), + /** + * 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. + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("tc") - TC("tc"), + /** + * 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. + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("td") - TD("td"), + /** The entity type. */ + public Builder setEntityType(AccountUpdateParams.Identity.EntityType entityType) { + this.entityType = entityType; + return this; + } - @SerializedName("tf") - TF("tf"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * AccountUpdateParams.Identity#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; + } - @SerializedName("tg") - TG("tg"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link AccountUpdateParams.Identity#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("th") - TH("th"), + /** + * Information about the individual represented by the Account. This property is {@code null} + * unless {@code entity_type} is set to {@code individual}. + */ + public Builder setIndividual(AccountUpdateParams.Identity.Individual individual) { + this.individual = individual; + return this; + } + } - @SerializedName("tj") - TJ("tj"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Attestations { + /** + * This hash is used to attest that the directors information provided to Stripe is both + * current and correct. + */ + @SerializedName("directorship_declaration") + DirectorshipDeclaration directorshipDeclaration; - @SerializedName("tk") - TK("tk"), + /** + * 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; - @SerializedName("tl") - TL("tl"), + /** + * This hash is used to attest that the beneficial owner information provided to Stripe is + * both current and correct. + */ + @SerializedName("ownership_declaration") + OwnershipDeclaration ownershipDeclaration; - @SerializedName("tm") - TM("tm"), + /** Attestation that all Persons with a specific Relationship value have been provided. */ + @SerializedName("persons_provided") + PersonsProvided personsProvided; - @SerializedName("tn") - TN("tn"), + /** Attestations of accepted terms of service agreements. */ + @SerializedName("terms_of_service") + TermsOfService termsOfService; - @SerializedName("to") - TO("to"), + private Attestations( + DirectorshipDeclaration directorshipDeclaration, + Map extraParams, + OwnershipDeclaration ownershipDeclaration, + PersonsProvided personsProvided, + TermsOfService termsOfService) { + this.directorshipDeclaration = directorshipDeclaration; + this.extraParams = extraParams; + this.ownershipDeclaration = ownershipDeclaration; + this.personsProvided = personsProvided; + this.termsOfService = termsOfService; + } - @SerializedName("tr") - TR("tr"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("tt") - TT("tt"), + public static class Builder { + private DirectorshipDeclaration directorshipDeclaration; - @SerializedName("tv") - TV("tv"), + private Map extraParams; - @SerializedName("tw") - TW("tw"), + private OwnershipDeclaration ownershipDeclaration; - @SerializedName("tz") - TZ("tz"), + private PersonsProvided personsProvided; - @SerializedName("ua") - UA("ua"), + private TermsOfService termsOfService; - @SerializedName("ug") - UG("ug"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Attestations build() { + return new AccountUpdateParams.Identity.Attestations( + this.directorshipDeclaration, + this.extraParams, + this.ownershipDeclaration, + this.personsProvided, + this.termsOfService); + } - @SerializedName("um") - UM("um"), + /** + * This hash is used to attest that the directors information provided to Stripe is both + * current and correct. + */ + public Builder setDirectorshipDeclaration( + AccountUpdateParams.Identity.Attestations.DirectorshipDeclaration + directorshipDeclaration) { + this.directorshipDeclaration = directorshipDeclaration; + return this; + } - @SerializedName("us") - US("us"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Attestations#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; + } - @SerializedName("uy") - UY("uy"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Attestations#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("uz") - UZ("uz"), + /** + * This hash is used to attest that the beneficial owner information provided to Stripe is + * both current and correct. + */ + public Builder setOwnershipDeclaration( + AccountUpdateParams.Identity.Attestations.OwnershipDeclaration ownershipDeclaration) { + this.ownershipDeclaration = ownershipDeclaration; + return this; + } - @SerializedName("va") - VA("va"), + /** Attestation that all Persons with a specific Relationship value have been provided. */ + public Builder setPersonsProvided( + AccountUpdateParams.Identity.Attestations.PersonsProvided personsProvided) { + this.personsProvided = personsProvided; + return this; + } - @SerializedName("vc") - VC("vc"), + /** Attestations of accepted terms of service agreements. */ + public Builder setTermsOfService( + AccountUpdateParams.Identity.Attestations.TermsOfService termsOfService) { + this.termsOfService = termsOfService; + return this; + } + } - @SerializedName("ve") - VE("ve"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class DirectorshipDeclaration { + /** + * The time marking when the director attestation was made. Represented as a RFC 3339 date + * & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + @SerializedName("date") + Instant date; - @SerializedName("vg") - VG("vg"), + /** + * 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; - @SerializedName("vi") - VI("vi"), + /** The IP address from which the director attestation was made. */ + @SerializedName("ip") + Object ip; - @SerializedName("vn") - VN("vn"), + /** The user agent of the browser from which the director attestation was made. */ + @SerializedName("user_agent") + Object userAgent; - @SerializedName("vu") - VU("vu"), + private DirectorshipDeclaration( + Instant date, Map extraParams, Object ip, Object userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } - @SerializedName("wf") - WF("wf"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ws") - WS("ws"), + public static class Builder { + private Instant date; - @SerializedName("xx") - XX("xx"), + private Map extraParams; - @SerializedName("ye") - YE("ye"), + private Object ip; - @SerializedName("yt") - YT("yt"), + private Object userAgent; - @SerializedName("za") - ZA("za"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Attestations.DirectorshipDeclaration build() { + return new AccountUpdateParams.Identity.Attestations.DirectorshipDeclaration( + this.date, this.extraParams, this.ip, this.userAgent); + } - @SerializedName("zm") - ZM("zm"), + /** + * The time marking when the director attestation was made. Represented as a RFC 3339 date + * & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + public Builder setDate(Instant date) { + this.date = date; + return this; + } - @SerializedName("zw") - ZW("zw"); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountUpdateParams.Identity.Attestations.DirectorshipDeclaration#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; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountUpdateParams.Identity.Attestations.DirectorshipDeclaration#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - Country(String value) { - this.value = value; + /** The IP address from which the director attestation was made. */ + public Builder setIp(String ip) { + this.ip = ip; + return this; } - } - public enum Purpose implements ApiRequestParams.EnumParam { - @SerializedName("registered") - REGISTERED("registered"); + /** The IP address from which the director attestation was made. */ + public Builder setIp(EmptyParam ip) { + this.ip = ip; + return this; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** The user agent of the browser from which the director attestation was made. */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } - Purpose(String value) { - this.value = value; + /** The user agent of the browser from which the director attestation was made. */ + public Builder setUserAgent(EmptyParam userAgent) { + this.userAgent = userAgent; + return this; } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class AdditionalName { + public static class OwnershipDeclaration { + /** + * The time marking when the beneficial owner attestation was made. Represented as a RFC + * 3339 date & time UTC value in millisecond precision, for example: + * 2022-09-18T13:22:18.123Z. + */ + @SerializedName("date") + Instant date; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -20864,33 +10440,20 @@ public static class AdditionalName { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The person's full name. */ - @SerializedName("full_name") - Object fullName; - - /** The person's first or given name. */ - @SerializedName("given_name") - Object givenName; - - /** Required. The purpose or type of the additional name. */ - @SerializedName("purpose") - Purpose purpose; + /** The IP address from which the beneficial owner attestation was made. */ + @SerializedName("ip") + Object ip; - /** The person's last or family name. */ - @SerializedName("surname") - Object surname; + /** The user agent of the browser from which the beneficial owner attestation was made. */ + @SerializedName("user_agent") + Object userAgent; - private AdditionalName( - Map extraParams, - Object fullName, - Object givenName, - Purpose purpose, - Object surname) { + private OwnershipDeclaration( + Instant date, Map extraParams, Object ip, Object userAgent) { + this.date = date; this.extraParams = extraParams; - this.fullName = fullName; - this.givenName = givenName; - this.purpose = purpose; - this.surname = surname; + this.ip = ip; + this.userAgent = userAgent; } public static Builder builder() { @@ -20898,27 +10461,36 @@ public static Builder builder() { } public static class Builder { - private Map extraParams; - - private Object fullName; + private Instant date; - private Object givenName; + private Map extraParams; - private Purpose purpose; + private Object ip; - private Object surname; + private Object userAgent; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.AdditionalName build() { - return new AccountUpdateParams.Identity.Individual.AdditionalName( - this.extraParams, this.fullName, this.givenName, this.purpose, this.surname); + public AccountUpdateParams.Identity.Attestations.OwnershipDeclaration build() { + return new AccountUpdateParams.Identity.Attestations.OwnershipDeclaration( + this.date, this.extraParams, this.ip, this.userAgent); + } + + /** + * The time marking when the beneficial owner attestation was made. Represented as a RFC + * 3339 date & time UTC value in millisecond precision, for example: + * 2022-09-18T13:22:18.123Z. + */ + public Builder setDate(Instant date) { + this.date = date; + return this; } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.AdditionalName#extraParams} for - * the field documentation. + * map. See {@link + * AccountUpdateParams.Identity.Attestations.OwnershipDeclaration#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -20931,8 +10503,9 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.AdditionalName#extraParams} for - * the field documentation. + * map. See {@link + * AccountUpdateParams.Identity.Attestations.OwnershipDeclaration#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -20942,79 +10515,50 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The person's full name. */ - public Builder setFullName(String fullName) { - this.fullName = fullName; - return this; - } - - /** The person's full name. */ - public Builder setFullName(EmptyParam fullName) { - this.fullName = fullName; - return this; - } - - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** The person's first or given name. */ - public Builder setGivenName(EmptyParam givenName) { - this.givenName = givenName; + /** The IP address from which the beneficial owner attestation was made. */ + public Builder setIp(String ip) { + this.ip = ip; return this; } - /** Required. The purpose or type of the additional name. */ - public Builder setPurpose( - AccountUpdateParams.Identity.Individual.AdditionalName.Purpose purpose) { - this.purpose = purpose; + /** The IP address from which the beneficial owner attestation was made. */ + public Builder setIp(EmptyParam ip) { + this.ip = ip; return this; } - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; + /** The user agent of the browser from which the beneficial owner attestation was made. */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; return this; } - /** The person's last or family name. */ - public Builder setSurname(EmptyParam surname) { - this.surname = surname; + /** The user agent of the browser from which the beneficial owner attestation was made. */ + public Builder setUserAgent(EmptyParam userAgent) { + this.userAgent = userAgent; return this; } } - - public enum Purpose implements ApiRequestParams.EnumParam { - @SerializedName("alias") - ALIAS("alias"), - - @SerializedName("maiden") - MAIDEN("maiden"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Purpose(String value) { - this.value = value; - } - } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Address { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - Object city; + public static class PersonsProvided { + /** + * Whether the company’s directors have been provided. Set this Boolean to true after + * creating all the company’s directors with the Persons API. + */ + @SerializedName("directors") + Boolean directors; /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * Whether the company’s executives have been provided. Set this Boolean to true after + * creating all the company’s executives with the Persons API. */ - @SerializedName("country") - ApiRequestParams.EnumParam country; + @SerializedName("executives") + Boolean executives; /** * Map of extra parameters for custom features not available in this client library. The @@ -21026,43 +10570,29 @@ public static class Address { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Address line 1 (e.g., street, PO Box, or company name). */ - @SerializedName("line1") - Object line1; - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - Object line2; - - /** ZIP or postal code. */ - @SerializedName("postal_code") - Object postalCode; - - /** State, county, province, or region. */ - @SerializedName("state") - Object state; + /** + * Whether the company’s owners have been provided. Set this Boolean to true after creating + * all the company’s owners with the Persons API. + */ + @SerializedName("owners") + Boolean owners; - /** Town or cho-me. */ - @SerializedName("town") - Object town; + /** Reason for why the company is exempt from providing ownership information. */ + @SerializedName("ownership_exemption_reason") + OwnershipExemptionReason ownershipExemptionReason; - private Address( - Object city, - ApiRequestParams.EnumParam country, - Map extraParams, - Object line1, - Object line2, - Object postalCode, - Object state, - Object town) { - this.city = city; - this.country = country; + private PersonsProvided( + Boolean directors, + Boolean executives, + Map extraParams, + Boolean owners, + OwnershipExemptionReason ownershipExemptionReason) { + this.directors = directors; + this.executives = executives; this.extraParams = extraParams; - this.line1 = line1; - this.line2 = line2; - this.postalCode = postalCode; - this.state = state; - this.town = town; + this.owners = owners; + this.ownershipExemptionReason = ownershipExemptionReason; } public static Builder builder() { @@ -21070,71 +10600,51 @@ public static Builder builder() { } public static class Builder { - private Object city; + private Boolean directors; - private ApiRequestParams.EnumParam country; + private Boolean executives; private Map extraParams; - private Object line1; - - private Object line2; - - private Object postalCode; - - private Object state; + private Boolean owners; - private Object town; + private OwnershipExemptionReason ownershipExemptionReason; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.Address build() { - return new AccountUpdateParams.Identity.Individual.Address( - this.city, - this.country, + public AccountUpdateParams.Identity.Attestations.PersonsProvided build() { + return new AccountUpdateParams.Identity.Attestations.PersonsProvided( + this.directors, + this.executives, this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(EmptyParam city) { - this.city = city; - return this; + this.owners, + this.ownershipExemptionReason); } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * Whether the company’s directors have been provided. Set this Boolean to true after + * creating all the company’s directors with the Persons API. */ - public Builder setCountry( - AccountUpdateParams.Identity.Individual.Address.Country country) { - this.country = country; + public Builder setDirectors(Boolean directors) { + this.directors = directors; return this; } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * Whether the company’s executives have been provided. Set this Boolean to true after + * creating all the company’s executives with the Persons API. */ - public Builder setCountry(EmptyParam country) { - this.country = country; + public Builder setExecutives(Boolean executives) { + this.executives = executives; return this; } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.Address#extraParams} for the - * field documentation. + * map. See {@link AccountUpdateParams.Identity.Attestations.PersonsProvided#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -21147,8 +10657,8 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.Address#extraParams} for the - * field documentation. + * map. See {@link AccountUpdateParams.Identity.Attestations.PersonsProvided#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -21158,836 +10668,978 @@ public Builder putAllExtraParam(Map 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 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(EmptyParam 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; - } - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(EmptyParam line2) { - this.line2 = line2; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(EmptyParam postalCode) { - this.postalCode = postalCode; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(EmptyParam state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; + /** + * Whether the company’s owners have been provided. Set this Boolean to true after + * creating all the company’s owners with the Persons API. + */ + public Builder setOwners(Boolean owners) { + this.owners = owners; return this; } - /** Town or cho-me. */ - public Builder setTown(EmptyParam town) { - this.town = town; + /** Reason for why the company is exempt from providing ownership information. */ + public Builder setOwnershipExemptionReason( + AccountUpdateParams.Identity.Attestations.PersonsProvided.OwnershipExemptionReason + ownershipExemptionReason) { + this.ownershipExemptionReason = ownershipExemptionReason; return this; } } - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), + public enum OwnershipExemptionReason implements ApiRequestParams.EnumParam { + @SerializedName("qualified_entity_exceeds_ownership_threshold") + QUALIFIED_ENTITY_EXCEEDS_OWNERSHIP_THRESHOLD( + "qualified_entity_exceeds_ownership_threshold"), - @SerializedName("jm") - JM("jm"), + @SerializedName("qualifies_as_financial_institution") + QUALIFIES_AS_FINANCIAL_INSTITUTION("qualifies_as_financial_institution"); - @SerializedName("jo") - JO("jo"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("jp") - JP("jp"), + OwnershipExemptionReason(String value) { + this.value = value; + } + } + } - @SerializedName("ke") - KE("ke"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class TermsOfService { + /** + * Details on the Account's acceptance of the Stripe Services + * Agreement. + */ + @SerializedName("account") + Account account; - @SerializedName("kg") - KG("kg"), + /** + * 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; - @SerializedName("kh") - KH("kh"), + /** Details on the Account's acceptance of Treasury-specific terms of service. */ + @SerializedName("storer") + Storer storer; - @SerializedName("ki") - KI("ki"), + private TermsOfService(Account account, Map extraParams, Storer storer) { + this.account = account; + this.extraParams = extraParams; + this.storer = storer; + } - @SerializedName("km") - KM("km"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("kn") - KN("kn"), + public static class Builder { + private Account account; - @SerializedName("kp") - KP("kp"), + private Map extraParams; - @SerializedName("kr") - KR("kr"), + private Storer storer; - @SerializedName("kw") - KW("kw"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Attestations.TermsOfService build() { + return new AccountUpdateParams.Identity.Attestations.TermsOfService( + this.account, this.extraParams, this.storer); + } - @SerializedName("ky") - KY("ky"), + /** + * Details on the Account's acceptance of the Stripe Services + * Agreement. + */ + public Builder setAccount( + AccountUpdateParams.Identity.Attestations.TermsOfService.Account account) { + this.account = account; + return this; + } - @SerializedName("kz") - KZ("kz"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Attestations.TermsOfService#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; + } - @SerializedName("la") - LA("la"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Attestations.TermsOfService#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("lb") - LB("lb"), + /** Details on the Account's acceptance of Treasury-specific terms of service. */ + public Builder setStorer( + AccountUpdateParams.Identity.Attestations.TermsOfService.Storer storer) { + this.storer = storer; + return this; + } + } - @SerializedName("lc") - LC("lc"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Account { + /** + * The time when the Account's representative accepted the terms of service. Represented + * as a RFC 3339 date & time UTC value in millisecond precision, for example: + * 2022-09-18T13:22:18.123Z. + */ + @SerializedName("date") + Instant date; - @SerializedName("li") - LI("li"), + /** + * 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; - @SerializedName("lk") - LK("lk"), + /** + * The IP address from which the Account's representative accepted the terms of service. + */ + @SerializedName("ip") + Object ip; - @SerializedName("lr") - LR("lr"), + /** + * The user agent of the browser from which the Account's representative accepted the + * terms of service. + */ + @SerializedName("user_agent") + Object userAgent; - @SerializedName("ls") - LS("ls"), + private Account( + Instant date, Map extraParams, Object ip, Object userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } - @SerializedName("lt") - LT("lt"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("lu") - LU("lu"), + public static class Builder { + private Instant date; - @SerializedName("lv") - LV("lv"), + private Map extraParams; - @SerializedName("ly") - LY("ly"), + private Object ip; - @SerializedName("ma") - MA("ma"), + private Object userAgent; - @SerializedName("mc") - MC("mc"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Attestations.TermsOfService.Account build() { + return new AccountUpdateParams.Identity.Attestations.TermsOfService.Account( + this.date, this.extraParams, this.ip, this.userAgent); + } - @SerializedName("md") - MD("md"), + /** + * The time when the Account's representative accepted the terms of service. Represented + * as a RFC 3339 date & time UTC value in millisecond precision, for example: + * 2022-09-18T13:22:18.123Z. + */ + public Builder setDate(Instant date) { + this.date = date; + return this; + } - @SerializedName("me") - ME("me"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Attestations.TermsOfService.Account#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; + } - @SerializedName("mf") - MF("mf"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Attestations.TermsOfService.Account#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("mg") - MG("mg"), + /** + * The IP address from which the Account's representative accepted the terms of service. + */ + public Builder setIp(String ip) { + this.ip = ip; + return this; + } - @SerializedName("mh") - MH("mh"), + /** + * The IP address from which the Account's representative accepted the terms of service. + */ + public Builder setIp(EmptyParam ip) { + this.ip = ip; + return this; + } - @SerializedName("mk") - MK("mk"), + /** + * The user agent of the browser from which the Account's representative accepted the + * terms of service. + */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } - @SerializedName("ml") - ML("ml"), + /** + * The user agent of the browser from which the Account's representative accepted the + * terms of service. + */ + public Builder setUserAgent(EmptyParam userAgent) { + this.userAgent = userAgent; + return this; + } + } + } - @SerializedName("mm") - MM("mm"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Storer { + /** + * The time when the Account's representative accepted the terms of service. Represented + * as a RFC 3339 date & time UTC value in millisecond precision, for example: + * 2022-09-18T13:22:18.123Z. + */ + @SerializedName("date") + Instant date; - @SerializedName("mn") - MN("mn"), + /** + * 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; - @SerializedName("mo") - MO("mo"), + /** + * The IP address from which the Account's representative accepted the terms of service. + */ + @SerializedName("ip") + Object ip; - @SerializedName("mp") - MP("mp"), + /** + * The user agent of the browser from which the Account's representative accepted the + * terms of service. + */ + @SerializedName("user_agent") + Object userAgent; - @SerializedName("mq") - MQ("mq"), + private Storer( + Instant date, Map extraParams, Object ip, Object userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } - @SerializedName("mr") - MR("mr"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ms") - MS("ms"), + public static class Builder { + private Instant date; - @SerializedName("mt") - MT("mt"), + private Map extraParams; - @SerializedName("mu") - MU("mu"), + private Object ip; - @SerializedName("mv") - MV("mv"), + private Object userAgent; - @SerializedName("mw") - MW("mw"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Attestations.TermsOfService.Storer build() { + return new AccountUpdateParams.Identity.Attestations.TermsOfService.Storer( + this.date, this.extraParams, this.ip, this.userAgent); + } - @SerializedName("mx") - MX("mx"), + /** + * The time when the Account's representative accepted the terms of service. Represented + * as a RFC 3339 date & time UTC value in millisecond precision, for example: + * 2022-09-18T13:22:18.123Z. + */ + public Builder setDate(Instant date) { + this.date = date; + return this; + } - @SerializedName("my") - MY("my"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Attestations.TermsOfService.Storer#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; + } - @SerializedName("mz") - MZ("mz"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Attestations.TermsOfService.Storer#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("na") - NA("na"), + /** + * The IP address from which the Account's representative accepted the terms of service. + */ + public Builder setIp(String ip) { + this.ip = ip; + return this; + } - @SerializedName("nc") - NC("nc"), + /** + * The IP address from which the Account's representative accepted the terms of service. + */ + public Builder setIp(EmptyParam ip) { + this.ip = ip; + return this; + } - @SerializedName("ne") - NE("ne"), + /** + * The user agent of the browser from which the Account's representative accepted the + * terms of service. + */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } - @SerializedName("nf") - NF("nf"), + /** + * The user agent of the browser from which the Account's representative accepted the + * terms of service. + */ + public Builder setUserAgent(EmptyParam userAgent) { + this.userAgent = userAgent; + return this; + } + } + } + } + } - @SerializedName("ng") - NG("ng"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class BusinessDetails { + /** The business registration address of the business entity. */ + @SerializedName("address") + Address address; - @SerializedName("ni") - NI("ni"), + /** The business gross annual revenue for its preceding fiscal year. */ + @SerializedName("annual_revenue") + AnnualRevenue annualRevenue; - @SerializedName("nl") - NL("nl"), + /** A document verifying the business. */ + @SerializedName("documents") + Documents documents; - @SerializedName("no") - NO("no"), + /** The name which is used by the business. */ + @SerializedName("doing_business_as") + Object doingBusinessAs; - @SerializedName("np") - NP("np"), + /** + * An estimated upper bound of employees, contractors, vendors, etc. currently working for the + * business. + */ + @SerializedName("estimated_worker_count") + Long estimatedWorkerCount; - @SerializedName("nr") - NR("nr"), + /** + * 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; - @SerializedName("nu") - NU("nu"), + /** The ID numbers of a business entity. */ + @SerializedName("id_numbers") + List idNumbers; - @SerializedName("nz") - NZ("nz"), + /** An estimate of the monthly revenue of the business. */ + @SerializedName("monthly_estimated_revenue") + MonthlyEstimatedRevenue monthlyEstimatedRevenue; - @SerializedName("om") - OM("om"), + /** The phone number of the Business Entity. */ + @SerializedName("phone") + Object phone; - @SerializedName("pa") - PA("pa"), + /** + * Internal-only description of the product sold or service provided by the business. It’s + * used by Stripe for risk and underwriting purposes. + */ + @SerializedName("product_description") + Object productDescription; - @SerializedName("pe") - PE("pe"), + /** The business legal name. */ + @SerializedName("registered_name") + Object registeredName; - @SerializedName("pf") - PF("pf"), + /** The business registration address of the business entity in non latin script. */ + @SerializedName("script_addresses") + ScriptAddresses scriptAddresses; - @SerializedName("pg") - PG("pg"), + /** The business legal name in non latin script. */ + @SerializedName("script_names") + ScriptNames scriptNames; - @SerializedName("ph") - PH("ph"), + /** The category identifying the legal structure of the business. */ + @SerializedName("structure") + Structure structure; - @SerializedName("pk") - PK("pk"), + /** The business's publicly available website. */ + @SerializedName("url") + Object url; - @SerializedName("pl") - PL("pl"), + private BusinessDetails( + Address address, + AnnualRevenue annualRevenue, + Documents documents, + Object doingBusinessAs, + Long estimatedWorkerCount, + Map extraParams, + List idNumbers, + MonthlyEstimatedRevenue monthlyEstimatedRevenue, + Object phone, + Object productDescription, + Object registeredName, + ScriptAddresses scriptAddresses, + ScriptNames scriptNames, + Structure structure, + Object url) { + this.address = address; + this.annualRevenue = annualRevenue; + this.documents = documents; + this.doingBusinessAs = doingBusinessAs; + this.estimatedWorkerCount = estimatedWorkerCount; + this.extraParams = extraParams; + this.idNumbers = idNumbers; + this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; + this.phone = phone; + this.productDescription = productDescription; + this.registeredName = registeredName; + this.scriptAddresses = scriptAddresses; + this.scriptNames = scriptNames; + this.structure = structure; + this.url = url; + } - @SerializedName("pm") - PM("pm"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("pn") - PN("pn"), + public static class Builder { + private Address address; - @SerializedName("pr") - PR("pr"), + private AnnualRevenue annualRevenue; - @SerializedName("ps") - PS("ps"), + private Documents documents; - @SerializedName("pt") - PT("pt"), + private Object doingBusinessAs; - @SerializedName("pw") - PW("pw"), + private Long estimatedWorkerCount; - @SerializedName("py") - PY("py"), + private Map extraParams; - @SerializedName("qa") - QA("qa"), + private List idNumbers; - @SerializedName("qz") - QZ("qz"), + private MonthlyEstimatedRevenue monthlyEstimatedRevenue; - @SerializedName("re") - RE("re"), + private Object phone; - @SerializedName("ro") - RO("ro"), + private Object productDescription; - @SerializedName("rs") - RS("rs"), + private Object registeredName; - @SerializedName("ru") - RU("ru"), + private ScriptAddresses scriptAddresses; - @SerializedName("rw") - RW("rw"), + private ScriptNames scriptNames; - @SerializedName("sa") - SA("sa"), + private Structure structure; - @SerializedName("sb") - SB("sb"), + private Object url; - @SerializedName("sc") - SC("sc"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails build() { + return new AccountUpdateParams.Identity.BusinessDetails( + this.address, + this.annualRevenue, + this.documents, + this.doingBusinessAs, + this.estimatedWorkerCount, + this.extraParams, + this.idNumbers, + this.monthlyEstimatedRevenue, + this.phone, + this.productDescription, + this.registeredName, + this.scriptAddresses, + this.scriptNames, + this.structure, + this.url); + } - @SerializedName("sd") - SD("sd"), + /** The business registration address of the business entity. */ + public Builder setAddress(AccountUpdateParams.Identity.BusinessDetails.Address address) { + this.address = address; + return this; + } - @SerializedName("se") - SE("se"), + /** The business gross annual revenue for its preceding fiscal year. */ + public Builder setAnnualRevenue( + AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue annualRevenue) { + this.annualRevenue = annualRevenue; + return this; + } - @SerializedName("sg") - SG("sg"), + /** A document verifying the business. */ + public Builder setDocuments( + AccountUpdateParams.Identity.BusinessDetails.Documents documents) { + this.documents = documents; + return this; + } - @SerializedName("sh") - SH("sh"), + /** The name which is used by the business. */ + public Builder setDoingBusinessAs(String doingBusinessAs) { + this.doingBusinessAs = doingBusinessAs; + return this; + } - @SerializedName("si") - SI("si"), + /** The name which is used by the business. */ + public Builder setDoingBusinessAs(EmptyParam doingBusinessAs) { + this.doingBusinessAs = doingBusinessAs; + return this; + } - @SerializedName("sj") - SJ("sj"), + /** + * An estimated upper bound of employees, contractors, vendors, etc. currently working for + * the business. + */ + public Builder setEstimatedWorkerCount(Long estimatedWorkerCount) { + this.estimatedWorkerCount = estimatedWorkerCount; + return this; + } - @SerializedName("sk") - SK("sk"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.BusinessDetails#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; + } - @SerializedName("sl") - SL("sl"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.BusinessDetails#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sm") - SM("sm"), + /** + * Add an element to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountUpdateParams.Identity.BusinessDetails#idNumbers} for the field documentation. + */ + public Builder addIdNumber(AccountUpdateParams.Identity.BusinessDetails.IdNumber element) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.add(element); + return this; + } - @SerializedName("sn") - SN("sn"), + /** + * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountUpdateParams.Identity.BusinessDetails#idNumbers} for the field documentation. + */ + public Builder addAllIdNumber( + List elements) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.addAll(elements); + return this; + } - @SerializedName("so") - SO("so"), + /** An estimate of the monthly revenue of the business. */ + public Builder setMonthlyEstimatedRevenue( + AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue + monthlyEstimatedRevenue) { + this.monthlyEstimatedRevenue = monthlyEstimatedRevenue; + return this; + } - @SerializedName("sr") - SR("sr"), + /** The phone number of the Business Entity. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; + } - @SerializedName("ss") - SS("ss"), + /** The phone number of the Business Entity. */ + public Builder setPhone(EmptyParam phone) { + this.phone = phone; + return this; + } - @SerializedName("st") - ST("st"), + /** + * Internal-only description of the product sold or service provided by the business. It’s + * used by Stripe for risk and underwriting purposes. + */ + public Builder setProductDescription(String productDescription) { + this.productDescription = productDescription; + return this; + } - @SerializedName("sv") - SV("sv"), + /** + * Internal-only description of the product sold or service provided by the business. It’s + * used by Stripe for risk and underwriting purposes. + */ + public Builder setProductDescription(EmptyParam productDescription) { + this.productDescription = productDescription; + return this; + } - @SerializedName("sx") - SX("sx"), + /** The business legal name. */ + public Builder setRegisteredName(String registeredName) { + this.registeredName = registeredName; + return this; + } - @SerializedName("sy") - SY("sy"), + /** The business legal name. */ + public Builder setRegisteredName(EmptyParam registeredName) { + this.registeredName = registeredName; + return this; + } - @SerializedName("sz") - SZ("sz"), + /** The business registration address of the business entity in non latin script. */ + public Builder setScriptAddresses( + AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses scriptAddresses) { + this.scriptAddresses = scriptAddresses; + return this; + } - @SerializedName("tc") - TC("tc"), + /** The business legal name in non latin script. */ + public Builder setScriptNames( + AccountUpdateParams.Identity.BusinessDetails.ScriptNames scriptNames) { + this.scriptNames = scriptNames; + return this; + } - @SerializedName("td") - TD("td"), + /** The category identifying the legal structure of the business. */ + public Builder setStructure( + AccountUpdateParams.Identity.BusinessDetails.Structure structure) { + this.structure = structure; + return this; + } - @SerializedName("tf") - TF("tf"), + /** The business's publicly available website. */ + public Builder setUrl(String url) { + this.url = url; + return this; + } - @SerializedName("tg") - TG("tg"), + /** The business's publicly available website. */ + public Builder setUrl(EmptyParam url) { + this.url = url; + return this; + } + } - @SerializedName("th") - TH("th"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; - @SerializedName("tj") - TJ("tj"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; - @SerializedName("tk") - TK("tk"), + /** + * 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; - @SerializedName("tl") - TL("tl"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; - @SerializedName("tm") - TM("tm"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; - @SerializedName("tn") - TN("tn"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; - @SerializedName("to") - TO("to"), + /** State, county, province, or region. */ + @SerializedName("state") + Object state; - @SerializedName("tr") - TR("tr"), + /** Town or cho-me. */ + @SerializedName("town") + Object town; - @SerializedName("tt") - TT("tt"), + private Address( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state, + Object 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; + } - @SerializedName("tv") - TV("tv"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("tw") - TW("tw"), + public static class Builder { + private Object city; - @SerializedName("tz") - TZ("tz"), + private Object country; - @SerializedName("ua") - UA("ua"), + private Map extraParams; - @SerializedName("ug") - UG("ug"), + private Object line1; - @SerializedName("um") - UM("um"), + private Object line2; - @SerializedName("us") - US("us"), + private Object postalCode; - @SerializedName("uy") - UY("uy"), + private Object state; - @SerializedName("uz") - UZ("uz"), + private Object town; - @SerializedName("va") - VA("va"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.Address build() { + return new AccountUpdateParams.Identity.BusinessDetails.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("vc") - VC("vc"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("ve") - VE("ve"), + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } - @SerializedName("vg") - VG("vg"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("vi") - VI("vi"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("vn") - VN("vn"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.BusinessDetails.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; + } - @SerializedName("vu") - VU("vu"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.BusinessDetails.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; + } - @SerializedName("wf") - WF("wf"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("ws") - WS("ws"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } - @SerializedName("xx") - XX("xx"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("ye") - YE("ye"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } - @SerializedName("yt") - YT("yt"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("za") - ZA("za"), + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("zm") - ZM("zm"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("zw") - ZW("zw"); + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } - Country(String value) { - this.value = value; + /** Town or cho-me. */ + public Builder setTown(EmptyParam town) { + this.town = town; + return this; } } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class DateOfBirth { - /** Required. The day of the birth. */ - @SerializedName("day") - Integer day; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AnnualRevenue { + /** A non-negative integer representing the amount in the smallest currency unit. */ + @SerializedName("amount") + Amount amount; /** * Map of extra parameters for custom features not available in this client library. The @@ -21999,20 +11651,18 @@ public static class DateOfBirth { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. The month of birth. */ - @SerializedName("month") - Integer month; - - /** Required. The year of birth. */ - @SerializedName("year") - Integer year; + /** + * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + * the 31st of December, 2023. + */ + @SerializedName("fiscal_year_end") + Object fiscalYearEnd; - private DateOfBirth( - Integer day, Map extraParams, Integer month, Integer year) { - this.day = day; + private AnnualRevenue( + Amount amount, Map extraParams, Object fiscalYearEnd) { + this.amount = amount; this.extraParams = extraParams; - this.month = month; - this.year = year; + this.fiscalYearEnd = fiscalYearEnd; } public static Builder builder() { @@ -22020,31 +11670,29 @@ public static Builder builder() { } public static class Builder { - private Integer day; + private Amount amount; private Map extraParams; - private Integer month; - - private Integer year; + private Object fiscalYearEnd; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.DateOfBirth build() { - return new AccountUpdateParams.Identity.Individual.DateOfBirth( - this.day, this.extraParams, this.month, this.year); + public AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue build() { + return new AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue( + this.amount, this.extraParams, this.fiscalYearEnd); } - /** Required. The day of the birth. */ - public Builder setDay(Integer day) { - this.day = day; + /** A non-negative integer representing the amount in the smallest currency unit. */ + public Builder setAmount(Amount amount) { + this.amount = amount; return this; } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.DateOfBirth#extraParams} for - * the field documentation. + * map. See {@link AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -22057,8 +11705,8 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.DateOfBirth#extraParams} for - * the field documentation. + * map. See {@link AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -22068,15 +11716,21 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. The month of birth. */ - public Builder setMonth(Integer month) { - this.month = month; + /** + * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + * the 31st of December, 2023. + */ + public Builder setFiscalYearEnd(String fiscalYearEnd) { + this.fiscalYearEnd = fiscalYearEnd; return this; } - /** Required. The year of birth. */ - public Builder setYear(Integer year) { - this.year = year; + /** + * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for + * the 31st of December, 2023. + */ + public Builder setFiscalYearEnd(EmptyParam fiscalYearEnd) { + this.fiscalYearEnd = fiscalYearEnd; return this; } } @@ -22086,11 +11740,38 @@ public Builder setYear(Integer year) { @EqualsAndHashCode(callSuper = false) public static class Documents { /** - * One or more documents that demonstrate proof that this person is authorized to represent - * the company. + * 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 check. */ - @SerializedName("company_authorization") - CompanyAuthorization companyAuthorization; + @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 @@ -22102,45 +11783,48 @@ public static class Documents { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * One or more documents showing the person’s passport page with photo and personal data. - */ - @SerializedName("passport") - Passport passport; - - /** - * An identifying document showing the person's name, either a passport or local ID card. - */ + /** A document verifying the business. */ @SerializedName("primary_verification") - Object primaryVerification; + PrimaryVerification primaryVerification; - /** - * A document showing address, either a passport, local ID card, or utility bill from a - * well-known utility company. - */ - @SerializedName("secondary_verification") - Object secondaryVerification; + /** One or more documents that demonstrate proof of address. */ + @SerializedName("proof_of_address") + ProofOfAddress proofOfAddress; /** - * One or more documents showing the person’s visa required for living in the country where - * they are residing. + * One or more documents showing the company’s proof of registration with the national + * business registry. */ - @SerializedName("visa") - Visa visa; + @SerializedName("proof_of_registration") + ProofOfRegistration proofOfRegistration; + + /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ + @SerializedName("proof_of_ultimate_beneficial_ownership") + ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; private Documents( - CompanyAuthorization companyAuthorization, + BankAccountOwnershipVerification bankAccountOwnershipVerification, + CompanyLicense companyLicense, + CompanyMemorandumOfAssociation companyMemorandumOfAssociation, + CompanyMinisterialDecree companyMinisterialDecree, + CompanyRegistrationVerification companyRegistrationVerification, + CompanyTaxIdVerification companyTaxIdVerification, Map extraParams, - Passport passport, - Object primaryVerification, - Object secondaryVerification, - Visa visa) { - this.companyAuthorization = companyAuthorization; + PrimaryVerification primaryVerification, + ProofOfAddress proofOfAddress, + ProofOfRegistration proofOfRegistration, + ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership) { + this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; + this.companyLicense = companyLicense; + this.companyMemorandumOfAssociation = companyMemorandumOfAssociation; + this.companyMinisterialDecree = companyMinisterialDecree; + this.companyRegistrationVerification = companyRegistrationVerification; + this.companyTaxIdVerification = companyTaxIdVerification; this.extraParams = extraParams; - this.passport = passport; this.primaryVerification = primaryVerification; - this.secondaryVerification = secondaryVerification; - this.visa = visa; + this.proofOfAddress = proofOfAddress; + this.proofOfRegistration = proofOfRegistration; + this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership; } public static Builder builder() { @@ -22148,45 +11832,108 @@ public static Builder builder() { } public static class Builder { - private CompanyAuthorization companyAuthorization; + private BankAccountOwnershipVerification bankAccountOwnershipVerification; + + private CompanyLicense companyLicense; + + private CompanyMemorandumOfAssociation companyMemorandumOfAssociation; + + private CompanyMinisterialDecree companyMinisterialDecree; + + private CompanyRegistrationVerification companyRegistrationVerification; + + private CompanyTaxIdVerification companyTaxIdVerification; private Map extraParams; - private Passport passport; + private PrimaryVerification primaryVerification; - private Object primaryVerification; + private ProofOfAddress proofOfAddress; - private Object secondaryVerification; + private ProofOfRegistration proofOfRegistration; - private Visa visa; + private ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.Documents build() { - return new AccountUpdateParams.Identity.Individual.Documents( - this.companyAuthorization, + public AccountUpdateParams.Identity.BusinessDetails.Documents build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents( + this.bankAccountOwnershipVerification, + this.companyLicense, + this.companyMemorandumOfAssociation, + this.companyMinisterialDecree, + this.companyRegistrationVerification, + this.companyTaxIdVerification, this.extraParams, - this.passport, this.primaryVerification, - this.secondaryVerification, - this.visa); + this.proofOfAddress, + this.proofOfRegistration, + this.proofOfUltimateBeneficialOwnership); } /** - * One or more documents that demonstrate proof that this person is authorized to - * represent the company. + * 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 check. */ - public Builder setCompanyAuthorization( - AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization - companyAuthorization) { - this.companyAuthorization = companyAuthorization; + public Builder setBankAccountOwnershipVerification( + AccountUpdateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification + bankAccountOwnershipVerification) { + this.bankAccountOwnershipVerification = bankAccountOwnershipVerification; + return this; + } + + /** One or more documents that demonstrate proof of a company’s license to operate. */ + public Builder setCompanyLicense( + AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense + companyLicense) { + this.companyLicense = companyLicense; + return this; + } + + /** One or more documents showing the company’s Memorandum of Association. */ + public Builder setCompanyMemorandumOfAssociation( + AccountUpdateParams.Identity.BusinessDetails.Documents.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( + AccountUpdateParams.Identity.BusinessDetails.Documents.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( + AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification + companyRegistrationVerification) { + this.companyRegistrationVerification = companyRegistrationVerification; + return this; + } + + /** One or more documents that demonstrate proof of a company’s tax ID. */ + public Builder setCompanyTaxIdVerification( + AccountUpdateParams.Identity.BusinessDetails.Documents.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 AccountUpdateParams.Identity.Individual.Documents#extraParams} for the - * field documentation. + * map. See {@link AccountUpdateParams.Identity.BusinessDetails.Documents#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -22199,8 +11946,8 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.Documents#extraParams} for the - * field documentation. + * map. See {@link AccountUpdateParams.Identity.BusinessDetails.Documents#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -22210,66 +11957,46 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * One or more documents showing the person’s passport page with photo and personal data. - */ - public Builder setPassport( - AccountUpdateParams.Identity.Individual.Documents.Passport passport) { - this.passport = passport; - return this; - } - - /** - * An identifying document showing the person's name, either a passport or local ID card. - */ + /** A document verifying the business. */ public Builder setPrimaryVerification( - AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification - primaryVerification) { - this.primaryVerification = primaryVerification; - return this; - } - - /** - * An identifying document showing the person's name, either a passport or local ID card. - */ - public Builder setPrimaryVerification(EmptyParam primaryVerification) { + AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification + primaryVerification) { this.primaryVerification = primaryVerification; return this; } - /** - * A document showing address, either a passport, local ID card, or utility bill from a - * well-known utility company. - */ - public Builder setSecondaryVerification( - AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification - secondaryVerification) { - this.secondaryVerification = secondaryVerification; + /** One or more documents that demonstrate proof of address. */ + public Builder setProofOfAddress( + AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress + proofOfAddress) { + this.proofOfAddress = proofOfAddress; return this; } /** - * A document showing address, either a passport, local ID card, or utility bill from a - * well-known utility company. + * One or more documents showing the company’s proof of registration with the national + * business registry. */ - public Builder setSecondaryVerification(EmptyParam secondaryVerification) { - this.secondaryVerification = secondaryVerification; + public Builder setProofOfRegistration( + AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration + proofOfRegistration) { + this.proofOfRegistration = proofOfRegistration; return this; } - /** - * One or more documents showing the person’s visa required for living in the country - * where they are residing. - */ - public Builder setVisa(AccountUpdateParams.Identity.Individual.Documents.Visa visa) { - this.visa = visa; + /** One or more documents that demonstrate proof of ultimate beneficial ownership. */ + public Builder setProofOfUltimateBeneficialOwnership( + AccountUpdateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership + proofOfUltimateBeneficialOwnership) { + this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership; return this; } } @Getter @EqualsAndHashCode(callSuper = false) - public static class CompanyAuthorization { + 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. @@ -22295,7 +12022,7 @@ public static class CompanyAuthorization { @SerializedName("type") Type type; - private CompanyAuthorization( + private BankAccountOwnershipVerification( Map extraParams, List files, Type type) { this.extraParams = extraParams; this.files = files; @@ -22314,16 +12041,18 @@ public static class Builder { private Type type; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization build() { - return new AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization( - this.extraParams, this.files, this.type); + public AccountUpdateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification + build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification(this.extraParams, this.files, this.type); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization#extraParams} + * AccountUpdateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -22338,7 +12067,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization#extraParams} + * AccountUpdateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -22352,8 +12081,8 @@ public Builder putAllExtraParam(Map map) { /** * 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 - * AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization#files} for the - * field documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#files} + * for the field documentation. */ public Builder addFile(String element) { if (this.files == null) { @@ -22366,8 +12095,8 @@ public Builder addFile(String element) { /** * 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 - * AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization#files} for the - * field documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification#files} + * for the field documentation. */ public Builder addAllFile(List elements) { if (this.files == null) { @@ -22382,7 +12111,9 @@ public Builder addAllFile(List elements) { * files} only. */ public Builder setType( - AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization.Type type) { + AccountUpdateParams.Identity.BusinessDetails.Documents + .BankAccountOwnershipVerification.Type + type) { this.type = type; return this; } @@ -22403,7 +12134,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Passport { + 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. @@ -22429,7 +12160,7 @@ public static class Passport { @SerializedName("type") Type type; - private Passport(Map extraParams, List files, Type type) { + private CompanyLicense(Map extraParams, List files, Type type) { this.extraParams = extraParams; this.files = files; this.type = type; @@ -22447,8 +12178,8 @@ public static class Builder { private Type type; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.Documents.Passport build() { - return new AccountUpdateParams.Identity.Individual.Documents.Passport( + public AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense( this.extraParams, this.files, this.type); } @@ -22456,8 +12187,8 @@ public AccountUpdateParams.Identity.Individual.Documents.Passport build() { * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.Passport#extraParams} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -22471,8 +12202,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.Passport#extraParams} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -22485,8 +12216,8 @@ public Builder putAllExtraParam(Map map) { /** * 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 - * AccountUpdateParams.Identity.Individual.Documents.Passport#files} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense#files} for the + * field documentation. */ public Builder addFile(String element) { if (this.files == null) { @@ -22499,8 +12230,8 @@ public Builder addFile(String element) { /** * 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 - * AccountUpdateParams.Identity.Individual.Documents.Passport#files} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense#files} for the + * field documentation. */ public Builder addAllFile(List elements) { if (this.files == null) { @@ -22515,7 +12246,7 @@ public Builder addAllFile(List elements) { * files} only. */ public Builder setType( - AccountUpdateParams.Identity.Individual.Documents.Passport.Type type) { + AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyLicense.Type type) { this.type = type; return this; } @@ -22536,7 +12267,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class PrimaryVerification { + 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. @@ -22548,24 +12279,24 @@ public static class PrimaryVerification { Map extraParams; /** - * Required. The file upload tokens - * referring to each side of the document. + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. */ - @SerializedName("front_back") - FrontBack frontBack; + @SerializedName("files") + List files; /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. + * Required. The format of the document. Currently supports {@code files} + * only. */ @SerializedName("type") Type type; - private PrimaryVerification( - Map extraParams, FrontBack frontBack, Type type) { + private CompanyMemorandumOfAssociation( + Map extraParams, List files, Type type) { this.extraParams = extraParams; - this.frontBack = frontBack; + this.files = files; this.type = type; } @@ -22576,21 +12307,23 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private FrontBack frontBack; + private List files; private Type type; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification build() { - return new AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification( - this.extraParams, this.frontBack, this.type); + public AccountUpdateParams.Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation + build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation(this.extraParams, this.files, this.type); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification#extraParams} + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -22605,7 +12338,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification#extraParams} + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -22617,168 +12350,49 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The file upload tokens - * referring to each side of the document. - */ - public Builder setFrontBack( - AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack - frontBack) { - this.frontBack = frontBack; - return this; - } - - /** - * Required. The format of the verification document. Currently - * supports {@code front_back} only. - */ - public Builder setType( - AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification.Type type) { - this.type = type; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FrontBack { - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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") - Object 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; - - /** - * A file upload - * token representing the front of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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") - Object front; - - private FrontBack(Object back, Map extraParams, Object front) { - this.back = back; - this.extraParams = extraParams; - this.front = front; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object back; - - private Map extraParams; - - private Object front; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack - build() { - return new AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification - .FrontBack(this.back, this.extraParams, this.front); - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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; - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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(EmptyParam 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 - * AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack#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 + * AccountUpdateParams.Identity.BusinessDetails.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; + } - /** - * A file upload - * token representing the front of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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 setFront(String front) { - this.front = front; - return this; + /** + * 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 + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); } + this.files.addAll(elements); + return this; + } - /** - * A file upload - * token representing the front of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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 setFront(EmptyParam front) { - this.front = front; - return this; - } + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountUpdateParams.Identity.BusinessDetails.Documents + .CompanyMemorandumOfAssociation.Type + type) { + this.type = type; + return this; } } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("front_back") - FRONT_BACK("front_back"); + @SerializedName("files") + FILES("files"); @Getter(onMethod_ = {@Override}) private final String value; @@ -22791,7 +12405,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class SecondaryVerification { + 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. @@ -22803,24 +12417,24 @@ public static class SecondaryVerification { Map extraParams; /** - * Required. The file upload tokens - * referring to each side of the document. + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. */ - @SerializedName("front_back") - FrontBack frontBack; + @SerializedName("files") + List files; /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. + * Required. The format of the document. Currently supports {@code files} + * only. */ @SerializedName("type") Type type; - private SecondaryVerification( - Map extraParams, FrontBack frontBack, Type type) { + private CompanyMinisterialDecree( + Map extraParams, List files, Type type) { this.extraParams = extraParams; - this.frontBack = frontBack; + this.files = files; this.type = type; } @@ -22831,21 +12445,22 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private FrontBack frontBack; + private List files; private Type type; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification build() { - return new AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification( - this.extraParams, this.frontBack, this.type); + public AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree + build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents + .CompanyMinisterialDecree(this.extraParams, this.files, this.type); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification#extraParams} + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#extraParams} * for the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -22860,7 +12475,7 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification#extraParams} + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#extraParams} * for the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -22872,169 +12487,48 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The file upload tokens - * referring to each side of the document. - */ - public Builder setFrontBack( - AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack - frontBack) { - this.frontBack = frontBack; - return this; - } - - /** - * Required. The format of the verification document. Currently - * supports {@code front_back} only. + * 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 + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#files} + * for the field documentation. */ - public Builder setType( - AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification.Type type) { - this.type = type; + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); return this; } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FrontBack { - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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") - Object 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; /** - * A file upload - * token representing the front of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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. + * 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 + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree#files} + * for the field documentation. */ - @SerializedName("front") - Object front; - - private FrontBack(Object back, Map extraParams, Object front) { - this.back = back; - this.extraParams = extraParams; - this.front = front; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object back; - - private Map extraParams; - - private Object front; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification - .FrontBack - build() { - return new AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification - .FrontBack(this.back, this.extraParams, this.front); - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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; - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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(EmptyParam 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 - * AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the - * first `put/putAll` call, and subsequent calls add additional key/value pairs to the - * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * A file upload - * token representing the front of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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 setFront(String front) { - this.front = front; - return this; - } - - /** - * A file upload - * token representing the front of the verification document. The purpose of the - * uploaded file should be 'identity_document'. 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 setFront(EmptyParam front) { - this.front = front; - return this; + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); } + this.files.addAll(elements); + return this; + } + + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree.Type + type) { + this.type = type; + return this; } } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("front_back") - FRONT_BACK("front_back"); + @SerializedName("files") + FILES("files"); @Getter(onMethod_ = {@Override}) private final String value; @@ -23047,7 +12541,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Visa { + 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. @@ -23073,7 +12567,8 @@ public static class Visa { @SerializedName("type") Type type; - private Visa(Map extraParams, List files, Type type) { + private CompanyRegistrationVerification( + Map extraParams, List files, Type type) { this.extraParams = extraParams; this.files = files; this.type = type; @@ -23091,17 +12586,19 @@ public static class Builder { private Type type; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.Documents.Visa build() { - return new AccountUpdateParams.Identity.Individual.Documents.Visa( - this.extraParams, this.files, this.type); + public AccountUpdateParams.Identity.BusinessDetails.Documents + .CompanyRegistrationVerification + build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents + .CompanyRegistrationVerification(this.extraParams, this.files, this.type); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.Visa#extraParams} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -23115,8 +12612,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.Documents.Visa#extraParams} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -23129,8 +12626,8 @@ public Builder putAllExtraParam(Map map) { /** * 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 - * AccountUpdateParams.Identity.Individual.Documents.Visa#files} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#files} + * for the field documentation. */ public Builder addFile(String element) { if (this.files == null) { @@ -23143,536 +12640,440 @@ public Builder addFile(String element) { /** * 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 - * AccountUpdateParams.Identity.Individual.Documents.Visa#files} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification#files} + * for the field documentation. */ public Builder addAllFile(List elements) { if (this.files == null) { this.files = new ArrayList<>(); } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code - * files} only. - */ - public Builder setType( - AccountUpdateParams.Identity.Individual.Documents.Visa.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class IdNumber { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Required. The ID number type of an individual. */ - @SerializedName("type") - Type type; - - /** Required. The value of the ID number. */ - @SerializedName("value") - Object value; - - private IdNumber(Map extraParams, Type type, Object value) { - this.extraParams = extraParams; - this.type = type; - this.value = value; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Type type; - - private Object value; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.IdNumber build() { - return new AccountUpdateParams.Identity.Individual.IdNumber( - this.extraParams, this.type, this.value); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.IdNumber#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.IdNumber#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Required. The ID number type of an individual. */ - public Builder setType(AccountUpdateParams.Identity.Individual.IdNumber.Type type) { - this.type = type; - return this; - } - - /** Required. The value of the ID number. */ - public Builder setValue(String value) { - this.value = value; - return this; - } - - /** Required. The value of the ID number. */ - public Builder setValue(EmptyParam value) { - this.value = value; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ae_eid") - AE_EID("ae_eid"), - - @SerializedName("ao_nif") - AO_NIF("ao_nif"), - - @SerializedName("az_tin") - AZ_TIN("az_tin"), - - @SerializedName("bd_brc") - BD_BRC("bd_brc"), - - @SerializedName("bd_etin") - BD_ETIN("bd_etin"), - - @SerializedName("bd_nid") - BD_NID("bd_nid"), - - @SerializedName("br_cpf") - BR_CPF("br_cpf"), - - @SerializedName("cr_cpf") - CR_CPF("cr_cpf"), - - @SerializedName("cr_dimex") - CR_DIMEX("cr_dimex"), - - @SerializedName("cr_nite") - CR_NITE("cr_nite"), - - @SerializedName("de_stn") - DE_STN("de_stn"), - - @SerializedName("do_rcn") - DO_RCN("do_rcn"), - - @SerializedName("gt_nit") - GT_NIT("gt_nit"), - - @SerializedName("hk_id") - HK_ID("hk_id"), - - @SerializedName("kz_iin") - KZ_IIN("kz_iin"), - - @SerializedName("mx_rfc") - MX_RFC("mx_rfc"), - - @SerializedName("my_nric") - MY_NRIC("my_nric"), - - @SerializedName("mz_nuit") - MZ_NUIT("mz_nuit"), - - @SerializedName("nl_bsn") - NL_BSN("nl_bsn"), - - @SerializedName("pe_dni") - PE_DNI("pe_dni"), - - @SerializedName("pk_cnic") - PK_CNIC("pk_cnic"), - - @SerializedName("pk_snic") - PK_SNIC("pk_snic"), - - @SerializedName("sa_tin") - SA_TIN("sa_tin"), - - @SerializedName("sg_fin") - SG_FIN("sg_fin"), - - @SerializedName("sg_nric") - SG_NRIC("sg_nric"), - - @SerializedName("th_lc") - TH_LC("th_lc"), - - @SerializedName("th_pin") - TH_PIN("th_pin"), - - @SerializedName("us_itin") - US_ITIN("us_itin"), - - @SerializedName("us_itin_last_4") - US_ITIN_LAST_4("us_itin_last_4"), + this.files.addAll(elements); + return this; + } - @SerializedName("us_ssn") - US_SSN("us_ssn"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountUpdateParams.Identity.BusinessDetails.Documents + .CompanyRegistrationVerification.Type + type) { + this.type = type; + return this; + } + } - @SerializedName("us_ssn_last_4") - US_SSN_LAST_4("us_ssn_last_4"); + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @Getter(onMethod_ = {@Override}) - private final String value; + @Getter(onMethod_ = {@Override}) + private final String value; - Type(String value) { - this.value = value; + Type(String value) { + this.value = value; + } } } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Relationship { - /** - * Whether the person is a director of the account's identity. Directors are typically - * members of the governing board of the company, or responsible for ensuring the company - * meets its regulatory obligations. - */ - @SerializedName("director") - Object director; + @Getter + @EqualsAndHashCode(callSuper = false) + 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; - /** - * Whether the person has significant responsibility to control, manage, or direct the - * organization. - */ - @SerializedName("executive") - Object executive; + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - /** Whether the person is an owner of the account’s identity. */ - @SerializedName("owner") - Object owner; + private CompanyTaxIdVerification( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - /** The percent owned by the person of the account's legal entity. */ - @SerializedName("percent_ownership") - Object percentOwnership; + public static Builder builder() { + return new Builder(); + } - /** The person's title (e.g., CEO, Support Engineer). */ - @SerializedName("title") - Object title; + public static class Builder { + private Map extraParams; - private Relationship( - Object director, - Object executive, - Map extraParams, - Object owner, - Object percentOwnership, - Object title) { - this.director = director; - this.executive = executive; - this.extraParams = extraParams; - this.owner = owner; - this.percentOwnership = percentOwnership; - this.title = title; - } + private List files; - public static Builder builder() { - return new Builder(); - } + private Type type; - public static class Builder { - private Object director; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification + build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents + .CompanyTaxIdVerification(this.extraParams, this.files, this.type); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.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; + } - private Object executive; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.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; + } - private Map extraParams; + /** + * 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 + * AccountUpdateParams.Identity.BusinessDetails.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; + } - private Object owner; + /** + * 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 + * AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - private Object percentOwnership; + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountUpdateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification.Type + type) { + this.type = type; + return this; + } + } - private Object title; + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.Relationship build() { - return new AccountUpdateParams.Identity.Individual.Relationship( - this.director, - this.executive, - this.extraParams, - this.owner, - this.percentOwnership, - this.title); + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } } + } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PrimaryVerification { /** - * Whether the person is a director of the account's identity. Directors are typically - * members of the governing board of the company, or responsible for ensuring the company - * meets its regulatory obligations. + * 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. */ - public Builder setDirector(Boolean director) { - this.director = director; - return this; - } + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; /** - * Whether the person is a director of the account's identity. Directors are typically - * members of the governing board of the company, or responsible for ensuring the company - * meets its regulatory obligations. + * Required. The file upload tokens + * referring to each side of the document. */ - public Builder setDirector(EmptyParam director) { - this.director = director; - return this; - } + @SerializedName("front_back") + FrontBack frontBack; /** - * Whether the person has significant responsibility to control, manage, or direct the - * organization. + * Required. The format of the verification document. Currently supports + * {@code front_back} only. */ - public Builder setExecutive(Boolean executive) { - this.executive = executive; - return this; + @SerializedName("type") + Type type; + + private PrimaryVerification( + Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } + + public static Builder builder() { + return new Builder(); } - /** - * Whether the person has significant responsibility to control, manage, or direct the - * organization. - */ - public Builder setExecutive(EmptyParam executive) { - this.executive = executive; - return this; - } + public static class Builder { + private Map extraParams; - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.Relationship#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + private FrontBack frontBack; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification + build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification( + this.extraParams, this.frontBack, this.type); } - this.extraParams.put(key, value); - return this; - } - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.Relationship#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification#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; } - this.extraParams.putAll(map); - return this; - } - /** Whether the person is an owner of the account’s identity. */ - public Builder setOwner(Boolean owner) { - this.owner = owner; - return this; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - /** Whether the person is an owner of the account’s identity. */ - public Builder setOwner(EmptyParam owner) { - this.owner = owner; - return this; - } + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack + frontBack) { + this.frontBack = frontBack; + return this; + } - /** The percent owned by the person of the account's legal entity. */ - public Builder setPercentOwnership(String percentOwnership) { - this.percentOwnership = percentOwnership; - return this; + /** + * Required. The format of the verification document. Currently + * supports {@code front_back} only. + */ + public Builder setType( + AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification.Type + type) { + this.type = type; + return this; + } } - /** The percent owned by the person of the account's legal entity. */ - public Builder setPercentOwnership(EmptyParam percentOwnership) { - this.percentOwnership = percentOwnership; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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") + Object back; - /** The person's title (e.g., CEO, Support Engineer). */ - public Builder setTitle(String title) { - this.title = title; - 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. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; - /** The person's title (e.g., CEO, Support Engineer). */ - public Builder setTitle(EmptyParam title) { - this.title = title; - return this; - } - } - } + /** + * A file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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") + Object front; - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ScriptAddresses { - /** - * 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 FrontBack(Object back, Map extraParams, Object front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } - /** Kana Address. */ - @SerializedName("kana") - Object kana; + public static Builder builder() { + return new Builder(); + } - /** Kanji Address. */ - @SerializedName("kanji") - Object kanji; + public static class Builder { + private Object back; - private ScriptAddresses(Map extraParams, Object kana, Object kanji) { - this.extraParams = extraParams; - this.kana = kana; - this.kanji = kanji; - } + private Map extraParams; - public static Builder builder() { - return new Builder(); - } + private Object front; - public static class Builder { - private Map extraParams; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification + .FrontBack + build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents + .PrimaryVerification.FrontBack(this.back, this.extraParams, this.front); + } - private Object kana; + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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; + } - private Object kanji; + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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(EmptyParam back) { + this.back = back; + return this; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.ScriptAddresses build() { - return new AccountUpdateParams.Identity.Individual.ScriptAddresses( - this.extraParams, this.kana, this.kanji); - } + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack#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 a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.ScriptAddresses#extraParams} - * for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack#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 all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.ScriptAddresses#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } + /** + * A file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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 setFront(String front) { + this.front = front; + return this; + } - /** Kana Address. */ - public Builder setKana( - AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana kana) { - this.kana = kana; - return this; + /** + * A file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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 setFront(EmptyParam front) { + this.front = front; + return this; + } + } } - /** Kana Address. */ - public Builder setKana(EmptyParam kana) { - this.kana = kana; - return this; - } + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); - /** Kanji Address. */ - public Builder setKanji( - AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji kanji) { - this.kanji = kanji; - return this; - } + @Getter(onMethod_ = {@Override}) + private final String value; - /** Kanji Address. */ - public Builder setKanji(EmptyParam kanji) { - this.kanji = kanji; - return this; + Type(String value) { + this.value = value; + } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Kana { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - Object city; - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - @SerializedName("country") - ApiRequestParams.EnumParam country; - + public static class ProofOfAddress { /** * 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. @@ -23683,43 +13084,25 @@ public static class Kana { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Address line 1 (e.g., street, PO Box, or company name). */ - @SerializedName("line1") - Object line1; - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - Object line2; - - /** ZIP or postal code. */ - @SerializedName("postal_code") - Object postalCode; - - /** State, county, province, or region. */ - @SerializedName("state") - Object state; + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - /** Town or cho-me. */ - @SerializedName("town") - Object town; + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - private Kana( - Object city, - ApiRequestParams.EnumParam country, - Map extraParams, - Object line1, - Object line2, - Object postalCode, - Object state, - Object town) { - this.city = city; - this.country = country; + private ProofOfAddress(Map extraParams, List files, Type type) { this.extraParams = extraParams; - this.line1 = line1; - this.line2 = line2; - this.postalCode = postalCode; - this.state = state; - this.town = town; + this.files = files; + this.type = type; } public static Builder builder() { @@ -23727,72 +13110,159 @@ public static Builder builder() { } public static class Builder { - private Object city; + private Map extraParams; - private ApiRequestParams.EnumParam country; + private List files; - private Map extraParams; + private Type type; - private Object line1; + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress( + this.extraParams, this.files, this.type); + } - private Object line2; + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress#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; + } - private Object postalCode; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - private Object state; + /** + * 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 + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress#files} for the + * field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - private Object town; + /** + * 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 + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress#files} for the + * field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana build() { - return new AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfAddress.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ProofOfRegistration { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its + * parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; + + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } + private ProofOfRegistration( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - /** City, district, suburb, town, or village. */ - public Builder setCity(EmptyParam city) { - this.city = city; - return this; - } + public static Builder builder() { + return new Builder(); + } - /** - * Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry( - AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana.Country country) { - this.country = country; - return this; - } + public static class Builder { + private Map extraParams; - /** - * Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry(EmptyParam country) { - this.country = country; - return this; + private List files; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration + build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration( + this.extraParams, this.files, this.type); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana#extraParams} for the - * field documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -23806,8 +13276,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana#extraParams} for the - * field documentation. + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -23817,833 +13287,702 @@ public Builder putAllExtraParam(Map 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 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(EmptyParam 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; - } - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(EmptyParam line2) { - this.line2 = line2; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(EmptyParam postalCode) { - this.postalCode = postalCode; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(EmptyParam state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; + /** + * 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 + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#files} for + * the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); return this; } - /** Town or cho-me. */ - public Builder setTown(EmptyParam town) { - this.town = town; + /** + * 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 + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration#files} for + * the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); return this; } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfRegistration.Type + type) { + this.type = type; + return this; + } + } - @SerializedName("km") - KM("km"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("kn") - KN("kn"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("kp") - KP("kp"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("kr") - KR("kr"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ProofOfUltimateBeneficialOwnership { + /** + * 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; - @SerializedName("kw") - KW("kw"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("ky") - KY("ky"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("kz") - KZ("kz"), + private ProofOfUltimateBeneficialOwnership( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("la") - LA("la"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("lb") - LB("lb"), + public static class Builder { + private Map extraParams; - @SerializedName("lc") - LC("lc"), + private List files; - @SerializedName("li") - LI("li"), + private Type type; - @SerializedName("lk") - LK("lk"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership + build() { + return new AccountUpdateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership(this.extraParams, this.files, this.type); + } - @SerializedName("lr") - LR("lr"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#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; + } - @SerializedName("ls") - LS("ls"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("lt") - LT("lt"), + /** + * 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 + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#files} + * for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("lu") - LU("lu"), + /** + * 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 + * AccountUpdateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership#files} + * for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("lv") - LV("lv"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountUpdateParams.Identity.BusinessDetails.Documents + .ProofOfUltimateBeneficialOwnership.Type + type) { + this.type = type; + return this; + } + } - @SerializedName("ly") - LY("ly"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("ma") - MA("ma"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("mc") - MC("mc"), + Type(String value) { + this.value = value; + } + } + } + } - @SerializedName("md") - MD("md"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class IdNumber { + /** + * 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; - @SerializedName("me") - ME("me"), + /** The registrar of the ID number (Only valid for DE ID number types). */ + @SerializedName("registrar") + Object registrar; - @SerializedName("mf") - MF("mf"), + /** Required. Open Enum. The ID number type of a business entity. */ + @SerializedName("type") + Type type; - @SerializedName("mg") - MG("mg"), + /** Required. The value of the ID number. */ + @SerializedName("value") + Object value; - @SerializedName("mh") - MH("mh"), + private IdNumber( + Map extraParams, Object registrar, Type type, Object value) { + this.extraParams = extraParams; + this.registrar = registrar; + this.type = type; + this.value = value; + } - @SerializedName("mk") - MK("mk"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ml") - ML("ml"), + public static class Builder { + private Map extraParams; - @SerializedName("mm") - MM("mm"), + private Object registrar; - @SerializedName("mn") - MN("mn"), + private Type type; - @SerializedName("mo") - MO("mo"), + private Object value; - @SerializedName("mp") - MP("mp"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.IdNumber build() { + return new AccountUpdateParams.Identity.BusinessDetails.IdNumber( + this.extraParams, this.registrar, this.type, this.value); + } - @SerializedName("mq") - MQ("mq"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.BusinessDetails.IdNumber#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; + } - @SerializedName("mr") - MR("mr"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.BusinessDetails.IdNumber#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ms") - MS("ms"), + /** The registrar of the ID number (Only valid for DE ID number types). */ + public Builder setRegistrar(String registrar) { + this.registrar = registrar; + return this; + } - @SerializedName("mt") - MT("mt"), + /** The registrar of the ID number (Only valid for DE ID number types). */ + public Builder setRegistrar(EmptyParam registrar) { + this.registrar = registrar; + return this; + } - @SerializedName("mu") - MU("mu"), + /** Required. Open Enum. The ID number type of a business entity. */ + public Builder setType(AccountUpdateParams.Identity.BusinessDetails.IdNumber.Type type) { + this.type = type; + return this; + } - @SerializedName("mv") - MV("mv"), + /** Required. The value of the ID number. */ + public Builder setValue(String value) { + this.value = value; + return this; + } - @SerializedName("mw") - MW("mw"), + /** Required. The value of the ID number. */ + public Builder setValue(EmptyParam value) { + this.value = value; + return this; + } + } - @SerializedName("mx") - MX("mx"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ae_crn") + AE_CRN("ae_crn"), - @SerializedName("my") - MY("my"), + @SerializedName("ae_vat") + AE_VAT("ae_vat"), - @SerializedName("mz") - MZ("mz"), + @SerializedName("ao_nif") + AO_NIF("ao_nif"), - @SerializedName("na") - NA("na"), + @SerializedName("at_fn") + AT_FN("at_fn"), - @SerializedName("nc") - NC("nc"), + @SerializedName("au_abn") + AU_ABN("au_abn"), - @SerializedName("ne") - NE("ne"), + @SerializedName("au_acn") + AU_ACN("au_acn"), - @SerializedName("nf") - NF("nf"), + @SerializedName("au_in") + AU_IN("au_in"), - @SerializedName("ng") - NG("ng"), + @SerializedName("az_tin") + AZ_TIN("az_tin"), - @SerializedName("ni") - NI("ni"), + @SerializedName("bd_etin") + BD_ETIN("bd_etin"), - @SerializedName("nl") - NL("nl"), + @SerializedName("be_cbe") + BE_CBE("be_cbe"), - @SerializedName("no") - NO("no"), + @SerializedName("bg_uic") + BG_UIC("bg_uic"), - @SerializedName("np") - NP("np"), + @SerializedName("br_cnpj") + BR_CNPJ("br_cnpj"), - @SerializedName("nr") - NR("nr"), + @SerializedName("ca_cn") + CA_CN("ca_cn"), - @SerializedName("nu") - NU("nu"), + @SerializedName("ca_crarr") + CA_CRARR("ca_crarr"), - @SerializedName("nz") - NZ("nz"), + @SerializedName("ca_neq") + CA_NEQ("ca_neq"), - @SerializedName("om") - OM("om"), + @SerializedName("ca_rid") + CA_RID("ca_rid"), - @SerializedName("pa") - PA("pa"), + @SerializedName("ch_chid") + CH_CHID("ch_chid"), - @SerializedName("pe") - PE("pe"), + @SerializedName("ch_uid") + CH_UID("ch_uid"), - @SerializedName("pf") - PF("pf"), + @SerializedName("cr_cpj") + CR_CPJ("cr_cpj"), - @SerializedName("pg") - PG("pg"), + @SerializedName("cr_nite") + CR_NITE("cr_nite"), - @SerializedName("ph") - PH("ph"), + @SerializedName("cy_tic") + CY_TIC("cy_tic"), - @SerializedName("pk") - PK("pk"), + @SerializedName("cz_ico") + CZ_ICO("cz_ico"), - @SerializedName("pl") - PL("pl"), + @SerializedName("de_hrn") + DE_HRN("de_hrn"), - @SerializedName("pm") - PM("pm"), + @SerializedName("de_vat") + DE_VAT("de_vat"), - @SerializedName("pn") - PN("pn"), + @SerializedName("dk_cvr") + DK_CVR("dk_cvr"), - @SerializedName("pr") - PR("pr"), + @SerializedName("do_rcn") + DO_RCN("do_rcn"), - @SerializedName("ps") - PS("ps"), + @SerializedName("ee_rk") + EE_RK("ee_rk"), - @SerializedName("pt") - PT("pt"), + @SerializedName("es_cif") + ES_CIF("es_cif"), - @SerializedName("pw") - PW("pw"), + @SerializedName("fi_yt") + FI_YT("fi_yt"), - @SerializedName("py") - PY("py"), + @SerializedName("fr_siren") + FR_SIREN("fr_siren"), - @SerializedName("qa") - QA("qa"), + @SerializedName("fr_vat") + FR_VAT("fr_vat"), - @SerializedName("qz") - QZ("qz"), + @SerializedName("gb_crn") + GB_CRN("gb_crn"), - @SerializedName("re") - RE("re"), + @SerializedName("gi_crn") + GI_CRN("gi_crn"), - @SerializedName("ro") - RO("ro"), + @SerializedName("gr_gemi") + GR_GEMI("gr_gemi"), - @SerializedName("rs") - RS("rs"), + @SerializedName("gt_nit") + GT_NIT("gt_nit"), - @SerializedName("ru") - RU("ru"), + @SerializedName("hk_br") + HK_BR("hk_br"), - @SerializedName("rw") - RW("rw"), + @SerializedName("hk_cr") + HK_CR("hk_cr"), - @SerializedName("sa") - SA("sa"), + @SerializedName("hk_mbs") + HK_MBS("hk_mbs"), - @SerializedName("sb") - SB("sb"), + @SerializedName("hu_cjs") + HU_CJS("hu_cjs"), - @SerializedName("sc") - SC("sc"), + @SerializedName("ie_crn") + IE_CRN("ie_crn"), - @SerializedName("sd") - SD("sd"), + @SerializedName("it_rea") + IT_REA("it_rea"), - @SerializedName("se") - SE("se"), + @SerializedName("it_vat") + IT_VAT("it_vat"), - @SerializedName("sg") - SG("sg"), + @SerializedName("jp_cn") + JP_CN("jp_cn"), - @SerializedName("sh") - SH("sh"), + @SerializedName("kz_bin") + KZ_BIN("kz_bin"), - @SerializedName("si") - SI("si"), + @SerializedName("li_uid") + LI_UID("li_uid"), - @SerializedName("sj") - SJ("sj"), + @SerializedName("lt_ccrn") + LT_CCRN("lt_ccrn"), - @SerializedName("sk") - SK("sk"), + @SerializedName("lu_rcs") + LU_RCS("lu_rcs"), - @SerializedName("sl") - SL("sl"), + @SerializedName("lv_urn") + LV_URN("lv_urn"), - @SerializedName("sm") - SM("sm"), + @SerializedName("mt_crn") + MT_CRN("mt_crn"), - @SerializedName("sn") - SN("sn"), + @SerializedName("mx_rfc") + MX_RFC("mx_rfc"), - @SerializedName("so") - SO("so"), + @SerializedName("my_brn") + MY_BRN("my_brn"), - @SerializedName("sr") - SR("sr"), + @SerializedName("my_coid") + MY_COID("my_coid"), - @SerializedName("ss") - SS("ss"), + @SerializedName("my_sst") + MY_SST("my_sst"), - @SerializedName("st") - ST("st"), + @SerializedName("mz_nuit") + MZ_NUIT("mz_nuit"), - @SerializedName("sv") - SV("sv"), + @SerializedName("nl_kvk") + NL_KVK("nl_kvk"), - @SerializedName("sx") - SX("sx"), + @SerializedName("no_orgnr") + NO_ORGNR("no_orgnr"), - @SerializedName("sy") - SY("sy"), + @SerializedName("nz_bn") + NZ_BN("nz_bn"), - @SerializedName("sz") - SZ("sz"), + @SerializedName("pe_ruc") + PE_RUC("pe_ruc"), - @SerializedName("tc") - TC("tc"), + @SerializedName("pk_ntn") + PK_NTN("pk_ntn"), - @SerializedName("td") - TD("td"), + @SerializedName("pl_regon") + PL_REGON("pl_regon"), - @SerializedName("tf") - TF("tf"), + @SerializedName("pt_vat") + PT_VAT("pt_vat"), - @SerializedName("tg") - TG("tg"), + @SerializedName("ro_cui") + RO_CUI("ro_cui"), - @SerializedName("th") - TH("th"), + @SerializedName("sa_crn") + SA_CRN("sa_crn"), - @SerializedName("tj") - TJ("tj"), + @SerializedName("sa_tin") + SA_TIN("sa_tin"), - @SerializedName("tk") - TK("tk"), + @SerializedName("se_orgnr") + SE_ORGNR("se_orgnr"), - @SerializedName("tl") - TL("tl"), + @SerializedName("sg_uen") + SG_UEN("sg_uen"), - @SerializedName("tm") - TM("tm"), + @SerializedName("si_msp") + SI_MSP("si_msp"), - @SerializedName("tn") - TN("tn"), + @SerializedName("sk_ico") + SK_ICO("sk_ico"), - @SerializedName("to") - TO("to"), + @SerializedName("th_crn") + TH_CRN("th_crn"), - @SerializedName("tr") - TR("tr"), + @SerializedName("th_prn") + TH_PRN("th_prn"), - @SerializedName("tt") - TT("tt"), + @SerializedName("th_tin") + TH_TIN("th_tin"), - @SerializedName("tv") - TV("tv"), + @SerializedName("us_ein") + US_EIN("us_ein"); - @SerializedName("tw") - TW("tw"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("tz") - TZ("tz"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("ua") - UA("ua"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class MonthlyEstimatedRevenue { + /** A non-negative integer representing the amount in the smallest currency unit. */ + @SerializedName("amount") + Amount amount; - @SerializedName("ug") - UG("ug"), + /** + * 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; - @SerializedName("um") - UM("um"), + private MonthlyEstimatedRevenue(Amount amount, Map extraParams) { + this.amount = amount; + this.extraParams = extraParams; + } - @SerializedName("us") - US("us"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("uy") - UY("uy"), + public static class Builder { + private Amount amount; - @SerializedName("uz") - UZ("uz"), + private Map extraParams; - @SerializedName("va") - VA("va"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue build() { + return new AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue( + this.amount, this.extraParams); + } - @SerializedName("vc") - VC("vc"), + /** A non-negative integer representing the amount in the smallest currency unit. */ + public Builder setAmount(Amount amount) { + this.amount = amount; + return this; + } - @SerializedName("ve") - VE("ve"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue#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; + } - @SerializedName("vg") - VG("vg"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } - @SerializedName("vi") - VI("vi"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptAddresses { + /** + * 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; - @SerializedName("vn") - VN("vn"), + /** Kana Address. */ + @SerializedName("kana") + Kana kana; - @SerializedName("vu") - VU("vu"), + /** Kanji Address. */ + @SerializedName("kanji") + Kanji kanji; - @SerializedName("wf") - WF("wf"), + private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } - @SerializedName("ws") - WS("ws"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("xx") - XX("xx"), + public static class Builder { + private Map extraParams; - @SerializedName("ye") - YE("ye"), + private Kana kana; - @SerializedName("yt") - YT("yt"), + private Kanji kanji; - @SerializedName("za") - ZA("za"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses build() { + return new AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses( + this.extraParams, this.kana, this.kanji); + } - @SerializedName("zm") - ZM("zm"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses#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; + } - @SerializedName("zw") - ZW("zw"); + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** Kana Address. */ + public Builder setKana( + AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana kana) { + this.kana = kana; + return this; + } - Country(String value) { - this.value = value; - } + /** Kanji Address. */ + public Builder setKanji( + AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji kanji) { + this.kanji = kanji; + return this; } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Kanji { + public static class Kana { /** City, district, suburb, town, or village. */ @SerializedName("city") Object city; @@ -24653,7 +13992,7 @@ public static class Kanji { * 3166-1 alpha-2). */ @SerializedName("country") - ApiRequestParams.EnumParam country; + Object country; /** * Map of extra parameters for custom features not available in this client library. The @@ -24685,9 +14024,9 @@ public static class Kanji { @SerializedName("town") Object town; - private Kanji( + private Kana( Object city, - ApiRequestParams.EnumParam country, + Object country, Map extraParams, Object line1, Object line2, @@ -24711,7 +14050,7 @@ public static Builder builder() { public static class Builder { private Object city; - private ApiRequestParams.EnumParam country; + private Object country; private Map extraParams; @@ -24726,8 +14065,8 @@ public static class Builder { private Object town; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji build() { - return new AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji( + public AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana build() { + return new AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana( this.city, this.country, this.extraParams, @@ -24754,8 +14093,7 @@ public Builder setCity(EmptyParam city) { * Two-letter country code (ISO 3166-1 alpha-2). */ - public Builder setCountry( - AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji.Country country) { + public Builder setCountry(String country) { this.country = country; return this; } @@ -24773,8 +14111,8 @@ public Builder setCountry(EmptyParam country) { * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji#extraParams} for the - * field documentation. + * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -24788,8 +14126,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji#extraParams} for the - * field documentation. + * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kana#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -24859,766 +14197,223 @@ public Builder setTown(EmptyParam town) { return this; } } + } - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; - @SerializedName("tj") - TJ("tj"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; - @SerializedName("tk") - TK("tk"), + /** + * 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; - @SerializedName("tl") - TL("tl"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; - @SerializedName("tm") - TM("tm"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; - @SerializedName("tn") - TN("tn"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; - @SerializedName("to") - TO("to"), + /** State, county, province, or region. */ + @SerializedName("state") + Object state; - @SerializedName("tr") - TR("tr"), + /** Town or cho-me. */ + @SerializedName("town") + Object town; - @SerializedName("tt") - TT("tt"), + private Kanji( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state, + Object 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; + } - @SerializedName("tv") - TV("tv"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("tw") - TW("tw"), + public static class Builder { + private Object city; - @SerializedName("tz") - TZ("tz"), + private Object country; - @SerializedName("ua") - UA("ua"), + private Map extraParams; - @SerializedName("ug") - UG("ug"), + private Object line1; - @SerializedName("um") - UM("um"), + private Object line2; - @SerializedName("us") - US("us"), + private Object postalCode; - @SerializedName("uy") - UY("uy"), + private Object state; - @SerializedName("uz") - UZ("uz"), + private Object town; - @SerializedName("va") - VA("va"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji build() { + return new AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("vc") - VC("vc"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("ve") - VE("ve"), + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } - @SerializedName("vg") - VG("vg"), + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("vi") - VI("vi"), + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("vn") - VN("vn"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji#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; + } - @SerializedName("vu") - VU("vu"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.BusinessDetails.ScriptAddresses.Kanji#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("wf") - WF("wf"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("ws") - WS("ws"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } - @SerializedName("xx") - XX("xx"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("ye") - YE("ye"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } - @SerializedName("yt") - YT("yt"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("za") - ZA("za"), + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("zm") - ZM("zm"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("zw") - ZW("zw"); + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } - Country(String value) { - this.value = value; + /** Town or cho-me. */ + public Builder setTown(EmptyParam town) { + this.town = town; + return this; } } } @@ -25637,15 +14432,15 @@ public static class ScriptNames { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Persons name in kana script. */ + /** Kana name. */ @SerializedName("kana") - Object kana; + Kana kana; - /** Persons name in kanji script. */ + /** Kanji name. */ @SerializedName("kanji") - Object kanji; + Kanji kanji; - private ScriptNames(Map extraParams, Object kana, Object kanji) { + private ScriptNames(Map extraParams, Kana kana, Kanji kanji) { this.extraParams = extraParams; this.kana = kana; this.kanji = kanji; @@ -25658,21 +14453,21 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Object kana; + private Kana kana; - private Object kanji; + private Kanji kanji; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.ScriptNames build() { - return new AccountUpdateParams.Identity.Individual.ScriptNames( + public AccountUpdateParams.Identity.BusinessDetails.ScriptNames build() { + return new AccountUpdateParams.Identity.BusinessDetails.ScriptNames( this.extraParams, this.kana, this.kanji); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.ScriptNames#extraParams} for - * the field documentation. + * map. See {@link AccountUpdateParams.Identity.BusinessDetails.ScriptNames#extraParams} + * for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -25685,8 +14480,8 @@ public Builder putExtraParam(String key, Object value) { /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Identity.Individual.ScriptNames#extraParams} for - * the field documentation. + * map. See {@link AccountUpdateParams.Identity.BusinessDetails.ScriptNames#extraParams} + * for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -25696,26 +14491,16 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Persons name in kana script. */ - public Builder setKana(AccountUpdateParams.Identity.Individual.ScriptNames.Kana kana) { - this.kana = kana; - return this; - } - - /** Persons name in kana script. */ - public Builder setKana(EmptyParam kana) { + /** Kana name. */ + public Builder setKana( + AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kana kana) { this.kana = kana; return this; } - /** Persons name in kanji script. */ - public Builder setKanji(AccountUpdateParams.Identity.Individual.ScriptNames.Kanji kanji) { - this.kanji = kanji; - return this; - } - - /** Persons name in kanji script. */ - public Builder setKanji(EmptyParam kanji) { + /** Kanji name. */ + public Builder setKanji( + AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kanji kanji) { this.kanji = kanji; return this; } @@ -25734,18 +14519,13 @@ public static class Kana { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The person's first or given name. */ - @SerializedName("given_name") - Object givenName; - - /** The person's last or family name. */ - @SerializedName("surname") - Object surname; + /** Registered name of the business. */ + @SerializedName("registered_name") + Object registeredName; - private Kana(Map extraParams, Object givenName, Object surname) { + private Kana(Map extraParams, Object registeredName) { this.extraParams = extraParams; - this.givenName = givenName; - this.surname = surname; + this.registeredName = registeredName; } public static Builder builder() { @@ -25755,22 +14535,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Object givenName; - - private Object surname; + private Object registeredName; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.ScriptNames.Kana build() { - return new AccountUpdateParams.Identity.Individual.ScriptNames.Kana( - this.extraParams, this.givenName, this.surname); + public AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kana build() { + return new AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kana( + this.extraParams, this.registeredName); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.ScriptNames.Kana#extraParams} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kana#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -25784,8 +14562,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.ScriptNames.Kana#extraParams} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kana#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -25795,27 +14573,15 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** The person's first or given name. */ - public Builder setGivenName(EmptyParam givenName) { - this.givenName = givenName; - return this; - } - - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; + /** Registered name of the business. */ + public Builder setRegisteredName(String registeredName) { + this.registeredName = registeredName; return this; } - /** The person's last or family name. */ - public Builder setSurname(EmptyParam surname) { - this.surname = surname; + /** Registered name of the business. */ + public Builder setRegisteredName(EmptyParam registeredName) { + this.registeredName = registeredName; return this; } } @@ -25834,18 +14600,13 @@ public static class Kanji { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The person's first or given name. */ - @SerializedName("given_name") - Object givenName; - - /** The person's last or family name. */ - @SerializedName("surname") - Object surname; + /** Registered name of the business. */ + @SerializedName("registered_name") + Object registeredName; - private Kanji(Map extraParams, Object givenName, Object surname) { + private Kanji(Map extraParams, Object registeredName) { this.extraParams = extraParams; - this.givenName = givenName; - this.surname = surname; + this.registeredName = registeredName; } public static Builder builder() { @@ -25855,22 +14616,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Object givenName; - - private Object surname; + private Object registeredName; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Identity.Individual.ScriptNames.Kanji build() { - return new AccountUpdateParams.Identity.Individual.ScriptNames.Kanji( - this.extraParams, this.givenName, this.surname); + public AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kanji build() { + return new AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kanji( + this.extraParams, this.registeredName); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.ScriptNames.Kanji#extraParams} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kanji#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -25884,8 +14643,8 @@ public Builder putExtraParam(String key, Object value) { * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the * original map. See {@link - * AccountUpdateParams.Identity.Individual.ScriptNames.Kanji#extraParams} for the field - * documentation. + * AccountUpdateParams.Identity.BusinessDetails.ScriptNames.Kanji#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -25895,1585 +14654,3585 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** The person's first or given name. */ - public Builder setGivenName(EmptyParam givenName) { - this.givenName = givenName; - return this; - } - - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; + /** Registered name of the business. */ + public Builder setRegisteredName(String registeredName) { + this.registeredName = registeredName; return this; } - /** The person's last or family name. */ - public Builder setSurname(EmptyParam surname) { - this.surname = surname; + /** Registered name of the business. */ + public Builder setRegisteredName(EmptyParam registeredName) { + this.registeredName = registeredName; return this; } } } } - public enum LegalGender implements ApiRequestParams.EnumParam { - @SerializedName("female") - FEMALE("female"), + public enum Structure implements ApiRequestParams.EnumParam { + @SerializedName("cooperative") + COOPERATIVE("cooperative"), - @SerializedName("male") - MALE("male"); + @SerializedName("free_zone_establishment") + FREE_ZONE_ESTABLISHMENT("free_zone_establishment"), + + @SerializedName("free_zone_llc") + FREE_ZONE_LLC("free_zone_llc"), + + @SerializedName("governmental_unit") + GOVERNMENTAL_UNIT("governmental_unit"), + + @SerializedName("government_instrumentality") + GOVERNMENT_INSTRUMENTALITY("government_instrumentality"), + + @SerializedName("incorporated_association") + INCORPORATED_ASSOCIATION("incorporated_association"), + + @SerializedName("incorporated_non_profit") + INCORPORATED_NON_PROFIT("incorporated_non_profit"), + + @SerializedName("incorporated_partnership") + INCORPORATED_PARTNERSHIP("incorporated_partnership"), + + @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_listed_corporation") + PUBLIC_LISTED_CORPORATION("public_listed_corporation"), + + @SerializedName("public_partnership") + PUBLIC_PARTNERSHIP("public_partnership"), + + @SerializedName("registered_charity") + REGISTERED_CHARITY("registered_charity"), + + @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("trust") + TRUST("trust"), + + @SerializedName("unincorporated_association") + UNINCORPORATED_ASSOCIATION("unincorporated_association"), + + @SerializedName("unincorporated_non_profit") + UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"), + + @SerializedName("unincorporated_partnership") + UNINCORPORATED_PARTNERSHIP("unincorporated_partnership"); @Getter(onMethod_ = {@Override}) private final String value; - LegalGender(String value) { + Structure(String value) { this.value = value; } } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Individual { + /** Additional addresses associated with the individual. */ + @SerializedName("additional_addresses") + List additionalAddresses; + + /** Additional names (e.g. aliases) associated with the individual. */ + @SerializedName("additional_names") + List additionalNames; + + /** The individual's residential address. */ + @SerializedName("address") + Address address; + + /** The individual's date of birth. */ + @SerializedName("date_of_birth") + DateOfBirth dateOfBirth; + + /** Documents that may be submitted to satisfy various informational requests. */ + @SerializedName("documents") + Documents documents; + + /** The individual's email address. */ + @SerializedName("email") + Object 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("given_name") + Object givenName; + + /** The identification numbers (e.g., SSN) associated with the individual. */ + @SerializedName("id_numbers") + List idNumbers; + + /** + * The individual's gender (International regulations require either "male" or + * "female"). + */ + @SerializedName("legal_gender") + LegalGender legalGender; - public enum Nationality implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), + /** + * 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. + */ + @SerializedName("metadata") + Map metadata; + + /** + * The countries where the individual is a national. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("nationalities") + List nationalities; + + /** The individual's phone number. */ + @SerializedName("phone") + Object phone; - @SerializedName("ae") - AE("ae"), + /** The individual's political exposure. */ + @SerializedName("political_exposure") + PoliticalExposure politicalExposure; + + /** The relationship that this individual has with the account's identity. */ + @SerializedName("relationship") + Relationship relationship; + + /** The script addresses (e.g., non-Latin characters) associated with the individual. */ + @SerializedName("script_addresses") + ScriptAddresses scriptAddresses; - @SerializedName("af") - AF("af"), + /** The individuals primary name in non latin script. */ + @SerializedName("script_names") + ScriptNames scriptNames; + + /** The individual's last name. */ + @SerializedName("surname") + Object surname; + + private Individual( + List additionalAddresses, + List additionalNames, + Address address, + DateOfBirth dateOfBirth, + Documents documents, + Object email, + Map extraParams, + Object givenName, + List idNumbers, + LegalGender legalGender, + Map metadata, + List nationalities, + Object phone, + PoliticalExposure politicalExposure, + Relationship relationship, + ScriptAddresses scriptAddresses, + ScriptNames scriptNames, + Object surname) { + this.additionalAddresses = additionalAddresses; + this.additionalNames = additionalNames; + this.address = address; + this.dateOfBirth = dateOfBirth; + this.documents = documents; + this.email = email; + this.extraParams = extraParams; + this.givenName = givenName; + this.idNumbers = idNumbers; + this.legalGender = legalGender; + this.metadata = metadata; + this.nationalities = nationalities; + this.phone = phone; + this.politicalExposure = politicalExposure; + this.relationship = relationship; + this.scriptAddresses = scriptAddresses; + this.scriptNames = scriptNames; + this.surname = surname; + } - @SerializedName("ag") - AG("ag"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ai") - AI("ai"), + public static class Builder { + private List additionalAddresses; - @SerializedName("al") - AL("al"), + private List additionalNames; - @SerializedName("am") - AM("am"), + private Address address; - @SerializedName("ao") - AO("ao"), + private DateOfBirth dateOfBirth; - @SerializedName("aq") - AQ("aq"), + private Documents documents; - @SerializedName("ar") - AR("ar"), + private Object email; - @SerializedName("as") - AS("as"), + private Map extraParams; - @SerializedName("at") - AT("at"), + private Object givenName; - @SerializedName("au") - AU("au"), + private List idNumbers; - @SerializedName("aw") - AW("aw"), + private LegalGender legalGender; - @SerializedName("ax") - AX("ax"), + private Map metadata; - @SerializedName("az") - AZ("az"), + private List nationalities; - @SerializedName("ba") - BA("ba"), + private Object phone; - @SerializedName("bb") - BB("bb"), + private PoliticalExposure politicalExposure; - @SerializedName("bd") - BD("bd"), + private Relationship relationship; - @SerializedName("be") - BE("be"), + private ScriptAddresses scriptAddresses; - @SerializedName("bf") - BF("bf"), + private ScriptNames scriptNames; - @SerializedName("bg") - BG("bg"), + private Object surname; - @SerializedName("bh") - BH("bh"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual build() { + return new AccountUpdateParams.Identity.Individual( + this.additionalAddresses, + this.additionalNames, + this.address, + this.dateOfBirth, + this.documents, + this.email, + this.extraParams, + this.givenName, + this.idNumbers, + this.legalGender, + this.metadata, + this.nationalities, + this.phone, + this.politicalExposure, + this.relationship, + this.scriptAddresses, + this.scriptNames, + this.surname); + } - @SerializedName("bi") - BI("bi"), + /** + * Add an element to `additionalAddresses` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountUpdateParams.Identity.Individual#additionalAddresses} for the field + * documentation. + */ + public Builder addAdditionalAddress( + AccountUpdateParams.Identity.Individual.AdditionalAddress element) { + if (this.additionalAddresses == null) { + this.additionalAddresses = new ArrayList<>(); + } + this.additionalAddresses.add(element); + return this; + } - @SerializedName("bj") - BJ("bj"), + /** + * Add all elements to `additionalAddresses` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountUpdateParams.Identity.Individual#additionalAddresses} for the field + * documentation. + */ + public Builder addAllAdditionalAddress( + List elements) { + if (this.additionalAddresses == null) { + this.additionalAddresses = new ArrayList<>(); + } + this.additionalAddresses.addAll(elements); + return this; + } - @SerializedName("bl") - BL("bl"), + /** + * Add an element to `additionalNames` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountUpdateParams.Identity.Individual#additionalNames} for the field + * documentation. + */ + public Builder addAdditionalName( + AccountUpdateParams.Identity.Individual.AdditionalName element) { + if (this.additionalNames == null) { + this.additionalNames = new ArrayList<>(); + } + this.additionalNames.add(element); + return this; + } - @SerializedName("bm") - BM("bm"), + /** + * Add all elements to `additionalNames` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountUpdateParams.Identity.Individual#additionalNames} for the field + * documentation. + */ + public Builder addAllAdditionalName( + List elements) { + if (this.additionalNames == null) { + this.additionalNames = new ArrayList<>(); + } + this.additionalNames.addAll(elements); + return this; + } - @SerializedName("bn") - BN("bn"), + /** The individual's residential address. */ + public Builder setAddress(AccountUpdateParams.Identity.Individual.Address address) { + this.address = address; + return this; + } - @SerializedName("bo") - BO("bo"), + /** The individual's date of birth. */ + public Builder setDateOfBirth( + AccountUpdateParams.Identity.Individual.DateOfBirth dateOfBirth) { + this.dateOfBirth = dateOfBirth; + return this; + } - @SerializedName("bq") - BQ("bq"), + /** Documents that may be submitted to satisfy various informational requests. */ + public Builder setDocuments(AccountUpdateParams.Identity.Individual.Documents documents) { + this.documents = documents; + return this; + } - @SerializedName("br") - BR("br"), + /** The individual's email address. */ + public Builder setEmail(String email) { + this.email = email; + return this; + } - @SerializedName("bs") - BS("bs"), + /** The individual's email address. */ + public Builder setEmail(EmptyParam email) { + this.email = email; + return this; + } - @SerializedName("bt") - BT("bt"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.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; + } - @SerializedName("bv") - BV("bv"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("bw") - BW("bw"), + /** The individual's first name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("by") - BY("by"), + /** The individual's first name. */ + public Builder setGivenName(EmptyParam givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("bz") - BZ("bz"), + /** + * Add an element to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountUpdateParams.Identity.Individual#idNumbers} for the field documentation. + */ + public Builder addIdNumber(AccountUpdateParams.Identity.Individual.IdNumber element) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.add(element); + return this; + } - @SerializedName("ca") - CA("ca"), + /** + * Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountUpdateParams.Identity.Individual#idNumbers} for the field documentation. + */ + public Builder addAllIdNumber( + List elements) { + if (this.idNumbers == null) { + this.idNumbers = new ArrayList<>(); + } + this.idNumbers.addAll(elements); + return this; + } - @SerializedName("cc") - CC("cc"), + /** + * The individual's gender (International regulations require either "male" or + * "female"). + */ + public Builder setLegalGender( + AccountUpdateParams.Identity.Individual.LegalGender legalGender) { + this.legalGender = legalGender; + return this; + } - @SerializedName("cd") - CD("cd"), + /** + * 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 + * AccountUpdateParams.Identity.Individual#metadata} for the field documentation. + */ + public Builder putMetadata(String key, String value) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, value); + return this; + } - @SerializedName("cf") - CF("cf"), + /** + * 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 + * AccountUpdateParams.Identity.Individual#metadata} for the field documentation. + */ + public Builder putMetadata(String key, EmptyParam value) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, value); + return this; + } - @SerializedName("cg") - CG("cg"), + /** + * 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. Map values can only be one of the following types: `String`, `EmptyParam`. See + * {@link AccountUpdateParams.Identity.Individual#metadata} for the field documentation. + */ + public Builder putAllMetadata(Map map) { + if (!map.values().stream() + .allMatch(v -> v instanceof String || v instanceof EmptyParam)) { + throw new IllegalArgumentException( + "All map values must one of the following types: String, EmptyParam"); + } + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.putAll(map); + return this; + } - @SerializedName("ch") - CH("ch"), + /** + * Add an element to `nationalities` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountUpdateParams.Identity.Individual#nationalities} for the field documentation. + */ + public Builder addNationality(String element) { + if (this.nationalities == null) { + this.nationalities = new ArrayList<>(); + } + this.nationalities.add(element); + return this; + } - @SerializedName("ci") - CI("ci"), + /** + * Add all elements to `nationalities` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountUpdateParams.Identity.Individual#nationalities} for the field + * documentation. + */ + public Builder addAllNationality(List elements) { + if (this.nationalities == null) { + this.nationalities = new ArrayList<>(); + } + this.nationalities.addAll(elements); + return this; + } - @SerializedName("ck") - CK("ck"), + /** The individual's phone number. */ + public Builder setPhone(String phone) { + this.phone = phone; + return this; + } - @SerializedName("cl") - CL("cl"), + /** The individual's phone number. */ + public Builder setPhone(EmptyParam phone) { + this.phone = phone; + return this; + } - @SerializedName("cm") - CM("cm"), + /** The individual's political exposure. */ + public Builder setPoliticalExposure( + AccountUpdateParams.Identity.Individual.PoliticalExposure politicalExposure) { + this.politicalExposure = politicalExposure; + return this; + } - @SerializedName("cn") - CN("cn"), + /** The relationship that this individual has with the account's identity. */ + public Builder setRelationship( + AccountUpdateParams.Identity.Individual.Relationship relationship) { + this.relationship = relationship; + return this; + } - @SerializedName("co") - CO("co"), + /** The script addresses (e.g., non-Latin characters) associated with the individual. */ + public Builder setScriptAddresses( + AccountUpdateParams.Identity.Individual.ScriptAddresses scriptAddresses) { + this.scriptAddresses = scriptAddresses; + return this; + } - @SerializedName("cr") - CR("cr"), + /** The individuals primary name in non latin script. */ + public Builder setScriptNames( + AccountUpdateParams.Identity.Individual.ScriptNames scriptNames) { + this.scriptNames = scriptNames; + return this; + } - @SerializedName("cu") - CU("cu"), + /** The individual's last name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } - @SerializedName("cv") - CV("cv"), + /** The individual's last name. */ + public Builder setSurname(EmptyParam surname) { + this.surname = surname; + return this; + } + } - @SerializedName("cw") - CW("cw"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalAddress { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; - @SerializedName("cx") - CX("cx"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; - @SerializedName("cy") - CY("cy"), + /** + * 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; - @SerializedName("cz") - CZ("cz"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; - @SerializedName("de") - DE("de"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; - @SerializedName("dj") - DJ("dj"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; - @SerializedName("dk") - DK("dk"), + /** Required. Purpose of additional address. */ + @SerializedName("purpose") + Purpose purpose; - @SerializedName("dm") - DM("dm"), + /** State, county, province, or region. */ + @SerializedName("state") + Object state; - @SerializedName("do") - DO("do"), + /** Town or cho-me. */ + @SerializedName("town") + Object town; - @SerializedName("dz") - DZ("dz"), + private AdditionalAddress( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Purpose purpose, + Object state, + Object town) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.purpose = purpose; + this.state = state; + this.town = town; + } - @SerializedName("ec") - EC("ec"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ee") - EE("ee"), + public static class Builder { + private Object city; - @SerializedName("eg") - EG("eg"), + private Object country; - @SerializedName("eh") - EH("eh"), + private Map extraParams; - @SerializedName("er") - ER("er"), + private Object line1; - @SerializedName("es") - ES("es"), + private Object line2; - @SerializedName("et") - ET("et"), + private Object postalCode; - @SerializedName("fi") - FI("fi"), + private Purpose purpose; - @SerializedName("fj") - FJ("fj"), + private Object state; - @SerializedName("fk") - FK("fk"), + private Object town; - @SerializedName("fm") - FM("fm"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.AdditionalAddress build() { + return new AccountUpdateParams.Identity.Individual.AdditionalAddress( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.purpose, + this.state, + this.town); + } - @SerializedName("fo") - FO("fo"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("fr") - FR("fr"), + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } - @SerializedName("ga") - GA("ga"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("gb") - GB("gb"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("gd") - GD("gd"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.AdditionalAddress#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; + } - @SerializedName("ge") - GE("ge"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.AdditionalAddress#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("gf") - GF("gf"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("gg") - GG("gg"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } - @SerializedName("gh") - GH("gh"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("gi") - GI("gi"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } - @SerializedName("gl") - GL("gl"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("gm") - GM("gm"), + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("gn") - GN("gn"), + /** Required. Purpose of additional address. */ + public Builder setPurpose( + AccountUpdateParams.Identity.Individual.AdditionalAddress.Purpose purpose) { + this.purpose = purpose; + return this; + } - @SerializedName("gp") - GP("gp"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("gq") - GQ("gq"), + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } - @SerializedName("gr") - GR("gr"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } - @SerializedName("gs") - GS("gs"), + /** Town or cho-me. */ + public Builder setTown(EmptyParam town) { + this.town = town; + return this; + } + } - @SerializedName("gt") - GT("gt"), + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("registered") + REGISTERED("registered"); - @SerializedName("gu") - GU("gu"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("gw") - GW("gw"), + Purpose(String value) { + this.value = value; + } + } + } - @SerializedName("gy") - GY("gy"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalName { + /** + * 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; - @SerializedName("hk") - HK("hk"), + /** The person's full name. */ + @SerializedName("full_name") + Object fullName; - @SerializedName("hm") - HM("hm"), + /** The person's first or given name. */ + @SerializedName("given_name") + Object givenName; - @SerializedName("hn") - HN("hn"), + /** Required. The purpose or type of the additional name. */ + @SerializedName("purpose") + Purpose purpose; - @SerializedName("hr") - HR("hr"), + /** The person's last or family name. */ + @SerializedName("surname") + Object surname; - @SerializedName("ht") - HT("ht"), + private AdditionalName( + Map extraParams, + Object fullName, + Object givenName, + Purpose purpose, + Object surname) { + this.extraParams = extraParams; + this.fullName = fullName; + this.givenName = givenName; + this.purpose = purpose; + this.surname = surname; + } - @SerializedName("hu") - HU("hu"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("id") - ID("id"), + public static class Builder { + private Map extraParams; - @SerializedName("ie") - IE("ie"), + private Object fullName; - @SerializedName("il") - IL("il"), + private Object givenName; - @SerializedName("im") - IM("im"), + private Purpose purpose; - @SerializedName("in") - IN("in"), + private Object surname; - @SerializedName("io") - IO("io"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.AdditionalName build() { + return new AccountUpdateParams.Identity.Individual.AdditionalName( + this.extraParams, this.fullName, this.givenName, this.purpose, this.surname); + } - @SerializedName("iq") - IQ("iq"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.AdditionalName#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; + } - @SerializedName("ir") - IR("ir"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.AdditionalName#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("is") - IS("is"), + /** The person's full name. */ + public Builder setFullName(String fullName) { + this.fullName = fullName; + return this; + } - @SerializedName("it") - IT("it"), + /** The person's full name. */ + public Builder setFullName(EmptyParam fullName) { + this.fullName = fullName; + return this; + } - @SerializedName("je") - JE("je"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("jm") - JM("jm"), + /** The person's first or given name. */ + public Builder setGivenName(EmptyParam givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("jo") - JO("jo"), + /** Required. The purpose or type of the additional name. */ + public Builder setPurpose( + AccountUpdateParams.Identity.Individual.AdditionalName.Purpose purpose) { + this.purpose = purpose; + return this; + } - @SerializedName("jp") - JP("jp"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } - @SerializedName("ke") - KE("ke"), + /** The person's last or family name. */ + public Builder setSurname(EmptyParam surname) { + this.surname = surname; + return this; + } + } - @SerializedName("kg") - KG("kg"), + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("alias") + ALIAS("alias"), - @SerializedName("kh") - KH("kh"), + @SerializedName("maiden") + MAIDEN("maiden"); - @SerializedName("ki") - KI("ki"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("km") - KM("km"), + Purpose(String value) { + this.value = value; + } + } + } - @SerializedName("kn") - KN("kn"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; - @SerializedName("kp") - KP("kp"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; - @SerializedName("kr") - KR("kr"), + /** + * 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; - @SerializedName("kw") - KW("kw"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; - @SerializedName("ky") - KY("ky"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; - @SerializedName("kz") - KZ("kz"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; - @SerializedName("la") - LA("la"), + /** State, county, province, or region. */ + @SerializedName("state") + Object state; - @SerializedName("lb") - LB("lb"), + /** Town or cho-me. */ + @SerializedName("town") + Object town; - @SerializedName("lc") - LC("lc"), + private Address( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state, + Object 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; + } - @SerializedName("li") - LI("li"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("lk") - LK("lk"), + public static class Builder { + private Object city; - @SerializedName("lr") - LR("lr"), + private Object country; - @SerializedName("ls") - LS("ls"), + private Map extraParams; - @SerializedName("lt") - LT("lt"), + private Object line1; - @SerializedName("lu") - LU("lu"), + private Object line2; - @SerializedName("lv") - LV("lv"), + private Object postalCode; - @SerializedName("ly") - LY("ly"), + private Object state; - @SerializedName("ma") - MA("ma"), + private Object town; - @SerializedName("mc") - MC("mc"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.Address build() { + return new AccountUpdateParams.Identity.Individual.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("md") - MD("md"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("me") - ME("me"), + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } - @SerializedName("mf") - MF("mf"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("mg") - MG("mg"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("mh") - MH("mh"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.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; + } - @SerializedName("mk") - MK("mk"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.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; + } - @SerializedName("ml") - ML("ml"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("mm") - MM("mm"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } - @SerializedName("mn") - MN("mn"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("mo") - MO("mo"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } - @SerializedName("mp") - MP("mp"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("mq") - MQ("mq"), + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("mr") - MR("mr"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("ms") - MS("ms"), + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } - @SerializedName("mt") - MT("mt"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } - @SerializedName("mu") - MU("mu"), + /** Town or cho-me. */ + public Builder setTown(EmptyParam town) { + this.town = town; + return this; + } + } + } - @SerializedName("mv") - MV("mv"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class DateOfBirth { + /** Required. The day of the birth. */ + @SerializedName("day") + Long day; - @SerializedName("mw") - MW("mw"), + /** + * 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; - @SerializedName("mx") - MX("mx"), + /** Required. The month of birth. */ + @SerializedName("month") + Long month; - @SerializedName("my") - MY("my"), + /** Required. The year of birth. */ + @SerializedName("year") + Long year; - @SerializedName("mz") - MZ("mz"), + private DateOfBirth(Long day, Map extraParams, Long month, Long year) { + this.day = day; + this.extraParams = extraParams; + this.month = month; + this.year = year; + } - @SerializedName("na") - NA("na"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("nc") - NC("nc"), + public static class Builder { + private Long day; - @SerializedName("ne") - NE("ne"), + private Map extraParams; - @SerializedName("nf") - NF("nf"), + private Long month; - @SerializedName("ng") - NG("ng"), + private Long year; - @SerializedName("ni") - NI("ni"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.DateOfBirth build() { + return new AccountUpdateParams.Identity.Individual.DateOfBirth( + this.day, this.extraParams, this.month, this.year); + } - @SerializedName("nl") - NL("nl"), + /** Required. The day of the birth. */ + public Builder setDay(Long day) { + this.day = day; + return this; + } - @SerializedName("no") - NO("no"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.DateOfBirth#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; + } - @SerializedName("np") - NP("np"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.DateOfBirth#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("nr") - NR("nr"), + /** Required. The month of birth. */ + public Builder setMonth(Long month) { + this.month = month; + return this; + } - @SerializedName("nu") - NU("nu"), + /** Required. The year of birth. */ + public Builder setYear(Long year) { + this.year = year; + return this; + } + } + } - @SerializedName("nz") - NZ("nz"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Documents { + /** + * One or more documents that demonstrate proof that this person is authorized to represent + * the company. + */ + @SerializedName("company_authorization") + CompanyAuthorization companyAuthorization; - @SerializedName("om") - OM("om"), + /** + * 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; - @SerializedName("pa") - PA("pa"), + /** + * One or more documents showing the person’s passport page with photo and personal data. + */ + @SerializedName("passport") + Passport passport; - @SerializedName("pe") - PE("pe"), + /** + * An identifying document showing the person's name, either a passport or local ID card. + */ + @SerializedName("primary_verification") + PrimaryVerification primaryVerification; - @SerializedName("pf") - PF("pf"), + /** + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. + */ + @SerializedName("secondary_verification") + SecondaryVerification secondaryVerification; - @SerializedName("pg") - PG("pg"), + /** + * One or more documents showing the person’s visa required for living in the country where + * they are residing. + */ + @SerializedName("visa") + Visa visa; - @SerializedName("ph") - PH("ph"), + private Documents( + CompanyAuthorization companyAuthorization, + Map extraParams, + Passport passport, + PrimaryVerification primaryVerification, + SecondaryVerification secondaryVerification, + Visa visa) { + this.companyAuthorization = companyAuthorization; + this.extraParams = extraParams; + this.passport = passport; + this.primaryVerification = primaryVerification; + this.secondaryVerification = secondaryVerification; + this.visa = visa; + } - @SerializedName("pk") - PK("pk"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("pl") - PL("pl"), + public static class Builder { + private CompanyAuthorization companyAuthorization; - @SerializedName("pm") - PM("pm"), + private Map extraParams; - @SerializedName("pn") - PN("pn"), + private Passport passport; - @SerializedName("pr") - PR("pr"), + private PrimaryVerification primaryVerification; - @SerializedName("ps") - PS("ps"), + private SecondaryVerification secondaryVerification; - @SerializedName("pt") - PT("pt"), + private Visa visa; - @SerializedName("pw") - PW("pw"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.Documents build() { + return new AccountUpdateParams.Identity.Individual.Documents( + this.companyAuthorization, + this.extraParams, + this.passport, + this.primaryVerification, + this.secondaryVerification, + this.visa); + } - @SerializedName("py") - PY("py"), + /** + * One or more documents that demonstrate proof that this person is authorized to + * represent the company. + */ + public Builder setCompanyAuthorization( + AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization + companyAuthorization) { + this.companyAuthorization = companyAuthorization; + return this; + } - @SerializedName("qa") - QA("qa"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.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; + } - @SerializedName("qz") - QZ("qz"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.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; + } - @SerializedName("re") - RE("re"), + /** + * One or more documents showing the person’s passport page with photo and personal data. + */ + public Builder setPassport( + AccountUpdateParams.Identity.Individual.Documents.Passport passport) { + this.passport = passport; + return this; + } - @SerializedName("ro") - RO("ro"), + /** + * An identifying document showing the person's name, either a passport or local ID card. + */ + public Builder setPrimaryVerification( + AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification + primaryVerification) { + this.primaryVerification = primaryVerification; + return this; + } - @SerializedName("rs") - RS("rs"), + /** + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. + */ + public Builder setSecondaryVerification( + AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification + secondaryVerification) { + this.secondaryVerification = secondaryVerification; + return this; + } - @SerializedName("ru") - RU("ru"), + /** + * One or more documents showing the person’s visa required for living in the country + * where they are residing. + */ + public Builder setVisa(AccountUpdateParams.Identity.Individual.Documents.Visa visa) { + this.visa = visa; + return this; + } + } - @SerializedName("rw") - RW("rw"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CompanyAuthorization { + /** + * 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; - @SerializedName("sa") - SA("sa"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("sb") - SB("sb"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("sc") - SC("sc"), + private CompanyAuthorization( + Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("sd") - SD("sd"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("se") - SE("se"), + public static class Builder { + private Map extraParams; - @SerializedName("sg") - SG("sg"), + private List files; - @SerializedName("sh") - SH("sh"), + private Type type; - @SerializedName("si") - SI("si"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization build() { + return new AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization( + this.extraParams, this.files, this.type); + } - @SerializedName("sj") - SJ("sj"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization#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; + } - @SerializedName("sk") - SK("sk"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sl") - SL("sl"), + /** + * 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 + * AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization#files} for the + * field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("sm") - SM("sm"), + /** + * 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 + * AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization#files} for the + * field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("sn") - SN("sn"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountUpdateParams.Identity.Individual.Documents.CompanyAuthorization.Type type) { + this.type = type; + return this; + } + } - @SerializedName("so") - SO("so"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("sr") - SR("sr"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("ss") - SS("ss"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("st") - ST("st"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Passport { + /** + * 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; - @SerializedName("sv") - SV("sv"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("sx") - SX("sx"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("sy") - SY("sy"), + private Passport(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("sz") - SZ("sz"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("tc") - TC("tc"), + public static class Builder { + private Map extraParams; - @SerializedName("td") - TD("td"), + private List files; - @SerializedName("tf") - TF("tf"), + private Type type; - @SerializedName("tg") - TG("tg"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.Documents.Passport build() { + return new AccountUpdateParams.Identity.Individual.Documents.Passport( + this.extraParams, this.files, this.type); + } - @SerializedName("th") - TH("th"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.Passport#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; + } - @SerializedName("tj") - TJ("tj"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.Passport#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("tk") - TK("tk"), + /** + * 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 + * AccountUpdateParams.Identity.Individual.Documents.Passport#files} for the field + * documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("tl") - TL("tl"), + /** + * 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 + * AccountUpdateParams.Identity.Individual.Documents.Passport#files} for the field + * documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("tm") - TM("tm"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountUpdateParams.Identity.Individual.Documents.Passport.Type type) { + this.type = type; + return this; + } + } - @SerializedName("tn") - TN("tn"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("to") - TO("to"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("tr") - TR("tr"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("tt") - TT("tt"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PrimaryVerification { + /** + * 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; - @SerializedName("tv") - TV("tv"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; - @SerializedName("tw") - TW("tw"), + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; - @SerializedName("tz") - TZ("tz"), + private PrimaryVerification( + Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } - @SerializedName("ua") - UA("ua"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ug") - UG("ug"), + public static class Builder { + private Map extraParams; - @SerializedName("um") - UM("um"), + private FrontBack frontBack; - @SerializedName("us") - US("us"), + private Type type; - @SerializedName("uy") - UY("uy"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification build() { + return new AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification( + this.extraParams, this.frontBack, this.type); + } - @SerializedName("uz") - UZ("uz"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification#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; + } - @SerializedName("va") - VA("va"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("vc") - VC("vc"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack + frontBack) { + this.frontBack = frontBack; + return this; + } - @SerializedName("ve") - VE("ve"), + /** + * Required. The format of the verification document. Currently + * supports {@code front_back} only. + */ + public Builder setType( + AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification.Type type) { + this.type = type; + return this; + } + } - @SerializedName("vg") - VG("vg"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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") + Object back; - @SerializedName("vi") - VI("vi"), + /** + * 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; - @SerializedName("vn") - VN("vn"), + /** + * A file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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") + Object front; - @SerializedName("vu") - VU("vu"), + private FrontBack(Object back, Map extraParams, Object front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } - @SerializedName("wf") - WF("wf"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ws") - WS("ws"), + public static class Builder { + private Object back; - @SerializedName("xx") - XX("xx"), + private Map extraParams; - @SerializedName("ye") - YE("ye"), + private Object front; - @SerializedName("yt") - YT("yt"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack + build() { + return new AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification + .FrontBack(this.back, this.extraParams, this.front); + } - @SerializedName("za") - ZA("za"), + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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; + } - @SerializedName("zm") - ZM("zm"), + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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(EmptyParam back) { + this.back = back; + return this; + } - @SerializedName("zw") - ZW("zw"); + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack#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; + } - @Getter(onMethod_ = {@Override}) - private final String value; + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - Nationality(String value) { - this.value = value; - } - } + /** + * A file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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 setFront(String front) { + this.front = front; + return this; + } - public enum PoliticalExposure implements ApiRequestParams.EnumParam { - @SerializedName("existing") - EXISTING("existing"), + /** + * A file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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 setFront(EmptyParam front) { + this.front = front; + return this; + } + } + } - @SerializedName("none") - NONE("none"); + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); - @Getter(onMethod_ = {@Override}) - private final String value; + @Getter(onMethod_ = {@Override}) + private final String value; - PoliticalExposure(String value) { - this.value = value; + Type(String value) { + this.value = value; + } + } } - } - } - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class SecondaryVerification { + /** + * 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; - @SerializedName("ae") - AE("ae"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; - @SerializedName("af") - AF("af"), + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; - @SerializedName("ag") - AG("ag"), + private SecondaryVerification( + Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } - @SerializedName("ai") - AI("ai"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("al") - AL("al"), + public static class Builder { + private Map extraParams; - @SerializedName("am") - AM("am"), + private FrontBack frontBack; - @SerializedName("ao") - AO("ao"), + private Type type; - @SerializedName("aq") - AQ("aq"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification build() { + return new AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification( + this.extraParams, this.frontBack, this.type); + } - @SerializedName("ar") - AR("ar"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification#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; + } - @SerializedName("as") - AS("as"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("at") - AT("at"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack + frontBack) { + this.frontBack = frontBack; + return this; + } - @SerializedName("au") - AU("au"), + /** + * Required. The format of the verification document. Currently + * supports {@code front_back} only. + */ + public Builder setType( + AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification.Type type) { + this.type = type; + return this; + } + } - @SerializedName("aw") - AW("aw"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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") + Object back; - @SerializedName("ax") - AX("ax"), + /** + * 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; - @SerializedName("az") - AZ("az"), + /** + * A file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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") + Object front; - @SerializedName("ba") - BA("ba"), + private FrontBack(Object back, Map extraParams, Object front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; + } - @SerializedName("bb") - BB("bb"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("bd") - BD("bd"), + public static class Builder { + private Object back; - @SerializedName("be") - BE("be"), + private Map extraParams; - @SerializedName("bf") - BF("bf"), + private Object front; - @SerializedName("bg") - BG("bg"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification + .FrontBack + build() { + return new AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification + .FrontBack(this.back, this.extraParams, this.front); + } - @SerializedName("bh") - BH("bh"), + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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; + } - @SerializedName("bi") - BI("bi"), + /** + * A file upload + * token representing the back of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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(EmptyParam back) { + this.back = back; + return this; + } - @SerializedName("bj") - BJ("bj"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack#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; + } - @SerializedName("bl") - BL("bl"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the + * first `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("bm") - BM("bm"), + /** + * A file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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 setFront(String front) { + this.front = front; + return this; + } - @SerializedName("bn") - BN("bn"), + /** + * A file upload + * token representing the front of the verification document. The purpose of the + * uploaded file should be 'identity_document'. 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 setFront(EmptyParam front) { + this.front = front; + return this; + } + } + } - @SerializedName("bo") - BO("bo"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); - @SerializedName("bq") - BQ("bq"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("br") - BR("br"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("bs") - BS("bs"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Visa { + /** + * 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; - @SerializedName("bt") - BT("bt"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("bv") - BV("bv"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("bw") - BW("bw"), + private Visa(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("by") - BY("by"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("bz") - BZ("bz"), + public static class Builder { + private Map extraParams; - @SerializedName("ca") - CA("ca"), + private List files; - @SerializedName("cc") - CC("cc"), + private Type type; - @SerializedName("cd") - CD("cd"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.Documents.Visa build() { + return new AccountUpdateParams.Identity.Individual.Documents.Visa( + this.extraParams, this.files, this.type); + } - @SerializedName("cf") - CF("cf"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.Visa#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; + } - @SerializedName("cg") - CG("cg"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.Documents.Visa#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ch") - CH("ch"), + /** + * 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 + * AccountUpdateParams.Identity.Individual.Documents.Visa#files} for the field + * documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("ci") - CI("ci"), + /** + * 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 + * AccountUpdateParams.Identity.Individual.Documents.Visa#files} for the field + * documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("ck") - CK("ck"), + /** + * Required. The format of the document. Currently supports {@code + * files} only. + */ + public Builder setType( + AccountUpdateParams.Identity.Individual.Documents.Visa.Type type) { + this.type = type; + return this; + } + } - @SerializedName("cl") - CL("cl"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("cm") - CM("cm"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("cn") - CN("cn"), + Type(String value) { + this.value = value; + } + } + } + } - @SerializedName("co") - CO("co"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class IdNumber { + /** + * 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; - @SerializedName("cr") - CR("cr"), + /** Required. The ID number type of an individual. */ + @SerializedName("type") + Type type; - @SerializedName("cu") - CU("cu"), + /** Required. The value of the ID number. */ + @SerializedName("value") + Object value; - @SerializedName("cv") - CV("cv"), + private IdNumber(Map extraParams, Type type, Object value) { + this.extraParams = extraParams; + this.type = type; + this.value = value; + } - @SerializedName("cw") - CW("cw"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("cx") - CX("cx"), + public static class Builder { + private Map extraParams; - @SerializedName("cy") - CY("cy"), + private Type type; - @SerializedName("cz") - CZ("cz"), + private Object value; - @SerializedName("de") - DE("de"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.IdNumber build() { + return new AccountUpdateParams.Identity.Individual.IdNumber( + this.extraParams, this.type, this.value); + } - @SerializedName("dj") - DJ("dj"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.IdNumber#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; + } - @SerializedName("dk") - DK("dk"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.IdNumber#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("dm") - DM("dm"), + /** Required. The ID number type of an individual. */ + public Builder setType(AccountUpdateParams.Identity.Individual.IdNumber.Type type) { + this.type = type; + return this; + } - @SerializedName("do") - DO("do"), + /** Required. The value of the ID number. */ + public Builder setValue(String value) { + this.value = value; + return this; + } - @SerializedName("dz") - DZ("dz"), + /** Required. The value of the ID number. */ + public Builder setValue(EmptyParam value) { + this.value = value; + return this; + } + } - @SerializedName("ec") - EC("ec"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ae_eid") + AE_EID("ae_eid"), - @SerializedName("ee") - EE("ee"), + @SerializedName("ao_nif") + AO_NIF("ao_nif"), - @SerializedName("eg") - EG("eg"), + @SerializedName("az_tin") + AZ_TIN("az_tin"), - @SerializedName("eh") - EH("eh"), + @SerializedName("bd_brc") + BD_BRC("bd_brc"), - @SerializedName("er") - ER("er"), + @SerializedName("bd_etin") + BD_ETIN("bd_etin"), - @SerializedName("es") - ES("es"), + @SerializedName("bd_nid") + BD_NID("bd_nid"), - @SerializedName("et") - ET("et"), + @SerializedName("br_cpf") + BR_CPF("br_cpf"), - @SerializedName("fi") - FI("fi"), + @SerializedName("cr_cpf") + CR_CPF("cr_cpf"), - @SerializedName("fj") - FJ("fj"), + @SerializedName("cr_dimex") + CR_DIMEX("cr_dimex"), - @SerializedName("fk") - FK("fk"), + @SerializedName("cr_nite") + CR_NITE("cr_nite"), - @SerializedName("fm") - FM("fm"), + @SerializedName("de_stn") + DE_STN("de_stn"), - @SerializedName("fo") - FO("fo"), + @SerializedName("do_rcn") + DO_RCN("do_rcn"), - @SerializedName("fr") - FR("fr"), + @SerializedName("gt_nit") + GT_NIT("gt_nit"), - @SerializedName("ga") - GA("ga"), + @SerializedName("hk_id") + HK_ID("hk_id"), - @SerializedName("gb") - GB("gb"), + @SerializedName("kz_iin") + KZ_IIN("kz_iin"), - @SerializedName("gd") - GD("gd"), + @SerializedName("mx_rfc") + MX_RFC("mx_rfc"), - @SerializedName("ge") - GE("ge"), + @SerializedName("my_nric") + MY_NRIC("my_nric"), - @SerializedName("gf") - GF("gf"), + @SerializedName("mz_nuit") + MZ_NUIT("mz_nuit"), - @SerializedName("gg") - GG("gg"), + @SerializedName("nl_bsn") + NL_BSN("nl_bsn"), - @SerializedName("gh") - GH("gh"), + @SerializedName("pe_dni") + PE_DNI("pe_dni"), - @SerializedName("gi") - GI("gi"), + @SerializedName("pk_cnic") + PK_CNIC("pk_cnic"), - @SerializedName("gl") - GL("gl"), + @SerializedName("pk_snic") + PK_SNIC("pk_snic"), - @SerializedName("gm") - GM("gm"), + @SerializedName("sa_tin") + SA_TIN("sa_tin"), - @SerializedName("gn") - GN("gn"), + @SerializedName("sg_fin") + SG_FIN("sg_fin"), - @SerializedName("gp") - GP("gp"), + @SerializedName("sg_nric") + SG_NRIC("sg_nric"), - @SerializedName("gq") - GQ("gq"), + @SerializedName("th_lc") + TH_LC("th_lc"), - @SerializedName("gr") - GR("gr"), + @SerializedName("th_pin") + TH_PIN("th_pin"), - @SerializedName("gs") - GS("gs"), + @SerializedName("us_itin") + US_ITIN("us_itin"), - @SerializedName("gt") - GT("gt"), + @SerializedName("us_itin_last_4") + US_ITIN_LAST_4("us_itin_last_4"), - @SerializedName("gu") - GU("gu"), + @SerializedName("us_ssn") + US_SSN("us_ssn"), - @SerializedName("gw") - GW("gw"), + @SerializedName("us_ssn_last_4") + US_SSN_LAST_4("us_ssn_last_4"); - @SerializedName("gy") - GY("gy"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("hk") - HK("hk"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("hm") - HM("hm"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Relationship { + /** + * Whether the person is a director of the account's identity. Directors are typically + * members of the governing board of the company, or responsible for ensuring the company + * meets its regulatory obligations. + */ + @SerializedName("director") + Boolean director; - @SerializedName("hn") - HN("hn"), + /** + * Whether the person has significant responsibility to control, manage, or direct the + * organization. + */ + @SerializedName("executive") + Boolean executive; - @SerializedName("hr") - HR("hr"), + /** + * 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; - @SerializedName("ht") - HT("ht"), + /** Whether the person is an owner of the account’s identity. */ + @SerializedName("owner") + Boolean owner; - @SerializedName("hu") - HU("hu"), + /** The percent owned by the person of the account's legal entity. */ + @SerializedName("percent_ownership") + Object percentOwnership; - @SerializedName("id") - ID("id"), + /** The person's title (e.g., CEO, Support Engineer). */ + @SerializedName("title") + Object title; - @SerializedName("ie") - IE("ie"), + private Relationship( + Boolean director, + Boolean executive, + Map extraParams, + Boolean owner, + Object percentOwnership, + Object title) { + this.director = director; + this.executive = executive; + this.extraParams = extraParams; + this.owner = owner; + this.percentOwnership = percentOwnership; + this.title = title; + } - @SerializedName("il") - IL("il"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("im") - IM("im"), + public static class Builder { + private Boolean director; - @SerializedName("in") - IN("in"), + private Boolean executive; - @SerializedName("io") - IO("io"), + private Map extraParams; - @SerializedName("iq") - IQ("iq"), + private Boolean owner; - @SerializedName("ir") - IR("ir"), + private Object percentOwnership; - @SerializedName("is") - IS("is"), + private Object title; - @SerializedName("it") - IT("it"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.Relationship build() { + return new AccountUpdateParams.Identity.Individual.Relationship( + this.director, + this.executive, + this.extraParams, + this.owner, + this.percentOwnership, + this.title); + } - @SerializedName("je") - JE("je"), + /** + * Whether the person is a director of the account's identity. Directors are typically + * members of the governing board of the company, or responsible for ensuring the company + * meets its regulatory obligations. + */ + public Builder setDirector(Boolean director) { + this.director = director; + return this; + } - @SerializedName("jm") - JM("jm"), + /** + * Whether the person has significant responsibility to control, manage, or direct the + * organization. + */ + public Builder setExecutive(Boolean executive) { + this.executive = executive; + return this; + } - @SerializedName("jo") - JO("jo"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.Relationship#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; + } - @SerializedName("jp") - JP("jp"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.Relationship#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ke") - KE("ke"), + /** Whether the person is an owner of the account’s identity. */ + public Builder setOwner(Boolean owner) { + this.owner = owner; + return this; + } - @SerializedName("kg") - KG("kg"), + /** The percent owned by the person of the account's legal entity. */ + public Builder setPercentOwnership(BigDecimal percentOwnership) { + this.percentOwnership = percentOwnership; + return this; + } - @SerializedName("kh") - KH("kh"), + /** The percent owned by the person of the account's legal entity. */ + public Builder setPercentOwnership(EmptyParam percentOwnership) { + this.percentOwnership = percentOwnership; + return this; + } - @SerializedName("ki") - KI("ki"), + /** The person's title (e.g., CEO, Support Engineer). */ + public Builder setTitle(String title) { + this.title = title; + return this; + } - @SerializedName("km") - KM("km"), + /** The person's title (e.g., CEO, Support Engineer). */ + public Builder setTitle(EmptyParam title) { + this.title = title; + return this; + } + } + } - @SerializedName("kn") - KN("kn"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptAddresses { + /** + * 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; - @SerializedName("kp") - KP("kp"), + /** Kana Address. */ + @SerializedName("kana") + Kana kana; - @SerializedName("kr") - KR("kr"), + /** Kanji Address. */ + @SerializedName("kanji") + Kanji kanji; - @SerializedName("kw") - KW("kw"), + private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } - @SerializedName("ky") - KY("ky"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("kz") - KZ("kz"), + public static class Builder { + private Map extraParams; - @SerializedName("la") - LA("la"), + private Kana kana; - @SerializedName("lb") - LB("lb"), + private Kanji kanji; - @SerializedName("lc") - LC("lc"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.ScriptAddresses build() { + return new AccountUpdateParams.Identity.Individual.ScriptAddresses( + this.extraParams, this.kana, this.kanji); + } - @SerializedName("li") - LI("li"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.ScriptAddresses#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; + } - @SerializedName("lk") - LK("lk"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.ScriptAddresses#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("lr") - LR("lr"), + /** Kana Address. */ + public Builder setKana( + AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana kana) { + this.kana = kana; + return this; + } - @SerializedName("ls") - LS("ls"), + /** Kanji Address. */ + public Builder setKanji( + AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji kanji) { + this.kanji = kanji; + return this; + } + } - @SerializedName("lt") - LT("lt"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; - @SerializedName("lu") - LU("lu"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; - @SerializedName("lv") - LV("lv"), + /** + * 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; - @SerializedName("ly") - LY("ly"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; - @SerializedName("ma") - MA("ma"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; - @SerializedName("mc") - MC("mc"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; - @SerializedName("md") - MD("md"), + /** State, county, province, or region. */ + @SerializedName("state") + Object state; - @SerializedName("me") - ME("me"), + /** Town or cho-me. */ + @SerializedName("town") + Object town; - @SerializedName("mf") - MF("mf"), + private Kana( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state, + Object 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; + } - @SerializedName("mg") - MG("mg"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("mh") - MH("mh"), + public static class Builder { + private Object city; - @SerializedName("mk") - MK("mk"), + private Object country; - @SerializedName("ml") - ML("ml"), + private Map extraParams; - @SerializedName("mm") - MM("mm"), + private Object line1; - @SerializedName("mn") - MN("mn"), + private Object line2; - @SerializedName("mo") - MO("mo"), + private Object postalCode; - @SerializedName("mp") - MP("mp"), + private Object state; - @SerializedName("mq") - MQ("mq"), + private Object town; - @SerializedName("mr") - MR("mr"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana build() { + return new AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("ms") - MS("ms"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("mt") - MT("mt"), + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } - @SerializedName("mu") - MU("mu"), + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("mv") - MV("mv"), + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("mw") - MW("mw"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana#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; + } - @SerializedName("mx") - MX("mx"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.ScriptAddresses.Kana#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("my") - MY("my"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("mz") - MZ("mz"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } - @SerializedName("na") - NA("na"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("nc") - NC("nc"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } - @SerializedName("ne") - NE("ne"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("nf") - NF("nf"), + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("ng") - NG("ng"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("ni") - NI("ni"), + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } - @SerializedName("nl") - NL("nl"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } - @SerializedName("no") - NO("no"), + /** Town or cho-me. */ + public Builder setTown(EmptyParam town) { + this.town = town; + return this; + } + } + } - @SerializedName("np") - NP("np"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; - @SerializedName("nr") - NR("nr"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; - @SerializedName("nu") - NU("nu"), + /** + * 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; - @SerializedName("nz") - NZ("nz"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; - @SerializedName("om") - OM("om"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; - @SerializedName("pa") - PA("pa"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; - @SerializedName("pe") - PE("pe"), + /** State, county, province, or region. */ + @SerializedName("state") + Object state; - @SerializedName("pf") - PF("pf"), + /** Town or cho-me. */ + @SerializedName("town") + Object town; - @SerializedName("pg") - PG("pg"), + private Kanji( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state, + Object 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; + } - @SerializedName("ph") - PH("ph"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("pk") - PK("pk"), + public static class Builder { + private Object city; - @SerializedName("pl") - PL("pl"), + private Object country; - @SerializedName("pm") - PM("pm"), + private Map extraParams; - @SerializedName("pn") - PN("pn"), + private Object line1; - @SerializedName("pr") - PR("pr"), + private Object line2; - @SerializedName("ps") - PS("ps"), + private Object postalCode; - @SerializedName("pt") - PT("pt"), + private Object state; - @SerializedName("pw") - PW("pw"), + private Object town; - @SerializedName("py") - PY("py"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji build() { + return new AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("qa") - QA("qa"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("qz") - QZ("qz"), + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } - @SerializedName("re") - RE("re"), + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("ro") - RO("ro"), + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("rs") - RS("rs"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji#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; + } - @SerializedName("ru") - RU("ru"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.ScriptAddresses.Kanji#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("rw") - RW("rw"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("sa") - SA("sa"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } - @SerializedName("sb") - SB("sb"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("sc") - SC("sc"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } - @SerializedName("sd") - SD("sd"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("se") - SE("se"), + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("sg") - SG("sg"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("sh") - SH("sh"), + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } - @SerializedName("si") - SI("si"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } - @SerializedName("sj") - SJ("sj"), + /** Town or cho-me. */ + public Builder setTown(EmptyParam town) { + this.town = town; + return this; + } + } + } + } - @SerializedName("sk") - SK("sk"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptNames { + /** + * 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; - @SerializedName("sl") - SL("sl"), + /** Persons name in kana script. */ + @SerializedName("kana") + Kana kana; - @SerializedName("sm") - SM("sm"), + /** Persons name in kanji script. */ + @SerializedName("kanji") + Kanji kanji; - @SerializedName("sn") - SN("sn"), + private ScriptNames(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } - @SerializedName("so") - SO("so"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("sr") - SR("sr"), + public static class Builder { + private Map extraParams; - @SerializedName("ss") - SS("ss"), + private Kana kana; - @SerializedName("st") - ST("st"), + private Kanji kanji; - @SerializedName("sv") - SV("sv"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.ScriptNames build() { + return new AccountUpdateParams.Identity.Individual.ScriptNames( + this.extraParams, this.kana, this.kanji); + } - @SerializedName("sx") - SX("sx"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.ScriptNames#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; + } - @SerializedName("sy") - SY("sy"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Identity.Individual.ScriptNames#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sz") - SZ("sz"), + /** Persons name in kana script. */ + public Builder setKana(AccountUpdateParams.Identity.Individual.ScriptNames.Kana kana) { + this.kana = kana; + return this; + } - @SerializedName("tc") - TC("tc"), + /** Persons name in kanji script. */ + public Builder setKanji(AccountUpdateParams.Identity.Individual.ScriptNames.Kanji kanji) { + this.kanji = kanji; + return this; + } + } - @SerializedName("td") - TD("td"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** + * 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; - @SerializedName("tf") - TF("tf"), + /** The person's first or given name. */ + @SerializedName("given_name") + Object givenName; - @SerializedName("tg") - TG("tg"), + /** The person's last or family name. */ + @SerializedName("surname") + Object surname; - @SerializedName("th") - TH("th"), + private Kana(Map extraParams, Object givenName, Object surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } - @SerializedName("tj") - TJ("tj"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("tk") - TK("tk"), + public static class Builder { + private Map extraParams; - @SerializedName("tl") - TL("tl"), + private Object givenName; - @SerializedName("tm") - TM("tm"), + private Object surname; - @SerializedName("tn") - TN("tn"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.ScriptNames.Kana build() { + return new AccountUpdateParams.Identity.Individual.ScriptNames.Kana( + this.extraParams, this.givenName, this.surname); + } - @SerializedName("to") - TO("to"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.ScriptNames.Kana#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; + } - @SerializedName("tr") - TR("tr"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.ScriptNames.Kana#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("tt") - TT("tt"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("tv") - TV("tv"), + /** The person's first or given name. */ + public Builder setGivenName(EmptyParam givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("tw") - TW("tw"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } - @SerializedName("tz") - TZ("tz"), + /** The person's last or family name. */ + public Builder setSurname(EmptyParam surname) { + this.surname = surname; + return this; + } + } + } - @SerializedName("ua") - UA("ua"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** + * 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; - @SerializedName("ug") - UG("ug"), + /** The person's first or given name. */ + @SerializedName("given_name") + Object givenName; - @SerializedName("um") - UM("um"), + /** The person's last or family name. */ + @SerializedName("surname") + Object surname; - @SerializedName("us") - US("us"), + private Kanji(Map extraParams, Object givenName, Object surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } - @SerializedName("uy") - UY("uy"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("uz") - UZ("uz"), + public static class Builder { + private Map extraParams; - @SerializedName("va") - VA("va"), + private Object givenName; - @SerializedName("vc") - VC("vc"), + private Object surname; - @SerializedName("ve") - VE("ve"), + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Identity.Individual.ScriptNames.Kanji build() { + return new AccountUpdateParams.Identity.Individual.ScriptNames.Kanji( + this.extraParams, this.givenName, this.surname); + } - @SerializedName("vg") - VG("vg"), + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.ScriptNames.Kanji#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; + } - @SerializedName("vi") - VI("vi"), + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * AccountUpdateParams.Identity.Individual.ScriptNames.Kanji#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("vn") - VN("vn"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("vu") - VU("vu"), + /** The person's first or given name. */ + public Builder setGivenName(EmptyParam givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("wf") - WF("wf"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } - @SerializedName("ws") - WS("ws"), + /** The person's last or family name. */ + public Builder setSurname(EmptyParam surname) { + this.surname = surname; + return this; + } + } + } + } - @SerializedName("xx") - XX("xx"), + public enum LegalGender implements ApiRequestParams.EnumParam { + @SerializedName("female") + FEMALE("female"), - @SerializedName("ye") - YE("ye"), + @SerializedName("male") + MALE("male"); - @SerializedName("yt") - YT("yt"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("za") - ZA("za"), + LegalGender(String value) { + this.value = value; + } + } - @SerializedName("zm") - ZM("zm"), + public enum PoliticalExposure implements ApiRequestParams.EnumParam { + @SerializedName("existing") + EXISTING("existing"), - @SerializedName("zw") - ZW("zw"); + @SerializedName("none") + NONE("none"); - @Getter(onMethod_ = {@Override}) - private final String value; + @Getter(onMethod_ = {@Override}) + private final String value; - Country(String value) { - this.value = value; + PoliticalExposure(String value) { + this.value = value; + } } } diff --git a/src/main/java/com/stripe/param/v2/core/ClaimableSandboxCreateParams.java b/src/main/java/com/stripe/param/v2/core/ClaimableSandboxCreateParams.java index 5b89895056d..d84d301f4c4 100644 --- a/src/main/java/com/stripe/param/v2/core/ClaimableSandboxCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/ClaimableSandboxCreateParams.java @@ -105,7 +105,7 @@ public static class Prefill { * href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2). */ @SerializedName("country") - Country country; + String country; /** * Required. Email that this sandbox is meant to be claimed by. Stripe will @@ -127,7 +127,7 @@ public static class Prefill { @SerializedName("name") String name; - private Prefill(Country country, String email, Map extraParams, String name) { + private Prefill(String country, String email, Map extraParams, String name) { this.country = country; this.email = email; this.extraParams = extraParams; @@ -139,7 +139,7 @@ public static Builder builder() { } public static class Builder { - private Country country; + private String country; private String email; @@ -158,7 +158,7 @@ public ClaimableSandboxCreateParams.Prefill build() { * business is legally established. Use two-letter country code (ISO 3166-1 alpha-2). */ - public Builder setCountry(ClaimableSandboxCreateParams.Prefill.Country country) { + public Builder setCountry(String country) { this.country = country; return this; } @@ -204,767 +204,5 @@ public Builder setName(String name) { return this; } } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } } } diff --git a/src/main/java/com/stripe/param/v2/core/EventDestinationListParams.java b/src/main/java/com/stripe/param/v2/core/EventDestinationListParams.java index 1c36684abab..c13bf0cf2ff 100644 --- a/src/main/java/com/stripe/param/v2/core/EventDestinationListParams.java +++ b/src/main/java/com/stripe/param/v2/core/EventDestinationListParams.java @@ -30,12 +30,12 @@ public class EventDestinationListParams extends ApiRequestParams { /** The page size. */ @SerializedName("limit") - Integer limit; + Long limit; private EventDestinationListParams( Map extraParams, List include, - Integer limit) { + Long limit) { this.extraParams = extraParams; this.include = include; this.limit = limit; @@ -50,7 +50,7 @@ public static class Builder { private List include; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public EventDestinationListParams build() { @@ -110,7 +110,7 @@ public Builder addAllInclude(List elements) } /** The page size. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/core/EventListParams.java b/src/main/java/com/stripe/param/v2/core/EventListParams.java index 735cb6c2b09..b80d95056b9 100644 --- a/src/main/java/com/stripe/param/v2/core/EventListParams.java +++ b/src/main/java/com/stripe/param/v2/core/EventListParams.java @@ -22,13 +22,13 @@ public class EventListParams extends ApiRequestParams { /** The page size. */ @SerializedName("limit") - Integer limit; + Long limit; /** Required. Primary object ID used to retrieve related events. */ @SerializedName("object_id") String objectId; - private EventListParams(Map extraParams, Integer limit, String objectId) { + private EventListParams(Map extraParams, Long limit, String objectId) { this.extraParams = extraParams; this.limit = limit; this.objectId = objectId; @@ -41,7 +41,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private String objectId; @@ -77,7 +77,7 @@ public Builder putAllExtraParam(Map map) { } /** The page size. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/core/accounts/PersonCreateParams.java b/src/main/java/com/stripe/param/v2/core/accounts/PersonCreateParams.java index 1bec9e519f3..3dbdff2d833 100644 --- a/src/main/java/com/stripe/param/v2/core/accounts/PersonCreateParams.java +++ b/src/main/java/com/stripe/param/v2/core/accounts/PersonCreateParams.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; +import java.math.BigDecimal; import java.time.Instant; import java.util.ArrayList; import java.util.HashMap; @@ -75,7 +76,7 @@ public class PersonCreateParams extends ApiRequestParams { /** The nationalities (countries) this person is associated with. */ @SerializedName("nationalities") - List nationalities; + List nationalities; /** The phone number for this person. */ @SerializedName("phone") @@ -114,7 +115,7 @@ private PersonCreateParams( List idNumbers, LegalGender legalGender, Map metadata, - List nationalities, + List nationalities, String phone, PoliticalExposure politicalExposure, Relationship relationship, @@ -171,7 +172,7 @@ public static class Builder { private Map metadata; - private List nationalities; + private List nationalities; private String phone; @@ -390,7 +391,7 @@ public Builder putAllMetadata(Map map) { * call, and subsequent calls adds additional elements to the original list. See {@link * PersonCreateParams#nationalities} for the field documentation. */ - public Builder addNationality(PersonCreateParams.Nationality element) { + public Builder addNationality(String element) { if (this.nationalities == null) { this.nationalities = new ArrayList<>(); } @@ -403,7 +404,7 @@ public Builder addNationality(PersonCreateParams.Nationality element) { * call, and subsequent calls adds additional elements to the original list. See {@link * PersonCreateParams#nationalities} for the field documentation. */ - public Builder addAllNationality(List elements) { + public Builder addAllNationality(List elements) { if (this.nationalities == null) { this.nationalities = new ArrayList<>(); } @@ -460,7 +461,7 @@ public static class AdditionalAddress { * href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2). */ @SerializedName("country") - Country country; + String country; /** * Map of extra parameters for custom features not available in this client library. The content @@ -497,7 +498,7 @@ public static class AdditionalAddress { private AdditionalAddress( String city, - Country country, + String country, Map extraParams, String line1, String line2, @@ -523,7 +524,7 @@ public static Builder builder() { public static class Builder { private String city; - private Country country; + private String country; private Map extraParams; @@ -563,7 +564,7 @@ public Builder setCity(String city) { * Required. Two-letter country code (ISO 3166-1 alpha-2). */ - public Builder setCountry(PersonCreateParams.AdditionalAddress.Country country) { + public Builder setCountry(String country) { this.country = country; return this; } @@ -631,820 +632,655 @@ public Builder setTown(String town) { } } - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("registered") + REGISTERED("registered"); - @SerializedName("at") - AT("at"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("au") - AU("au"), + Purpose(String value) { + this.value = value; + } + } + } - @SerializedName("aw") - AW("aw"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalName { + /** + * 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; - @SerializedName("ax") - AX("ax"), + /** The person's full name. */ + @SerializedName("full_name") + String fullName; - @SerializedName("az") - AZ("az"), + /** The person's first or given name. */ + @SerializedName("given_name") + String givenName; - @SerializedName("ba") - BA("ba"), + /** Required. The purpose or type of the additional name. */ + @SerializedName("purpose") + Purpose purpose; - @SerializedName("bb") - BB("bb"), + /** The person's last or family name. */ + @SerializedName("surname") + String surname; - @SerializedName("bd") - BD("bd"), + private AdditionalName( + Map extraParams, + String fullName, + String givenName, + Purpose purpose, + String surname) { + this.extraParams = extraParams; + this.fullName = fullName; + this.givenName = givenName; + this.purpose = purpose; + this.surname = surname; + } - @SerializedName("be") - BE("be"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("bf") - BF("bf"), + public static class Builder { + private Map extraParams; - @SerializedName("bg") - BG("bg"), + private String fullName; - @SerializedName("bh") - BH("bh"), + private String givenName; - @SerializedName("bi") - BI("bi"), + private Purpose purpose; - @SerializedName("bj") - BJ("bj"), + private String surname; - @SerializedName("bl") - BL("bl"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.AdditionalName build() { + return new PersonCreateParams.AdditionalName( + this.extraParams, this.fullName, this.givenName, this.purpose, this.surname); + } - @SerializedName("bm") - BM("bm"), + /** + * 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 + * PersonCreateParams.AdditionalName#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; + } - @SerializedName("bn") - BN("bn"), + /** + * 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 PersonCreateParams.AdditionalName#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("bo") - BO("bo"), + /** The person's full name. */ + public Builder setFullName(String fullName) { + this.fullName = fullName; + return this; + } - @SerializedName("bq") - BQ("bq"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("br") - BR("br"), + /** Required. The purpose or type of the additional name. */ + public Builder setPurpose(PersonCreateParams.AdditionalName.Purpose purpose) { + this.purpose = purpose; + return this; + } - @SerializedName("bs") - BS("bs"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } - @SerializedName("bt") - BT("bt"), + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("alias") + ALIAS("alias"), - @SerializedName("bv") - BV("bv"), + @SerializedName("maiden") + MAIDEN("maiden"); - @SerializedName("bw") - BW("bw"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("by") - BY("by"), + Purpose(String value) { + this.value = value; + } + } + } - @SerializedName("bz") - BZ("bz"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalTermsOfService { + /** Stripe terms of service agreement. */ + @SerializedName("account") + Account account; - @SerializedName("ca") - CA("ca"), + /** + * 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; - @SerializedName("cc") - CC("cc"), + private AdditionalTermsOfService(Account account, Map extraParams) { + this.account = account; + this.extraParams = extraParams; + } - @SerializedName("cd") - CD("cd"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("cf") - CF("cf"), + public static class Builder { + private Account account; - @SerializedName("cg") - CG("cg"), + private Map extraParams; - @SerializedName("ch") - CH("ch"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.AdditionalTermsOfService build() { + return new PersonCreateParams.AdditionalTermsOfService(this.account, this.extraParams); + } - @SerializedName("ci") - CI("ci"), + /** Stripe terms of service agreement. */ + public Builder setAccount(PersonCreateParams.AdditionalTermsOfService.Account account) { + this.account = account; + return this; + } - @SerializedName("ck") - CK("ck"), + /** + * 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 + * PersonCreateParams.AdditionalTermsOfService#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; + } - @SerializedName("cl") - CL("cl"), + /** + * 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 PersonCreateParams.AdditionalTermsOfService#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } - @SerializedName("cm") - CM("cm"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Account { + /** + * Required. The time when the Account's representative accepted the terms of + * service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for + * example: 2022-09-18T13:22:18.123Z. + */ + @SerializedName("date") + Instant date; - @SerializedName("cn") - CN("cn"), + /** + * 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; - @SerializedName("co") - CO("co"), + /** + * Required. The IP address from which the Account's representative accepted + * the terms of service. + */ + @SerializedName("ip") + String ip; - @SerializedName("cr") - CR("cr"), + /** + * The user agent of the browser from which the Account's representative accepted the terms of + * service. + */ + @SerializedName("user_agent") + String userAgent; - @SerializedName("cu") - CU("cu"), + private Account(Instant date, Map extraParams, String ip, String userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } - @SerializedName("cv") - CV("cv"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("cw") - CW("cw"), + public static class Builder { + private Instant date; - @SerializedName("cx") - CX("cx"), + private Map extraParams; - @SerializedName("cy") - CY("cy"), + private String ip; - @SerializedName("cz") - CZ("cz"), + private String userAgent; - @SerializedName("de") - DE("de"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.AdditionalTermsOfService.Account build() { + return new PersonCreateParams.AdditionalTermsOfService.Account( + this.date, this.extraParams, this.ip, this.userAgent); + } - @SerializedName("dj") - DJ("dj"), + /** + * Required. The time when the Account's representative accepted the terms + * of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, + * for example: 2022-09-18T13:22:18.123Z. + */ + public Builder setDate(Instant date) { + this.date = date; + return this; + } - @SerializedName("dk") - DK("dk"), + /** + * 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 PersonCreateParams.AdditionalTermsOfService.Account#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; + } - @SerializedName("dm") - DM("dm"), + /** + * 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 PersonCreateParams.AdditionalTermsOfService.Account#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("do") - DO("do"), + /** + * Required. The IP address from which the Account's representative + * accepted the terms of service. + */ + public Builder setIp(String ip) { + this.ip = ip; + return this; + } - @SerializedName("dz") - DZ("dz"), + /** + * The user agent of the browser from which the Account's representative accepted the terms + * of service. + */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } + } + } + } - @SerializedName("ec") - EC("ec"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; - @SerializedName("ee") - EE("ee"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; - @SerializedName("eg") - EG("eg"), + /** + * 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; - @SerializedName("eh") - EH("eh"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - @SerializedName("er") - ER("er"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; - @SerializedName("es") - ES("es"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; - @SerializedName("et") - ET("et"), + /** State, county, province, or region. */ + @SerializedName("state") + String state; - @SerializedName("fi") - FI("fi"), + /** Town or cho-me. */ + @SerializedName("town") + String town; - @SerializedName("fj") - FJ("fj"), + private Address( + 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; + } - @SerializedName("fk") - FK("fk"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("fm") - FM("fm"), + public static class Builder { + private String city; - @SerializedName("fo") - FO("fo"), + private String country; - @SerializedName("fr") - FR("fr"), + private Map extraParams; - @SerializedName("ga") - GA("ga"), + private String line1; - @SerializedName("gb") - GB("gb"), + private String line2; - @SerializedName("gd") - GD("gd"), + private String postalCode; - @SerializedName("ge") - GE("ge"), + private String state; - @SerializedName("gf") - GF("gf"), + private String town; - @SerializedName("gg") - GG("gg"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.Address build() { + return new PersonCreateParams.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("gh") - GH("gh"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("gi") - GI("gi"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("gl") - GL("gl"), + /** + * 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 + * PersonCreateParams.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; + } - @SerializedName("gm") - GM("gm"), + /** + * 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 PersonCreateParams.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; + } - @SerializedName("gn") - GN("gn"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("gp") - GP("gp"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("gq") - GQ("gq"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("gr") - GR("gr"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("gs") - GS("gs"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } - @SerializedName("gt") - GT("gt"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class DateOfBirth { + /** Required. The day of birth. */ + @SerializedName("day") + Long day; - @SerializedName("gu") - GU("gu"), + /** + * 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; - @SerializedName("gw") - GW("gw"), + /** Required. The month of birth. */ + @SerializedName("month") + Long month; - @SerializedName("gy") - GY("gy"), + /** Required. The year of birth. */ + @SerializedName("year") + Long year; - @SerializedName("hk") - HK("hk"), + private DateOfBirth(Long day, Map extraParams, Long month, Long year) { + this.day = day; + this.extraParams = extraParams; + this.month = month; + this.year = year; + } - @SerializedName("hm") - HM("hm"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("hn") - HN("hn"), + public static class Builder { + private Long day; - @SerializedName("hr") - HR("hr"), + private Map extraParams; - @SerializedName("ht") - HT("ht"), + private Long month; - @SerializedName("hu") - HU("hu"), + private Long year; - @SerializedName("id") - ID("id"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.DateOfBirth build() { + return new PersonCreateParams.DateOfBirth( + this.day, this.extraParams, this.month, this.year); + } - @SerializedName("ie") - IE("ie"), + /** Required. The day of birth. */ + public Builder setDay(Long day) { + this.day = day; + return this; + } - @SerializedName("il") - IL("il"), + /** + * 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 + * PersonCreateParams.DateOfBirth#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; + } - @SerializedName("im") - IM("im"), + /** + * 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 PersonCreateParams.DateOfBirth#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("in") - IN("in"), + /** Required. The month of birth. */ + public Builder setMonth(Long month) { + this.month = month; + return this; + } - @SerializedName("io") - IO("io"), + /** Required. The year of birth. */ + public Builder setYear(Long year) { + this.year = year; + return this; + } + } + } - @SerializedName("iq") - IQ("iq"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Documents { + /** + * One or more documents that demonstrate proof that this person is authorized to represent the + * company. + */ + @SerializedName("company_authorization") + CompanyAuthorization companyAuthorization; - @SerializedName("ir") - IR("ir"), + /** + * 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; - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - - public enum Purpose implements ApiRequestParams.EnumParam { - @SerializedName("registered") - REGISTERED("registered"); - - @Getter(onMethod_ = {@Override}) - private final String value; + /** One or more documents showing the person’s passport page with photo and personal data. */ + @SerializedName("passport") + Passport passport; - Purpose(String value) { - this.value = value; - } - } - } + /** An identifying document showing the person's name, either a passport or local ID card. */ + @SerializedName("primary_verification") + PrimaryVerification primaryVerification; - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AdditionalName { /** - * 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. + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** The person's full name. */ - @SerializedName("full_name") - String fullName; - - /** The person's first or given name. */ - @SerializedName("given_name") - String givenName; - - /** Required. The purpose or type of the additional name. */ - @SerializedName("purpose") - Purpose purpose; + @SerializedName("secondary_verification") + SecondaryVerification secondaryVerification; - /** The person's last or family name. */ - @SerializedName("surname") - String surname; + /** + * One or more documents showing the person’s visa required for living in the country where they + * are residing. + */ + @SerializedName("visa") + Visa visa; - private AdditionalName( + private Documents( + CompanyAuthorization companyAuthorization, Map extraParams, - String fullName, - String givenName, - Purpose purpose, - String surname) { + Passport passport, + PrimaryVerification primaryVerification, + SecondaryVerification secondaryVerification, + Visa visa) { + this.companyAuthorization = companyAuthorization; this.extraParams = extraParams; - this.fullName = fullName; - this.givenName = givenName; - this.purpose = purpose; - this.surname = surname; + this.passport = passport; + this.primaryVerification = primaryVerification; + this.secondaryVerification = secondaryVerification; + this.visa = visa; } public static Builder builder() { @@ -1452,26 +1288,43 @@ public static Builder builder() { } public static class Builder { + private CompanyAuthorization companyAuthorization; + private Map extraParams; - private String fullName; + private Passport passport; - private String givenName; + private PrimaryVerification primaryVerification; - private Purpose purpose; + private SecondaryVerification secondaryVerification; - private String surname; + private Visa visa; /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.AdditionalName build() { - return new PersonCreateParams.AdditionalName( - this.extraParams, this.fullName, this.givenName, this.purpose, this.surname); + public PersonCreateParams.Documents build() { + return new PersonCreateParams.Documents( + this.companyAuthorization, + this.extraParams, + this.passport, + this.primaryVerification, + this.secondaryVerification, + this.visa); + } + + /** + * One or more documents that demonstrate proof that this person is authorized to represent + * the company. + */ + public Builder setCompanyAuthorization( + PersonCreateParams.Documents.CompanyAuthorization companyAuthorization) { + this.companyAuthorization = companyAuthorization; + 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 - * PersonCreateParams.AdditionalName#extraParams} for the field documentation. + * PersonCreateParams.Documents#extraParams} for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -1484,7 +1337,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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 PersonCreateParams.AdditionalName#extraParams} for the field documentation. + * See {@link PersonCreateParams.Documents#extraParams} for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -1494,127 +1347,42 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The person's full name. */ - public Builder setFullName(String fullName) { - this.fullName = fullName; - return this; - } - - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** Required. The purpose or type of the additional name. */ - public Builder setPurpose(PersonCreateParams.AdditionalName.Purpose purpose) { - this.purpose = purpose; - return this; - } - - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; + /** One or more documents showing the person’s passport page with photo and personal data. */ + public Builder setPassport(PersonCreateParams.Documents.Passport passport) { + this.passport = passport; return this; } - } - - public enum Purpose implements ApiRequestParams.EnumParam { - @SerializedName("alias") - ALIAS("alias"), - - @SerializedName("maiden") - MAIDEN("maiden"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Purpose(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AdditionalTermsOfService { - /** Stripe terms of service agreement. */ - @SerializedName("account") - Account account; - - /** - * 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 AdditionalTermsOfService(Account account, Map extraParams) { - this.account = account; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Account account; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.AdditionalTermsOfService build() { - return new PersonCreateParams.AdditionalTermsOfService(this.account, this.extraParams); - } - /** Stripe terms of service agreement. */ - public Builder setAccount(PersonCreateParams.AdditionalTermsOfService.Account account) { - this.account = account; + /** An identifying document showing the person's name, either a passport or local ID card. */ + public Builder setPrimaryVerification( + PersonCreateParams.Documents.PrimaryVerification primaryVerification) { + this.primaryVerification = primaryVerification; 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 - * PersonCreateParams.AdditionalTermsOfService#extraParams} for the field documentation. + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); + public Builder setSecondaryVerification( + PersonCreateParams.Documents.SecondaryVerification secondaryVerification) { + this.secondaryVerification = secondaryVerification; 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 PersonCreateParams.AdditionalTermsOfService#extraParams} for the field - * documentation. + * One or more documents showing the person’s visa required for living in the country where + * they are residing. */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); + public Builder setVisa(PersonCreateParams.Documents.Visa visa) { + this.visa = visa; return this; } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Account { - /** - * Required. The time when the Account's representative accepted the terms of - * service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for - * example: 2022-09-18T13:22:18.123Z. - */ - @SerializedName("date") - Instant date; - + public static class CompanyAuthorization { /** * 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. @@ -1625,24 +1393,24 @@ public static class Account { Map extraParams; /** - * Required. The IP address from which the Account's representative accepted - * the terms of service. + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. */ - @SerializedName("ip") - String ip; + @SerializedName("files") + List files; /** - * The user agent of the browser from which the Account's representative accepted the terms of - * service. + * Required. The format of the document. Currently supports {@code files} + * only. */ - @SerializedName("user_agent") - String userAgent; + @SerializedName("type") + Type type; - private Account(Instant date, Map extraParams, String ip, String userAgent) { - this.date = date; + private CompanyAuthorization(Map extraParams, List files, Type type) { this.extraParams = extraParams; - this.ip = ip; - this.userAgent = userAgent; + this.files = files; + this.type = type; } public static Builder builder() { @@ -1650,34 +1418,22 @@ public static Builder builder() { } public static class Builder { - private Instant date; - private Map extraParams; - private String ip; + private List files; - private String userAgent; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.AdditionalTermsOfService.Account build() { - return new PersonCreateParams.AdditionalTermsOfService.Account( - this.date, this.extraParams, this.ip, this.userAgent); - } - - /** - * Required. The time when the Account's representative accepted the terms - * of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, - * for example: 2022-09-18T13:22:18.123Z. - */ - public Builder setDate(Instant date) { - this.date = date; - return this; + public PersonCreateParams.Documents.CompanyAuthorization build() { + return new PersonCreateParams.Documents.CompanyAuthorization( + this.extraParams, this.files, this.type); } /** * 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 PersonCreateParams.AdditionalTermsOfService.Account#extraParams} for the + * map. See {@link PersonCreateParams.Documents.CompanyAuthorization#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1691,7 +1447,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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 PersonCreateParams.AdditionalTermsOfService.Account#extraParams} for the + * map. See {@link PersonCreateParams.Documents.CompanyAuthorization#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -1703,4425 +1459,404 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The IP address from which the Account's representative - * accepted the terms of service. + * 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 + * PersonCreateParams.Documents.CompanyAuthorization#files} for the field documentation. */ - public Builder setIp(String ip) { - this.ip = ip; + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); return this; } /** - * The user agent of the browser from which the Account's representative accepted the terms - * of service. + * 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 + * PersonCreateParams.Documents.CompanyAuthorization#files} for the field documentation. */ - public Builder setUserAgent(String userAgent) { - this.userAgent = userAgent; + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); return this; } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Address { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country country; + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + public Builder setType(PersonCreateParams.Documents.CompanyAuthorization.Type type) { + this.type = type; + 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. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - /** Address line 1 (e.g., street, PO Box, or company name). */ - @SerializedName("line1") - String line1; + @Getter(onMethod_ = {@Override}) + private final String value; - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - String line2; + Type(String value) { + this.value = value; + } + } + } - /** ZIP or postal code. */ - @SerializedName("postal_code") - String postalCode; - - /** State, county, province, or region. */ - @SerializedName("state") - String state; - - /** Town or cho-me. */ - @SerializedName("town") - String town; - - private Address( - String city, - Country 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 Country 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 PersonCreateParams.Address build() { - return new PersonCreateParams.Address( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Passport { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry(PersonCreateParams.Address.Country 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 - * PersonCreateParams.Address#extraParams} for the field documentation. + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } + @SerializedName("files") + List files; /** - * 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 PersonCreateParams.Address#extraParams} for the field documentation. + * Required. The format of the document. Currently supports {@code files} + * only. */ - 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; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } + @SerializedName("type") + Type type; - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; + private Passport(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class DateOfBirth { - /** Required. The day of birth. */ - @SerializedName("day") - Integer day; - - /** - * Map of extra parameters for custom features not available in this client library. The content - * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each - * key/value pair is serialized as if the key is a root-level field (serialized) name in this - * param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Required. The month of birth. */ - @SerializedName("month") - Integer month; - - /** Required. The year of birth. */ - @SerializedName("year") - Integer year; - - private DateOfBirth(Integer day, Map extraParams, Integer month, Integer year) { - this.day = day; - this.extraParams = extraParams; - this.month = month; - this.year = year; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Integer day; - - private Map extraParams; - - private Integer month; - - private Integer year; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.DateOfBirth build() { - return new PersonCreateParams.DateOfBirth( - this.day, this.extraParams, this.month, this.year); - } - - /** Required. The day of birth. */ - public Builder setDay(Integer day) { - this.day = day; - 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 - * PersonCreateParams.DateOfBirth#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 PersonCreateParams.DateOfBirth#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Required. The month of birth. */ - public Builder setMonth(Integer month) { - this.month = month; - return this; - } - - /** Required. The year of birth. */ - public Builder setYear(Integer year) { - this.year = year; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Documents { - /** - * One or more documents that demonstrate proof that this person is authorized to represent the - * company. - */ - @SerializedName("company_authorization") - CompanyAuthorization companyAuthorization; - - /** - * 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 documents showing the person’s passport page with photo and personal data. */ - @SerializedName("passport") - Passport passport; - - /** An identifying document showing the person's name, either a passport or local ID card. */ - @SerializedName("primary_verification") - PrimaryVerification primaryVerification; - - /** - * A document showing address, either a passport, local ID card, or utility bill from a - * well-known utility company. - */ - @SerializedName("secondary_verification") - SecondaryVerification secondaryVerification; - - /** - * One or more documents showing the person’s visa required for living in the country where they - * are residing. - */ - @SerializedName("visa") - Visa visa; - - private Documents( - CompanyAuthorization companyAuthorization, - Map extraParams, - Passport passport, - PrimaryVerification primaryVerification, - SecondaryVerification secondaryVerification, - Visa visa) { - this.companyAuthorization = companyAuthorization; - this.extraParams = extraParams; - this.passport = passport; - this.primaryVerification = primaryVerification; - this.secondaryVerification = secondaryVerification; - this.visa = visa; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private CompanyAuthorization companyAuthorization; - - private Map extraParams; - - private Passport passport; - - private PrimaryVerification primaryVerification; - - private SecondaryVerification secondaryVerification; - - private Visa visa; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.Documents build() { - return new PersonCreateParams.Documents( - this.companyAuthorization, - this.extraParams, - this.passport, - this.primaryVerification, - this.secondaryVerification, - this.visa); - } - - /** - * One or more documents that demonstrate proof that this person is authorized to represent - * the company. - */ - public Builder setCompanyAuthorization( - PersonCreateParams.Documents.CompanyAuthorization companyAuthorization) { - this.companyAuthorization = companyAuthorization; - 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 - * PersonCreateParams.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 PersonCreateParams.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; - } - - /** One or more documents showing the person’s passport page with photo and personal data. */ - public Builder setPassport(PersonCreateParams.Documents.Passport passport) { - this.passport = passport; - return this; - } - - /** An identifying document showing the person's name, either a passport or local ID card. */ - public Builder setPrimaryVerification( - PersonCreateParams.Documents.PrimaryVerification primaryVerification) { - this.primaryVerification = primaryVerification; - return this; - } - - /** - * A document showing address, either a passport, local ID card, or utility bill from a - * well-known utility company. - */ - public Builder setSecondaryVerification( - PersonCreateParams.Documents.SecondaryVerification secondaryVerification) { - this.secondaryVerification = secondaryVerification; - return this; - } - - /** - * One or more documents showing the person’s visa required for living in the country where - * they are residing. - */ - public Builder setVisa(PersonCreateParams.Documents.Visa visa) { - this.visa = visa; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class CompanyAuthorization { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyAuthorization(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.Documents.CompanyAuthorization build() { - return new PersonCreateParams.Documents.CompanyAuthorization( - this.extraParams, this.files, this.type); - } - - /** - * 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 PersonCreateParams.Documents.CompanyAuthorization#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 PersonCreateParams.Documents.CompanyAuthorization#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 - * PersonCreateParams.Documents.CompanyAuthorization#files} for the field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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 - * PersonCreateParams.Documents.CompanyAuthorization#files} for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - public Builder setType(PersonCreateParams.Documents.CompanyAuthorization.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Passport { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private Passport(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.Documents.Passport build() { - return new PersonCreateParams.Documents.Passport(this.extraParams, this.files, this.type); - } - - /** - * 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 PersonCreateParams.Documents.Passport#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 PersonCreateParams.Documents.Passport#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 - * PersonCreateParams.Documents.Passport#files} for the field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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 - * PersonCreateParams.Documents.Passport#files} for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - public Builder setType(PersonCreateParams.Documents.Passport.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PrimaryVerification { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - @SerializedName("front_back") - FrontBack frontBack; - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - @SerializedName("type") - Type type; - - private PrimaryVerification(Map extraParams, FrontBack frontBack, Type type) { - this.extraParams = extraParams; - this.frontBack = frontBack; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private FrontBack frontBack; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.Documents.PrimaryVerification build() { - return new PersonCreateParams.Documents.PrimaryVerification( - this.extraParams, this.frontBack, this.type); - } - - /** - * 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 PersonCreateParams.Documents.PrimaryVerification#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 PersonCreateParams.Documents.PrimaryVerification#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - public Builder setFrontBack( - PersonCreateParams.Documents.PrimaryVerification.FrontBack frontBack) { - this.frontBack = frontBack; - return this; - } - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - public Builder setType(PersonCreateParams.Documents.PrimaryVerification.Type type) { - this.type = type; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FrontBack { - /** - * A file upload token - * representing the back of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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; - - /** - * Required. A file upload token - * representing the front of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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 FrontBack(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 PersonCreateParams.Documents.PrimaryVerification.FrontBack build() { - return new PersonCreateParams.Documents.PrimaryVerification.FrontBack( - this.back, this.extraParams, this.front); - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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 PersonCreateParams.Documents.PrimaryVerification.FrontBack#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 PersonCreateParams.Documents.PrimaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. A file upload token - * representing the front of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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 setFront(String front) { - this.front = front; - return this; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("front_back") - FRONT_BACK("front_back"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class SecondaryVerification { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - @SerializedName("front_back") - FrontBack frontBack; - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - @SerializedName("type") - Type type; - - private SecondaryVerification( - Map extraParams, FrontBack frontBack, Type type) { - this.extraParams = extraParams; - this.frontBack = frontBack; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private FrontBack frontBack; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.Documents.SecondaryVerification build() { - return new PersonCreateParams.Documents.SecondaryVerification( - this.extraParams, this.frontBack, this.type); - } - - /** - * 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 PersonCreateParams.Documents.SecondaryVerification#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 PersonCreateParams.Documents.SecondaryVerification#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - public Builder setFrontBack( - PersonCreateParams.Documents.SecondaryVerification.FrontBack frontBack) { - this.frontBack = frontBack; - return this; - } - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - public Builder setType(PersonCreateParams.Documents.SecondaryVerification.Type type) { - this.type = type; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FrontBack { - /** - * A file upload token - * representing the back of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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; - - /** - * Required. A file upload token - * representing the front of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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 FrontBack(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 PersonCreateParams.Documents.SecondaryVerification.FrontBack build() { - return new PersonCreateParams.Documents.SecondaryVerification.FrontBack( - this.back, this.extraParams, this.front); - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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 - * PersonCreateParams.Documents.SecondaryVerification.FrontBack#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 - * PersonCreateParams.Documents.SecondaryVerification.FrontBack#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. A file upload token - * representing the front of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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 setFront(String front) { - this.front = front; - return this; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("front_back") - FRONT_BACK("front_back"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Visa { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private Visa(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.Documents.Visa build() { - return new PersonCreateParams.Documents.Visa(this.extraParams, this.files, this.type); - } - - /** - * 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 PersonCreateParams.Documents.Visa#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 PersonCreateParams.Documents.Visa#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 - * PersonCreateParams.Documents.Visa#files} for the field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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 - * PersonCreateParams.Documents.Visa#files} for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - public Builder setType(PersonCreateParams.Documents.Visa.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class IdNumber { - /** - * Map of extra parameters for custom features not available in this client library. The content - * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each - * key/value pair is serialized as if the key is a root-level field (serialized) name in this - * param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Required. The ID number type of an individual. */ - @SerializedName("type") - Type type; - - /** Required. The value of the ID number. */ - @SerializedName("value") - String value; - - private IdNumber(Map extraParams, Type type, String value) { - this.extraParams = extraParams; - this.type = type; - this.value = value; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Type type; - - private String value; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.IdNumber build() { - return new PersonCreateParams.IdNumber(this.extraParams, this.type, this.value); - } - - /** - * 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 - * PersonCreateParams.IdNumber#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 PersonCreateParams.IdNumber#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Required. The ID number type of an individual. */ - public Builder setType(PersonCreateParams.IdNumber.Type type) { - this.type = type; - return this; - } - - /** Required. The value of the ID number. */ - public Builder setValue(String value) { - this.value = value; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ae_eid") - AE_EID("ae_eid"), - - @SerializedName("ao_nif") - AO_NIF("ao_nif"), - - @SerializedName("az_tin") - AZ_TIN("az_tin"), - - @SerializedName("bd_brc") - BD_BRC("bd_brc"), - - @SerializedName("bd_etin") - BD_ETIN("bd_etin"), - - @SerializedName("bd_nid") - BD_NID("bd_nid"), - - @SerializedName("br_cpf") - BR_CPF("br_cpf"), - - @SerializedName("cr_cpf") - CR_CPF("cr_cpf"), - - @SerializedName("cr_dimex") - CR_DIMEX("cr_dimex"), - - @SerializedName("cr_nite") - CR_NITE("cr_nite"), - - @SerializedName("de_stn") - DE_STN("de_stn"), - - @SerializedName("do_rcn") - DO_RCN("do_rcn"), - - @SerializedName("gt_nit") - GT_NIT("gt_nit"), - - @SerializedName("hk_id") - HK_ID("hk_id"), - - @SerializedName("kz_iin") - KZ_IIN("kz_iin"), - - @SerializedName("mx_rfc") - MX_RFC("mx_rfc"), - - @SerializedName("my_nric") - MY_NRIC("my_nric"), - - @SerializedName("mz_nuit") - MZ_NUIT("mz_nuit"), - - @SerializedName("nl_bsn") - NL_BSN("nl_bsn"), - - @SerializedName("pe_dni") - PE_DNI("pe_dni"), - - @SerializedName("pk_cnic") - PK_CNIC("pk_cnic"), - - @SerializedName("pk_snic") - PK_SNIC("pk_snic"), - - @SerializedName("sa_tin") - SA_TIN("sa_tin"), - - @SerializedName("sg_fin") - SG_FIN("sg_fin"), - - @SerializedName("sg_nric") - SG_NRIC("sg_nric"), - - @SerializedName("th_lc") - TH_LC("th_lc"), - - @SerializedName("th_pin") - TH_PIN("th_pin"), - - @SerializedName("us_itin") - US_ITIN("us_itin"), - - @SerializedName("us_itin_last_4") - US_ITIN_LAST_4("us_itin_last_4"), - - @SerializedName("us_ssn") - US_SSN("us_ssn"), - - @SerializedName("us_ssn_last_4") - US_SSN_LAST_4("us_ssn_last_4"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Relationship { - /** Whether the individual is an authorizer of the Account’s legal entity. */ - @SerializedName("authorizer") - Boolean authorizer; - - /** Indicates whether the person is a director of the associated legal entity. */ - @SerializedName("director") - Boolean director; - - /** Indicates whether the person is an executive of the associated legal entity. */ - @SerializedName("executive") - Boolean executive; - - /** - * 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; - - /** Indicates whether the person is a legal guardian of the associated legal entity. */ - @SerializedName("legal_guardian") - Boolean legalGuardian; - - /** Indicates whether the person is an owner of the associated legal entity. */ - @SerializedName("owner") - Boolean owner; - - /** The percentage of ownership the person has in the associated legal entity. */ - @SerializedName("percent_ownership") - String percentOwnership; - - /** Indicates whether the person is a representative of the associated legal entity. */ - @SerializedName("representative") - Boolean representative; - - /** The title or position the person holds in the associated legal entity. */ - @SerializedName("title") - String title; - - private Relationship( - Boolean authorizer, - Boolean director, - Boolean executive, - Map extraParams, - Boolean legalGuardian, - Boolean owner, - String percentOwnership, - Boolean representative, - String title) { - this.authorizer = authorizer; - this.director = director; - this.executive = executive; - this.extraParams = extraParams; - this.legalGuardian = legalGuardian; - this.owner = owner; - this.percentOwnership = percentOwnership; - this.representative = representative; - this.title = title; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Boolean authorizer; - - private Boolean director; - - private Boolean executive; - - private Map extraParams; - - private Boolean legalGuardian; - - private Boolean owner; - - private String percentOwnership; - - private Boolean representative; - - private String title; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.Relationship build() { - return new PersonCreateParams.Relationship( - this.authorizer, - this.director, - this.executive, - this.extraParams, - this.legalGuardian, - this.owner, - this.percentOwnership, - this.representative, - this.title); - } - - /** Whether the individual is an authorizer of the Account’s legal entity. */ - public Builder setAuthorizer(Boolean authorizer) { - this.authorizer = authorizer; - return this; - } - - /** Indicates whether the person is a director of the associated legal entity. */ - public Builder setDirector(Boolean director) { - this.director = director; - return this; - } - - /** Indicates whether the person is an executive of the associated legal entity. */ - public Builder setExecutive(Boolean executive) { - this.executive = executive; - 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 - * PersonCreateParams.Relationship#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 PersonCreateParams.Relationship#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Indicates whether the person is a legal guardian of the associated legal entity. */ - public Builder setLegalGuardian(Boolean legalGuardian) { - this.legalGuardian = legalGuardian; - return this; - } - - /** Indicates whether the person is an owner of the associated legal entity. */ - public Builder setOwner(Boolean owner) { - this.owner = owner; - return this; - } - - /** The percentage of ownership the person has in the associated legal entity. */ - public Builder setPercentOwnership(String percentOwnership) { - this.percentOwnership = percentOwnership; - return this; - } - - /** Indicates whether the person is a representative of the associated legal entity. */ - public Builder setRepresentative(Boolean representative) { - this.representative = representative; - return this; - } - - /** The title or position the person holds in the associated legal entity. */ - public Builder setTitle(String title) { - this.title = title; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ScriptAddresses { - /** - * 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; - - /** Kana Address. */ - @SerializedName("kana") - Kana kana; - - /** Kanji Address. */ - @SerializedName("kanji") - Kanji kanji; - - private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { - this.extraParams = extraParams; - this.kana = kana; - this.kanji = kanji; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Kana kana; - - private Kanji kanji; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.ScriptAddresses build() { - return new PersonCreateParams.ScriptAddresses(this.extraParams, this.kana, this.kanji); - } - - /** - * 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 - * PersonCreateParams.ScriptAddresses#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 PersonCreateParams.ScriptAddresses#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Kana Address. */ - public Builder setKana(PersonCreateParams.ScriptAddresses.Kana kana) { - this.kana = kana; - return this; - } - - /** Kanji Address. */ - public Builder setKanji(PersonCreateParams.ScriptAddresses.Kanji kanji) { - this.kanji = kanji; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Kana { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country 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; - - /** Town or cho-me. */ - @SerializedName("town") - String town; - - private Kana( - String city, - Country 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 Country 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 PersonCreateParams.ScriptAddresses.Kana build() { - return new PersonCreateParams.ScriptAddresses.Kana( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry(PersonCreateParams.ScriptAddresses.Kana.Country 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 PersonCreateParams.ScriptAddresses.Kana#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 PersonCreateParams.ScriptAddresses.Kana#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; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Kanji { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - String city; - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - @SerializedName("country") - Country 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; - - /** Town or cho-me. */ - @SerializedName("town") - String town; - - private Kanji( - String city, - Country 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 Country 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 PersonCreateParams.ScriptAddresses.Kanji build() { - return new PersonCreateParams.ScriptAddresses.Kanji( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** - * Required. Two-letter country code (ISO 3166-1 alpha-2). - */ - public Builder setCountry(PersonCreateParams.ScriptAddresses.Kanji.Country 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 PersonCreateParams.ScriptAddresses.Kanji#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 PersonCreateParams.ScriptAddresses.Kanji#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; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - @SerializedName("tn") - TN("tn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("to") - TO("to"), + public static class Builder { + private Map extraParams; - @SerializedName("tr") - TR("tr"), + private List files; - @SerializedName("tt") - TT("tt"), + private Type type; - @SerializedName("tv") - TV("tv"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.Documents.Passport build() { + return new PersonCreateParams.Documents.Passport(this.extraParams, this.files, this.type); + } - @SerializedName("tw") - TW("tw"), + /** + * 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 PersonCreateParams.Documents.Passport#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; + } - @SerializedName("tz") - TZ("tz"), + /** + * 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 PersonCreateParams.Documents.Passport#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ua") - UA("ua"), + /** + * 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 + * PersonCreateParams.Documents.Passport#files} for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("ug") - UG("ug"), + /** + * 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 + * PersonCreateParams.Documents.Passport#files} for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("um") - UM("um"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + public Builder setType(PersonCreateParams.Documents.Passport.Type type) { + this.type = type; + return this; + } + } - @SerializedName("us") - US("us"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("uy") - UY("uy"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("uz") - UZ("uz"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("va") - VA("va"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PrimaryVerification { + /** + * 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; - @SerializedName("vc") - VC("vc"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; - @SerializedName("ve") - VE("ve"), + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; - @SerializedName("vg") - VG("vg"), + private PrimaryVerification(Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } - @SerializedName("vi") - VI("vi"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("vn") - VN("vn"), + public static class Builder { + private Map extraParams; - @SerializedName("vu") - VU("vu"), + private FrontBack frontBack; - @SerializedName("wf") - WF("wf"), + private Type type; - @SerializedName("ws") - WS("ws"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.Documents.PrimaryVerification build() { + return new PersonCreateParams.Documents.PrimaryVerification( + this.extraParams, this.frontBack, this.type); + } - @SerializedName("xx") - XX("xx"), + /** + * 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 PersonCreateParams.Documents.PrimaryVerification#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; + } - @SerializedName("ye") - YE("ye"), + /** + * 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 PersonCreateParams.Documents.PrimaryVerification#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("yt") - YT("yt"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + PersonCreateParams.Documents.PrimaryVerification.FrontBack frontBack) { + this.frontBack = frontBack; + return this; + } - @SerializedName("za") - ZA("za"), + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + public Builder setType(PersonCreateParams.Documents.PrimaryVerification.Type type) { + this.type = type; + return this; + } + } - @SerializedName("zm") - ZM("zm"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload token + * representing the back of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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; - @SerializedName("zw") - ZW("zw"); + /** + * 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; - @Getter(onMethod_ = {@Override}) - private final String value; + /** + * Required. A file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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; - Country(String value) { - this.value = value; + private FrontBack(String back, Map extraParams, String front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ScriptNames { - /** - * 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; - /** Persons name in kana script. */ - @SerializedName("kana") - Kana kana; + public static Builder builder() { + return new Builder(); + } - /** Persons name in kanji script. */ - @SerializedName("kanji") - Kanji kanji; + public static class Builder { + private String back; - private ScriptNames(Map extraParams, Kana kana, Kanji kanji) { - this.extraParams = extraParams; - this.kana = kana; - this.kanji = kanji; - } + private Map extraParams; - public static Builder builder() { - return new Builder(); - } + private String front; - public static class Builder { - private Map extraParams; + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.Documents.PrimaryVerification.FrontBack build() { + return new PersonCreateParams.Documents.PrimaryVerification.FrontBack( + this.back, this.extraParams, this.front); + } - private Kana kana; + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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; + } - private Kanji kanji; + /** + * 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 PersonCreateParams.Documents.PrimaryVerification.FrontBack#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; + } - /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.ScriptNames build() { - return new PersonCreateParams.ScriptNames(this.extraParams, this.kana, this.kanji); - } + /** + * 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 PersonCreateParams.Documents.PrimaryVerification.FrontBack#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 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 - * PersonCreateParams.ScriptNames#extraParams} for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * Required. A file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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 setFront(String front) { + this.front = front; + return this; + } } - 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 PersonCreateParams.ScriptNames#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 enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); - /** Persons name in kana script. */ - public Builder setKana(PersonCreateParams.ScriptNames.Kana kana) { - this.kana = kana; - return this; - } + @Getter(onMethod_ = {@Override}) + private final String value; - /** Persons name in kanji script. */ - public Builder setKanji(PersonCreateParams.ScriptNames.Kanji kanji) { - this.kanji = kanji; - return this; + Type(String value) { + this.value = value; + } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Kana { + public static class SecondaryVerification { /** * 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. @@ -6131,18 +1866,26 @@ public static class Kana { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The person's first or given name. */ - @SerializedName("given_name") - String givenName; + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; - /** The person's last or family name. */ - @SerializedName("surname") - String surname; + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; - private Kana(Map extraParams, String givenName, String surname) { + private SecondaryVerification( + Map extraParams, FrontBack frontBack, Type type) { this.extraParams = extraParams; - this.givenName = givenName; - this.surname = surname; + this.frontBack = frontBack; + this.type = type; } public static Builder builder() { @@ -6152,21 +1895,21 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private String givenName; + private FrontBack frontBack; - private String surname; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.ScriptNames.Kana build() { - return new PersonCreateParams.ScriptNames.Kana( - this.extraParams, this.givenName, this.surname); + public PersonCreateParams.Documents.SecondaryVerification build() { + return new PersonCreateParams.Documents.SecondaryVerification( + this.extraParams, this.frontBack, this.type); } /** * 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 PersonCreateParams.ScriptNames.Kana#extraParams} for the field - * documentation. + * map. See {@link PersonCreateParams.Documents.SecondaryVerification#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -6179,8 +1922,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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 PersonCreateParams.ScriptNames.Kana#extraParams} for the field - * documentation. + * map. See {@link PersonCreateParams.Documents.SecondaryVerification#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -6190,23 +1933,154 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + PersonCreateParams.Documents.SecondaryVerification.FrontBack frontBack) { + this.frontBack = frontBack; + return this; + } + + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + public Builder setType(PersonCreateParams.Documents.SecondaryVerification.Type type) { + this.type = type; return this; } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload token + * representing the back of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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; + + /** + * Required. A file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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 FrontBack(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 PersonCreateParams.Documents.SecondaryVerification.FrontBack build() { + return new PersonCreateParams.Documents.SecondaryVerification.FrontBack( + this.back, this.extraParams, this.front); + } + + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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 + * PersonCreateParams.Documents.SecondaryVerification.FrontBack#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 + * PersonCreateParams.Documents.SecondaryVerification.FrontBack#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. A file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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 setFront(String front) { + this.front = front; + return this; + } + } + } - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; - return this; + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Kanji { + public static class Visa { /** * 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. @@ -6216,18 +2090,25 @@ public static class Kanji { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The person's first or given name. */ - @SerializedName("given_name") - String givenName; + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - /** The person's last or family name. */ - @SerializedName("surname") - String surname; + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - private Kanji(Map extraParams, String givenName, String surname) { + private Visa(Map extraParams, List files, Type type) { this.extraParams = extraParams; - this.givenName = givenName; - this.surname = surname; + this.files = files; + this.type = type; } public static Builder builder() { @@ -6237,20 +2118,19 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private String givenName; + private List files; - private String surname; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public PersonCreateParams.ScriptNames.Kanji build() { - return new PersonCreateParams.ScriptNames.Kanji( - this.extraParams, this.givenName, this.surname); + public PersonCreateParams.Documents.Visa build() { + return new PersonCreateParams.Documents.Visa(this.extraParams, this.files, this.type); } /** * 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 PersonCreateParams.ScriptNames.Kanji#extraParams} for the field + * map. See {@link PersonCreateParams.Documents.Visa#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -6264,7 +2144,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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 PersonCreateParams.ScriptNames.Kanji#extraParams} for the field + * map. See {@link PersonCreateParams.Documents.Visa#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -6275,794 +2155,1105 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; + /** + * 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 + * PersonCreateParams.Documents.Visa#files} for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); return this; } - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; + /** + * 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 + * PersonCreateParams.Documents.Visa#files} for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); return this; } - } - } - } - public enum LegalGender implements ApiRequestParams.EnumParam { - @SerializedName("female") - FEMALE("female"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + public Builder setType(PersonCreateParams.Documents.Visa.Type type) { + this.type = type; + return this; + } + } - @SerializedName("male") - MALE("male"); + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @Getter(onMethod_ = {@Override}) - private final String value; + @Getter(onMethod_ = {@Override}) + private final String value; - LegalGender(String value) { - this.value = value; + Type(String value) { + this.value = value; + } + } } } - public enum Nationality implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class IdNumber { + /** + * 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; - @SerializedName("eh") - EH("eh"), + /** Required. The ID number type of an individual. */ + @SerializedName("type") + Type type; - @SerializedName("er") - ER("er"), + /** Required. The value of the ID number. */ + @SerializedName("value") + String value; - @SerializedName("es") - ES("es"), + private IdNumber(Map extraParams, Type type, String value) { + this.extraParams = extraParams; + this.type = type; + this.value = value; + } - @SerializedName("et") - ET("et"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("fi") - FI("fi"), + public static class Builder { + private Map extraParams; - @SerializedName("fj") - FJ("fj"), + private Type type; - @SerializedName("fk") - FK("fk"), + private String value; - @SerializedName("fm") - FM("fm"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.IdNumber build() { + return new PersonCreateParams.IdNumber(this.extraParams, this.type, this.value); + } - @SerializedName("fo") - FO("fo"), + /** + * 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 + * PersonCreateParams.IdNumber#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; + } - @SerializedName("fr") - FR("fr"), + /** + * 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 PersonCreateParams.IdNumber#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ga") - GA("ga"), + /** Required. The ID number type of an individual. */ + public Builder setType(PersonCreateParams.IdNumber.Type type) { + this.type = type; + return this; + } - @SerializedName("gb") - GB("gb"), + /** Required. The value of the ID number. */ + public Builder setValue(String value) { + this.value = value; + return this; + } + } - @SerializedName("gd") - GD("gd"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ae_eid") + AE_EID("ae_eid"), - @SerializedName("ge") - GE("ge"), + @SerializedName("ao_nif") + AO_NIF("ao_nif"), - @SerializedName("gf") - GF("gf"), + @SerializedName("az_tin") + AZ_TIN("az_tin"), - @SerializedName("gg") - GG("gg"), + @SerializedName("bd_brc") + BD_BRC("bd_brc"), - @SerializedName("gh") - GH("gh"), + @SerializedName("bd_etin") + BD_ETIN("bd_etin"), - @SerializedName("gi") - GI("gi"), + @SerializedName("bd_nid") + BD_NID("bd_nid"), - @SerializedName("gl") - GL("gl"), + @SerializedName("br_cpf") + BR_CPF("br_cpf"), - @SerializedName("gm") - GM("gm"), + @SerializedName("cr_cpf") + CR_CPF("cr_cpf"), - @SerializedName("gn") - GN("gn"), + @SerializedName("cr_dimex") + CR_DIMEX("cr_dimex"), - @SerializedName("gp") - GP("gp"), + @SerializedName("cr_nite") + CR_NITE("cr_nite"), - @SerializedName("gq") - GQ("gq"), + @SerializedName("de_stn") + DE_STN("de_stn"), - @SerializedName("gr") - GR("gr"), + @SerializedName("do_rcn") + DO_RCN("do_rcn"), - @SerializedName("gs") - GS("gs"), + @SerializedName("gt_nit") + GT_NIT("gt_nit"), - @SerializedName("gt") - GT("gt"), + @SerializedName("hk_id") + HK_ID("hk_id"), - @SerializedName("gu") - GU("gu"), + @SerializedName("kz_iin") + KZ_IIN("kz_iin"), - @SerializedName("gw") - GW("gw"), + @SerializedName("mx_rfc") + MX_RFC("mx_rfc"), - @SerializedName("gy") - GY("gy"), + @SerializedName("my_nric") + MY_NRIC("my_nric"), - @SerializedName("hk") - HK("hk"), + @SerializedName("mz_nuit") + MZ_NUIT("mz_nuit"), - @SerializedName("hm") - HM("hm"), + @SerializedName("nl_bsn") + NL_BSN("nl_bsn"), - @SerializedName("hn") - HN("hn"), + @SerializedName("pe_dni") + PE_DNI("pe_dni"), - @SerializedName("hr") - HR("hr"), + @SerializedName("pk_cnic") + PK_CNIC("pk_cnic"), - @SerializedName("ht") - HT("ht"), + @SerializedName("pk_snic") + PK_SNIC("pk_snic"), - @SerializedName("hu") - HU("hu"), + @SerializedName("sa_tin") + SA_TIN("sa_tin"), - @SerializedName("id") - ID("id"), + @SerializedName("sg_fin") + SG_FIN("sg_fin"), - @SerializedName("ie") - IE("ie"), + @SerializedName("sg_nric") + SG_NRIC("sg_nric"), - @SerializedName("il") - IL("il"), + @SerializedName("th_lc") + TH_LC("th_lc"), - @SerializedName("im") - IM("im"), + @SerializedName("th_pin") + TH_PIN("th_pin"), - @SerializedName("in") - IN("in"), + @SerializedName("us_itin") + US_ITIN("us_itin"), - @SerializedName("io") - IO("io"), + @SerializedName("us_itin_last_4") + US_ITIN_LAST_4("us_itin_last_4"), - @SerializedName("iq") - IQ("iq"), + @SerializedName("us_ssn") + US_SSN("us_ssn"), - @SerializedName("ir") - IR("ir"), + @SerializedName("us_ssn_last_4") + US_SSN_LAST_4("us_ssn_last_4"); - @SerializedName("is") - IS("is"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("it") - IT("it"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("je") - JE("je"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Relationship { + /** Whether the individual is an authorizer of the Account’s legal entity. */ + @SerializedName("authorizer") + Boolean authorizer; - @SerializedName("jm") - JM("jm"), + /** Indicates whether the person is a director of the associated legal entity. */ + @SerializedName("director") + Boolean director; - @SerializedName("jo") - JO("jo"), + /** Indicates whether the person is an executive of the associated legal entity. */ + @SerializedName("executive") + Boolean executive; - @SerializedName("jp") - JP("jp"), + /** + * 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; - @SerializedName("ke") - KE("ke"), + /** Indicates whether the person is a legal guardian of the associated legal entity. */ + @SerializedName("legal_guardian") + Boolean legalGuardian; - @SerializedName("kg") - KG("kg"), + /** Indicates whether the person is an owner of the associated legal entity. */ + @SerializedName("owner") + Boolean owner; - @SerializedName("kh") - KH("kh"), + /** The percentage of ownership the person has in the associated legal entity. */ + @SerializedName("percent_ownership") + BigDecimal percentOwnership; - @SerializedName("ki") - KI("ki"), + /** Indicates whether the person is a representative of the associated legal entity. */ + @SerializedName("representative") + Boolean representative; - @SerializedName("km") - KM("km"), + /** The title or position the person holds in the associated legal entity. */ + @SerializedName("title") + String title; - @SerializedName("kn") - KN("kn"), + private Relationship( + Boolean authorizer, + Boolean director, + Boolean executive, + Map extraParams, + Boolean legalGuardian, + Boolean owner, + BigDecimal percentOwnership, + Boolean representative, + String title) { + this.authorizer = authorizer; + this.director = director; + this.executive = executive; + this.extraParams = extraParams; + this.legalGuardian = legalGuardian; + this.owner = owner; + this.percentOwnership = percentOwnership; + this.representative = representative; + this.title = title; + } - @SerializedName("kp") - KP("kp"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("kr") - KR("kr"), + public static class Builder { + private Boolean authorizer; - @SerializedName("kw") - KW("kw"), + private Boolean director; - @SerializedName("ky") - KY("ky"), + private Boolean executive; - @SerializedName("kz") - KZ("kz"), + private Map extraParams; - @SerializedName("la") - LA("la"), + private Boolean legalGuardian; - @SerializedName("lb") - LB("lb"), + private Boolean owner; - @SerializedName("lc") - LC("lc"), + private BigDecimal percentOwnership; - @SerializedName("li") - LI("li"), + private Boolean representative; - @SerializedName("lk") - LK("lk"), + private String title; - @SerializedName("lr") - LR("lr"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.Relationship build() { + return new PersonCreateParams.Relationship( + this.authorizer, + this.director, + this.executive, + this.extraParams, + this.legalGuardian, + this.owner, + this.percentOwnership, + this.representative, + this.title); + } - @SerializedName("ls") - LS("ls"), + /** Whether the individual is an authorizer of the Account’s legal entity. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } - @SerializedName("lt") - LT("lt"), + /** Indicates whether the person is a director of the associated legal entity. */ + public Builder setDirector(Boolean director) { + this.director = director; + return this; + } - @SerializedName("lu") - LU("lu"), + /** Indicates whether the person is an executive of the associated legal entity. */ + public Builder setExecutive(Boolean executive) { + this.executive = executive; + return this; + } - @SerializedName("lv") - LV("lv"), + /** + * 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 + * PersonCreateParams.Relationship#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; + } - @SerializedName("ly") - LY("ly"), + /** + * 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 PersonCreateParams.Relationship#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ma") - MA("ma"), + /** Indicates whether the person is a legal guardian of the associated legal entity. */ + public Builder setLegalGuardian(Boolean legalGuardian) { + this.legalGuardian = legalGuardian; + return this; + } - @SerializedName("mc") - MC("mc"), + /** Indicates whether the person is an owner of the associated legal entity. */ + public Builder setOwner(Boolean owner) { + this.owner = owner; + return this; + } - @SerializedName("md") - MD("md"), + /** The percentage of ownership the person has in the associated legal entity. */ + public Builder setPercentOwnership(BigDecimal percentOwnership) { + this.percentOwnership = percentOwnership; + return this; + } - @SerializedName("me") - ME("me"), + /** Indicates whether the person is a representative of the associated legal entity. */ + public Builder setRepresentative(Boolean representative) { + this.representative = representative; + return this; + } - @SerializedName("mf") - MF("mf"), + /** The title or position the person holds in the associated legal entity. */ + public Builder setTitle(String title) { + this.title = title; + return this; + } + } + } - @SerializedName("mg") - MG("mg"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptAddresses { + /** + * 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; - @SerializedName("mh") - MH("mh"), + /** Kana Address. */ + @SerializedName("kana") + Kana kana; - @SerializedName("mk") - MK("mk"), + /** Kanji Address. */ + @SerializedName("kanji") + Kanji kanji; - @SerializedName("ml") - ML("ml"), + private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } - @SerializedName("mm") - MM("mm"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("mn") - MN("mn"), + public static class Builder { + private Map extraParams; - @SerializedName("mo") - MO("mo"), + private Kana kana; - @SerializedName("mp") - MP("mp"), + private Kanji kanji; - @SerializedName("mq") - MQ("mq"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.ScriptAddresses build() { + return new PersonCreateParams.ScriptAddresses(this.extraParams, this.kana, this.kanji); + } - @SerializedName("mr") - MR("mr"), + /** + * 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 + * PersonCreateParams.ScriptAddresses#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; + } - @SerializedName("ms") - MS("ms"), + /** + * 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 PersonCreateParams.ScriptAddresses#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("mt") - MT("mt"), + /** Kana Address. */ + public Builder setKana(PersonCreateParams.ScriptAddresses.Kana kana) { + this.kana = kana; + return this; + } - @SerializedName("mu") - MU("mu"), + /** Kanji Address. */ + public Builder setKanji(PersonCreateParams.ScriptAddresses.Kanji kanji) { + this.kanji = kanji; + return this; + } + } - @SerializedName("mv") - MV("mv"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; - @SerializedName("mw") - MW("mw"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; - @SerializedName("mx") - MX("mx"), + /** + * 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; - @SerializedName("my") - MY("my"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - @SerializedName("mz") - MZ("mz"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; - @SerializedName("na") - NA("na"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; - @SerializedName("nc") - NC("nc"), + /** State, county, province, or region. */ + @SerializedName("state") + String state; - @SerializedName("ne") - NE("ne"), + /** Town or cho-me. */ + @SerializedName("town") + String town; - @SerializedName("nf") - NF("nf"), + private Kana( + 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; + } - @SerializedName("ng") - NG("ng"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ni") - NI("ni"), + public static class Builder { + private String city; - @SerializedName("nl") - NL("nl"), + private String country; - @SerializedName("no") - NO("no"), + private Map extraParams; - @SerializedName("np") - NP("np"), + private String line1; - @SerializedName("nr") - NR("nr"), + private String line2; - @SerializedName("nu") - NU("nu"), + private String postalCode; - @SerializedName("nz") - NZ("nz"), + private String state; - @SerializedName("om") - OM("om"), + private String town; - @SerializedName("pa") - PA("pa"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.ScriptAddresses.Kana build() { + return new PersonCreateParams.ScriptAddresses.Kana( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("pe") - PE("pe"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("pf") - PF("pf"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("pg") - PG("pg"), + /** + * 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 PersonCreateParams.ScriptAddresses.Kana#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; + } - @SerializedName("ph") - PH("ph"), + /** + * 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 PersonCreateParams.ScriptAddresses.Kana#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("pk") - PK("pk"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("pl") - PL("pl"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("pm") - PM("pm"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("pn") - PN("pn"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("pr") - PR("pr"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } - @SerializedName("ps") - PS("ps"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; - @SerializedName("pt") - PT("pt"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; - @SerializedName("pw") - PW("pw"), + /** + * 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; - @SerializedName("py") - PY("py"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; - @SerializedName("qa") - QA("qa"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; - @SerializedName("qz") - QZ("qz"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; - @SerializedName("re") - RE("re"), + /** State, county, province, or region. */ + @SerializedName("state") + String state; - @SerializedName("ro") - RO("ro"), + /** Town or cho-me. */ + @SerializedName("town") + String town; - @SerializedName("rs") - RS("rs"), + private Kanji( + 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; + } - @SerializedName("ru") - RU("ru"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("rw") - RW("rw"), + public static class Builder { + private String city; - @SerializedName("sa") - SA("sa"), + private String country; - @SerializedName("sb") - SB("sb"), + private Map extraParams; - @SerializedName("sc") - SC("sc"), + private String line1; - @SerializedName("sd") - SD("sd"), + private String line2; - @SerializedName("se") - SE("se"), + private String postalCode; - @SerializedName("sg") - SG("sg"), + private String state; - @SerializedName("sh") - SH("sh"), + private String town; - @SerializedName("si") - SI("si"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.ScriptAddresses.Kanji build() { + return new PersonCreateParams.ScriptAddresses.Kanji( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("sj") - SJ("sj"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("sk") - SK("sk"), + /** + * Required. Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("sl") - SL("sl"), + /** + * 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 PersonCreateParams.ScriptAddresses.Kanji#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; + } - @SerializedName("sm") - SM("sm"), + /** + * 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 PersonCreateParams.ScriptAddresses.Kanji#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sn") - SN("sn"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("so") - SO("so"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("sr") - SR("sr"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("ss") - SS("ss"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("st") - ST("st"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } + } + } + } - @SerializedName("sv") - SV("sv"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptNames { + /** + * 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; - @SerializedName("sx") - SX("sx"), + /** Persons name in kana script. */ + @SerializedName("kana") + Kana kana; - @SerializedName("sy") - SY("sy"), + /** Persons name in kanji script. */ + @SerializedName("kanji") + Kanji kanji; - @SerializedName("sz") - SZ("sz"), + private ScriptNames(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } - @SerializedName("tc") - TC("tc"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("td") - TD("td"), + public static class Builder { + private Map extraParams; - @SerializedName("tf") - TF("tf"), + private Kana kana; - @SerializedName("tg") - TG("tg"), + private Kanji kanji; - @SerializedName("th") - TH("th"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.ScriptNames build() { + return new PersonCreateParams.ScriptNames(this.extraParams, this.kana, this.kanji); + } - @SerializedName("tj") - TJ("tj"), + /** + * 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 + * PersonCreateParams.ScriptNames#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; + } - @SerializedName("tk") - TK("tk"), + /** + * 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 PersonCreateParams.ScriptNames#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("tl") - TL("tl"), + /** Persons name in kana script. */ + public Builder setKana(PersonCreateParams.ScriptNames.Kana kana) { + this.kana = kana; + return this; + } - @SerializedName("tm") - TM("tm"), + /** Persons name in kanji script. */ + public Builder setKanji(PersonCreateParams.ScriptNames.Kanji kanji) { + this.kanji = kanji; + return this; + } + } - @SerializedName("tn") - TN("tn"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** + * 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; - @SerializedName("to") - TO("to"), + /** The person's first or given name. */ + @SerializedName("given_name") + String givenName; - @SerializedName("tr") - TR("tr"), + /** The person's last or family name. */ + @SerializedName("surname") + String surname; - @SerializedName("tt") - TT("tt"), + private Kana(Map extraParams, String givenName, String surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } - @SerializedName("tv") - TV("tv"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("tw") - TW("tw"), + public static class Builder { + private Map extraParams; - @SerializedName("tz") - TZ("tz"), + private String givenName; - @SerializedName("ua") - UA("ua"), + private String surname; - @SerializedName("ug") - UG("ug"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.ScriptNames.Kana build() { + return new PersonCreateParams.ScriptNames.Kana( + this.extraParams, this.givenName, this.surname); + } - @SerializedName("um") - UM("um"), + /** + * 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 PersonCreateParams.ScriptNames.Kana#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; + } - @SerializedName("us") - US("us"), + /** + * 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 PersonCreateParams.ScriptNames.Kana#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("uy") - UY("uy"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("uz") - UZ("uz"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + } - @SerializedName("va") - VA("va"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** + * 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; - @SerializedName("vc") - VC("vc"), + /** The person's first or given name. */ + @SerializedName("given_name") + String givenName; - @SerializedName("ve") - VE("ve"), + /** The person's last or family name. */ + @SerializedName("surname") + String surname; - @SerializedName("vg") - VG("vg"), + private Kanji(Map extraParams, String givenName, String surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } - @SerializedName("vi") - VI("vi"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("vn") - VN("vn"), + public static class Builder { + private Map extraParams; - @SerializedName("vu") - VU("vu"), + private String givenName; - @SerializedName("wf") - WF("wf"), + private String surname; - @SerializedName("ws") - WS("ws"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.ScriptNames.Kanji build() { + return new PersonCreateParams.ScriptNames.Kanji( + this.extraParams, this.givenName, this.surname); + } - @SerializedName("xx") - XX("xx"), + /** + * 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 PersonCreateParams.ScriptNames.Kanji#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; + } - @SerializedName("ye") - YE("ye"), + /** + * 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 PersonCreateParams.ScriptNames.Kanji#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("yt") - YT("yt"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("za") - ZA("za"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } + } + } + } - @SerializedName("zm") - ZM("zm"), + public enum LegalGender implements ApiRequestParams.EnumParam { + @SerializedName("female") + FEMALE("female"), - @SerializedName("zw") - ZW("zw"); + @SerializedName("male") + MALE("male"); @Getter(onMethod_ = {@Override}) private final String value; - Nationality(String value) { + LegalGender(String value) { this.value = value; } } diff --git a/src/main/java/com/stripe/param/v2/core/accounts/PersonListParams.java b/src/main/java/com/stripe/param/v2/core/accounts/PersonListParams.java index 5bd85271b4b..c27d8412a60 100644 --- a/src/main/java/com/stripe/param/v2/core/accounts/PersonListParams.java +++ b/src/main/java/com/stripe/param/v2/core/accounts/PersonListParams.java @@ -22,9 +22,9 @@ public class PersonListParams extends ApiRequestParams { /** The upper limit on the number of accounts returned by the List Account request. */ @SerializedName("limit") - Integer limit; + Long limit; - private PersonListParams(Map extraParams, Integer limit) { + private PersonListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public PersonListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** The upper limit on the number of accounts returned by the List Account request. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/core/accounts/PersonUpdateParams.java b/src/main/java/com/stripe/param/v2/core/accounts/PersonUpdateParams.java index 3cfc266cc5a..45700552040 100644 --- a/src/main/java/com/stripe/param/v2/core/accounts/PersonUpdateParams.java +++ b/src/main/java/com/stripe/param/v2/core/accounts/PersonUpdateParams.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; import com.stripe.param.common.EmptyParam; +import java.math.BigDecimal; import java.time.Instant; import java.util.ArrayList; import java.util.HashMap; @@ -76,7 +77,7 @@ public class PersonUpdateParams extends ApiRequestParams { /** The nationalities (countries) this person is associated with. */ @SerializedName("nationalities") - List nationalities; + List nationalities; /** The phone number for this person. */ @SerializedName("phone") @@ -92,11 +93,11 @@ public class PersonUpdateParams extends ApiRequestParams { /** The script addresses (e.g., non-Latin characters) associated with the person. */ @SerializedName("script_addresses") - Object scriptAddresses; + ScriptAddresses scriptAddresses; /** The script names (e.g. non-Latin characters) associated with the person. */ @SerializedName("script_names") - Object scriptNames; + ScriptNames scriptNames; /** The person's last name. */ @SerializedName("surname") @@ -115,12 +116,12 @@ private PersonUpdateParams( List idNumbers, LegalGender legalGender, Map metadata, - List nationalities, + List nationalities, Object phone, PoliticalExposure politicalExposure, Relationship relationship, - Object scriptAddresses, - Object scriptNames, + ScriptAddresses scriptAddresses, + ScriptNames scriptNames, Object surname) { this.additionalAddresses = additionalAddresses; this.additionalNames = additionalNames; @@ -172,7 +173,7 @@ public static class Builder { private Map metadata; - private List nationalities; + private List nationalities; private Object phone; @@ -180,9 +181,9 @@ public static class Builder { private Relationship relationship; - private Object scriptAddresses; + private ScriptAddresses scriptAddresses; - private Object scriptNames; + private ScriptNames scriptNames; private Object surname; @@ -421,7 +422,7 @@ public Builder putAllMetadata(Map map) { * call, and subsequent calls adds additional elements to the original list. See {@link * PersonUpdateParams#nationalities} for the field documentation. */ - public Builder addNationality(PersonUpdateParams.Nationality element) { + public Builder addNationality(String element) { if (this.nationalities == null) { this.nationalities = new ArrayList<>(); } @@ -434,7 +435,7 @@ public Builder addNationality(PersonUpdateParams.Nationality element) { * call, and subsequent calls adds additional elements to the original list. See {@link * PersonUpdateParams#nationalities} for the field documentation. */ - public Builder addAllNationality(List elements) { + public Builder addAllNationality(List elements) { if (this.nationalities == null) { this.nationalities = new ArrayList<>(); } @@ -472,24 +473,12 @@ public Builder setScriptAddresses(PersonUpdateParams.ScriptAddresses scriptAddre return this; } - /** The script addresses (e.g., non-Latin characters) associated with the person. */ - public Builder setScriptAddresses(EmptyParam scriptAddresses) { - this.scriptAddresses = scriptAddresses; - return this; - } - /** The script names (e.g. non-Latin characters) associated with the person. */ public Builder setScriptNames(PersonUpdateParams.ScriptNames scriptNames) { this.scriptNames = scriptNames; return this; } - /** The script names (e.g. non-Latin characters) associated with the person. */ - public Builder setScriptNames(EmptyParam scriptNames) { - this.scriptNames = scriptNames; - return this; - } - /** The person's last name. */ public Builder setSurname(String surname) { this.surname = surname; @@ -515,7 +504,7 @@ public static class AdditionalAddress { * 3166-1 alpha-2). */ @SerializedName("country") - ApiRequestParams.EnumParam country; + Object country; /** * Map of extra parameters for custom features not available in this client library. The content @@ -552,7 +541,7 @@ public static class AdditionalAddress { private AdditionalAddress( Object city, - ApiRequestParams.EnumParam country, + Object country, Map extraParams, Object line1, Object line2, @@ -578,7 +567,7 @@ public static Builder builder() { public static class Builder { private Object city; - private ApiRequestParams.EnumParam country; + private Object country; private Map extraParams; @@ -624,7 +613,7 @@ public Builder setCity(EmptyParam city) { * Two-letter country code (ISO * 3166-1 alpha-2). */ - public Builder setCountry(PersonUpdateParams.AdditionalAddress.Country country) { + public Builder setCountry(String country) { this.country = country; return this; } @@ -731,5762 +720,1326 @@ public Builder setTown(EmptyParam town) { } } - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("registered") + REGISTERED("registered"); - @SerializedName("af") - AF("af"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("ag") - AG("ag"), + Purpose(String value) { + this.value = value; + } + } + } - @SerializedName("ai") - AI("ai"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalName { + /** + * 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; - @SerializedName("al") - AL("al"), + /** The person's full name. */ + @SerializedName("full_name") + Object fullName; - @SerializedName("am") - AM("am"), + /** The person's first or given name. */ + @SerializedName("given_name") + Object givenName; - @SerializedName("ao") - AO("ao"), + /** Required. The purpose or type of the additional name. */ + @SerializedName("purpose") + Purpose purpose; - @SerializedName("aq") - AQ("aq"), + /** The person's last or family name. */ + @SerializedName("surname") + Object surname; - @SerializedName("ar") - AR("ar"), + private AdditionalName( + Map extraParams, + Object fullName, + Object givenName, + Purpose purpose, + Object surname) { + this.extraParams = extraParams; + this.fullName = fullName; + this.givenName = givenName; + this.purpose = purpose; + this.surname = surname; + } - @SerializedName("as") - AS("as"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("at") - AT("at"), + public static class Builder { + private Map extraParams; - @SerializedName("au") - AU("au"), + private Object fullName; - @SerializedName("aw") - AW("aw"), + private Object givenName; - @SerializedName("ax") - AX("ax"), + private Purpose purpose; - @SerializedName("az") - AZ("az"), + private Object surname; - @SerializedName("ba") - BA("ba"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.AdditionalName build() { + return new PersonUpdateParams.AdditionalName( + this.extraParams, this.fullName, this.givenName, this.purpose, this.surname); + } - @SerializedName("bb") - BB("bb"), + /** + * 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 + * PersonUpdateParams.AdditionalName#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; + } - @SerializedName("bd") - BD("bd"), + /** + * 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 PersonUpdateParams.AdditionalName#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("be") - BE("be"), + /** The person's full name. */ + public Builder setFullName(String fullName) { + this.fullName = fullName; + return this; + } - @SerializedName("bf") - BF("bf"), + /** The person's full name. */ + public Builder setFullName(EmptyParam fullName) { + this.fullName = fullName; + return this; + } - @SerializedName("bg") - BG("bg"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("bh") - BH("bh"), + /** The person's first or given name. */ + public Builder setGivenName(EmptyParam givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("bi") - BI("bi"), + /** Required. The purpose or type of the additional name. */ + public Builder setPurpose(PersonUpdateParams.AdditionalName.Purpose purpose) { + this.purpose = purpose; + return this; + } - @SerializedName("bj") - BJ("bj"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } - @SerializedName("bl") - BL("bl"), + /** The person's last or family name. */ + public Builder setSurname(EmptyParam surname) { + this.surname = surname; + return this; + } + } - @SerializedName("bm") - BM("bm"), + public enum Purpose implements ApiRequestParams.EnumParam { + @SerializedName("alias") + ALIAS("alias"), - @SerializedName("bn") - BN("bn"), + @SerializedName("maiden") + MAIDEN("maiden"); - @SerializedName("bo") - BO("bo"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("bq") - BQ("bq"), + Purpose(String value) { + this.value = value; + } + } + } - @SerializedName("br") - BR("br"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalTermsOfService { + /** Stripe terms of service agreement. */ + @SerializedName("account") + Account account; - @SerializedName("bs") - BS("bs"), + /** + * 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; - @SerializedName("bt") - BT("bt"), + private AdditionalTermsOfService(Account account, Map extraParams) { + this.account = account; + this.extraParams = extraParams; + } - @SerializedName("bv") - BV("bv"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("bw") - BW("bw"), + public static class Builder { + private Account account; - @SerializedName("by") - BY("by"), + private Map extraParams; - @SerializedName("bz") - BZ("bz"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.AdditionalTermsOfService build() { + return new PersonUpdateParams.AdditionalTermsOfService(this.account, this.extraParams); + } - @SerializedName("ca") - CA("ca"), + /** Stripe terms of service agreement. */ + public Builder setAccount(PersonUpdateParams.AdditionalTermsOfService.Account account) { + this.account = account; + return this; + } - @SerializedName("cc") - CC("cc"), + /** + * 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 + * PersonUpdateParams.AdditionalTermsOfService#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; + } - @SerializedName("cd") - CD("cd"), + /** + * 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 PersonUpdateParams.AdditionalTermsOfService#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } - @SerializedName("cf") - CF("cf"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Account { + /** + * The time when the Account's representative accepted the terms of service. Represented as a + * RFC 3339 date & time UTC value in millisecond precision, for example: + * 2022-09-18T13:22:18.123Z. + */ + @SerializedName("date") + Instant date; - @SerializedName("cg") - CG("cg"), + /** + * 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; - @SerializedName("ch") - CH("ch"), + /** The IP address from which the Account's representative accepted the terms of service. */ + @SerializedName("ip") + Object ip; - @SerializedName("ci") - CI("ci"), + /** + * The user agent of the browser from which the Account's representative accepted the terms of + * service. + */ + @SerializedName("user_agent") + Object userAgent; - @SerializedName("ck") - CK("ck"), + private Account(Instant date, Map extraParams, Object ip, Object userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } - @SerializedName("cl") - CL("cl"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("cm") - CM("cm"), + public static class Builder { + private Instant date; - @SerializedName("cn") - CN("cn"), + private Map extraParams; - @SerializedName("co") - CO("co"), + private Object ip; - @SerializedName("cr") - CR("cr"), + private Object userAgent; - @SerializedName("cu") - CU("cu"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.AdditionalTermsOfService.Account build() { + return new PersonUpdateParams.AdditionalTermsOfService.Account( + this.date, this.extraParams, this.ip, this.userAgent); + } - @SerializedName("cv") - CV("cv"), + /** + * The time when the Account's representative accepted the terms of service. Represented as + * a RFC 3339 date & time UTC value in millisecond precision, for example: + * 2022-09-18T13:22:18.123Z. + */ + public Builder setDate(Instant date) { + this.date = date; + return this; + } - @SerializedName("cw") - CW("cw"), + /** + * 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 PersonUpdateParams.AdditionalTermsOfService.Account#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; + } - @SerializedName("cx") - CX("cx"), + /** + * 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 PersonUpdateParams.AdditionalTermsOfService.Account#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("cy") - CY("cy"), + /** The IP address from which the Account's representative accepted the terms of service. */ + public Builder setIp(String ip) { + this.ip = ip; + return this; + } - @SerializedName("cz") - CZ("cz"), + /** The IP address from which the Account's representative accepted the terms of service. */ + public Builder setIp(EmptyParam ip) { + this.ip = ip; + return this; + } - @SerializedName("de") - DE("de"), + /** + * The user agent of the browser from which the Account's representative accepted the terms + * of service. + */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } - @SerializedName("dj") - DJ("dj"), + /** + * The user agent of the browser from which the Account's representative accepted the terms + * of service. + */ + public Builder setUserAgent(EmptyParam userAgent) { + this.userAgent = userAgent; + return this; + } + } + } + } - @SerializedName("dk") - DK("dk"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Address { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; - @SerializedName("dm") - DM("dm"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; - @SerializedName("do") - DO("do"), + /** + * 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; - @SerializedName("dz") - DZ("dz"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; - @SerializedName("ec") - EC("ec"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; - @SerializedName("ee") - EE("ee"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; - @SerializedName("eg") - EG("eg"), + /** State, county, province, or region. */ + @SerializedName("state") + Object state; - @SerializedName("eh") - EH("eh"), + /** Town or cho-me. */ + @SerializedName("town") + Object town; - @SerializedName("er") - ER("er"), + private Address( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state, + Object 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; + } - @SerializedName("es") - ES("es"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("et") - ET("et"), + public static class Builder { + private Object city; - @SerializedName("fi") - FI("fi"), + private Object country; - @SerializedName("fj") - FJ("fj"), + private Map extraParams; - @SerializedName("fk") - FK("fk"), + private Object line1; - @SerializedName("fm") - FM("fm"), + private Object line2; - @SerializedName("fo") - FO("fo"), + private Object postalCode; - @SerializedName("fr") - FR("fr"), + private Object state; - @SerializedName("ga") - GA("ga"), + private Object town; - @SerializedName("gb") - GB("gb"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.Address build() { + return new PersonUpdateParams.Address( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("gd") - GD("gd"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("ge") - GE("ge"), + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } - @SerializedName("gf") - GF("gf"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("gg") - GG("gg"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("gh") - GH("gh"), + /** + * 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 + * PersonUpdateParams.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; + } - @SerializedName("gi") - GI("gi"), + /** + * 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 PersonUpdateParams.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; + } - @SerializedName("gl") - GL("gl"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("gm") - GM("gm"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } - @SerializedName("gn") - GN("gn"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("gp") - GP("gp"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } - @SerializedName("gq") - GQ("gq"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("gr") - GR("gr"), + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("gs") - GS("gs"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("gt") - GT("gt"), + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } - @SerializedName("gu") - GU("gu"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } - @SerializedName("gw") - GW("gw"), + /** Town or cho-me. */ + public Builder setTown(EmptyParam town) { + this.town = town; + return this; + } + } + } - @SerializedName("gy") - GY("gy"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class DateOfBirth { + /** Required. The day of the birth. */ + @SerializedName("day") + Long day; - @SerializedName("hk") - HK("hk"), + /** + * 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; - @SerializedName("hm") - HM("hm"), + /** Required. The month of birth. */ + @SerializedName("month") + Long month; - @SerializedName("hn") - HN("hn"), + /** Required. The year of birth. */ + @SerializedName("year") + Long year; - @SerializedName("hr") - HR("hr"), + private DateOfBirth(Long day, Map extraParams, Long month, Long year) { + this.day = day; + this.extraParams = extraParams; + this.month = month; + this.year = year; + } - @SerializedName("ht") - HT("ht"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("hu") - HU("hu"), + public static class Builder { + private Long day; - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), + private Map extraParams; - @SerializedName("it") - IT("it"), + private Long month; - @SerializedName("je") - JE("je"), + private Long year; - @SerializedName("jm") - JM("jm"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.DateOfBirth build() { + return new PersonUpdateParams.DateOfBirth( + this.day, this.extraParams, this.month, this.year); + } - @SerializedName("jo") - JO("jo"), + /** Required. The day of the birth. */ + public Builder setDay(Long day) { + this.day = day; + return this; + } - @SerializedName("jp") - JP("jp"), + /** + * 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 + * PersonUpdateParams.DateOfBirth#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; + } - @SerializedName("ke") - KE("ke"), + /** + * 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 PersonUpdateParams.DateOfBirth#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("kg") - KG("kg"), + /** Required. The month of birth. */ + public Builder setMonth(Long month) { + this.month = month; + return this; + } - @SerializedName("kh") - KH("kh"), + /** Required. The year of birth. */ + public Builder setYear(Long year) { + this.year = year; + return this; + } + } + } - @SerializedName("ki") - KI("ki"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Documents { + /** + * One or more documents that demonstrate proof that this person is authorized to represent the + * company. + */ + @SerializedName("company_authorization") + CompanyAuthorization companyAuthorization; - @SerializedName("km") - KM("km"), + /** + * 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; - @SerializedName("kn") - KN("kn"), + /** One or more documents showing the person’s passport page with photo and personal data. */ + @SerializedName("passport") + Passport passport; - @SerializedName("kp") - KP("kp"), + /** An identifying document showing the person's name, either a passport or local ID card. */ + @SerializedName("primary_verification") + PrimaryVerification primaryVerification; - @SerializedName("kr") - KR("kr"), + /** + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. + */ + @SerializedName("secondary_verification") + SecondaryVerification secondaryVerification; - @SerializedName("kw") - KW("kw"), + /** + * One or more documents showing the person’s visa required for living in the country where they + * are residing. + */ + @SerializedName("visa") + Visa visa; - @SerializedName("ky") - KY("ky"), + private Documents( + CompanyAuthorization companyAuthorization, + Map extraParams, + Passport passport, + PrimaryVerification primaryVerification, + SecondaryVerification secondaryVerification, + Visa visa) { + this.companyAuthorization = companyAuthorization; + this.extraParams = extraParams; + this.passport = passport; + this.primaryVerification = primaryVerification; + this.secondaryVerification = secondaryVerification; + this.visa = visa; + } - @SerializedName("kz") - KZ("kz"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("la") - LA("la"), + public static class Builder { + private CompanyAuthorization companyAuthorization; - @SerializedName("lb") - LB("lb"), + private Map extraParams; - @SerializedName("lc") - LC("lc"), + private Passport passport; - @SerializedName("li") - LI("li"), + private PrimaryVerification primaryVerification; - @SerializedName("lk") - LK("lk"), + private SecondaryVerification secondaryVerification; - @SerializedName("lr") - LR("lr"), + private Visa visa; - @SerializedName("ls") - LS("ls"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.Documents build() { + return new PersonUpdateParams.Documents( + this.companyAuthorization, + this.extraParams, + this.passport, + this.primaryVerification, + this.secondaryVerification, + this.visa); + } - @SerializedName("lt") - LT("lt"), + /** + * One or more documents that demonstrate proof that this person is authorized to represent + * the company. + */ + public Builder setCompanyAuthorization( + PersonUpdateParams.Documents.CompanyAuthorization companyAuthorization) { + this.companyAuthorization = companyAuthorization; + return this; + } - @SerializedName("lu") - LU("lu"), + /** + * 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 + * PersonUpdateParams.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; + } - @SerializedName("lv") - LV("lv"), + /** + * 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 PersonUpdateParams.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; + } - @SerializedName("ly") - LY("ly"), + /** One or more documents showing the person’s passport page with photo and personal data. */ + public Builder setPassport(PersonUpdateParams.Documents.Passport passport) { + this.passport = passport; + return this; + } - @SerializedName("ma") - MA("ma"), + /** An identifying document showing the person's name, either a passport or local ID card. */ + public Builder setPrimaryVerification( + PersonUpdateParams.Documents.PrimaryVerification primaryVerification) { + this.primaryVerification = primaryVerification; + return this; + } - @SerializedName("mc") - MC("mc"), + /** + * A document showing address, either a passport, local ID card, or utility bill from a + * well-known utility company. + */ + public Builder setSecondaryVerification( + PersonUpdateParams.Documents.SecondaryVerification secondaryVerification) { + this.secondaryVerification = secondaryVerification; + return this; + } - @SerializedName("md") - MD("md"), + /** + * One or more documents showing the person’s visa required for living in the country where + * they are residing. + */ + public Builder setVisa(PersonUpdateParams.Documents.Visa visa) { + this.visa = visa; + return this; + } + } - @SerializedName("me") - ME("me"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class CompanyAuthorization { + /** + * 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; - @SerializedName("mf") - MF("mf"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("mg") - MG("mg"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("mh") - MH("mh"), + private CompanyAuthorization(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("mk") - MK("mk"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ml") - ML("ml"), + public static class Builder { + private Map extraParams; - @SerializedName("mm") - MM("mm"), + private List files; - @SerializedName("mn") - MN("mn"), + private Type type; - @SerializedName("mo") - MO("mo"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.Documents.CompanyAuthorization build() { + return new PersonUpdateParams.Documents.CompanyAuthorization( + this.extraParams, this.files, this.type); + } - @SerializedName("mp") - MP("mp"), + /** + * 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 PersonUpdateParams.Documents.CompanyAuthorization#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; + } - @SerializedName("mq") - MQ("mq"), + /** + * 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 PersonUpdateParams.Documents.CompanyAuthorization#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("mr") - MR("mr"), + /** + * 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 + * PersonUpdateParams.Documents.CompanyAuthorization#files} for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - - public enum Purpose implements ApiRequestParams.EnumParam { - @SerializedName("registered") - REGISTERED("registered"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Purpose(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AdditionalName { - /** - * 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 person's full name. */ - @SerializedName("full_name") - Object fullName; - - /** The person's first or given name. */ - @SerializedName("given_name") - Object givenName; - - /** Required. The purpose or type of the additional name. */ - @SerializedName("purpose") - Purpose purpose; - - /** The person's last or family name. */ - @SerializedName("surname") - Object surname; - - private AdditionalName( - Map extraParams, - Object fullName, - Object givenName, - Purpose purpose, - Object surname) { - this.extraParams = extraParams; - this.fullName = fullName; - this.givenName = givenName; - this.purpose = purpose; - this.surname = surname; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Object fullName; - - private Object givenName; - - private Purpose purpose; - - private Object surname; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.AdditionalName build() { - return new PersonUpdateParams.AdditionalName( - this.extraParams, this.fullName, this.givenName, this.purpose, this.surname); - } - - /** - * 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 - * PersonUpdateParams.AdditionalName#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 PersonUpdateParams.AdditionalName#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 person's full name. */ - public Builder setFullName(String fullName) { - this.fullName = fullName; - return this; - } - - /** The person's full name. */ - public Builder setFullName(EmptyParam fullName) { - this.fullName = fullName; - return this; - } - - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** The person's first or given name. */ - public Builder setGivenName(EmptyParam givenName) { - this.givenName = givenName; - return this; - } - - /** Required. The purpose or type of the additional name. */ - public Builder setPurpose(PersonUpdateParams.AdditionalName.Purpose purpose) { - this.purpose = purpose; - return this; - } - - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; - return this; - } - - /** The person's last or family name. */ - public Builder setSurname(EmptyParam surname) { - this.surname = surname; - return this; - } - } - - public enum Purpose implements ApiRequestParams.EnumParam { - @SerializedName("alias") - ALIAS("alias"), - - @SerializedName("maiden") - MAIDEN("maiden"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Purpose(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class AdditionalTermsOfService { - /** Stripe terms of service agreement. */ - @SerializedName("account") - Account account; - - /** - * 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 AdditionalTermsOfService(Account account, Map extraParams) { - this.account = account; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Account account; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.AdditionalTermsOfService build() { - return new PersonUpdateParams.AdditionalTermsOfService(this.account, this.extraParams); - } - - /** Stripe terms of service agreement. */ - public Builder setAccount(PersonUpdateParams.AdditionalTermsOfService.Account account) { - this.account = account; - 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 - * PersonUpdateParams.AdditionalTermsOfService#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 PersonUpdateParams.AdditionalTermsOfService#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Account { - /** - * The time when the Account's representative accepted the terms of service. Represented as a - * RFC 3339 date & time UTC value in millisecond precision, for example: - * 2022-09-18T13:22:18.123Z. - */ - @SerializedName("date") - Instant date; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** The IP address from which the Account's representative accepted the terms of service. */ - @SerializedName("ip") - Object ip; - - /** - * The user agent of the browser from which the Account's representative accepted the terms of - * service. - */ - @SerializedName("user_agent") - Object userAgent; - - private Account(Instant date, Map extraParams, Object ip, Object userAgent) { - this.date = date; - this.extraParams = extraParams; - this.ip = ip; - this.userAgent = userAgent; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Instant date; - - private Map extraParams; - - private Object ip; - - private Object userAgent; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.AdditionalTermsOfService.Account build() { - return new PersonUpdateParams.AdditionalTermsOfService.Account( - this.date, this.extraParams, this.ip, this.userAgent); - } - - /** - * The time when the Account's representative accepted the terms of service. Represented as - * a RFC 3339 date & time UTC value in millisecond precision, for example: - * 2022-09-18T13:22:18.123Z. - */ - public Builder setDate(Instant date) { - this.date = date; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PersonUpdateParams.AdditionalTermsOfService.Account#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 PersonUpdateParams.AdditionalTermsOfService.Account#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** The IP address from which the Account's representative accepted the terms of service. */ - public Builder setIp(String ip) { - this.ip = ip; - return this; - } - - /** The IP address from which the Account's representative accepted the terms of service. */ - public Builder setIp(EmptyParam ip) { - this.ip = ip; - return this; - } - - /** - * The user agent of the browser from which the Account's representative accepted the terms - * of service. - */ - public Builder setUserAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - - /** - * The user agent of the browser from which the Account's representative accepted the terms - * of service. - */ - public Builder setUserAgent(EmptyParam userAgent) { - this.userAgent = userAgent; - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Address { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - Object city; - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - @SerializedName("country") - ApiRequestParams.EnumParam 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") - Object line1; - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - Object line2; - - /** ZIP or postal code. */ - @SerializedName("postal_code") - Object postalCode; - - /** State, county, province, or region. */ - @SerializedName("state") - Object state; - - /** Town or cho-me. */ - @SerializedName("town") - Object town; - - private Address( - Object city, - ApiRequestParams.EnumParam country, - Map extraParams, - Object line1, - Object line2, - Object postalCode, - Object state, - Object 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 Object city; - - private ApiRequestParams.EnumParam country; - - private Map extraParams; - - private Object line1; - - private Object line2; - - private Object postalCode; - - private Object state; - - private Object town; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.Address build() { - return new PersonUpdateParams.Address( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(EmptyParam city) { - this.city = city; - return this; - } - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - public Builder setCountry(PersonUpdateParams.Address.Country country) { - this.country = country; - return this; - } - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - public Builder setCountry(EmptyParam 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 - * PersonUpdateParams.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 PersonUpdateParams.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 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(EmptyParam 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; - } - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(EmptyParam line2) { - this.line2 = line2; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(EmptyParam postalCode) { - this.postalCode = postalCode; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(EmptyParam state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(EmptyParam town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class DateOfBirth { - /** Required. The day of the birth. */ - @SerializedName("day") - Integer day; - - /** - * Map of extra parameters for custom features not available in this client library. The content - * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each - * key/value pair is serialized as if the key is a root-level field (serialized) name in this - * param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Required. The month of birth. */ - @SerializedName("month") - Integer month; - - /** Required. The year of birth. */ - @SerializedName("year") - Integer year; - - private DateOfBirth(Integer day, Map extraParams, Integer month, Integer year) { - this.day = day; - this.extraParams = extraParams; - this.month = month; - this.year = year; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Integer day; - - private Map extraParams; - - private Integer month; - - private Integer year; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.DateOfBirth build() { - return new PersonUpdateParams.DateOfBirth( - this.day, this.extraParams, this.month, this.year); - } - - /** Required. The day of the birth. */ - public Builder setDay(Integer day) { - this.day = day; - 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 - * PersonUpdateParams.DateOfBirth#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 PersonUpdateParams.DateOfBirth#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Required. The month of birth. */ - public Builder setMonth(Integer month) { - this.month = month; - return this; - } - - /** Required. The year of birth. */ - public Builder setYear(Integer year) { - this.year = year; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Documents { - /** - * One or more documents that demonstrate proof that this person is authorized to represent the - * company. - */ - @SerializedName("company_authorization") - CompanyAuthorization companyAuthorization; - - /** - * 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 documents showing the person’s passport page with photo and personal data. */ - @SerializedName("passport") - Passport passport; - - /** An identifying document showing the person's name, either a passport or local ID card. */ - @SerializedName("primary_verification") - Object primaryVerification; - - /** - * A document showing address, either a passport, local ID card, or utility bill from a - * well-known utility company. - */ - @SerializedName("secondary_verification") - Object secondaryVerification; - - /** - * One or more documents showing the person’s visa required for living in the country where they - * are residing. - */ - @SerializedName("visa") - Visa visa; - - private Documents( - CompanyAuthorization companyAuthorization, - Map extraParams, - Passport passport, - Object primaryVerification, - Object secondaryVerification, - Visa visa) { - this.companyAuthorization = companyAuthorization; - this.extraParams = extraParams; - this.passport = passport; - this.primaryVerification = primaryVerification; - this.secondaryVerification = secondaryVerification; - this.visa = visa; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private CompanyAuthorization companyAuthorization; - - private Map extraParams; - - private Passport passport; - - private Object primaryVerification; - - private Object secondaryVerification; - - private Visa visa; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.Documents build() { - return new PersonUpdateParams.Documents( - this.companyAuthorization, - this.extraParams, - this.passport, - this.primaryVerification, - this.secondaryVerification, - this.visa); - } - - /** - * One or more documents that demonstrate proof that this person is authorized to represent - * the company. - */ - public Builder setCompanyAuthorization( - PersonUpdateParams.Documents.CompanyAuthorization companyAuthorization) { - this.companyAuthorization = companyAuthorization; - 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 - * PersonUpdateParams.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 PersonUpdateParams.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; - } - - /** One or more documents showing the person’s passport page with photo and personal data. */ - public Builder setPassport(PersonUpdateParams.Documents.Passport passport) { - this.passport = passport; - return this; - } - - /** An identifying document showing the person's name, either a passport or local ID card. */ - public Builder setPrimaryVerification( - PersonUpdateParams.Documents.PrimaryVerification primaryVerification) { - this.primaryVerification = primaryVerification; - return this; - } - - /** An identifying document showing the person's name, either a passport or local ID card. */ - public Builder setPrimaryVerification(EmptyParam primaryVerification) { - this.primaryVerification = primaryVerification; - return this; - } - - /** - * A document showing address, either a passport, local ID card, or utility bill from a - * well-known utility company. - */ - public Builder setSecondaryVerification( - PersonUpdateParams.Documents.SecondaryVerification secondaryVerification) { - this.secondaryVerification = secondaryVerification; - return this; - } - - /** - * A document showing address, either a passport, local ID card, or utility bill from a - * well-known utility company. - */ - public Builder setSecondaryVerification(EmptyParam secondaryVerification) { - this.secondaryVerification = secondaryVerification; - return this; - } - - /** - * One or more documents showing the person’s visa required for living in the country where - * they are residing. - */ - public Builder setVisa(PersonUpdateParams.Documents.Visa visa) { - this.visa = visa; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class CompanyAuthorization { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private CompanyAuthorization(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.Documents.CompanyAuthorization build() { - return new PersonUpdateParams.Documents.CompanyAuthorization( - this.extraParams, this.files, this.type); - } - - /** - * 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 PersonUpdateParams.Documents.CompanyAuthorization#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 PersonUpdateParams.Documents.CompanyAuthorization#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 - * PersonUpdateParams.Documents.CompanyAuthorization#files} for the field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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 - * PersonUpdateParams.Documents.CompanyAuthorization#files} for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - public Builder setType(PersonUpdateParams.Documents.CompanyAuthorization.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Passport { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private Passport(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.Documents.Passport build() { - return new PersonUpdateParams.Documents.Passport(this.extraParams, this.files, this.type); - } - - /** - * 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 PersonUpdateParams.Documents.Passport#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 PersonUpdateParams.Documents.Passport#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 - * PersonUpdateParams.Documents.Passport#files} for the field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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 - * PersonUpdateParams.Documents.Passport#files} for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - public Builder setType(PersonUpdateParams.Documents.Passport.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PrimaryVerification { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - @SerializedName("front_back") - FrontBack frontBack; - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - @SerializedName("type") - Type type; - - private PrimaryVerification(Map extraParams, FrontBack frontBack, Type type) { - this.extraParams = extraParams; - this.frontBack = frontBack; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private FrontBack frontBack; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.Documents.PrimaryVerification build() { - return new PersonUpdateParams.Documents.PrimaryVerification( - this.extraParams, this.frontBack, this.type); - } - - /** - * 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 PersonUpdateParams.Documents.PrimaryVerification#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 PersonUpdateParams.Documents.PrimaryVerification#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - public Builder setFrontBack( - PersonUpdateParams.Documents.PrimaryVerification.FrontBack frontBack) { - this.frontBack = frontBack; - return this; - } - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - public Builder setType(PersonUpdateParams.Documents.PrimaryVerification.Type type) { - this.type = type; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FrontBack { - /** - * A file upload token - * representing the back of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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") - Object 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; - - /** - * A file upload token - * representing the front of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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") - Object front; - - private FrontBack(Object back, Map extraParams, Object front) { - this.back = back; - this.extraParams = extraParams; - this.front = front; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object back; - - private Map extraParams; - - private Object front; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.Documents.PrimaryVerification.FrontBack build() { - return new PersonUpdateParams.Documents.PrimaryVerification.FrontBack( - this.back, this.extraParams, this.front); - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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; - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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(EmptyParam 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 PersonUpdateParams.Documents.PrimaryVerification.FrontBack#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 PersonUpdateParams.Documents.PrimaryVerification.FrontBack#extraParams} - * for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * A file upload - * token representing the front of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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 setFront(String front) { - this.front = front; - return this; - } - - /** - * A file upload - * token representing the front of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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 setFront(EmptyParam front) { - this.front = front; - return this; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("front_back") - FRONT_BACK("front_back"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class SecondaryVerification { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - @SerializedName("front_back") - FrontBack frontBack; - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - @SerializedName("type") - Type type; - - private SecondaryVerification( - Map extraParams, FrontBack frontBack, Type type) { - this.extraParams = extraParams; - this.frontBack = frontBack; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private FrontBack frontBack; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.Documents.SecondaryVerification build() { - return new PersonUpdateParams.Documents.SecondaryVerification( - this.extraParams, this.frontBack, this.type); - } - - /** - * 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 PersonUpdateParams.Documents.SecondaryVerification#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 PersonUpdateParams.Documents.SecondaryVerification#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. The file upload tokens - * referring to each side of the document. - */ - public Builder setFrontBack( - PersonUpdateParams.Documents.SecondaryVerification.FrontBack frontBack) { - this.frontBack = frontBack; - return this; - } - - /** - * Required. The format of the verification document. Currently supports - * {@code front_back} only. - */ - public Builder setType(PersonUpdateParams.Documents.SecondaryVerification.Type type) { - this.type = type; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class FrontBack { - /** - * A file upload token - * representing the back of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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") - Object 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; - - /** - * A file upload token - * representing the front of the verification document. The purpose of the uploaded file - * should be 'identity_document'. 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") - Object front; - - private FrontBack(Object back, Map extraParams, Object front) { - this.back = back; - this.extraParams = extraParams; - this.front = front; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object back; - - private Map extraParams; - - private Object front; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.Documents.SecondaryVerification.FrontBack build() { - return new PersonUpdateParams.Documents.SecondaryVerification.FrontBack( - this.back, this.extraParams, this.front); - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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; - } - - /** - * A file upload - * token representing the back of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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(EmptyParam 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 - * PersonUpdateParams.Documents.SecondaryVerification.FrontBack#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 - * PersonUpdateParams.Documents.SecondaryVerification.FrontBack#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * A file upload - * token representing the front of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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 setFront(String front) { - this.front = front; - return this; - } - - /** - * A file upload - * token representing the front of the verification document. The purpose of the uploaded - * file should be 'identity_document'. 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 setFront(EmptyParam front) { - this.front = front; - return this; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("front_back") - FRONT_BACK("front_back"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Visa { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Required. One or more document IDs returned by a file upload with a - * purpose value of {@code account_requirement}. - */ - @SerializedName("files") - List files; - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - @SerializedName("type") - Type type; - - private Visa(Map extraParams, List files, Type type) { - this.extraParams = extraParams; - this.files = files; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List files; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.Documents.Visa build() { - return new PersonUpdateParams.Documents.Visa(this.extraParams, this.files, this.type); - } - - /** - * 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 PersonUpdateParams.Documents.Visa#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 PersonUpdateParams.Documents.Visa#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 - * PersonUpdateParams.Documents.Visa#files} for the field documentation. - */ - public Builder addFile(String element) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(element); - return this; - } - - /** - * 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 - * PersonUpdateParams.Documents.Visa#files} for the field documentation. - */ - public Builder addAllFile(List elements) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.addAll(elements); - return this; - } - - /** - * Required. The format of the document. Currently supports {@code files} - * only. - */ - public Builder setType(PersonUpdateParams.Documents.Visa.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("files") - FILES("files"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class IdNumber { - /** - * Map of extra parameters for custom features not available in this client library. The content - * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each - * key/value pair is serialized as if the key is a root-level field (serialized) name in this - * param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Required. The ID number type of an individual. */ - @SerializedName("type") - Type type; - - /** Required. The value of the ID number. */ - @SerializedName("value") - Object value; - - private IdNumber(Map extraParams, Type type, Object value) { - this.extraParams = extraParams; - this.type = type; - this.value = value; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Type type; - - private Object value; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.IdNumber build() { - return new PersonUpdateParams.IdNumber(this.extraParams, this.type, this.value); - } - - /** - * 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 - * PersonUpdateParams.IdNumber#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 PersonUpdateParams.IdNumber#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Required. The ID number type of an individual. */ - public Builder setType(PersonUpdateParams.IdNumber.Type type) { - this.type = type; - return this; - } - - /** Required. The value of the ID number. */ - public Builder setValue(String value) { - this.value = value; - return this; - } - - /** Required. The value of the ID number. */ - public Builder setValue(EmptyParam value) { - this.value = value; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ae_eid") - AE_EID("ae_eid"), - - @SerializedName("ao_nif") - AO_NIF("ao_nif"), - - @SerializedName("az_tin") - AZ_TIN("az_tin"), - - @SerializedName("bd_brc") - BD_BRC("bd_brc"), - - @SerializedName("bd_etin") - BD_ETIN("bd_etin"), - - @SerializedName("bd_nid") - BD_NID("bd_nid"), - - @SerializedName("br_cpf") - BR_CPF("br_cpf"), - - @SerializedName("cr_cpf") - CR_CPF("cr_cpf"), - - @SerializedName("cr_dimex") - CR_DIMEX("cr_dimex"), - - @SerializedName("cr_nite") - CR_NITE("cr_nite"), - - @SerializedName("de_stn") - DE_STN("de_stn"), - - @SerializedName("do_rcn") - DO_RCN("do_rcn"), - - @SerializedName("gt_nit") - GT_NIT("gt_nit"), - - @SerializedName("hk_id") - HK_ID("hk_id"), - - @SerializedName("kz_iin") - KZ_IIN("kz_iin"), - - @SerializedName("mx_rfc") - MX_RFC("mx_rfc"), - - @SerializedName("my_nric") - MY_NRIC("my_nric"), - - @SerializedName("mz_nuit") - MZ_NUIT("mz_nuit"), - - @SerializedName("nl_bsn") - NL_BSN("nl_bsn"), - - @SerializedName("pe_dni") - PE_DNI("pe_dni"), - - @SerializedName("pk_cnic") - PK_CNIC("pk_cnic"), - - @SerializedName("pk_snic") - PK_SNIC("pk_snic"), - - @SerializedName("sa_tin") - SA_TIN("sa_tin"), - - @SerializedName("sg_fin") - SG_FIN("sg_fin"), - - @SerializedName("sg_nric") - SG_NRIC("sg_nric"), - - @SerializedName("th_lc") - TH_LC("th_lc"), - - @SerializedName("th_pin") - TH_PIN("th_pin"), - - @SerializedName("us_itin") - US_ITIN("us_itin"), - - @SerializedName("us_itin_last_4") - US_ITIN_LAST_4("us_itin_last_4"), - - @SerializedName("us_ssn") - US_SSN("us_ssn"), - - @SerializedName("us_ssn_last_4") - US_SSN_LAST_4("us_ssn_last_4"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Relationship { - /** Whether the individual is an authorizer of the Account’s legal entity. */ - @SerializedName("authorizer") - Boolean authorizer; - - /** Indicates whether the person is a director of the associated legal entity. */ - @SerializedName("director") - Boolean director; - - /** Indicates whether the person is an executive of the associated legal entity. */ - @SerializedName("executive") - Boolean executive; - - /** - * 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; - - /** Indicates whether the person is a legal guardian of the associated legal entity. */ - @SerializedName("legal_guardian") - Boolean legalGuardian; - - /** Indicates whether the person is an owner of the associated legal entity. */ - @SerializedName("owner") - Boolean owner; - - /** The percentage of ownership the person has in the associated legal entity. */ - @SerializedName("percent_ownership") - Object percentOwnership; - - /** Indicates whether the person is a representative of the associated legal entity. */ - @SerializedName("representative") - Boolean representative; - - /** The title or position the person holds in the associated legal entity. */ - @SerializedName("title") - Object title; - - private Relationship( - Boolean authorizer, - Boolean director, - Boolean executive, - Map extraParams, - Boolean legalGuardian, - Boolean owner, - Object percentOwnership, - Boolean representative, - Object title) { - this.authorizer = authorizer; - this.director = director; - this.executive = executive; - this.extraParams = extraParams; - this.legalGuardian = legalGuardian; - this.owner = owner; - this.percentOwnership = percentOwnership; - this.representative = representative; - this.title = title; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Boolean authorizer; - - private Boolean director; - - private Boolean executive; - - private Map extraParams; - - private Boolean legalGuardian; - - private Boolean owner; - - private Object percentOwnership; - - private Boolean representative; - - private Object title; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.Relationship build() { - return new PersonUpdateParams.Relationship( - this.authorizer, - this.director, - this.executive, - this.extraParams, - this.legalGuardian, - this.owner, - this.percentOwnership, - this.representative, - this.title); - } - - /** Whether the individual is an authorizer of the Account’s legal entity. */ - public Builder setAuthorizer(Boolean authorizer) { - this.authorizer = authorizer; - return this; - } - - /** Indicates whether the person is a director of the associated legal entity. */ - public Builder setDirector(Boolean director) { - this.director = director; - return this; - } - - /** Indicates whether the person is an executive of the associated legal entity. */ - public Builder setExecutive(Boolean executive) { - this.executive = executive; - 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 - * PersonUpdateParams.Relationship#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 PersonUpdateParams.Relationship#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Indicates whether the person is a legal guardian of the associated legal entity. */ - public Builder setLegalGuardian(Boolean legalGuardian) { - this.legalGuardian = legalGuardian; - return this; - } - - /** Indicates whether the person is an owner of the associated legal entity. */ - public Builder setOwner(Boolean owner) { - this.owner = owner; - return this; - } - - /** The percentage of ownership the person has in the associated legal entity. */ - public Builder setPercentOwnership(String percentOwnership) { - this.percentOwnership = percentOwnership; - return this; - } - - /** The percentage of ownership the person has in the associated legal entity. */ - public Builder setPercentOwnership(EmptyParam percentOwnership) { - this.percentOwnership = percentOwnership; - return this; - } - - /** Indicates whether the person is a representative of the associated legal entity. */ - public Builder setRepresentative(Boolean representative) { - this.representative = representative; - return this; - } - - /** The title or position the person holds in the associated legal entity. */ - public Builder setTitle(String title) { - this.title = title; - return this; - } - - /** The title or position the person holds in the associated legal entity. */ - public Builder setTitle(EmptyParam title) { - this.title = title; - return this; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ScriptAddresses { - /** - * 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; - - /** Kana Address. */ - @SerializedName("kana") - Object kana; - - /** Kanji Address. */ - @SerializedName("kanji") - Object kanji; - - private ScriptAddresses(Map extraParams, Object kana, Object kanji) { - this.extraParams = extraParams; - this.kana = kana; - this.kanji = kanji; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Object kana; - - private Object kanji; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.ScriptAddresses build() { - return new PersonUpdateParams.ScriptAddresses(this.extraParams, this.kana, this.kanji); - } - - /** - * 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 - * PersonUpdateParams.ScriptAddresses#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 PersonUpdateParams.ScriptAddresses#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Kana Address. */ - public Builder setKana(PersonUpdateParams.ScriptAddresses.Kana kana) { - this.kana = kana; - return this; - } - - /** Kana Address. */ - public Builder setKana(EmptyParam kana) { - this.kana = kana; - return this; - } - - /** Kanji Address. */ - public Builder setKanji(PersonUpdateParams.ScriptAddresses.Kanji kanji) { - this.kanji = kanji; - return this; - } - - /** Kanji Address. */ - public Builder setKanji(EmptyParam kanji) { - this.kanji = kanji; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Kana { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - Object city; - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - @SerializedName("country") - ApiRequestParams.EnumParam 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") - Object line1; - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - Object line2; - - /** ZIP or postal code. */ - @SerializedName("postal_code") - Object postalCode; - - /** State, county, province, or region. */ - @SerializedName("state") - Object state; - - /** Town or cho-me. */ - @SerializedName("town") - Object town; - - private Kana( - Object city, - ApiRequestParams.EnumParam country, - Map extraParams, - Object line1, - Object line2, - Object postalCode, - Object state, - Object 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 Object city; - - private ApiRequestParams.EnumParam country; - - private Map extraParams; - - private Object line1; - - private Object line2; - - private Object postalCode; - - private Object state; - - private Object town; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.ScriptAddresses.Kana build() { - return new PersonUpdateParams.ScriptAddresses.Kana( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(EmptyParam city) { - this.city = city; - return this; - } - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - public Builder setCountry(PersonUpdateParams.ScriptAddresses.Kana.Country country) { - this.country = country; - return this; - } - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - public Builder setCountry(EmptyParam 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 PersonUpdateParams.ScriptAddresses.Kana#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 PersonUpdateParams.ScriptAddresses.Kana#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 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(EmptyParam 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; - } - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(EmptyParam line2) { - this.line2 = line2; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(EmptyParam postalCode) { - this.postalCode = postalCode; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(EmptyParam state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(EmptyParam town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), - - @SerializedName("td") - TD("td"), - - @SerializedName("tf") - TF("tf"), - - @SerializedName("tg") - TG("tg"), - - @SerializedName("th") - TH("th"), - - @SerializedName("tj") - TJ("tj"), - - @SerializedName("tk") - TK("tk"), - - @SerializedName("tl") - TL("tl"), - - @SerializedName("tm") - TM("tm"), - - @SerializedName("tn") - TN("tn"), - - @SerializedName("to") - TO("to"), - - @SerializedName("tr") - TR("tr"), - - @SerializedName("tt") - TT("tt"), - - @SerializedName("tv") - TV("tv"), - - @SerializedName("tw") - TW("tw"), - - @SerializedName("tz") - TZ("tz"), - - @SerializedName("ua") - UA("ua"), - - @SerializedName("ug") - UG("ug"), - - @SerializedName("um") - UM("um"), - - @SerializedName("us") - US("us"), - - @SerializedName("uy") - UY("uy"), - - @SerializedName("uz") - UZ("uz"), - - @SerializedName("va") - VA("va"), - - @SerializedName("vc") - VC("vc"), - - @SerializedName("ve") - VE("ve"), - - @SerializedName("vg") - VG("vg"), - - @SerializedName("vi") - VI("vi"), - - @SerializedName("vn") - VN("vn"), - - @SerializedName("vu") - VU("vu"), - - @SerializedName("wf") - WF("wf"), - - @SerializedName("ws") - WS("ws"), - - @SerializedName("xx") - XX("xx"), - - @SerializedName("ye") - YE("ye"), - - @SerializedName("yt") - YT("yt"), - - @SerializedName("za") - ZA("za"), - - @SerializedName("zm") - ZM("zm"), - - @SerializedName("zw") - ZW("zw"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Country(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Kanji { - /** City, district, suburb, town, or village. */ - @SerializedName("city") - Object city; - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - @SerializedName("country") - ApiRequestParams.EnumParam 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") - Object line1; - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - @SerializedName("line2") - Object line2; - - /** ZIP or postal code. */ - @SerializedName("postal_code") - Object postalCode; - - /** State, county, province, or region. */ - @SerializedName("state") - Object state; - - /** Town or cho-me. */ - @SerializedName("town") - Object town; - - private Kanji( - Object city, - ApiRequestParams.EnumParam country, - Map extraParams, - Object line1, - Object line2, - Object postalCode, - Object state, - Object 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 Object city; - - private ApiRequestParams.EnumParam country; - - private Map extraParams; - - private Object line1; - - private Object line2; - - private Object postalCode; - - private Object state; - - private Object town; - - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.ScriptAddresses.Kanji build() { - return new PersonUpdateParams.ScriptAddresses.Kanji( - this.city, - this.country, - this.extraParams, - this.line1, - this.line2, - this.postalCode, - this.state, - this.town); - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(String city) { - this.city = city; - return this; - } - - /** City, district, suburb, town, or village. */ - public Builder setCity(EmptyParam city) { - this.city = city; - return this; - } - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - public Builder setCountry(PersonUpdateParams.ScriptAddresses.Kanji.Country country) { - this.country = country; - return this; - } - - /** - * Two-letter country code (ISO - * 3166-1 alpha-2). - */ - public Builder setCountry(EmptyParam 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 PersonUpdateParams.ScriptAddresses.Kanji#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 PersonUpdateParams.ScriptAddresses.Kanji#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 1 (e.g., street, PO Box, or company name). */ - public Builder setLine1(EmptyParam 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; - } - - /** Address line 2 (e.g., apartment, suite, unit, or building). */ - public Builder setLine2(EmptyParam line2) { - this.line2 = line2; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** ZIP or postal code. */ - public Builder setPostalCode(EmptyParam postalCode) { - this.postalCode = postalCode; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(String state) { - this.state = state; - return this; - } - - /** State, county, province, or region. */ - public Builder setState(EmptyParam state) { - this.state = state; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(String town) { - this.town = town; - return this; - } - - /** Town or cho-me. */ - public Builder setTown(EmptyParam town) { - this.town = town; - return this; - } - } - - public enum Country implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), - - @SerializedName("ck") - CK("ck"), - - @SerializedName("cl") - CL("cl"), - - @SerializedName("cm") - CM("cm"), - - @SerializedName("cn") - CN("cn"), - - @SerializedName("co") - CO("co"), - - @SerializedName("cr") - CR("cr"), - - @SerializedName("cu") - CU("cu"), - - @SerializedName("cv") - CV("cv"), - - @SerializedName("cw") - CW("cw"), - - @SerializedName("cx") - CX("cx"), - - @SerializedName("cy") - CY("cy"), - - @SerializedName("cz") - CZ("cz"), - - @SerializedName("de") - DE("de"), - - @SerializedName("dj") - DJ("dj"), - - @SerializedName("dk") - DK("dk"), - - @SerializedName("dm") - DM("dm"), - - @SerializedName("do") - DO("do"), - - @SerializedName("dz") - DZ("dz"), - - @SerializedName("ec") - EC("ec"), - - @SerializedName("ee") - EE("ee"), - - @SerializedName("eg") - EG("eg"), - - @SerializedName("eh") - EH("eh"), - - @SerializedName("er") - ER("er"), - - @SerializedName("es") - ES("es"), - - @SerializedName("et") - ET("et"), - - @SerializedName("fi") - FI("fi"), - - @SerializedName("fj") - FJ("fj"), - - @SerializedName("fk") - FK("fk"), - - @SerializedName("fm") - FM("fm"), - - @SerializedName("fo") - FO("fo"), - - @SerializedName("fr") - FR("fr"), - - @SerializedName("ga") - GA("ga"), - - @SerializedName("gb") - GB("gb"), - - @SerializedName("gd") - GD("gd"), - - @SerializedName("ge") - GE("ge"), - - @SerializedName("gf") - GF("gf"), - - @SerializedName("gg") - GG("gg"), - - @SerializedName("gh") - GH("gh"), - - @SerializedName("gi") - GI("gi"), - - @SerializedName("gl") - GL("gl"), - - @SerializedName("gm") - GM("gm"), - - @SerializedName("gn") - GN("gn"), - - @SerializedName("gp") - GP("gp"), - - @SerializedName("gq") - GQ("gq"), - - @SerializedName("gr") - GR("gr"), - - @SerializedName("gs") - GS("gs"), - - @SerializedName("gt") - GT("gt"), - - @SerializedName("gu") - GU("gu"), - - @SerializedName("gw") - GW("gw"), - - @SerializedName("gy") - GY("gy"), - - @SerializedName("hk") - HK("hk"), - - @SerializedName("hm") - HM("hm"), - - @SerializedName("hn") - HN("hn"), - - @SerializedName("hr") - HR("hr"), - - @SerializedName("ht") - HT("ht"), - - @SerializedName("hu") - HU("hu"), - - @SerializedName("id") - ID("id"), - - @SerializedName("ie") - IE("ie"), - - @SerializedName("il") - IL("il"), - - @SerializedName("im") - IM("im"), - - @SerializedName("in") - IN("in"), - - @SerializedName("io") - IO("io"), - - @SerializedName("iq") - IQ("iq"), - - @SerializedName("ir") - IR("ir"), - - @SerializedName("is") - IS("is"), - - @SerializedName("it") - IT("it"), - - @SerializedName("je") - JE("je"), - - @SerializedName("jm") - JM("jm"), - - @SerializedName("jo") - JO("jo"), - - @SerializedName("jp") - JP("jp"), - - @SerializedName("ke") - KE("ke"), - - @SerializedName("kg") - KG("kg"), - - @SerializedName("kh") - KH("kh"), - - @SerializedName("ki") - KI("ki"), - - @SerializedName("km") - KM("km"), - - @SerializedName("kn") - KN("kn"), - - @SerializedName("kp") - KP("kp"), - - @SerializedName("kr") - KR("kr"), - - @SerializedName("kw") - KW("kw"), - - @SerializedName("ky") - KY("ky"), - - @SerializedName("kz") - KZ("kz"), - - @SerializedName("la") - LA("la"), - - @SerializedName("lb") - LB("lb"), - - @SerializedName("lc") - LC("lc"), - - @SerializedName("li") - LI("li"), - - @SerializedName("lk") - LK("lk"), - - @SerializedName("lr") - LR("lr"), - - @SerializedName("ls") - LS("ls"), - - @SerializedName("lt") - LT("lt"), - - @SerializedName("lu") - LU("lu"), - - @SerializedName("lv") - LV("lv"), - - @SerializedName("ly") - LY("ly"), - - @SerializedName("ma") - MA("ma"), - - @SerializedName("mc") - MC("mc"), - - @SerializedName("md") - MD("md"), - - @SerializedName("me") - ME("me"), - - @SerializedName("mf") - MF("mf"), - - @SerializedName("mg") - MG("mg"), - - @SerializedName("mh") - MH("mh"), - - @SerializedName("mk") - MK("mk"), - - @SerializedName("ml") - ML("ml"), - - @SerializedName("mm") - MM("mm"), - - @SerializedName("mn") - MN("mn"), - - @SerializedName("mo") - MO("mo"), - - @SerializedName("mp") - MP("mp"), - - @SerializedName("mq") - MQ("mq"), - - @SerializedName("mr") - MR("mr"), - - @SerializedName("ms") - MS("ms"), - - @SerializedName("mt") - MT("mt"), - - @SerializedName("mu") - MU("mu"), - - @SerializedName("mv") - MV("mv"), - - @SerializedName("mw") - MW("mw"), - - @SerializedName("mx") - MX("mx"), - - @SerializedName("my") - MY("my"), - - @SerializedName("mz") - MZ("mz"), - - @SerializedName("na") - NA("na"), - - @SerializedName("nc") - NC("nc"), - - @SerializedName("ne") - NE("ne"), - - @SerializedName("nf") - NF("nf"), - - @SerializedName("ng") - NG("ng"), - - @SerializedName("ni") - NI("ni"), - - @SerializedName("nl") - NL("nl"), - - @SerializedName("no") - NO("no"), - - @SerializedName("np") - NP("np"), - - @SerializedName("nr") - NR("nr"), - - @SerializedName("nu") - NU("nu"), - - @SerializedName("nz") - NZ("nz"), - - @SerializedName("om") - OM("om"), - - @SerializedName("pa") - PA("pa"), - - @SerializedName("pe") - PE("pe"), - - @SerializedName("pf") - PF("pf"), - - @SerializedName("pg") - PG("pg"), - - @SerializedName("ph") - PH("ph"), - - @SerializedName("pk") - PK("pk"), - - @SerializedName("pl") - PL("pl"), - - @SerializedName("pm") - PM("pm"), - - @SerializedName("pn") - PN("pn"), - - @SerializedName("pr") - PR("pr"), - - @SerializedName("ps") - PS("ps"), - - @SerializedName("pt") - PT("pt"), - - @SerializedName("pw") - PW("pw"), - - @SerializedName("py") - PY("py"), - - @SerializedName("qa") - QA("qa"), - - @SerializedName("qz") - QZ("qz"), - - @SerializedName("re") - RE("re"), - - @SerializedName("ro") - RO("ro"), - - @SerializedName("rs") - RS("rs"), - - @SerializedName("ru") - RU("ru"), - - @SerializedName("rw") - RW("rw"), - - @SerializedName("sa") - SA("sa"), - - @SerializedName("sb") - SB("sb"), - - @SerializedName("sc") - SC("sc"), - - @SerializedName("sd") - SD("sd"), - - @SerializedName("se") - SE("se"), - - @SerializedName("sg") - SG("sg"), - - @SerializedName("sh") - SH("sh"), - - @SerializedName("si") - SI("si"), - - @SerializedName("sj") - SJ("sj"), - - @SerializedName("sk") - SK("sk"), - - @SerializedName("sl") - SL("sl"), - - @SerializedName("sm") - SM("sm"), - - @SerializedName("sn") - SN("sn"), - - @SerializedName("so") - SO("so"), - - @SerializedName("sr") - SR("sr"), - - @SerializedName("ss") - SS("ss"), - - @SerializedName("st") - ST("st"), - - @SerializedName("sv") - SV("sv"), - - @SerializedName("sx") - SX("sx"), - - @SerializedName("sy") - SY("sy"), - - @SerializedName("sz") - SZ("sz"), - - @SerializedName("tc") - TC("tc"), + /** + * 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 + * PersonUpdateParams.Documents.CompanyAuthorization#files} for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("td") - TD("td"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + public Builder setType(PersonUpdateParams.Documents.CompanyAuthorization.Type type) { + this.type = type; + return this; + } + } - @SerializedName("tf") - TF("tf"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("tg") - TG("tg"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("th") - TH("th"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("tj") - TJ("tj"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Passport { + /** + * 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; - @SerializedName("tk") - TK("tk"), + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - @SerializedName("tl") - TL("tl"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - @SerializedName("tm") - TM("tm"), + private Passport(Map extraParams, List files, Type type) { + this.extraParams = extraParams; + this.files = files; + this.type = type; + } - @SerializedName("tn") - TN("tn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("to") - TO("to"), + public static class Builder { + private Map extraParams; - @SerializedName("tr") - TR("tr"), + private List files; - @SerializedName("tt") - TT("tt"), + private Type type; - @SerializedName("tv") - TV("tv"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.Documents.Passport build() { + return new PersonUpdateParams.Documents.Passport(this.extraParams, this.files, this.type); + } - @SerializedName("tw") - TW("tw"), + /** + * 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 PersonUpdateParams.Documents.Passport#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; + } - @SerializedName("tz") - TZ("tz"), + /** + * 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 PersonUpdateParams.Documents.Passport#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ua") - UA("ua"), + /** + * 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 + * PersonUpdateParams.Documents.Passport#files} for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); + return this; + } - @SerializedName("ug") - UG("ug"), + /** + * 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 + * PersonUpdateParams.Documents.Passport#files} for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); + return this; + } - @SerializedName("um") - UM("um"), + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + public Builder setType(PersonUpdateParams.Documents.Passport.Type type) { + this.type = type; + return this; + } + } - @SerializedName("us") - US("us"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @SerializedName("uy") - UY("uy"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("uz") - UZ("uz"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("va") - VA("va"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PrimaryVerification { + /** + * 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; - @SerializedName("vc") - VC("vc"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; - @SerializedName("ve") - VE("ve"), + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; - @SerializedName("vg") - VG("vg"), + private PrimaryVerification(Map extraParams, FrontBack frontBack, Type type) { + this.extraParams = extraParams; + this.frontBack = frontBack; + this.type = type; + } - @SerializedName("vi") - VI("vi"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("vn") - VN("vn"), + public static class Builder { + private Map extraParams; - @SerializedName("vu") - VU("vu"), + private FrontBack frontBack; - @SerializedName("wf") - WF("wf"), + private Type type; - @SerializedName("ws") - WS("ws"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.Documents.PrimaryVerification build() { + return new PersonUpdateParams.Documents.PrimaryVerification( + this.extraParams, this.frontBack, this.type); + } - @SerializedName("xx") - XX("xx"), + /** + * 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 PersonUpdateParams.Documents.PrimaryVerification#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; + } - @SerializedName("ye") - YE("ye"), + /** + * 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 PersonUpdateParams.Documents.PrimaryVerification#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("yt") - YT("yt"), + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + PersonUpdateParams.Documents.PrimaryVerification.FrontBack frontBack) { + this.frontBack = frontBack; + return this; + } - @SerializedName("za") - ZA("za"), + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + public Builder setType(PersonUpdateParams.Documents.PrimaryVerification.Type type) { + this.type = type; + return this; + } + } - @SerializedName("zm") - ZM("zm"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload token + * representing the back of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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") + Object back; - @SerializedName("zw") - ZW("zw"); + /** + * 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; - @Getter(onMethod_ = {@Override}) - private final String value; + /** + * A file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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") + Object front; - Country(String value) { - this.value = value; + private FrontBack(Object back, Map extraParams, Object front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; } - } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ScriptNames { - /** - * 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; + public static Builder builder() { + return new Builder(); + } - /** Persons name in kana script. */ - @SerializedName("kana") - Object kana; + public static class Builder { + private Object back; - /** Persons name in kanji script. */ - @SerializedName("kanji") - Object kanji; + private Map extraParams; - private ScriptNames(Map extraParams, Object kana, Object kanji) { - this.extraParams = extraParams; - this.kana = kana; - this.kanji = kanji; - } + private Object front; - public static Builder builder() { - return new Builder(); - } + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.Documents.PrimaryVerification.FrontBack build() { + return new PersonUpdateParams.Documents.PrimaryVerification.FrontBack( + this.back, this.extraParams, this.front); + } - public static class Builder { - private Map extraParams; + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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; + } - private Object kana; + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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(EmptyParam back) { + this.back = back; + return this; + } - private Object kanji; + /** + * 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 PersonUpdateParams.Documents.PrimaryVerification.FrontBack#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; + } - /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.ScriptNames build() { - return new PersonUpdateParams.ScriptNames(this.extraParams, this.kana, this.kanji); - } + /** + * 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 PersonUpdateParams.Documents.PrimaryVerification.FrontBack#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 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 - * PersonUpdateParams.ScriptNames#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; - } + /** + * A file upload + * token representing the front of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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 setFront(String front) { + this.front = front; + 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 PersonUpdateParams.ScriptNames#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** + * A file upload + * token representing the front of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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 setFront(EmptyParam front) { + this.front = front; + return this; + } } - this.extraParams.putAll(map); - return this; - } - - /** Persons name in kana script. */ - public Builder setKana(PersonUpdateParams.ScriptNames.Kana kana) { - this.kana = kana; - return this; } - /** Persons name in kana script. */ - public Builder setKana(EmptyParam kana) { - this.kana = kana; - return this; - } + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); - /** Persons name in kanji script. */ - public Builder setKanji(PersonUpdateParams.ScriptNames.Kanji kanji) { - this.kanji = kanji; - return this; - } + @Getter(onMethod_ = {@Override}) + private final String value; - /** Persons name in kanji script. */ - public Builder setKanji(EmptyParam kanji) { - this.kanji = kanji; - return this; + Type(String value) { + this.value = value; + } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Kana { + public static class SecondaryVerification { /** * 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. @@ -6496,18 +2049,26 @@ public static class Kana { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The person's first or given name. */ - @SerializedName("given_name") - Object givenName; + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + @SerializedName("front_back") + FrontBack frontBack; - /** The person's last or family name. */ - @SerializedName("surname") - Object surname; + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + @SerializedName("type") + Type type; - private Kana(Map extraParams, Object givenName, Object surname) { + private SecondaryVerification( + Map extraParams, FrontBack frontBack, Type type) { this.extraParams = extraParams; - this.givenName = givenName; - this.surname = surname; + this.frontBack = frontBack; + this.type = type; } public static Builder builder() { @@ -6517,21 +2078,21 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Object givenName; + private FrontBack frontBack; - private Object surname; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.ScriptNames.Kana build() { - return new PersonUpdateParams.ScriptNames.Kana( - this.extraParams, this.givenName, this.surname); + public PersonUpdateParams.Documents.SecondaryVerification build() { + return new PersonUpdateParams.Documents.SecondaryVerification( + this.extraParams, this.frontBack, this.type); } /** * 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 PersonUpdateParams.ScriptNames.Kana#extraParams} for the field - * documentation. + * map. See {@link PersonUpdateParams.Documents.SecondaryVerification#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -6544,8 +2105,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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 PersonUpdateParams.ScriptNames.Kana#extraParams} for the field - * documentation. + * map. See {@link PersonUpdateParams.Documents.SecondaryVerification#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -6555,35 +2116,177 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; + /** + * Required. The file upload tokens + * referring to each side of the document. + */ + public Builder setFrontBack( + PersonUpdateParams.Documents.SecondaryVerification.FrontBack frontBack) { + this.frontBack = frontBack; return this; } - /** The person's first or given name. */ - public Builder setGivenName(EmptyParam givenName) { - this.givenName = givenName; + /** + * Required. The format of the verification document. Currently supports + * {@code front_back} only. + */ + public Builder setType(PersonUpdateParams.Documents.SecondaryVerification.Type type) { + this.type = type; return this; } + } - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; - return this; + @Getter + @EqualsAndHashCode(callSuper = false) + public static class FrontBack { + /** + * A file upload token + * representing the back of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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") + Object 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; + + /** + * A file upload token + * representing the front of the verification document. The purpose of the uploaded file + * should be 'identity_document'. 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") + Object front; + + private FrontBack(Object back, Map extraParams, Object front) { + this.back = back; + this.extraParams = extraParams; + this.front = front; } - /** The person's last or family name. */ - public Builder setSurname(EmptyParam surname) { - this.surname = surname; - return this; + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object back; + + private Map extraParams; + + private Object front; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.Documents.SecondaryVerification.FrontBack build() { + return new PersonUpdateParams.Documents.SecondaryVerification.FrontBack( + this.back, this.extraParams, this.front); + } + + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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; + } + + /** + * A file upload + * token representing the back of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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(EmptyParam 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 + * PersonUpdateParams.Documents.SecondaryVerification.FrontBack#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 + * PersonUpdateParams.Documents.SecondaryVerification.FrontBack#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * A file upload + * token representing the front of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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 setFront(String front) { + this.front = front; + return this; + } + + /** + * A file upload + * token representing the front of the verification document. The purpose of the uploaded + * file should be 'identity_document'. 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 setFront(EmptyParam front) { + this.front = front; + return this; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("front_back") + FRONT_BACK("front_back"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; } } } @Getter @EqualsAndHashCode(callSuper = false) - public static class Kanji { + public static class Visa { /** * 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. @@ -6593,18 +2296,25 @@ public static class Kanji { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The person's first or given name. */ - @SerializedName("given_name") - Object givenName; + /** + * Required. One or more document IDs returned by a file upload with a + * purpose value of {@code account_requirement}. + */ + @SerializedName("files") + List files; - /** The person's last or family name. */ - @SerializedName("surname") - Object surname; + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + @SerializedName("type") + Type type; - private Kanji(Map extraParams, Object givenName, Object surname) { + private Visa(Map extraParams, List files, Type type) { this.extraParams = extraParams; - this.givenName = givenName; - this.surname = surname; + this.files = files; + this.type = type; } public static Builder builder() { @@ -6614,20 +2324,19 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Object givenName; + private List files; - private Object surname; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public PersonUpdateParams.ScriptNames.Kanji build() { - return new PersonUpdateParams.ScriptNames.Kanji( - this.extraParams, this.givenName, this.surname); + public PersonUpdateParams.Documents.Visa build() { + return new PersonUpdateParams.Documents.Visa(this.extraParams, this.files, this.type); } /** * 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 PersonUpdateParams.ScriptNames.Kanji#extraParams} for the field + * map. See {@link PersonUpdateParams.Documents.Visa#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -6641,7 +2350,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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 PersonUpdateParams.ScriptNames.Kanji#extraParams} for the field + * map. See {@link PersonUpdateParams.Documents.Visa#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -6652,806 +2361,1237 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The person's first or given name. */ - public Builder setGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** The person's first or given name. */ - public Builder setGivenName(EmptyParam givenName) { - this.givenName = givenName; + /** + * 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 + * PersonUpdateParams.Documents.Visa#files} for the field documentation. + */ + public Builder addFile(String element) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(element); return this; } - /** The person's last or family name. */ - public Builder setSurname(String surname) { - this.surname = surname; + /** + * 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 + * PersonUpdateParams.Documents.Visa#files} for the field documentation. + */ + public Builder addAllFile(List elements) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.addAll(elements); return this; } - /** The person's last or family name. */ - public Builder setSurname(EmptyParam surname) { - this.surname = surname; + /** + * Required. The format of the document. Currently supports {@code files} + * only. + */ + public Builder setType(PersonUpdateParams.Documents.Visa.Type type) { + this.type = type; return this; } } - } - } - - public enum LegalGender implements ApiRequestParams.EnumParam { - @SerializedName("female") - FEMALE("female"), - @SerializedName("male") - MALE("male"); + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("files") + FILES("files"); - @Getter(onMethod_ = {@Override}) - private final String value; + @Getter(onMethod_ = {@Override}) + private final String value; - LegalGender(String value) { - this.value = value; + Type(String value) { + this.value = value; + } + } } } - public enum Nationality implements ApiRequestParams.EnumParam { - @SerializedName("ad") - AD("ad"), - - @SerializedName("ae") - AE("ae"), - - @SerializedName("af") - AF("af"), - - @SerializedName("ag") - AG("ag"), - - @SerializedName("ai") - AI("ai"), - - @SerializedName("al") - AL("al"), - - @SerializedName("am") - AM("am"), - - @SerializedName("ao") - AO("ao"), - - @SerializedName("aq") - AQ("aq"), - - @SerializedName("ar") - AR("ar"), - - @SerializedName("as") - AS("as"), - - @SerializedName("at") - AT("at"), - - @SerializedName("au") - AU("au"), - - @SerializedName("aw") - AW("aw"), - - @SerializedName("ax") - AX("ax"), - - @SerializedName("az") - AZ("az"), - - @SerializedName("ba") - BA("ba"), - - @SerializedName("bb") - BB("bb"), - - @SerializedName("bd") - BD("bd"), - - @SerializedName("be") - BE("be"), - - @SerializedName("bf") - BF("bf"), - - @SerializedName("bg") - BG("bg"), - - @SerializedName("bh") - BH("bh"), - - @SerializedName("bi") - BI("bi"), - - @SerializedName("bj") - BJ("bj"), - - @SerializedName("bl") - BL("bl"), - - @SerializedName("bm") - BM("bm"), - - @SerializedName("bn") - BN("bn"), - - @SerializedName("bo") - BO("bo"), - - @SerializedName("bq") - BQ("bq"), - - @SerializedName("br") - BR("br"), - - @SerializedName("bs") - BS("bs"), - - @SerializedName("bt") - BT("bt"), - - @SerializedName("bv") - BV("bv"), - - @SerializedName("bw") - BW("bw"), - - @SerializedName("by") - BY("by"), - - @SerializedName("bz") - BZ("bz"), - - @SerializedName("ca") - CA("ca"), - - @SerializedName("cc") - CC("cc"), - - @SerializedName("cd") - CD("cd"), - - @SerializedName("cf") - CF("cf"), - - @SerializedName("cg") - CG("cg"), - - @SerializedName("ch") - CH("ch"), - - @SerializedName("ci") - CI("ci"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class IdNumber { + /** + * 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; - @SerializedName("ck") - CK("ck"), + /** Required. The ID number type of an individual. */ + @SerializedName("type") + Type type; - @SerializedName("cl") - CL("cl"), + /** Required. The value of the ID number. */ + @SerializedName("value") + Object value; - @SerializedName("cm") - CM("cm"), + private IdNumber(Map extraParams, Type type, Object value) { + this.extraParams = extraParams; + this.type = type; + this.value = value; + } - @SerializedName("cn") - CN("cn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("co") - CO("co"), + public static class Builder { + private Map extraParams; - @SerializedName("cr") - CR("cr"), + private Type type; - @SerializedName("cu") - CU("cu"), + private Object value; - @SerializedName("cv") - CV("cv"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.IdNumber build() { + return new PersonUpdateParams.IdNumber(this.extraParams, this.type, this.value); + } - @SerializedName("cw") - CW("cw"), + /** + * 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 + * PersonUpdateParams.IdNumber#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; + } - @SerializedName("cx") - CX("cx"), + /** + * 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 PersonUpdateParams.IdNumber#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("cy") - CY("cy"), + /** Required. The ID number type of an individual. */ + public Builder setType(PersonUpdateParams.IdNumber.Type type) { + this.type = type; + return this; + } - @SerializedName("cz") - CZ("cz"), + /** Required. The value of the ID number. */ + public Builder setValue(String value) { + this.value = value; + return this; + } - @SerializedName("de") - DE("de"), + /** Required. The value of the ID number. */ + public Builder setValue(EmptyParam value) { + this.value = value; + return this; + } + } - @SerializedName("dj") - DJ("dj"), + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ae_eid") + AE_EID("ae_eid"), - @SerializedName("dk") - DK("dk"), + @SerializedName("ao_nif") + AO_NIF("ao_nif"), - @SerializedName("dm") - DM("dm"), + @SerializedName("az_tin") + AZ_TIN("az_tin"), - @SerializedName("do") - DO("do"), + @SerializedName("bd_brc") + BD_BRC("bd_brc"), - @SerializedName("dz") - DZ("dz"), + @SerializedName("bd_etin") + BD_ETIN("bd_etin"), - @SerializedName("ec") - EC("ec"), + @SerializedName("bd_nid") + BD_NID("bd_nid"), - @SerializedName("ee") - EE("ee"), + @SerializedName("br_cpf") + BR_CPF("br_cpf"), - @SerializedName("eg") - EG("eg"), + @SerializedName("cr_cpf") + CR_CPF("cr_cpf"), - @SerializedName("eh") - EH("eh"), + @SerializedName("cr_dimex") + CR_DIMEX("cr_dimex"), - @SerializedName("er") - ER("er"), + @SerializedName("cr_nite") + CR_NITE("cr_nite"), - @SerializedName("es") - ES("es"), + @SerializedName("de_stn") + DE_STN("de_stn"), - @SerializedName("et") - ET("et"), + @SerializedName("do_rcn") + DO_RCN("do_rcn"), - @SerializedName("fi") - FI("fi"), + @SerializedName("gt_nit") + GT_NIT("gt_nit"), - @SerializedName("fj") - FJ("fj"), + @SerializedName("hk_id") + HK_ID("hk_id"), - @SerializedName("fk") - FK("fk"), + @SerializedName("kz_iin") + KZ_IIN("kz_iin"), - @SerializedName("fm") - FM("fm"), + @SerializedName("mx_rfc") + MX_RFC("mx_rfc"), - @SerializedName("fo") - FO("fo"), + @SerializedName("my_nric") + MY_NRIC("my_nric"), - @SerializedName("fr") - FR("fr"), + @SerializedName("mz_nuit") + MZ_NUIT("mz_nuit"), - @SerializedName("ga") - GA("ga"), + @SerializedName("nl_bsn") + NL_BSN("nl_bsn"), - @SerializedName("gb") - GB("gb"), + @SerializedName("pe_dni") + PE_DNI("pe_dni"), - @SerializedName("gd") - GD("gd"), + @SerializedName("pk_cnic") + PK_CNIC("pk_cnic"), - @SerializedName("ge") - GE("ge"), + @SerializedName("pk_snic") + PK_SNIC("pk_snic"), - @SerializedName("gf") - GF("gf"), + @SerializedName("sa_tin") + SA_TIN("sa_tin"), - @SerializedName("gg") - GG("gg"), + @SerializedName("sg_fin") + SG_FIN("sg_fin"), - @SerializedName("gh") - GH("gh"), + @SerializedName("sg_nric") + SG_NRIC("sg_nric"), - @SerializedName("gi") - GI("gi"), + @SerializedName("th_lc") + TH_LC("th_lc"), - @SerializedName("gl") - GL("gl"), + @SerializedName("th_pin") + TH_PIN("th_pin"), - @SerializedName("gm") - GM("gm"), + @SerializedName("us_itin") + US_ITIN("us_itin"), - @SerializedName("gn") - GN("gn"), + @SerializedName("us_itin_last_4") + US_ITIN_LAST_4("us_itin_last_4"), - @SerializedName("gp") - GP("gp"), + @SerializedName("us_ssn") + US_SSN("us_ssn"), - @SerializedName("gq") - GQ("gq"), + @SerializedName("us_ssn_last_4") + US_SSN_LAST_4("us_ssn_last_4"); - @SerializedName("gr") - GR("gr"), + @Getter(onMethod_ = {@Override}) + private final String value; - @SerializedName("gs") - GS("gs"), + Type(String value) { + this.value = value; + } + } + } - @SerializedName("gt") - GT("gt"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Relationship { + /** Whether the individual is an authorizer of the Account’s legal entity. */ + @SerializedName("authorizer") + Boolean authorizer; - @SerializedName("gu") - GU("gu"), + /** Indicates whether the person is a director of the associated legal entity. */ + @SerializedName("director") + Boolean director; - @SerializedName("gw") - GW("gw"), + /** Indicates whether the person is an executive of the associated legal entity. */ + @SerializedName("executive") + Boolean executive; - @SerializedName("gy") - GY("gy"), + /** + * 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; - @SerializedName("hk") - HK("hk"), + /** Indicates whether the person is a legal guardian of the associated legal entity. */ + @SerializedName("legal_guardian") + Boolean legalGuardian; - @SerializedName("hm") - HM("hm"), + /** Indicates whether the person is an owner of the associated legal entity. */ + @SerializedName("owner") + Boolean owner; - @SerializedName("hn") - HN("hn"), + /** The percentage of ownership the person has in the associated legal entity. */ + @SerializedName("percent_ownership") + Object percentOwnership; - @SerializedName("hr") - HR("hr"), + /** Indicates whether the person is a representative of the associated legal entity. */ + @SerializedName("representative") + Boolean representative; - @SerializedName("ht") - HT("ht"), + /** The title or position the person holds in the associated legal entity. */ + @SerializedName("title") + Object title; - @SerializedName("hu") - HU("hu"), + private Relationship( + Boolean authorizer, + Boolean director, + Boolean executive, + Map extraParams, + Boolean legalGuardian, + Boolean owner, + Object percentOwnership, + Boolean representative, + Object title) { + this.authorizer = authorizer; + this.director = director; + this.executive = executive; + this.extraParams = extraParams; + this.legalGuardian = legalGuardian; + this.owner = owner; + this.percentOwnership = percentOwnership; + this.representative = representative; + this.title = title; + } - @SerializedName("id") - ID("id"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("ie") - IE("ie"), + public static class Builder { + private Boolean authorizer; - @SerializedName("il") - IL("il"), + private Boolean director; - @SerializedName("im") - IM("im"), + private Boolean executive; - @SerializedName("in") - IN("in"), + private Map extraParams; - @SerializedName("io") - IO("io"), + private Boolean legalGuardian; - @SerializedName("iq") - IQ("iq"), + private Boolean owner; - @SerializedName("ir") - IR("ir"), + private Object percentOwnership; - @SerializedName("is") - IS("is"), + private Boolean representative; - @SerializedName("it") - IT("it"), + private Object title; - @SerializedName("je") - JE("je"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.Relationship build() { + return new PersonUpdateParams.Relationship( + this.authorizer, + this.director, + this.executive, + this.extraParams, + this.legalGuardian, + this.owner, + this.percentOwnership, + this.representative, + this.title); + } - @SerializedName("jm") - JM("jm"), + /** Whether the individual is an authorizer of the Account’s legal entity. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } - @SerializedName("jo") - JO("jo"), + /** Indicates whether the person is a director of the associated legal entity. */ + public Builder setDirector(Boolean director) { + this.director = director; + return this; + } - @SerializedName("jp") - JP("jp"), + /** Indicates whether the person is an executive of the associated legal entity. */ + public Builder setExecutive(Boolean executive) { + this.executive = executive; + return this; + } - @SerializedName("ke") - KE("ke"), + /** + * 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 + * PersonUpdateParams.Relationship#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; + } - @SerializedName("kg") - KG("kg"), + /** + * 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 PersonUpdateParams.Relationship#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("kh") - KH("kh"), + /** Indicates whether the person is a legal guardian of the associated legal entity. */ + public Builder setLegalGuardian(Boolean legalGuardian) { + this.legalGuardian = legalGuardian; + return this; + } - @SerializedName("ki") - KI("ki"), + /** Indicates whether the person is an owner of the associated legal entity. */ + public Builder setOwner(Boolean owner) { + this.owner = owner; + return this; + } - @SerializedName("km") - KM("km"), + /** The percentage of ownership the person has in the associated legal entity. */ + public Builder setPercentOwnership(BigDecimal percentOwnership) { + this.percentOwnership = percentOwnership; + return this; + } - @SerializedName("kn") - KN("kn"), + /** The percentage of ownership the person has in the associated legal entity. */ + public Builder setPercentOwnership(EmptyParam percentOwnership) { + this.percentOwnership = percentOwnership; + return this; + } - @SerializedName("kp") - KP("kp"), + /** Indicates whether the person is a representative of the associated legal entity. */ + public Builder setRepresentative(Boolean representative) { + this.representative = representative; + return this; + } - @SerializedName("kr") - KR("kr"), + /** The title or position the person holds in the associated legal entity. */ + public Builder setTitle(String title) { + this.title = title; + return this; + } - @SerializedName("kw") - KW("kw"), + /** The title or position the person holds in the associated legal entity. */ + public Builder setTitle(EmptyParam title) { + this.title = title; + return this; + } + } + } - @SerializedName("ky") - KY("ky"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptAddresses { + /** + * 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; - @SerializedName("kz") - KZ("kz"), + /** Kana Address. */ + @SerializedName("kana") + Kana kana; - @SerializedName("la") - LA("la"), + /** Kanji Address. */ + @SerializedName("kanji") + Kanji kanji; - @SerializedName("lb") - LB("lb"), + private ScriptAddresses(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } - @SerializedName("lc") - LC("lc"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("li") - LI("li"), + public static class Builder { + private Map extraParams; - @SerializedName("lk") - LK("lk"), + private Kana kana; - @SerializedName("lr") - LR("lr"), + private Kanji kanji; - @SerializedName("ls") - LS("ls"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.ScriptAddresses build() { + return new PersonUpdateParams.ScriptAddresses(this.extraParams, this.kana, this.kanji); + } - @SerializedName("lt") - LT("lt"), + /** + * 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 + * PersonUpdateParams.ScriptAddresses#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; + } - @SerializedName("lu") - LU("lu"), + /** + * 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 PersonUpdateParams.ScriptAddresses#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("lv") - LV("lv"), + /** Kana Address. */ + public Builder setKana(PersonUpdateParams.ScriptAddresses.Kana kana) { + this.kana = kana; + return this; + } - @SerializedName("ly") - LY("ly"), + /** Kanji Address. */ + public Builder setKanji(PersonUpdateParams.ScriptAddresses.Kanji kanji) { + this.kanji = kanji; + return this; + } + } - @SerializedName("ma") - MA("ma"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; - @SerializedName("mc") - MC("mc"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; - @SerializedName("md") - MD("md"), + /** + * 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; - @SerializedName("me") - ME("me"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; - @SerializedName("mf") - MF("mf"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; - @SerializedName("mg") - MG("mg"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; - @SerializedName("mh") - MH("mh"), + /** State, county, province, or region. */ + @SerializedName("state") + Object state; - @SerializedName("mk") - MK("mk"), + /** Town or cho-me. */ + @SerializedName("town") + Object town; - @SerializedName("ml") - ML("ml"), + private Kana( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state, + Object 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; + } - @SerializedName("mm") - MM("mm"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("mn") - MN("mn"), + public static class Builder { + private Object city; - @SerializedName("mo") - MO("mo"), + private Object country; - @SerializedName("mp") - MP("mp"), + private Map extraParams; - @SerializedName("mq") - MQ("mq"), + private Object line1; - @SerializedName("mr") - MR("mr"), + private Object line2; - @SerializedName("ms") - MS("ms"), + private Object postalCode; - @SerializedName("mt") - MT("mt"), + private Object state; - @SerializedName("mu") - MU("mu"), + private Object town; - @SerializedName("mv") - MV("mv"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.ScriptAddresses.Kana build() { + return new PersonUpdateParams.ScriptAddresses.Kana( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("mw") - MW("mw"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("mx") - MX("mx"), + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } - @SerializedName("my") - MY("my"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("mz") - MZ("mz"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("na") - NA("na"), + /** + * 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 PersonUpdateParams.ScriptAddresses.Kana#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; + } - @SerializedName("nc") - NC("nc"), + /** + * 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 PersonUpdateParams.ScriptAddresses.Kana#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ne") - NE("ne"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("nf") - NF("nf"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } - @SerializedName("ng") - NG("ng"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("ni") - NI("ni"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } - @SerializedName("nl") - NL("nl"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("no") - NO("no"), + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("np") - NP("np"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("nr") - NR("nr"), + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } - @SerializedName("nu") - NU("nu"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } - @SerializedName("nz") - NZ("nz"), + /** Town or cho-me. */ + public Builder setTown(EmptyParam town) { + this.town = town; + return this; + } + } + } - @SerializedName("om") - OM("om"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; - @SerializedName("pa") - PA("pa"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; - @SerializedName("pe") - PE("pe"), + /** + * 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; - @SerializedName("pf") - PF("pf"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; - @SerializedName("pg") - PG("pg"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; - @SerializedName("ph") - PH("ph"), + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; - @SerializedName("pk") - PK("pk"), + /** State, county, province, or region. */ + @SerializedName("state") + Object state; - @SerializedName("pl") - PL("pl"), + /** Town or cho-me. */ + @SerializedName("town") + Object town; - @SerializedName("pm") - PM("pm"), + private Kanji( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state, + Object 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; + } - @SerializedName("pn") - PN("pn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("pr") - PR("pr"), + public static class Builder { + private Object city; - @SerializedName("ps") - PS("ps"), + private Object country; - @SerializedName("pt") - PT("pt"), + private Map extraParams; - @SerializedName("pw") - PW("pw"), + private Object line1; - @SerializedName("py") - PY("py"), + private Object line2; - @SerializedName("qa") - QA("qa"), + private Object postalCode; - @SerializedName("qz") - QZ("qz"), + private Object state; - @SerializedName("re") - RE("re"), + private Object town; - @SerializedName("ro") - RO("ro"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.ScriptAddresses.Kanji build() { + return new PersonUpdateParams.ScriptAddresses.Kanji( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state, + this.town); + } - @SerializedName("rs") - RS("rs"), + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } - @SerializedName("ru") - RU("ru"), + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } - @SerializedName("rw") - RW("rw"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } - @SerializedName("sa") - SA("sa"), + /** + * Two-letter country code (ISO + * 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + return this; + } - @SerializedName("sb") - SB("sb"), + /** + * 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 PersonUpdateParams.ScriptAddresses.Kanji#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; + } - @SerializedName("sc") - SC("sc"), + /** + * 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 PersonUpdateParams.ScriptAddresses.Kanji#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("sd") - SD("sd"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } - @SerializedName("se") - SE("se"), + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } - @SerializedName("sg") - SG("sg"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } - @SerializedName("sh") - SH("sh"), + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } - @SerializedName("si") - SI("si"), + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("sj") - SJ("sj"), + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } - @SerializedName("sk") - SK("sk"), + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } - @SerializedName("sl") - SL("sl"), + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } - @SerializedName("sm") - SM("sm"), + /** Town or cho-me. */ + public Builder setTown(String town) { + this.town = town; + return this; + } - @SerializedName("sn") - SN("sn"), + /** Town or cho-me. */ + public Builder setTown(EmptyParam town) { + this.town = town; + return this; + } + } + } + } - @SerializedName("so") - SO("so"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ScriptNames { + /** + * 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; - @SerializedName("sr") - SR("sr"), + /** Persons name in kana script. */ + @SerializedName("kana") + Kana kana; - @SerializedName("ss") - SS("ss"), + /** Persons name in kanji script. */ + @SerializedName("kanji") + Kanji kanji; - @SerializedName("st") - ST("st"), + private ScriptNames(Map extraParams, Kana kana, Kanji kanji) { + this.extraParams = extraParams; + this.kana = kana; + this.kanji = kanji; + } - @SerializedName("sv") - SV("sv"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("sx") - SX("sx"), + public static class Builder { + private Map extraParams; - @SerializedName("sy") - SY("sy"), + private Kana kana; - @SerializedName("sz") - SZ("sz"), + private Kanji kanji; - @SerializedName("tc") - TC("tc"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.ScriptNames build() { + return new PersonUpdateParams.ScriptNames(this.extraParams, this.kana, this.kanji); + } - @SerializedName("td") - TD("td"), + /** + * 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 + * PersonUpdateParams.ScriptNames#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; + } - @SerializedName("tf") - TF("tf"), + /** + * 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 PersonUpdateParams.ScriptNames#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("tg") - TG("tg"), + /** Persons name in kana script. */ + public Builder setKana(PersonUpdateParams.ScriptNames.Kana kana) { + this.kana = kana; + return this; + } - @SerializedName("th") - TH("th"), + /** Persons name in kanji script. */ + public Builder setKanji(PersonUpdateParams.ScriptNames.Kanji kanji) { + this.kanji = kanji; + return this; + } + } - @SerializedName("tj") - TJ("tj"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kana { + /** + * 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; - @SerializedName("tk") - TK("tk"), + /** The person's first or given name. */ + @SerializedName("given_name") + Object givenName; - @SerializedName("tl") - TL("tl"), + /** The person's last or family name. */ + @SerializedName("surname") + Object surname; - @SerializedName("tm") - TM("tm"), + private Kana(Map extraParams, Object givenName, Object surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } - @SerializedName("tn") - TN("tn"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("to") - TO("to"), + public static class Builder { + private Map extraParams; - @SerializedName("tr") - TR("tr"), + private Object givenName; - @SerializedName("tt") - TT("tt"), + private Object surname; - @SerializedName("tv") - TV("tv"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.ScriptNames.Kana build() { + return new PersonUpdateParams.ScriptNames.Kana( + this.extraParams, this.givenName, this.surname); + } - @SerializedName("tw") - TW("tw"), + /** + * 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 PersonUpdateParams.ScriptNames.Kana#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; + } - @SerializedName("tz") - TZ("tz"), + /** + * 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 PersonUpdateParams.ScriptNames.Kana#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("ua") - UA("ua"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("ug") - UG("ug"), + /** The person's first or given name. */ + public Builder setGivenName(EmptyParam givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("um") - UM("um"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } - @SerializedName("us") - US("us"), + /** The person's last or family name. */ + public Builder setSurname(EmptyParam surname) { + this.surname = surname; + return this; + } + } + } - @SerializedName("uy") - UY("uy"), + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Kanji { + /** + * 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; - @SerializedName("uz") - UZ("uz"), + /** The person's first or given name. */ + @SerializedName("given_name") + Object givenName; - @SerializedName("va") - VA("va"), + /** The person's last or family name. */ + @SerializedName("surname") + Object surname; - @SerializedName("vc") - VC("vc"), + private Kanji(Map extraParams, Object givenName, Object surname) { + this.extraParams = extraParams; + this.givenName = givenName; + this.surname = surname; + } - @SerializedName("ve") - VE("ve"), + public static Builder builder() { + return new Builder(); + } - @SerializedName("vg") - VG("vg"), + public static class Builder { + private Map extraParams; - @SerializedName("vi") - VI("vi"), + private Object givenName; - @SerializedName("vn") - VN("vn"), + private Object surname; - @SerializedName("vu") - VU("vu"), + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.ScriptNames.Kanji build() { + return new PersonUpdateParams.ScriptNames.Kanji( + this.extraParams, this.givenName, this.surname); + } - @SerializedName("wf") - WF("wf"), + /** + * 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 PersonUpdateParams.ScriptNames.Kanji#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; + } - @SerializedName("ws") - WS("ws"), + /** + * 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 PersonUpdateParams.ScriptNames.Kanji#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } - @SerializedName("xx") - XX("xx"), + /** The person's first or given name. */ + public Builder setGivenName(String givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("ye") - YE("ye"), + /** The person's first or given name. */ + public Builder setGivenName(EmptyParam givenName) { + this.givenName = givenName; + return this; + } - @SerializedName("yt") - YT("yt"), + /** The person's last or family name. */ + public Builder setSurname(String surname) { + this.surname = surname; + return this; + } - @SerializedName("za") - ZA("za"), + /** The person's last or family name. */ + public Builder setSurname(EmptyParam surname) { + this.surname = surname; + return this; + } + } + } + } - @SerializedName("zm") - ZM("zm"), + public enum LegalGender implements ApiRequestParams.EnumParam { + @SerializedName("female") + FEMALE("female"), - @SerializedName("zw") - ZW("zw"); + @SerializedName("male") + MALE("male"); @Getter(onMethod_ = {@Override}) private final String value; - Nationality(String value) { + LegalGender(String value) { this.value = value; } } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/AdjustmentListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/AdjustmentListParams.java index 0a8ddbb5a3e..053aeb16d78 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/AdjustmentListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/AdjustmentListParams.java @@ -62,7 +62,7 @@ public class AdjustmentListParams extends ApiRequestParams { /** The page limit. */ @SerializedName("limit") - Integer limit; + Long limit; private AdjustmentListParams( String adjustedFlow, @@ -72,7 +72,7 @@ private AdjustmentListParams( Instant createdLt, Instant createdLte, Map extraParams, - Integer limit) { + Long limit) { this.adjustedFlow = adjustedFlow; this.created = created; this.createdGt = createdGt; @@ -102,7 +102,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public AdjustmentListParams build() { @@ -195,7 +195,7 @@ public Builder putAllExtraParam(Map map) { } /** The page limit. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountCreateParams.java index 72e1abace6c..40cd4ae211a 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountCreateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountCreateParams.java @@ -163,11 +163,9 @@ public static class Storage { /** Required. The currencies that this FinancialAccount can hold. */ @SerializedName("holds_currencies") - List holdsCurrencies; + List holdsCurrencies; - private Storage( - Map extraParams, - List holdsCurrencies) { + private Storage(Map extraParams, List holdsCurrencies) { this.extraParams = extraParams; this.holdsCurrencies = holdsCurrencies; } @@ -179,7 +177,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private List holdsCurrencies; + private List holdsCurrencies; /** Finalize and obtain parameter instance from this builder. */ public FinancialAccountCreateParams.Storage build() { @@ -217,7 +215,7 @@ public Builder putAllExtraParam(Map map) { * call, and subsequent calls adds additional elements to the original list. See {@link * FinancialAccountCreateParams.Storage#holdsCurrencies} for the field documentation. */ - public Builder addHoldsCurrency(FinancialAccountCreateParams.Storage.HoldsCurrency element) { + public Builder addHoldsCurrency(String element) { if (this.holdsCurrencies == null) { this.holdsCurrencies = new ArrayList<>(); } @@ -230,8 +228,7 @@ public Builder addHoldsCurrency(FinancialAccountCreateParams.Storage.HoldsCurren * `add/addAll` call, and subsequent calls adds additional elements to the original list. See * {@link FinancialAccountCreateParams.Storage#holdsCurrencies} for the field documentation. */ - public Builder addAllHoldsCurrency( - List elements) { + public Builder addAllHoldsCurrency(List elements) { if (this.holdsCurrencies == null) { this.holdsCurrencies = new ArrayList<>(); } @@ -239,555 +236,6 @@ public Builder addAllHoldsCurrency( return this; } } - - public enum HoldsCurrency implements ApiRequestParams.EnumParam { - @SerializedName("aed") - AED("aed"), - - @SerializedName("afn") - AFN("afn"), - - @SerializedName("all") - ALL("all"), - - @SerializedName("amd") - AMD("amd"), - - @SerializedName("ang") - ANG("ang"), - - @SerializedName("aoa") - AOA("aoa"), - - @SerializedName("ars") - ARS("ars"), - - @SerializedName("aud") - AUD("aud"), - - @SerializedName("awg") - AWG("awg"), - - @SerializedName("azn") - AZN("azn"), - - @SerializedName("bam") - BAM("bam"), - - @SerializedName("bbd") - BBD("bbd"), - - @SerializedName("bdt") - BDT("bdt"), - - @SerializedName("bgn") - BGN("bgn"), - - @SerializedName("bhd") - BHD("bhd"), - - @SerializedName("bif") - BIF("bif"), - - @SerializedName("bmd") - BMD("bmd"), - - @SerializedName("bnd") - BND("bnd"), - - @SerializedName("bob") - BOB("bob"), - - @SerializedName("bov") - BOV("bov"), - - @SerializedName("brl") - BRL("brl"), - - @SerializedName("bsd") - BSD("bsd"), - - @SerializedName("btn") - BTN("btn"), - - @SerializedName("bwp") - BWP("bwp"), - - @SerializedName("byn") - BYN("byn"), - - @SerializedName("byr") - BYR("byr"), - - @SerializedName("bzd") - BZD("bzd"), - - @SerializedName("cad") - CAD("cad"), - - @SerializedName("cdf") - CDF("cdf"), - - @SerializedName("che") - CHE("che"), - - @SerializedName("chf") - CHF("chf"), - - @SerializedName("chw") - CHW("chw"), - - @SerializedName("clf") - CLF("clf"), - - @SerializedName("clp") - CLP("clp"), - - @SerializedName("cny") - CNY("cny"), - - @SerializedName("cop") - COP("cop"), - - @SerializedName("cou") - COU("cou"), - - @SerializedName("crc") - CRC("crc"), - - @SerializedName("cuc") - CUC("cuc"), - - @SerializedName("cup") - CUP("cup"), - - @SerializedName("cve") - CVE("cve"), - - @SerializedName("czk") - CZK("czk"), - - @SerializedName("djf") - DJF("djf"), - - @SerializedName("dkk") - DKK("dkk"), - - @SerializedName("dop") - DOP("dop"), - - @SerializedName("dzd") - DZD("dzd"), - - @SerializedName("eek") - EEK("eek"), - - @SerializedName("egp") - EGP("egp"), - - @SerializedName("ern") - ERN("ern"), - - @SerializedName("etb") - ETB("etb"), - - @SerializedName("eur") - EUR("eur"), - - @SerializedName("fjd") - FJD("fjd"), - - @SerializedName("fkp") - FKP("fkp"), - - @SerializedName("gbp") - GBP("gbp"), - - @SerializedName("gel") - GEL("gel"), - - @SerializedName("ghc") - GHC("ghc"), - - @SerializedName("ghs") - GHS("ghs"), - - @SerializedName("gip") - GIP("gip"), - - @SerializedName("gmd") - GMD("gmd"), - - @SerializedName("gnf") - GNF("gnf"), - - @SerializedName("gtq") - GTQ("gtq"), - - @SerializedName("gyd") - GYD("gyd"), - - @SerializedName("hkd") - HKD("hkd"), - - @SerializedName("hnl") - HNL("hnl"), - - @SerializedName("hrk") - HRK("hrk"), - - @SerializedName("htg") - HTG("htg"), - - @SerializedName("huf") - HUF("huf"), - - @SerializedName("idr") - IDR("idr"), - - @SerializedName("ils") - ILS("ils"), - - @SerializedName("inr") - INR("inr"), - - @SerializedName("iqd") - IQD("iqd"), - - @SerializedName("irr") - IRR("irr"), - - @SerializedName("isk") - ISK("isk"), - - @SerializedName("jmd") - JMD("jmd"), - - @SerializedName("jod") - JOD("jod"), - - @SerializedName("jpy") - JPY("jpy"), - - @SerializedName("kes") - KES("kes"), - - @SerializedName("kgs") - KGS("kgs"), - - @SerializedName("khr") - KHR("khr"), - - @SerializedName("kmf") - KMF("kmf"), - - @SerializedName("kpw") - KPW("kpw"), - - @SerializedName("krw") - KRW("krw"), - - @SerializedName("kwd") - KWD("kwd"), - - @SerializedName("kyd") - KYD("kyd"), - - @SerializedName("kzt") - KZT("kzt"), - - @SerializedName("lak") - LAK("lak"), - - @SerializedName("lbp") - LBP("lbp"), - - @SerializedName("lkr") - LKR("lkr"), - - @SerializedName("lrd") - LRD("lrd"), - - @SerializedName("lsl") - LSL("lsl"), - - @SerializedName("ltl") - LTL("ltl"), - - @SerializedName("lvl") - LVL("lvl"), - - @SerializedName("lyd") - LYD("lyd"), - - @SerializedName("mad") - MAD("mad"), - - @SerializedName("mdl") - MDL("mdl"), - - @SerializedName("mga") - MGA("mga"), - - @SerializedName("mkd") - MKD("mkd"), - - @SerializedName("mmk") - MMK("mmk"), - - @SerializedName("mnt") - MNT("mnt"), - - @SerializedName("mop") - MOP("mop"), - - @SerializedName("mro") - MRO("mro"), - - @SerializedName("mru") - MRU("mru"), - - @SerializedName("mur") - MUR("mur"), - - @SerializedName("mvr") - MVR("mvr"), - - @SerializedName("mwk") - MWK("mwk"), - - @SerializedName("mxn") - MXN("mxn"), - - @SerializedName("mxv") - MXV("mxv"), - - @SerializedName("myr") - MYR("myr"), - - @SerializedName("mzn") - MZN("mzn"), - - @SerializedName("nad") - NAD("nad"), - - @SerializedName("ngn") - NGN("ngn"), - - @SerializedName("nio") - NIO("nio"), - - @SerializedName("nok") - NOK("nok"), - - @SerializedName("npr") - NPR("npr"), - - @SerializedName("nzd") - NZD("nzd"), - - @SerializedName("omr") - OMR("omr"), - - @SerializedName("pab") - PAB("pab"), - - @SerializedName("pen") - PEN("pen"), - - @SerializedName("pgk") - PGK("pgk"), - - @SerializedName("php") - PHP("php"), - - @SerializedName("pkr") - PKR("pkr"), - - @SerializedName("pln") - PLN("pln"), - - @SerializedName("pyg") - PYG("pyg"), - - @SerializedName("qar") - QAR("qar"), - - @SerializedName("ron") - RON("ron"), - - @SerializedName("rsd") - RSD("rsd"), - - @SerializedName("rub") - RUB("rub"), - - @SerializedName("rwf") - RWF("rwf"), - - @SerializedName("sar") - SAR("sar"), - - @SerializedName("sbd") - SBD("sbd"), - - @SerializedName("scr") - SCR("scr"), - - @SerializedName("sdg") - SDG("sdg"), - - @SerializedName("sek") - SEK("sek"), - - @SerializedName("sgd") - SGD("sgd"), - - @SerializedName("shp") - SHP("shp"), - - @SerializedName("sle") - SLE("sle"), - - @SerializedName("sll") - SLL("sll"), - - @SerializedName("sos") - SOS("sos"), - - @SerializedName("srd") - SRD("srd"), - - @SerializedName("ssp") - SSP("ssp"), - - @SerializedName("std") - STD("std"), - - @SerializedName("stn") - STN("stn"), - - @SerializedName("svc") - SVC("svc"), - - @SerializedName("syp") - SYP("syp"), - - @SerializedName("szl") - SZL("szl"), - - @SerializedName("thb") - THB("thb"), - - @SerializedName("tjs") - TJS("tjs"), - - @SerializedName("tmt") - TMT("tmt"), - - @SerializedName("tnd") - TND("tnd"), - - @SerializedName("top") - TOP("top"), - - @SerializedName("try") - TRY("try"), - - @SerializedName("ttd") - TTD("ttd"), - - @SerializedName("twd") - TWD("twd"), - - @SerializedName("tzs") - TZS("tzs"), - - @SerializedName("uah") - UAH("uah"), - - @SerializedName("ugx") - UGX("ugx"), - - @SerializedName("usd") - USD("usd"), - - @SerializedName("usdb") - USDB("usdb"), - - @SerializedName("usdc") - USDC("usdc"), - - @SerializedName("usn") - USN("usn"), - - @SerializedName("uyi") - UYI("uyi"), - - @SerializedName("uyu") - UYU("uyu"), - - @SerializedName("uzs") - UZS("uzs"), - - @SerializedName("vef") - VEF("vef"), - - @SerializedName("ves") - VES("ves"), - - @SerializedName("vnd") - VND("vnd"), - - @SerializedName("vuv") - VUV("vuv"), - - @SerializedName("wst") - WST("wst"), - - @SerializedName("xaf") - XAF("xaf"), - - @SerializedName("xcd") - XCD("xcd"), - - @SerializedName("xcg") - XCG("xcg"), - - @SerializedName("xof") - XOF("xof"), - - @SerializedName("xpf") - XPF("xpf"), - - @SerializedName("yer") - YER("yer"), - - @SerializedName("zar") - ZAR("zar"), - - @SerializedName("zmk") - ZMK("zmk"), - - @SerializedName("zmw") - ZMW("zmw"), - - @SerializedName("zwd") - ZWD("zwd"), - - @SerializedName("zwg") - ZWG("zwg"), - - @SerializedName("zwl") - ZWL("zwl"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - HoldsCurrency(String value) { - this.value = value; - } - } } public enum Type implements ApiRequestParams.EnumParam { diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountListParams.java index dd6bd5cf0dd..62b3602e534 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAccountListParams.java @@ -22,7 +22,7 @@ public class FinancialAccountListParams extends ApiRequestParams { /** The page limit. */ @SerializedName("limit") - Integer limit; + Long limit; /** * The status of the FinancialAccount to filter by. By default, closed FinancialAccounts are not @@ -31,8 +31,7 @@ public class FinancialAccountListParams extends ApiRequestParams { @SerializedName("status") Status status; - private FinancialAccountListParams( - Map extraParams, Integer limit, Status status) { + private FinancialAccountListParams(Map extraParams, Long limit, Status status) { this.extraParams = extraParams; this.limit = limit; this.status = status; @@ -45,7 +44,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private Status status; @@ -81,7 +80,7 @@ public Builder putAllExtraParam(Map map) { } /** The page limit. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressCreateParams.java index 32713fc5470..6d63e32b118 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressCreateParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressCreateParams.java @@ -16,7 +16,7 @@ public class FinancialAddressCreateParams extends ApiRequestParams { * Currently, only the {@code usd} and {@code gbp} values are supported. */ @SerializedName("currency") - Currency currency; + String currency; /** * Map of extra parameters for custom features not available in this client library. The content @@ -35,7 +35,7 @@ public class FinancialAddressCreateParams extends ApiRequestParams { String financialAccount; private FinancialAddressCreateParams( - Currency currency, Map extraParams, String financialAccount) { + String currency, Map extraParams, String financialAccount) { this.currency = currency; this.extraParams = extraParams; this.financialAccount = financialAccount; @@ -46,7 +46,7 @@ public static Builder builder() { } public static class Builder { - private Currency currency; + private String currency; private Map extraParams; @@ -62,7 +62,7 @@ public FinancialAddressCreateParams build() { * Required. Open Enum. The currency the FinancialAddress should support. * Currently, only the {@code usd} and {@code gbp} values are supported. */ - public Builder setCurrency(FinancialAddressCreateParams.Currency currency) { + public Builder setCurrency(String currency) { this.currency = currency; return this; } @@ -102,553 +102,4 @@ public Builder setFinancialAccount(String financialAccount) { return this; } } - - public enum Currency implements ApiRequestParams.EnumParam { - @SerializedName("aed") - AED("aed"), - - @SerializedName("afn") - AFN("afn"), - - @SerializedName("all") - ALL("all"), - - @SerializedName("amd") - AMD("amd"), - - @SerializedName("ang") - ANG("ang"), - - @SerializedName("aoa") - AOA("aoa"), - - @SerializedName("ars") - ARS("ars"), - - @SerializedName("aud") - AUD("aud"), - - @SerializedName("awg") - AWG("awg"), - - @SerializedName("azn") - AZN("azn"), - - @SerializedName("bam") - BAM("bam"), - - @SerializedName("bbd") - BBD("bbd"), - - @SerializedName("bdt") - BDT("bdt"), - - @SerializedName("bgn") - BGN("bgn"), - - @SerializedName("bhd") - BHD("bhd"), - - @SerializedName("bif") - BIF("bif"), - - @SerializedName("bmd") - BMD("bmd"), - - @SerializedName("bnd") - BND("bnd"), - - @SerializedName("bob") - BOB("bob"), - - @SerializedName("bov") - BOV("bov"), - - @SerializedName("brl") - BRL("brl"), - - @SerializedName("bsd") - BSD("bsd"), - - @SerializedName("btn") - BTN("btn"), - - @SerializedName("bwp") - BWP("bwp"), - - @SerializedName("byn") - BYN("byn"), - - @SerializedName("byr") - BYR("byr"), - - @SerializedName("bzd") - BZD("bzd"), - - @SerializedName("cad") - CAD("cad"), - - @SerializedName("cdf") - CDF("cdf"), - - @SerializedName("che") - CHE("che"), - - @SerializedName("chf") - CHF("chf"), - - @SerializedName("chw") - CHW("chw"), - - @SerializedName("clf") - CLF("clf"), - - @SerializedName("clp") - CLP("clp"), - - @SerializedName("cny") - CNY("cny"), - - @SerializedName("cop") - COP("cop"), - - @SerializedName("cou") - COU("cou"), - - @SerializedName("crc") - CRC("crc"), - - @SerializedName("cuc") - CUC("cuc"), - - @SerializedName("cup") - CUP("cup"), - - @SerializedName("cve") - CVE("cve"), - - @SerializedName("czk") - CZK("czk"), - - @SerializedName("djf") - DJF("djf"), - - @SerializedName("dkk") - DKK("dkk"), - - @SerializedName("dop") - DOP("dop"), - - @SerializedName("dzd") - DZD("dzd"), - - @SerializedName("eek") - EEK("eek"), - - @SerializedName("egp") - EGP("egp"), - - @SerializedName("ern") - ERN("ern"), - - @SerializedName("etb") - ETB("etb"), - - @SerializedName("eur") - EUR("eur"), - - @SerializedName("fjd") - FJD("fjd"), - - @SerializedName("fkp") - FKP("fkp"), - - @SerializedName("gbp") - GBP("gbp"), - - @SerializedName("gel") - GEL("gel"), - - @SerializedName("ghc") - GHC("ghc"), - - @SerializedName("ghs") - GHS("ghs"), - - @SerializedName("gip") - GIP("gip"), - - @SerializedName("gmd") - GMD("gmd"), - - @SerializedName("gnf") - GNF("gnf"), - - @SerializedName("gtq") - GTQ("gtq"), - - @SerializedName("gyd") - GYD("gyd"), - - @SerializedName("hkd") - HKD("hkd"), - - @SerializedName("hnl") - HNL("hnl"), - - @SerializedName("hrk") - HRK("hrk"), - - @SerializedName("htg") - HTG("htg"), - - @SerializedName("huf") - HUF("huf"), - - @SerializedName("idr") - IDR("idr"), - - @SerializedName("ils") - ILS("ils"), - - @SerializedName("inr") - INR("inr"), - - @SerializedName("iqd") - IQD("iqd"), - - @SerializedName("irr") - IRR("irr"), - - @SerializedName("isk") - ISK("isk"), - - @SerializedName("jmd") - JMD("jmd"), - - @SerializedName("jod") - JOD("jod"), - - @SerializedName("jpy") - JPY("jpy"), - - @SerializedName("kes") - KES("kes"), - - @SerializedName("kgs") - KGS("kgs"), - - @SerializedName("khr") - KHR("khr"), - - @SerializedName("kmf") - KMF("kmf"), - - @SerializedName("kpw") - KPW("kpw"), - - @SerializedName("krw") - KRW("krw"), - - @SerializedName("kwd") - KWD("kwd"), - - @SerializedName("kyd") - KYD("kyd"), - - @SerializedName("kzt") - KZT("kzt"), - - @SerializedName("lak") - LAK("lak"), - - @SerializedName("lbp") - LBP("lbp"), - - @SerializedName("lkr") - LKR("lkr"), - - @SerializedName("lrd") - LRD("lrd"), - - @SerializedName("lsl") - LSL("lsl"), - - @SerializedName("ltl") - LTL("ltl"), - - @SerializedName("lvl") - LVL("lvl"), - - @SerializedName("lyd") - LYD("lyd"), - - @SerializedName("mad") - MAD("mad"), - - @SerializedName("mdl") - MDL("mdl"), - - @SerializedName("mga") - MGA("mga"), - - @SerializedName("mkd") - MKD("mkd"), - - @SerializedName("mmk") - MMK("mmk"), - - @SerializedName("mnt") - MNT("mnt"), - - @SerializedName("mop") - MOP("mop"), - - @SerializedName("mro") - MRO("mro"), - - @SerializedName("mru") - MRU("mru"), - - @SerializedName("mur") - MUR("mur"), - - @SerializedName("mvr") - MVR("mvr"), - - @SerializedName("mwk") - MWK("mwk"), - - @SerializedName("mxn") - MXN("mxn"), - - @SerializedName("mxv") - MXV("mxv"), - - @SerializedName("myr") - MYR("myr"), - - @SerializedName("mzn") - MZN("mzn"), - - @SerializedName("nad") - NAD("nad"), - - @SerializedName("ngn") - NGN("ngn"), - - @SerializedName("nio") - NIO("nio"), - - @SerializedName("nok") - NOK("nok"), - - @SerializedName("npr") - NPR("npr"), - - @SerializedName("nzd") - NZD("nzd"), - - @SerializedName("omr") - OMR("omr"), - - @SerializedName("pab") - PAB("pab"), - - @SerializedName("pen") - PEN("pen"), - - @SerializedName("pgk") - PGK("pgk"), - - @SerializedName("php") - PHP("php"), - - @SerializedName("pkr") - PKR("pkr"), - - @SerializedName("pln") - PLN("pln"), - - @SerializedName("pyg") - PYG("pyg"), - - @SerializedName("qar") - QAR("qar"), - - @SerializedName("ron") - RON("ron"), - - @SerializedName("rsd") - RSD("rsd"), - - @SerializedName("rub") - RUB("rub"), - - @SerializedName("rwf") - RWF("rwf"), - - @SerializedName("sar") - SAR("sar"), - - @SerializedName("sbd") - SBD("sbd"), - - @SerializedName("scr") - SCR("scr"), - - @SerializedName("sdg") - SDG("sdg"), - - @SerializedName("sek") - SEK("sek"), - - @SerializedName("sgd") - SGD("sgd"), - - @SerializedName("shp") - SHP("shp"), - - @SerializedName("sle") - SLE("sle"), - - @SerializedName("sll") - SLL("sll"), - - @SerializedName("sos") - SOS("sos"), - - @SerializedName("srd") - SRD("srd"), - - @SerializedName("ssp") - SSP("ssp"), - - @SerializedName("std") - STD("std"), - - @SerializedName("stn") - STN("stn"), - - @SerializedName("svc") - SVC("svc"), - - @SerializedName("syp") - SYP("syp"), - - @SerializedName("szl") - SZL("szl"), - - @SerializedName("thb") - THB("thb"), - - @SerializedName("tjs") - TJS("tjs"), - - @SerializedName("tmt") - TMT("tmt"), - - @SerializedName("tnd") - TND("tnd"), - - @SerializedName("top") - TOP("top"), - - @SerializedName("try") - TRY("try"), - - @SerializedName("ttd") - TTD("ttd"), - - @SerializedName("twd") - TWD("twd"), - - @SerializedName("tzs") - TZS("tzs"), - - @SerializedName("uah") - UAH("uah"), - - @SerializedName("ugx") - UGX("ugx"), - - @SerializedName("usd") - USD("usd"), - - @SerializedName("usdb") - USDB("usdb"), - - @SerializedName("usdc") - USDC("usdc"), - - @SerializedName("usn") - USN("usn"), - - @SerializedName("uyi") - UYI("uyi"), - - @SerializedName("uyu") - UYU("uyu"), - - @SerializedName("uzs") - UZS("uzs"), - - @SerializedName("vef") - VEF("vef"), - - @SerializedName("ves") - VES("ves"), - - @SerializedName("vnd") - VND("vnd"), - - @SerializedName("vuv") - VUV("vuv"), - - @SerializedName("wst") - WST("wst"), - - @SerializedName("xaf") - XAF("xaf"), - - @SerializedName("xcd") - XCD("xcd"), - - @SerializedName("xcg") - XCG("xcg"), - - @SerializedName("xof") - XOF("xof"), - - @SerializedName("xpf") - XPF("xpf"), - - @SerializedName("yer") - YER("yer"), - - @SerializedName("zar") - ZAR("zar"), - - @SerializedName("zmk") - ZMK("zmk"), - - @SerializedName("zmw") - ZMW("zmw"), - - @SerializedName("zwd") - ZWD("zwd"), - - @SerializedName("zwg") - ZWG("zwg"), - - @SerializedName("zwl") - ZWL("zwl"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Currency(String value) { - this.value = value; - } - } } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressListParams.java index 8b75cdde6a6..c1648bcb8ff 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/FinancialAddressListParams.java @@ -32,13 +32,13 @@ public class FinancialAddressListParams extends ApiRequestParams { /** The page limit. */ @SerializedName("limit") - Integer limit; + Long limit; private FinancialAddressListParams( Map extraParams, String financialAccount, List include, - Integer limit) { + Long limit) { this.extraParams = extraParams; this.financialAccount = financialAccount; this.include = include; @@ -56,7 +56,7 @@ public static class Builder { private List include; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public FinancialAddressListParams build() { @@ -123,7 +123,7 @@ public Builder addAllInclude(List elements) } /** The page limit. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferListParams.java index 0b638962e04..da3d882ee3a 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferListParams.java @@ -58,7 +58,7 @@ public class InboundTransferListParams extends ApiRequestParams { /** The page limit. */ @SerializedName("limit") - Integer limit; + Long limit; private InboundTransferListParams( Instant created, @@ -67,7 +67,7 @@ private InboundTransferListParams( Instant createdLt, Instant createdLte, Map extraParams, - Integer limit) { + Long limit) { this.created = created; this.createdGt = createdGt; this.createdGte = createdGte; @@ -94,7 +94,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public InboundTransferListParams build() { @@ -180,7 +180,7 @@ public Builder putAllExtraParam(Map map) { } /** The page limit. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentListParams.java index 9f8d4914310..137da8c20cd 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentListParams.java @@ -60,7 +60,7 @@ public class OutboundPaymentListParams extends ApiRequestParams { /** The maximum number of results to return. */ @SerializedName("limit") - Integer limit; + Long limit; /** Only return OutboundPayments sent to this recipient. */ @SerializedName("recipient") @@ -77,7 +77,7 @@ private OutboundPaymentListParams( Instant createdLt, Instant createdLte, Map extraParams, - Integer limit, + Long limit, String recipient, List status) { this.created = created; @@ -108,7 +108,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private String recipient; @@ -200,7 +200,7 @@ public Builder putAllExtraParam(Map map) { } /** The maximum number of results to return. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentListParams.java index 6ff599cd910..cb5e4e3e137 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundSetupIntentListParams.java @@ -22,9 +22,9 @@ public class OutboundSetupIntentListParams extends ApiRequestParams { /** The page size. */ @SerializedName("limit") - Integer limit; + Long limit; - private OutboundSetupIntentListParams(Map extraParams, Integer limit) { + private OutboundSetupIntentListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public OutboundSetupIntentListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** The page size. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferListParams.java index b2fb2a57f30..a14762e0361 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferListParams.java @@ -60,7 +60,7 @@ public class OutboundTransferListParams extends ApiRequestParams { /** The maximum number of results to return. */ @SerializedName("limit") - Integer limit; + Long limit; /** Closed Enum. Only return OutboundTransfers with this status. */ @SerializedName("status") @@ -73,7 +73,7 @@ private OutboundTransferListParams( Instant createdLt, Instant createdLte, Map extraParams, - Integer limit, + Long limit, List status) { this.created = created; this.createdGt = createdGt; @@ -102,7 +102,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private List status; @@ -191,7 +191,7 @@ public Builder putAllExtraParam(Map map) { } /** The maximum number of results to return. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/PayoutMethodListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/PayoutMethodListParams.java index 99ea4de3257..733d4673d9b 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/PayoutMethodListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/PayoutMethodListParams.java @@ -24,14 +24,14 @@ public class PayoutMethodListParams extends ApiRequestParams { /** The page size. */ @SerializedName("limit") - Integer limit; + Long limit; /** Usage status filter. */ @SerializedName("usage_status") UsageStatus usageStatus; private PayoutMethodListParams( - Map extraParams, Integer limit, UsageStatus usageStatus) { + Map extraParams, Long limit, UsageStatus usageStatus) { this.extraParams = extraParams; this.limit = limit; this.usageStatus = usageStatus; @@ -44,7 +44,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private UsageStatus usageStatus; @@ -80,7 +80,7 @@ public Builder putAllExtraParam(Map map) { } /** The page size. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/ReceivedCreditListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/ReceivedCreditListParams.java index ebcc6dd16d0..5706d2c9590 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/ReceivedCreditListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/ReceivedCreditListParams.java @@ -58,7 +58,7 @@ public class ReceivedCreditListParams extends ApiRequestParams { /** The page limit. */ @SerializedName("limit") - Integer limit; + Long limit; private ReceivedCreditListParams( Instant created, @@ -67,7 +67,7 @@ private ReceivedCreditListParams( Instant createdLt, Instant createdLte, Map extraParams, - Integer limit) { + Long limit) { this.created = created; this.createdGt = createdGt; this.createdGte = createdGte; @@ -94,7 +94,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public ReceivedCreditListParams build() { @@ -180,7 +180,7 @@ public Builder putAllExtraParam(Map map) { } /** The page limit. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/ReceivedDebitListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/ReceivedDebitListParams.java index a5325307144..e649837e789 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/ReceivedDebitListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/ReceivedDebitListParams.java @@ -22,9 +22,9 @@ public class ReceivedDebitListParams extends ApiRequestParams { /** The page limit. */ @SerializedName("limit") - Integer limit; + Long limit; - private ReceivedDebitListParams(Map extraParams, Integer limit) { + private ReceivedDebitListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public ReceivedDebitListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** The page limit. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/TransactionEntryListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/TransactionEntryListParams.java index 29d86cf889c..c9e9e61c55d 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/TransactionEntryListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/TransactionEntryListParams.java @@ -43,7 +43,7 @@ public class TransactionEntryListParams extends ApiRequestParams { /** The page limit. */ @SerializedName("limit") - Integer limit; + Long limit; /** Filter for TransactionEntries belonging to a Transaction. */ @SerializedName("transaction") @@ -56,7 +56,7 @@ private TransactionEntryListParams( Instant createdLt, Instant createdLte, Map extraParams, - Integer limit, + Long limit, String transaction) { this.created = created; this.createdGt = createdGt; @@ -85,7 +85,7 @@ public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; private String transaction; @@ -159,7 +159,7 @@ public Builder putAllExtraParam(Map map) { } /** The page limit. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/TransactionListParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/TransactionListParams.java index c68ba25651d..5fee3aa90d9 100644 --- a/src/main/java/com/stripe/param/v2/moneymanagement/TransactionListParams.java +++ b/src/main/java/com/stripe/param/v2/moneymanagement/TransactionListParams.java @@ -51,7 +51,7 @@ public class TransactionListParams extends ApiRequestParams { /** The page limit. */ @SerializedName("limit") - Integer limit; + Long limit; private TransactionListParams( Instant created, @@ -62,7 +62,7 @@ private TransactionListParams( Map extraParams, String financialAccount, String flow, - Integer limit) { + Long limit) { this.created = created; this.createdGt = createdGt; this.createdGte = createdGte; @@ -95,7 +95,7 @@ public static class Builder { private String flow; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public TransactionListParams build() { @@ -180,7 +180,7 @@ public Builder setFlow(String flow) { } /** The page limit. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java index 740bedd974a..bfbd00c1cb5 100644 --- a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java +++ b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java @@ -391,7 +391,7 @@ public static class TransferData { * unit (e.g., 100 cents to charge $1.00). */ @SerializedName("amount") - Integer amount; + Long amount; /** * Required. The account (if any) that the payment is attributed to for tax @@ -409,7 +409,7 @@ public static class TransferData { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private TransferData(Integer amount, String destination, Map extraParams) { + private TransferData(Long amount, String destination, Map extraParams) { this.amount = amount; this.destination = destination; this.extraParams = extraParams; @@ -420,7 +420,7 @@ public static Builder builder() { } public static class Builder { - private Integer amount; + private Long amount; private String destination; @@ -440,7 +440,7 @@ public OffSessionPaymentCreateParams.TransferData build() { * and must be a positive integer representing how much to transfer in the smallest currency * unit (e.g., 100 cents to charge $1.00). */ - public Builder setAmount(Integer amount) { + public Builder setAmount(Long amount) { this.amount = amount; return this; } diff --git a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentListParams.java b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentListParams.java index 6131ef337aa..1ac7a81f472 100644 --- a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentListParams.java +++ b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentListParams.java @@ -22,9 +22,9 @@ public class OffSessionPaymentListParams extends ApiRequestParams { /** The page size limit. If not provided, the default is 20. */ @SerializedName("limit") - Integer limit; + Long limit; - private OffSessionPaymentListParams(Map extraParams, Integer limit) { + private OffSessionPaymentListParams(Map extraParams, Long limit) { this.extraParams = extraParams; this.limit = limit; } @@ -36,7 +36,7 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Integer limit; + private Long limit; /** Finalize and obtain parameter instance from this builder. */ public OffSessionPaymentListParams build() { @@ -70,7 +70,7 @@ public Builder putAllExtraParam(Map map) { } /** The page size limit. If not provided, the default is 20. */ - public Builder setLimit(Integer limit) { + public Builder setLimit(Long limit) { this.limit = limit; return this; } diff --git a/src/main/java/com/stripe/param/v2/reporting/ReportRunCreateParams.java b/src/main/java/com/stripe/param/v2/reporting/ReportRunCreateParams.java deleted file mode 100644 index 28cf075dd64..00000000000 --- a/src/main/java/com/stripe/param/v2/reporting/ReportRunCreateParams.java +++ /dev/null @@ -1,401 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.param.v2.reporting; - -import com.google.gson.annotations.SerializedName; -import com.stripe.net.ApiRequestParams; -import java.time.Instant; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import lombok.EqualsAndHashCode; -import lombok.Getter; - -@Getter -@EqualsAndHashCode(callSuper = false) -public class ReportRunCreateParams extends ApiRequestParams { - /** - * Map of extra parameters for custom features not available in this client library. The content - * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each - * key/value pair is serialized as if the key is a root-level field (serialized) name in this - * param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Required. The unique identifier of the {@code Report} being requested. */ - @SerializedName("report") - String report; - - /** - * Required. A map of parameter names to values, specifying how the report should - * be customized. The accepted parameters depend on the specific {@code Report} being run. - */ - @SerializedName("report_parameters") - Map reportParameters; - - /** Optional settings to customize the results of the {@code ReportRun}. */ - @SerializedName("result_options") - ResultOptions resultOptions; - - private ReportRunCreateParams( - Map extraParams, - String report, - Map reportParameters, - ResultOptions resultOptions) { - this.extraParams = extraParams; - this.report = report; - this.reportParameters = reportParameters; - this.resultOptions = resultOptions; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private String report; - - private Map reportParameters; - - private ResultOptions resultOptions; - - /** Finalize and obtain parameter instance from this builder. */ - public ReportRunCreateParams build() { - return new ReportRunCreateParams( - this.extraParams, this.report, this.reportParameters, this.resultOptions); - } - - /** - * 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 - * ReportRunCreateParams#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 ReportRunCreateParams#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Required. The unique identifier of the {@code Report} being requested. */ - public Builder setReport(String report) { - this.report = report; - return this; - } - - /** - * Add a key/value pair to `reportParameters` 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 ReportRunCreateParams#reportParameters} for the field documentation. - */ - public Builder putReportParameter(String key, ReportRunCreateParams.ReportParameter value) { - if (this.reportParameters == null) { - this.reportParameters = new HashMap<>(); - } - this.reportParameters.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `reportParameters` 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 ReportRunCreateParams#reportParameters} for the field documentation. - */ - public Builder putAllReportParameter(Map map) { - if (this.reportParameters == null) { - this.reportParameters = new HashMap<>(); - } - this.reportParameters.putAll(map); - return this; - } - - /** Optional settings to customize the results of the {@code ReportRun}. */ - public Builder setResultOptions(ReportRunCreateParams.ResultOptions resultOptions) { - this.resultOptions = resultOptions; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ReportParameter { - /** Parameter with an array data type. */ - @SerializedName("array_value") - ArrayValue arrayValue; - - /** - * 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; - - /** Parameter with a string data type. */ - @SerializedName("string_value") - String stringValue; - - /** Parameter with a timestamp data type. */ - @SerializedName("timestamp_value") - Instant timestampValue; - - private ReportParameter( - ArrayValue arrayValue, - Map extraParams, - String stringValue, - Instant timestampValue) { - this.arrayValue = arrayValue; - this.extraParams = extraParams; - this.stringValue = stringValue; - this.timestampValue = timestampValue; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private ArrayValue arrayValue; - - private Map extraParams; - - private String stringValue; - - private Instant timestampValue; - - /** Finalize and obtain parameter instance from this builder. */ - public ReportRunCreateParams.ReportParameter build() { - return new ReportRunCreateParams.ReportParameter( - this.arrayValue, this.extraParams, this.stringValue, this.timestampValue); - } - - /** Parameter with an array data type. */ - public Builder setArrayValue(ReportRunCreateParams.ReportParameter.ArrayValue arrayValue) { - this.arrayValue = arrayValue; - 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 - * ReportRunCreateParams.ReportParameter#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 ReportRunCreateParams.ReportParameter#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Parameter with a string data type. */ - public Builder setStringValue(String stringValue) { - this.stringValue = stringValue; - return this; - } - - /** Parameter with a timestamp data type. */ - public Builder setTimestampValue(Instant timestampValue) { - this.timestampValue = timestampValue; - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ArrayValue { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Required. The list of string values in the array. */ - @SerializedName("items") - List items; - - private ArrayValue(Map extraParams, List items) { - this.extraParams = extraParams; - this.items = items; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private List items; - - /** Finalize and obtain parameter instance from this builder. */ - public ReportRunCreateParams.ReportParameter.ArrayValue build() { - return new ReportRunCreateParams.ReportParameter.ArrayValue(this.extraParams, this.items); - } - - /** - * 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 ReportRunCreateParams.ReportParameter.ArrayValue#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 ReportRunCreateParams.ReportParameter.ArrayValue#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 `items` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * ReportRunCreateParams.ReportParameter.ArrayValue#items} for the field documentation. - */ - public Builder addItem(String element) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(element); - return this; - } - - /** - * Add all elements to `items` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * ReportRunCreateParams.ReportParameter.ArrayValue#items} for the field documentation. - */ - public Builder addAllItem(List elements) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.addAll(elements); - return this; - } - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class ResultOptions { - /** - * If set, the generated report file will be compressed into a ZIP folder. This is useful for - * reducing file size and download time for large reports. - */ - @SerializedName("compress_file") - Boolean compressFile; - - /** - * 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 ResultOptions(Boolean compressFile, Map extraParams) { - this.compressFile = compressFile; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Boolean compressFile; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public ReportRunCreateParams.ResultOptions build() { - return new ReportRunCreateParams.ResultOptions(this.compressFile, this.extraParams); - } - - /** - * If set, the generated report file will be compressed into a ZIP folder. This is useful for - * reducing file size and download time for large reports. - */ - public Builder setCompressFile(Boolean compressFile) { - this.compressFile = compressFile; - 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 - * ReportRunCreateParams.ResultOptions#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 ReportRunCreateParams.ResultOptions#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } -} diff --git a/src/main/java/com/stripe/service/V2Services.java b/src/main/java/com/stripe/service/V2Services.java index c08dd0210c6..7caae813077 100644 --- a/src/main/java/com/stripe/service/V2Services.java +++ b/src/main/java/com/stripe/service/V2Services.java @@ -25,10 +25,6 @@ public com.stripe.service.v2.PaymentService payments() { return new com.stripe.service.v2.PaymentService(this.getResponseGetter()); } - public com.stripe.service.v2.ReportingService reporting() { - return new com.stripe.service.v2.ReportingService(this.getResponseGetter()); - } - public com.stripe.service.v2.TaxService tax() { return new com.stripe.service.v2.TaxService(this.getResponseGetter()); } diff --git a/src/main/java/com/stripe/service/v2/ReportingService.java b/src/main/java/com/stripe/service/v2/ReportingService.java deleted file mode 100644 index b183507d17f..00000000000 --- a/src/main/java/com/stripe/service/v2/ReportingService.java +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.service.v2; - -import com.stripe.net.ApiService; -import com.stripe.net.StripeResponseGetter; - -public final class ReportingService extends ApiService { - public ReportingService(StripeResponseGetter responseGetter) { - super(responseGetter); - } - - public com.stripe.service.v2.reporting.ReportRunService reportRuns() { - return new com.stripe.service.v2.reporting.ReportRunService(this.getResponseGetter()); - } - - public com.stripe.service.v2.reporting.ReportService reports() { - return new com.stripe.service.v2.reporting.ReportService(this.getResponseGetter()); - } -} diff --git a/src/main/java/com/stripe/service/v2/billing/LicenseFeeService.java b/src/main/java/com/stripe/service/v2/billing/LicenseFeeService.java index c32d902b718..e33454dfb13 100644 --- a/src/main/java/com/stripe/service/v2/billing/LicenseFeeService.java +++ b/src/main/java/com/stripe/service/v2/billing/LicenseFeeService.java @@ -71,14 +71,6 @@ public LicenseFee update(String id, LicenseFeeUpdateParams params) throws Stripe return update(id, params, (RequestOptions) null); } /** Update a License Fee object. */ - public LicenseFee update(String id, RequestOptions options) throws StripeException { - return update(id, (LicenseFeeUpdateParams) null, options); - } - /** Update a License Fee object. */ - public LicenseFee update(String id) throws StripeException { - return update(id, (LicenseFeeUpdateParams) null, (RequestOptions) null); - } - /** Update a License Fee object. */ public LicenseFee update(String id, LicenseFeeUpdateParams params, RequestOptions options) throws StripeException { String path = String.format("/v2/billing/license_fees/%s", ApiResource.urlEncodeId(id)); diff --git a/src/main/java/com/stripe/service/v2/billing/pricingplans/ComponentService.java b/src/main/java/com/stripe/service/v2/billing/pricingplans/ComponentService.java index e2daf1c8bee..a2fee370d63 100644 --- a/src/main/java/com/stripe/service/v2/billing/pricingplans/ComponentService.java +++ b/src/main/java/com/stripe/service/v2/billing/pricingplans/ComponentService.java @@ -3,6 +3,7 @@ import com.google.gson.reflect.TypeToken; import com.stripe.exception.StripeException; +import com.stripe.model.v2.DeletedObject; import com.stripe.model.v2.StripeCollection; import com.stripe.model.v2.billing.PricingPlanComponent; import com.stripe.net.ApiRequest; @@ -74,11 +75,11 @@ public PricingPlanComponent create( return this.request(request, PricingPlanComponent.class); } /** Remove a Pricing Plan Component from the latest version of a Pricing Plan. */ - public PricingPlanComponent delete(String pricingPlanId, String id) throws StripeException { + public DeletedObject delete(String pricingPlanId, String id) throws StripeException { return delete(pricingPlanId, id, (RequestOptions) null); } /** Remove a Pricing Plan Component from the latest version of a Pricing Plan. */ - public PricingPlanComponent delete(String pricingPlanId, String id, RequestOptions options) + public DeletedObject delete(String pricingPlanId, String id, RequestOptions options) throws StripeException { String path = String.format( @@ -86,7 +87,7 @@ public PricingPlanComponent delete(String pricingPlanId, String id, RequestOptio ApiResource.urlEncodeId(pricingPlanId), ApiResource.urlEncodeId(id)); ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.DELETE, path, null, options); - return this.request(request, PricingPlanComponent.class); + return this.request(request, DeletedObject.class); } /** Retrieve a Pricing Plan Component object. */ public PricingPlanComponent retrieve(String pricingPlanId, String id) throws StripeException { diff --git a/src/main/java/com/stripe/service/v2/billing/ratecards/RateService.java b/src/main/java/com/stripe/service/v2/billing/ratecards/RateService.java index 63a1c2a1356..114c1611ad7 100644 --- a/src/main/java/com/stripe/service/v2/billing/ratecards/RateService.java +++ b/src/main/java/com/stripe/service/v2/billing/ratecards/RateService.java @@ -3,6 +3,7 @@ import com.google.gson.reflect.TypeToken; import com.stripe.exception.StripeException; +import com.stripe.model.v2.DeletedObject; import com.stripe.model.v2.StripeCollection; import com.stripe.model.v2.billing.RateCardRate; import com.stripe.net.ApiRequest; @@ -106,14 +107,14 @@ public RateCardRate create(String rateCardId, RateCreateParams params, RequestOp * Remove an existing Rate from a Rate Card. This will create a new Rate Card Version without that * Rate. */ - public RateCardRate delete(String rateCardId, String id) throws StripeException { + public DeletedObject delete(String rateCardId, String id) throws StripeException { return delete(rateCardId, id, (RequestOptions) null); } /** * Remove an existing Rate from a Rate Card. This will create a new Rate Card Version without that * Rate. */ - public RateCardRate delete(String rateCardId, String id, RequestOptions options) + public DeletedObject delete(String rateCardId, String id, RequestOptions options) throws StripeException { String path = String.format( @@ -121,7 +122,7 @@ public RateCardRate delete(String rateCardId, String id, RequestOptions options) ApiResource.urlEncodeId(rateCardId), ApiResource.urlEncodeId(id)); ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.DELETE, path, null, options); - return this.request(request, RateCardRate.class); + return this.request(request, DeletedObject.class); } /** Retrieve a Rate object. */ public RateCardRate retrieve(String rateCardId, String id) throws StripeException { diff --git a/src/main/java/com/stripe/service/v2/core/ClaimableSandboxService.java b/src/main/java/com/stripe/service/v2/core/ClaimableSandboxService.java index 1b446abbd10..11aa464d526 100644 --- a/src/main/java/com/stripe/service/v2/core/ClaimableSandboxService.java +++ b/src/main/java/com/stripe/service/v2/core/ClaimableSandboxService.java @@ -40,23 +40,4 @@ public ClaimableSandbox create(ClaimableSandboxCreateParams params, RequestOptio options); return this.request(request, ClaimableSandbox.class); } - /** - * Retrieves the details of a claimable sandbox that was previously been created. Supply the - * unique claimable sandbox ID that was returned from your creation request, and Stripe will - * return the corresponding sandbox information. - */ - public ClaimableSandbox retrieve(String id) throws StripeException { - return retrieve(id, (RequestOptions) null); - } - /** - * Retrieves the details of a claimable sandbox that was previously been created. Supply the - * unique claimable sandbox ID that was returned from your creation request, and Stripe will - * return the corresponding sandbox information. - */ - public ClaimableSandbox retrieve(String id, RequestOptions options) throws StripeException { - String path = String.format("/v2/core/claimable_sandboxes/%s", ApiResource.urlEncodeId(id)); - ApiRequest request = - new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); - return this.request(request, ClaimableSandbox.class); - } } diff --git a/src/main/java/com/stripe/service/v2/core/EventDestinationService.java b/src/main/java/com/stripe/service/v2/core/EventDestinationService.java index 8553d0ac58e..39593093d9b 100644 --- a/src/main/java/com/stripe/service/v2/core/EventDestinationService.java +++ b/src/main/java/com/stripe/service/v2/core/EventDestinationService.java @@ -3,6 +3,7 @@ import com.google.gson.reflect.TypeToken; import com.stripe.exception.StripeException; +import com.stripe.model.v2.DeletedObject; import com.stripe.model.v2.Event; import com.stripe.model.v2.EventDestination; import com.stripe.model.v2.StripeCollection; @@ -67,15 +68,15 @@ public EventDestination create(EventDestinationCreateParams params, RequestOptio return this.request(request, EventDestination.class); } /** Delete an event destination. */ - public EventDestination delete(String id) throws StripeException { + public DeletedObject delete(String id) throws StripeException { return delete(id, (RequestOptions) null); } /** Delete an event destination. */ - public EventDestination delete(String id, RequestOptions options) throws StripeException { + public DeletedObject delete(String id, RequestOptions options) throws StripeException { String path = String.format("/v2/core/event_destinations/%s", ApiResource.urlEncodeId(id)); ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.DELETE, path, null, options); - return this.request(request, EventDestination.class); + return this.request(request, DeletedObject.class); } /** Retrieves the details of an event destination. */ public EventDestination retrieve(String id, EventDestinationRetrieveParams params) diff --git a/src/main/java/com/stripe/service/v2/core/accounts/PersonService.java b/src/main/java/com/stripe/service/v2/core/accounts/PersonService.java index 6cece69901f..ef109771dcf 100644 --- a/src/main/java/com/stripe/service/v2/core/accounts/PersonService.java +++ b/src/main/java/com/stripe/service/v2/core/accounts/PersonService.java @@ -3,8 +3,9 @@ import com.google.gson.reflect.TypeToken; import com.stripe.exception.StripeException; +import com.stripe.model.v2.DeletedObject; import com.stripe.model.v2.StripeCollection; -import com.stripe.model.v2.core.Person; +import com.stripe.model.v2.core.AccountPerson; import com.stripe.net.ApiRequest; import com.stripe.net.ApiRequestParams; import com.stripe.net.ApiResource; @@ -22,21 +23,21 @@ public PersonService(StripeResponseGetter responseGetter) { } /** Returns a list of Persons associated with an Account. */ - public StripeCollection list(String accountId, PersonListParams params) + public StripeCollection list(String accountId, PersonListParams params) throws StripeException { return list(accountId, params, (RequestOptions) null); } /** Returns a list of Persons associated with an Account. */ - public StripeCollection list(String accountId, RequestOptions options) + public StripeCollection list(String accountId, RequestOptions options) throws StripeException { return list(accountId, (PersonListParams) null, options); } /** Returns a list of Persons associated with an Account. */ - public StripeCollection list(String accountId) throws StripeException { + public StripeCollection list(String accountId) throws StripeException { return list(accountId, (PersonListParams) null, (RequestOptions) null); } /** Returns a list of Persons associated with an Account. */ - public StripeCollection list( + public StripeCollection list( String accountId, PersonListParams params, RequestOptions options) throws StripeException { String path = String.format("/v2/core/accounts/%s/persons", ApiResource.urlEncodeId(accountId)); ApiRequest request = @@ -46,22 +47,22 @@ public StripeCollection list( path, ApiRequestParams.paramsToMap(params), options); - return this.request(request, new TypeToken>() {}.getType()); + return this.request(request, new TypeToken>() {}.getType()); } /** Create a Person associated with an Account. */ - public Person create(String accountId, PersonCreateParams params) throws StripeException { + public AccountPerson create(String accountId, PersonCreateParams params) throws StripeException { return create(accountId, params, (RequestOptions) null); } /** Create a Person associated with an Account. */ - public Person create(String accountId, RequestOptions options) throws StripeException { + public AccountPerson create(String accountId, RequestOptions options) throws StripeException { return create(accountId, (PersonCreateParams) null, options); } /** Create a Person associated with an Account. */ - public Person create(String accountId) throws StripeException { + public AccountPerson create(String accountId) throws StripeException { return create(accountId, (PersonCreateParams) null, (RequestOptions) null); } /** Create a Person associated with an Account. */ - public Person create(String accountId, PersonCreateParams params, RequestOptions options) + public AccountPerson create(String accountId, PersonCreateParams params, RequestOptions options) throws StripeException { String path = String.format("/v2/core/accounts/%s/persons", ApiResource.urlEncodeId(accountId)); ApiRequest request = @@ -71,28 +72,29 @@ public Person create(String accountId, PersonCreateParams params, RequestOptions path, ApiRequestParams.paramsToMap(params), options); - return this.request(request, Person.class); + return this.request(request, AccountPerson.class); } /** Delete a Person associated with an Account. */ - public Person delete(String accountId, String id) throws StripeException { + public DeletedObject delete(String accountId, String id) throws StripeException { return delete(accountId, id, (RequestOptions) null); } /** Delete a Person associated with an Account. */ - public Person delete(String accountId, String id, RequestOptions options) throws StripeException { + public DeletedObject delete(String accountId, String id, RequestOptions options) + throws StripeException { String path = String.format( "/v2/core/accounts/%s/persons/%s", ApiResource.urlEncodeId(accountId), ApiResource.urlEncodeId(id)); ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.DELETE, path, null, options); - return this.request(request, Person.class); + return this.request(request, DeletedObject.class); } /** Retrieves a Person associated with an Account. */ - public Person retrieve(String accountId, String id) throws StripeException { + public AccountPerson retrieve(String accountId, String id) throws StripeException { return retrieve(accountId, id, (RequestOptions) null); } /** Retrieves a Person associated with an Account. */ - public Person retrieve(String accountId, String id, RequestOptions options) + public AccountPerson retrieve(String accountId, String id, RequestOptions options) throws StripeException { String path = String.format( @@ -100,23 +102,24 @@ public Person retrieve(String accountId, String id, RequestOptions options) ApiResource.urlEncodeId(accountId), ApiResource.urlEncodeId(id)); ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); - return this.request(request, Person.class); + return this.request(request, AccountPerson.class); } /** Updates a Person associated with an Account. */ - public Person update(String accountId, String id, PersonUpdateParams params) + public AccountPerson update(String accountId, String id, PersonUpdateParams params) throws StripeException { return update(accountId, id, params, (RequestOptions) null); } /** Updates a Person associated with an Account. */ - public Person update(String accountId, String id, RequestOptions options) throws StripeException { + public AccountPerson update(String accountId, String id, RequestOptions options) + throws StripeException { return update(accountId, id, (PersonUpdateParams) null, options); } /** Updates a Person associated with an Account. */ - public Person update(String accountId, String id) throws StripeException { + public AccountPerson update(String accountId, String id) throws StripeException { return update(accountId, id, (PersonUpdateParams) null, (RequestOptions) null); } /** Updates a Person associated with an Account. */ - public Person update( + public AccountPerson update( String accountId, String id, PersonUpdateParams params, RequestOptions options) throws StripeException { String path = @@ -130,6 +133,6 @@ public Person update( path, ApiRequestParams.paramsToMap(params), options); - return this.request(request, Person.class); + return this.request(request, AccountPerson.class); } } diff --git a/src/main/java/com/stripe/service/v2/reporting/ReportRunService.java b/src/main/java/com/stripe/service/v2/reporting/ReportRunService.java deleted file mode 100644 index 3fcaa058210..00000000000 --- a/src/main/java/com/stripe/service/v2/reporting/ReportRunService.java +++ /dev/null @@ -1,65 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.service.v2.reporting; - -import com.stripe.exception.RateLimitException; -import com.stripe.exception.StripeException; -import com.stripe.model.v2.reporting.ReportRun; -import com.stripe.net.ApiRequest; -import com.stripe.net.ApiRequestParams; -import com.stripe.net.ApiResource; -import com.stripe.net.ApiService; -import com.stripe.net.BaseAddress; -import com.stripe.net.RequestOptions; -import com.stripe.net.StripeResponseGetter; -import com.stripe.param.v2.reporting.ReportRunCreateParams; - -public final class ReportRunService extends ApiService { - public ReportRunService(StripeResponseGetter responseGetter) { - super(responseGetter); - } - - /** - * Initiates the generation of a {@code ReportRun} based on the specified report template and - * user-provided parameters. It's the starting point for obtaining report data, and returns a - * {@code ReportRun} object which can be used to track the progress and retrieve the results of - * the report. - */ - public ReportRun create(ReportRunCreateParams params) throws StripeException, RateLimitException { - return create(params, (RequestOptions) null); - } - /** - * Initiates the generation of a {@code ReportRun} based on the specified report template and - * user-provided parameters. It's the starting point for obtaining report data, and returns a - * {@code ReportRun} object which can be used to track the progress and retrieve the results of - * the report. - */ - public ReportRun create(ReportRunCreateParams params, RequestOptions options) - throws StripeException, RateLimitException { - String path = "/v2/reporting/report_runs"; - ApiRequest request = - new ApiRequest( - BaseAddress.API, - ApiResource.RequestMethod.POST, - path, - ApiRequestParams.paramsToMap(params), - options); - return this.request(request, ReportRun.class); - } - /** - * Fetches the current state and details of a previously created {@code ReportRun}. If the {@code - * ReportRun} has succeeded, the endpoint will provide details for how to retrieve the results. - */ - public ReportRun retrieve(String id) throws StripeException { - return retrieve(id, (RequestOptions) null); - } - /** - * Fetches the current state and details of a previously created {@code ReportRun}. If the {@code - * ReportRun} has succeeded, the endpoint will provide details for how to retrieve the results. - */ - public ReportRun retrieve(String id, RequestOptions options) throws StripeException { - String path = String.format("/v2/reporting/report_runs/%s", ApiResource.urlEncodeId(id)); - ApiRequest request = - new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); - return this.request(request, ReportRun.class); - } -} diff --git a/src/main/java/com/stripe/service/v2/reporting/ReportService.java b/src/main/java/com/stripe/service/v2/reporting/ReportService.java deleted file mode 100644 index f17de6e395f..00000000000 --- a/src/main/java/com/stripe/service/v2/reporting/ReportService.java +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.service.v2.reporting; - -import com.stripe.exception.StripeException; -import com.stripe.model.v2.reporting.Report; -import com.stripe.net.ApiRequest; -import com.stripe.net.ApiResource; -import com.stripe.net.ApiService; -import com.stripe.net.BaseAddress; -import com.stripe.net.RequestOptions; -import com.stripe.net.StripeResponseGetter; - -public final class ReportService extends ApiService { - public ReportService(StripeResponseGetter responseGetter) { - super(responseGetter); - } - - /** - * Retrieves metadata about a specific {@code Report} template, including its name, description, - * and the parameters it accepts. It's useful for understanding the capabilities and requirements - * of a particular {@code Report} before requesting a {@code ReportRun}. - */ - public Report retrieve(String id) throws StripeException { - return retrieve(id, (RequestOptions) null); - } - /** - * Retrieves metadata about a specific {@code Report} template, including its name, description, - * and the parameters it accepts. It's useful for understanding the capabilities and requirements - * of a particular {@code Report} before requesting a {@code ReportRun}. - */ - public Report retrieve(String id, RequestOptions options) throws StripeException { - String path = String.format("/v2/reporting/reports/%s", ApiResource.urlEncodeId(id)); - ApiRequest request = - new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options); - return this.request(request, Report.class); - } -} diff --git a/src/test/java/com/stripe/BaseStripeTest.java b/src/test/java/com/stripe/BaseStripeTest.java index a77b55f839b..847dd57cfb1 100644 --- a/src/test/java/com/stripe/BaseStripeTest.java +++ b/src/test/java/com/stripe/BaseStripeTest.java @@ -7,7 +7,7 @@ import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.stripe.exception.StripeException; -import com.stripe.model.StripeObjectInterface; +import com.stripe.model.StripeObject; import com.stripe.net.*; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; @@ -174,7 +174,7 @@ public static void verifyRequest( verifyRequest(method, path, params, null); } - public static void verifyRequest( + public static void verifyRequest( ApiResource.RequestMethod method, String path, Map params, @@ -191,7 +191,7 @@ public static void verifyRequest( * @param options request options. If null, the options are not checked. */ @SuppressWarnings("AssertionFailureIgnored") - public static void verifyRequest( + public static void verifyRequest( BaseAddress baseAddress, ApiResource.RequestMethod method, String path, @@ -217,8 +217,8 @@ public static void verifyRequest( } @SuppressWarnings("AssertionFailureIgnored") - public static void verifyRequest( - Consumer assertOnApiRequest) throws StripeException { + public static void verifyRequest(Consumer assertOnApiRequest) + throws StripeException { ArgumentCaptor requestCaptor = ArgumentCaptor.forClass(ApiRequest.class); List exceptions = new ArrayList(); @@ -250,7 +250,7 @@ public static void verifyRequest( } @SuppressWarnings("AssertionFailureIgnored") - public static void verifyStripeRequest( + public static void verifyStripeRequest( Consumer assertOnStripeRequest) throws StripeException { ArgumentCaptor requestCaptor = ArgumentCaptor.forClass(StripeRequest.class); @@ -293,7 +293,7 @@ public static void verifyNoMoreRequests() { * @see BaseStripeTest#stubRequest(ApiResource.RequestMethod, String, Map, RequestOptions, Class, * String) */ - public static void stubRequest( + public static void stubRequest( ApiResource.RequestMethod method, String path, Type typeToken, String response) throws StripeException { stubRequest(BaseAddress.API, method, path, null, null, typeToken, response); @@ -305,7 +305,7 @@ public static void stubRequest( * @see BaseStripeTest#stubRequest(ApiResource.RequestMethod, String, Map, RequestOptions, Class, * String) */ - public static void stubRequest( + public static void stubRequest( ApiResource.RequestMethod method, String path, Map params, @@ -326,7 +326,7 @@ public static void stubRequest( * @param typeToken Class of the API resource that will be returned for the stubbed request. * @param response JSON payload of the API resource that will be returned for the stubbed request. */ - public static void stubRequest( + public static void stubRequest( BaseAddress baseAddress, ApiResource.RequestMethod method, String path, @@ -362,7 +362,7 @@ public static void stubRequest( * @param typeToken Class of the API resource that will be returned for the stubbed request. * @param response JSON payload of the API resource that will be returned for the stubbed request. */ - public static void stubRequestReturnError( + public static void stubRequestReturnError( BaseAddress baseAddress, ApiResource.RequestMethod method, String path, @@ -381,8 +381,8 @@ public static void stubRequestReturnError( } /** Stubs an OAuth API request. stripe-mock does not supported OAuth endpoints at this time. */ - public static void stubOAuthRequest( - Class clazz, String response) throws StripeException { + public static void stubOAuthRequest(Class clazz, String response) + throws StripeException { Mockito.doReturn(ApiResource.GSON.fromJson(response, clazz)) .when(networkSpy) .request(Mockito.any(ApiRequest.class), Mockito.any()); diff --git a/src/test/java/com/stripe/functional/GeneratedExamples.java b/src/test/java/com/stripe/functional/GeneratedExamples.java index e44cc5045dc..62b6faee174 100644 --- a/src/test/java/com/stripe/functional/GeneratedExamples.java +++ b/src/test/java/com/stripe/functional/GeneratedExamples.java @@ -16017,7 +16017,6 @@ public void testSubscriptionSchedulesPost() throws StripeException { .setPrice("price_xxxxxxxxxxxxx") .setQuantity(1L) .build()) - .setIterations(12L) .build()) .build(); @@ -16047,7 +16046,6 @@ public void testSubscriptionSchedulesPostServices() throws StripeException { .setPrice("price_xxxxxxxxxxxxx") .setQuantity(1L) .build()) - .setIterations(12L) .build()) .build(); @@ -16078,7 +16076,6 @@ public void testSubscriptionSchedulesPostServicesNonNamespaced() throws StripeEx .setPrice("price_xxxxxxxxxxxxx") .setQuantity(1L) .build()) - .setIterations(12L) .build()) .build(); @@ -24372,7 +24369,7 @@ public void testV2BillingBillSettingGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.BillSetting>>() {}.getType(), - "{\"data\":[{\"calculation\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"id\":\"obj_123\",\"invoice\":null,\"invoice_rendering_template\":null,\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"object\":\"v2.billing.bill_setting\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.BillSettingListParams params = @@ -24398,7 +24395,7 @@ public void testV2BillingBillSettingPostServices() throws StripeException { null, null, com.stripe.model.v2.billing.BillSetting.class, - "{\"calculation\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"id\":\"obj_123\",\"invoice\":null,\"invoice_rendering_template\":null,\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"object\":\"v2.billing.bill_setting\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.BillSettingCreateParams params = @@ -24424,7 +24421,7 @@ public void testV2BillingBillSettingGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.BillSetting.class, - "{\"calculation\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"id\":\"obj_123\",\"invoice\":null,\"invoice_rendering_template\":null,\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"object\":\"v2.billing.bill_setting\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.BillSetting billSetting = @@ -24447,7 +24444,7 @@ public void testV2BillingBillSettingPost2Services() throws StripeException { null, null, com.stripe.model.v2.billing.BillSetting.class, - "{\"calculation\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"id\":\"obj_123\",\"invoice\":null,\"invoice_rendering_template\":null,\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"object\":\"v2.billing.bill_setting\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.BillSettingUpdateParams params = @@ -24475,7 +24472,7 @@ public void testV2BillingBillSettingsVersionGetServices() throws StripeException new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.BillSettingVersion>>() {}.getType(), - "{\"data\":[{\"calculation\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"invoice\":null,\"invoice_rendering_template\":null,\"object\":\"v2.billing.bill_setting_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.bill_setting_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.billsettings.VersionListParams params = @@ -24502,7 +24499,7 @@ public void testV2BillingBillSettingsVersionGet2Services() throws StripeExceptio null, null, com.stripe.model.v2.billing.BillSettingVersion.class, - "{\"calculation\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"invoice\":null,\"invoice_rendering_template\":null,\"object\":\"v2.billing.bill_setting_version\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.bill_setting_version\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.BillSettingVersion billSettingVersion = @@ -24527,7 +24524,7 @@ public void testV2BillingCadenceGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.Cadence>>() {}.getType(), - "{\"data\":[{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\",\"day\":null,\"month\":null,\"week\":null,\"year\":null},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"invoice_discount_rules\":null,\"metadata\":null,\"next_billing_date\":null,\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":null,\"customer\":null,\"type\":\"customer\"},\"settings\":null,\"status\":\"active\",\"test_clock\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CadenceListParams params = @@ -24553,58 +24550,57 @@ public void testV2BillingCadencePostServices() throws StripeException { null, null, com.stripe.model.v2.billing.Cadence.class, - "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\",\"day\":null,\"month\":null,\"week\":null,\"year\":null},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"invoice_discount_rules\":null,\"metadata\":null,\"next_billing_date\":null,\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":null,\"customer\":null,\"type\":\"customer\"},\"settings\":null,\"status\":\"active\",\"test_clock\":null,\"livemode\":true}"); + "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CadenceCreateParams params = com.stripe.param.v2.billing.CadenceCreateParams.builder() .setBillingCycle( com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.builder() - .setIntervalCount(797691627) + .setIntervalCount(797691627L) .setType(com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Type.WEEK) .setDay( com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Day.builder() .setTime( com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Day .Time.builder() - .setHour(3208676) - .setMinute(1074026988) - .setSecond(906279820) + .setHour(3208676L) + .setMinute(1074026988L) + .setSecond(906279820L) .build()) .build()) .setMonth( com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Month.builder() - .setDayOfMonth(1361669285) - .setMonthOfYear(82933018) + .setDayOfMonth(1361669285L) .setTime( com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Month .Time.builder() - .setHour(3208676) - .setMinute(1074026988) - .setSecond(906279820) + .setHour(3208676L) + .setMinute(1074026988L) + .setSecond(906279820L) .build()) .build()) .setWeek( com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Week.builder() - .setDayOfWeek(43636807) + .setDayOfWeek(43636807L) .setTime( com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Week .Time.builder() - .setHour(3208676) - .setMinute(1074026988) - .setSecond(906279820) + .setHour(3208676L) + .setMinute(1074026988L) + .setSecond(906279820L) .build()) .build()) .setYear( com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Year.builder() - .setDayOfMonth(1361669285) - .setMonthOfYear(82933018) + .setDayOfMonth(1361669285L) + .setMonthOfYear(82933018L) .setTime( com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Year .Time.builder() - .setHour(3208676) - .setMinute(1074026988) - .setSecond(906279820) + .setHour(3208676L) + .setMinute(1074026988L) + .setSecond(906279820L) .build()) .build()) .build()) @@ -24635,7 +24631,7 @@ public void testV2BillingCadenceGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.Cadence.class, - "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\",\"day\":null,\"month\":null,\"week\":null,\"year\":null},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"invoice_discount_rules\":null,\"metadata\":null,\"next_billing_date\":null,\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":null,\"customer\":null,\"type\":\"customer\"},\"settings\":null,\"status\":\"active\",\"test_clock\":null,\"livemode\":true}"); + "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CadenceRetrieveParams params = @@ -24661,7 +24657,7 @@ public void testV2BillingCadencePost2Services() throws StripeException { null, null, com.stripe.model.v2.billing.Cadence.class, - "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\",\"day\":null,\"month\":null,\"week\":null,\"year\":null},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"invoice_discount_rules\":null,\"metadata\":null,\"next_billing_date\":null,\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":null,\"customer\":null,\"type\":\"customer\"},\"settings\":null,\"status\":\"active\",\"test_clock\":null,\"livemode\":true}"); + "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CadenceUpdateParams params = @@ -24687,7 +24683,7 @@ public void testV2BillingCadencePost3Services() throws StripeException { null, null, com.stripe.model.v2.billing.Cadence.class, - "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\",\"day\":null,\"month\":null,\"week\":null,\"year\":null},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"invoice_discount_rules\":null,\"metadata\":null,\"next_billing_date\":null,\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":null,\"customer\":null,\"type\":\"customer\"},\"settings\":null,\"status\":\"active\",\"test_clock\":null,\"livemode\":true}"); + "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CadenceCancelParams params = @@ -24715,7 +24711,7 @@ public void testV2BillingCollectionSettingGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.CollectionSetting>>() {}.getType(), - "{\"data\":[{\"collection_method\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"email_delivery\":null,\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"object\":\"v2.billing.collection_setting\",\"payment_method_configuration\":null,\"payment_method_options\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CollectionSettingListParams params = @@ -24741,7 +24737,7 @@ public void testV2BillingCollectionSettingPostServices() throws StripeException null, null, com.stripe.model.v2.billing.CollectionSetting.class, - "{\"collection_method\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"email_delivery\":null,\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"object\":\"v2.billing.collection_setting\",\"payment_method_configuration\":null,\"payment_method_options\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CollectionSettingCreateParams params = @@ -24767,7 +24763,7 @@ public void testV2BillingCollectionSettingGet2Services() throws StripeException null, null, com.stripe.model.v2.billing.CollectionSetting.class, - "{\"collection_method\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"email_delivery\":null,\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"object\":\"v2.billing.collection_setting\",\"payment_method_configuration\":null,\"payment_method_options\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.CollectionSetting collectionSetting = @@ -24790,7 +24786,7 @@ public void testV2BillingCollectionSettingPost2Services() throws StripeException null, null, com.stripe.model.v2.billing.CollectionSetting.class, - "{\"collection_method\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"email_delivery\":null,\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"object\":\"v2.billing.collection_setting\",\"payment_method_configuration\":null,\"payment_method_options\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CollectionSettingUpdateParams params = @@ -24818,7 +24814,7 @@ public void testV2BillingCollectionSettingsVersionGetServices() throws StripeExc new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.CollectionSettingVersion>>() {}.getType(), - "{\"data\":[{\"collection_method\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"email_delivery\":null,\"id\":\"obj_123\",\"object\":\"v2.billing.collection_setting_version\",\"payment_method_configuration\":null,\"payment_method_options\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.collection_setting_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.collectionsettings.VersionListParams params = @@ -24850,7 +24846,7 @@ public void testV2BillingCollectionSettingsVersionGet2Services() throws StripeEx null, null, com.stripe.model.v2.billing.CollectionSettingVersion.class, - "{\"collection_method\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"email_delivery\":null,\"id\":\"obj_123\",\"object\":\"v2.billing.collection_setting_version\",\"payment_method_configuration\":null,\"payment_method_options\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.collection_setting_version\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.CollectionSettingVersion collectionSettingVersion = @@ -24880,7 +24876,7 @@ public void testV2BillingCustomPricingUnitGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.CustomPricingUnit>>() {}.getType(), - "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CustomPricingUnitListParams params = @@ -24906,7 +24902,7 @@ public void testV2BillingCustomPricingUnitPostServices() throws StripeException null, null, com.stripe.model.v2.billing.CustomPricingUnit.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CustomPricingUnitCreateParams params = @@ -24934,7 +24930,7 @@ public void testV2BillingCustomPricingUnitGet2Services() throws StripeException null, null, com.stripe.model.v2.billing.CustomPricingUnit.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.CustomPricingUnit customPricingUnit = @@ -24957,7 +24953,7 @@ public void testV2BillingCustomPricingUnitPost2Services() throws StripeException null, null, com.stripe.model.v2.billing.CustomPricingUnit.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.CustomPricingUnitUpdateParams params = @@ -24985,7 +24981,7 @@ public void testV2BillingIntentGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.Intent>>() {}.getType(), - "{\"data\":[{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"canceled_at\":null,\"committed_at\":null,\"drafted_at\":null,\"reserved_at\":null},\"livemode\":true,\"cadence\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.IntentListParams params = @@ -25011,7 +25007,7 @@ public void testV2BillingIntentPostServices() throws StripeException { null, null, com.stripe.model.v2.billing.Intent.class, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"canceled_at\":null,\"committed_at\":null,\"drafted_at\":null,\"reserved_at\":null},\"livemode\":true,\"cadence\":null}"); + "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.IntentCreateParams params = @@ -25046,7 +25042,7 @@ public void testV2BillingIntentPostServices() throws StripeException { .InvoiceDiscountRule.PercentOff .MaximumApplications.Type.INDEFINITE) .build()) - .setPercentOff("percent_off") + .setPercentOff(new BigDecimal("991934883.3333334")) .build()) .build()) .build()) @@ -25066,7 +25062,8 @@ public void testV2BillingIntentPostServices() throws StripeException { .setTimestamp(Instant.parse("1970-01-01T15:18:46.294Z")) .setType( com.stripe.param.v2.billing.IntentCreateParams.Action - .Deactivate.EffectiveAt.Type.ON_RESERVE) + .Deactivate.EffectiveAt.Type + .CURRENT_BILLING_PERIOD_START) .build()) .setPricingPlanSubscriptionDetails( com.stripe.param.v2.billing.IntentCreateParams.Action.Deactivate @@ -25101,7 +25098,7 @@ public void testV2BillingIntentPostServices() throws StripeException { com.stripe.param.v2.billing.IntentCreateParams.Action.Modify .PricingPlanSubscriptionDetails.ComponentConfiguration .builder() - .setQuantity(1285004149) + .setQuantity(1285004149L) .setLookupKey("lookup_key") .setPricingPlanComponent("pricing_plan_component") .build()) @@ -25149,7 +25146,7 @@ public void testV2BillingIntentPostServices() throws StripeException { com.stripe.param.v2.billing.IntentCreateParams.Action .Subscribe.PricingPlanSubscriptionDetails .ComponentConfiguration.builder() - .setQuantity(1285004149) + .setQuantity(1285004149L) .setLookupKey("lookup_key") .setPricingPlanComponent("pricing_plan_component") .build()) @@ -25166,7 +25163,7 @@ public void testV2BillingIntentPostServices() throws StripeException { .Subscribe.V1SubscriptionDetails.Item.builder() .putMetadata("key", "metadata") .setPrice("price") - .setQuantity(1285004149) + .setQuantity(1285004149L) .build()) .putMetadata("key", "metadata") .build()) @@ -25194,7 +25191,7 @@ public void testV2BillingIntentGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.Intent.class, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"canceled_at\":null,\"committed_at\":null,\"drafted_at\":null,\"reserved_at\":null},\"livemode\":true,\"cadence\":null}"); + "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.Intent intent = client.v2().billing().intents().retrieve("id_123"); @@ -25212,7 +25209,7 @@ public void testV2BillingIntentPost2Services() throws StripeException { null, null, com.stripe.model.v2.billing.Intent.class, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"canceled_at\":null,\"committed_at\":null,\"drafted_at\":null,\"reserved_at\":null},\"livemode\":true,\"cadence\":null}"); + "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.Intent intent = client.v2().billing().intents().cancel("id_123"); @@ -25234,7 +25231,7 @@ public void testV2BillingIntentPost3Services() throws StripeException { null, null, com.stripe.model.v2.billing.Intent.class, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"canceled_at\":null,\"committed_at\":null,\"drafted_at\":null,\"reserved_at\":null},\"livemode\":true,\"cadence\":null}"); + "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.IntentCommitParams params = @@ -25260,7 +25257,7 @@ public void testV2BillingIntentPost4Services() throws StripeException { null, null, com.stripe.model.v2.billing.Intent.class, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"canceled_at\":null,\"committed_at\":null,\"drafted_at\":null,\"reserved_at\":null},\"livemode\":true,\"cadence\":null}"); + "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.Intent intent = @@ -25283,7 +25280,7 @@ public void testV2BillingIntentPost5Services() throws StripeException { null, null, com.stripe.model.v2.billing.Intent.class, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"canceled_at\":null,\"committed_at\":null,\"drafted_at\":null,\"reserved_at\":null},\"livemode\":true,\"cadence\":null}"); + "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.Intent intent = client.v2().billing().intents().reserve("id_123"); @@ -25307,7 +25304,7 @@ public void testV2BillingIntentsActionGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.IntentAction>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent_action\",\"type\":\"apply\",\"livemode\":true,\"apply\":null,\"deactivate\":null,\"modify\":null,\"remove\":null,\"subscribe\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent_action\",\"type\":\"apply\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.intents.ActionListParams params = @@ -25333,7 +25330,7 @@ public void testV2BillingIntentsActionGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.IntentAction.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent_action\",\"type\":\"apply\",\"livemode\":true,\"apply\":null,\"deactivate\":null,\"modify\":null,\"remove\":null,\"subscribe\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent_action\",\"type\":\"apply\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.IntentAction intentAction = @@ -25358,7 +25355,7 @@ public void testV2BillingLicenseFeeGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.LicenseFee>>() {}.getType(), - "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.licensed_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true},\"live_version\":\"live_version\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.license_fee\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiering_mode\":null,\"tiers\":[{\"flat_amount\":null,\"unit_amount\":null,\"up_to_decimal\":null,\"up_to_inf\":null}],\"transform_quantity\":null,\"unit_amount\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.LicenseFeeListParams params = @@ -25386,7 +25383,7 @@ public void testV2BillingLicenseFeePostServices() throws StripeException { null, null, com.stripe.model.v2.billing.LicenseFee.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.licensed_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true},\"live_version\":\"live_version\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.license_fee\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiering_mode\":null,\"tiers\":[{\"flat_amount\":null,\"unit_amount\":null,\"up_to_decimal\":null,\"up_to_inf\":null}],\"transform_quantity\":null,\"unit_amount\":null,\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.LicenseFeeCreateParams params = @@ -25396,7 +25393,7 @@ public void testV2BillingLicenseFeePostServices() throws StripeException { .setLicensedItem("licensed_item") .setServiceInterval( com.stripe.param.v2.billing.LicenseFeeCreateParams.ServiceInterval.MONTH) - .setServiceIntervalCount(1375336415) + .setServiceIntervalCount(1375336415L) .setTaxBehavior( com.stripe.param.v2.billing.LicenseFeeCreateParams.TaxBehavior.EXCLUSIVE) .build(); @@ -25421,7 +25418,7 @@ public void testV2BillingLicenseFeeGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.LicenseFee.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.licensed_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true},\"live_version\":\"live_version\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.license_fee\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiering_mode\":null,\"tiers\":[{\"flat_amount\":null,\"unit_amount\":null,\"up_to_decimal\":null,\"up_to_inf\":null}],\"transform_quantity\":null,\"unit_amount\":null,\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.LicenseFee licenseFee = @@ -25444,11 +25441,13 @@ public void testV2BillingLicenseFeePost2Services() throws StripeException { null, null, com.stripe.model.v2.billing.LicenseFee.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.licensed_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true},\"live_version\":\"live_version\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.license_fee\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiering_mode\":null,\"tiers\":[{\"flat_amount\":null,\"unit_amount\":null,\"up_to_decimal\":null,\"up_to_inf\":null}],\"transform_quantity\":null,\"unit_amount\":null,\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.LicenseFeeUpdateParams params = - com.stripe.param.v2.billing.LicenseFeeUpdateParams.builder().build(); + com.stripe.param.v2.billing.LicenseFeeUpdateParams.builder() + .setDisplayName("display_name") + .build(); com.stripe.model.v2.billing.LicenseFee licenseFee = client.v2().billing().licenseFees().update("id_123", params); @@ -25472,7 +25471,7 @@ public void testV2BillingLicenseFeesVersionGetServices() throws StripeException new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.LicenseFeeVersion>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"object\":\"v2.billing.license_fee_version\",\"tiering_mode\":null,\"tiers\":[{\"flat_amount\":null,\"unit_amount\":null,\"up_to_decimal\":null,\"up_to_inf\":null}],\"transform_quantity\":null,\"unit_amount\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"object\":\"v2.billing.license_fee_version\",\"tiers\":[{}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.licensefees.VersionListParams params = @@ -25499,7 +25498,7 @@ public void testV2BillingLicenseFeesVersionGet2Services() throws StripeException null, null, com.stripe.model.v2.billing.LicenseFeeVersion.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"object\":\"v2.billing.license_fee_version\",\"tiering_mode\":null,\"tiers\":[{\"flat_amount\":null,\"unit_amount\":null,\"up_to_decimal\":null,\"up_to_inf\":null}],\"transform_quantity\":null,\"unit_amount\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"object\":\"v2.billing.license_fee_version\",\"tiers\":[{}],\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.LicenseFeeVersion licenseFeeVersion = @@ -25522,7 +25521,7 @@ public void testV2BillingLicenseFeeSubscriptionGetServices() throws StripeExcept null, null, com.stripe.model.v2.billing.LicenseFeeSubscription.class, - "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee\":\"license_fee\",\"license_fee_version\":\"license_fee_version\",\"metadata\":null,\"object\":\"v2.billing.license_fee_subscription\",\"quantity\":1285004149,\"test_clock\":null,\"livemode\":true}"); + "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee\":\"license_fee\",\"license_fee_version\":\"license_fee_version\",\"object\":\"v2.billing.license_fee_subscription\",\"quantity\":1285004149,\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.LicenseFeeSubscription licenseFeeSubscription = @@ -25547,7 +25546,7 @@ public void testV2BillingLicensedItemGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.LicensedItem>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.licensed_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.LicensedItemListParams params = @@ -25573,7 +25572,7 @@ public void testV2BillingLicensedItemPostServices() throws StripeException { null, null, com.stripe.model.v2.billing.LicensedItem.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.licensed_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.LicensedItemCreateParams params = @@ -25601,7 +25600,7 @@ public void testV2BillingLicensedItemGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.LicensedItem.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.licensed_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.LicensedItem licensedItem = @@ -25624,7 +25623,7 @@ public void testV2BillingLicensedItemPost2Services() throws StripeException { null, null, com.stripe.model.v2.billing.LicensedItem.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.licensed_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.LicensedItemUpdateParams params = @@ -25769,7 +25768,7 @@ public void testV2BillingMeteredItemGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.MeteredItem>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"lookup_key\":null,\"metadata\":null,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.MeteredItemListParams params = @@ -25795,7 +25794,7 @@ public void testV2BillingMeteredItemPostServices() throws StripeException { null, null, com.stripe.model.v2.billing.MeteredItem.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"lookup_key\":null,\"metadata\":null,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.MeteredItemCreateParams params = @@ -25824,7 +25823,7 @@ public void testV2BillingMeteredItemGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.MeteredItem.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"lookup_key\":null,\"metadata\":null,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.MeteredItem meteredItem = @@ -25847,7 +25846,7 @@ public void testV2BillingMeteredItemPost2Services() throws StripeException { null, null, com.stripe.model.v2.billing.MeteredItem.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"lookup_key\":null,\"metadata\":null,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.MeteredItemUpdateParams params = @@ -25875,7 +25874,7 @@ public void testV2BillingPricingPlanGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.PricingPlan>>() {}.getType(), - "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"description\":null,\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":null,\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.PricingPlanListParams params = @@ -25901,7 +25900,7 @@ public void testV2BillingPricingPlanPostServices() throws StripeException { null, null, com.stripe.model.v2.billing.PricingPlan.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"description\":null,\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":null,\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.PricingPlanCreateParams params = @@ -25932,7 +25931,7 @@ public void testV2BillingPricingPlanGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.PricingPlan.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"description\":null,\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":null,\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.PricingPlan pricingPlan = @@ -25955,7 +25954,7 @@ public void testV2BillingPricingPlanPost2Services() throws StripeException { null, null, com.stripe.model.v2.billing.PricingPlan.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"description\":null,\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":null,\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.PricingPlanUpdateParams params = @@ -25983,7 +25982,7 @@ public void testV2BillingPricingPlansComponentGetServices() throws StripeExcepti new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.PricingPlanComponent>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true,\"license_fee\":null,\"rate_card\":null,\"service_action\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.pricingplans.ComponentListParams params = @@ -26010,7 +26009,7 @@ public void testV2BillingPricingPlansComponentPostServices() throws StripeExcept null, null, com.stripe.model.v2.billing.PricingPlanComponent.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true,\"license_fee\":null,\"rate_card\":null,\"service_action\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.pricingplans.ComponentCreateParams params = @@ -26038,13 +26037,13 @@ public void testV2BillingPricingPlansComponentDeleteServices() throws StripeExce "/v2/billing/pricing_plans/pricing_plan_id_123/components/id_123", null, null, - com.stripe.model.v2.billing.PricingPlanComponent.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true,\"license_fee\":null,\"rate_card\":null,\"service_action\":null}"); + com.stripe.model.v2.DeletedObject.class, + "{\"id\":\"abc_123\",\"object\":\"some.object.tag\"}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.model.v2.billing.PricingPlanComponent pricingPlanComponent = + com.stripe.model.v2.DeletedObject deletedObject = client.v2().billing().pricingPlans().components().delete("pricing_plan_id_123", "id_123"); - assertNotNull(pricingPlanComponent); + assertNotNull(deletedObject); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.DELETE, @@ -26062,7 +26061,7 @@ public void testV2BillingPricingPlansComponentGet2Services() throws StripeExcept null, null, com.stripe.model.v2.billing.PricingPlanComponent.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true,\"license_fee\":null,\"rate_card\":null,\"service_action\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.PricingPlanComponent pricingPlanComponent = @@ -26085,7 +26084,7 @@ public void testV2BillingPricingPlansComponentPost2Services() throws StripeExcep null, null, com.stripe.model.v2.billing.PricingPlanComponent.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true,\"license_fee\":null,\"rate_card\":null,\"service_action\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.pricingplans.ComponentUpdateParams params = @@ -26118,7 +26117,7 @@ public void testV2BillingPricingPlansVersionGetServices() throws StripeException new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.PricingPlanVersion>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"end_date\":null,\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_version\",\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_version\",\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.pricingplans.VersionListParams params = @@ -26145,7 +26144,7 @@ public void testV2BillingPricingPlansVersionGet2Services() throws StripeExceptio null, null, com.stripe.model.v2.billing.PricingPlanVersion.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"end_date\":null,\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_version\",\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_version\",\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.PricingPlanVersion pricingPlanVersion = @@ -26170,7 +26169,7 @@ public void testV2BillingPricingPlanSubscriptionGetServices() throws StripeExcep new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.PricingPlanSubscription>>() {}.getType(), - "{\"data\":[{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{\"awaiting_customer_action_at\":null,\"current_at\":null,\"past_due_at\":null,\"paused_at\":null,\"unpaid_at\":null},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{\"activated_at\":null,\"canceled_at\":null,\"paused_at\":null,\"will_activate_at\":null,\"will_cancel_at\":null},\"test_clock\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.PricingPlanSubscriptionListParams params = @@ -26196,7 +26195,7 @@ public void testV2BillingPricingPlanSubscriptionGet2Services() throws StripeExce null, null, com.stripe.model.v2.billing.PricingPlanSubscription.class, - "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{\"awaiting_customer_action_at\":null,\"current_at\":null,\"past_due_at\":null,\"paused_at\":null,\"unpaid_at\":null},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{\"activated_at\":null,\"canceled_at\":null,\"paused_at\":null,\"will_activate_at\":null,\"will_cancel_at\":null},\"test_clock\":null,\"livemode\":true}"); + "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.PricingPlanSubscription pricingPlanSubscription = @@ -26221,7 +26220,7 @@ public void testV2BillingProfileGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.Profile>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":null,\"default_payment_method\":null,\"display_name\":null,\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.ProfileListParams params = @@ -26247,7 +26246,7 @@ public void testV2BillingProfilePostServices() throws StripeException { null, null, com.stripe.model.v2.billing.Profile.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":null,\"default_payment_method\":null,\"display_name\":null,\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.ProfileCreateParams params = @@ -26272,7 +26271,7 @@ public void testV2BillingProfileGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.Profile.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":null,\"default_payment_method\":null,\"display_name\":null,\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.Profile profile = @@ -26291,7 +26290,7 @@ public void testV2BillingProfilePost2Services() throws StripeException { null, null, com.stripe.model.v2.billing.Profile.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":null,\"default_payment_method\":null,\"display_name\":null,\"id\":\"obj_123\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.ProfileUpdateParams params = @@ -26319,7 +26318,7 @@ public void testV2BillingRateCardGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.RateCard>>() {}.getType(), - "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.rate_card\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.RateCardListParams params = @@ -26345,7 +26344,7 @@ public void testV2BillingRateCardPostServices() throws StripeException { null, null, com.stripe.model.v2.billing.RateCard.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.rate_card\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.RateCardCreateParams params = @@ -26354,7 +26353,7 @@ public void testV2BillingRateCardPostServices() throws StripeException { .setDisplayName("display_name") .setServiceInterval( com.stripe.param.v2.billing.RateCardCreateParams.ServiceInterval.MONTH) - .setServiceIntervalCount(1375336415) + .setServiceIntervalCount(1375336415L) .setTaxBehavior(com.stripe.param.v2.billing.RateCardCreateParams.TaxBehavior.EXCLUSIVE) .build(); @@ -26378,7 +26377,7 @@ public void testV2BillingRateCardGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.RateCard.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.rate_card\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.RateCard rateCard = @@ -26401,7 +26400,7 @@ public void testV2BillingRateCardPost2Services() throws StripeException { null, null, com.stripe.model.v2.billing.RateCard.class, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"lookup_key\":null,\"metadata\":null,\"object\":\"v2.billing.rate_card\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.RateCardUpdateParams params = @@ -26429,7 +26428,7 @@ public void testV2BillingRateCardsRateGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.RateCardRate>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit_amount\":null,\"id\":\"obj_123\",\"metadata\":null,\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"lookup_key\":null,\"metadata\":null,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiering_mode\":null,\"tiers\":[{\"flat_amount\":null,\"unit_amount\":null,\"up_to_decimal\":null,\"up_to_inf\":null}],\"transform_quantity\":null,\"unit_amount\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.ratecards.RateListParams params = @@ -26456,7 +26455,7 @@ public void testV2BillingRateCardsRatePostServices() throws StripeException { null, null, com.stripe.model.v2.billing.RateCardRate.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit_amount\":null,\"id\":\"obj_123\",\"metadata\":null,\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"lookup_key\":null,\"metadata\":null,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiering_mode\":null,\"tiers\":[{\"flat_amount\":null,\"unit_amount\":null,\"up_to_decimal\":null,\"up_to_inf\":null}],\"transform_quantity\":null,\"unit_amount\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}],\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.ratecards.RateCreateParams params = @@ -26481,13 +26480,13 @@ public void testV2BillingRateCardsRateDeleteServices() throws StripeException { "/v2/billing/rate_cards/rate_card_id_123/rates/id_123", null, null, - com.stripe.model.v2.billing.RateCardRate.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit_amount\":null,\"id\":\"obj_123\",\"metadata\":null,\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"lookup_key\":null,\"metadata\":null,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiering_mode\":null,\"tiers\":[{\"flat_amount\":null,\"unit_amount\":null,\"up_to_decimal\":null,\"up_to_inf\":null}],\"transform_quantity\":null,\"unit_amount\":null,\"livemode\":true}"); + com.stripe.model.v2.DeletedObject.class, + "{\"id\":\"abc_123\",\"object\":\"some.object.tag\"}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.model.v2.billing.RateCardRate rateCardRate = + com.stripe.model.v2.DeletedObject deletedObject = client.v2().billing().rateCards().rates().delete("rate_card_id_123", "id_123"); - assertNotNull(rateCardRate); + assertNotNull(deletedObject); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.DELETE, @@ -26505,7 +26504,7 @@ public void testV2BillingRateCardsRateGet2Services() throws StripeException { null, null, com.stripe.model.v2.billing.RateCardRate.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit_amount\":null,\"id\":\"obj_123\",\"metadata\":null,\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"lookup_key\":null,\"metadata\":null,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"tax_details\":null,\"unit_label\":null,\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiering_mode\":null,\"tiers\":[{\"flat_amount\":null,\"unit_amount\":null,\"up_to_decimal\":null,\"up_to_inf\":null}],\"transform_quantity\":null,\"unit_amount\":null,\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}],\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.RateCardRate rateCardRate = @@ -26582,7 +26581,7 @@ public void testV2BillingRateCardSubscriptionGetServices() throws StripeExceptio new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.billing.RateCardSubscription>>() {}.getType(), - "{\"data\":[{\"billing_cadence\":\"billing_cadence\",\"collection_status\":null,\"collection_status_transitions\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"servicing_status\":null,\"servicing_status_transitions\":null,\"test_clock\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.RateCardSubscriptionListParams params = @@ -26608,7 +26607,7 @@ public void testV2BillingRateCardSubscriptionPostServices() throws StripeExcepti null, null, com.stripe.model.v2.billing.RateCardSubscription.class, - "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":null,\"collection_status_transitions\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"servicing_status\":null,\"servicing_status_transitions\":null,\"test_clock\":null,\"livemode\":true}"); + "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.RateCardSubscriptionCreateParams params = @@ -26637,7 +26636,7 @@ public void testV2BillingRateCardSubscriptionGet2Services() throws StripeExcepti null, null, com.stripe.model.v2.billing.RateCardSubscription.class, - "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":null,\"collection_status_transitions\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"servicing_status\":null,\"servicing_status_transitions\":null,\"test_clock\":null,\"livemode\":true}"); + "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.RateCardSubscription rateCardSubscription = @@ -26660,7 +26659,7 @@ public void testV2BillingRateCardSubscriptionPost2Services() throws StripeExcept null, null, com.stripe.model.v2.billing.RateCardSubscription.class, - "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":null,\"collection_status_transitions\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"servicing_status\":null,\"servicing_status_transitions\":null,\"test_clock\":null,\"livemode\":true}"); + "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.RateCardSubscriptionUpdateParams params = @@ -26686,7 +26685,7 @@ public void testV2BillingRateCardSubscriptionPost3Services() throws StripeExcept null, null, com.stripe.model.v2.billing.RateCardSubscription.class, - "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":null,\"collection_status_transitions\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"servicing_status\":null,\"servicing_status_transitions\":null,\"test_clock\":null,\"livemode\":true}"); + "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.RateCardSubscription rateCardSubscription = @@ -26709,14 +26708,14 @@ public void testV2BillingServiceActionPostServices() throws StripeException { null, null, com.stripe.model.v2.billing.ServiceAction.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"lookup_key\":null,\"object\":\"v2.billing.service_action\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\",\"livemode\":true,\"credit_grant\":null,\"credit_grant_per_tenant\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.service_action\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.billing.ActionServiceCreateParams params = com.stripe.param.v2.billing.ActionServiceCreateParams.builder() .setServiceInterval( com.stripe.param.v2.billing.ActionServiceCreateParams.ServiceInterval.MONTH) - .setServiceIntervalCount(1375336415) + .setServiceIntervalCount(1375336415L) .setType(com.stripe.param.v2.billing.ActionServiceCreateParams.Type.CREDIT_GRANT) .build(); @@ -26740,7 +26739,7 @@ public void testV2BillingServiceActionGetServices() throws StripeException { null, null, com.stripe.model.v2.billing.ServiceAction.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"lookup_key\":null,\"object\":\"v2.billing.service_action\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\",\"livemode\":true,\"credit_grant\":null,\"credit_grant_per_tenant\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.service_action\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.billing.ServiceAction serviceAction = @@ -26764,7 +26763,7 @@ public void testV2CoreAccountGetServices() throws StripeException { null, new TypeToken< com.stripe.model.v2.StripeCollection>() {}.getType(), - "{\"data\":[{\"applied_configurations\":[\"storer\"],\"configuration\":null,\"contact_email\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"dashboard\":null,\"defaults\":null,\"display_name\":null,\"id\":\"obj_123\",\"identity\":null,\"metadata\":null,\"object\":\"v2.core.account\",\"requirements\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"applied_configurations\":[\"storer\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.AccountListParams params = @@ -26786,7 +26785,7 @@ public void testV2CoreAccountPostServices() throws StripeException { null, null, com.stripe.model.v2.core.Account.class, - "{\"applied_configurations\":[\"storer\"],\"configuration\":null,\"contact_email\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"dashboard\":null,\"defaults\":null,\"display_name\":null,\"id\":\"obj_123\",\"identity\":null,\"metadata\":null,\"object\":\"v2.core.account\",\"requirements\":null,\"livemode\":true}"); + "{\"applied_configurations\":[\"storer\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.AccountCreateParams params = @@ -26807,7 +26806,7 @@ public void testV2CoreAccountGet2Services() throws StripeException { null, null, com.stripe.model.v2.core.Account.class, - "{\"applied_configurations\":[\"storer\"],\"configuration\":null,\"contact_email\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"dashboard\":null,\"defaults\":null,\"display_name\":null,\"id\":\"obj_123\",\"identity\":null,\"metadata\":null,\"object\":\"v2.core.account\",\"requirements\":null,\"livemode\":true}"); + "{\"applied_configurations\":[\"storer\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.AccountRetrieveParams params = @@ -26833,7 +26832,7 @@ public void testV2CoreAccountPost2Services() throws StripeException { null, null, com.stripe.model.v2.core.Account.class, - "{\"applied_configurations\":[\"storer\"],\"configuration\":null,\"contact_email\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"dashboard\":null,\"defaults\":null,\"display_name\":null,\"id\":\"obj_123\",\"identity\":null,\"metadata\":null,\"object\":\"v2.core.account\",\"requirements\":null,\"livemode\":true}"); + "{\"applied_configurations\":[\"storer\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.AccountUpdateParams params = @@ -26859,7 +26858,7 @@ public void testV2CoreAccountPost3Services() throws StripeException { null, null, com.stripe.model.v2.core.Account.class, - "{\"applied_configurations\":[\"storer\"],\"configuration\":null,\"contact_email\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"dashboard\":null,\"defaults\":null,\"display_name\":null,\"id\":\"obj_123\",\"identity\":null,\"metadata\":null,\"object\":\"v2.core.account\",\"requirements\":null,\"livemode\":true}"); + "{\"applied_configurations\":[\"storer\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.AccountCloseParams params = @@ -26885,14 +26884,15 @@ public void testV2CoreAccountsPersonGetServices() throws StripeException { null, null, new TypeToken< - com.stripe.model.v2.StripeCollection>() {}.getType(), - "{\"data\":[{\"account\":\"account\",\"additional_addresses\":null,\"additional_names\":null,\"additional_terms_of_service\":null,\"address\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"date_of_birth\":null,\"documents\":null,\"email\":null,\"given_name\":null,\"id\":\"obj_123\",\"id_numbers\":null,\"legal_gender\":null,\"metadata\":null,\"nationalities\":null,\"object\":\"v2.core.account_person\",\"phone\":null,\"political_exposure\":null,\"relationship\":null,\"script_addresses\":null,\"script_names\":null,\"surname\":null,\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + com.stripe.model.v2.StripeCollection< + com.stripe.model.v2.core.AccountPerson>>() {}.getType(), + "{\"data\":[{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.accounts.PersonListParams params = com.stripe.param.v2.core.accounts.PersonListParams.builder().build(); - com.stripe.model.v2.StripeCollection stripeCollection = + com.stripe.model.v2.StripeCollection stripeCollection = client.v2().core().accounts().persons().list("account_id_123", params); assertNotNull(stripeCollection); verifyRequest( @@ -26911,16 +26911,16 @@ public void testV2CoreAccountsPersonPostServices() throws StripeException { "/v2/core/accounts/account_id_123/persons", null, null, - com.stripe.model.v2.core.Person.class, - "{\"account\":\"account\",\"additional_addresses\":null,\"additional_names\":null,\"additional_terms_of_service\":null,\"address\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"date_of_birth\":null,\"documents\":null,\"email\":null,\"given_name\":null,\"id\":\"obj_123\",\"id_numbers\":null,\"legal_gender\":null,\"metadata\":null,\"nationalities\":null,\"object\":\"v2.core.account_person\",\"phone\":null,\"political_exposure\":null,\"relationship\":null,\"script_addresses\":null,\"script_names\":null,\"surname\":null,\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + com.stripe.model.v2.core.AccountPerson.class, + "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.accounts.PersonCreateParams params = com.stripe.param.v2.core.accounts.PersonCreateParams.builder().build(); - com.stripe.model.v2.core.Person person = + com.stripe.model.v2.core.AccountPerson accountPerson = client.v2().core().accounts().persons().create("account_id_123", params); - assertNotNull(person); + assertNotNull(accountPerson); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.POST, @@ -26937,13 +26937,13 @@ public void testV2CoreAccountsPersonDeleteServices() throws StripeException { "/v2/core/accounts/account_id_123/persons/id_123", null, null, - com.stripe.model.v2.core.Person.class, - "{\"account\":\"account\",\"additional_addresses\":null,\"additional_names\":null,\"additional_terms_of_service\":null,\"address\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"date_of_birth\":null,\"documents\":null,\"email\":null,\"given_name\":null,\"id\":\"obj_123\",\"id_numbers\":null,\"legal_gender\":null,\"metadata\":null,\"nationalities\":null,\"object\":\"v2.core.account_person\",\"phone\":null,\"political_exposure\":null,\"relationship\":null,\"script_addresses\":null,\"script_names\":null,\"surname\":null,\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + com.stripe.model.v2.DeletedObject.class, + "{\"id\":\"abc_123\",\"object\":\"some.object.tag\"}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.model.v2.core.Person person = + com.stripe.model.v2.DeletedObject deletedObject = client.v2().core().accounts().persons().delete("account_id_123", "id_123"); - assertNotNull(person); + assertNotNull(deletedObject); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.DELETE, @@ -26960,13 +26960,13 @@ public void testV2CoreAccountsPersonGet2Services() throws StripeException { "/v2/core/accounts/account_id_123/persons/id_123", null, null, - com.stripe.model.v2.core.Person.class, - "{\"account\":\"account\",\"additional_addresses\":null,\"additional_names\":null,\"additional_terms_of_service\":null,\"address\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"date_of_birth\":null,\"documents\":null,\"email\":null,\"given_name\":null,\"id\":\"obj_123\",\"id_numbers\":null,\"legal_gender\":null,\"metadata\":null,\"nationalities\":null,\"object\":\"v2.core.account_person\",\"phone\":null,\"political_exposure\":null,\"relationship\":null,\"script_addresses\":null,\"script_names\":null,\"surname\":null,\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + com.stripe.model.v2.core.AccountPerson.class, + "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.model.v2.core.Person person = + com.stripe.model.v2.core.AccountPerson accountPerson = client.v2().core().accounts().persons().retrieve("account_id_123", "id_123"); - assertNotNull(person); + assertNotNull(accountPerson); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.GET, @@ -26983,16 +26983,16 @@ public void testV2CoreAccountsPersonPost2Services() throws StripeException { "/v2/core/accounts/account_id_123/persons/id_123", null, null, - com.stripe.model.v2.core.Person.class, - "{\"account\":\"account\",\"additional_addresses\":null,\"additional_names\":null,\"additional_terms_of_service\":null,\"address\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"date_of_birth\":null,\"documents\":null,\"email\":null,\"given_name\":null,\"id\":\"obj_123\",\"id_numbers\":null,\"legal_gender\":null,\"metadata\":null,\"nationalities\":null,\"object\":\"v2.core.account_person\",\"phone\":null,\"political_exposure\":null,\"relationship\":null,\"script_addresses\":null,\"script_names\":null,\"surname\":null,\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + com.stripe.model.v2.core.AccountPerson.class, + "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.accounts.PersonUpdateParams params = com.stripe.param.v2.core.accounts.PersonUpdateParams.builder().build(); - com.stripe.model.v2.core.Person person = + com.stripe.model.v2.core.AccountPerson accountPerson = client.v2().core().accounts().persons().update("account_id_123", "id_123", params); - assertNotNull(person); + assertNotNull(accountPerson); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.POST, @@ -27010,7 +27010,7 @@ public void testV2CoreAccountLinkPostServices() throws StripeException { null, null, com.stripe.model.v2.core.AccountLink.class, - "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"object\":\"v2.core.account_link\",\"url\":\"url\",\"use_case\":{\"type\":\"account_onboarding\",\"account_onboarding\":null,\"account_update\":null},\"livemode\":true}"); + "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"object\":\"v2.core.account_link\",\"url\":\"url\",\"use_case\":{\"type\":\"account_onboarding\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.AccountLinkCreateParams params = @@ -27085,7 +27085,7 @@ public void testV2CoreClaimableSandboxPostServices() throws StripeException { null, null, com.stripe.model.v2.core.ClaimableSandbox.class, - "{\"claim_url\":null,\"claimed_at\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":null,\"id\":\"obj_123\",\"object\":\"v2.core.claimable_sandbox\",\"prefill\":{\"country\":\"af\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\",\"api_keys\":null,\"owner_account\":null},\"status\":\"claimed\",\"livemode\":true}"); + "{\"api_keys\":{\"publishable\":\"publishable\",\"secret\":\"secret\"},\"claim_url\":\"claim_url\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.claimable_sandbox\",\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.ClaimableSandboxCreateParams params = @@ -27093,8 +27093,7 @@ public void testV2CoreClaimableSandboxPostServices() throws StripeException { .setEnableMcpAccess(true) .setPrefill( com.stripe.param.v2.core.ClaimableSandboxCreateParams.Prefill.builder() - .setCountry( - com.stripe.param.v2.core.ClaimableSandboxCreateParams.Prefill.Country.AF) + .setCountry("country") .setEmail("email") .setName("name") .build()) @@ -27111,29 +27110,6 @@ public void testV2CoreClaimableSandboxPostServices() throws StripeException { null); } - @Test - public void testV2CoreClaimableSandboxGetServices() throws StripeException { - stubRequest( - BaseAddress.API, - ApiResource.RequestMethod.GET, - "/v2/core/claimable_sandboxes/id_123", - null, - null, - com.stripe.model.v2.core.ClaimableSandbox.class, - "{\"claim_url\":null,\"claimed_at\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":null,\"id\":\"obj_123\",\"object\":\"v2.core.claimable_sandbox\",\"prefill\":{\"country\":\"af\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\",\"api_keys\":null,\"owner_account\":null},\"status\":\"claimed\",\"livemode\":true}"); - StripeClient client = new StripeClient(networkSpy); - - com.stripe.model.v2.core.ClaimableSandbox claimableSandbox = - client.v2().core().claimableSandboxes().retrieve("id_123"); - assertNotNull(claimableSandbox); - verifyRequest( - BaseAddress.API, - ApiResource.RequestMethod.GET, - "/v2/core/claimable_sandboxes/id_123", - null, - null); - } - @Test public void testV2CoreEventGetServices() throws StripeException { stubRequest( @@ -27144,7 +27120,7 @@ public void testV2CoreEventGetServices() throws StripeException { null, new TypeToken< com.stripe.model.v2.StripeCollection>() {}.getType(), - "{\"data\":[{\"changes\":{\"key\":{}},\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"reason\":null,\"type\":\"type\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"type\":\"type\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.EventListParams params = @@ -27166,7 +27142,7 @@ public void testV2CoreEventGet2Services() throws StripeException { null, null, com.stripe.model.v2.Event.class, - "{\"changes\":{\"key\":{}},\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"reason\":null,\"type\":\"type\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"type\":\"type\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.Event event = client.v2().core().events().retrieve("id_123"); @@ -27186,7 +27162,7 @@ public void testV2CoreEventDestinationGetServices() throws StripeException { new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.EventDestination>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"id\":\"obj_123\",\"metadata\":null,\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true,\"amazon_eventbridge\":null,\"webhook_endpoint\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.EventDestinationListParams params = @@ -27212,7 +27188,7 @@ public void testV2CoreEventDestinationPostServices() throws StripeException { null, null, com.stripe.model.v2.EventDestination.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"id\":\"obj_123\",\"metadata\":null,\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true,\"amazon_eventbridge\":null,\"webhook_endpoint\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.EventDestinationCreateParams params = @@ -27243,13 +27219,13 @@ public void testV2CoreEventDestinationDeleteServices() throws StripeException { "/v2/core/event_destinations/id_123", null, null, - com.stripe.model.v2.EventDestination.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"id\":\"obj_123\",\"metadata\":null,\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true,\"amazon_eventbridge\":null,\"webhook_endpoint\":null}"); + com.stripe.model.v2.DeletedObject.class, + "{\"id\":\"abc_123\",\"object\":\"some.object.tag\"}"); StripeClient client = new StripeClient(networkSpy); - com.stripe.model.v2.EventDestination eventDestination = + com.stripe.model.v2.DeletedObject deletedObject = client.v2().core().eventDestinations().delete("id_123"); - assertNotNull(eventDestination); + assertNotNull(deletedObject); verifyRequest( BaseAddress.API, ApiResource.RequestMethod.DELETE, @@ -27267,7 +27243,7 @@ public void testV2CoreEventDestinationGet2Services() throws StripeException { null, null, com.stripe.model.v2.EventDestination.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"id\":\"obj_123\",\"metadata\":null,\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true,\"amazon_eventbridge\":null,\"webhook_endpoint\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.EventDestinationRetrieveParams params = @@ -27293,7 +27269,7 @@ public void testV2CoreEventDestinationPost2Services() throws StripeException { null, null, com.stripe.model.v2.EventDestination.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"id\":\"obj_123\",\"metadata\":null,\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true,\"amazon_eventbridge\":null,\"webhook_endpoint\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.EventDestinationUpdateParams params = @@ -27319,7 +27295,7 @@ public void testV2CoreEventDestinationPost3Services() throws StripeException { null, null, com.stripe.model.v2.EventDestination.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"id\":\"obj_123\",\"metadata\":null,\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true,\"amazon_eventbridge\":null,\"webhook_endpoint\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.EventDestination eventDestination = @@ -27342,7 +27318,7 @@ public void testV2CoreEventDestinationPost4Services() throws StripeException { null, null, com.stripe.model.v2.EventDestination.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"id\":\"obj_123\",\"metadata\":null,\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true,\"amazon_eventbridge\":null,\"webhook_endpoint\":null}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.EventDestination eventDestination = @@ -27365,7 +27341,7 @@ public void testV2CoreEventDestinationPost5Services() throws StripeException { null, null, com.stripe.model.v2.Event.class, - "{\"changes\":{\"key\":{}},\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"reason\":null,\"type\":\"type\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"type\":\"type\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.Event event = client.v2().core().eventDestinations().ping("id_123"); @@ -27387,7 +27363,7 @@ public void testV2CoreVaultGbBankAccountPostServices() throws StripeException { null, null, com.stripe.model.v2.core.vault.GbBankAccount.class, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"sort_code\":\"sort_code\",\"livemode\":true}"); + "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"sort_code\":\"sort_code\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.vault.GbBankAccountCreateParams params = @@ -27416,7 +27392,7 @@ public void testV2CoreVaultGbBankAccountGetServices() throws StripeException { null, null, com.stripe.model.v2.core.vault.GbBankAccount.class, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"sort_code\":\"sort_code\",\"livemode\":true}"); + "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"sort_code\":\"sort_code\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.vault.GbBankAccount gbBankAccount = @@ -27439,7 +27415,7 @@ public void testV2CoreVaultGbBankAccountPost2Services() throws StripeException { null, null, com.stripe.model.v2.core.vault.GbBankAccount.class, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"sort_code\":\"sort_code\",\"livemode\":true}"); + "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"sort_code\":\"sort_code\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.vault.GbBankAccount gbBankAccount = @@ -27462,7 +27438,7 @@ public void testV2CoreVaultGbBankAccountPost3Services() throws StripeException { null, null, com.stripe.model.v2.core.vault.GbBankAccount.class, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"sort_code\":\"sort_code\",\"livemode\":true}"); + "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"sort_code\":\"sort_code\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.vault.GbBankAccount gbBankAccount = @@ -27485,7 +27461,7 @@ public void testV2CoreVaultGbBankAccountPost4Services() throws StripeException { null, null, com.stripe.model.v2.core.vault.GbBankAccount.class, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"sort_code\":\"sort_code\",\"livemode\":true}"); + "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"sort_code\":\"sort_code\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.vault.GbBankAccountInitiateConfirmationOfPayeeParams params = @@ -27512,7 +27488,7 @@ public void testV2CoreVaultUsBankAccountPostServices() throws StripeException { null, null, com.stripe.model.v2.core.vault.UsBankAccount.class, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"fedwire_routing_number\":null,\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"routing_number\":null,\"livemode\":true}"); + "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.vault.UsBankAccountCreateParams params = @@ -27540,7 +27516,7 @@ public void testV2CoreVaultUsBankAccountGetServices() throws StripeException { null, null, com.stripe.model.v2.core.vault.UsBankAccount.class, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"fedwire_routing_number\":null,\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"routing_number\":null,\"livemode\":true}"); + "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.vault.UsBankAccount usBankAccount = @@ -27563,7 +27539,7 @@ public void testV2CoreVaultUsBankAccountPost2Services() throws StripeException { null, null, com.stripe.model.v2.core.vault.UsBankAccount.class, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"fedwire_routing_number\":null,\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"routing_number\":null,\"livemode\":true}"); + "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.core.vault.UsBankAccountUpdateParams params = @@ -27589,7 +27565,7 @@ public void testV2CoreVaultUsBankAccountPost3Services() throws StripeException { null, null, com.stripe.model.v2.core.vault.UsBankAccount.class, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"fedwire_routing_number\":null,\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"routing_number\":null,\"livemode\":true}"); + "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.core.vault.UsBankAccount usBankAccount = @@ -27614,7 +27590,7 @@ public void testV2MoneyManagementAdjustmentGetServices() throws StripeException new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.Adjustment>>() {}.getType(), - "{\"data\":[{\"adjusted_flow\":null,\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":null,\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"receipt_url\":null,\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.AdjustmentListParams params = @@ -27640,7 +27616,7 @@ public void testV2MoneyManagementAdjustmentGet2Services() throws StripeException null, null, com.stripe.model.v2.moneymanagement.Adjustment.class, - "{\"adjusted_flow\":null,\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":null,\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"receipt_url\":null,\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.Adjustment adjustment = @@ -27665,7 +27641,7 @@ public void testV2MoneyManagementFinancialAccountGetServices() throws StripeExce new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.FinancialAccount>>() {}.getType(), - "{\"data\":[{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"af\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.financial_account\",\"other\":null,\"status\":\"closed\",\"status_details\":null,\"storage\":null,\"type\":\"other\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountListParams params = @@ -27691,7 +27667,7 @@ public void testV2MoneyManagementFinancialAccountPostServices() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"af\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.financial_account\",\"other\":null,\"status\":\"closed\",\"status_details\":null,\"storage\":null,\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountCreateParams params = @@ -27719,7 +27695,7 @@ public void testV2MoneyManagementFinancialAccountGet2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"af\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.financial_account\",\"other\":null,\"status\":\"closed\",\"status_details\":null,\"storage\":null,\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.FinancialAccount financialAccount = @@ -27742,7 +27718,7 @@ public void testV2MoneyManagementFinancialAccountPost2Services() throws StripeEx null, null, com.stripe.model.v2.moneymanagement.FinancialAccount.class, - "{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"af\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":null,\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.financial_account\",\"other\":null,\"status\":\"closed\",\"status_details\":null,\"storage\":null,\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAccountCloseParams params = @@ -27770,7 +27746,7 @@ public void testV2MoneyManagementFinancialAddressGetServices() throws StripeExce new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.FinancialAddress>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"credentials\":null,\"currency\":\"stn\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAddressListParams params = @@ -27796,13 +27772,12 @@ public void testV2MoneyManagementFinancialAddressPostServices() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.FinancialAddress.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"credentials\":null,\"currency\":\"stn\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAddressCreateParams params = com.stripe.param.v2.moneymanagement.FinancialAddressCreateParams.builder() - .setCurrency( - com.stripe.param.v2.moneymanagement.FinancialAddressCreateParams.Currency.STN) + .setCurrency("usd") .setFinancialAccount("financial_account") .build(); @@ -27826,7 +27801,7 @@ public void testV2MoneyManagementFinancialAddressGet2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.FinancialAddress.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"credentials\":null,\"currency\":\"stn\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.FinancialAddressRetrieveParams params = @@ -27854,7 +27829,7 @@ public void testV2MoneyManagementInboundTransferGetServices() throws StripeExcep new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.InboundTransfer>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\",\"us_bank_account\":null}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"receipt_url\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\",\"bank_debit_failed\":null,\"bank_debit_processing\":null,\"bank_debit_queued\":null,\"bank_debit_returned\":null,\"bank_debit_succeeded\":null}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.InboundTransferListParams params = @@ -27880,7 +27855,7 @@ public void testV2MoneyManagementInboundTransferPostServices() throws StripeExce null, null, com.stripe.model.v2.moneymanagement.InboundTransfer.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\",\"us_bank_account\":null}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"receipt_url\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\",\"bank_debit_failed\":null,\"bank_debit_processing\":null,\"bank_debit_queued\":null,\"bank_debit_returned\":null,\"bank_debit_succeeded\":null}],\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.InboundTransferCreateParams params = @@ -27918,7 +27893,7 @@ public void testV2MoneyManagementInboundTransferGet2Services() throws StripeExce null, null, com.stripe.model.v2.moneymanagement.InboundTransfer.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\",\"us_bank_account\":null}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"receipt_url\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\",\"bank_debit_failed\":null,\"bank_debit_processing\":null,\"bank_debit_queued\":null,\"bank_debit_returned\":null,\"bank_debit_succeeded\":null}],\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.InboundTransfer inboundTransfer = @@ -27943,7 +27918,7 @@ public void testV2MoneyManagementOutboundPaymentGetServices() throws StripeExcep new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.OutboundPayment>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.outbound_payment\",\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundPaymentListParams params = @@ -27969,7 +27944,7 @@ public void testV2MoneyManagementOutboundPaymentPostServices() throws StripeExce null, null, com.stripe.model.v2.moneymanagement.OutboundPayment.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.outbound_payment\",\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams params = @@ -28008,7 +27983,7 @@ public void testV2MoneyManagementOutboundPaymentGet2Services() throws StripeExce null, null, com.stripe.model.v2.moneymanagement.OutboundPayment.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.outbound_payment\",\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundPayment outboundPayment = @@ -28031,7 +28006,7 @@ public void testV2MoneyManagementOutboundPaymentPost2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.OutboundPayment.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.outbound_payment\",\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundPayment outboundPayment = @@ -28054,7 +28029,7 @@ public void testV2MoneyManagementOutboundPaymentQuotePostServices() throws Strip null, null, com.stripe.model.v2.moneymanagement.OutboundPaymentQuote.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_expires_at\":\"1970-01-18T15:15:29.586Z\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_expires_at\":\"1970-01-18T15:15:29.586Z\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundPaymentQuoteCreateParams params = @@ -28093,7 +28068,7 @@ public void testV2MoneyManagementOutboundPaymentQuoteGetServices() throws Stripe null, null, com.stripe.model.v2.moneymanagement.OutboundPaymentQuote.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_expires_at\":\"1970-01-18T15:15:29.586Z\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_expires_at\":\"1970-01-18T15:15:29.586Z\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundPaymentQuote outboundPaymentQuote = @@ -28118,7 +28093,7 @@ public void testV2MoneyManagementOutboundSetupIntentGetServices() throws StripeE new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.OutboundSetupIntent>>() {}.getType(), - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"next_action\":null,\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_outbound_setup_intent\":null,\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true,\"bank_account\":null,\"card\":null},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundSetupIntentListParams params = @@ -28144,7 +28119,7 @@ public void testV2MoneyManagementOutboundSetupIntentPostServices() throws Stripe null, null, com.stripe.model.v2.moneymanagement.OutboundSetupIntent.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"next_action\":null,\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_outbound_setup_intent\":null,\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true,\"bank_account\":null,\"card\":null},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundSetupIntentCreateParams params = @@ -28170,7 +28145,7 @@ public void testV2MoneyManagementOutboundSetupIntentGet2Services() throws Stripe null, null, com.stripe.model.v2.moneymanagement.OutboundSetupIntent.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"next_action\":null,\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_outbound_setup_intent\":null,\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true,\"bank_account\":null,\"card\":null},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundSetupIntent outboundSetupIntent = @@ -28193,7 +28168,7 @@ public void testV2MoneyManagementOutboundSetupIntentPost2Services() throws Strip null, null, com.stripe.model.v2.moneymanagement.OutboundSetupIntent.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"next_action\":null,\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_outbound_setup_intent\":null,\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true,\"bank_account\":null,\"card\":null},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundSetupIntentUpdateParams params = @@ -28219,7 +28194,7 @@ public void testV2MoneyManagementOutboundSetupIntentPost3Services() throws Strip null, null, com.stripe.model.v2.moneymanagement.OutboundSetupIntent.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"next_action\":null,\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_outbound_setup_intent\":null,\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true,\"bank_account\":null,\"card\":null},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundSetupIntent outboundSetupIntent = @@ -28244,7 +28219,7 @@ public void testV2MoneyManagementOutboundTransferGetServices() throws StripeExce new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.OutboundTransfer>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.outbound_transfer\",\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundTransferListParams params = @@ -28270,7 +28245,7 @@ public void testV2MoneyManagementOutboundTransferPostServices() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.OutboundTransfer.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.outbound_transfer\",\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.OutboundTransferCreateParams params = @@ -28308,7 +28283,7 @@ public void testV2MoneyManagementOutboundTransferGet2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.OutboundTransfer.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.outbound_transfer\",\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundTransfer outboundTransfer = @@ -28331,7 +28306,7 @@ public void testV2MoneyManagementOutboundTransferPost2Services() throws StripeEx null, null, com.stripe.model.v2.moneymanagement.OutboundTransfer.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"metadata\":null,\"object\":\"v2.money_management.outbound_transfer\",\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.OutboundTransfer outboundTransfer = @@ -28356,7 +28331,7 @@ public void testV2MoneyManagementPayoutMethodGetServices() throws StripeExceptio new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.PayoutMethod>>() {}.getType(), - "{\"data\":[{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_outbound_setup_intent\":null,\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true,\"bank_account\":null,\"card\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.PayoutMethodListParams params = @@ -28382,7 +28357,7 @@ public void testV2MoneyManagementPayoutMethodGet2Services() throws StripeExcepti null, null, com.stripe.model.v2.moneymanagement.PayoutMethod.class, - "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_outbound_setup_intent\":null,\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true,\"bank_account\":null,\"card\":null}"); + "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.PayoutMethod payoutMethod = @@ -28405,7 +28380,7 @@ public void testV2MoneyManagementPayoutMethodPostServices() throws StripeExcepti null, null, com.stripe.model.v2.moneymanagement.PayoutMethod.class, - "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_outbound_setup_intent\":null,\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true,\"bank_account\":null,\"card\":null}"); + "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.PayoutMethod payoutMethod = @@ -28428,7 +28403,7 @@ public void testV2MoneyManagementPayoutMethodPost2Services() throws StripeExcept null, null, com.stripe.model.v2.moneymanagement.PayoutMethod.class, - "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_outbound_setup_intent\":null,\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true,\"bank_account\":null,\"card\":null}"); + "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.PayoutMethod payoutMethod = @@ -28481,7 +28456,7 @@ public void testV2MoneyManagementReceivedCreditGetServices() throws StripeExcept new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.ReceivedCredit>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":null,\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"receipt_url\":null,\"status\":\"returned\",\"status_details\":null,\"status_transitions\":null,\"type\":\"balance_transfer\",\"livemode\":true,\"balance_transfer\":null,\"bank_transfer\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.ReceivedCreditListParams params = @@ -28507,7 +28482,7 @@ public void testV2MoneyManagementReceivedCreditGet2Services() throws StripeExcep null, null, com.stripe.model.v2.moneymanagement.ReceivedCredit.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":null,\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"receipt_url\":null,\"status\":\"returned\",\"status_details\":null,\"status_transitions\":null,\"type\":\"balance_transfer\",\"livemode\":true,\"balance_transfer\":null,\"bank_transfer\":null}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.ReceivedCredit receivedCredit = @@ -28532,7 +28507,7 @@ public void testV2MoneyManagementReceivedDebitGetServices() throws StripeExcepti new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.ReceivedDebit>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":null,\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"receipt_url\":null,\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"type\":\"bank_transfer\",\"livemode\":true,\"bank_transfer\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"bank_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.ReceivedDebitListParams params = @@ -28558,7 +28533,7 @@ public void testV2MoneyManagementReceivedDebitGet2Services() throws StripeExcept null, null, com.stripe.model.v2.moneymanagement.ReceivedDebit.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":null,\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"receipt_url\":null,\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"type\":\"bank_transfer\",\"livemode\":true,\"bank_transfer\":null}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"bank_transfer\",\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.ReceivedDebit receivedDebit = @@ -28583,7 +28558,7 @@ public void testV2MoneyManagementTransactionGetServices() throws StripeException new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.Transaction>>() {}.getType(), - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\",\"adjustment\":null,\"currency_conversion\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{\"posted_at\":null,\"void_at\":null},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.TransactionListParams params = @@ -28609,7 +28584,7 @@ public void testV2MoneyManagementTransactionGet2Services() throws StripeExceptio null, null, com.stripe.model.v2.moneymanagement.Transaction.class, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\",\"adjustment\":null,\"currency_conversion\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{\"posted_at\":null,\"void_at\":null},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.Transaction transaction = @@ -28634,7 +28609,7 @@ public void testV2MoneyManagementTransactionEntryGetServices() throws StripeExce new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.moneymanagement.TransactionEntry>>() {}.getType(), - "{\"data\":[{\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\",\"adjustment\":null,\"currency_conversion\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null}},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"}},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.moneymanagement.TransactionEntryListParams params = @@ -28660,7 +28635,7 @@ public void testV2MoneyManagementTransactionEntryGet2Services() throws StripeExc null, null, com.stripe.model.v2.moneymanagement.TransactionEntry.class, - "{\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\",\"adjustment\":null,\"currency_conversion\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null}},\"livemode\":true}"); + "{\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"}},\"livemode\":true}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.moneymanagement.TransactionEntry transactionEntry = @@ -28685,7 +28660,7 @@ public void testV2PaymentsOffSessionPaymentGetServices() throws StripeException new TypeToken< com.stripe.model.v2.StripeCollection< com.stripe.model.v2.payments.OffSessionPayment>>() {}.getType(), - "{\"data\":[{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"failure_reason\":null,\"id\":\"obj_123\",\"last_authorization_attempt_error\":null,\"latest_payment_attempt_record\":null,\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"on_behalf_of\":null,\"payment_method\":\"payment_method\",\"payment_record\":null,\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"statement_descriptor\":null,\"statement_descriptor_suffix\":null,\"status\":\"pending\",\"test_clock\":null,\"transfer_data\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"status\":\"pending\"}],\"next_page_url\":null,\"previous_page_url\":null}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.payments.OffSessionPaymentListParams params = @@ -28711,7 +28686,7 @@ public void testV2PaymentsOffSessionPaymentPostServices() throws StripeException null, null, com.stripe.model.v2.payments.OffSessionPayment.class, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"failure_reason\":null,\"id\":\"obj_123\",\"last_authorization_attempt_error\":null,\"latest_payment_attempt_record\":null,\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"on_behalf_of\":null,\"payment_method\":\"payment_method\",\"payment_record\":null,\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"statement_descriptor\":null,\"statement_descriptor_suffix\":null,\"status\":\"pending\",\"test_clock\":null,\"transfer_data\":null}"); + "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"status\":\"pending\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.param.v2.payments.OffSessionPaymentCreateParams params = @@ -28744,7 +28719,7 @@ public void testV2PaymentsOffSessionPaymentGet2Services() throws StripeException null, null, com.stripe.model.v2.payments.OffSessionPayment.class, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"failure_reason\":null,\"id\":\"obj_123\",\"last_authorization_attempt_error\":null,\"latest_payment_attempt_record\":null,\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"on_behalf_of\":null,\"payment_method\":\"payment_method\",\"payment_record\":null,\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"statement_descriptor\":null,\"statement_descriptor_suffix\":null,\"status\":\"pending\",\"test_clock\":null,\"transfer_data\":null}"); + "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"status\":\"pending\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.payments.OffSessionPayment offSessionPayment = @@ -28767,7 +28742,7 @@ public void testV2PaymentsOffSessionPaymentPost2Services() throws StripeExceptio null, null, com.stripe.model.v2.payments.OffSessionPayment.class, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"failure_reason\":null,\"id\":\"obj_123\",\"last_authorization_attempt_error\":null,\"latest_payment_attempt_record\":null,\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"on_behalf_of\":null,\"payment_method\":\"payment_method\",\"payment_record\":null,\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"statement_descriptor\":null,\"statement_descriptor_suffix\":null,\"status\":\"pending\",\"test_clock\":null,\"transfer_data\":null}"); + "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"status\":\"pending\"}"); StripeClient client = new StripeClient(networkSpy); com.stripe.model.v2.payments.OffSessionPayment offSessionPayment = @@ -28781,87 +28756,6 @@ public void testV2PaymentsOffSessionPaymentPost2Services() throws StripeExceptio null); } - @Test - public void testV2ReportingReportGetServices() throws StripeException { - stubRequest( - BaseAddress.API, - ApiResource.RequestMethod.GET, - "/v2/reporting/reports/id_123", - null, - null, - com.stripe.model.v2.reporting.Report.class, - "{\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.reporting.report\",\"parameters\":{\"key\":{\"array_details\":null,\"description\":\"description\",\"enum_details\":null,\"required\":true,\"timestamp_details\":null,\"type\":\"string\"}},\"livemode\":true}"); - StripeClient client = new StripeClient(networkSpy); - - com.stripe.model.v2.reporting.Report report = - client.v2().reporting().reports().retrieve("id_123"); - assertNotNull(report); - verifyRequest( - BaseAddress.API, ApiResource.RequestMethod.GET, "/v2/reporting/reports/id_123", null, null); - } - - @Test - public void testV2ReportingReportRunPostServices() throws StripeException { - stubRequest( - BaseAddress.API, - ApiResource.RequestMethod.POST, - "/v2/reporting/report_runs", - null, - null, - com.stripe.model.v2.reporting.ReportRun.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.reporting.report_run\",\"report\":\"report\",\"report_name\":\"report_name\",\"report_parameters\":{\"key\":{\"array_value\":null,\"string_value\":null,\"timestamp_value\":null}},\"result\":null,\"result_options\":null,\"status\":\"failed\",\"status_details\":{\"key\":{\"error_code\":null,\"error_message\":null}},\"livemode\":true}"); - StripeClient client = new StripeClient(networkSpy); - - com.stripe.param.v2.reporting.ReportRunCreateParams params = - com.stripe.param.v2.reporting.ReportRunCreateParams.builder() - .setReport("report") - .putReportParameter( - "key", - com.stripe.param.v2.reporting.ReportRunCreateParams.ReportParameter.builder() - .setArrayValue( - com.stripe.param.v2.reporting.ReportRunCreateParams.ReportParameter - .ArrayValue.builder() - .addItem("items") - .build()) - .setStringValue("string_value") - .setTimestampValue(Instant.parse("1970-01-14T02:07:39.256Z")) - .build()) - .build(); - - com.stripe.model.v2.reporting.ReportRun reportRun = - client.v2().reporting().reportRuns().create(params); - assertNotNull(reportRun); - verifyRequest( - BaseAddress.API, - ApiResource.RequestMethod.POST, - "/v2/reporting/report_runs", - params.toMap(), - null); - } - - @Test - public void testV2ReportingReportRunGetServices() throws StripeException { - stubRequest( - BaseAddress.API, - ApiResource.RequestMethod.GET, - "/v2/reporting/report_runs/id_123", - null, - null, - com.stripe.model.v2.reporting.ReportRun.class, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.reporting.report_run\",\"report\":\"report\",\"report_name\":\"report_name\",\"report_parameters\":{\"key\":{\"array_value\":null,\"string_value\":null,\"timestamp_value\":null}},\"result\":null,\"result_options\":null,\"status\":\"failed\",\"status_details\":{\"key\":{\"error_code\":null,\"error_message\":null}},\"livemode\":true}"); - StripeClient client = new StripeClient(networkSpy); - - com.stripe.model.v2.reporting.ReportRun reportRun = - client.v2().reporting().reportRuns().retrieve("id_123"); - assertNotNull(reportRun); - verifyRequest( - BaseAddress.API, - ApiResource.RequestMethod.GET, - "/v2/reporting/report_runs/id_123", - null, - null); - } - @Test public void testV2TaxAutomaticRulePostServices() throws StripeException { stubRequest( @@ -29109,7 +29003,7 @@ public void testBlockedByStripeErrorServices() throws StripeException { "/v2/core/vault/us_bank_accounts", null, null, - "{\"error\":{\"type\":\"blocked_by_stripe\",\"code\":\"inbound_transfer_not_allowed\"}}", + "{\"error\":{\"type\":\"blocked_by_stripe\",\"code\":\"blocked_payout_method_bank_account\"}}", 400); StripeClient client = new StripeClient(networkSpy); @@ -29166,7 +29060,7 @@ public void testFeatureNotEnabledErrorServices() throws StripeException { "/v2/money_management/financial_accounts", null, null, - "{\"error\":{\"type\":\"feature_not_enabled\",\"code\":\"storer_capability_missing\"}}", + "{\"error\":{\"type\":\"feature_not_enabled\",\"code\":\"recipient_feature_not_active\"}}", 400); StripeClient client = new StripeClient(networkSpy); @@ -29203,8 +29097,7 @@ public void testFinancialAccountNotOpenErrorServices() throws StripeException { com.stripe.param.v2.moneymanagement.FinancialAddressCreateParams params = com.stripe.param.v2.moneymanagement.FinancialAddressCreateParams.builder() - .setCurrency( - com.stripe.param.v2.moneymanagement.FinancialAddressCreateParams.Currency.STN) + .setCurrency("usd") .setFinancialAccount("financial_account") .build(); @@ -29385,7 +29278,7 @@ public void testQuotaExceededErrorServices() throws StripeException { "/v2/core/vault/us_bank_accounts", null, null, - "{\"error\":{\"type\":\"quota_exceeded\",\"code\":\"recipient_amount_limit_exceeded\"}}", + "{\"error\":{\"type\":\"quota_exceeded\",\"code\":\"archived_payout_method_card\"}}", 400); StripeClient client = new StripeClient(networkSpy); @@ -29408,41 +29301,6 @@ public void testQuotaExceededErrorServices() throws StripeException { null); } - @Test - public void testRateLimitErrorServices() throws StripeException { - stubRequestReturnError( - BaseAddress.API, - ApiResource.RequestMethod.POST, - "/v2/reporting/report_runs", - null, - null, - "{\"error\":{\"type\":\"rate_limit\",\"code\":\"report_run_rate_limit_exceeded\"}}", - 400); - StripeClient client = new StripeClient(networkSpy); - - com.stripe.param.v2.reporting.ReportRunCreateParams params = - com.stripe.param.v2.reporting.ReportRunCreateParams.builder() - .setReport("report") - .putReportParameter( - "key", - com.stripe.param.v2.reporting.ReportRunCreateParams.ReportParameter.builder() - .build()) - .build(); - - try { - client.v2().reporting().reportRuns().create(params); - } catch (RateLimitException e) { - - } - ; - verifyRequest( - BaseAddress.API, - ApiResource.RequestMethod.POST, - "/v2/reporting/report_runs", - params.toMap(), - null); - } - @Test public void testRecipientNotNotifiableErrorServices() throws StripeException { stubRequestReturnError(