public class BatchTotalStats extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
BatchTotalStats.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<BatchTotalStats> |
CREATOR |
static JSONifiable.Creator<BatchTotalStats> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
BatchTotalStats()
Constructs a new empty instance.
|
|
BatchTotalStats(BatchTotalStats src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
BatchTotalStats(boolean noInit)
Constructs a new empty instance.
|
|
BatchTotalStats(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.
|
|
BatchTotalStats(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearGiftCardCashOuts()
Clears the 'giftCardCashOuts' field, the 'has' method for this field will now return false
|
void |
clearGiftCardLoads()
Clears the 'giftCardLoads' field, the 'has' method for this field will now return false
|
void |
clearNet()
Clears the 'net' field, the 'has' method for this field will now return false
|
void |
clearRefunds()
Clears the 'refunds' field, the 'has' method for this field will now return false
|
void |
clearSales()
Clears the 'sales' field, the 'has' method for this field will now return false
|
void |
clearTax()
Clears the 'tax' field, the 'has' method for this field will now return false
|
void |
clearTips()
Clears the 'tips' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
BatchTotalStats |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
protected GenericClient |
getGenericClient() |
BatchTotalType |
getGiftCardCashOuts() |
BatchTotalType |
getGiftCardLoads() |
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.
|
BatchTotalType |
getNet() |
BatchTotalType |
getRefunds() |
BatchTotalType |
getSales() |
BatchTotalType |
getTax() |
BatchTotalType |
getTips() |
boolean |
hasGiftCardCashOuts()
Checks whether the 'giftCardCashOuts' field has been set, however the value could be null
|
boolean |
hasGiftCardLoads()
Checks whether the 'giftCardLoads' field has been set, however the value could be null
|
boolean |
hasNet()
Checks whether the 'net' field has been set, however the value could be null
|
boolean |
hasRefunds()
Checks whether the 'refunds' field has been set, however the value could be null
|
boolean |
hasSales()
Checks whether the 'sales' field has been set, however the value could be null
|
boolean |
hasTax()
Checks whether the 'tax' field has been set, however the value could be null
|
boolean |
hasTips()
Checks whether the 'tips' field has been set, however the value could be null
|
boolean |
isNotNullGiftCardCashOuts()
Checks whether the 'giftCardCashOuts' field is set and is not null
|
boolean |
isNotNullGiftCardLoads()
Checks whether the 'giftCardLoads' field is set and is not null
|
boolean |
isNotNullNet()
Checks whether the 'net' field is set and is not null
|
boolean |
isNotNullRefunds()
Checks whether the 'refunds' field is set and is not null
|
boolean |
isNotNullSales()
Checks whether the 'sales' field is set and is not null
|
boolean |
isNotNullTax()
Checks whether the 'tax' field is set and is not null
|
boolean |
isNotNullTips()
Checks whether the 'tips' field is set and is not null
|
void |
mergeChanges(BatchTotalStats 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.
|
BatchTotalStats |
setGiftCardCashOuts(BatchTotalType giftCardCashOuts)
Sets the field 'giftCardCashOuts'.
|
BatchTotalStats |
setGiftCardLoads(BatchTotalType giftCardLoads)
Sets the field 'giftCardLoads'.
|
BatchTotalStats |
setNet(BatchTotalType net)
Sets the field 'net'.
|
BatchTotalStats |
setRefunds(BatchTotalType refunds)
Sets the field 'refunds'.
|
BatchTotalStats |
setSales(BatchTotalType sales)
Sets the field 'sales'.
|
BatchTotalStats |
setTax(BatchTotalType tax)
Sets the field 'tax'.
|
BatchTotalStats |
setTips(BatchTotalType tips)
Sets the field 'tips'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<BatchTotalStats> CREATOR
public static final JSONifiable.Creator<BatchTotalStats> JSON_CREATOR
public BatchTotalStats()
protected BatchTotalStats(boolean noInit)
public BatchTotalStats(String json) throws IllegalArgumentException
IllegalArgumentException
public BatchTotalStats(JSONObject jsonObject)
public BatchTotalStats(BatchTotalStats src)
public BatchTotalType getSales()
public BatchTotalType getRefunds()
public BatchTotalType getNet()
public BatchTotalType getGiftCardLoads()
public BatchTotalType getGiftCardCashOuts()
public BatchTotalType getTax()
public BatchTotalType getTips()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullSales()
public boolean isNotNullRefunds()
public boolean isNotNullNet()
public boolean isNotNullGiftCardLoads()
public boolean isNotNullGiftCardCashOuts()
public boolean isNotNullTax()
public boolean isNotNullTips()
public boolean hasSales()
public boolean hasRefunds()
public boolean hasNet()
public boolean hasGiftCardLoads()
public boolean hasGiftCardCashOuts()
public boolean hasTax()
public boolean hasTips()
public BatchTotalStats setSales(BatchTotalType sales)
public BatchTotalStats setRefunds(BatchTotalType refunds)
public BatchTotalStats setNet(BatchTotalType net)
public BatchTotalStats setGiftCardLoads(BatchTotalType giftCardLoads)
public BatchTotalStats setGiftCardCashOuts(BatchTotalType giftCardCashOuts)
public BatchTotalStats setTax(BatchTotalType tax)
public BatchTotalStats setTips(BatchTotalType tips)
public void clearSales()
public void clearRefunds()
public void clearNet()
public void clearGiftCardLoads()
public void clearGiftCardCashOuts()
public void clearTax()
public void clearTips()
public boolean containsChanges()
public void resetChangeLog()
public BatchTotalStats copyChanges()
public void mergeChanges(BatchTotalStats src)