Class Tender

    • Constructor Detail

      • Tender

        public Tender()
        Constructs a new empty instance.
      • Tender

        protected Tender​(boolean noInit)
        Constructs a new empty instance.
      • Tender

        public Tender​(JSONObject jsonObject)
        Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • Tender

        public Tender​(Tender src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getId

        public String getId()
        Unique identifier
      • getEditable

        public Boolean getEditable()
        If this merchant tender is editable
      • getLabelKey

        public String getLabelKey()
        Label Key
      • getLabel

        public String getLabel()
        Label Key
      • getOpensCashDrawer

        public Boolean getOpensCashDrawer()
        If this tender opens the cash drawer
      • getSupportsTipping

        public Boolean getSupportsTipping()
        Allow tipping on payment from tender
      • getEnabled

        public Boolean getEnabled()
        If this merchant tender is enabled
      • getVisible

        public Boolean getVisible()
        If this merchant tender is visible
      • getInstructions

        public String getInstructions()
        Label Key
      • getJSONObject

        public JSONObject getJSONObject()
        Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.
        Specified by:
        getJSONObject in interface JSONifiable
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullEditable

        public boolean isNotNullEditable()
        Checks whether the 'editable' field is set and is not null
      • isNotNullLabelKey

        public boolean isNotNullLabelKey()
        Checks whether the 'labelKey' field is set and is not null
      • isNotNullLabel

        public boolean isNotNullLabel()
        Checks whether the 'label' field is set and is not null
      • isNotNullOpensCashDrawer

        public boolean isNotNullOpensCashDrawer()
        Checks whether the 'opensCashDrawer' field is set and is not null
      • isNotNullSupportsTipping

        public boolean isNotNullSupportsTipping()
        Checks whether the 'supportsTipping' field is set and is not null
      • isNotNullEnabled

        public boolean isNotNullEnabled()
        Checks whether the 'enabled' field is set and is not null
      • isNotNullVisible

        public boolean isNotNullVisible()
        Checks whether the 'visible' field is set and is not null
      • isNotNullInstructions

        public boolean isNotNullInstructions()
        Checks whether the 'instructions' field is set and is not null
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasEditable

        public boolean hasEditable()
        Checks whether the 'editable' field has been set, however the value could be null
      • hasLabelKey

        public boolean hasLabelKey()
        Checks whether the 'labelKey' field has been set, however the value could be null
      • hasLabel

        public boolean hasLabel()
        Checks whether the 'label' field has been set, however the value could be null
      • hasOpensCashDrawer

        public boolean hasOpensCashDrawer()
        Checks whether the 'opensCashDrawer' field has been set, however the value could be null
      • hasSupportsTipping

        public boolean hasSupportsTipping()
        Checks whether the 'supportsTipping' field has been set, however the value could be null
      • hasEnabled

        public boolean hasEnabled()
        Checks whether the 'enabled' field has been set, however the value could be null
      • hasVisible

        public boolean hasVisible()
        Checks whether the 'visible' field has been set, however the value could be null
      • hasInstructions

        public boolean hasInstructions()
        Checks whether the 'instructions' field has been set, however the value could be null
      • setId

        public Tender setId​(String id)
        Sets the field 'id'.
      • setEditable

        public Tender setEditable​(Boolean editable)
        Sets the field 'editable'.
      • setLabelKey

        public Tender setLabelKey​(String labelKey)
        Sets the field 'labelKey'.
      • setLabel

        public Tender setLabel​(String label)
        Sets the field 'label'.
      • setOpensCashDrawer

        public Tender setOpensCashDrawer​(Boolean opensCashDrawer)
        Sets the field 'opensCashDrawer'.
      • setSupportsTipping

        public Tender setSupportsTipping​(Boolean supportsTipping)
        Sets the field 'supportsTipping'.
      • setEnabled

        public Tender setEnabled​(Boolean enabled)
        Sets the field 'enabled'.
      • setVisible

        public Tender setVisible​(Boolean visible)
        Sets the field 'visible'.
      • setInstructions

        public Tender setInstructions​(String instructions)
        Sets the field 'instructions'.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearEditable

        public void clearEditable()
        Clears the 'editable' field, the 'has' method for this field will now return false
      • clearLabelKey

        public void clearLabelKey()
        Clears the 'labelKey' field, the 'has' method for this field will now return false
      • clearLabel

        public void clearLabel()
        Clears the 'label' field, the 'has' method for this field will now return false
      • clearOpensCashDrawer

        public void clearOpensCashDrawer()
        Clears the 'opensCashDrawer' field, the 'has' method for this field will now return false
      • clearSupportsTipping

        public void clearSupportsTipping()
        Clears the 'supportsTipping' field, the 'has' method for this field will now return false
      • clearEnabled

        public void clearEnabled()
        Clears the 'enabled' field, the 'has' method for this field will now return false
      • clearVisible

        public void clearVisible()
        Clears the 'visible' field, the 'has' method for this field will now return false
      • clearInstructions

        public void clearInstructions()
        Clears the 'instructions' field, the 'has' method for this field will now return false
      • containsChanges

        public boolean containsChanges()
        Returns true if this instance has any changes.
      • resetChangeLog

        public void resetChangeLog()
        Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
      • copyChanges

        public Tender copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(Tender src)
        Copy all the changed fields from the given source to this instance.