Class ModelConfiguration


  • public class ModelConfiguration
    extends Object
    ModelConfiguration
    • Constructor Detail

      • ModelConfiguration

        public ModelConfiguration()
    • Method Detail

      • getBrand

        public String getBrand()
        Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
        Returns:
        brand
      • setBrand

        public void setBrand​(String brand)
      • getCurrencies

        public List<Currency> getCurrencies()
        Currency, and surcharge percentage or amount.
        Returns:
        currencies
      • setCurrencies

        public void setCurrencies​(List<Currency> currencies)
      • getSources

        public List<String> getSources()
        Funding source. Possible values: * **Credit** * **Debit**
        Returns:
        sources
      • setSources

        public void setSources​(List<String> sources)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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 ModelConfiguration
      • fromJson

        public static ModelConfiguration fromJson​(String jsonString)
                                           throws IOException
        Create an instance of ModelConfiguration given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ModelConfiguration
        Throws:
        IOException - if the JSON string is invalid with respect to ModelConfiguration
      • toJson

        public String toJson()
        Convert an instance of ModelConfiguration to an JSON string
        Returns:
        JSON string