Class OrderType

    • Constructor Detail

      • OrderType

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

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

        public OrderType​(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.
      • OrderType

        public OrderType​(OrderType 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
      • getLabelKey

        public String getLabelKey()
        Label Key
      • getLabel

        public String getLabel()
        Label Key
      • getTaxable

        public Boolean getTaxable()
        If this order type is taxable
      • getIsDefault

        public Boolean getIsDefault()
        If this order type is the default
      • getFilterCategories

        public Boolean getFilterCategories()
        If set to false, then this order type includes all of the merchant's categories. Otherwise, it only contains the categories defined in the "categories" field on this object.
      • getIsHidden

        public Boolean getIsHidden()
        If this order type is hidden on the register
      • getFee

        public Long getFee()
        The price of a fee added to this order type, not fully implemented at this time.
      • getMinOrderAmount

        public Long getMinOrderAmount()
        The minimum amount required for an order to be placed
      • getMaxOrderAmount

        public Long getMaxOrderAmount()
        The maximum amount for an order allowed
      • getMaxRadius

        public Long getMaxRadius()
        The maximum radius allowed for an order (i.e. delivery)
      • getAvgOrderTime

        public Long getAvgOrderTime()
        The average time it takes to complete the order
      • getIsDeleted

        public Boolean getIsDeleted()
        If this order type is deleted
      • getSystemOrderTypeId

        public String getSystemOrderTypeId()
        Optional system order type that this order type is associated with.
      • getHours

        public HoursSet getHours()
        The hours this order type is available (if they differ from normal merchant hours)
      • getCategories

        public List<Reference> getCategories()
        The categories of items that can be assigned to this order type
      • 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
      • 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
      • isNotNullTaxable

        public boolean isNotNullTaxable()
        Checks whether the 'taxable' field is set and is not null
      • isNotNullIsDefault

        public boolean isNotNullIsDefault()
        Checks whether the 'isDefault' field is set and is not null
      • isNotNullFilterCategories

        public boolean isNotNullFilterCategories()
        Checks whether the 'filterCategories' field is set and is not null
      • isNotNullIsHidden

        public boolean isNotNullIsHidden()
        Checks whether the 'isHidden' field is set and is not null
      • isNotNullFee

        public boolean isNotNullFee()
        Checks whether the 'fee' field is set and is not null
      • isNotNullMinOrderAmount

        public boolean isNotNullMinOrderAmount()
        Checks whether the 'minOrderAmount' field is set and is not null
      • isNotNullMaxOrderAmount

        public boolean isNotNullMaxOrderAmount()
        Checks whether the 'maxOrderAmount' field is set and is not null
      • isNotNullMaxRadius

        public boolean isNotNullMaxRadius()
        Checks whether the 'maxRadius' field is set and is not null
      • isNotNullAvgOrderTime

        public boolean isNotNullAvgOrderTime()
        Checks whether the 'avgOrderTime' field is set and is not null
      • isNotNullHoursAvailable

        public boolean isNotNullHoursAvailable()
        Checks whether the 'hoursAvailable' field is set and is not null
      • isNotNullCustomerIdMethod

        public boolean isNotNullCustomerIdMethod()
        Checks whether the 'customerIdMethod' field is set and is not null
      • isNotNullIsDeleted

        public boolean isNotNullIsDeleted()
        Checks whether the 'isDeleted' field is set and is not null
      • isNotNullSystemOrderTypeId

        public boolean isNotNullSystemOrderTypeId()
        Checks whether the 'systemOrderTypeId' field is set and is not null
      • isNotNullHours

        public boolean isNotNullHours()
        Checks whether the 'hours' field is set and is not null
      • isNotNullCategories

        public boolean isNotNullCategories()
        Checks whether the 'categories' field is set and is not null
      • isNotEmptyCategories

        public boolean isNotEmptyCategories()
        Checks whether the 'categories' field is set and is not null and is not empty
      • hasId

        public boolean hasId()
        Checks whether the 'id' 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
      • hasTaxable

        public boolean hasTaxable()
        Checks whether the 'taxable' field has been set, however the value could be null
      • hasIsDefault

        public boolean hasIsDefault()
        Checks whether the 'isDefault' field has been set, however the value could be null
      • hasFilterCategories

        public boolean hasFilterCategories()
        Checks whether the 'filterCategories' field has been set, however the value could be null
      • hasIsHidden

        public boolean hasIsHidden()
        Checks whether the 'isHidden' field has been set, however the value could be null
      • hasFee

        public boolean hasFee()
        Checks whether the 'fee' field has been set, however the value could be null
      • hasMinOrderAmount

        public boolean hasMinOrderAmount()
        Checks whether the 'minOrderAmount' field has been set, however the value could be null
      • hasMaxOrderAmount

        public boolean hasMaxOrderAmount()
        Checks whether the 'maxOrderAmount' field has been set, however the value could be null
      • hasMaxRadius

        public boolean hasMaxRadius()
        Checks whether the 'maxRadius' field has been set, however the value could be null
      • hasAvgOrderTime

        public boolean hasAvgOrderTime()
        Checks whether the 'avgOrderTime' field has been set, however the value could be null
      • hasHoursAvailable

        public boolean hasHoursAvailable()
        Checks whether the 'hoursAvailable' field has been set, however the value could be null
      • hasCustomerIdMethod

        public boolean hasCustomerIdMethod()
        Checks whether the 'customerIdMethod' field has been set, however the value could be null
      • hasIsDeleted

        public boolean hasIsDeleted()
        Checks whether the 'isDeleted' field has been set, however the value could be null
      • hasSystemOrderTypeId

        public boolean hasSystemOrderTypeId()
        Checks whether the 'systemOrderTypeId' field has been set, however the value could be null
      • hasHours

        public boolean hasHours()
        Checks whether the 'hours' field has been set, however the value could be null
      • hasCategories

        public boolean hasCategories()
        Checks whether the 'categories' field has been set, however the value could be null
      • setLabelKey

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

        public OrderType setLabel​(String label)
        Sets the field 'label'.
      • setTaxable

        public OrderType setTaxable​(Boolean taxable)
        Sets the field 'taxable'.
      • setIsDefault

        public OrderType setIsDefault​(Boolean isDefault)
        Sets the field 'isDefault'.
      • setFilterCategories

        public OrderType setFilterCategories​(Boolean filterCategories)
        Sets the field 'filterCategories'.
      • setIsHidden

        public OrderType setIsHidden​(Boolean isHidden)
        Sets the field 'isHidden'.
      • setFee

        public OrderType setFee​(Long fee)
        Sets the field 'fee'.
      • setMinOrderAmount

        public OrderType setMinOrderAmount​(Long minOrderAmount)
        Sets the field 'minOrderAmount'.
      • setMaxOrderAmount

        public OrderType setMaxOrderAmount​(Long maxOrderAmount)
        Sets the field 'maxOrderAmount'.
      • setMaxRadius

        public OrderType setMaxRadius​(Long maxRadius)
        Sets the field 'maxRadius'.
      • setAvgOrderTime

        public OrderType setAvgOrderTime​(Long avgOrderTime)
        Sets the field 'avgOrderTime'.
      • setHoursAvailable

        public OrderType setHoursAvailable​(HoursAvailable hoursAvailable)
        Sets the field 'hoursAvailable'.
      • setCustomerIdMethod

        public OrderType setCustomerIdMethod​(CustomerIdMethod customerIdMethod)
        Sets the field 'customerIdMethod'.
      • setIsDeleted

        public OrderType setIsDeleted​(Boolean isDeleted)
        Sets the field 'isDeleted'.
      • setSystemOrderTypeId

        public OrderType setSystemOrderTypeId​(String systemOrderTypeId)
        Sets the field 'systemOrderTypeId'.
      • setHours

        public OrderType setHours​(HoursSet hours)
        Sets the field 'hours'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setCategories

        public OrderType setCategories​(List<Reference> categories)
        Sets the field 'categories'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • clearId

        public void clearId()
        Clears the 'id' 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
      • clearTaxable

        public void clearTaxable()
        Clears the 'taxable' field, the 'has' method for this field will now return false
      • clearIsDefault

        public void clearIsDefault()
        Clears the 'isDefault' field, the 'has' method for this field will now return false
      • clearFilterCategories

        public void clearFilterCategories()
        Clears the 'filterCategories' field, the 'has' method for this field will now return false
      • clearIsHidden

        public void clearIsHidden()
        Clears the 'isHidden' field, the 'has' method for this field will now return false
      • clearFee

        public void clearFee()
        Clears the 'fee' field, the 'has' method for this field will now return false
      • clearMinOrderAmount

        public void clearMinOrderAmount()
        Clears the 'minOrderAmount' field, the 'has' method for this field will now return false
      • clearMaxOrderAmount

        public void clearMaxOrderAmount()
        Clears the 'maxOrderAmount' field, the 'has' method for this field will now return false
      • clearMaxRadius

        public void clearMaxRadius()
        Clears the 'maxRadius' field, the 'has' method for this field will now return false
      • clearAvgOrderTime

        public void clearAvgOrderTime()
        Clears the 'avgOrderTime' field, the 'has' method for this field will now return false
      • clearHoursAvailable

        public void clearHoursAvailable()
        Clears the 'hoursAvailable' field, the 'has' method for this field will now return false
      • clearCustomerIdMethod

        public void clearCustomerIdMethod()
        Clears the 'customerIdMethod' field, the 'has' method for this field will now return false
      • clearIsDeleted

        public void clearIsDeleted()
        Clears the 'isDeleted' field, the 'has' method for this field will now return false
      • clearSystemOrderTypeId

        public void clearSystemOrderTypeId()
        Clears the 'systemOrderTypeId' field, the 'has' method for this field will now return false
      • clearHours

        public void clearHours()
        Clears the 'hours' field, the 'has' method for this field will now return false
      • clearCategories

        public void clearCategories()
        Clears the 'categories' 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 OrderType copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

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