Package com.adyen.model.balanceplatform
Class TransferRoute
- java.lang.Object
-
- com.adyen.model.balanceplatform.TransferRoute
-
public class TransferRoute extends Object
TransferRoute
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransferRoute.CategoryEnumThe type of transfer.static classTransferRoute.PriorityEnumThe priority for the bank transfer.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CATEGORYstatic StringJSON_PROPERTY_COUNTRYstatic StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_PRIORITYstatic StringJSON_PROPERTY_REQUIREMENTS
-
Constructor Summary
Constructors Constructor Description TransferRoute()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferRouteaddRequirementsItem(TransferRouteRequirementsInner requirementsItem)TransferRoutecategory(TransferRoute.CategoryEnum category)The type of transfer.TransferRoutecountry(String country)The two-character ISO-3166-1 alpha-2 country code of the counterparty.TransferRoutecurrency(String currency)The three-character ISO currency code of transfer.booleanequals(Object o)Return true if this TransferRoute object is equal to o.static TransferRoutefromJson(String jsonString)Create an instance of TransferRoute given an JSON stringTransferRoute.CategoryEnumgetCategory()The type of transfer.StringgetCountry()The two-character ISO-3166-1 alpha-2 country code of the counterparty.StringgetCurrency()The three-character ISO currency code of transfer.TransferRoute.PriorityEnumgetPriority()The priority for the bank transfer.List<TransferRouteRequirementsInner>getRequirements()A set of rules defined by clearing houses and banking partners.inthashCode()TransferRoutepriority(TransferRoute.PriorityEnum priority)The priority for the bank transfer.TransferRouterequirements(List<TransferRouteRequirementsInner> requirements)A set of rules defined by clearing houses and banking partners.voidsetCategory(TransferRoute.CategoryEnum category)The type of transfer.voidsetCountry(String country)The two-character ISO-3166-1 alpha-2 country code of the counterparty.voidsetCurrency(String currency)The three-character ISO currency code of transfer.voidsetPriority(TransferRoute.PriorityEnum priority)The priority for the bank transfer.voidsetRequirements(List<TransferRouteRequirementsInner> requirements)A set of rules defined by clearing houses and banking partners.StringtoJson()Convert an instance of TransferRoute to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CATEGORY
public static final String JSON_PROPERTY_CATEGORY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTRY
public static final String JSON_PROPERTY_COUNTRY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRIORITY
public static final String JSON_PROPERTY_PRIORITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUIREMENTS
public static final String JSON_PROPERTY_REQUIREMENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
category
public TransferRoute category(TransferRoute.CategoryEnum category)
The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.- Parameters:
category-- Returns:
- the current
TransferRouteinstance, allowing for method chaining
-
getCategory
public TransferRoute.CategoryEnum getCategory()
The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.- Returns:
- category
-
setCategory
public void setCategory(TransferRoute.CategoryEnum category)
The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.- Parameters:
category-
-
country
public TransferRoute country(String country)
The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**.- Parameters:
country-- Returns:
- the current
TransferRouteinstance, allowing for method chaining
-
getCountry
public String getCountry()
The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**.- Returns:
- country
-
setCountry
public void setCountry(String country)
The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**.- Parameters:
country-
-
currency
public TransferRoute currency(String currency)
The three-character ISO currency code of transfer. For example, **USD** or **EUR**.- Parameters:
currency-- Returns:
- the current
TransferRouteinstance, allowing for method chaining
-
getCurrency
public String getCurrency()
The three-character ISO currency code of transfer. For example, **USD** or **EUR**.- Returns:
- currency
-
setCurrency
public void setCurrency(String currency)
The three-character ISO currency code of transfer. For example, **USD** or **EUR**.- Parameters:
currency-
-
priority
public TransferRoute priority(TransferRoute.PriorityEnum priority)
The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. 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 in [SEPA countries](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).- Parameters:
priority-- Returns:
- the current
TransferRouteinstance, allowing for method chaining
-
getPriority
public TransferRoute.PriorityEnum getPriority()
The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. 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 in [SEPA countries](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).- Returns:
- priority
-
setPriority
public void setPriority(TransferRoute.PriorityEnum priority)
The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. 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 in [SEPA countries](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).- Parameters:
priority-
-
requirements
public TransferRoute requirements(List<TransferRouteRequirementsInner> requirements)
A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`.- Parameters:
requirements-- Returns:
- the current
TransferRouteinstance, allowing for method chaining
-
addRequirementsItem
public TransferRoute addRequirementsItem(TransferRouteRequirementsInner requirementsItem)
-
getRequirements
public List<TransferRouteRequirementsInner> getRequirements()
A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`.- Returns:
- requirements
-
setRequirements
public void setRequirements(List<TransferRouteRequirementsInner> requirements)
A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`.- Parameters:
requirements-
-
equals
public boolean equals(Object o)
Return true if this TransferRoute object is equal to o.
-
fromJson
public static TransferRoute fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransferRoute given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransferRoute
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransferRoute
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransferRoute to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-