public class OrderChangeReason extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
OrderChangeReason.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<OrderChangeReason> |
CREATOR |
static JSONifiable.Creator<OrderChangeReason> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
OrderChangeReason()
Constructs a new empty instance.
|
protected |
OrderChangeReason(boolean noInit)
Constructs a new empty instance.
|
|
OrderChangeReason(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.
|
|
OrderChangeReason(OrderChangeReason src)
Constructs a new instance that is a deep copy of the source instance.
|
|
OrderChangeReason(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearDeletedTime()
Clears the 'deletedTime' 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 |
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 |
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
|
void |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
void |
clearOrdinal()
Clears the 'ordinal' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
OrderChangeReason |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getCreatedTime() |
Long |
getDeletedTime()
Deleted time
|
protected GenericClient |
getGenericClient() |
String |
getId()
Unique Identifier
|
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()
Reason for cancellation
|
String |
getLabelKey()
Label Key for localization
|
Reference |
getMerchant()
The merchant this belongs to
|
Long |
getModifiedTime() |
Long |
getOrdinal() |
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasDeletedTime()
Checks whether the 'deletedTime' 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 |
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 |
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
|
boolean |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
hasOrdinal()
Checks whether the 'ordinal' field has been set, however the value could be null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' 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 |
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullOrdinal()
Checks whether the 'ordinal' field is set and is not null
|
void |
mergeChanges(OrderChangeReason 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.
|
OrderChangeReason |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
OrderChangeReason |
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
|
OrderChangeReason |
setId(String id)
Sets the field 'id'.
|
OrderChangeReason |
setLabel(String label)
Sets the field 'label'.
|
OrderChangeReason |
setLabelKey(String labelKey)
Sets the field 'labelKey'.
|
OrderChangeReason |
setMerchant(Reference merchant)
Sets the field 'merchant'.
|
OrderChangeReason |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
OrderChangeReason |
setOrdinal(Long ordinal)
Sets the field 'ordinal'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<OrderChangeReason> CREATOR
public static final JSONifiable.Creator<OrderChangeReason> JSON_CREATOR
public OrderChangeReason()
protected OrderChangeReason(boolean noInit)
public OrderChangeReason(String json) throws IllegalArgumentException
IllegalArgumentException
public OrderChangeReason(JSONObject jsonObject)
public OrderChangeReason(OrderChangeReason src)
public String getId()
public Reference getMerchant()
public String getLabel()
public String getLabelKey()
public Long getOrdinal()
public Long getCreatedTime()
public Long getModifiedTime()
public Long getDeletedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullMerchant()
public boolean isNotNullLabel()
public boolean isNotNullLabelKey()
public boolean isNotNullOrdinal()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullDeletedTime()
public boolean hasId()
public boolean hasMerchant()
public boolean hasLabel()
public boolean hasLabelKey()
public boolean hasOrdinal()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasDeletedTime()
public OrderChangeReason setId(String id)
public OrderChangeReason setMerchant(Reference merchant)
public OrderChangeReason setLabel(String label)
public OrderChangeReason setLabelKey(String labelKey)
public OrderChangeReason setOrdinal(Long ordinal)
public OrderChangeReason setCreatedTime(Long createdTime)
public OrderChangeReason setModifiedTime(Long modifiedTime)
public OrderChangeReason setDeletedTime(Long deletedTime)
public void clearId()
public void clearMerchant()
public void clearLabel()
public void clearLabelKey()
public void clearOrdinal()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearDeletedTime()
public boolean containsChanges()
public void resetChangeLog()
public OrderChangeReason copyChanges()
public void mergeChanges(OrderChangeReason src)