Package com.adyen.model.balanceplatform
Class UpdateSweepConfigurationV2
- java.lang.Object
-
- com.adyen.model.balanceplatform.UpdateSweepConfigurationV2
-
public class UpdateSweepConfigurationV2 extends Object
UpdateSweepConfigurationV2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateSweepConfigurationV2.CategoryEnumThe type of transfer that results from the sweep.static classUpdateSweepConfigurationV2.PrioritiesEnumGets or Sets prioritiesstatic classUpdateSweepConfigurationV2.ReasonEnumThe reason for disabling the sweep.static classUpdateSweepConfigurationV2.StatusEnumThe status of the sweep.static classUpdateSweepConfigurationV2.TypeEnumThe direction of sweep, whether pushing out or pulling in funds to the balance account.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CATEGORYstatic StringJSON_PROPERTY_COUNTERPARTYstatic StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_PRIORITIESstatic StringJSON_PROPERTY_REASONstatic StringJSON_PROPERTY_REASON_DETAILstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_REFERENCE_FOR_BENEFICIARYstatic StringJSON_PROPERTY_SCHEDULEstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_SWEEP_AMOUNTstatic StringJSON_PROPERTY_TARGET_AMOUNTstatic StringJSON_PROPERTY_TRIGGER_AMOUNTstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description UpdateSweepConfigurationV2()UpdateSweepConfigurationV2(String id, UpdateSweepConfigurationV2.ReasonEnum reason, String reasonDetail)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateSweepConfigurationV2addPrioritiesItem(UpdateSweepConfigurationV2.PrioritiesEnum prioritiesItem)UpdateSweepConfigurationV2category(UpdateSweepConfigurationV2.CategoryEnum category)The type of transfer that results from the sweep.UpdateSweepConfigurationV2counterparty(SweepCounterparty counterparty)counterpartyUpdateSweepConfigurationV2currency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase.UpdateSweepConfigurationV2description(String description)The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.booleanequals(Object o)Return true if this UpdateSweepConfigurationV2 object is equal to o.static UpdateSweepConfigurationV2fromJson(String jsonString)Create an instance of UpdateSweepConfigurationV2 given an JSON stringUpdateSweepConfigurationV2.CategoryEnumgetCategory()The type of transfer that results from the sweep.SweepCounterpartygetCounterparty()Get counterpartyStringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase.StringgetDescription()The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()The unique identifier of the sweep.List<UpdateSweepConfigurationV2.PrioritiesEnum>getPriorities()The list of priorities for the bank transfer.UpdateSweepConfigurationV2.ReasonEnumgetReason()The reason for disabling the sweep.StringgetReasonDetail()The human readable reason for disabling the sweep.StringgetReference()Your reference for the sweep configuration.StringgetReferenceForBeneficiary()The reference sent to or received from the counterparty.SweepSchedulegetSchedule()Get scheduleUpdateSweepConfigurationV2.StatusEnumgetStatus()The status of the sweep.AmountgetSweepAmount()Get sweepAmountAmountgetTargetAmount()Get targetAmountAmountgetTriggerAmount()Get triggerAmountUpdateSweepConfigurationV2.TypeEnumgetType()The direction of sweep, whether pushing out or pulling in funds to the balance account.inthashCode()UpdateSweepConfigurationV2includeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.UpdateSweepConfigurationV2priorities(List<UpdateSweepConfigurationV2.PrioritiesEnum> priorities)The list of priorities for the bank transfer.UpdateSweepConfigurationV2reference(String reference)Your reference for the sweep configuration.UpdateSweepConfigurationV2referenceForBeneficiary(String referenceForBeneficiary)The reference sent to or received from the counterparty.UpdateSweepConfigurationV2schedule(SweepSchedule schedule)schedulevoidsetCategory(UpdateSweepConfigurationV2.CategoryEnum category)The type of transfer that results from the sweep.voidsetCounterparty(SweepCounterparty counterparty)counterpartyvoidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase.voidsetDescription(String description)The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPriorities(List<UpdateSweepConfigurationV2.PrioritiesEnum> priorities)The list of priorities for the bank transfer.voidsetReference(String reference)Your reference for the sweep configuration.voidsetReferenceForBeneficiary(String referenceForBeneficiary)The reference sent to or received from the counterparty.voidsetSchedule(SweepSchedule schedule)schedulevoidsetStatus(UpdateSweepConfigurationV2.StatusEnum status)The status of the sweep.voidsetSweepAmount(Amount sweepAmount)sweepAmountvoidsetTargetAmount(Amount targetAmount)targetAmountvoidsetTriggerAmount(Amount triggerAmount)triggerAmountvoidsetType(UpdateSweepConfigurationV2.TypeEnum type)The direction of sweep, whether pushing out or pulling in funds to the balance account.UpdateSweepConfigurationV2status(UpdateSweepConfigurationV2.StatusEnum status)The status of the sweep.UpdateSweepConfigurationV2sweepAmount(Amount sweepAmount)sweepAmountUpdateSweepConfigurationV2targetAmount(Amount targetAmount)targetAmountStringtoJson()Convert an instance of UpdateSweepConfigurationV2 to an JSON stringStringtoString()UpdateSweepConfigurationV2triggerAmount(Amount triggerAmount)triggerAmountUpdateSweepConfigurationV2type(UpdateSweepConfigurationV2.TypeEnum type)The direction of sweep, whether pushing out or pulling in funds to the balance account.
-
-
-
Field Detail
-
JSON_PROPERTY_CATEGORY
public static final String JSON_PROPERTY_CATEGORY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTERPARTY
public static final String JSON_PROPERTY_COUNTERPARTY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRIORITIES
public static final String JSON_PROPERTY_PRIORITIES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASON
public static final String JSON_PROPERTY_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASON_DETAIL
public static final String JSON_PROPERTY_REASON_DETAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY
public static final String JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCHEDULE
public static final String JSON_PROPERTY_SCHEDULE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SWEEP_AMOUNT
public static final String JSON_PROPERTY_SWEEP_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TARGET_AMOUNT
public static final String JSON_PROPERTY_TARGET_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRIGGER_AMOUNT
public static final String JSON_PROPERTY_TRIGGER_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UpdateSweepConfigurationV2
public UpdateSweepConfigurationV2()
-
UpdateSweepConfigurationV2
public UpdateSweepConfigurationV2(String id, UpdateSweepConfigurationV2.ReasonEnum reason, String reasonDetail)
-
-
Method Detail
-
category
public UpdateSweepConfigurationV2 category(UpdateSweepConfigurationV2.CategoryEnum category)
The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.- Parameters:
category- The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getCategory
public UpdateSweepConfigurationV2.CategoryEnum getCategory()
The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.- Returns:
- category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.
-
setCategory
public void setCategory(UpdateSweepConfigurationV2.CategoryEnum category)
The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.- Parameters:
category- The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.
-
counterparty
public UpdateSweepConfigurationV2 counterparty(SweepCounterparty counterparty)
counterparty- Parameters:
counterparty-- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getCounterparty
public SweepCounterparty getCounterparty()
Get counterparty- Returns:
- counterparty
-
setCounterparty
public void setCounterparty(SweepCounterparty counterparty)
counterparty- Parameters:
counterparty-
-
currency
public UpdateSweepConfigurationV2 currency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).- Parameters:
currency- The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getCurrency
public String getCurrency()
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).- Returns:
- currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).
-
setCurrency
public void setCurrency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).- Parameters:
currency- The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).
-
description
public UpdateSweepConfigurationV2 description(String description)
The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.- Parameters:
description- The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getDescription
public String getDescription()
The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.- Returns:
- description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.
-
setDescription
public void setDescription(String description)
The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.- Parameters:
description- The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.
-
getId
public String getId()
The unique identifier of the sweep.- Returns:
- id The unique identifier of the sweep.
-
priorities
public UpdateSweepConfigurationV2 priorities(List<UpdateSweepConfigurationV2.PrioritiesEnum> priorities)
The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).- Parameters:
priorities- The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
addPrioritiesItem
public UpdateSweepConfigurationV2 addPrioritiesItem(UpdateSweepConfigurationV2.PrioritiesEnum prioritiesItem)
-
getPriorities
public List<UpdateSweepConfigurationV2.PrioritiesEnum> getPriorities()
The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).- Returns:
- priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
-
setPriorities
public void setPriorities(List<UpdateSweepConfigurationV2.PrioritiesEnum> priorities)
The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).- Parameters:
priorities- The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
-
getReason
public UpdateSweepConfigurationV2.ReasonEnum getReason()
The reason for disabling the sweep.- Returns:
- reason The reason for disabling the sweep.
-
getReasonDetail
public String getReasonDetail()
The human readable reason for disabling the sweep.- Returns:
- reasonDetail The human readable reason for disabling the sweep.
-
reference
public UpdateSweepConfigurationV2 reference(String reference)
Your reference for the sweep configuration.- Parameters:
reference- Your reference for the sweep configuration.- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getReference
public String getReference()
Your reference for the sweep configuration.- Returns:
- reference Your reference for the sweep configuration.
-
setReference
public void setReference(String reference)
Your reference for the sweep configuration.- Parameters:
reference- Your reference for the sweep configuration.
-
referenceForBeneficiary
public UpdateSweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficiary)
The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.- Parameters:
referenceForBeneficiary- The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getReferenceForBeneficiary
public String getReferenceForBeneficiary()
The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.- Returns:
- referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
-
setReferenceForBeneficiary
public void setReferenceForBeneficiary(String referenceForBeneficiary)
The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.- Parameters:
referenceForBeneficiary- The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
-
schedule
public UpdateSweepConfigurationV2 schedule(SweepSchedule schedule)
schedule- Parameters:
schedule-- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getSchedule
public SweepSchedule getSchedule()
Get schedule- Returns:
- schedule
-
setSchedule
public void setSchedule(SweepSchedule schedule)
schedule- Parameters:
schedule-
-
status
public UpdateSweepConfigurationV2 status(UpdateSweepConfigurationV2.StatusEnum status)
The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered.- Parameters:
status- The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered.- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getStatus
public UpdateSweepConfigurationV2.StatusEnum getStatus()
The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered.- Returns:
- status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered.
-
setStatus
public void setStatus(UpdateSweepConfigurationV2.StatusEnum status)
The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered.- Parameters:
status- The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered.
-
sweepAmount
public UpdateSweepConfigurationV2 sweepAmount(Amount sweepAmount)
sweepAmount- Parameters:
sweepAmount-- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getSweepAmount
public Amount getSweepAmount()
Get sweepAmount- Returns:
- sweepAmount
-
setSweepAmount
public void setSweepAmount(Amount sweepAmount)
sweepAmount- Parameters:
sweepAmount-
-
targetAmount
public UpdateSweepConfigurationV2 targetAmount(Amount targetAmount)
targetAmount- Parameters:
targetAmount-- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getTargetAmount
public Amount getTargetAmount()
Get targetAmount- Returns:
- targetAmount
-
setTargetAmount
public void setTargetAmount(Amount targetAmount)
targetAmount- Parameters:
targetAmount-
-
triggerAmount
public UpdateSweepConfigurationV2 triggerAmount(Amount triggerAmount)
triggerAmount- Parameters:
triggerAmount-- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getTriggerAmount
public Amount getTriggerAmount()
Get triggerAmount- Returns:
- triggerAmount
-
setTriggerAmount
public void setTriggerAmount(Amount triggerAmount)
triggerAmount- Parameters:
triggerAmount-
-
type
public UpdateSweepConfigurationV2 type(UpdateSweepConfigurationV2.TypeEnum type)
The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.- Parameters:
type- The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.- Returns:
- the current
UpdateSweepConfigurationV2instance, allowing for method chaining
-
getType
public UpdateSweepConfigurationV2.TypeEnum getType()
The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.- Returns:
- type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.
-
setType
public void setType(UpdateSweepConfigurationV2.TypeEnum type)
The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.- Parameters:
type- The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.
-
includeNullValues
public UpdateSweepConfigurationV2 includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this UpdateSweepConfigurationV2 object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static UpdateSweepConfigurationV2 fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of UpdateSweepConfigurationV2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateSweepConfigurationV2
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to UpdateSweepConfigurationV2
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of UpdateSweepConfigurationV2 to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-