diff --git a/API_VERSION b/API_VERSION index 1116f63c2f8..40f35337b3c 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -2025-06-30.basil \ No newline at end of file +2025-07-30.basil \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d8931ef8a65..7b0334ddc01 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1819 \ No newline at end of file +v1868 \ No newline at end of file diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java index 279a56e0088..eba9ee380c7 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -2,6 +2,6 @@ package com.stripe; final class ApiVersion { - public static final String CURRENT = "2025-06-30.basil"; + public static final String CURRENT = "2025-07-30.basil"; public static final String CURRENT_MAJOR = "basil"; } diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index a6309ba8dc7..44850090bcb 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -312,10 +312,10 @@ public static Account create(AccountCreateParams params, RequestOptions options) * *

Test-mode accounts can be deleted at any time. * - *

Live-mode accounts where Stripe is responsible for negative account balances cannot be - * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for - * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + *

Live-mode accounts that have access to the standard dashboard and Stripe is responsible for + * negative account balances cannot be deleted, which includes Standard accounts. All other + * Live-mode accounts, can be deleted when all balances are zero. * *

If you want to delete your own account, use the account information tab in your account @@ -330,10 +330,10 @@ public Account delete() throws StripeException { * *

Test-mode accounts can be deleted at any time. * - *

Live-mode accounts where Stripe is responsible for negative account balances cannot be - * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for - * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + *

Live-mode accounts that have access to the standard dashboard and Stripe is responsible for + * negative account balances cannot be deleted, which includes Standard accounts. All other + * Live-mode accounts, can be deleted when all balances are zero. * *

If you want to delete your own account, use the account information tab in your account @@ -348,10 +348,10 @@ public Account delete(RequestOptions options) throws StripeException { * *

Test-mode accounts can be deleted at any time. * - *

Live-mode accounts where Stripe is responsible for negative account balances cannot be - * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for - * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + *

Live-mode accounts that have access to the standard dashboard and Stripe is responsible for + * negative account balances cannot be deleted, which includes Standard accounts. All other + * Live-mode accounts, can be deleted when all balances are zero. * *

If you want to delete your own account, use the account information tab in your account @@ -366,10 +366,10 @@ public Account delete(Map params) throws StripeException { * *

Test-mode accounts can be deleted at any time. * - *

Live-mode accounts where Stripe is responsible for negative account balances cannot be - * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for - * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + *

Live-mode accounts that have access to the standard dashboard and Stripe is responsible for + * negative account balances cannot be deleted, which includes Standard accounts. All other + * Live-mode accounts, can be deleted when all balances are zero. * *

If you want to delete your own account, use the account information tab in your account @@ -755,7 +755,7 @@ public static class BusinessProfile extends StripeObject { @SerializedName("mcc") String mcc; - /** Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. */ + /** Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. */ @SerializedName("minority_owned_business_designation") List minorityOwnedBusinessDesignation; diff --git a/src/main/java/com/stripe/model/AccountSession.java b/src/main/java/com/stripe/model/AccountSession.java index 208b5ed9ef2..d2ea7cc66f8 100644 --- a/src/main/java/com/stripe/model/AccountSession.java +++ b/src/main/java/com/stripe/model/AccountSession.java @@ -147,6 +147,9 @@ public static class Components extends StripeObject { @SerializedName("financial_account_transactions") FinancialAccountTransactions financialAccountTransactions; + @SerializedName("instant_payouts_promotion") + InstantPayoutsPromotion instantPayoutsPromotion; + @SerializedName("issuing_card") IssuingCard issuingCard; @@ -489,6 +492,58 @@ public static class Features extends StripeObject { } } + /** + * For more details about InstantPayoutsPromotion, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class InstantPayoutsPromotion extends StripeObject { + /** Whether the embedded component is enabled. */ + @SerializedName("enabled") + Boolean enabled; + + @SerializedName("features") + Features features; + + /** + * For more details about Features, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Features extends StripeObject { + /** + * Whether Stripe user authentication is disabled. This value can only be {@code true} for + * accounts where {@code controller.requirement_collection} is {@code application} for the + * account. The default value is the opposite of the {@code external_account_collection} + * value. For example, if you don't set {@code external_account_collection}, it defaults to + * {@code true} and {@code disable_stripe_user_authentication} defaults to {@code false}. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + + /** + * Whether external account collection is enabled. This feature can only be {@code false} + * for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like Custom accounts. The default value for this feature + * is {@code true}. + */ + @SerializedName("external_account_collection") + Boolean externalAccountCollection; + + /** + * Whether to allow creation of instant payouts. Defaults to {@code true} when {@code + * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code + * false}. + */ + @SerializedName("instant_payouts") + Boolean instantPayouts; + } + } + /** * For more details about IssuingCard, please refer to the API Reference. diff --git a/src/main/java/com/stripe/model/Capability.java b/src/main/java/com/stripe/model/Capability.java index 75dd78dfcbf..f0c8d1b3e45 100644 --- a/src/main/java/com/stripe/model/Capability.java +++ b/src/main/java/com/stripe/model/Capability.java @@ -62,8 +62,7 @@ public class Capability extends ApiResource implements HasId { /** * The status of the capability. * - *

One of {@code active}, {@code disabled}, {@code inactive}, {@code pending}, or {@code - * unrequested}. + *

One of {@code active}, {@code inactive}, {@code pending}, or {@code unrequested}. */ @SerializedName("status") String status; diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index b5cb29c7fa0..fbd148cb0da 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1545,9 +1545,9 @@ public static class Funding extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Card extends StripeObject { /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or - * {@code unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code + * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code + * unionpay}, {@code visa} or {@code unknown}. */ @SerializedName("brand") String brand; @@ -1786,9 +1786,9 @@ public static class Card extends StripeObject { String authorizationCode; /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code - * unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code + * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code + * unionpay}, {@code visa} or {@code unknown}. */ @SerializedName("brand") String brand; @@ -2351,9 +2351,9 @@ public static class CardPresent extends StripeObject { Long amountAuthorized; /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code - * unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code + * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code + * unionpay}, {@code visa} or {@code unknown}. */ @SerializedName("brand") String brand; @@ -2637,6 +2637,10 @@ public static class Cashapp extends StripeObject { /** A public identifier for buyers using Cash App. */ @SerializedName("cashtag") String cashtag; + + /** A unique and immutable identifier of payments assigned by Cash App. */ + @SerializedName("transaction_id") + String transactionId; } /** @@ -3559,9 +3563,9 @@ public static class Funding extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Card extends StripeObject { /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or - * {@code unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code + * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code + * unionpay}, {@code visa} or {@code unknown}. */ @SerializedName("brand") String brand; @@ -3953,7 +3957,9 @@ public static class Zip extends StripeObject {} @Setter @EqualsAndHashCode(callSuper = false) public static class PresentmentDetails extends StripeObject { - /** Amount intended to be collected by this payment, denominated in presentment_currency. */ + /** + * Amount intended to be collected by this payment, denominated in {@code presentment_currency}. + */ @SerializedName("presentment_amount") Long presentmentAmount; diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index 2419385420b..d7a19863930 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -684,9 +684,9 @@ public static class Boleto extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Card extends StripeObject { /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code - * unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code + * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code + * unionpay}, {@code visa} or {@code unknown}. */ @SerializedName("brand") String brand; @@ -890,9 +890,9 @@ public static class CardPresent extends StripeObject { Long amountAuthorized; /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or - * {@code unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code + * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code + * unionpay}, {@code visa} or {@code unknown}. */ @SerializedName("brand") String brand; @@ -1380,9 +1380,9 @@ public static class VisaCheckout extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class CardPresent extends StripeObject { /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code - * unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code + * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code + * unionpay}, {@code visa} or {@code unknown}. */ @SerializedName("brand") String brand; diff --git a/src/main/java/com/stripe/model/Customer.java b/src/main/java/com/stripe/model/Customer.java index cb66ff33ecb..a25a06ff9fd 100644 --- a/src/main/java/com/stripe/model/Customer.java +++ b/src/main/java/com/stripe/model/Customer.java @@ -42,11 +42,12 @@ public class Customer extends ApiResource implements HasId, MetadataStoreinvoice_credit_balance. */ @SerializedName("balance") Long balance; diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java index 1445a1397ca..669aca9777a 100644 --- a/src/main/java/com/stripe/model/Dispute.java +++ b/src/main/java/com/stripe/model/Dispute.java @@ -1155,9 +1155,9 @@ public static class AmazonPay extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Card extends StripeObject { /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code - * unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code + * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code + * unionpay}, {@code visa} or {@code unknown}. */ @SerializedName("brand") String brand; diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java index 1391eed008e..46b57125e94 100644 --- a/src/main/java/com/stripe/model/Event.java +++ b/src/main/java/com/stripe/model/Event.java @@ -20,32 +20,24 @@ import lombok.Setter; /** - * Events are our way of letting you know when something interesting happens in your account. When - * an interesting event occurs, we create a new {@code Event} object. For example, when a charge - * succeeds, we create a {@code charge.succeeded} event, and when an invoice payment attempt fails, - * we create an {@code invoice.payment_failed} event. Certain API requests might create multiple - * events. For example, if you create a new subscription for a customer, you receive both a {@code + * Snapshot events allow you to track and react to activity in your Stripe integration. When the + * state of another API resource changes, Stripe creates an {@code Event} object that contains all + * the relevant information associated with that action, including the affected API resource. For + * example, a successful payment triggers a {@code charge.succeeded} event, which contains the + * {@code Charge} in the event's data property. Some actions trigger multiple events. For example, + * if you create a new subscription for a customer, it triggers both a {@code * customer.subscription.created} event and a {@code charge.succeeded} event. * - *

Events occur when the state of another API resource changes. The event's data field embeds the - * resource's state at the time of the change. For example, a {@code charge.succeeded} event - * contains a charge, and an {@code invoice.payment_failed} event contains an invoice. + *

Configure an event destination in your account to listen for events that represent actions + * your integration needs to respond to. Additionally, you can retrieve an individual event or a + * list of events from the API. * - *

As with other API resources, you can use endpoints to retrieve an individual event or a list of events from the API. We also have a - * separate webhooks system for sending the - * {@code Event} objects directly to an endpoint on your server. You can manage webhooks in your account settings. Learn how to listen for events so that your integration can - * automatically trigger reactions. + *

Connect platforms can also receive event + * notifications that occur in their connected accounts. These events include an account attribute + * that identifies the relevant connected account. * - *

When using Connect, you can also receive event - * notifications that occur in connected accounts. For these events, there's an additional {@code - * account} attribute in the received {@code Event} object. - * - *

We only guarantee access to events through the Retrieve Event API for 30 days. + *

You can access events through the Retrieve Event API for 30 days. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index fc228314023..ad24764c842 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -775,25 +775,32 @@ public PaymentIntent capture(PaymentIntentCaptureParams params, RequestOptions o /** * Confirm that your customer intends to pay with current or provided payment method. Upon - * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment - * method requires additional authentication steps, the PaymentIntent will transition to the - * {@code requires_action} status and suggest additional actions via {@code next_action}. If - * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or - * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the - * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if - * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code - * automatic}, payment may be attempted using our client SDKs - * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent + * will transition to the {@code requires_action} status and suggest additional actions via {@code + * next_action}. If payment fails, the PaymentIntent transitions to the {@code + * requires_payment_method} status or the {@code canceled} status if the confirmation limit is + * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status + * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}). + * + *

If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our + * client + * SDKs and the PaymentIntent’s client_secret. After * {@code next_action}s are handled by the client, no additional confirmation is required to - * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment - * attempts must be initiated using a secret key. If any actions are required for the payment, the - * PaymentIntent will return to the {@code requires_confirmation} state after those actions are - * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be - * confirmed. After this limit is reached, any further calls to this endpoint will transition the - * PaymentIntent to the {@code canceled} state. + * complete the payment. + * + *

If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated + * using a secret key. + * + *

If any actions are required for the payment, the PaymentIntent will return to the {@code + * requires_confirmation} state after those actions are completed. Your server needs to then + * explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + * + *

There is a variable upper limit on how many times a PaymentIntent can be confirmed. After + * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to + * the {@code canceled} state. */ public PaymentIntent confirm() throws StripeException { return confirm((Map) null, (RequestOptions) null); @@ -801,25 +808,32 @@ public PaymentIntent confirm() throws StripeException { /** * Confirm that your customer intends to pay with current or provided payment method. Upon - * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment - * method requires additional authentication steps, the PaymentIntent will transition to the - * {@code requires_action} status and suggest additional actions via {@code next_action}. If - * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or - * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the - * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if - * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code - * automatic}, payment may be attempted using our client SDKs - * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent + * will transition to the {@code requires_action} status and suggest additional actions via {@code + * next_action}. If payment fails, the PaymentIntent transitions to the {@code + * requires_payment_method} status or the {@code canceled} status if the confirmation limit is + * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status + * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}). + * + *

If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our + * client + * SDKs and the PaymentIntent’s client_secret. After * {@code next_action}s are handled by the client, no additional confirmation is required to - * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment - * attempts must be initiated using a secret key. If any actions are required for the payment, the - * PaymentIntent will return to the {@code requires_confirmation} state after those actions are - * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be - * confirmed. After this limit is reached, any further calls to this endpoint will transition the - * PaymentIntent to the {@code canceled} state. + * complete the payment. + * + *

If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated + * using a secret key. + * + *

If any actions are required for the payment, the PaymentIntent will return to the {@code + * requires_confirmation} state after those actions are completed. Your server needs to then + * explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + * + *

There is a variable upper limit on how many times a PaymentIntent can be confirmed. After + * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to + * the {@code canceled} state. */ public PaymentIntent confirm(RequestOptions options) throws StripeException { return confirm((Map) null, options); @@ -827,25 +841,32 @@ public PaymentIntent confirm(RequestOptions options) throws StripeException { /** * Confirm that your customer intends to pay with current or provided payment method. Upon - * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment - * method requires additional authentication steps, the PaymentIntent will transition to the - * {@code requires_action} status and suggest additional actions via {@code next_action}. If - * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or - * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the - * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if - * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code - * automatic}, payment may be attempted using our client SDKs - * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent + * will transition to the {@code requires_action} status and suggest additional actions via {@code + * next_action}. If payment fails, the PaymentIntent transitions to the {@code + * requires_payment_method} status or the {@code canceled} status if the confirmation limit is + * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status + * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}). + * + *

If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our + * client + * SDKs and the PaymentIntent’s client_secret. After * {@code next_action}s are handled by the client, no additional confirmation is required to - * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment - * attempts must be initiated using a secret key. If any actions are required for the payment, the - * PaymentIntent will return to the {@code requires_confirmation} state after those actions are - * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be - * confirmed. After this limit is reached, any further calls to this endpoint will transition the - * PaymentIntent to the {@code canceled} state. + * complete the payment. + * + *

If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated + * using a secret key. + * + *

If any actions are required for the payment, the PaymentIntent will return to the {@code + * requires_confirmation} state after those actions are completed. Your server needs to then + * explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + * + *

There is a variable upper limit on how many times a PaymentIntent can be confirmed. After + * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to + * the {@code canceled} state. */ public PaymentIntent confirm(Map params) throws StripeException { return confirm(params, (RequestOptions) null); @@ -853,25 +874,32 @@ public PaymentIntent confirm(Map params) throws StripeException /** * Confirm that your customer intends to pay with current or provided payment method. Upon - * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment - * method requires additional authentication steps, the PaymentIntent will transition to the - * {@code requires_action} status and suggest additional actions via {@code next_action}. If - * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or - * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the - * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if - * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code - * automatic}, payment may be attempted using our client SDKs - * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent + * will transition to the {@code requires_action} status and suggest additional actions via {@code + * next_action}. If payment fails, the PaymentIntent transitions to the {@code + * requires_payment_method} status or the {@code canceled} status if the confirmation limit is + * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status + * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}). + * + *

If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our + * client + * SDKs and the PaymentIntent’s client_secret. After * {@code next_action}s are handled by the client, no additional confirmation is required to - * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment - * attempts must be initiated using a secret key. If any actions are required for the payment, the - * PaymentIntent will return to the {@code requires_confirmation} state after those actions are - * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be - * confirmed. After this limit is reached, any further calls to this endpoint will transition the - * PaymentIntent to the {@code canceled} state. + * complete the payment. + * + *

If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated + * using a secret key. + * + *

If any actions are required for the payment, the PaymentIntent will return to the {@code + * requires_confirmation} state after those actions are completed. Your server needs to then + * explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + * + *

There is a variable upper limit on how many times a PaymentIntent can be confirmed. After + * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to + * the {@code canceled} state. */ public PaymentIntent confirm(Map params, RequestOptions options) throws StripeException { @@ -884,25 +912,32 @@ public PaymentIntent confirm(Map params, RequestOptions options) /** * Confirm that your customer intends to pay with current or provided payment method. Upon - * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment - * method requires additional authentication steps, the PaymentIntent will transition to the - * {@code requires_action} status and suggest additional actions via {@code next_action}. If - * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or - * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the - * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if - * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code - * automatic}, payment may be attempted using our client SDKs - * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent + * will transition to the {@code requires_action} status and suggest additional actions via {@code + * next_action}. If payment fails, the PaymentIntent transitions to the {@code + * requires_payment_method} status or the {@code canceled} status if the confirmation limit is + * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status + * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}). + * + *

If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our + * client + * SDKs and the PaymentIntent’s client_secret. After * {@code next_action}s are handled by the client, no additional confirmation is required to - * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment - * attempts must be initiated using a secret key. If any actions are required for the payment, the - * PaymentIntent will return to the {@code requires_confirmation} state after those actions are - * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be - * confirmed. After this limit is reached, any further calls to this endpoint will transition the - * PaymentIntent to the {@code canceled} state. + * complete the payment. + * + *

If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated + * using a secret key. + * + *

If any actions are required for the payment, the PaymentIntent will return to the {@code + * requires_confirmation} state after those actions are completed. Your server needs to then + * explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + * + *

There is a variable upper limit on how many times a PaymentIntent can be confirmed. After + * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to + * the {@code canceled} state. */ public PaymentIntent confirm(PaymentIntentConfirmParams params) throws StripeException { return confirm(params, (RequestOptions) null); @@ -910,25 +945,32 @@ public PaymentIntent confirm(PaymentIntentConfirmParams params) throws StripeExc /** * Confirm that your customer intends to pay with current or provided payment method. Upon - * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment - * method requires additional authentication steps, the PaymentIntent will transition to the - * {@code requires_action} status and suggest additional actions via {@code next_action}. If - * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or - * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the - * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if - * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code - * automatic}, payment may be attempted using our client SDKs - * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent + * will transition to the {@code requires_action} status and suggest additional actions via {@code + * next_action}. If payment fails, the PaymentIntent transitions to the {@code + * requires_payment_method} status or the {@code canceled} status if the confirmation limit is + * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status + * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}). + * + *

If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our + * client + * SDKs and the PaymentIntent’s client_secret. After * {@code next_action}s are handled by the client, no additional confirmation is required to - * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment - * attempts must be initiated using a secret key. If any actions are required for the payment, the - * PaymentIntent will return to the {@code requires_confirmation} state after those actions are - * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be - * confirmed. After this limit is reached, any further calls to this endpoint will transition the - * PaymentIntent to the {@code canceled} state. + * complete the payment. + * + *

If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated + * using a secret key. + * + *

If any actions are required for the payment, the PaymentIntent will return to the {@code + * requires_confirmation} state after those actions are completed. Your server needs to then + * explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + * + *

There is a variable upper limit on how many times a PaymentIntent can be confirmed. After + * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to + * the {@code canceled} state. */ public PaymentIntent confirm(PaymentIntentConfirmParams params, RequestOptions options) throws StripeException { @@ -4928,7 +4970,9 @@ public static class Zip extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class PresentmentDetails extends StripeObject { - /** Amount intended to be collected by this payment, denominated in presentment_currency. */ + /** + * Amount intended to be collected by this payment, denominated in {@code presentment_currency}. + */ @SerializedName("presentment_amount") Long presentmentAmount; diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java index 4489c19d01f..ba8c5adeca8 100644 --- a/src/main/java/com/stripe/model/PaymentLink.java +++ b/src/main/java/com/stripe/model/PaymentLink.java @@ -1032,6 +1032,10 @@ public static class RenderingOptions extends StripeObject { */ @SerializedName("amount_tax_display") String amountTaxDisplay; + + /** ID of the invoice rendering template to be used for the generated invoice. */ + @SerializedName("template") + String template; } } } diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index 6cdec492a46..7189206d53e 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -632,13 +632,17 @@ public static PaymentMethod retrieve( return getGlobalResponseGetter().request(request, PaymentMethod.class); } - /** Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. */ + /** + * Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. + */ @Override public PaymentMethod update(Map params) throws StripeException { return update(params, (RequestOptions) null); } - /** Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. */ + /** + * Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. + */ @Override public PaymentMethod update(Map params, RequestOptions options) throws StripeException { @@ -648,12 +652,16 @@ public PaymentMethod update(Map params, RequestOptions options) return getResponseGetter().request(request, PaymentMethod.class); } - /** Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. */ + /** + * Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. + */ public PaymentMethod update(PaymentMethodUpdateParams params) throws StripeException { return update(params, (RequestOptions) null); } - /** Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. */ + /** + * Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. + */ public PaymentMethod update(PaymentMethodUpdateParams params, RequestOptions options) throws StripeException { String path = String.format("/v1/payment_methods/%s", ApiResource.urlEncodeId(this.getId())); @@ -874,8 +882,9 @@ public static class Boleto extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Card extends StripeObject { /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code - * jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code discover}, + * {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code + * visa} or {@code unknown}. */ @SerializedName("brand") String brand; @@ -1078,9 +1087,9 @@ public static class CardPresent extends StripeObject { Long amountAuthorized; /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or - * {@code unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code + * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code + * unionpay}, {@code visa} or {@code unknown}. */ @SerializedName("brand") String brand; @@ -1562,8 +1571,9 @@ public static class VisaCheckout extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class CardPresent extends StripeObject { /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code - * jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code discover}, + * {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code + * visa} or {@code unknown}. */ @SerializedName("brand") String brand; diff --git a/src/main/java/com/stripe/model/Refund.java b/src/main/java/com/stripe/model/Refund.java index e8c42536368..d4fde53341b 100644 --- a/src/main/java/com/stripe/model/Refund.java +++ b/src/main/java/com/stripe/model/Refund.java @@ -1210,7 +1210,9 @@ public static class EmailSent extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class PresentmentDetails extends StripeObject { - /** Amount intended to be collected by this payment, denominated in presentment_currency. */ + /** + * Amount intended to be collected by this payment, denominated in {@code presentment_currency}. + */ @SerializedName("presentment_amount") Long presentmentAmount; diff --git a/src/main/java/com/stripe/model/Review.java b/src/main/java/com/stripe/model/Review.java index 3cd45517568..63ccdff6082 100644 --- a/src/main/java/com/stripe/model/Review.java +++ b/src/main/java/com/stripe/model/Review.java @@ -40,8 +40,8 @@ public class Review extends ApiResource implements HasId { /** * The reason the review was closed, or null if it has not yet been closed. One of {@code - * approved}, {@code refunded}, {@code refunded_as_fraud}, {@code disputed}, {@code redacted}, or - * {@code canceled}. + * approved}, {@code refunded}, {@code refunded_as_fraud}, {@code disputed}, {@code redacted}, + * {@code canceled}, {@code payment_never_settled}, or {@code acknowledged}. */ @SerializedName("closed_reason") String closedReason; @@ -98,8 +98,8 @@ public class Review extends ApiResource implements HasId { /** * The reason the review is currently open or closed. One of {@code rule}, {@code manual}, {@code - * approved}, {@code refunded}, {@code refunded_as_fraud}, {@code disputed}, {@code redacted}, or - * {@code canceled}. + * approved}, {@code refunded}, {@code refunded_as_fraud}, {@code disputed}, {@code redacted}, + * {@code canceled}, {@code payment_never_settled}, or {@code acknowledged}. */ @SerializedName("reason") String reason; diff --git a/src/main/java/com/stripe/model/SetupAttempt.java b/src/main/java/com/stripe/model/SetupAttempt.java index 3bdd7a11ef4..1127c8a5486 100644 --- a/src/main/java/com/stripe/model/SetupAttempt.java +++ b/src/main/java/com/stripe/model/SetupAttempt.java @@ -490,9 +490,9 @@ public static class Boleto extends StripeObject {} @EqualsAndHashCode(callSuper = false) public static class Card extends StripeObject { /** - * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code - * unknown}. + * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code + * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code + * unionpay}, {@code visa} or {@code unknown}. */ @SerializedName("brand") String brand; diff --git a/src/main/java/com/stripe/model/billingportal/Configuration.java b/src/main/java/com/stripe/model/billingportal/Configuration.java index 954b2ea235c..89077de319b 100644 --- a/src/main/java/com/stripe/model/billingportal/Configuration.java +++ b/src/main/java/com/stripe/model/billingportal/Configuration.java @@ -453,6 +453,9 @@ public static class SubscriptionUpdate extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Product extends StripeObject { + @SerializedName("adjustable_quantity") + AdjustableQuantity adjustableQuantity; + /** The list of price IDs which, when subscribed to, a subscription can be updated. */ @SerializedName("prices") List prices; @@ -460,6 +463,27 @@ public static class Product extends StripeObject { /** The product ID. */ @SerializedName("product") String product; + + /** + * For more details about AdjustableQuantity, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class AdjustableQuantity extends StripeObject { + /** If true, the quantity can be adjusted to any non-negative integer. */ + @SerializedName("enabled") + Boolean enabled; + + /** The maximum quantity that can be set for the product. */ + @SerializedName("maximum") + Long maximum; + + /** The minimum quantity that can be set for the product. */ + @SerializedName("minimum") + Long minimum; + } } /** diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 1b6017d5452..f3f13a69d76 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -274,6 +274,14 @@ public class Session extends ApiResource implements HasId, MetadataStore optionalItems; + /** + * Where the user is coming from. This informs the optimizations that are applied to the session. + * + *

One of {@code mobile_app}, or {@code web}. + */ + @SerializedName("origin_context") + String originContext; + /** * The ID of the PaymentIntent for Checkout Sessions in {@code payment} mode. You can't confirm or * cancel the PaymentIntent for a Checkout Session. To cancel, If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + * + *

Equal to {@code none}. + */ + @SerializedName("setup_future_usage") + String setupFutureUsage; } /** @@ -3511,7 +3547,9 @@ public static class PhoneNumberCollection extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class PresentmentDetails extends StripeObject { - /** Amount intended to be collected by this payment, denominated in presentment_currency. */ + /** + * Amount intended to be collected by this payment, denominated in {@code presentment_currency}. + */ @SerializedName("presentment_amount") Long presentmentAmount; diff --git a/src/main/java/com/stripe/model/radar/ValueList.java b/src/main/java/com/stripe/model/radar/ValueList.java index f6acf98e336..88a9eb36714 100644 --- a/src/main/java/com/stripe/model/radar/ValueList.java +++ b/src/main/java/com/stripe/model/radar/ValueList.java @@ -52,10 +52,9 @@ public class ValueList extends ApiResource implements HasId, MetadataStoreAPI Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Standard extends StripeObject { + /** + * Place of supply scheme used in an Default standard registration. + * + *

One of {@code inbound_goods}, or {@code standard}. + */ + @SerializedName("place_of_supply_scheme") + String placeOfSupplyScheme; + } } /** @@ -650,7 +670,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -665,6 +685,9 @@ public static class Standard extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Au extends StripeObject { + @SerializedName("standard") + Standard standard; + /** * Type of registration in {@code country}. * @@ -672,6 +695,23 @@ public static class Au extends StripeObject { */ @SerializedName("type") String type; + + /** + * For more details about Standard, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Standard extends StripeObject { + /** + * Place of supply scheme used in an Default standard registration. + * + *

One of {@code inbound_goods}, or {@code standard}. + */ + @SerializedName("place_of_supply_scheme") + String placeOfSupplyScheme; + } } /** @@ -789,7 +829,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -843,7 +883,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -979,6 +1019,9 @@ public static class Cd extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Ch extends StripeObject { + @SerializedName("standard") + Standard standard; + /** * Type of registration in {@code country}. * @@ -986,6 +1029,23 @@ public static class Ch extends StripeObject { */ @SerializedName("type") String type; + + /** + * For more details about Standard, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Standard extends StripeObject { + /** + * Place of supply scheme used in an Default standard registration. + * + *

One of {@code inbound_goods}, or {@code standard}. + */ + @SerializedName("place_of_supply_scheme") + String placeOfSupplyScheme; + } } /** @@ -1103,7 +1163,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1140,7 +1200,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1177,7 +1237,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1214,7 +1274,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1268,7 +1328,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1322,7 +1382,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1376,7 +1436,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1413,7 +1473,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1428,6 +1488,9 @@ public static class Standard extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Gb extends StripeObject { + @SerializedName("standard") + Standard standard; + /** * Type of registration in {@code country}. * @@ -1435,6 +1498,23 @@ public static class Gb extends StripeObject { */ @SerializedName("type") String type; + + /** + * For more details about Standard, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Standard extends StripeObject { + /** + * Place of supply scheme used in an Default standard registration. + * + *

One of {@code inbound_goods}, or {@code standard}. + */ + @SerializedName("place_of_supply_scheme") + String placeOfSupplyScheme; + } } /** @@ -1501,7 +1581,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1538,7 +1618,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1575,7 +1655,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1629,7 +1709,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1700,7 +1780,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1715,6 +1795,9 @@ public static class Standard extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Jp extends StripeObject { + @SerializedName("standard") + Standard standard; + /** * Type of registration in {@code country}. * @@ -1722,6 +1805,23 @@ public static class Jp extends StripeObject { */ @SerializedName("type") String type; + + /** + * For more details about Standard, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Standard extends StripeObject { + /** + * Place of supply scheme used in an Default standard registration. + * + *

One of {@code inbound_goods}, or {@code standard}. + */ + @SerializedName("place_of_supply_scheme") + String placeOfSupplyScheme; + } } /** @@ -1856,7 +1956,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1893,7 +1993,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -1930,7 +2030,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -2052,7 +2152,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -2140,7 +2240,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -2155,6 +2255,9 @@ public static class Standard extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class No extends StripeObject { + @SerializedName("standard") + Standard standard; + /** * Type of registration in {@code country}. * @@ -2162,6 +2265,23 @@ public static class No extends StripeObject { */ @SerializedName("type") String type; + + /** + * For more details about Standard, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Standard extends StripeObject { + /** + * Place of supply scheme used in an Default standard registration. + * + *

One of {@code inbound_goods}, or {@code standard}. + */ + @SerializedName("place_of_supply_scheme") + String placeOfSupplyScheme; + } } /** @@ -2189,6 +2309,9 @@ public static class Np extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Nz extends StripeObject { + @SerializedName("standard") + Standard standard; + /** * Type of registration in {@code country}. * @@ -2196,6 +2319,23 @@ public static class Nz extends StripeObject { */ @SerializedName("type") String type; + + /** + * For more details about Standard, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Standard extends StripeObject { + /** + * Place of supply scheme used in an Default standard registration. + * + *

One of {@code inbound_goods}, or {@code standard}. + */ + @SerializedName("place_of_supply_scheme") + String placeOfSupplyScheme; + } } /** @@ -2279,7 +2419,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -2316,7 +2456,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -2353,7 +2493,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -2441,7 +2581,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -2456,6 +2596,9 @@ public static class Standard extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Sg extends StripeObject { + @SerializedName("standard") + Standard standard; + /** * Type of registration in {@code country}. * @@ -2463,6 +2606,23 @@ public static class Sg extends StripeObject { */ @SerializedName("type") String type; + + /** + * For more details about Standard, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Standard extends StripeObject { + /** + * Place of supply scheme used in an Default standard registration. + * + *

One of {@code inbound_goods}, or {@code standard}. + */ + @SerializedName("place_of_supply_scheme") + String placeOfSupplyScheme; + } } /** @@ -2495,7 +2655,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; @@ -2532,7 +2692,7 @@ public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * - *

One of {@code small_seller}, or {@code standard}. + *

One of {@code inbound_goods}, {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; diff --git a/src/main/java/com/stripe/model/terminal/Configuration.java b/src/main/java/com/stripe/model/terminal/Configuration.java index 3ee272db124..cf9dfab40be 100644 --- a/src/main/java/com/stripe/model/terminal/Configuration.java +++ b/src/main/java/com/stripe/model/terminal/Configuration.java @@ -365,9 +365,15 @@ public void setSplashscreenObject(File expandableObject) { @Setter @EqualsAndHashCode(callSuper = false) public static class Tipping extends StripeObject { + @SerializedName("aed") + Aed aed; + @SerializedName("aud") Aud aud; + @SerializedName("bgn") + Bgn bgn; + @SerializedName("cad") Cad cad; @@ -389,6 +395,9 @@ public static class Tipping extends StripeObject { @SerializedName("hkd") Hkd hkd; + @SerializedName("huf") + Huf huf; + @SerializedName("jpy") Jpy jpy; @@ -404,6 +413,9 @@ public static class Tipping extends StripeObject { @SerializedName("pln") Pln pln; + @SerializedName("ron") + Ron ron; + @SerializedName("sek") Sek sek; @@ -413,6 +425,30 @@ public static class Tipping extends StripeObject { @SerializedName("usd") Usd usd; + /** + * For more details about Aed, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Aed extends StripeObject { + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + } + /** * For more details about Aud, please refer to the API * Reference. @@ -437,6 +473,30 @@ public static class Aud extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Bgn, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Bgn extends StripeObject { + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + } + /** * For more details about Cad, please refer to the API * Reference. @@ -605,6 +665,30 @@ public static class Hkd extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Huf, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Huf extends StripeObject { + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + } + /** * For more details about Jpy, please refer to the API * Reference. @@ -725,6 +809,30 @@ public static class Pln extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Ron, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Ron extends StripeObject { + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + } + /** * For more details about Sek, please refer to the API * Reference. diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java index d27643d0cba..f9852718f76 100644 --- a/src/main/java/com/stripe/param/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/AccountCreateParams.java @@ -604,7 +604,7 @@ public static class BusinessProfile { @SerializedName("mcc") String mcc; - /** Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. */ + /** Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. */ @SerializedName("minority_owned_business_designation") List minorityOwnedBusinessDesignation; diff --git a/src/main/java/com/stripe/param/AccountLinkCreateParams.java b/src/main/java/com/stripe/param/AccountLinkCreateParams.java index 333d68041c1..6b557f6acae 100644 --- a/src/main/java/com/stripe/param/AccountLinkCreateParams.java +++ b/src/main/java/com/stripe/param/AccountLinkCreateParams.java @@ -57,8 +57,15 @@ public class AccountLinkCreateParams extends ApiRequestParams { String returnUrl; /** - * Required. The type of account link the user is requesting. Possible values are - * {@code account_onboarding} or {@code account_update}. + * Required. The type of account link the user is requesting. + * + *

You can create Account Links of type {@code account_update} only for connected accounts + * where your platform is responsible for collecting requirements, including Custom accounts. You + * can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use Connect embedded + * components, you can include components that allow your connected accounts to update their + * own information. For an account without Stripe-hosted Dashboard access where Stripe is liable + * for negative balances, you must use embedded components. */ @SerializedName("type") Type type; @@ -210,8 +217,15 @@ public Builder setReturnUrl(String returnUrl) { } /** - * Required. The type of account link the user is requesting. Possible values - * are {@code account_onboarding} or {@code account_update}. + * Required. The type of account link the user is requesting. + * + *

You can create Account Links of type {@code account_update} only for connected accounts + * where your platform is responsible for collecting requirements, including Custom accounts. + * You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use + * Connect embedded + * components, you can include components that allow your connected accounts to update their + * own information. For an account without Stripe-hosted Dashboard access where Stripe is liable + * for negative balances, you must use embedded components. */ public Builder setType(AccountLinkCreateParams.Type type) { this.type = type; diff --git a/src/main/java/com/stripe/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java index febcc67a59c..f4d98236ef8 100644 --- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java +++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java @@ -202,6 +202,14 @@ public static class Components { @SerializedName("financial_account_transactions") FinancialAccountTransactions financialAccountTransactions; + /** + * Configuration for the instant + * payouts promotion embedded component. + */ + @SerializedName("instant_payouts_promotion") + InstantPayoutsPromotion instantPayoutsPromotion; + /** * Configuration for the issuing @@ -291,6 +299,7 @@ private Components( Map extraParams, FinancialAccount financialAccount, FinancialAccountTransactions financialAccountTransactions, + InstantPayoutsPromotion instantPayoutsPromotion, IssuingCard issuingCard, IssuingCardsList issuingCardsList, NotificationBanner notificationBanner, @@ -309,6 +318,7 @@ private Components( this.extraParams = extraParams; this.financialAccount = financialAccount; this.financialAccountTransactions = financialAccountTransactions; + this.instantPayoutsPromotion = instantPayoutsPromotion; this.issuingCard = issuingCard; this.issuingCardsList = issuingCardsList; this.notificationBanner = notificationBanner; @@ -342,6 +352,8 @@ public static class Builder { private FinancialAccountTransactions financialAccountTransactions; + private InstantPayoutsPromotion instantPayoutsPromotion; + private IssuingCard issuingCard; private IssuingCardsList issuingCardsList; @@ -373,6 +385,7 @@ public AccountSessionCreateParams.Components build() { this.extraParams, this.financialAccount, this.financialAccountTransactions, + this.instantPayoutsPromotion, this.issuingCard, this.issuingCardsList, this.notificationBanner, @@ -487,6 +500,17 @@ public Builder setFinancialAccountTransactions( return this; } + /** + * Configuration for the instant + * payouts promotion embedded component. + */ + public Builder setInstantPayoutsPromotion( + AccountSessionCreateParams.Components.InstantPayoutsPromotion instantPayoutsPromotion) { + this.instantPayoutsPromotion = instantPayoutsPromotion; + return this; + } + /** * Configuration for the issuing @@ -2043,6 +2067,235 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class InstantPayoutsPromotion { + /** Required. Whether the embedded component is enabled. */ + @SerializedName("enabled") + Boolean enabled; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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 list of features enabled in the embedded component. */ + @SerializedName("features") + Features features; + + private InstantPayoutsPromotion( + Boolean enabled, Map extraParams, Features features) { + this.enabled = enabled; + this.extraParams = extraParams; + this.features = features; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean enabled; + + private Map extraParams; + + private Features features; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountSessionCreateParams.Components.InstantPayoutsPromotion build() { + return new AccountSessionCreateParams.Components.InstantPayoutsPromotion( + this.enabled, this.extraParams, this.features); + } + + /** Required. Whether the embedded component is enabled. */ + public Builder setEnabled(Boolean enabled) { + this.enabled = enabled; + 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 + * AccountSessionCreateParams.Components.InstantPayoutsPromotion#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountSessionCreateParams.Components.InstantPayoutsPromotion#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 list of features enabled in the embedded component. */ + public Builder setFeatures( + AccountSessionCreateParams.Components.InstantPayoutsPromotion.Features features) { + this.features = features; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Features { + /** + * Whether Stripe user authentication is disabled. This value can only be {@code true} for + * accounts where {@code controller.requirement_collection} is {@code application} for the + * account. The default value is the opposite of the {@code external_account_collection} + * value. For example, if you don't set {@code external_account_collection}, it defaults to + * {@code true} and {@code disable_stripe_user_authentication} defaults to {@code false}. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + + /** + * Whether external account collection is enabled. This feature can only be {@code false} + * for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like Custom accounts. The default value for this feature + * is {@code true}. + */ + @SerializedName("external_account_collection") + Boolean externalAccountCollection; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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 to allow creation of instant payouts. Defaults to {@code true} when {@code + * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code + * false}. + */ + @SerializedName("instant_payouts") + Boolean instantPayouts; + + private Features( + Boolean disableStripeUserAuthentication, + Boolean externalAccountCollection, + Map extraParams, + Boolean instantPayouts) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; + this.externalAccountCollection = externalAccountCollection; + this.extraParams = extraParams; + this.instantPayouts = instantPayouts; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean disableStripeUserAuthentication; + + private Boolean externalAccountCollection; + + private Map extraParams; + + private Boolean instantPayouts; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountSessionCreateParams.Components.InstantPayoutsPromotion.Features build() { + return new AccountSessionCreateParams.Components.InstantPayoutsPromotion.Features( + this.disableStripeUserAuthentication, + this.externalAccountCollection, + this.extraParams, + this.instantPayouts); + } + + /** + * Whether Stripe user authentication is disabled. This value can only be {@code true} for + * accounts where {@code controller.requirement_collection} is {@code application} for the + * account. The default value is the opposite of the {@code external_account_collection} + * value. For example, if you don't set {@code external_account_collection}, it defaults + * to {@code true} and {@code disable_stripe_user_authentication} defaults to {@code + * false}. + */ + public Builder setDisableStripeUserAuthentication( + Boolean disableStripeUserAuthentication) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; + return this; + } + + /** + * Whether external account collection is enabled. This feature can only be {@code false} + * for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like Custom accounts. The default value for this + * feature is {@code true}. + */ + public Builder setExternalAccountCollection(Boolean externalAccountCollection) { + this.externalAccountCollection = externalAccountCollection; + 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 + * AccountSessionCreateParams.Components.InstantPayoutsPromotion.Features#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * AccountSessionCreateParams.Components.InstantPayoutsPromotion.Features#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 to allow creation of instant payouts. Defaults to {@code true} when {@code + * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code + * false}. + */ + public Builder setInstantPayouts(Boolean instantPayouts) { + this.instantPayouts = instantPayouts; + return this; + } + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class IssuingCard { diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java index d8f41461765..4470540bece 100644 --- a/src/main/java/com/stripe/param/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountUpdateParams.java @@ -591,7 +591,7 @@ public static class BusinessProfile { @SerializedName("mcc") Object mcc; - /** Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. */ + /** Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. */ @SerializedName("minority_owned_business_designation") List minorityOwnedBusinessDesignation; diff --git a/src/main/java/com/stripe/param/InvoiceCreateParams.java b/src/main/java/com/stripe/param/InvoiceCreateParams.java index d1365f399aa..d9e51691e0d 100644 --- a/src/main/java/com/stripe/param/InvoiceCreateParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreateParams.java @@ -32,7 +32,7 @@ public class InvoiceCreateParams extends ApiRequestParams { * Controls whether Stripe performs automatic * collection of the invoice. If {@code false}, the invoice's state doesn't automatically - * advance without an explicit action. + * advance without an explicit action. Defaults to false. */ @SerializedName("auto_advance") Boolean autoAdvance; @@ -42,8 +42,8 @@ public class InvoiceCreateParams extends ApiRequestParams { AutomaticTax automaticTax; /** - * The time when this invoice should be scheduled to finalize. The invoice will be finalized at - * this time if it is still in draft state. + * The time when this invoice should be scheduled to finalize (up to 5 years in the future). The + * invoice is finalized at this time if it's still in draft state. */ @SerializedName("automatically_finalizes_at") Long automaticallyFinalizesAt; @@ -482,7 +482,7 @@ public Builder setApplicationFeeAmount(Long applicationFeeAmount) { * Controls whether Stripe performs automatic * collection of the invoice. If {@code false}, the invoice's state doesn't automatically - * advance without an explicit action. + * advance without an explicit action. Defaults to false. */ public Builder setAutoAdvance(Boolean autoAdvance) { this.autoAdvance = autoAdvance; @@ -496,8 +496,8 @@ public Builder setAutomaticTax(InvoiceCreateParams.AutomaticTax automaticTax) { } /** - * The time when this invoice should be scheduled to finalize. The invoice will be finalized at - * this time if it is still in draft state. + * The time when this invoice should be scheduled to finalize (up to 5 years in the future). The + * invoice is finalized at this time if it's still in draft state. */ public Builder setAutomaticallyFinalizesAt(Long automaticallyFinalizesAt) { this.automaticallyFinalizesAt = automaticallyFinalizesAt; @@ -2290,7 +2290,7 @@ public static class Card { Map extraParams; /** - * Installment configuration for payments attempted on this invoice (Mexico Only). + * Installment configuration for payments attempted on this invoice. * *

For more information, see the installments integration guide. @@ -2368,7 +2368,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Installment configuration for payments attempted on this invoice (Mexico Only). + * Installment configuration for payments attempted on this invoice. * *

For more information, see the installments integration diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index dcaa0a2cd24..fea5699926e 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -3101,7 +3101,10 @@ public static class BillingMode { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ @SerializedName("type") Type type; @@ -3153,7 +3156,10 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ public Builder setType(InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Type type) { this.type = type; return this; @@ -3270,6 +3276,12 @@ public static class Phase { @SerializedName("discounts") Object discounts; + /** + * The number of intervals the phase should last. If set, {@code end_date} must not be set. + */ + @SerializedName("duration") + Duration duration; + /** * The date at which this phase of the subscription schedule ends. If set, {@code iterations} * must not be set. @@ -3301,7 +3313,8 @@ public static class Phase { * Integer representing the multiplier applied to the price interval. For example, {@code * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3} * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date} - * must not be set. + * must not be set. This parameter is deprecated and will be removed in a future version. Use + * {@code duration} instead. */ @SerializedName("iterations") Long iterations; @@ -3377,6 +3390,7 @@ private Phase( Object defaultTaxRates, Object description, Object discounts, + Duration duration, Object endDate, Map extraParams, InvoiceSettings invoiceSettings, @@ -3400,6 +3414,7 @@ private Phase( this.defaultTaxRates = defaultTaxRates; this.description = description; this.discounts = discounts; + this.duration = duration; this.endDate = endDate; this.extraParams = extraParams; this.invoiceSettings = invoiceSettings; @@ -3442,6 +3457,8 @@ public static class Builder { private Object discounts; + private Duration duration; + private Object endDate; private Map extraParams; @@ -3480,6 +3497,7 @@ public InvoiceCreatePreviewParams.ScheduleDetails.Phase build() { this.defaultTaxRates, this.description, this.discounts, + this.duration, this.endDate, this.extraParams, this.invoiceSettings, @@ -3740,6 +3758,15 @@ public Builder setDiscounts( return this; } + /** + * The number of intervals the phase should last. If set, {@code end_date} must not be set. + */ + public Builder setDuration( + InvoiceCreatePreviewParams.ScheduleDetails.Phase.Duration duration) { + this.duration = duration; + return this; + } + /** * The date at which this phase of the subscription schedule ends. If set, {@code * iterations} must not be set. @@ -3825,7 +3852,8 @@ public Builder addAllItem( * Integer representing the multiplier applied to the price interval. For example, {@code * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3} * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date} - * must not be set. + * must not be set. This parameter is deprecated and will be removed in a future version. + * Use {@code duration} instead. */ public Builder setIterations(Long iterations) { this.iterations = iterations; @@ -4879,6 +4907,120 @@ public Builder setPromotionCode(String promotionCode) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Duration { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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. Specifies phase duration. Either {@code day}, {@code week}, + * {@code month} or {@code year}. + */ + @SerializedName("interval") + Interval interval; + + /** The multiplier applied to the interval. */ + @SerializedName("interval_count") + Long intervalCount; + + private Duration(Map extraParams, Interval interval, Long intervalCount) { + this.extraParams = extraParams; + this.interval = interval; + this.intervalCount = intervalCount; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Interval interval; + + private Long intervalCount; + + /** Finalize and obtain parameter instance from this builder. */ + public InvoiceCreatePreviewParams.ScheduleDetails.Phase.Duration build() { + return new InvoiceCreatePreviewParams.ScheduleDetails.Phase.Duration( + this.extraParams, this.interval, this.intervalCount); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link InvoiceCreatePreviewParams.ScheduleDetails.Phase.Duration#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link InvoiceCreatePreviewParams.ScheduleDetails.Phase.Duration#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. Specifies phase duration. Either {@code day}, {@code week}, + * {@code month} or {@code year}. + */ + public Builder setInterval( + InvoiceCreatePreviewParams.ScheduleDetails.Phase.Duration.Interval interval) { + this.interval = interval; + return this; + } + + /** The multiplier applied to the interval. */ + public Builder setIntervalCount(Long intervalCount) { + this.intervalCount = intervalCount; + return this; + } + } + + public enum Interval implements ApiRequestParams.EnumParam { + @SerializedName("day") + DAY("day"), + + @SerializedName("month") + MONTH("month"), + + @SerializedName("week") + WEEK("week"), + + @SerializedName("year") + YEAR("year"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Interval(String value) { + this.value = value; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class InvoiceSettings { @@ -6682,7 +6824,10 @@ public static class BillingMode { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ @SerializedName("type") Type type; @@ -6734,7 +6879,10 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ public Builder setType( InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Type type) { this.type = type; diff --git a/src/main/java/com/stripe/param/InvoiceItemCreateParams.java b/src/main/java/com/stripe/param/InvoiceItemCreateParams.java index ac12b466952..0a8ba7a2474 100644 --- a/src/main/java/com/stripe/param/InvoiceItemCreateParams.java +++ b/src/main/java/com/stripe/param/InvoiceItemCreateParams.java @@ -72,10 +72,12 @@ public class InvoiceItemCreateParams extends ApiRequestParams { Map extraParams; /** - * The ID of an existing invoice to add this invoice item to. When left blank, the invoice item - * will be added to the next upcoming scheduled invoice. This is useful when adding invoice items - * in response to an invoice.created webhook. You can only add invoice items to draft invoices and - * there is a maximum of 250 items per invoice. + * The ID of an existing invoice to add this invoice item to. For subscription invoices, when left + * blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone + * invoices, the invoice item won't be automatically added unless you pass {@code + * pending_invoice_item_behavior: 'include'} when creating the invoice. This is useful when adding + * invoice items in response to an invoice.created webhook. You can only add invoice items to + * draft invoices and there is a maximum of 250 items per invoice. */ @SerializedName("invoice") String invoice; @@ -409,10 +411,12 @@ public Builder putAllExtraParam(Map map) { } /** - * The ID of an existing invoice to add this invoice item to. When left blank, the invoice item - * will be added to the next upcoming scheduled invoice. This is useful when adding invoice - * items in response to an invoice.created webhook. You can only add invoice items to draft - * invoices and there is a maximum of 250 items per invoice. + * The ID of an existing invoice to add this invoice item to. For subscription invoices, when + * left blank, the invoice item will be added to the next upcoming scheduled invoice. For + * standalone invoices, the invoice item won't be automatically added unless you pass {@code + * pending_invoice_item_behavior: 'include'} when creating the invoice. This is useful when + * adding invoice items in response to an invoice.created webhook. You can only add invoice + * items to draft invoices and there is a maximum of 250 items per invoice. */ public Builder setInvoice(String invoice) { this.invoice = invoice; diff --git a/src/main/java/com/stripe/param/InvoiceUpdateParams.java b/src/main/java/com/stripe/param/InvoiceUpdateParams.java index 88cfb356156..77b8e756e09 100644 --- a/src/main/java/com/stripe/param/InvoiceUpdateParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpdateParams.java @@ -41,9 +41,9 @@ public class InvoiceUpdateParams extends ApiRequestParams { AutomaticTax automaticTax; /** - * The time when this invoice should be scheduled to finalize. The invoice will be finalized at - * this time if it is still in draft state. To turn off automatic finalization, set {@code - * auto_advance} to false. + * The time when this invoice should be scheduled to finalize (up to 5 years in the future). The + * invoice is finalized at this time if it's still in draft state. To turn off automatic + * finalization, set {@code auto_advance} to false. */ @SerializedName("automatically_finalizes_at") Long automaticallyFinalizesAt; @@ -443,9 +443,9 @@ public Builder setAutomaticTax(InvoiceUpdateParams.AutomaticTax automaticTax) { } /** - * The time when this invoice should be scheduled to finalize. The invoice will be finalized at - * this time if it is still in draft state. To turn off automatic finalization, set {@code - * auto_advance} to false. + * The time when this invoice should be scheduled to finalize (up to 5 years in the future). The + * invoice is finalized at this time if it's still in draft state. To turn off automatic + * finalization, set {@code auto_advance} to false. */ public Builder setAutomaticallyFinalizesAt(Long automaticallyFinalizesAt) { this.automaticallyFinalizesAt = automaticallyFinalizesAt; @@ -2270,7 +2270,7 @@ public static class Card { Map extraParams; /** - * Installment configuration for payments attempted on this invoice (Mexico Only). + * Installment configuration for payments attempted on this invoice. * *

For more information, see the installments integration guide. @@ -2348,7 +2348,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Installment configuration for payments attempted on this invoice (Mexico Only). + * Installment configuration for payments attempted on this invoice. * *

For more information, see the installments integration diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 87bb21ce830..954da504fb7 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -10588,7 +10588,7 @@ public static class Card { Map extraParams; /** - * Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + * Installment configuration for payments attempted on this PaymentIntent. * *

For more information, see the installments integration guide. @@ -10887,7 +10887,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + * Installment configuration for payments attempted on this PaymentIntent. * *

For more information, see the installments integration guide. diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index b25ad00fc6d..bc9438d3f35 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -11098,7 +11098,7 @@ public static class Card { Map extraParams; /** - * Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + * Installment configuration for payments attempted on this PaymentIntent. * *

For more information, see the installments integration guide. @@ -11397,7 +11397,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + * Installment configuration for payments attempted on this PaymentIntent. * *

For more information, see the installments integration guide. diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 74059b92a1d..68580b2b0b3 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -10675,7 +10675,7 @@ public static class Card { Map extraParams; /** - * Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + * Installment configuration for payments attempted on this PaymentIntent. * *

For more information, see the installments integration guide. @@ -10984,7 +10984,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + * Installment configuration for payments attempted on this PaymentIntent. * *

For more information, see the installments integration guide. diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index 7d154a3be6c..9ada1856d78 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -3292,10 +3292,17 @@ public static class RenderingOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** ID of the invoice rendering template to use for this invoice. */ + @SerializedName("template") + String template; + private RenderingOptions( - ApiRequestParams.EnumParam amountTaxDisplay, Map extraParams) { + ApiRequestParams.EnumParam amountTaxDisplay, + Map extraParams, + String template) { this.amountTaxDisplay = amountTaxDisplay; this.extraParams = extraParams; + this.template = template; } public static Builder builder() { @@ -3307,10 +3314,12 @@ public static class Builder { private Map extraParams; + private String template; + /** Finalize and obtain parameter instance from this builder. */ public PaymentLinkCreateParams.InvoiceCreation.InvoiceData.RenderingOptions build() { return new PaymentLinkCreateParams.InvoiceCreation.InvoiceData.RenderingOptions( - this.amountTaxDisplay, this.extraParams); + this.amountTaxDisplay, this.extraParams, this.template); } /** @@ -3368,6 +3377,12 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** ID of the invoice rendering template to use for this invoice. */ + public Builder setTemplate(String template) { + this.template = template; + return this; + } } public enum AmountTaxDisplay implements ApiRequestParams.EnumParam { @@ -3408,13 +3423,19 @@ public static class LineItem { Map extraParams; /** - * Required. The ID of the Price or Price or Plan object. */ @SerializedName("price") String price; + /** + * Data used to generate a new Price object + * inline. One of {@code price} or {@code price_data} is required. + */ + @SerializedName("price_data") + PriceData priceData; + /** Required. The quantity of the line item being purchased. */ @SerializedName("quantity") Long quantity; @@ -3423,10 +3444,12 @@ private LineItem( AdjustableQuantity adjustableQuantity, Map extraParams, String price, + PriceData priceData, Long quantity) { this.adjustableQuantity = adjustableQuantity; this.extraParams = extraParams; this.price = price; + this.priceData = priceData; this.quantity = quantity; } @@ -3441,12 +3464,14 @@ public static class Builder { private String price; + private PriceData priceData; + private Long quantity; /** Finalize and obtain parameter instance from this builder. */ public PaymentLinkCreateParams.LineItem build() { return new PaymentLinkCreateParams.LineItem( - this.adjustableQuantity, this.extraParams, this.price, this.quantity); + this.adjustableQuantity, this.extraParams, this.price, this.priceData, this.quantity); } /** @@ -3486,8 +3511,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The ID of the Price or Price or Plan object. */ public Builder setPrice(String price) { @@ -3495,6 +3519,15 @@ public Builder setPrice(String price) { return this; } + /** + * Data used to generate a new Price object + * inline. One of {@code price} or {@code price_data} is required. + */ + public Builder setPriceData(PaymentLinkCreateParams.LineItem.PriceData priceData) { + this.priceData = priceData; + return this; + } + /** Required. The quantity of the line item being purchased. */ public Builder setQuantity(Long quantity) { this.quantity = quantity; @@ -3523,7 +3556,7 @@ public static class AdjustableQuantity { /** * The maximum quantity the customer can purchase. By default this value is 99. You can - * specify a value up to 999. + * specify a value up to 999999. */ @SerializedName("maximum") Long maximum; @@ -3601,7 +3634,7 @@ public Builder putAllExtraParam(Map map) { /** * The maximum quantity the customer can purchase. By default this value is 99. You can - * specify a value up to 999. + * specify a value up to 999999. */ public Builder setMaximum(Long maximum) { this.maximum = maximum; @@ -3618,6 +3651,568 @@ public Builder setMinimum(Long minimum) { } } } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class PriceData { + /** + * Required. Three-letter ISO currency code, in + * lowercase. Must be a supported currency. + */ + @SerializedName("currency") + String 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 ID of the Product that this Price will belong to. One of {@code product} + * or {@code product_data} is required. + */ + @SerializedName("product") + String product; + + /** + * Data used to generate a new Product + * object inline. One of {@code product} or {@code product_data} is required. + */ + @SerializedName("product_data") + ProductData productData; + + /** + * The recurring components of a price such as {@code interval} and {@code interval_count}. + */ + @SerializedName("recurring") + Recurring recurring; + + /** + * Only required if a default + * tax behavior was not provided in the Stripe Tax settings. Specifies whether the price + * is considered inclusive of taxes or exclusive of taxes. One of {@code inclusive}, {@code + * exclusive}, or {@code unspecified}. Once specified as either {@code inclusive} or {@code + * exclusive}, it cannot be changed. + */ + @SerializedName("tax_behavior") + TaxBehavior taxBehavior; + + /** + * A non-negative integer in cents (or local equivalent) representing how much to charge. One + * of {@code unit_amount} or {@code unit_amount_decimal} is required. + */ + @SerializedName("unit_amount") + Long unitAmount; + + /** + * Same as {@code unit_amount}, but accepts a decimal value in cents (or local equivalent) + * with at most 12 decimal places. Only one of {@code unit_amount} and {@code + * unit_amount_decimal} can be set. + */ + @SerializedName("unit_amount_decimal") + BigDecimal unitAmountDecimal; + + private PriceData( + String currency, + Map extraParams, + String product, + ProductData productData, + Recurring recurring, + TaxBehavior taxBehavior, + Long unitAmount, + BigDecimal unitAmountDecimal) { + this.currency = currency; + this.extraParams = extraParams; + this.product = product; + this.productData = productData; + this.recurring = recurring; + this.taxBehavior = taxBehavior; + this.unitAmount = unitAmount; + this.unitAmountDecimal = unitAmountDecimal; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String currency; + + private Map extraParams; + + private String product; + + private ProductData productData; + + private Recurring recurring; + + private TaxBehavior taxBehavior; + + private Long unitAmount; + + private BigDecimal unitAmountDecimal; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentLinkCreateParams.LineItem.PriceData build() { + return new PaymentLinkCreateParams.LineItem.PriceData( + this.currency, + this.extraParams, + this.product, + this.productData, + this.recurring, + this.taxBehavior, + this.unitAmount, + this.unitAmountDecimal); + } + + /** + * Required. Three-letter ISO currency code, in + * lowercase. Must be a supported currency. + */ + public Builder setCurrency(String 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 PaymentLinkCreateParams.LineItem.PriceData#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentLinkCreateParams.LineItem.PriceData#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 ID of the Product that this Price will belong to. One of {@code + * product} or {@code product_data} is required. + */ + public Builder setProduct(String product) { + this.product = product; + return this; + } + + /** + * Data used to generate a new Product + * object inline. One of {@code product} or {@code product_data} is required. + */ + public Builder setProductData( + PaymentLinkCreateParams.LineItem.PriceData.ProductData productData) { + this.productData = productData; + return this; + } + + /** + * The recurring components of a price such as {@code interval} and {@code interval_count}. + */ + public Builder setRecurring( + PaymentLinkCreateParams.LineItem.PriceData.Recurring recurring) { + this.recurring = recurring; + return this; + } + + /** + * Only required if a default + * tax behavior was not provided in the Stripe Tax settings. Specifies whether the price + * is considered inclusive of taxes or exclusive of taxes. One of {@code inclusive}, {@code + * exclusive}, or {@code unspecified}. Once specified as either {@code inclusive} or {@code + * exclusive}, it cannot be changed. + */ + public Builder setTaxBehavior( + PaymentLinkCreateParams.LineItem.PriceData.TaxBehavior taxBehavior) { + this.taxBehavior = taxBehavior; + return this; + } + + /** + * A non-negative integer in cents (or local equivalent) representing how much to charge. + * One of {@code unit_amount} or {@code unit_amount_decimal} is required. + */ + public Builder setUnitAmount(Long unitAmount) { + this.unitAmount = unitAmount; + return this; + } + + /** + * Same as {@code unit_amount}, but accepts a decimal value in cents (or local equivalent) + * with at most 12 decimal places. Only one of {@code unit_amount} and {@code + * unit_amount_decimal} can be set. + */ + public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { + this.unitAmountDecimal = unitAmountDecimal; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ProductData { + /** + * The product's description, meant to be displayable to the customer. Use this field to + * optionally store a long form explanation of the product being sold for your own rendering + * purposes. + */ + @SerializedName("description") + String description; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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 list of up to 8 URLs of images for this product, meant to be displayable to the + * customer. + */ + @SerializedName("images") + List images; + + /** + * Set of key-value pairs that you can + * attach to an object. This can be useful for storing additional information about the + * object in a structured format. Individual keys can be unset by posting an empty value to + * them. All keys can be unset by posting an empty value to {@code metadata}. + */ + @SerializedName("metadata") + Map metadata; + + /** + * Required. The product's name, meant to be displayable to the customer. + */ + @SerializedName("name") + String name; + + /** A tax code ID. */ + @SerializedName("tax_code") + String taxCode; + + private ProductData( + String description, + Map extraParams, + List images, + Map metadata, + String name, + String taxCode) { + this.description = description; + this.extraParams = extraParams; + this.images = images; + this.metadata = metadata; + this.name = name; + this.taxCode = taxCode; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String description; + + private Map extraParams; + + private List images; + + private Map metadata; + + private String name; + + private String taxCode; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentLinkCreateParams.LineItem.PriceData.ProductData build() { + return new PaymentLinkCreateParams.LineItem.PriceData.ProductData( + this.description, + this.extraParams, + this.images, + this.metadata, + this.name, + this.taxCode); + } + + /** + * The product's description, meant to be displayable to the customer. Use this field to + * optionally store a long form explanation of the product being sold for your own + * rendering purposes. + */ + public Builder setDescription(String description) { + this.description = description; + 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 PaymentLinkCreateParams.LineItem.PriceData.ProductData#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentLinkCreateParams.LineItem.PriceData.ProductData#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 `images` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * PaymentLinkCreateParams.LineItem.PriceData.ProductData#images} for the field + * documentation. + */ + public Builder addImage(String element) { + if (this.images == null) { + this.images = new ArrayList<>(); + } + this.images.add(element); + return this; + } + + /** + * Add all elements to `images` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PaymentLinkCreateParams.LineItem.PriceData.ProductData#images} for the field + * documentation. + */ + public Builder addAllImage(List elements) { + if (this.images == null) { + this.images = new ArrayList<>(); + } + this.images.addAll(elements); + 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 PaymentLinkCreateParams.LineItem.PriceData.ProductData#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 PaymentLinkCreateParams.LineItem.PriceData.ProductData#metadata} for + * the field documentation. + */ + public Builder putAllMetadata(Map map) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.putAll(map); + return this; + } + + /** + * Required. The product's name, meant to be displayable to the customer. + */ + public Builder setName(String name) { + this.name = name; + return this; + } + + /** A tax code ID. */ + public Builder setTaxCode(String taxCode) { + this.taxCode = taxCode; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Recurring { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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. Specifies billing frequency. Either {@code day}, {@code week}, + * {@code month} or {@code year}. + */ + @SerializedName("interval") + Interval interval; + + /** + * The number of intervals between subscription billings. For example, {@code + * interval=month} and {@code interval_count=3} bills every 3 months. Maximum of three years + * interval allowed (3 years, 36 months, or 156 weeks). + */ + @SerializedName("interval_count") + Long intervalCount; + + private Recurring(Map extraParams, Interval interval, Long intervalCount) { + this.extraParams = extraParams; + this.interval = interval; + this.intervalCount = intervalCount; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Interval interval; + + private Long intervalCount; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentLinkCreateParams.LineItem.PriceData.Recurring build() { + return new PaymentLinkCreateParams.LineItem.PriceData.Recurring( + this.extraParams, this.interval, this.intervalCount); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentLinkCreateParams.LineItem.PriceData.Recurring#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentLinkCreateParams.LineItem.PriceData.Recurring#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. Specifies billing frequency. Either {@code day}, {@code + * week}, {@code month} or {@code year}. + */ + public Builder setInterval( + PaymentLinkCreateParams.LineItem.PriceData.Recurring.Interval interval) { + this.interval = interval; + return this; + } + + /** + * The number of intervals between subscription billings. For example, {@code + * interval=month} and {@code interval_count=3} bills every 3 months. Maximum of three + * years interval allowed (3 years, 36 months, or 156 weeks). + */ + public Builder setIntervalCount(Long intervalCount) { + this.intervalCount = intervalCount; + return this; + } + } + + public enum Interval implements ApiRequestParams.EnumParam { + @SerializedName("day") + DAY("day"), + + @SerializedName("month") + MONTH("month"), + + @SerializedName("week") + WEEK("week"), + + @SerializedName("year") + YEAR("year"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Interval(String value) { + this.value = value; + } + } + } + + public enum TaxBehavior implements ApiRequestParams.EnumParam { + @SerializedName("exclusive") + EXCLUSIVE("exclusive"), + + @SerializedName("inclusive") + INCLUSIVE("inclusive"), + + @SerializedName("unspecified") + UNSPECIFIED("unspecified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + TaxBehavior(String value) { + this.value = value; + } + } + } } @Getter diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index 50c9aad7ba2..62934fddc16 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -3047,10 +3047,17 @@ public static class RenderingOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** ID of the invoice rendering template to use for this invoice. */ + @SerializedName("template") + Object template; + private RenderingOptions( - ApiRequestParams.EnumParam amountTaxDisplay, Map extraParams) { + ApiRequestParams.EnumParam amountTaxDisplay, + Map extraParams, + Object template) { this.amountTaxDisplay = amountTaxDisplay; this.extraParams = extraParams; + this.template = template; } public static Builder builder() { @@ -3062,10 +3069,12 @@ public static class Builder { private Map extraParams; + private Object template; + /** Finalize and obtain parameter instance from this builder. */ public PaymentLinkUpdateParams.InvoiceCreation.InvoiceData.RenderingOptions build() { return new PaymentLinkUpdateParams.InvoiceCreation.InvoiceData.RenderingOptions( - this.amountTaxDisplay, this.extraParams); + this.amountTaxDisplay, this.extraParams, this.template); } /** @@ -3123,6 +3132,18 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** ID of the invoice rendering template to use for this invoice. */ + public Builder setTemplate(String template) { + this.template = template; + return this; + } + + /** ID of the invoice rendering template to use for this invoice. */ + public Builder setTemplate(EmptyParam template) { + this.template = template; + return this; + } } public enum AmountTaxDisplay implements ApiRequestParams.EnumParam { @@ -3276,7 +3297,7 @@ public static class AdjustableQuantity { /** * The maximum quantity the customer can purchase. By default this value is 99. You can - * specify a value up to 999. + * specify a value up to 999999. */ @SerializedName("maximum") Long maximum; @@ -3354,7 +3375,7 @@ public Builder putAllExtraParam(Map map) { /** * The maximum quantity the customer can purchase. By default this value is 99. You can - * specify a value up to 999. + * specify a value up to 999999. */ public Builder setMaximum(Long maximum) { this.maximum = maximum; diff --git a/src/main/java/com/stripe/param/QuoteCreateParams.java b/src/main/java/com/stripe/param/QuoteCreateParams.java index 5585eb64daa..43b84d3ede8 100644 --- a/src/main/java/com/stripe/param/QuoteCreateParams.java +++ b/src/main/java/com/stripe/param/QuoteCreateParams.java @@ -2110,7 +2110,10 @@ public static class BillingMode { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ @SerializedName("type") Type type; @@ -2161,7 +2164,10 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ public Builder setType(QuoteCreateParams.SubscriptionData.BillingMode.Type type) { this.type = type; return this; diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index 4bdbff7e36f..5e49bee33b6 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -1940,7 +1940,10 @@ public static class BillingMode { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ @SerializedName("type") Type type; @@ -1989,7 +1992,10 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ public Builder setType(SubscriptionCreateParams.BillingMode.Type type) { this.type = type; return this; diff --git a/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java b/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java index 60c9900cfc6..034d162a1a9 100644 --- a/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionItemCreateParams.java @@ -74,7 +74,7 @@ public class SubscriptionItemCreateParams extends ApiRequestParams { * authentication due to SCA regulation and further user action is needed, this parameter does not * update the subscription and returns an error instead. This was the default behavior for API * versions prior to 2019-03-14. See the changelog to learn more. + * href="https://docs.stripe.com/changelog/2019-03-14">changelog to learn more. */ @SerializedName("payment_behavior") PaymentBehavior paymentBehavior; @@ -376,7 +376,7 @@ public Builder putAllMetadata(Map map) { * authentication due to SCA regulation and further user action is needed, this parameter does * not update the subscription and returns an error instead. This was the default behavior for * API versions prior to 2019-03-14. See the changelog to learn more. + * href="https://docs.stripe.com/changelog/2019-03-14">changelog to learn more. */ public Builder setPaymentBehavior( SubscriptionItemCreateParams.PaymentBehavior paymentBehavior) { diff --git a/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java index 8e9340c5b94..64f220b7a7d 100644 --- a/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java @@ -81,7 +81,7 @@ public class SubscriptionItemUpdateParams extends ApiRequestParams { * authentication due to SCA regulation and further user action is needed, this parameter does not * update the subscription and returns an error instead. This was the default behavior for API * versions prior to 2019-03-14. See the changelog to learn more. + * href="https://docs.stripe.com/changelog/2019-03-14">changelog to learn more. */ @SerializedName("payment_behavior") PaymentBehavior paymentBehavior; @@ -416,7 +416,7 @@ public Builder setOffSession(Boolean offSession) { * authentication due to SCA regulation and further user action is needed, this parameter does * not update the subscription and returns an error instead. This was the default behavior for * API versions prior to 2019-03-14. See the changelog to learn more. + * href="https://docs.stripe.com/changelog/2019-03-14">changelog to learn more. */ public Builder setPaymentBehavior( SubscriptionItemUpdateParams.PaymentBehavior paymentBehavior) { diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java index 1584ddc135f..0270cabd68c 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java @@ -350,7 +350,10 @@ public static class BillingMode { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ @SerializedName("type") Type type; @@ -400,7 +403,10 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ public Builder setType(SubscriptionScheduleCreateParams.BillingMode.Type type) { this.type = type; return this; @@ -1532,6 +1538,10 @@ public static class Phase { @SerializedName("discounts") Object discounts; + /** The number of intervals the phase should last. If set, {@code end_date} must not be set. */ + @SerializedName("duration") + Duration duration; + /** * The date at which this phase of the subscription schedule ends. If set, {@code iterations} * must not be set. @@ -1563,7 +1573,8 @@ public static class Phase { * Integer representing the multiplier applied to the price interval. For example, {@code * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3} * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date} must - * not be set. + * not be set. This parameter is deprecated and will be removed in a future version. Use {@code + * duration} instead. */ @SerializedName("iterations") Long iterations; @@ -1631,6 +1642,7 @@ private Phase( Object defaultTaxRates, Object description, Object discounts, + Duration duration, Long endDate, Map extraParams, InvoiceSettings invoiceSettings, @@ -1653,6 +1665,7 @@ private Phase( this.defaultTaxRates = defaultTaxRates; this.description = description; this.discounts = discounts; + this.duration = duration; this.endDate = endDate; this.extraParams = extraParams; this.invoiceSettings = invoiceSettings; @@ -1693,6 +1706,8 @@ public static class Builder { private Object discounts; + private Duration duration; + private Long endDate; private Map extraParams; @@ -1729,6 +1744,7 @@ public SubscriptionScheduleCreateParams.Phase build() { this.defaultTaxRates, this.description, this.discounts, + this.duration, this.endDate, this.extraParams, this.invoiceSettings, @@ -1977,6 +1993,14 @@ public Builder setDiscounts(List elem * Integer representing the multiplier applied to the price interval. For example, {@code * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3} * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date} - * must not be set. + * must not be set. This parameter is deprecated and will be removed in a future version. Use + * {@code duration} instead. */ public Builder setIterations(Long iterations) { this.iterations = iterations; @@ -3050,6 +3075,119 @@ public Builder setPromotionCode(String promotionCode) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Duration { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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. Specifies phase duration. Either {@code day}, {@code week}, + * {@code month} or {@code year}. + */ + @SerializedName("interval") + Interval interval; + + /** The multiplier applied to the interval. */ + @SerializedName("interval_count") + Long intervalCount; + + private Duration(Map extraParams, Interval interval, Long intervalCount) { + this.extraParams = extraParams; + this.interval = interval; + this.intervalCount = intervalCount; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Interval interval; + + private Long intervalCount; + + /** Finalize and obtain parameter instance from this builder. */ + public SubscriptionScheduleCreateParams.Phase.Duration build() { + return new SubscriptionScheduleCreateParams.Phase.Duration( + this.extraParams, this.interval, this.intervalCount); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SubscriptionScheduleCreateParams.Phase.Duration#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SubscriptionScheduleCreateParams.Phase.Duration#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. Specifies phase duration. Either {@code day}, {@code week}, + * {@code month} or {@code year}. + */ + public Builder setInterval( + SubscriptionScheduleCreateParams.Phase.Duration.Interval interval) { + this.interval = interval; + return this; + } + + /** The multiplier applied to the interval. */ + public Builder setIntervalCount(Long intervalCount) { + this.intervalCount = intervalCount; + return this; + } + } + + public enum Interval implements ApiRequestParams.EnumParam { + @SerializedName("day") + DAY("day"), + + @SerializedName("month") + MONTH("month"), + + @SerializedName("week") + WEEK("week"), + + @SerializedName("year") + YEAR("year"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Interval(String value) { + this.value = value; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class InvoiceSettings { diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java index bcdb6000191..20ef8fd960e 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java @@ -1410,6 +1410,10 @@ public static class Phase { @SerializedName("discounts") Object discounts; + /** The number of intervals the phase should last. If set, {@code end_date} must not be set. */ + @SerializedName("duration") + Duration duration; + /** * The date at which this phase of the subscription schedule ends. If set, {@code iterations} * must not be set. @@ -1441,7 +1445,8 @@ public static class Phase { * Integer representing the multiplier applied to the price interval. For example, {@code * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3} * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date} must - * not be set. + * not be set. This parameter is deprecated and will be removed in a future version. Use {@code + * duration} instead. */ @SerializedName("iterations") Long iterations; @@ -1516,6 +1521,7 @@ private Phase( Object defaultTaxRates, Object description, Object discounts, + Duration duration, Object endDate, Map extraParams, InvoiceSettings invoiceSettings, @@ -1539,6 +1545,7 @@ private Phase( this.defaultTaxRates = defaultTaxRates; this.description = description; this.discounts = discounts; + this.duration = duration; this.endDate = endDate; this.extraParams = extraParams; this.invoiceSettings = invoiceSettings; @@ -1580,6 +1587,8 @@ public static class Builder { private Object discounts; + private Duration duration; + private Object endDate; private Map extraParams; @@ -1618,6 +1627,7 @@ public SubscriptionScheduleUpdateParams.Phase build() { this.defaultTaxRates, this.description, this.discounts, + this.duration, this.endDate, this.extraParams, this.invoiceSettings, @@ -1887,6 +1897,14 @@ public Builder setDiscounts(List elem * Integer representing the multiplier applied to the price interval. For example, {@code * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3} * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date} - * must not be set. + * must not be set. This parameter is deprecated and will be removed in a future version. Use + * {@code duration} instead. */ public Builder setIterations(Long iterations) { this.iterations = iterations; @@ -3084,6 +3103,119 @@ public Builder setPromotionCode(EmptyParam promotionCode) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Duration { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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. Specifies phase duration. Either {@code day}, {@code week}, + * {@code month} or {@code year}. + */ + @SerializedName("interval") + Interval interval; + + /** The multiplier applied to the interval. */ + @SerializedName("interval_count") + Long intervalCount; + + private Duration(Map extraParams, Interval interval, Long intervalCount) { + this.extraParams = extraParams; + this.interval = interval; + this.intervalCount = intervalCount; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Interval interval; + + private Long intervalCount; + + /** Finalize and obtain parameter instance from this builder. */ + public SubscriptionScheduleUpdateParams.Phase.Duration build() { + return new SubscriptionScheduleUpdateParams.Phase.Duration( + this.extraParams, this.interval, this.intervalCount); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SubscriptionScheduleUpdateParams.Phase.Duration#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SubscriptionScheduleUpdateParams.Phase.Duration#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. Specifies phase duration. Either {@code day}, {@code week}, + * {@code month} or {@code year}. + */ + public Builder setInterval( + SubscriptionScheduleUpdateParams.Phase.Duration.Interval interval) { + this.interval = interval; + return this; + } + + /** The multiplier applied to the interval. */ + public Builder setIntervalCount(Long intervalCount) { + this.intervalCount = intervalCount; + return this; + } + } + + public enum Interval implements ApiRequestParams.EnumParam { + @SerializedName("day") + DAY("day"), + + @SerializedName("month") + MONTH("month"), + + @SerializedName("week") + WEEK("week"), + + @SerializedName("year") + YEAR("year"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Interval(String value) { + this.value = value; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class InvoiceSettings { diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index 68964532e5f..442aea6742a 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -215,7 +215,7 @@ public class SubscriptionUpdateParams extends ApiRequestParams { * authentication due to SCA regulation and further user action is needed, this parameter does not * update the subscription and returns an error instead. This was the default behavior for API * versions prior to 2019-03-14. See the changelog to learn more. + * href="https://docs.stripe.com/changelog/2019-03-14">changelog to learn more. */ @SerializedName("payment_behavior") PaymentBehavior paymentBehavior; @@ -980,7 +980,7 @@ public Builder setPauseCollection(EmptyParam pauseCollection) { * authentication due to SCA regulation and further user action is needed, this parameter does * not update the subscription and returns an error instead. This was the default behavior for * API versions prior to 2019-03-14. See the changelog to learn more. + * href="https://docs.stripe.com/changelog/2019-03-14">changelog to learn more. */ public Builder setPaymentBehavior(SubscriptionUpdateParams.PaymentBehavior paymentBehavior) { this.paymentBehavior = paymentBehavior; diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index 4d6560bb78f..9bec31706ad 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -621,7 +621,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam { VERSION_2025_05_28_BASIL("2025-05-28.basil"), @SerializedName("2025-06-30.basil") - VERSION_2025_06_30_BASIL("2025-06-30.basil"); + VERSION_2025_06_30_BASIL("2025-06-30.basil"), + + @SerializedName("2025-07-30.basil") + VERSION_2025_07_30_BASIL("2025-07-30.basil"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java index ec9e0201c2d..0ae18b100e3 100644 --- a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java +++ b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java @@ -302,7 +302,7 @@ public static class Amount { Monetary monetary; /** - * Required. Specify the type of this amount. We currently only support {@code + * Required. The type of this amount. We currently only support {@code * monetary} billing credits. */ @SerializedName("type") @@ -363,8 +363,8 @@ public Builder setMonetary(CreditGrantCreateParams.Amount.Monetary monetary) { } /** - * Required. Specify the type of this amount. We currently only support - * {@code monetary} billing credits. + * Required. The type of this amount. We currently only support {@code + * monetary} billing credits. */ public Builder setType(CreditGrantCreateParams.Amount.Type type) { this.type = type; diff --git a/src/main/java/com/stripe/param/billingportal/ConfigurationCreateParams.java b/src/main/java/com/stripe/param/billingportal/ConfigurationCreateParams.java index 10a08bdd270..ae5e12548f6 100644 --- a/src/main/java/com/stripe/param/billingportal/ConfigurationCreateParams.java +++ b/src/main/java/com/stripe/param/billingportal/ConfigurationCreateParams.java @@ -1399,6 +1399,10 @@ public Builder setScheduleAtPeriodEnd( @Getter @EqualsAndHashCode(callSuper = false) public static class Product { + /** Control whether the quantity of the product can be adjusted. */ + @SerializedName("adjustable_quantity") + AdjustableQuantity adjustableQuantity; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1420,7 +1424,12 @@ public static class Product { @SerializedName("product") String product; - private Product(Map extraParams, List prices, String product) { + private Product( + AdjustableQuantity adjustableQuantity, + Map extraParams, + List prices, + String product) { + this.adjustableQuantity = adjustableQuantity; this.extraParams = extraParams; this.prices = prices; this.product = product; @@ -1431,6 +1440,8 @@ public static Builder builder() { } public static class Builder { + private AdjustableQuantity adjustableQuantity; + private Map extraParams; private List prices; @@ -1440,7 +1451,15 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public ConfigurationCreateParams.Features.SubscriptionUpdate.Product build() { return new ConfigurationCreateParams.Features.SubscriptionUpdate.Product( - this.extraParams, this.prices, this.product); + this.adjustableQuantity, this.extraParams, this.prices, this.product); + } + + /** Control whether the quantity of the product can be adjusted. */ + public Builder setAdjustableQuantity( + ConfigurationCreateParams.Features.SubscriptionUpdate.Product.AdjustableQuantity + adjustableQuantity) { + this.adjustableQuantity = adjustableQuantity; + return this; } /** @@ -1507,6 +1526,115 @@ public Builder setProduct(String product) { return this; } } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdjustableQuantity { + /** + * Required. Set to true if the quantity can be adjusted to any + * non-negative integer. + */ + @SerializedName("enabled") + Boolean enabled; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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 maximum quantity that can be set for the product. */ + @SerializedName("maximum") + Long maximum; + + /** The minimum quantity that can be set for the product. */ + @SerializedName("minimum") + Long minimum; + + private AdjustableQuantity( + Boolean enabled, Map extraParams, Long maximum, Long minimum) { + this.enabled = enabled; + this.extraParams = extraParams; + this.maximum = maximum; + this.minimum = minimum; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean enabled; + + private Map extraParams; + + private Long maximum; + + private Long minimum; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationCreateParams.Features.SubscriptionUpdate.Product.AdjustableQuantity + build() { + return new ConfigurationCreateParams.Features.SubscriptionUpdate.Product + .AdjustableQuantity(this.enabled, this.extraParams, this.maximum, this.minimum); + } + + /** + * Required. Set to true if the quantity can be adjusted to any + * non-negative integer. + */ + public Builder setEnabled(Boolean enabled) { + this.enabled = enabled; + 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 + * ConfigurationCreateParams.Features.SubscriptionUpdate.Product.AdjustableQuantity#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * ConfigurationCreateParams.Features.SubscriptionUpdate.Product.AdjustableQuantity#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 maximum quantity that can be set for the product. */ + public Builder setMaximum(Long maximum) { + this.maximum = maximum; + return this; + } + + /** The minimum quantity that can be set for the product. */ + public Builder setMinimum(Long minimum) { + this.minimum = minimum; + return this; + } + } + } } @Getter diff --git a/src/main/java/com/stripe/param/billingportal/ConfigurationUpdateParams.java b/src/main/java/com/stripe/param/billingportal/ConfigurationUpdateParams.java index 763de3b9ead..110944aed30 100644 --- a/src/main/java/com/stripe/param/billingportal/ConfigurationUpdateParams.java +++ b/src/main/java/com/stripe/param/billingportal/ConfigurationUpdateParams.java @@ -1441,6 +1441,10 @@ public Builder setScheduleAtPeriodEnd( @Getter @EqualsAndHashCode(callSuper = false) public static class Product { + /** Control whether the quantity of the product can be adjusted. */ + @SerializedName("adjustable_quantity") + AdjustableQuantity adjustableQuantity; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1462,7 +1466,12 @@ public static class Product { @SerializedName("product") Object product; - private Product(Map extraParams, List prices, Object product) { + private Product( + AdjustableQuantity adjustableQuantity, + Map extraParams, + List prices, + Object product) { + this.adjustableQuantity = adjustableQuantity; this.extraParams = extraParams; this.prices = prices; this.product = product; @@ -1473,6 +1482,8 @@ public static Builder builder() { } public static class Builder { + private AdjustableQuantity adjustableQuantity; + private Map extraParams; private List prices; @@ -1482,7 +1493,15 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public ConfigurationUpdateParams.Features.SubscriptionUpdate.Product build() { return new ConfigurationUpdateParams.Features.SubscriptionUpdate.Product( - this.extraParams, this.prices, this.product); + this.adjustableQuantity, this.extraParams, this.prices, this.product); + } + + /** Control whether the quantity of the product can be adjusted. */ + public Builder setAdjustableQuantity( + ConfigurationUpdateParams.Features.SubscriptionUpdate.Product.AdjustableQuantity + adjustableQuantity) { + this.adjustableQuantity = adjustableQuantity; + return this; } /** @@ -1555,6 +1574,115 @@ public Builder setProduct(EmptyParam product) { return this; } } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdjustableQuantity { + /** + * Required. Set to true if the quantity can be adjusted to any + * non-negative integer. + */ + @SerializedName("enabled") + Boolean enabled; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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 maximum quantity that can be set for the product. */ + @SerializedName("maximum") + Long maximum; + + /** The minimum quantity that can be set for the product. */ + @SerializedName("minimum") + Long minimum; + + private AdjustableQuantity( + Boolean enabled, Map extraParams, Long maximum, Long minimum) { + this.enabled = enabled; + this.extraParams = extraParams; + this.maximum = maximum; + this.minimum = minimum; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean enabled; + + private Map extraParams; + + private Long maximum; + + private Long minimum; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationUpdateParams.Features.SubscriptionUpdate.Product.AdjustableQuantity + build() { + return new ConfigurationUpdateParams.Features.SubscriptionUpdate.Product + .AdjustableQuantity(this.enabled, this.extraParams, this.maximum, this.minimum); + } + + /** + * Required. Set to true if the quantity can be adjusted to any + * non-negative integer. + */ + public Builder setEnabled(Boolean enabled) { + this.enabled = enabled; + 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 + * ConfigurationUpdateParams.Features.SubscriptionUpdate.Product.AdjustableQuantity#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the + * original map. See {@link + * ConfigurationUpdateParams.Features.SubscriptionUpdate.Product.AdjustableQuantity#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 maximum quantity that can be set for the product. */ + public Builder setMaximum(Long maximum) { + this.maximum = maximum; + return this; + } + + /** The minimum quantity that can be set for the product. */ + public Builder setMinimum(Long minimum) { + this.minimum = minimum; + return this; + } + } + } } @Getter diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 520a23b6630..2edcefa567b 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -229,6 +229,15 @@ public class SessionCreateParams extends ApiRequestParams { @SerializedName("optional_items") List optionalItems; + /** + * Where the user is coming from. This informs the optimizations that are applied to the session. + * For example, a session originating from a mobile app may behave more like a native app, + * depending on the platform. This parameter is currently not allowed if {@code ui_mode} is {@code + * custom}. + */ + @SerializedName("origin_context") + OriginContext originContext; + /** * A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in {@code * payment} mode. @@ -410,6 +419,7 @@ private SessionCreateParams( Map metadata, Mode mode, List optionalItems, + OriginContext originContext, PaymentIntentData paymentIntentData, PaymentMethodCollection paymentMethodCollection, String paymentMethodConfiguration, @@ -455,6 +465,7 @@ private SessionCreateParams( this.metadata = metadata; this.mode = mode; this.optionalItems = optionalItems; + this.originContext = originContext; this.paymentIntentData = paymentIntentData; this.paymentMethodCollection = paymentMethodCollection; this.paymentMethodConfiguration = paymentMethodConfiguration; @@ -532,6 +543,8 @@ public static class Builder { private List optionalItems; + private OriginContext originContext; + private PaymentIntentData paymentIntentData; private PaymentMethodCollection paymentMethodCollection; @@ -600,6 +613,7 @@ public SessionCreateParams build() { this.metadata, this.mode, this.optionalItems, + this.originContext, this.paymentIntentData, this.paymentMethodCollection, this.paymentMethodConfiguration, @@ -987,6 +1001,17 @@ public Builder addAllOptionalItem(List element return this; } + /** + * Where the user is coming from. This informs the optimizations that are applied to the + * session. For example, a session originating from a mobile app may behave more like a native + * app, depending on the platform. This parameter is currently not allowed if {@code ui_mode} is + * {@code custom}. + */ + public Builder setOriginContext(SessionCreateParams.OriginContext originContext) { + this.originContext = originContext; + return this; + } + /** * A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in {@code * payment} mode. @@ -3916,10 +3941,17 @@ public static class RenderingOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** ID of the invoice rendering template to use for this invoice. */ + @SerializedName("template") + String template; + private RenderingOptions( - ApiRequestParams.EnumParam amountTaxDisplay, Map extraParams) { + ApiRequestParams.EnumParam amountTaxDisplay, + Map extraParams, + String template) { this.amountTaxDisplay = amountTaxDisplay; this.extraParams = extraParams; + this.template = template; } public static Builder builder() { @@ -3931,10 +3963,12 @@ public static class Builder { private Map extraParams; + private String template; + /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.InvoiceCreation.InvoiceData.RenderingOptions build() { return new SessionCreateParams.InvoiceCreation.InvoiceData.RenderingOptions( - this.amountTaxDisplay, this.extraParams); + this.amountTaxDisplay, this.extraParams, this.template); } /** @@ -3992,6 +4026,12 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** ID of the invoice rendering template to use for this invoice. */ + public Builder setTemplate(String template) { + this.template = template; + return this; + } } public enum AmountTaxDisplay implements ApiRequestParams.EnumParam { @@ -12550,9 +12590,35 @@ public static class Pix { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Pix(Long expiresAfterSeconds, Map extraParams) { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private Pix( + Long expiresAfterSeconds, + Map extraParams, + SetupFutureUsage setupFutureUsage) { this.expiresAfterSeconds = expiresAfterSeconds; this.extraParams = extraParams; + this.setupFutureUsage = setupFutureUsage; } public static Builder builder() { @@ -12564,10 +12630,12 @@ public static class Builder { private Map extraParams; + private SetupFutureUsage setupFutureUsage; + /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.Pix build() { return new SessionCreateParams.PaymentMethodOptions.Pix( - this.expiresAfterSeconds, this.extraParams); + this.expiresAfterSeconds, this.extraParams, this.setupFutureUsage); } /** @@ -12606,6 +12674,44 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + */ + public Builder setSetupFutureUsage( + SessionCreateParams.PaymentMethodOptions.Pix.SetupFutureUsage setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } } } @@ -16506,7 +16612,10 @@ public static class BillingMode { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ @SerializedName("type") Type type; @@ -16557,7 +16666,10 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. */ + /** + * Required. Controls the calculation and orchestration of prorations and + * invoices for subscriptions. + */ public Builder setType(SessionCreateParams.SubscriptionData.BillingMode.Type type) { this.type = type; return this; @@ -17501,6 +17613,21 @@ public enum Mode implements ApiRequestParams.EnumParam { } } + public enum OriginContext implements ApiRequestParams.EnumParam { + @SerializedName("mobile_app") + MOBILE_APP("mobile_app"), + + @SerializedName("web") + WEB("web"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + OriginContext(String value) { + this.value = value; + } + } + public enum PaymentMethodCollection implements ApiRequestParams.EnumParam { @SerializedName("always") ALWAYS("always"), @@ -17604,6 +17731,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("naver_pay") NAVER_PAY("naver_pay"), + @SerializedName("nz_bank_account") + NZ_BANK_ACCOUNT("nz_bank_account"), + @SerializedName("oxxo") OXXO("oxxo"), diff --git a/src/main/java/com/stripe/param/radar/ValueListCreateParams.java b/src/main/java/com/stripe/param/radar/ValueListCreateParams.java index 54153c0c659..2d5324dcde4 100644 --- a/src/main/java/com/stripe/param/radar/ValueListCreateParams.java +++ b/src/main/java/com/stripe/param/radar/ValueListCreateParams.java @@ -31,10 +31,10 @@ public class ValueListCreateParams extends ApiRequestParams { Map extraParams; /** - * Type of the items in the value list. One of {@code card_fingerprint}, {@code - * us_bank_account_fingerprint}, {@code sepa_debit_fingerprint}, {@code card_bin}, {@code email}, - * {@code ip_address}, {@code country}, {@code string}, {@code case_sensitive_string}, or {@code - * customer_id}. Use {@code string} if the item type is unknown or mixed. + * Type of the items in the value list. One of {@code card_fingerprint}, {@code card_bin}, {@code + * email}, {@code ip_address}, {@code country}, {@code string}, {@code case_sensitive_string}, + * {@code customer_id}, {@code sepa_debit_fingerprint}, or {@code us_bank_account_fingerprint}. + * Use {@code string} if the item type is unknown or mixed. */ @SerializedName("item_type") ItemType itemType; @@ -149,10 +149,10 @@ public Builder putAllExtraParam(Map map) { } /** - * Type of the items in the value list. One of {@code card_fingerprint}, {@code - * us_bank_account_fingerprint}, {@code sepa_debit_fingerprint}, {@code card_bin}, {@code - * email}, {@code ip_address}, {@code country}, {@code string}, {@code case_sensitive_string}, - * or {@code customer_id}. Use {@code string} if the item type is unknown or mixed. + * Type of the items in the value list. One of {@code card_fingerprint}, {@code card_bin}, + * {@code email}, {@code ip_address}, {@code country}, {@code string}, {@code + * case_sensitive_string}, {@code customer_id}, {@code sepa_debit_fingerprint}, or {@code + * us_bank_account_fingerprint}. Use {@code string} if the item type is unknown or mixed. */ public Builder setItemType(ValueListCreateParams.ItemType itemType) { this.itemType = itemType; diff --git a/src/main/java/com/stripe/param/reporting/ReportRunCreateParams.java b/src/main/java/com/stripe/param/reporting/ReportRunCreateParams.java index 0b8d7babe6e..ff66424a18b 100644 --- a/src/main/java/com/stripe/param/reporting/ReportRunCreateParams.java +++ b/src/main/java/com/stripe/param/reporting/ReportRunCreateParams.java @@ -775,6 +775,9 @@ public enum Timezone implements ApiRequestParams.EnumParam { @SerializedName("America/Costa_Rica") AMERICA_COSTA_RICA("America/Costa_Rica"), + @SerializedName("America/Coyhaique") + AMERICA_COYHAIQUE("America/Coyhaique"), + @SerializedName("America/Creston") AMERICA_CRESTON("America/Creston"), diff --git a/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java b/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java index a50243c371e..537c6f76860 100644 --- a/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java +++ b/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java @@ -1753,12 +1753,17 @@ public static class Ae { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Ae(Map extraParams, Type type) { + private Ae(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -1769,11 +1774,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Ae build() { - return new RegistrationCreateParams.CountryOptions.Ae(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Ae( + this.extraParams, this.standard, this.type); } /** @@ -1804,6 +1812,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Ae.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Ae.Type type) { this.type = type; @@ -1811,6 +1825,96 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Ae.Type type) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Ae.Standard build() { + return new RegistrationCreateParams.CountryOptions.Ae.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Ae.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Ae.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Ae.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("standard") STANDARD("standard"); @@ -1836,12 +1940,17 @@ public static class Al { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Al(Map extraParams, Type type) { + private Al(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -1852,11 +1961,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Al build() { - return new RegistrationCreateParams.CountryOptions.Al(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Al( + this.extraParams, this.standard, this.type); } /** @@ -1887,6 +1999,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Al.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Al.Type type) { this.type = type; @@ -1894,6 +2012,96 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Al.Type type) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Al.Standard build() { + return new RegistrationCreateParams.CountryOptions.Al.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Al.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Al.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Al.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("standard") STANDARD("standard"); @@ -2002,12 +2210,17 @@ public static class Ao { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Ao(Map extraParams, Type type) { + private Ao(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -2018,11 +2231,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Ao build() { - return new RegistrationCreateParams.CountryOptions.Ao(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Ao( + this.extraParams, this.standard, this.type); } /** @@ -2053,6 +2269,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Ao.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Ao.Type type) { this.type = type; @@ -2060,44 +2282,134 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Ao.Type type) { } } - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("standard") - STANDARD("standard"); + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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; + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; - Type(String value) { - this.value = value; + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class At { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - /** Options for the standard registration. */ - @SerializedName("standard") - Standard standard; + public static Builder builder() { + return new Builder(); + } - /** Required. Type of registration to be created in an EU country. */ - @SerializedName("type") - Type type; + public static class Builder { + private Map extraParams; - private At(Map extraParams, Standard standard, Type type) { - this.extraParams = extraParams; - this.standard = standard; - this.type = type; - } + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Ao.Standard build() { + return new RegistrationCreateParams.CountryOptions.Ao.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Ao.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Ao.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Ao.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class At { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + + /** Required. Type of registration to be created in an EU country. */ + @SerializedName("type") + Type type; + + private At(Map extraParams, Standard standard, Type type) { + this.extraParams = extraParams; + this.standard = standard; + this.type = type; + } public static Builder builder() { return new Builder(); @@ -2236,6 +2548,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -2285,12 +2600,17 @@ public static class Au { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Au(Map extraParams, Type type) { + private Au(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -2301,11 +2621,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Au build() { - return new RegistrationCreateParams.CountryOptions.Au(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Au( + this.extraParams, this.standard, this.type); } /** @@ -2336,6 +2659,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Au.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Au.Type type) { this.type = type; @@ -2343,86 +2672,93 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Au.Type type) { } } - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("standard") - STANDARD("standard"); + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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; + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; - Type(String value) { - this.value = value; + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Aw { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-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. Type of registration to be created in {@code country}. */ - @SerializedName("type") - Type type; - private Aw(Map extraParams, Type type) { - this.extraParams = extraParams; - this.type = type; - } + 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 PlaceOfSupplyScheme placeOfSupplyScheme; - private Type type; + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Au.Standard build() { + return new RegistrationCreateParams.CountryOptions.Au.Standard( + this.extraParams, this.placeOfSupplyScheme); + } - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Aw build() { - return new RegistrationCreateParams.CountryOptions.Aw(this.extraParams, 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 RegistrationCreateParams.CountryOptions.Au.Standard#extraParams} for + * the field 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 RegistrationCreateParams.CountryOptions.Aw#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 RegistrationCreateParams.CountryOptions.Au.Standard#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 RegistrationCreateParams.CountryOptions.Aw#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Au.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; } - this.extraParams.putAll(map); - return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Aw.Type type) { - this.type = type; - return this; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } @@ -2441,7 +2777,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Az { + public static class Aw { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2451,12 +2787,17 @@ public static class Az { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Az(Map extraParams, Type type) { + private Aw(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -2467,17 +2808,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Az build() { - return new RegistrationCreateParams.CountryOptions.Az(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Aw build() { + return new RegistrationCreateParams.CountryOptions.Aw( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Az#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Aw#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2491,7 +2835,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 RegistrationCreateParams.CountryOptions.Az#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Aw#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2502,176 +2846,106 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Az.Type type) { - this.type = type; - return this; - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("simplified") - SIMPLIFIED("simplified"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Ba { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-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. Type of registration to be created in {@code country}. */ - @SerializedName("type") - Type type; - - private Ba(Map extraParams, Type type) { - this.extraParams = extraParams; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Ba build() { - return new RegistrationCreateParams.CountryOptions.Ba(this.extraParams, 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 RegistrationCreateParams.CountryOptions.Ba#extraParams} for the field - * documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link RegistrationCreateParams.CountryOptions.Ba#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Aw.Standard standard) { + this.standard = standard; return this; } /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Ba.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.Aw.Type type) { this.type = type; return this; } } - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("standard") - STANDARD("standard"); + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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; + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; - Type(String value) { - this.value = value; + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** Required. Type of registration to be created in {@code country}. */ - @SerializedName("type") - Type type; - private Bb(Map extraParams, Type type) { - this.extraParams = extraParams; - this.type = type; - } + 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 PlaceOfSupplyScheme placeOfSupplyScheme; - private Type type; + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Aw.Standard build() { + return new RegistrationCreateParams.CountryOptions.Aw.Standard( + this.extraParams, this.placeOfSupplyScheme); + } - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Bb build() { - return new RegistrationCreateParams.CountryOptions.Bb(this.extraParams, 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 RegistrationCreateParams.CountryOptions.Aw.Standard#extraParams} for + * the field 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 RegistrationCreateParams.CountryOptions.Bb#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 RegistrationCreateParams.CountryOptions.Aw.Standard#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 RegistrationCreateParams.CountryOptions.Bb#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Aw.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; } - this.extraParams.putAll(map); - return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Bb.Type type) { - this.type = type; - return this; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } @@ -2690,7 +2964,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Bd { + public static class Az { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2704,7 +2978,7 @@ public static class Bd { @SerializedName("type") Type type; - private Bd(Map extraParams, Type type) { + private Az(Map extraParams, Type type) { this.extraParams = extraParams; this.type = type; } @@ -2719,14 +2993,14 @@ public static class Builder { private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Bd build() { - return new RegistrationCreateParams.CountryOptions.Bd(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Az build() { + return new RegistrationCreateParams.CountryOptions.Az(this.extraParams, 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 RegistrationCreateParams.CountryOptions.Bd#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Az#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2740,7 +3014,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 RegistrationCreateParams.CountryOptions.Bd#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Az#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2752,15 +3026,15 @@ public Builder putAllExtraParam(Map map) { } /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Bd.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.Az.Type type) { this.type = type; return this; } } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("standard") - STANDARD("standard"); + @SerializedName("simplified") + SIMPLIFIED("simplified"); @Getter(onMethod_ = {@Override}) private final String value; @@ -2773,7 +3047,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Be { + public static class Ba { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2787,11 +3061,11 @@ public static class Be { @SerializedName("standard") Standard standard; - /** Required. Type of registration to be created in an EU country. */ + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Be(Map extraParams, Standard standard, Type type) { + private Ba(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; this.standard = standard; this.type = type; @@ -2809,15 +3083,15 @@ public static class Builder { private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Be build() { - return new RegistrationCreateParams.CountryOptions.Be( + public RegistrationCreateParams.CountryOptions.Ba build() { + return new RegistrationCreateParams.CountryOptions.Ba( this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Be#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Ba#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2831,7 +3105,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 RegistrationCreateParams.CountryOptions.Be#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Ba#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2843,13 +3117,13 @@ public Builder putAllExtraParam(Map map) { } /** Options for the standard registration. */ - public Builder setStandard(RegistrationCreateParams.CountryOptions.Be.Standard standard) { + public Builder setStandard(RegistrationCreateParams.CountryOptions.Ba.Standard standard) { this.standard = standard; return this; } - /** Required. Type of registration to be created in an EU country. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Be.Type type) { + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Ba.Type type) { this.type = type; return this; } @@ -2868,9 +3142,7 @@ public static class Standard { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * Required. Place of supply scheme used in an EU standard registration. - */ + /** Place of supply scheme used in an standard registration. */ @SerializedName("place_of_supply_scheme") PlaceOfSupplyScheme placeOfSupplyScheme; @@ -2889,15 +3161,15 @@ public static class Builder { private PlaceOfSupplyScheme placeOfSupplyScheme; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Be.Standard build() { - return new RegistrationCreateParams.CountryOptions.Be.Standard( + public RegistrationCreateParams.CountryOptions.Ba.Standard build() { + return new RegistrationCreateParams.CountryOptions.Ba.Standard( this.extraParams, this.placeOfSupplyScheme); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link RegistrationCreateParams.CountryOptions.Be.Standard#extraParams} for + * map. See {@link RegistrationCreateParams.CountryOptions.Ba.Standard#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2911,7 +3183,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 RegistrationCreateParams.CountryOptions.Be.Standard#extraParams} for + * map. See {@link RegistrationCreateParams.CountryOptions.Ba.Standard#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -2922,11 +3194,9 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * Required. Place of supply scheme used in an EU standard registration. - */ + /** Place of supply scheme used in an standard registration. */ public Builder setPlaceOfSupplyScheme( - RegistrationCreateParams.CountryOptions.Be.Standard.PlaceOfSupplyScheme + RegistrationCreateParams.CountryOptions.Ba.Standard.PlaceOfSupplyScheme placeOfSupplyScheme) { this.placeOfSupplyScheme = placeOfSupplyScheme; return this; @@ -2934,8 +3204,8 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { - @SerializedName("small_seller") - SMALL_SELLER("small_seller"), + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), @SerializedName("standard") STANDARD("standard"); @@ -2950,17 +3220,8 @@ public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ioss") - IOSS("ioss"), - - @SerializedName("oss_non_union") - OSS_NON_UNION("oss_non_union"), - - @SerializedName("oss_union") - OSS_UNION("oss_union"), - - @SerializedName("standard") - STANDARD("standard"); + @SerializedName("standard") + STANDARD("standard"); @Getter(onMethod_ = {@Override}) private final String value; @@ -2973,7 +3234,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Bf { + public static class 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. @@ -2983,12 +3244,17 @@ public static class Bf { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Bf(Map extraParams, Type type) { + private Bb(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -2999,17 +3265,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Bf build() { - return new RegistrationCreateParams.CountryOptions.Bf(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Bb build() { + return new RegistrationCreateParams.CountryOptions.Bb( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Bf#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Bb#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3023,7 +3292,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 RegistrationCreateParams.CountryOptions.Bf#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Bb#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -3034,13 +3303,109 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Bb.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Bf.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.Bb.Type type) { this.type = type; return this; } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Bb.Standard build() { + return new RegistrationCreateParams.CountryOptions.Bb.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bb.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bb.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Bb.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("standard") STANDARD("standard"); @@ -3056,7 +3421,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Bg { + public static class Bd { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -3070,11 +3435,11 @@ public static class Bg { @SerializedName("standard") Standard standard; - /** Required. Type of registration to be created in an EU country. */ + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Bg(Map extraParams, Standard standard, Type type) { + private Bd(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; this.standard = standard; this.type = type; @@ -3092,15 +3457,15 @@ public static class Builder { private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Bg build() { - return new RegistrationCreateParams.CountryOptions.Bg( + public RegistrationCreateParams.CountryOptions.Bd build() { + return new RegistrationCreateParams.CountryOptions.Bd( this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Bg#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Bd#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3114,7 +3479,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 RegistrationCreateParams.CountryOptions.Bg#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Bd#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -3126,13 +3491,13 @@ public Builder putAllExtraParam(Map map) { } /** Options for the standard registration. */ - public Builder setStandard(RegistrationCreateParams.CountryOptions.Bg.Standard standard) { + public Builder setStandard(RegistrationCreateParams.CountryOptions.Bd.Standard standard) { this.standard = standard; return this; } - /** Required. Type of registration to be created in an EU country. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Bg.Type type) { + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Bd.Type type) { this.type = type; return this; } @@ -3151,9 +3516,7 @@ public static class Standard { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * Required. Place of supply scheme used in an EU standard registration. - */ + /** Place of supply scheme used in an standard registration. */ @SerializedName("place_of_supply_scheme") PlaceOfSupplyScheme placeOfSupplyScheme; @@ -3172,15 +3535,15 @@ public static class Builder { private PlaceOfSupplyScheme placeOfSupplyScheme; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Bg.Standard build() { - return new RegistrationCreateParams.CountryOptions.Bg.Standard( + public RegistrationCreateParams.CountryOptions.Bd.Standard build() { + return new RegistrationCreateParams.CountryOptions.Bd.Standard( this.extraParams, this.placeOfSupplyScheme); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link RegistrationCreateParams.CountryOptions.Bg.Standard#extraParams} for + * map. See {@link RegistrationCreateParams.CountryOptions.Bd.Standard#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3194,7 +3557,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 RegistrationCreateParams.CountryOptions.Bg.Standard#extraParams} for + * map. See {@link RegistrationCreateParams.CountryOptions.Bd.Standard#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -3205,11 +3568,9 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * Required. Place of supply scheme used in an EU standard registration. - */ + /** Place of supply scheme used in an standard registration. */ public Builder setPlaceOfSupplyScheme( - RegistrationCreateParams.CountryOptions.Bg.Standard.PlaceOfSupplyScheme + RegistrationCreateParams.CountryOptions.Bd.Standard.PlaceOfSupplyScheme placeOfSupplyScheme) { this.placeOfSupplyScheme = placeOfSupplyScheme; return this; @@ -3217,8 +3578,8 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { - @SerializedName("small_seller") - SMALL_SELLER("small_seller"), + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), @SerializedName("standard") STANDARD("standard"); @@ -3233,15 +3594,6 @@ public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ioss") - IOSS("ioss"), - - @SerializedName("oss_non_union") - OSS_NON_UNION("oss_non_union"), - - @SerializedName("oss_union") - OSS_UNION("oss_union"), - @SerializedName("standard") STANDARD("standard"); @@ -3256,7 +3608,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Bh { + public static class Be { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -3266,12 +3618,17 @@ public static class Bh { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Type of registration to be created in {@code country}. */ + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + + /** Required. Type of registration to be created in an EU country. */ @SerializedName("type") Type type; - private Bh(Map extraParams, Type type) { + private Be(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -3282,17 +3639,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Bh build() { - return new RegistrationCreateParams.CountryOptions.Bh(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Be build() { + return new RegistrationCreateParams.CountryOptions.Be( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Bh#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Be#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3306,7 +3666,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 RegistrationCreateParams.CountryOptions.Bh#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Be#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -3317,53 +3677,742 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Bh.Type type) { + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Be.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in an EU country. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Be.Type type) { this.type = type; return this; } } - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("standard") - STANDARD("standard"); + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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. Place of supply scheme used in an EU standard registration. + */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; - Type(String value) { - this.value = value; + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Bj { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-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. Type of registration to be created in {@code country}. */ - @SerializedName("type") - Type type; + public static class Builder { + private Map extraParams; - private Bj(Map extraParams, Type type) { - this.extraParams = extraParams; - this.type = type; - } + private PlaceOfSupplyScheme placeOfSupplyScheme; - public static Builder builder() { - return new Builder(); - } + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Be.Standard build() { + return new RegistrationCreateParams.CountryOptions.Be.Standard( + this.extraParams, this.placeOfSupplyScheme); + } - 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 RegistrationCreateParams.CountryOptions.Be.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Be.Standard#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. Place of supply scheme used in an EU standard registration. + */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Be.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("small_seller") + SMALL_SELLER("small_seller"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ioss") + IOSS("ioss"), + + @SerializedName("oss_non_union") + OSS_NON_UNION("oss_non_union"), + + @SerializedName("oss_union") + OSS_UNION("oss_union"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Bf { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Bf(Map extraParams, Standard standard, Type type) { + this.extraParams = extraParams; + this.standard = standard; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Standard standard; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Bf build() { + return new RegistrationCreateParams.CountryOptions.Bf( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Bf#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bf#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Bf.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Bf.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Bf.Standard build() { + return new RegistrationCreateParams.CountryOptions.Bf.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bf.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bf.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Bf.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Bg { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + + /** Required. Type of registration to be created in an EU country. */ + @SerializedName("type") + Type type; + + private Bg(Map extraParams, Standard standard, Type type) { + this.extraParams = extraParams; + this.standard = standard; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Standard standard; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Bg build() { + return new RegistrationCreateParams.CountryOptions.Bg( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Bg#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bg#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Bg.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in an EU country. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Bg.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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. Place of supply scheme used in an EU standard registration. + */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Bg.Standard build() { + return new RegistrationCreateParams.CountryOptions.Bg.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bg.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bg.Standard#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. Place of supply scheme used in an EU standard registration. + */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Bg.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("small_seller") + SMALL_SELLER("small_seller"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ioss") + IOSS("ioss"), + + @SerializedName("oss_non_union") + OSS_NON_UNION("oss_non_union"), + + @SerializedName("oss_union") + OSS_UNION("oss_union"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Bh { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Bh(Map extraParams, Standard standard, Type type) { + this.extraParams = extraParams; + this.standard = standard; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Standard standard; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Bh build() { + return new RegistrationCreateParams.CountryOptions.Bh( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Bh#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bh#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Bh.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Bh.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Bh.Standard build() { + return new RegistrationCreateParams.CountryOptions.Bh.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bh.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bh.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Bh.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Bj { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Bj(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; private Type type; @@ -3382,34 +4431,221 @@ 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 RegistrationCreateParams.CountryOptions.Bj#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. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Bj.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("simplified") + SIMPLIFIED("simplified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class 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; + + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Bs(Map extraParams, Standard standard, Type type) { + this.extraParams = extraParams; + this.standard = standard; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Standard standard; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Bs build() { + return new RegistrationCreateParams.CountryOptions.Bs( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Bs#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bs#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Bs.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Bs.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Bs.Standard build() { + return new RegistrationCreateParams.CountryOptions.Bs.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bs.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Bs.Standard#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 RegistrationCreateParams.CountryOptions.Bj#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Bs.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; } - this.extraParams.putAll(map); - return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Bj.Type type) { - this.type = type; - return this; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("simplified") - SIMPLIFIED("simplified"); + @SerializedName("standard") + STANDARD("standard"); @Getter(onMethod_ = {@Override}) private final String value; @@ -3422,7 +4658,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Bs { + public static class By { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -3436,7 +4672,7 @@ public static class Bs { @SerializedName("type") Type type; - private Bs(Map extraParams, Type type) { + private By(Map extraParams, Type type) { this.extraParams = extraParams; this.type = type; } @@ -3451,14 +4687,14 @@ public static class Builder { private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Bs build() { - return new RegistrationCreateParams.CountryOptions.Bs(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.By build() { + return new RegistrationCreateParams.CountryOptions.By(this.extraParams, 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 RegistrationCreateParams.CountryOptions.Bs#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.By#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3472,7 +4708,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 RegistrationCreateParams.CountryOptions.Bs#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.By#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -3484,15 +4720,15 @@ public Builder putAllExtraParam(Map map) { } /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Bs.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.By.Type type) { this.type = type; return this; } } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("standard") - STANDARD("standard"); + @SerializedName("simplified") + SIMPLIFIED("simplified"); @Getter(onMethod_ = {@Override}) private final String value; @@ -3505,7 +4741,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class By { + public static class 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. @@ -3515,12 +4751,17 @@ public static class By { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Type of registration to be created in {@code country}. */ + /** Options for the provincial tax registration. */ + @SerializedName("province_standard") + ProvinceStandard provinceStandard; + + /** Required. Type of registration to be created in Canada. */ @SerializedName("type") Type type; - private By(Map extraParams, Type type) { + private Ca(Map extraParams, ProvinceStandard provinceStandard, Type type) { this.extraParams = extraParams; + this.provinceStandard = provinceStandard; this.type = type; } @@ -3531,17 +4772,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private ProvinceStandard provinceStandard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.By build() { - return new RegistrationCreateParams.CountryOptions.By(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Ca build() { + return new RegistrationCreateParams.CountryOptions.Ca( + this.extraParams, this.provinceStandard, 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 RegistrationCreateParams.CountryOptions.By#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Ca#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3555,7 +4799,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 RegistrationCreateParams.CountryOptions.By#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Ca#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -3566,16 +4810,110 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.By.Type type) { + /** Options for the provincial tax registration. */ + public Builder setProvinceStandard( + RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard provinceStandard) { + this.provinceStandard = provinceStandard; + return this; + } + + /** Required. Type of registration to be created in Canada. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Ca.Type type) { this.type = type; return this; } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class ProvinceStandard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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 CA province code (ISO 3166-2). + */ + @SerializedName("province") + String province; + + private ProvinceStandard(Map extraParams, String province) { + this.extraParams = extraParams; + this.province = province; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String province; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard build() { + return new RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard( + this.extraParams, this.province); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard#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 CA province code (ISO 3166-2). + */ + public Builder setProvince(String province) { + this.province = province; + return this; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("province_standard") + PROVINCE_STANDARD("province_standard"), + @SerializedName("simplified") - SIMPLIFIED("simplified"); + SIMPLIFIED("simplified"), + + @SerializedName("standard") + STANDARD("standard"); @Getter(onMethod_ = {@Override}) private final String value; @@ -3588,7 +4926,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Ca { + public static class 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. @@ -3598,17 +4936,17 @@ public static class Ca { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Options for the provincial tax registration. */ - @SerializedName("province_standard") - ProvinceStandard provinceStandard; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; - /** Required. Type of registration to be created in Canada. */ + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Ca(Map extraParams, ProvinceStandard provinceStandard, Type type) { + private Cd(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; - this.provinceStandard = provinceStandard; + this.standard = standard; this.type = type; } @@ -3619,20 +4957,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private ProvinceStandard provinceStandard; + private Standard standard; private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Ca build() { - return new RegistrationCreateParams.CountryOptions.Ca( - this.extraParams, this.provinceStandard, this.type); + public RegistrationCreateParams.CountryOptions.Cd build() { + return new RegistrationCreateParams.CountryOptions.Cd( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Ca#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Cd#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3646,7 +4984,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 RegistrationCreateParams.CountryOptions.Ca#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Cd#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -3657,15 +4995,14 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Options for the provincial tax registration. */ - public Builder setProvinceStandard( - RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard provinceStandard) { - this.provinceStandard = provinceStandard; + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Cd.Standard standard) { + this.standard = standard; return this; } - /** Required. Type of registration to be created in Canada. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Ca.Type type) { + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Cd.Type type) { this.type = type; return this; } @@ -3673,7 +5010,7 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Ca.Type type) { @Getter @EqualsAndHashCode(callSuper = false) - public static class ProvinceStandard { + public static class Standard { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -3684,16 +5021,13 @@ public static class ProvinceStandard { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * Required. Two-letter CA province code (ISO 3166-2). - */ - @SerializedName("province") - String province; + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; - private ProvinceStandard(Map extraParams, String province) { + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { this.extraParams = extraParams; - this.province = province; + this.placeOfSupplyScheme = placeOfSupplyScheme; } public static Builder builder() { @@ -3703,20 +5037,19 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private String province; + private PlaceOfSupplyScheme placeOfSupplyScheme; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard build() { - return new RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard( - this.extraParams, this.province); + public RegistrationCreateParams.CountryOptions.Cd.Standard build() { + return new RegistrationCreateParams.CountryOptions.Cd.Standard( + this.extraParams, this.placeOfSupplyScheme); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard#extraParams} for the field - * documentation. + * map. See {@link RegistrationCreateParams.CountryOptions.Cd.Standard#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3729,9 +5062,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 - * RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard#extraParams} for the field - * documentation. + * map. See {@link RegistrationCreateParams.CountryOptions.Cd.Standard#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3741,24 +5073,32 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * Required. Two-letter CA province code (ISO 3166-2). - */ - public Builder setProvince(String province) { - this.province = province; - return this; + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Cd.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; } } } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("province_standard") - PROVINCE_STANDARD("province_standard"), - - @SerializedName("simplified") - SIMPLIFIED("simplified"), - @SerializedName("standard") STANDARD("standard"); @@ -3773,7 +5113,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Cd { + public static class Ch { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -3783,12 +5123,17 @@ public static class Cd { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Cd(Map extraParams, Type type) { + private Ch(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -3799,17 +5144,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Cd build() { - return new RegistrationCreateParams.CountryOptions.Cd(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Ch build() { + return new RegistrationCreateParams.CountryOptions.Ch( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Cd#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Ch#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3823,7 +5171,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 RegistrationCreateParams.CountryOptions.Cd#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Ch#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -3834,93 +5182,106 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Ch.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Cd.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.Ch.Type type) { this.type = type; return this; } } - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("standard") - STANDARD("standard"); + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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; + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; - Type(String value) { - this.value = value; + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Ch { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-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. Type of registration to be created in {@code country}. */ - @SerializedName("type") - Type type; - private Ch(Map extraParams, Type type) { - this.extraParams = extraParams; - this.type = type; - } + 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 PlaceOfSupplyScheme placeOfSupplyScheme; - private Type type; + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Ch.Standard build() { + return new RegistrationCreateParams.CountryOptions.Ch.Standard( + this.extraParams, this.placeOfSupplyScheme); + } - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Ch build() { - return new RegistrationCreateParams.CountryOptions.Ch(this.extraParams, 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 RegistrationCreateParams.CountryOptions.Ch.Standard#extraParams} for + * the field 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 RegistrationCreateParams.CountryOptions.Ch#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 RegistrationCreateParams.CountryOptions.Ch.Standard#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 RegistrationCreateParams.CountryOptions.Ch#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Ch.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; } - this.extraParams.putAll(map); - return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Ch.Type type) { - this.type = type; - return this; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } @@ -4515,6 +5876,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -4715,6 +6079,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -4915,6 +6282,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -5115,6 +6485,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -5398,6 +6771,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -5681,6 +7057,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -5730,12 +7109,17 @@ public static class Et { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Et(Map extraParams, Type type) { + private Et(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -5746,45 +7130,144 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Type type; + private Standard standard; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Et build() { + return new RegistrationCreateParams.CountryOptions.Et( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Et#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Et#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Et.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Et.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Et build() { - return new RegistrationCreateParams.CountryOptions.Et(this.extraParams, this.type); - } + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Et.Standard build() { + return new RegistrationCreateParams.CountryOptions.Et.Standard( + this.extraParams, this.placeOfSupplyScheme); + } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link RegistrationCreateParams.CountryOptions.Et#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 RegistrationCreateParams.CountryOptions.Et.Standard#extraParams} for + * the 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 RegistrationCreateParams.CountryOptions.Et#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 RegistrationCreateParams.CountryOptions.Et.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Et.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; } - this.extraParams.putAll(map); - return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Et.Type type) { - this.type = type; - return this; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } @@ -5964,6 +7447,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -6164,6 +7650,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -6213,12 +7702,17 @@ public static class Gb { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Gb(Map extraParams, Type type) { + private Gb(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -6229,11 +7723,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Gb build() { - return new RegistrationCreateParams.CountryOptions.Gb(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Gb( + this.extraParams, this.standard, this.type); } /** @@ -6264,6 +7761,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Gb.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Gb.Type type) { this.type = type; @@ -6271,6 +7774,96 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Gb.Type type) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Gb.Standard build() { + return new RegistrationCreateParams.CountryOptions.Gb.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Gb.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Gb.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Gb.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("standard") STANDARD("standard"); @@ -6379,12 +7972,17 @@ public static class Gn { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Gn(Map extraParams, Type type) { + private Gn(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -6395,45 +7993,144 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Gn build() { - return new RegistrationCreateParams.CountryOptions.Gn(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Gn( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Gn#extraParams} for the field + * 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 RegistrationCreateParams.CountryOptions.Gn#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 RegistrationCreateParams.CountryOptions.Gn#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Gn.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Gn.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Gn.Standard build() { + return new RegistrationCreateParams.CountryOptions.Gn.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Gn.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Gn.Standard#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 RegistrationCreateParams.CountryOptions.Gn#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Gn.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; } - this.extraParams.putAll(map); - return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Gn.Type type) { - this.type = type; - return this; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } @@ -6613,6 +8310,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -6813,6 +8513,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -7013,6 +8716,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -7296,6 +9002,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -7428,12 +9137,17 @@ public static class Is { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Is(Map extraParams, Type type) { + private Is(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -7444,11 +9158,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Is build() { - return new RegistrationCreateParams.CountryOptions.Is(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Is( + this.extraParams, this.standard, this.type); } /** @@ -7479,6 +9196,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Is.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Is.Type type) { this.type = type; @@ -7486,6 +9209,96 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Is.Type type) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Is.Standard build() { + return new RegistrationCreateParams.CountryOptions.Is.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Is.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Is.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Is.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("standard") STANDARD("standard"); @@ -7662,6 +9475,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -7711,12 +9527,17 @@ public static class Jp { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Jp(Map extraParams, Type type) { + private Jp(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -7727,11 +9548,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Jp build() { - return new RegistrationCreateParams.CountryOptions.Jp(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Jp( + this.extraParams, this.standard, this.type); } /** @@ -7762,6 +9586,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Jp.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Jp.Type type) { this.type = type; @@ -7769,6 +9599,96 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Jp.Type type) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Jp.Standard build() { + return new RegistrationCreateParams.CountryOptions.Jp.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Jp.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Jp.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Jp.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("standard") STANDARD("standard"); @@ -8443,6 +10363,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -8643,6 +10566,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -8843,6 +10769,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -8943,16 +10872,286 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Ma.Type type) { - this.type = type; - return this; + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Ma.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("simplified") + SIMPLIFIED("simplified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class 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; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Md(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Md build() { + return new RegistrationCreateParams.CountryOptions.Md(this.extraParams, 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 RegistrationCreateParams.CountryOptions.Md#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Md#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. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Md.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("simplified") + SIMPLIFIED("simplified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Me { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Me(Map extraParams, Standard standard, Type type) { + this.extraParams = extraParams; + this.standard = standard; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Standard standard; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Me build() { + return new RegistrationCreateParams.CountryOptions.Me( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Me#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Me#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Me.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Me.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Me.Standard build() { + return new RegistrationCreateParams.CountryOptions.Me.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Me.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Me.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Me.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("simplified") - SIMPLIFIED("simplified"); + @SerializedName("standard") + STANDARD("standard"); @Getter(onMethod_ = {@Override}) private final String value; @@ -8965,7 +11164,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Md { + public static class Mk { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -8975,12 +11174,17 @@ public static class Md { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Md(Map extraParams, Type type) { + private Mk(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -8991,17 +11195,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Md build() { - return new RegistrationCreateParams.CountryOptions.Md(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Mk build() { + return new RegistrationCreateParams.CountryOptions.Mk( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Md#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Mk#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -9015,7 +11222,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 RegistrationCreateParams.CountryOptions.Md#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Mk#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -9026,93 +11233,106 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Mk.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Md.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.Mk.Type type) { this.type = type; return this; } } - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("simplified") - SIMPLIFIED("simplified"); + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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; + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; - Type(String value) { - this.value = value; + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Me { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-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. Type of registration to be created in {@code country}. */ - @SerializedName("type") - Type type; - private Me(Map extraParams, Type type) { - this.extraParams = extraParams; - this.type = type; - } + 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 PlaceOfSupplyScheme placeOfSupplyScheme; - private Type type; + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Mk.Standard build() { + return new RegistrationCreateParams.CountryOptions.Mk.Standard( + this.extraParams, this.placeOfSupplyScheme); + } - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Me build() { - return new RegistrationCreateParams.CountryOptions.Me(this.extraParams, 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 RegistrationCreateParams.CountryOptions.Mk.Standard#extraParams} for + * the field 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 RegistrationCreateParams.CountryOptions.Me#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 RegistrationCreateParams.CountryOptions.Mk.Standard#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 RegistrationCreateParams.CountryOptions.Me#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Mk.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; } - this.extraParams.putAll(map); - return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Me.Type type) { - this.type = type; - return this; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } @@ -9131,7 +11351,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Mk { + public static class Mr { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -9141,12 +11361,17 @@ public static class Mk { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Mk(Map extraParams, Type type) { + private Mr(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -9157,17 +11382,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Mk build() { - return new RegistrationCreateParams.CountryOptions.Mk(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Mr build() { + return new RegistrationCreateParams.CountryOptions.Mr( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Mk#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Mr#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -9181,7 +11409,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 RegistrationCreateParams.CountryOptions.Mk#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Mr#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -9192,93 +11420,106 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Mr.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Mk.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.Mr.Type type) { this.type = type; return this; } } - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("standard") - STANDARD("standard"); + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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; + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; - Type(String value) { - this.value = value; + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; } - } - } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Mr { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-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. Type of registration to be created in {@code country}. */ - @SerializedName("type") - Type type; + public static class Builder { + private Map extraParams; - private Mr(Map extraParams, Type type) { - this.extraParams = extraParams; - this.type = type; - } + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Mr.Standard build() { + return new RegistrationCreateParams.CountryOptions.Mr.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Mr.Standard#extraParams} for + * the 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 RegistrationCreateParams.CountryOptions.Mr.Standard#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 Map extraParams; + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Mr.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } - private Type type; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Mr build() { - return new RegistrationCreateParams.CountryOptions.Mr(this.extraParams, this.type); - } + @SerializedName("standard") + STANDARD("standard"); - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link RegistrationCreateParams.CountryOptions.Mr#extraParams} for the 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 RegistrationCreateParams.CountryOptions.Mr#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + PlaceOfSupplyScheme(String value) { + this.value = value; } - this.extraParams.putAll(map); - return this; - } - - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Mr.Type type) { - this.type = type; - return this; } } @@ -9458,6 +11699,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -9732,8 +11976,211 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Ng.Type type) { } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("simplified") - SIMPLIFIED("simplified"); + @SerializedName("simplified") + SIMPLIFIED("simplified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class 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; + + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + + /** Required. Type of registration to be created in an EU country. */ + @SerializedName("type") + Type type; + + private Nl(Map extraParams, Standard standard, Type type) { + this.extraParams = extraParams; + this.standard = standard; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Standard standard; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Nl build() { + return new RegistrationCreateParams.CountryOptions.Nl( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Nl#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Nl#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Nl.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in an EU country. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Nl.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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. Place of supply scheme used in an EU standard registration. + */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Nl.Standard build() { + return new RegistrationCreateParams.CountryOptions.Nl.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Nl.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Nl.Standard#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. Place of supply scheme used in an EU standard registration. + */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Nl.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("small_seller") + SMALL_SELLER("small_seller"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ioss") + IOSS("ioss"), + + @SerializedName("oss_non_union") + OSS_NON_UNION("oss_non_union"), + + @SerializedName("oss_union") + OSS_UNION("oss_union"), + + @SerializedName("standard") + STANDARD("standard"); @Getter(onMethod_ = {@Override}) private final String value; @@ -9746,7 +12193,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Nl { + public static class No { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -9760,11 +12207,11 @@ public static class Nl { @SerializedName("standard") Standard standard; - /** Required. Type of registration to be created in an EU country. */ + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Nl(Map extraParams, Standard standard, Type type) { + private No(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; this.standard = standard; this.type = type; @@ -9782,15 +12229,15 @@ public static class Builder { private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Nl build() { - return new RegistrationCreateParams.CountryOptions.Nl( + public RegistrationCreateParams.CountryOptions.No build() { + return new RegistrationCreateParams.CountryOptions.No( this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Nl#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.No#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -9804,7 +12251,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 RegistrationCreateParams.CountryOptions.Nl#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.No#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -9816,13 +12263,13 @@ public Builder putAllExtraParam(Map map) { } /** Options for the standard registration. */ - public Builder setStandard(RegistrationCreateParams.CountryOptions.Nl.Standard standard) { + public Builder setStandard(RegistrationCreateParams.CountryOptions.No.Standard standard) { this.standard = standard; return this; } - /** Required. Type of registration to be created in an EU country. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Nl.Type type) { + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.No.Type type) { this.type = type; return this; } @@ -9841,9 +12288,7 @@ public static class Standard { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** - * Required. Place of supply scheme used in an EU standard registration. - */ + /** Place of supply scheme used in an standard registration. */ @SerializedName("place_of_supply_scheme") PlaceOfSupplyScheme placeOfSupplyScheme; @@ -9862,15 +12307,15 @@ public static class Builder { private PlaceOfSupplyScheme placeOfSupplyScheme; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Nl.Standard build() { - return new RegistrationCreateParams.CountryOptions.Nl.Standard( + public RegistrationCreateParams.CountryOptions.No.Standard build() { + return new RegistrationCreateParams.CountryOptions.No.Standard( this.extraParams, this.placeOfSupplyScheme); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link RegistrationCreateParams.CountryOptions.Nl.Standard#extraParams} for + * map. See {@link RegistrationCreateParams.CountryOptions.No.Standard#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -9884,7 +12329,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 RegistrationCreateParams.CountryOptions.Nl.Standard#extraParams} for + * map. See {@link RegistrationCreateParams.CountryOptions.No.Standard#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -9895,11 +12340,9 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * Required. Place of supply scheme used in an EU standard registration. - */ + /** Place of supply scheme used in an standard registration. */ public Builder setPlaceOfSupplyScheme( - RegistrationCreateParams.CountryOptions.Nl.Standard.PlaceOfSupplyScheme + RegistrationCreateParams.CountryOptions.No.Standard.PlaceOfSupplyScheme placeOfSupplyScheme) { this.placeOfSupplyScheme = placeOfSupplyScheme; return this; @@ -9907,8 +12350,8 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { - @SerializedName("small_seller") - SMALL_SELLER("small_seller"), + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), @SerializedName("standard") STANDARD("standard"); @@ -9923,15 +12366,6 @@ public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ioss") - IOSS("ioss"), - - @SerializedName("oss_non_union") - OSS_NON_UNION("oss_non_union"), - - @SerializedName("oss_union") - OSS_UNION("oss_union"), - @SerializedName("standard") STANDARD("standard"); @@ -9946,7 +12380,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class No { + public static class Np { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -9960,7 +12394,7 @@ public static class No { @SerializedName("type") Type type; - private No(Map extraParams, Type type) { + private Np(Map extraParams, Type type) { this.extraParams = extraParams; this.type = type; } @@ -9975,14 +12409,14 @@ public static class Builder { private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.No build() { - return new RegistrationCreateParams.CountryOptions.No(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Np build() { + return new RegistrationCreateParams.CountryOptions.Np(this.extraParams, 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 RegistrationCreateParams.CountryOptions.No#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Np#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -9996,7 +12430,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 RegistrationCreateParams.CountryOptions.No#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Np#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -10008,15 +12442,15 @@ public Builder putAllExtraParam(Map map) { } /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.No.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.Np.Type type) { this.type = type; return this; } } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("standard") - STANDARD("standard"); + @SerializedName("simplified") + SIMPLIFIED("simplified"); @Getter(onMethod_ = {@Override}) private final String value; @@ -10029,7 +12463,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Np { + public static class Nz { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -10039,12 +12473,17 @@ public static class Np { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Np(Map extraParams, Type type) { + private Nz(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -10055,17 +12494,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Np build() { - return new RegistrationCreateParams.CountryOptions.Np(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Nz build() { + return new RegistrationCreateParams.CountryOptions.Nz( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Np#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Nz#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -10079,7 +12521,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 RegistrationCreateParams.CountryOptions.Np#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Nz#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -10090,16 +12532,112 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Nz.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Np.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.Nz.Type type) { this.type = type; return this; } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Nz.Standard build() { + return new RegistrationCreateParams.CountryOptions.Nz.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Nz.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Nz.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Nz.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("simplified") - SIMPLIFIED("simplified"); + @SerializedName("standard") + STANDARD("standard"); @Getter(onMethod_ = {@Override}) private final String value; @@ -10112,7 +12650,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) - public static class Nz { + public static class 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. @@ -10122,12 +12660,17 @@ public static class Nz { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Nz(Map extraParams, Type type) { + private Om(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -10138,17 +12681,20 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Nz build() { - return new RegistrationCreateParams.CountryOptions.Nz(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Om build() { + return new RegistrationCreateParams.CountryOptions.Om( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Nz#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Om#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -10162,7 +12708,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 RegistrationCreateParams.CountryOptions.Nz#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Om#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -10173,93 +12719,106 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Om.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Nz.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.Om.Type type) { this.type = type; return this; } } - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("standard") - STANDARD("standard"); + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-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; + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; - Type(String value) { - this.value = value; + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; } - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class 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; - - /** Required. Type of registration to be created in {@code country}. */ - @SerializedName("type") - Type type; - private Om(Map extraParams, Type type) { - this.extraParams = extraParams; - this.type = type; - } + 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 PlaceOfSupplyScheme placeOfSupplyScheme; - private Type type; + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Om.Standard build() { + return new RegistrationCreateParams.CountryOptions.Om.Standard( + this.extraParams, this.placeOfSupplyScheme); + } - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Om build() { - return new RegistrationCreateParams.CountryOptions.Om(this.extraParams, 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 RegistrationCreateParams.CountryOptions.Om.Standard#extraParams} for + * the field 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 RegistrationCreateParams.CountryOptions.Om#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 RegistrationCreateParams.CountryOptions.Om.Standard#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 RegistrationCreateParams.CountryOptions.Om#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Om.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; } - this.extraParams.putAll(map); - return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Om.Type type) { - this.type = type; - return this; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } @@ -10605,6 +13164,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -10805,6 +13367,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -11005,6 +13570,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -11054,12 +13622,17 @@ public static class Rs { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Rs(Map extraParams, Type type) { + private Rs(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -11070,11 +13643,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Rs build() { - return new RegistrationCreateParams.CountryOptions.Rs(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Rs( + this.extraParams, this.standard, this.type); } /** @@ -11105,6 +13681,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Rs.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Rs.Type type) { this.type = type; @@ -11112,6 +13694,96 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Rs.Type type) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Rs.Standard build() { + return new RegistrationCreateParams.CountryOptions.Rs.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Rs.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Rs.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Rs.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("standard") STANDARD("standard"); @@ -11454,6 +14126,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -11503,12 +14178,17 @@ public static class Sg { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Sg(Map extraParams, Type type) { + private Sg(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -11519,45 +14199,144 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Type type; + private Standard standard; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Sg build() { + return new RegistrationCreateParams.CountryOptions.Sg( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Sg#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Sg#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Sg.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Sg.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Sg build() { - return new RegistrationCreateParams.CountryOptions.Sg(this.extraParams, this.type); - } + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Sg.Standard build() { + return new RegistrationCreateParams.CountryOptions.Sg.Standard( + this.extraParams, this.placeOfSupplyScheme); + } - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link RegistrationCreateParams.CountryOptions.Sg#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 RegistrationCreateParams.CountryOptions.Sg.Standard#extraParams} for + * the 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 RegistrationCreateParams.CountryOptions.Sg#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 RegistrationCreateParams.CountryOptions.Sg.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Sg.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; } - this.extraParams.putAll(map); - return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Sg.Type type) { - this.type = type; - return this; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } @@ -11737,6 +14516,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -11937,6 +14719,9 @@ public Builder setPlaceOfSupplyScheme( } public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + @SerializedName("small_seller") SMALL_SELLER("small_seller"), @@ -12069,12 +14854,17 @@ public static class Sr { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Sr(Map extraParams, Type type) { + private Sr(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -12085,11 +14875,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Sr build() { - return new RegistrationCreateParams.CountryOptions.Sr(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Sr( + this.extraParams, this.standard, this.type); } /** @@ -12120,6 +14913,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Sr.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Sr.Type type) { this.type = type; @@ -12127,6 +14926,96 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Sr.Type type) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Sr.Standard build() { + return new RegistrationCreateParams.CountryOptions.Sr.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Sr.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Sr.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Sr.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("standard") STANDARD("standard"); @@ -13208,12 +16097,17 @@ public static class Uy { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Uy(Map extraParams, Type type) { + private Uy(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -13224,45 +16118,144 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Uy build() { - return new RegistrationCreateParams.CountryOptions.Uy(this.extraParams, this.type); - } + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Uy build() { + return new RegistrationCreateParams.CountryOptions.Uy( + this.extraParams, this.standard, 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 RegistrationCreateParams.CountryOptions.Uy#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Uy#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Uy.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Uy.Type type) { + this.type = type; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Uy.Standard build() { + return new RegistrationCreateParams.CountryOptions.Uy.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Uy.Standard#extraParams} for + * the field 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 RegistrationCreateParams.CountryOptions.Uy#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 RegistrationCreateParams.CountryOptions.Uy.Standard#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 RegistrationCreateParams.CountryOptions.Uy#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Uy.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; } - this.extraParams.putAll(map); - return this; } - /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Uy.Type type) { - this.type = type; - return this; + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } } } @@ -13457,12 +16450,17 @@ public static class Za { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Za(Map extraParams, Type type) { + private Za(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -13473,11 +16471,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Za build() { - return new RegistrationCreateParams.CountryOptions.Za(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Za( + this.extraParams, this.standard, this.type); } /** @@ -13508,6 +16509,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Za.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Za.Type type) { this.type = type; @@ -13515,6 +16522,96 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Za.Type type) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Za.Standard build() { + return new RegistrationCreateParams.CountryOptions.Za.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Za.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Za.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Za.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("standard") STANDARD("standard"); @@ -13623,12 +16720,17 @@ public static class Zw { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Zw(Map extraParams, Type type) { + private Zw(Map extraParams, Standard standard, Type type) { this.extraParams = extraParams; + this.standard = standard; this.type = type; } @@ -13639,11 +16741,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Standard standard; + private Type type; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Zw build() { - return new RegistrationCreateParams.CountryOptions.Zw(this.extraParams, this.type); + return new RegistrationCreateParams.CountryOptions.Zw( + this.extraParams, this.standard, this.type); } /** @@ -13674,6 +16779,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Zw.Standard standard) { + this.standard = standard; + return this; + } + /** Required. Type of registration to be created in {@code country}. */ public Builder setType(RegistrationCreateParams.CountryOptions.Zw.Type type) { this.type = type; @@ -13681,6 +16792,96 @@ public Builder setType(RegistrationCreateParams.CountryOptions.Zw.Type type) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Standard { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Place of supply scheme used in an standard registration. */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Zw.Standard build() { + return new RegistrationCreateParams.CountryOptions.Zw.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Zw.Standard#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Zw.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Place of supply scheme used in an standard registration. */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Zw.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("inbound_goods") + INBOUND_GOODS("inbound_goods"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + public enum Type implements ApiRequestParams.EnumParam { @SerializedName("standard") STANDARD("standard"); diff --git a/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java b/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java index cd5ac064d68..4b96784ac91 100644 --- a/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java +++ b/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java @@ -565,10 +565,18 @@ public Builder setSplashscreen(EmptyParam splashscreen) { @Getter @EqualsAndHashCode(callSuper = false) public static class Tipping { + /** Tipping configuration for AED. */ + @SerializedName("aed") + Aed aed; + /** Tipping configuration for AUD. */ @SerializedName("aud") Aud aud; + /** Tipping configuration for BGN. */ + @SerializedName("bgn") + Bgn bgn; + /** Tipping configuration for CAD. */ @SerializedName("cad") Cad cad; @@ -606,6 +614,10 @@ public static class Tipping { @SerializedName("hkd") Hkd hkd; + /** Tipping configuration for HUF. */ + @SerializedName("huf") + Huf huf; + /** Tipping configuration for JPY. */ @SerializedName("jpy") Jpy jpy; @@ -626,6 +638,10 @@ public static class Tipping { @SerializedName("pln") Pln pln; + /** Tipping configuration for RON. */ + @SerializedName("ron") + Ron ron; + /** Tipping configuration for SEK. */ @SerializedName("sek") Sek sek; @@ -639,7 +655,9 @@ public static class Tipping { Usd usd; private Tipping( + Aed aed, Aud aud, + Bgn bgn, Cad cad, Chf chf, Czk czk, @@ -648,15 +666,19 @@ private Tipping( Map extraParams, Gbp gbp, Hkd hkd, + Huf huf, Jpy jpy, Myr myr, Nok nok, Nzd nzd, Pln pln, + Ron ron, Sek sek, Sgd sgd, Usd usd) { + this.aed = aed; this.aud = aud; + this.bgn = bgn; this.cad = cad; this.chf = chf; this.czk = czk; @@ -665,11 +687,13 @@ private Tipping( this.extraParams = extraParams; this.gbp = gbp; this.hkd = hkd; + this.huf = huf; this.jpy = jpy; this.myr = myr; this.nok = nok; this.nzd = nzd; this.pln = pln; + this.ron = ron; this.sek = sek; this.sgd = sgd; this.usd = usd; @@ -680,8 +704,12 @@ public static Builder builder() { } public static class Builder { + private Aed aed; + private Aud aud; + private Bgn bgn; + private Cad cad; private Chf chf; @@ -698,6 +726,8 @@ public static class Builder { private Hkd hkd; + private Huf huf; + private Jpy jpy; private Myr myr; @@ -708,6 +738,8 @@ public static class Builder { private Pln pln; + private Ron ron; + private Sek sek; private Sgd sgd; @@ -717,7 +749,9 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public ConfigurationCreateParams.Tipping build() { return new ConfigurationCreateParams.Tipping( + this.aed, this.aud, + this.bgn, this.cad, this.chf, this.czk, @@ -726,22 +760,36 @@ public ConfigurationCreateParams.Tipping build() { this.extraParams, this.gbp, this.hkd, + this.huf, this.jpy, this.myr, this.nok, this.nzd, this.pln, + this.ron, this.sek, this.sgd, this.usd); } + /** Tipping configuration for AED. */ + public Builder setAed(ConfigurationCreateParams.Tipping.Aed aed) { + this.aed = aed; + return this; + } + /** Tipping configuration for AUD. */ public Builder setAud(ConfigurationCreateParams.Tipping.Aud aud) { this.aud = aud; return this; } + /** Tipping configuration for BGN. */ + public Builder setBgn(ConfigurationCreateParams.Tipping.Bgn bgn) { + this.bgn = bgn; + return this; + } + /** Tipping configuration for CAD. */ public Builder setCad(ConfigurationCreateParams.Tipping.Cad cad) { this.cad = cad; @@ -810,6 +858,12 @@ public Builder setHkd(ConfigurationCreateParams.Tipping.Hkd hkd) { return this; } + /** Tipping configuration for HUF. */ + public Builder setHuf(ConfigurationCreateParams.Tipping.Huf huf) { + this.huf = huf; + return this; + } + /** Tipping configuration for JPY. */ public Builder setJpy(ConfigurationCreateParams.Tipping.Jpy jpy) { this.jpy = jpy; @@ -840,6 +894,12 @@ public Builder setPln(ConfigurationCreateParams.Tipping.Pln pln) { return this; } + /** Tipping configuration for RON. */ + public Builder setRon(ConfigurationCreateParams.Tipping.Ron ron) { + this.ron = ron; + return this; + } + /** Tipping configuration for SEK. */ public Builder setSek(ConfigurationCreateParams.Tipping.Sek sek) { this.sek = sek; @@ -861,7 +921,7 @@ public Builder setUsd(ConfigurationCreateParams.Tipping.Usd usd) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Aud { + public static class Aed { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -886,7 +946,7 @@ public static class Aud { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Aud( + private Aed( Map extraParams, List fixedAmounts, List percentages, @@ -911,15 +971,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Aud build() { - return new ConfigurationCreateParams.Tipping.Aud( + public ConfigurationCreateParams.Tipping.Aed build() { + return new ConfigurationCreateParams.Tipping.Aed( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Aud#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Aed#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -933,7 +993,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 ConfigurationCreateParams.Tipping.Aud#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Aed#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -947,7 +1007,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Aud#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Aed#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -960,7 +1020,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Aud#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Aed#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -973,7 +1033,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Aud#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Aed#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -986,7 +1046,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Aud#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Aed#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1009,7 +1069,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Cad { + public static class Aud { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1034,7 +1094,7 @@ public static class Cad { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Cad( + private Aud( Map extraParams, List fixedAmounts, List percentages, @@ -1059,15 +1119,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Cad build() { - return new ConfigurationCreateParams.Tipping.Cad( + public ConfigurationCreateParams.Tipping.Aud build() { + return new ConfigurationCreateParams.Tipping.Aud( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Cad#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Aud#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1081,7 +1141,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 ConfigurationCreateParams.Tipping.Cad#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Aud#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1095,7 +1155,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Cad#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Aud#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1108,7 +1168,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Cad#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Aud#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1121,7 +1181,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Cad#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Aud#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1134,7 +1194,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Cad#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Aud#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1157,7 +1217,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Chf { + public static class Bgn { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1182,7 +1242,7 @@ public static class Chf { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Chf( + private Bgn( Map extraParams, List fixedAmounts, List percentages, @@ -1207,15 +1267,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Chf build() { - return new ConfigurationCreateParams.Tipping.Chf( + public ConfigurationCreateParams.Tipping.Bgn build() { + return new ConfigurationCreateParams.Tipping.Bgn( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Chf#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Bgn#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1229,7 +1289,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 ConfigurationCreateParams.Tipping.Chf#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Bgn#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1243,7 +1303,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Chf#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Bgn#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1256,7 +1316,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Chf#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Bgn#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1269,7 +1329,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Chf#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Bgn#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1282,7 +1342,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Chf#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Bgn#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1305,7 +1365,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Czk { + public static class Cad { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1330,7 +1390,7 @@ public static class Czk { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Czk( + private Cad( Map extraParams, List fixedAmounts, List percentages, @@ -1355,15 +1415,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Czk build() { - return new ConfigurationCreateParams.Tipping.Czk( + public ConfigurationCreateParams.Tipping.Cad build() { + return new ConfigurationCreateParams.Tipping.Cad( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Czk#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Cad#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1377,7 +1437,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 ConfigurationCreateParams.Tipping.Czk#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Cad#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1391,7 +1451,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Czk#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Cad#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1404,7 +1464,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Czk#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Cad#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1417,7 +1477,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Czk#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Cad#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1430,7 +1490,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Czk#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Cad#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1453,7 +1513,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Dkk { + public static class Chf { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1478,7 +1538,7 @@ public static class Dkk { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Dkk( + private Chf( Map extraParams, List fixedAmounts, List percentages, @@ -1503,15 +1563,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Dkk build() { - return new ConfigurationCreateParams.Tipping.Dkk( + public ConfigurationCreateParams.Tipping.Chf build() { + return new ConfigurationCreateParams.Tipping.Chf( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Dkk#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Chf#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1525,7 +1585,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 ConfigurationCreateParams.Tipping.Dkk#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Chf#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1539,7 +1599,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Dkk#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Chf#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1552,7 +1612,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Dkk#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Chf#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1565,7 +1625,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Dkk#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Chf#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1578,7 +1638,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Dkk#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Chf#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1601,7 +1661,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Eur { + public static class Czk { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1626,7 +1686,7 @@ public static class Eur { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Eur( + private Czk( Map extraParams, List fixedAmounts, List percentages, @@ -1651,15 +1711,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Eur build() { - return new ConfigurationCreateParams.Tipping.Eur( + public ConfigurationCreateParams.Tipping.Czk build() { + return new ConfigurationCreateParams.Tipping.Czk( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Eur#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Czk#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1673,7 +1733,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 ConfigurationCreateParams.Tipping.Eur#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Czk#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1687,7 +1747,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Eur#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Czk#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1700,7 +1760,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Eur#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Czk#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1713,7 +1773,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Eur#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Czk#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1726,7 +1786,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Eur#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Czk#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1749,7 +1809,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Gbp { + public static class Dkk { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1774,7 +1834,7 @@ public static class Gbp { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Gbp( + private Dkk( Map extraParams, List fixedAmounts, List percentages, @@ -1799,15 +1859,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Gbp build() { - return new ConfigurationCreateParams.Tipping.Gbp( + public ConfigurationCreateParams.Tipping.Dkk build() { + return new ConfigurationCreateParams.Tipping.Dkk( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Gbp#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Dkk#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1821,7 +1881,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 ConfigurationCreateParams.Tipping.Gbp#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Dkk#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1835,7 +1895,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Gbp#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Dkk#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1848,7 +1908,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Gbp#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Dkk#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1861,7 +1921,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Gbp#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Dkk#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1874,7 +1934,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Gbp#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Dkk#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1897,7 +1957,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Hkd { + public static class Eur { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1922,7 +1982,7 @@ public static class Hkd { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Hkd( + private Eur( Map extraParams, List fixedAmounts, List percentages, @@ -1947,15 +2007,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Hkd build() { - return new ConfigurationCreateParams.Tipping.Hkd( + public ConfigurationCreateParams.Tipping.Eur build() { + return new ConfigurationCreateParams.Tipping.Eur( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Hkd#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Eur#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1969,7 +2029,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 ConfigurationCreateParams.Tipping.Hkd#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Eur#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1983,7 +2043,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Hkd#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Eur#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1996,7 +2056,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Hkd#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Eur#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2009,7 +2069,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Hkd#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Eur#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2022,7 +2082,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Hkd#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Eur#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -2045,7 +2105,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Jpy { + 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. @@ -2070,7 +2130,7 @@ public static class Jpy { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Jpy( + private Gbp( Map extraParams, List fixedAmounts, List percentages, @@ -2095,15 +2155,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Jpy build() { - return new ConfigurationCreateParams.Tipping.Jpy( + public ConfigurationCreateParams.Tipping.Gbp build() { + return new ConfigurationCreateParams.Tipping.Gbp( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Jpy#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Gbp#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2117,7 +2177,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 ConfigurationCreateParams.Tipping.Jpy#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Gbp#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2131,7 +2191,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Jpy#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Gbp#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2144,7 +2204,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Jpy#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Gbp#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2157,7 +2217,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Jpy#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Gbp#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2170,7 +2230,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Jpy#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Gbp#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -2193,7 +2253,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Myr { + public static class Hkd { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2218,7 +2278,7 @@ public static class Myr { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Myr( + private Hkd( Map extraParams, List fixedAmounts, List percentages, @@ -2243,15 +2303,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Myr build() { - return new ConfigurationCreateParams.Tipping.Myr( + public ConfigurationCreateParams.Tipping.Hkd build() { + return new ConfigurationCreateParams.Tipping.Hkd( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Myr#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Hkd#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2265,7 +2325,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 ConfigurationCreateParams.Tipping.Myr#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Hkd#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2279,7 +2339,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Myr#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Hkd#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2292,7 +2352,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Myr#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Hkd#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2305,7 +2365,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Myr#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Hkd#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2318,7 +2378,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Myr#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Hkd#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -2341,7 +2401,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Nok { + public static class Huf { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2366,7 +2426,7 @@ public static class Nok { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Nok( + private Huf( Map extraParams, List fixedAmounts, List percentages, @@ -2391,15 +2451,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Nok build() { - return new ConfigurationCreateParams.Tipping.Nok( + public ConfigurationCreateParams.Tipping.Huf build() { + return new ConfigurationCreateParams.Tipping.Huf( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Nok#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Huf#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2413,7 +2473,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 ConfigurationCreateParams.Tipping.Nok#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Huf#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2427,7 +2487,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Nok#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Huf#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2440,7 +2500,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Nok#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Huf#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2453,7 +2513,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Nok#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Huf#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2466,7 +2526,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Nok#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Huf#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -2489,7 +2549,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Nzd { + public static class Jpy { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2514,7 +2574,7 @@ public static class Nzd { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Nzd( + private Jpy( Map extraParams, List fixedAmounts, List percentages, @@ -2539,15 +2599,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Nzd build() { - return new ConfigurationCreateParams.Tipping.Nzd( + public ConfigurationCreateParams.Tipping.Jpy build() { + return new ConfigurationCreateParams.Tipping.Jpy( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Nzd#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Jpy#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2561,7 +2621,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 ConfigurationCreateParams.Tipping.Nzd#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Jpy#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2575,7 +2635,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Nzd#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Jpy#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2588,7 +2648,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Nzd#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Jpy#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2601,7 +2661,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Nzd#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Jpy#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2614,7 +2674,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Nzd#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Jpy#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -2637,7 +2697,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Pln { + public static class Myr { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2662,7 +2722,7 @@ public static class Pln { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Pln( + private Myr( Map extraParams, List fixedAmounts, List percentages, @@ -2687,15 +2747,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationCreateParams.Tipping.Pln build() { - return new ConfigurationCreateParams.Tipping.Pln( + public ConfigurationCreateParams.Tipping.Myr build() { + return new ConfigurationCreateParams.Tipping.Myr( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationCreateParams.Tipping.Pln#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Myr#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2709,7 +2769,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 ConfigurationCreateParams.Tipping.Pln#extraParams} for the field + * map. See {@link ConfigurationCreateParams.Tipping.Myr#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2723,7 +2783,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Pln#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Myr#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2736,7 +2796,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Pln#fixedAmounts} for the field documentation. + * ConfigurationCreateParams.Tipping.Myr#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2749,7 +2809,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Pln#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Myr#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2762,7 +2822,599 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationCreateParams.Tipping.Pln#percentages} for the field documentation. + * ConfigurationCreateParams.Tipping.Myr#percentages} for the field documentation. + */ + public Builder addAllPercentage(List elements) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.addAll(elements); + return this; + } + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + public Builder setSmartTipThreshold(Long smartTipThreshold) { + this.smartTipThreshold = smartTipThreshold; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Nok { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + + private Nok( + Map extraParams, + List fixedAmounts, + List percentages, + Long smartTipThreshold) { + this.extraParams = extraParams; + this.fixedAmounts = fixedAmounts; + this.percentages = percentages; + this.smartTipThreshold = smartTipThreshold; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List fixedAmounts; + + private List percentages; + + private Long smartTipThreshold; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationCreateParams.Tipping.Nok build() { + return new ConfigurationCreateParams.Tipping.Nok( + this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationCreateParams.Tipping.Nok#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationCreateParams.Tipping.Nok#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 `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Nok#fixedAmounts} for the field documentation. + */ + public Builder addFixedAmount(Long element) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.add(element); + return this; + } + + /** + * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Nok#fixedAmounts} for the field documentation. + */ + public Builder addAllFixedAmount(List elements) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.addAll(elements); + return this; + } + + /** + * Add an element to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Nok#percentages} for the field documentation. + */ + public Builder addPercentage(Long element) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.add(element); + return this; + } + + /** + * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Nok#percentages} for the field documentation. + */ + public Builder addAllPercentage(List elements) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.addAll(elements); + return this; + } + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + public Builder setSmartTipThreshold(Long smartTipThreshold) { + this.smartTipThreshold = smartTipThreshold; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Nzd { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + + private Nzd( + Map extraParams, + List fixedAmounts, + List percentages, + Long smartTipThreshold) { + this.extraParams = extraParams; + this.fixedAmounts = fixedAmounts; + this.percentages = percentages; + this.smartTipThreshold = smartTipThreshold; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List fixedAmounts; + + private List percentages; + + private Long smartTipThreshold; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationCreateParams.Tipping.Nzd build() { + return new ConfigurationCreateParams.Tipping.Nzd( + this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationCreateParams.Tipping.Nzd#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationCreateParams.Tipping.Nzd#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 `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Nzd#fixedAmounts} for the field documentation. + */ + public Builder addFixedAmount(Long element) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.add(element); + return this; + } + + /** + * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Nzd#fixedAmounts} for the field documentation. + */ + public Builder addAllFixedAmount(List elements) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.addAll(elements); + return this; + } + + /** + * Add an element to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Nzd#percentages} for the field documentation. + */ + public Builder addPercentage(Long element) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.add(element); + return this; + } + + /** + * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Nzd#percentages} for the field documentation. + */ + public Builder addAllPercentage(List elements) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.addAll(elements); + return this; + } + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + public Builder setSmartTipThreshold(Long smartTipThreshold) { + this.smartTipThreshold = smartTipThreshold; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Pln { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + + private Pln( + Map extraParams, + List fixedAmounts, + List percentages, + Long smartTipThreshold) { + this.extraParams = extraParams; + this.fixedAmounts = fixedAmounts; + this.percentages = percentages; + this.smartTipThreshold = smartTipThreshold; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List fixedAmounts; + + private List percentages; + + private Long smartTipThreshold; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationCreateParams.Tipping.Pln build() { + return new ConfigurationCreateParams.Tipping.Pln( + this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationCreateParams.Tipping.Pln#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationCreateParams.Tipping.Pln#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 `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Pln#fixedAmounts} for the field documentation. + */ + public Builder addFixedAmount(Long element) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.add(element); + return this; + } + + /** + * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Pln#fixedAmounts} for the field documentation. + */ + public Builder addAllFixedAmount(List elements) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.addAll(elements); + return this; + } + + /** + * Add an element to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Pln#percentages} for the field documentation. + */ + public Builder addPercentage(Long element) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.add(element); + return this; + } + + /** + * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Pln#percentages} for the field documentation. + */ + public Builder addAllPercentage(List elements) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.addAll(elements); + return this; + } + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + public Builder setSmartTipThreshold(Long smartTipThreshold) { + this.smartTipThreshold = smartTipThreshold; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Ron { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + + private Ron( + Map extraParams, + List fixedAmounts, + List percentages, + Long smartTipThreshold) { + this.extraParams = extraParams; + this.fixedAmounts = fixedAmounts; + this.percentages = percentages; + this.smartTipThreshold = smartTipThreshold; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List fixedAmounts; + + private List percentages; + + private Long smartTipThreshold; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationCreateParams.Tipping.Ron build() { + return new ConfigurationCreateParams.Tipping.Ron( + this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationCreateParams.Tipping.Ron#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationCreateParams.Tipping.Ron#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 `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Ron#fixedAmounts} for the field documentation. + */ + public Builder addFixedAmount(Long element) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.add(element); + return this; + } + + /** + * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Ron#fixedAmounts} for the field documentation. + */ + public Builder addAllFixedAmount(List elements) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.addAll(elements); + return this; + } + + /** + * Add an element to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Ron#percentages} for the field documentation. + */ + public Builder addPercentage(Long element) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.add(element); + return this; + } + + /** + * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Ron#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { diff --git a/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java b/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java index cd59f9782cb..19a7ca81a31 100644 --- a/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java +++ b/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java @@ -595,10 +595,18 @@ public Builder setSplashscreen(EmptyParam splashscreen) { @Getter @EqualsAndHashCode(callSuper = false) public static class Tipping { + /** Tipping configuration for AED. */ + @SerializedName("aed") + Aed aed; + /** Tipping configuration for AUD. */ @SerializedName("aud") Aud aud; + /** Tipping configuration for BGN. */ + @SerializedName("bgn") + Bgn bgn; + /** Tipping configuration for CAD. */ @SerializedName("cad") Cad cad; @@ -636,6 +644,10 @@ public static class Tipping { @SerializedName("hkd") Hkd hkd; + /** Tipping configuration for HUF. */ + @SerializedName("huf") + Huf huf; + /** Tipping configuration for JPY. */ @SerializedName("jpy") Jpy jpy; @@ -656,6 +668,10 @@ public static class Tipping { @SerializedName("pln") Pln pln; + /** Tipping configuration for RON. */ + @SerializedName("ron") + Ron ron; + /** Tipping configuration for SEK. */ @SerializedName("sek") Sek sek; @@ -669,7 +685,9 @@ public static class Tipping { Usd usd; private Tipping( + Aed aed, Aud aud, + Bgn bgn, Cad cad, Chf chf, Czk czk, @@ -678,15 +696,19 @@ private Tipping( Map extraParams, Gbp gbp, Hkd hkd, + Huf huf, Jpy jpy, Myr myr, Nok nok, Nzd nzd, Pln pln, + Ron ron, Sek sek, Sgd sgd, Usd usd) { + this.aed = aed; this.aud = aud; + this.bgn = bgn; this.cad = cad; this.chf = chf; this.czk = czk; @@ -695,11 +717,13 @@ private Tipping( this.extraParams = extraParams; this.gbp = gbp; this.hkd = hkd; + this.huf = huf; this.jpy = jpy; this.myr = myr; this.nok = nok; this.nzd = nzd; this.pln = pln; + this.ron = ron; this.sek = sek; this.sgd = sgd; this.usd = usd; @@ -710,8 +734,12 @@ public static Builder builder() { } public static class Builder { + private Aed aed; + private Aud aud; + private Bgn bgn; + private Cad cad; private Chf chf; @@ -728,6 +756,8 @@ public static class Builder { private Hkd hkd; + private Huf huf; + private Jpy jpy; private Myr myr; @@ -738,6 +768,8 @@ public static class Builder { private Pln pln; + private Ron ron; + private Sek sek; private Sgd sgd; @@ -747,7 +779,9 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public ConfigurationUpdateParams.Tipping build() { return new ConfigurationUpdateParams.Tipping( + this.aed, this.aud, + this.bgn, this.cad, this.chf, this.czk, @@ -756,22 +790,36 @@ public ConfigurationUpdateParams.Tipping build() { this.extraParams, this.gbp, this.hkd, + this.huf, this.jpy, this.myr, this.nok, this.nzd, this.pln, + this.ron, this.sek, this.sgd, this.usd); } + /** Tipping configuration for AED. */ + public Builder setAed(ConfigurationUpdateParams.Tipping.Aed aed) { + this.aed = aed; + return this; + } + /** Tipping configuration for AUD. */ public Builder setAud(ConfigurationUpdateParams.Tipping.Aud aud) { this.aud = aud; return this; } + /** Tipping configuration for BGN. */ + public Builder setBgn(ConfigurationUpdateParams.Tipping.Bgn bgn) { + this.bgn = bgn; + return this; + } + /** Tipping configuration for CAD. */ public Builder setCad(ConfigurationUpdateParams.Tipping.Cad cad) { this.cad = cad; @@ -840,6 +888,12 @@ public Builder setHkd(ConfigurationUpdateParams.Tipping.Hkd hkd) { return this; } + /** Tipping configuration for HUF. */ + public Builder setHuf(ConfigurationUpdateParams.Tipping.Huf huf) { + this.huf = huf; + return this; + } + /** Tipping configuration for JPY. */ public Builder setJpy(ConfigurationUpdateParams.Tipping.Jpy jpy) { this.jpy = jpy; @@ -870,6 +924,12 @@ public Builder setPln(ConfigurationUpdateParams.Tipping.Pln pln) { return this; } + /** Tipping configuration for RON. */ + public Builder setRon(ConfigurationUpdateParams.Tipping.Ron ron) { + this.ron = ron; + return this; + } + /** Tipping configuration for SEK. */ public Builder setSek(ConfigurationUpdateParams.Tipping.Sek sek) { this.sek = sek; @@ -891,7 +951,7 @@ public Builder setUsd(ConfigurationUpdateParams.Tipping.Usd usd) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Aud { + public static class Aed { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -916,7 +976,7 @@ public static class Aud { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Aud( + private Aed( Map extraParams, List fixedAmounts, List percentages, @@ -941,15 +1001,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Aud build() { - return new ConfigurationUpdateParams.Tipping.Aud( + public ConfigurationUpdateParams.Tipping.Aed build() { + return new ConfigurationUpdateParams.Tipping.Aed( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Aud#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Aed#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -963,7 +1023,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 ConfigurationUpdateParams.Tipping.Aud#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Aed#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -977,7 +1037,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Aud#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Aed#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -990,7 +1050,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Aud#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Aed#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1003,7 +1063,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Aud#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Aed#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1016,7 +1076,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Aud#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Aed#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1039,7 +1099,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Cad { + public static class Aud { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1064,7 +1124,7 @@ public static class Cad { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Cad( + private Aud( Map extraParams, List fixedAmounts, List percentages, @@ -1089,15 +1149,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Cad build() { - return new ConfigurationUpdateParams.Tipping.Cad( + public ConfigurationUpdateParams.Tipping.Aud build() { + return new ConfigurationUpdateParams.Tipping.Aud( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Cad#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Aud#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1111,7 +1171,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 ConfigurationUpdateParams.Tipping.Cad#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Aud#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1125,7 +1185,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Cad#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Aud#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1138,7 +1198,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Cad#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Aud#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1151,7 +1211,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Cad#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Aud#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1164,7 +1224,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Cad#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Aud#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1187,7 +1247,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Chf { + public static class Bgn { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1212,7 +1272,7 @@ public static class Chf { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Chf( + private Bgn( Map extraParams, List fixedAmounts, List percentages, @@ -1237,15 +1297,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Chf build() { - return new ConfigurationUpdateParams.Tipping.Chf( + public ConfigurationUpdateParams.Tipping.Bgn build() { + return new ConfigurationUpdateParams.Tipping.Bgn( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Chf#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Bgn#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1259,7 +1319,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 ConfigurationUpdateParams.Tipping.Chf#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Bgn#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1273,7 +1333,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Chf#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Bgn#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1286,7 +1346,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Chf#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Bgn#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1299,7 +1359,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Chf#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Bgn#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1312,7 +1372,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Chf#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Bgn#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1335,7 +1395,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Czk { + public static class Cad { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1360,7 +1420,7 @@ public static class Czk { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Czk( + private Cad( Map extraParams, List fixedAmounts, List percentages, @@ -1385,15 +1445,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Czk build() { - return new ConfigurationUpdateParams.Tipping.Czk( + public ConfigurationUpdateParams.Tipping.Cad build() { + return new ConfigurationUpdateParams.Tipping.Cad( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Czk#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Cad#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1407,7 +1467,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 ConfigurationUpdateParams.Tipping.Czk#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Cad#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1421,7 +1481,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Czk#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Cad#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1434,7 +1494,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Czk#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Cad#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1447,7 +1507,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Czk#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Cad#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1460,7 +1520,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Czk#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Cad#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1483,7 +1543,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Dkk { + public static class Chf { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1508,7 +1568,7 @@ public static class Dkk { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Dkk( + private Chf( Map extraParams, List fixedAmounts, List percentages, @@ -1533,15 +1593,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Dkk build() { - return new ConfigurationUpdateParams.Tipping.Dkk( + public ConfigurationUpdateParams.Tipping.Chf build() { + return new ConfigurationUpdateParams.Tipping.Chf( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Dkk#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Chf#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1555,7 +1615,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 ConfigurationUpdateParams.Tipping.Dkk#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Chf#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1569,7 +1629,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Dkk#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Chf#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1582,7 +1642,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Dkk#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Chf#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1595,7 +1655,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Dkk#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Chf#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1608,7 +1668,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Dkk#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Chf#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1631,7 +1691,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Eur { + public static class Czk { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1656,7 +1716,7 @@ public static class Eur { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Eur( + private Czk( Map extraParams, List fixedAmounts, List percentages, @@ -1681,15 +1741,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Eur build() { - return new ConfigurationUpdateParams.Tipping.Eur( + public ConfigurationUpdateParams.Tipping.Czk build() { + return new ConfigurationUpdateParams.Tipping.Czk( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Eur#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Czk#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1703,7 +1763,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 ConfigurationUpdateParams.Tipping.Eur#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Czk#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1717,7 +1777,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Eur#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Czk#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1730,7 +1790,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Eur#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Czk#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1743,7 +1803,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Eur#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Czk#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1756,7 +1816,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Eur#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Czk#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1779,7 +1839,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Gbp { + public static class Dkk { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1804,7 +1864,7 @@ public static class Gbp { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Gbp( + private Dkk( Map extraParams, List fixedAmounts, List percentages, @@ -1829,15 +1889,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Gbp build() { - return new ConfigurationUpdateParams.Tipping.Gbp( + public ConfigurationUpdateParams.Tipping.Dkk build() { + return new ConfigurationUpdateParams.Tipping.Dkk( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Gbp#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Dkk#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1851,7 +1911,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 ConfigurationUpdateParams.Tipping.Gbp#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Dkk#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -1865,7 +1925,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Gbp#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Dkk#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -1878,7 +1938,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Gbp#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Dkk#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -1891,7 +1951,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Gbp#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Dkk#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -1904,7 +1964,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Gbp#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Dkk#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -1927,7 +1987,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Hkd { + public static class Eur { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -1952,7 +2012,7 @@ public static class Hkd { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Hkd( + private Eur( Map extraParams, List fixedAmounts, List percentages, @@ -1977,15 +2037,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Hkd build() { - return new ConfigurationUpdateParams.Tipping.Hkd( + public ConfigurationUpdateParams.Tipping.Eur build() { + return new ConfigurationUpdateParams.Tipping.Eur( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Hkd#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Eur#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -1999,7 +2059,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 ConfigurationUpdateParams.Tipping.Hkd#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Eur#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2013,7 +2073,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Hkd#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Eur#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2026,7 +2086,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Hkd#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Eur#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2039,7 +2099,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Hkd#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Eur#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2052,7 +2112,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Hkd#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Eur#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -2075,7 +2135,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Jpy { + 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. @@ -2100,7 +2160,7 @@ public static class Jpy { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Jpy( + private Gbp( Map extraParams, List fixedAmounts, List percentages, @@ -2125,15 +2185,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Jpy build() { - return new ConfigurationUpdateParams.Tipping.Jpy( + public ConfigurationUpdateParams.Tipping.Gbp build() { + return new ConfigurationUpdateParams.Tipping.Gbp( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Jpy#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Gbp#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2147,7 +2207,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 ConfigurationUpdateParams.Tipping.Jpy#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Gbp#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2161,7 +2221,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Jpy#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Gbp#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2174,7 +2234,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Jpy#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Gbp#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2187,7 +2247,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Jpy#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Gbp#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2200,7 +2260,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Jpy#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Gbp#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -2223,7 +2283,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Myr { + public static class Hkd { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2248,7 +2308,7 @@ public static class Myr { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Myr( + private Hkd( Map extraParams, List fixedAmounts, List percentages, @@ -2273,15 +2333,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Myr build() { - return new ConfigurationUpdateParams.Tipping.Myr( + public ConfigurationUpdateParams.Tipping.Hkd build() { + return new ConfigurationUpdateParams.Tipping.Hkd( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Myr#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Hkd#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2295,7 +2355,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 ConfigurationUpdateParams.Tipping.Myr#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Hkd#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2309,7 +2369,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Myr#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Hkd#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2322,7 +2382,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Myr#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Hkd#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2335,7 +2395,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Myr#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Hkd#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2348,7 +2408,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Myr#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Hkd#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -2371,7 +2431,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Nok { + public static class Huf { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2396,7 +2456,7 @@ public static class Nok { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Nok( + private Huf( Map extraParams, List fixedAmounts, List percentages, @@ -2421,15 +2481,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Nok build() { - return new ConfigurationUpdateParams.Tipping.Nok( + public ConfigurationUpdateParams.Tipping.Huf build() { + return new ConfigurationUpdateParams.Tipping.Huf( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Nok#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Huf#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2443,7 +2503,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 ConfigurationUpdateParams.Tipping.Nok#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Huf#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2457,7 +2517,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Nok#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Huf#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2470,7 +2530,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Nok#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Huf#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2483,7 +2543,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Nok#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Huf#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2496,7 +2556,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Nok#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Huf#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -2519,7 +2579,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Nzd { + public static class Jpy { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2544,7 +2604,7 @@ public static class Nzd { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Nzd( + private Jpy( Map extraParams, List fixedAmounts, List percentages, @@ -2569,15 +2629,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Nzd build() { - return new ConfigurationUpdateParams.Tipping.Nzd( + public ConfigurationUpdateParams.Tipping.Jpy build() { + return new ConfigurationUpdateParams.Tipping.Jpy( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Nzd#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Jpy#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2591,7 +2651,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 ConfigurationUpdateParams.Tipping.Nzd#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Jpy#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2605,7 +2665,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Nzd#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Jpy#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2618,7 +2678,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Nzd#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Jpy#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2631,7 +2691,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Nzd#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Jpy#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2644,7 +2704,7 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Nzd#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Jpy#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { @@ -2667,7 +2727,7 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { @Getter @EqualsAndHashCode(callSuper = false) - public static class Pln { + public static class Myr { /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -2692,7 +2752,7 @@ public static class Pln { @SerializedName("smart_tip_threshold") Long smartTipThreshold; - private Pln( + private Myr( Map extraParams, List fixedAmounts, List percentages, @@ -2717,15 +2777,15 @@ public static class Builder { private Long smartTipThreshold; /** Finalize and obtain parameter instance from this builder. */ - public ConfigurationUpdateParams.Tipping.Pln build() { - return new ConfigurationUpdateParams.Tipping.Pln( + public ConfigurationUpdateParams.Tipping.Myr build() { + return new ConfigurationUpdateParams.Tipping.Myr( this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfigurationUpdateParams.Tipping.Pln#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Myr#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -2739,7 +2799,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 ConfigurationUpdateParams.Tipping.Pln#extraParams} for the field + * map. See {@link ConfigurationUpdateParams.Tipping.Myr#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -2753,7 +2813,7 @@ public Builder putAllExtraParam(Map map) { /** * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Pln#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Myr#fixedAmounts} for the field documentation. */ public Builder addFixedAmount(Long element) { if (this.fixedAmounts == null) { @@ -2766,7 +2826,7 @@ public Builder addFixedAmount(Long element) { /** * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Pln#fixedAmounts} for the field documentation. + * ConfigurationUpdateParams.Tipping.Myr#fixedAmounts} for the field documentation. */ public Builder addAllFixedAmount(List elements) { if (this.fixedAmounts == null) { @@ -2779,7 +2839,7 @@ public Builder addAllFixedAmount(List elements) { /** * Add an element to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Pln#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Myr#percentages} for the field documentation. */ public Builder addPercentage(Long element) { if (this.percentages == null) { @@ -2792,7 +2852,599 @@ public Builder addPercentage(Long element) { /** * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` * call, and subsequent calls adds additional elements to the original list. See {@link - * ConfigurationUpdateParams.Tipping.Pln#percentages} for the field documentation. + * ConfigurationUpdateParams.Tipping.Myr#percentages} for the field documentation. + */ + public Builder addAllPercentage(List elements) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.addAll(elements); + return this; + } + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + public Builder setSmartTipThreshold(Long smartTipThreshold) { + this.smartTipThreshold = smartTipThreshold; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Nok { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + + private Nok( + Map extraParams, + List fixedAmounts, + List percentages, + Long smartTipThreshold) { + this.extraParams = extraParams; + this.fixedAmounts = fixedAmounts; + this.percentages = percentages; + this.smartTipThreshold = smartTipThreshold; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List fixedAmounts; + + private List percentages; + + private Long smartTipThreshold; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationUpdateParams.Tipping.Nok build() { + return new ConfigurationUpdateParams.Tipping.Nok( + this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationUpdateParams.Tipping.Nok#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationUpdateParams.Tipping.Nok#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 `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Nok#fixedAmounts} for the field documentation. + */ + public Builder addFixedAmount(Long element) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.add(element); + return this; + } + + /** + * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Nok#fixedAmounts} for the field documentation. + */ + public Builder addAllFixedAmount(List elements) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.addAll(elements); + return this; + } + + /** + * Add an element to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Nok#percentages} for the field documentation. + */ + public Builder addPercentage(Long element) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.add(element); + return this; + } + + /** + * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Nok#percentages} for the field documentation. + */ + public Builder addAllPercentage(List elements) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.addAll(elements); + return this; + } + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + public Builder setSmartTipThreshold(Long smartTipThreshold) { + this.smartTipThreshold = smartTipThreshold; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Nzd { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + + private Nzd( + Map extraParams, + List fixedAmounts, + List percentages, + Long smartTipThreshold) { + this.extraParams = extraParams; + this.fixedAmounts = fixedAmounts; + this.percentages = percentages; + this.smartTipThreshold = smartTipThreshold; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List fixedAmounts; + + private List percentages; + + private Long smartTipThreshold; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationUpdateParams.Tipping.Nzd build() { + return new ConfigurationUpdateParams.Tipping.Nzd( + this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationUpdateParams.Tipping.Nzd#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationUpdateParams.Tipping.Nzd#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 `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Nzd#fixedAmounts} for the field documentation. + */ + public Builder addFixedAmount(Long element) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.add(element); + return this; + } + + /** + * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Nzd#fixedAmounts} for the field documentation. + */ + public Builder addAllFixedAmount(List elements) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.addAll(elements); + return this; + } + + /** + * Add an element to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Nzd#percentages} for the field documentation. + */ + public Builder addPercentage(Long element) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.add(element); + return this; + } + + /** + * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Nzd#percentages} for the field documentation. + */ + public Builder addAllPercentage(List elements) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.addAll(elements); + return this; + } + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + public Builder setSmartTipThreshold(Long smartTipThreshold) { + this.smartTipThreshold = smartTipThreshold; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Pln { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + + private Pln( + Map extraParams, + List fixedAmounts, + List percentages, + Long smartTipThreshold) { + this.extraParams = extraParams; + this.fixedAmounts = fixedAmounts; + this.percentages = percentages; + this.smartTipThreshold = smartTipThreshold; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List fixedAmounts; + + private List percentages; + + private Long smartTipThreshold; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationUpdateParams.Tipping.Pln build() { + return new ConfigurationUpdateParams.Tipping.Pln( + this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationUpdateParams.Tipping.Pln#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationUpdateParams.Tipping.Pln#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 `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Pln#fixedAmounts} for the field documentation. + */ + public Builder addFixedAmount(Long element) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.add(element); + return this; + } + + /** + * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Pln#fixedAmounts} for the field documentation. + */ + public Builder addAllFixedAmount(List elements) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.addAll(elements); + return this; + } + + /** + * Add an element to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Pln#percentages} for the field documentation. + */ + public Builder addPercentage(Long element) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.add(element); + return this; + } + + /** + * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Pln#percentages} for the field documentation. + */ + public Builder addAllPercentage(List elements) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.addAll(elements); + return this; + } + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + public Builder setSmartTipThreshold(Long smartTipThreshold) { + this.smartTipThreshold = smartTipThreshold; + return this; + } + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Ron { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + + private Ron( + Map extraParams, + List fixedAmounts, + List percentages, + Long smartTipThreshold) { + this.extraParams = extraParams; + this.fixedAmounts = fixedAmounts; + this.percentages = percentages; + this.smartTipThreshold = smartTipThreshold; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List fixedAmounts; + + private List percentages; + + private Long smartTipThreshold; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationUpdateParams.Tipping.Ron build() { + return new ConfigurationUpdateParams.Tipping.Ron( + this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationUpdateParams.Tipping.Ron#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfigurationUpdateParams.Tipping.Ron#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 `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Ron#fixedAmounts} for the field documentation. + */ + public Builder addFixedAmount(Long element) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.add(element); + return this; + } + + /** + * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Ron#fixedAmounts} for the field documentation. + */ + public Builder addAllFixedAmount(List elements) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.addAll(elements); + return this; + } + + /** + * Add an element to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Ron#percentages} for the field documentation. + */ + public Builder addPercentage(Long element) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.add(element); + return this; + } + + /** + * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Ron#percentages} for the field documentation. */ public Builder addAllPercentage(List elements) { if (this.percentages == null) { diff --git a/src/main/java/com/stripe/service/AccountService.java b/src/main/java/com/stripe/service/AccountService.java index 6f8a5cff199..fb2843acbde 100644 --- a/src/main/java/com/stripe/service/AccountService.java +++ b/src/main/java/com/stripe/service/AccountService.java @@ -29,10 +29,10 @@ public AccountService(StripeResponseGetter responseGetter) { * *

Test-mode accounts can be deleted at any time. * - *

Live-mode accounts where Stripe is responsible for negative account balances cannot be - * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for - * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + *

Live-mode accounts that have access to the standard dashboard and Stripe is responsible for + * negative account balances cannot be deleted, which includes Standard accounts. All other + * Live-mode accounts, can be deleted when all balances are zero. * *

If you want to delete your own account, use the account information tab in your account @@ -46,10 +46,10 @@ public Account delete(String account) throws StripeException { * *

Test-mode accounts can be deleted at any time. * - *

Live-mode accounts where Stripe is responsible for negative account balances cannot be - * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for - * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + *

Live-mode accounts that have access to the standard dashboard and Stripe is responsible for + * negative account balances cannot be deleted, which includes Standard accounts. All other + * Live-mode accounts, can be deleted when all balances are zero. * *

If you want to delete your own account, use the account information tab in your account diff --git a/src/main/java/com/stripe/service/PaymentIntentService.java b/src/main/java/com/stripe/service/PaymentIntentService.java index e451633b4d9..4c5f5ce95b4 100644 --- a/src/main/java/com/stripe/service/PaymentIntentService.java +++ b/src/main/java/com/stripe/service/PaymentIntentService.java @@ -426,25 +426,32 @@ public PaymentIntent capture( } /** * Confirm that your customer intends to pay with current or provided payment method. Upon - * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment - * method requires additional authentication steps, the PaymentIntent will transition to the - * {@code requires_action} status and suggest additional actions via {@code next_action}. If - * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or - * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the - * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if - * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code - * automatic}, payment may be attempted using our client SDKs - * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent + * will transition to the {@code requires_action} status and suggest additional actions via {@code + * next_action}. If payment fails, the PaymentIntent transitions to the {@code + * requires_payment_method} status or the {@code canceled} status if the confirmation limit is + * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status + * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}). + * + *

If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our + * client + * SDKs and the PaymentIntent’s client_secret. After * {@code next_action}s are handled by the client, no additional confirmation is required to - * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment - * attempts must be initiated using a secret key. If any actions are required for the payment, the - * PaymentIntent will return to the {@code requires_confirmation} state after those actions are - * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be - * confirmed. After this limit is reached, any further calls to this endpoint will transition the - * PaymentIntent to the {@code canceled} state. + * complete the payment. + * + *

If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated + * using a secret key. + * + *

If any actions are required for the payment, the PaymentIntent will return to the {@code + * requires_confirmation} state after those actions are completed. Your server needs to then + * explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + * + *

There is a variable upper limit on how many times a PaymentIntent can be confirmed. After + * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to + * the {@code canceled} state. */ public PaymentIntent confirm(String intent, PaymentIntentConfirmParams params) throws StripeException { @@ -452,75 +459,96 @@ public PaymentIntent confirm(String intent, PaymentIntentConfirmParams params) } /** * Confirm that your customer intends to pay with current or provided payment method. Upon - * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment - * method requires additional authentication steps, the PaymentIntent will transition to the - * {@code requires_action} status and suggest additional actions via {@code next_action}. If - * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or - * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the - * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if - * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code - * automatic}, payment may be attempted using our client SDKs - * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent + * will transition to the {@code requires_action} status and suggest additional actions via {@code + * next_action}. If payment fails, the PaymentIntent transitions to the {@code + * requires_payment_method} status or the {@code canceled} status if the confirmation limit is + * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status + * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}). + * + *

If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our + * client + * SDKs and the PaymentIntent’s client_secret. After * {@code next_action}s are handled by the client, no additional confirmation is required to - * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment - * attempts must be initiated using a secret key. If any actions are required for the payment, the - * PaymentIntent will return to the {@code requires_confirmation} state after those actions are - * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be - * confirmed. After this limit is reached, any further calls to this endpoint will transition the - * PaymentIntent to the {@code canceled} state. + * complete the payment. + * + *

If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated + * using a secret key. + * + *

If any actions are required for the payment, the PaymentIntent will return to the {@code + * requires_confirmation} state after those actions are completed. Your server needs to then + * explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + * + *

There is a variable upper limit on how many times a PaymentIntent can be confirmed. After + * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to + * the {@code canceled} state. */ public PaymentIntent confirm(String intent, RequestOptions options) throws StripeException { return confirm(intent, (PaymentIntentConfirmParams) null, options); } /** * Confirm that your customer intends to pay with current or provided payment method. Upon - * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment - * method requires additional authentication steps, the PaymentIntent will transition to the - * {@code requires_action} status and suggest additional actions via {@code next_action}. If - * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or - * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the - * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if - * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code - * automatic}, payment may be attempted using our client SDKs - * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent + * will transition to the {@code requires_action} status and suggest additional actions via {@code + * next_action}. If payment fails, the PaymentIntent transitions to the {@code + * requires_payment_method} status or the {@code canceled} status if the confirmation limit is + * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status + * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}). + * + *

If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our + * client + * SDKs and the PaymentIntent’s client_secret. After * {@code next_action}s are handled by the client, no additional confirmation is required to - * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment - * attempts must be initiated using a secret key. If any actions are required for the payment, the - * PaymentIntent will return to the {@code requires_confirmation} state after those actions are - * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be - * confirmed. After this limit is reached, any further calls to this endpoint will transition the - * PaymentIntent to the {@code canceled} state. + * complete the payment. + * + *

If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated + * using a secret key. + * + *

If any actions are required for the payment, the PaymentIntent will return to the {@code + * requires_confirmation} state after those actions are completed. Your server needs to then + * explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + * + *

There is a variable upper limit on how many times a PaymentIntent can be confirmed. After + * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to + * the {@code canceled} state. */ public PaymentIntent confirm(String intent) throws StripeException { return confirm(intent, (PaymentIntentConfirmParams) null, (RequestOptions) null); } /** * Confirm that your customer intends to pay with current or provided payment method. Upon - * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment - * method requires additional authentication steps, the PaymentIntent will transition to the - * {@code requires_action} status and suggest additional actions via {@code next_action}. If - * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or - * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the - * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if - * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code - * automatic}, payment may be attempted using our client SDKs - * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent + * will transition to the {@code requires_action} status and suggest additional actions via {@code + * next_action}. If payment fails, the PaymentIntent transitions to the {@code + * requires_payment_method} status or the {@code canceled} status if the confirmation limit is + * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status + * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}). + * + *

If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our + * client + * SDKs and the PaymentIntent’s client_secret. After * {@code next_action}s are handled by the client, no additional confirmation is required to - * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment - * attempts must be initiated using a secret key. If any actions are required for the payment, the - * PaymentIntent will return to the {@code requires_confirmation} state after those actions are - * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the - * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be - * confirmed. After this limit is reached, any further calls to this endpoint will transition the - * PaymentIntent to the {@code canceled} state. + * complete the payment. + * + *

If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated + * using a secret key. + * + *

If any actions are required for the payment, the PaymentIntent will return to the {@code + * requires_confirmation} state after those actions are completed. Your server needs to then + * explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + * + *

There is a variable upper limit on how many times a PaymentIntent can be confirmed. After + * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to + * the {@code canceled} state. */ public PaymentIntent confirm( String intent, PaymentIntentConfirmParams params, RequestOptions options) diff --git a/src/main/java/com/stripe/service/PaymentMethodService.java b/src/main/java/com/stripe/service/PaymentMethodService.java index 6d24a9a8efc..d8cb6adba68 100644 --- a/src/main/java/com/stripe/service/PaymentMethodService.java +++ b/src/main/java/com/stripe/service/PaymentMethodService.java @@ -183,20 +183,28 @@ public PaymentMethod retrieve( options); return this.request(request, PaymentMethod.class); } - /** Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. */ + /** + * Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. + */ public PaymentMethod update(String paymentMethod, PaymentMethodUpdateParams params) throws StripeException { return update(paymentMethod, params, (RequestOptions) null); } - /** Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. */ + /** + * Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. + */ public PaymentMethod update(String paymentMethod, RequestOptions options) throws StripeException { return update(paymentMethod, (PaymentMethodUpdateParams) null, options); } - /** Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. */ + /** + * Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. + */ public PaymentMethod update(String paymentMethod) throws StripeException { return update(paymentMethod, (PaymentMethodUpdateParams) null, (RequestOptions) null); } - /** Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. */ + /** + * Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. + */ public PaymentMethod update( String paymentMethod, PaymentMethodUpdateParams params, RequestOptions options) throws StripeException {