Package com.adyen.model.balanceplatform
Class CreateSweepConfigurationV2
- java.lang.Object
-
- com.adyen.model.balanceplatform.CreateSweepConfigurationV2
-
public class CreateSweepConfigurationV2 extends Object
CreateSweepConfigurationV2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateSweepConfigurationV2.CategoryEnumThe type of transfer that results from the sweep.static classCreateSweepConfigurationV2.PrioritiesEnumGets or Sets prioritiesstatic classCreateSweepConfigurationV2.ReasonEnumThe reason for disabling the sweep.static classCreateSweepConfigurationV2.StatusEnumThe status of the sweep.static classCreateSweepConfigurationV2.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_PRIORITIESstatic StringJSON_PROPERTY_REASONstatic 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 CreateSweepConfigurationV2()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSweepConfigurationV2addPrioritiesItem(CreateSweepConfigurationV2.PrioritiesEnum prioritiesItem)CreateSweepConfigurationV2category(CreateSweepConfigurationV2.CategoryEnum category)CreateSweepConfigurationV2counterparty(SweepCounterparty counterparty)CreateSweepConfigurationV2currency(String currency)CreateSweepConfigurationV2description(String description)booleanequals(Object o)Return true if this CreateSweepConfigurationV2 object is equal to o.static CreateSweepConfigurationV2fromJson(String jsonString)Create an instance of CreateSweepConfigurationV2 given an JSON stringCreateSweepConfigurationV2.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.List<CreateSweepConfigurationV2.PrioritiesEnum>getPriorities()The list of priorities for the bank transfer.CreateSweepConfigurationV2.ReasonEnumgetReason()The reason for disabling the sweep.StringgetReference()Your reference for the sweep configuration.StringgetReferenceForBeneficiary()The reference sent to or received from the counterparty.SweepSchedulegetSchedule()Get scheduleCreateSweepConfigurationV2.StatusEnumgetStatus()The status of the sweep.AmountgetSweepAmount()Get sweepAmountAmountgetTargetAmount()Get targetAmountAmountgetTriggerAmount()Get triggerAmountCreateSweepConfigurationV2.TypeEnumgetType()The direction of sweep, whether pushing out or pulling in funds to the balance account.inthashCode()CreateSweepConfigurationV2priorities(List<CreateSweepConfigurationV2.PrioritiesEnum> priorities)CreateSweepConfigurationV2reason(CreateSweepConfigurationV2.ReasonEnum reason)CreateSweepConfigurationV2reference(String reference)CreateSweepConfigurationV2referenceForBeneficiary(String referenceForBeneficiary)CreateSweepConfigurationV2schedule(SweepSchedule schedule)voidsetCategory(CreateSweepConfigurationV2.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.voidsetPriorities(List<CreateSweepConfigurationV2.PrioritiesEnum> priorities)The list of priorities for the bank transfer.voidsetReason(CreateSweepConfigurationV2.ReasonEnum reason)The reason for disabling the sweep.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(CreateSweepConfigurationV2.StatusEnum status)The status of the sweep.voidsetSweepAmount(Amount sweepAmount)sweepAmountvoidsetTargetAmount(Amount targetAmount)targetAmountvoidsetTriggerAmount(Amount triggerAmount)triggerAmountvoidsetType(CreateSweepConfigurationV2.TypeEnum type)The direction of sweep, whether pushing out or pulling in funds to the balance account.CreateSweepConfigurationV2status(CreateSweepConfigurationV2.StatusEnum status)CreateSweepConfigurationV2sweepAmount(Amount sweepAmount)CreateSweepConfigurationV2targetAmount(Amount targetAmount)StringtoJson()Convert an instance of CreateSweepConfigurationV2 to an JSON stringStringtoString()CreateSweepConfigurationV2triggerAmount(Amount triggerAmount)CreateSweepConfigurationV2type(CreateSweepConfigurationV2.TypeEnum type)
-
-
-
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_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_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
-
-
Method Detail
-
category
public CreateSweepConfigurationV2 category(CreateSweepConfigurationV2.CategoryEnum category)
-
getCategory
public CreateSweepConfigurationV2.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(CreateSweepConfigurationV2.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-
-
counterparty
public CreateSweepConfigurationV2 counterparty(SweepCounterparty counterparty)
-
getCounterparty
public SweepCounterparty getCounterparty()
Get counterparty- Returns:
- counterparty
-
setCounterparty
public void setCounterparty(SweepCounterparty counterparty)
counterparty- Parameters:
counterparty-
-
currency
public CreateSweepConfigurationV2 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)
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-
-
description
public CreateSweepConfigurationV2 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)
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-
-
priorities
public CreateSweepConfigurationV2 priorities(List<CreateSweepConfigurationV2.PrioritiesEnum> priorities)
-
addPrioritiesItem
public CreateSweepConfigurationV2 addPrioritiesItem(CreateSweepConfigurationV2.PrioritiesEnum prioritiesItem)
-
getPriorities
public List<CreateSweepConfigurationV2.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 you list first. If that's not possible, it moves on to the next option in the order of your 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 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
-
setPriorities
public void setPriorities(List<CreateSweepConfigurationV2.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. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your 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 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-
-
reason
public CreateSweepConfigurationV2 reason(CreateSweepConfigurationV2.ReasonEnum reason)
-
getReason
public CreateSweepConfigurationV2.ReasonEnum getReason()
The reason for disabling the sweep.- Returns:
- reason
-
setReason
public void setReason(CreateSweepConfigurationV2.ReasonEnum reason)
The reason for disabling the sweep.- Parameters:
reason-
-
reference
public CreateSweepConfigurationV2 reference(String reference)
-
getReference
public String getReference()
Your reference for the sweep configuration.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your reference for the sweep configuration.- Parameters:
reference-
-
referenceForBeneficiary
public CreateSweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficiary)
-
getReferenceForBeneficiary
public String getReferenceForBeneficiary()
The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.- Returns:
- referenceForBeneficiary
-
setReferenceForBeneficiary
public void setReferenceForBeneficiary(String referenceForBeneficiary)
The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.- Parameters:
referenceForBeneficiary-
-
schedule
public CreateSweepConfigurationV2 schedule(SweepSchedule schedule)
-
getSchedule
public SweepSchedule getSchedule()
Get schedule- Returns:
- schedule
-
setSchedule
public void setSchedule(SweepSchedule schedule)
schedule- Parameters:
schedule-
-
status
public CreateSweepConfigurationV2 status(CreateSweepConfigurationV2.StatusEnum status)
-
getStatus
public CreateSweepConfigurationV2.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(CreateSweepConfigurationV2.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-
-
sweepAmount
public CreateSweepConfigurationV2 sweepAmount(Amount sweepAmount)
-
getSweepAmount
public Amount getSweepAmount()
Get sweepAmount- Returns:
- sweepAmount
-
setSweepAmount
public void setSweepAmount(Amount sweepAmount)
sweepAmount- Parameters:
sweepAmount-
-
targetAmount
public CreateSweepConfigurationV2 targetAmount(Amount targetAmount)
-
getTargetAmount
public Amount getTargetAmount()
Get targetAmount- Returns:
- targetAmount
-
setTargetAmount
public void setTargetAmount(Amount targetAmount)
targetAmount- Parameters:
targetAmount-
-
triggerAmount
public CreateSweepConfigurationV2 triggerAmount(Amount triggerAmount)
-
getTriggerAmount
public Amount getTriggerAmount()
Get triggerAmount- Returns:
- triggerAmount
-
setTriggerAmount
public void setTriggerAmount(Amount triggerAmount)
triggerAmount- Parameters:
triggerAmount-
-
type
public CreateSweepConfigurationV2 type(CreateSweepConfigurationV2.TypeEnum type)
-
getType
public CreateSweepConfigurationV2.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(CreateSweepConfigurationV2.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-
-
equals
public boolean equals(Object o)
Return true if this CreateSweepConfigurationV2 object is equal to o.
-
fromJson
public static CreateSweepConfigurationV2 fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateSweepConfigurationV2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateSweepConfigurationV2
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateSweepConfigurationV2
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateSweepConfigurationV2 to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-