public class AnomalyReasons extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
AnomalyReasons.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AnomalyReasons> |
CREATOR |
static JSONifiable.Creator<AnomalyReasons> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
AnomalyReasons()
Constructs a new empty instance.
|
|
AnomalyReasons(AnomalyReasons src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
AnomalyReasons(boolean noInit)
Constructs a new empty instance.
|
|
AnomalyReasons(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.
|
|
AnomalyReasons(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 |
clearLocale()
Clears the 'locale' 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.
|
AnomalyReasons |
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 void/refund
|
String |
getLocale()
Language/country of the reason in locale format
|
Reference |
getMerchant()
The merchant this charge 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 |
hasLocale()
Checks whether the 'locale' 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 |
isNotNullLocale()
Checks whether the 'locale' 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(AnomalyReasons 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.
|
AnomalyReasons |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
AnomalyReasons |
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
|
AnomalyReasons |
setId(String id)
Sets the field 'id'.
|
AnomalyReasons |
setLabel(String label)
Sets the field 'label'.
|
AnomalyReasons |
setLocale(String locale)
Sets the field 'locale'.
|
AnomalyReasons |
setMerchant(Reference merchant)
Sets the field 'merchant'.
|
AnomalyReasons |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
AnomalyReasons |
setOrdinal(Long ordinal)
Sets the field 'ordinal'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<AnomalyReasons> CREATOR
public static final JSONifiable.Creator<AnomalyReasons> JSON_CREATOR
public AnomalyReasons()
protected AnomalyReasons(boolean noInit)
public AnomalyReasons(String json) throws IllegalArgumentException
IllegalArgumentException
public AnomalyReasons(JSONObject jsonObject)
public AnomalyReasons(AnomalyReasons src)
public String getId()
public Reference getMerchant()
public String getLabel()
public Long getOrdinal()
public Long getCreatedTime()
public Long getModifiedTime()
public String getLocale()
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 isNotNullOrdinal()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullLocale()
public boolean isNotNullDeletedTime()
public boolean hasId()
public boolean hasMerchant()
public boolean hasLabel()
public boolean hasOrdinal()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasLocale()
public boolean hasDeletedTime()
public AnomalyReasons setId(String id)
public AnomalyReasons setMerchant(Reference merchant)
public AnomalyReasons setLabel(String label)
public AnomalyReasons setOrdinal(Long ordinal)
public AnomalyReasons setCreatedTime(Long createdTime)
public AnomalyReasons setModifiedTime(Long modifiedTime)
public AnomalyReasons setLocale(String locale)
public AnomalyReasons setDeletedTime(Long deletedTime)
public void clearId()
public void clearMerchant()
public void clearLabel()
public void clearOrdinal()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearLocale()
public void clearDeletedTime()
public boolean containsChanges()
public void resetChangeLog()
public AnomalyReasons copyChanges()
public void mergeChanges(AnomalyReasons src)