Class Surcharge


  • public class Surcharge
    extends Object
    Surcharge
    • Constructor Detail

      • Surcharge

        public Surcharge()
    • Method Detail

      • askConfirmation

        public Surcharge askConfirmation​(Boolean askConfirmation)
      • getAskConfirmation

        public Boolean getAskConfirmation()
        Show the surcharge details on the terminal, so the shopper can confirm.
        Returns:
        askConfirmation
      • setAskConfirmation

        public void setAskConfirmation​(Boolean askConfirmation)
        Show the surcharge details on the terminal, so the shopper can confirm.
        Parameters:
        askConfirmation -
      • getConfigurations

        public List<ModelConfiguration> getConfigurations()
        Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies.
        Returns:
        configurations
      • setConfigurations

        public void setConfigurations​(List<ModelConfiguration> configurations)
        Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies.
        Parameters:
        configurations -
      • equals

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

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

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

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