Class EntryModesRestriction


  • public class EntryModesRestriction
    extends Object
    EntryModesRestriction
    • Constructor Detail

      • EntryModesRestriction

        public EntryModesRestriction()
    • Method Detail

      • getOperation

        public String getOperation()
        Defines how the condition must be evaluated.
        Returns:
        operation
      • setOperation

        public void setOperation​(String operation)
      • getValue

        public List<EntryModesRestriction.ValueEnum> getValue()
        List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**.
        Returns:
        value
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Throws:
        IOException
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj,
                                              boolean strictValidation)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        strictValidation - reject (new) fields missing from the specifications
        Throws:
        IOException - if the JSON Object is invalid with respect to EntryModesRestriction
      • fromJson

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

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