Package com.adyen.model.balanceplatform
Class SweepConfigurationV2
- java.lang.Object
-
- com.adyen.model.balanceplatform.SweepConfigurationV2
-
public class SweepConfigurationV2 extends Object
SweepConfigurationV2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSweepConfigurationV2.CategoryEnumThe type of transfer that results from the sweep.static classSweepConfigurationV2.CustomTypeAdapterFactorystatic classSweepConfigurationV2.PrioritiesEnumGets or Sets prioritiesstatic classSweepConfigurationV2.ReasonEnumThe reason for disabling the sweep.static classSweepConfigurationV2.StatusEnumThe status of the sweep.static classSweepConfigurationV2.TypeEnumThe direction of sweep, whether pushing out or pulling in funds to the balance account.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CATEGORYstatic StringSERIALIZED_NAME_COUNTERPARTYstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_PRIORITIESstatic StringSERIALIZED_NAME_REASONstatic StringSERIALIZED_NAME_SCHEDULEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_SWEEP_AMOUNTstatic StringSERIALIZED_NAME_TARGET_AMOUNTstatic StringSERIALIZED_NAME_TRIGGER_AMOUNTstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description SweepConfigurationV2()SweepConfigurationV2(String id, SweepConfigurationV2.ReasonEnum reason)
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_CATEGORY
public static final String SERIALIZED_NAME_CATEGORY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTERPARTY
public static final String SERIALIZED_NAME_COUNTERPARTY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENCY
public static final String SERIALIZED_NAME_CURRENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRIORITIES
public static final String SERIALIZED_NAME_PRIORITIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REASON
public static final String SERIALIZED_NAME_REASON
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCHEDULE
public static final String SERIALIZED_NAME_SCHEDULE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SWEEP_AMOUNT
public static final String SERIALIZED_NAME_SWEEP_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TARGET_AMOUNT
public static final String SERIALIZED_NAME_TARGET_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRIGGER_AMOUNT
public static final String SERIALIZED_NAME_TRIGGER_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SweepConfigurationV2
public SweepConfigurationV2()
-
SweepConfigurationV2
public SweepConfigurationV2(String id, SweepConfigurationV2.ReasonEnum reason)
-
-
Method Detail
-
category
public SweepConfigurationV2 category(SweepConfigurationV2.CategoryEnum category)
-
getCategory
public SweepConfigurationV2.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
-
setCategory
public void setCategory(SweepConfigurationV2.CategoryEnum category)
-
counterparty
public SweepConfigurationV2 counterparty(SweepCounterparty counterparty)
-
getCounterparty
public SweepCounterparty getCounterparty()
Get counterparty- Returns:
- counterparty
-
setCounterparty
public void setCounterparty(SweepCounterparty counterparty)
-
currency
public SweepConfigurationV2 currency(String currency)
-
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
-
setCurrency
public void setCurrency(String currency)
-
description
public SweepConfigurationV2 description(String description)
-
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
-
setDescription
public void setDescription(String description)
-
getId
public String getId()
The unique identifier of the sweep.- Returns:
- id
-
priorities
public SweepConfigurationV2 priorities(List<SweepConfigurationV2.PrioritiesEnum> priorities)
-
addPrioritiesItem
public SweepConfigurationV2 addPrioritiesItem(SweepConfigurationV2.PrioritiesEnum prioritiesItem)
-
getPriorities
public List<SweepConfigurationV2.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. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).- Returns:
- priorities
-
setPriorities
public void setPriorities(List<SweepConfigurationV2.PrioritiesEnum> priorities)
-
getReason
public SweepConfigurationV2.ReasonEnum getReason()
The reason for disabling the sweep.- Returns:
- reason
-
schedule
public SweepConfigurationV2 schedule(SweepConfigurationV2Schedule schedule)
-
getSchedule
public SweepConfigurationV2Schedule getSchedule()
Get schedule- Returns:
- schedule
-
setSchedule
public void setSchedule(SweepConfigurationV2Schedule schedule)
-
status
public SweepConfigurationV2 status(SweepConfigurationV2.StatusEnum status)
-
getStatus
public SweepConfigurationV2.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
-
setStatus
public void setStatus(SweepConfigurationV2.StatusEnum status)
-
sweepAmount
public SweepConfigurationV2 sweepAmount(Amount sweepAmount)
-
getSweepAmount
public Amount getSweepAmount()
Get sweepAmount- Returns:
- sweepAmount
-
setSweepAmount
public void setSweepAmount(Amount sweepAmount)
-
targetAmount
public SweepConfigurationV2 targetAmount(Amount targetAmount)
-
getTargetAmount
public Amount getTargetAmount()
Get targetAmount- Returns:
- targetAmount
-
setTargetAmount
public void setTargetAmount(Amount targetAmount)
-
triggerAmount
public SweepConfigurationV2 triggerAmount(Amount triggerAmount)
-
getTriggerAmount
public Amount getTriggerAmount()
Get triggerAmount- Returns:
- triggerAmount
-
setTriggerAmount
public void setTriggerAmount(Amount triggerAmount)
-
type
public SweepConfigurationV2 type(SweepConfigurationV2.TypeEnum type)
-
getType
public SweepConfigurationV2.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
-
setType
public void setType(SweepConfigurationV2.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to SweepConfigurationV2
-
fromJson
public static SweepConfigurationV2 fromJson(String jsonString) throws IOException
Create an instance of SweepConfigurationV2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SweepConfigurationV2
- Throws:
IOException- if the JSON string is invalid with respect to SweepConfigurationV2
-
toJson
public String toJson()
Convert an instance of SweepConfigurationV2 to an JSON string- Returns:
- JSON string
-
-