Class PermitRestriction


  • public class PermitRestriction
    extends Object
    PermitRestriction
    • Constructor Detail

      • PermitRestriction

        public PermitRestriction()
    • Method Detail

      • getMaxAmount

        public Amount getMaxAmount()
        Get maxAmount
        Returns:
        maxAmount
      • setMaxAmount

        public void setMaxAmount​(Amount maxAmount)
        maxAmount
        Parameters:
        maxAmount -
      • getSingleTransactionLimit

        public Amount getSingleTransactionLimit()
        Get singleTransactionLimit
        Returns:
        singleTransactionLimit
      • setSingleTransactionLimit

        public void setSingleTransactionLimit​(Amount singleTransactionLimit)
        singleTransactionLimit
        Parameters:
        singleTransactionLimit -
      • getSingleUse

        public Boolean getSingleUse()
        Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed.
        Returns:
        singleUse
      • setSingleUse

        public void setSingleUse​(Boolean singleUse)
        Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed.
        Parameters:
        singleUse -
      • equals

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

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

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

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