Class UpdatePaymentMethodInfo


  • public class UpdatePaymentMethodInfo
    extends Object
    UpdatePaymentMethodInfo
    • Constructor Detail

      • UpdatePaymentMethodInfo

        public UpdatePaymentMethodInfo()
    • Method Detail

      • getCountries

        public List<String> getCountries()
        The list of countries where a payment method is available. By default, all countries supported by the payment method.
        Returns:
        countries
      • setCountries

        public void setCountries​(List<String> countries)
      • getCurrencies

        public List<String> getCurrencies()
        The list of currencies that a payment method supports. By default, all currencies supported by the payment method.
        Returns:
        currencies
      • setCurrencies

        public void setCurrencies​(List<String> currencies)
      • getCustomRoutingFlags

        public List<String> getCustomRoutingFlags()
        Custom routing flags for acquirer routing.
        Returns:
        customRoutingFlags
      • setCustomRoutingFlags

        public void setCustomRoutingFlags​(List<String> customRoutingFlags)
      • getEnabled

        public Boolean getEnabled()
        Indicates whether the payment method is enabled (**true**) or disabled (**false**).
        Returns:
        enabled
      • setEnabled

        public void setEnabled​(Boolean enabled)
      • getShopperStatement

        public ShopperStatement getShopperStatement()
        Get shopperStatement
        Returns:
        shopperStatement
      • setShopperStatement

        public void setShopperStatement​(ShopperStatement shopperStatement)
      • 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 UpdatePaymentMethodInfo
      • fromJson

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

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