Class TransferRoute


  • public class TransferRoute
    extends Object
    TransferRoute
    • Constructor Detail

      • TransferRoute

        public TransferRoute()
    • Method Detail

      • 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
      • 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)
      • 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)
      • 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**: 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).
        Returns:
        priority
      • equals

        public boolean equals​(Object o)
        Return true if this TransferRoute object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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