Class ModelConfiguration


  • public class ModelConfiguration
    extends Object
    ModelConfiguration
    • Constructor Detail

      • ModelConfiguration

        public ModelConfiguration()
    • Method Detail

      • brand

        public ModelConfiguration brand​(String brand)
        Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
        Parameters:
        brand -
        Returns:
        the current ModelConfiguration instance, allowing for method chaining
      • 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)
        Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
        Parameters:
        brand -
      • commercial

        public ModelConfiguration commercial​(Boolean commercial)
        Set to **true** to apply surcharges only to commercial/business cards.
        Parameters:
        commercial -
        Returns:
        the current ModelConfiguration instance, allowing for method chaining
      • getCommercial

        public Boolean getCommercial()
        Set to **true** to apply surcharges only to commercial/business cards.
        Returns:
        commercial
      • setCommercial

        public void setCommercial​(Boolean commercial)
        Set to **true** to apply surcharges only to commercial/business cards.
        Parameters:
        commercial -
      • country

        public ModelConfiguration country​(List<String> country)
        The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region.
        Parameters:
        country -
        Returns:
        the current ModelConfiguration instance, allowing for method chaining
      • getCountry

        public List<String> getCountry()
        The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region.
        Returns:
        country
      • setCountry

        public void setCountry​(List<String> country)
        The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region.
        Parameters:
        country -
      • currencies

        public ModelConfiguration currencies​(List<Currency> currencies)
        Currency and percentage or amount of the surcharge.
        Parameters:
        currencies -
        Returns:
        the current ModelConfiguration instance, allowing for method chaining
      • getCurrencies

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

        public void setCurrencies​(List<Currency> currencies)
        Currency and percentage or amount of the surcharge.
        Parameters:
        currencies -
      • sources

        public ModelConfiguration sources​(List<String> sources)
        Funding source. Possible values: * **Credit** * **Debit**
        Parameters:
        sources -
        Returns:
        the current ModelConfiguration instance, allowing for method chaining
      • getSources

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

        public void setSources​(List<String> sources)
        Funding source. Possible values: * **Credit** * **Debit**
        Parameters:
        sources -
      • equals

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

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

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

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of ModelConfiguration to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException