public class OrderType extends GenericParcelable implements Validator, JSONifiable
IOrderService
Modifier and Type | Class and Description |
---|---|
static interface |
OrderType.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static String |
AUTHORITY |
static Parcelable.Creator<OrderType> |
CREATOR |
static JSONifiable.Creator<OrderType> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
OrderType()
Constructs a new empty instance.
|
protected |
OrderType(boolean noInit)
Constructs a new empty instance.
|
|
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(OrderType src)
Constructs a new instance that is a deep copy of the source instance.
|
|
OrderType(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAvgOrderTime()
Clears the 'avgOrderTime' field, the 'has' method for this field will now return false
|
void |
clearCategories()
Clears the 'categories' field, the 'has' method for this field will now return false
|
void |
clearCustomerIdMethod()
Clears the 'customerIdMethod' field, the 'has' method for this field will now return false
|
void |
clearFee()
Clears the 'fee' field, the 'has' method for this field will now return false
|
void |
clearFilterCategories()
Clears the 'filterCategories' field, the 'has' method for this field will now return false
|
void |
clearHours()
Clears the 'hours' field, the 'has' method for this field will now return false
|
void |
clearHoursAvailable()
Clears the 'hoursAvailable' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearIsDefault()
Clears the 'isDefault' field, the 'has' method for this field will now return false
|
void |
clearIsDeleted()
Clears the 'isDeleted' field, the 'has' method for this field will now return false
|
void |
clearIsHidden()
Clears the 'isHidden' field, the 'has' method for this field will now return false
|
void |
clearLabel()
Clears the 'label' field, the 'has' method for this field will now return false
|
void |
clearLabelKey()
Clears the 'labelKey' field, the 'has' method for this field will now return false
|
void |
clearMaxOrderAmount()
Clears the 'maxOrderAmount' field, the 'has' method for this field will now return false
|
void |
clearMaxRadius()
Clears the 'maxRadius' field, the 'has' method for this field will now return false
|
void |
clearMinOrderAmount()
Clears the 'minOrderAmount' field, the 'has' method for this field will now return false
|
void |
clearSystemOrderTypeId()
Clears the 'systemOrderTypeId' field, the 'has' method for this field will now return false
|
void |
clearTaxable()
Clears the 'taxable' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
OrderType |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getAvgOrderTime()
The average time it takes to complete the order
|
List<Reference> |
getCategories()
The categories of items that can be assigned to this order type
|
CustomerIdMethod |
getCustomerIdMethod() |
Long |
getFee()
The price of a fee added to this order type, not fully implemented at this time.
|
Boolean |
getFilterCategories()
If set to false, then this order type includes all of the merchant's categories.
|
protected GenericClient |
getGenericClient() |
HoursSet |
getHours()
The hours this order type is available (if they differ from normal merchant hours)
|
HoursAvailable |
getHoursAvailable() |
String |
getId()
Unique identifier
|
Boolean |
getIsDefault()
If this order type is the default
|
Boolean |
getIsDeleted()
If this order type is deleted
|
Boolean |
getIsHidden()
If this order type is hidden on the register
|
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.
|
String |
getLabel()
Label Key
|
String |
getLabelKey()
Label Key
|
Long |
getMaxOrderAmount()
The maximum amount for an order allowed
|
Long |
getMaxRadius()
The maximum radius allowed for an order (i.e.
|
Long |
getMinOrderAmount()
The minimum amount required for an order to be placed
|
String |
getSystemOrderTypeId()
Optional system order type that this order type is associated with.
|
Boolean |
getTaxable()
If this order type is taxable
|
boolean |
hasAvgOrderTime()
Checks whether the 'avgOrderTime' field has been set, however the value could be null
|
boolean |
hasCategories()
Checks whether the 'categories' field has been set, however the value could be null
|
boolean |
hasCustomerIdMethod()
Checks whether the 'customerIdMethod' field has been set, however the value could be null
|
boolean |
hasFee()
Checks whether the 'fee' field has been set, however the value could be null
|
boolean |
hasFilterCategories()
Checks whether the 'filterCategories' field has been set, however the value could be null
|
boolean |
hasHours()
Checks whether the 'hours' field has been set, however the value could be null
|
boolean |
hasHoursAvailable()
Checks whether the 'hoursAvailable' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasIsDefault()
Checks whether the 'isDefault' field has been set, however the value could be null
|
boolean |
hasIsDeleted()
Checks whether the 'isDeleted' field has been set, however the value could be null
|
boolean |
hasIsHidden()
Checks whether the 'isHidden' field has been set, however the value could be null
|
boolean |
hasLabel()
Checks whether the 'label' field has been set, however the value could be null
|
boolean |
hasLabelKey()
Checks whether the 'labelKey' field has been set, however the value could be null
|
boolean |
hasMaxOrderAmount()
Checks whether the 'maxOrderAmount' field has been set, however the value could be null
|
boolean |
hasMaxRadius()
Checks whether the 'maxRadius' field has been set, however the value could be null
|
boolean |
hasMinOrderAmount()
Checks whether the 'minOrderAmount' field has been set, however the value could be null
|
boolean |
hasSystemOrderTypeId()
Checks whether the 'systemOrderTypeId' field has been set, however the value could be null
|
boolean |
hasTaxable()
Checks whether the 'taxable' field has been set, however the value could be null
|
boolean |
isNotEmptyCategories()
Checks whether the 'categories' field is set and is not null and is not empty
|
boolean |
isNotNullAvgOrderTime()
Checks whether the 'avgOrderTime' field is set and is not null
|
boolean |
isNotNullCategories()
Checks whether the 'categories' field is set and is not null
|
boolean |
isNotNullCustomerIdMethod()
Checks whether the 'customerIdMethod' field is set and is not null
|
boolean |
isNotNullFee()
Checks whether the 'fee' field is set and is not null
|
boolean |
isNotNullFilterCategories()
Checks whether the 'filterCategories' field is set and is not null
|
boolean |
isNotNullHours()
Checks whether the 'hours' field is set and is not null
|
boolean |
isNotNullHoursAvailable()
Checks whether the 'hoursAvailable' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullIsDefault()
Checks whether the 'isDefault' field is set and is not null
|
boolean |
isNotNullIsDeleted()
Checks whether the 'isDeleted' field is set and is not null
|
boolean |
isNotNullIsHidden()
Checks whether the 'isHidden' field is set and is not null
|
boolean |
isNotNullLabel()
Checks whether the 'label' field is set and is not null
|
boolean |
isNotNullLabelKey()
Checks whether the 'labelKey' field is set and is not null
|
boolean |
isNotNullMaxOrderAmount()
Checks whether the 'maxOrderAmount' field is set and is not null
|
boolean |
isNotNullMaxRadius()
Checks whether the 'maxRadius' field is set and is not null
|
boolean |
isNotNullMinOrderAmount()
Checks whether the 'minOrderAmount' field is set and is not null
|
boolean |
isNotNullSystemOrderTypeId()
Checks whether the 'systemOrderTypeId' field is set and is not null
|
boolean |
isNotNullTaxable()
Checks whether the 'taxable' field is set and is not null
|
void |
mergeChanges(OrderType src)
Copy all the changed fields from the given source to this instance.
|
void |
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
|
OrderType |
setAvgOrderTime(Long avgOrderTime)
Sets the field 'avgOrderTime'.
|
OrderType |
setCategories(List<Reference> categories)
Sets the field 'categories'.
|
OrderType |
setCustomerIdMethod(CustomerIdMethod customerIdMethod)
Sets the field 'customerIdMethod'.
|
OrderType |
setFee(Long fee)
Sets the field 'fee'.
|
OrderType |
setFilterCategories(Boolean filterCategories)
Sets the field 'filterCategories'.
|
OrderType |
setHours(HoursSet hours)
Sets the field 'hours'.
|
OrderType |
setHoursAvailable(HoursAvailable hoursAvailable)
Sets the field 'hoursAvailable'.
|
OrderType |
setId(String id)
Sets the field 'id'.
|
OrderType |
setIsDefault(Boolean isDefault)
Sets the field 'isDefault'.
|
OrderType |
setIsDeleted(Boolean isDeleted)
Sets the field 'isDeleted'.
|
OrderType |
setIsHidden(Boolean isHidden)
Sets the field 'isHidden'.
|
OrderType |
setLabel(String label)
Sets the field 'label'.
|
OrderType |
setLabelKey(String labelKey)
Sets the field 'labelKey'.
|
OrderType |
setMaxOrderAmount(Long maxOrderAmount)
Sets the field 'maxOrderAmount'.
|
OrderType |
setMaxRadius(Long maxRadius)
Sets the field 'maxRadius'.
|
OrderType |
setMinOrderAmount(Long minOrderAmount)
Sets the field 'minOrderAmount'.
|
OrderType |
setSystemOrderTypeId(String systemOrderTypeId)
Sets the field 'systemOrderTypeId'.
|
OrderType |
setTaxable(Boolean taxable)
Sets the field 'taxable'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final String AUTHORITY
public static final Parcelable.Creator<OrderType> CREATOR
public static final JSONifiable.Creator<OrderType> JSON_CREATOR
public OrderType()
protected OrderType(boolean noInit)
public OrderType(String json) throws IllegalArgumentException
IllegalArgumentException
public OrderType(JSONObject jsonObject)
public OrderType(OrderType src)
public String getId()
public String getLabelKey()
public String getLabel()
public Boolean getTaxable()
public Boolean getIsDefault()
public Boolean getFilterCategories()
public Boolean getIsHidden()
public Long getFee()
public Long getMinOrderAmount()
public Long getMaxOrderAmount()
public Long getMaxRadius()
public Long getAvgOrderTime()
public HoursAvailable getHoursAvailable()
public CustomerIdMethod getCustomerIdMethod()
public Boolean getIsDeleted()
public String getSystemOrderTypeId()
public HoursSet getHours()
public List<Reference> getCategories()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullLabelKey()
public boolean isNotNullLabel()
public boolean isNotNullTaxable()
public boolean isNotNullIsDefault()
public boolean isNotNullFilterCategories()
public boolean isNotNullIsHidden()
public boolean isNotNullFee()
public boolean isNotNullMinOrderAmount()
public boolean isNotNullMaxOrderAmount()
public boolean isNotNullMaxRadius()
public boolean isNotNullAvgOrderTime()
public boolean isNotNullHoursAvailable()
public boolean isNotNullCustomerIdMethod()
public boolean isNotNullIsDeleted()
public boolean isNotNullSystemOrderTypeId()
public boolean isNotNullHours()
public boolean isNotNullCategories()
public boolean isNotEmptyCategories()
public boolean hasId()
public boolean hasLabelKey()
public boolean hasLabel()
public boolean hasTaxable()
public boolean hasIsDefault()
public boolean hasFilterCategories()
public boolean hasIsHidden()
public boolean hasFee()
public boolean hasMinOrderAmount()
public boolean hasMaxOrderAmount()
public boolean hasMaxRadius()
public boolean hasAvgOrderTime()
public boolean hasHoursAvailable()
public boolean hasCustomerIdMethod()
public boolean hasIsDeleted()
public boolean hasSystemOrderTypeId()
public boolean hasHours()
public boolean hasCategories()
public OrderType setFilterCategories(Boolean filterCategories)
public OrderType setMinOrderAmount(Long minOrderAmount)
public OrderType setMaxOrderAmount(Long maxOrderAmount)
public OrderType setHoursAvailable(HoursAvailable hoursAvailable)
public OrderType setCustomerIdMethod(CustomerIdMethod customerIdMethod)
public OrderType setSystemOrderTypeId(String systemOrderTypeId)
public OrderType setHours(HoursSet hours)
public OrderType setCategories(List<Reference> categories)
public void clearId()
public void clearLabelKey()
public void clearLabel()
public void clearTaxable()
public void clearIsDefault()
public void clearFilterCategories()
public void clearIsHidden()
public void clearFee()
public void clearMinOrderAmount()
public void clearMaxOrderAmount()
public void clearMaxRadius()
public void clearAvgOrderTime()
public void clearHoursAvailable()
public void clearCustomerIdMethod()
public void clearIsDeleted()
public void clearSystemOrderTypeId()
public void clearHours()
public void clearCategories()
public boolean containsChanges()
public void resetChangeLog()
public OrderType copyChanges()
public void mergeChanges(OrderType src)