public class IncrementalAuthorization extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
IncrementalAuthorization.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<IncrementalAuthorization> |
CREATOR |
static JSONifiable.Creator<IncrementalAuthorization> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
IncrementalAuthorization()
Constructs a new empty instance.
|
protected |
IncrementalAuthorization(boolean noInit)
Constructs a new empty instance.
|
|
IncrementalAuthorization(IncrementalAuthorization src)
Constructs a new instance that is a deep copy of the source instance.
|
|
IncrementalAuthorization(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.
|
|
IncrementalAuthorization(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return false
|
void |
clearCardTransaction()
Clears the 'cardTransaction' field, the 'has' method for this field will now return false
|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearEmployee()
Clears the 'employee' 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 |
clearResult()
Clears the 'result' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
IncrementalAuthorization |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getAmount()
Amount of the incremental authorization
|
CardTransaction |
getCardTransaction() |
Long |
getCreatedTime()
Created time on the server
|
Reference |
getEmployee()
The employee who processed the incremental Auth
|
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.
|
Result |
getResult()
Result of the incremental auth
|
boolean |
hasAmount()
Checks whether the 'amount' field has been set, however the value could be null
|
boolean |
hasCardTransaction()
Checks whether the 'cardTransaction' field has been set, however the value could be null
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasEmployee()
Checks whether the 'employee' 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 |
hasResult()
Checks whether the 'result' field has been set, however the value could be null
|
boolean |
isNotNullAmount()
Checks whether the 'amount' field is set and is not null
|
boolean |
isNotNullCardTransaction()
Checks whether the 'cardTransaction' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullEmployee()
Checks whether the 'employee' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullResult()
Checks whether the 'result' field is set and is not null
|
void |
mergeChanges(IncrementalAuthorization 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.
|
IncrementalAuthorization |
setAmount(Long amount)
Sets the field 'amount'.
|
IncrementalAuthorization |
setCardTransaction(CardTransaction cardTransaction)
Sets the field 'cardTransaction'.
|
IncrementalAuthorization |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
IncrementalAuthorization |
setEmployee(Reference employee)
Sets the field 'employee'.
|
IncrementalAuthorization |
setId(String id)
Sets the field 'id'.
|
IncrementalAuthorization |
setResult(Result result)
Sets the field 'result'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<IncrementalAuthorization> CREATOR
public static final JSONifiable.Creator<IncrementalAuthorization> JSON_CREATOR
public IncrementalAuthorization()
protected IncrementalAuthorization(boolean noInit)
public IncrementalAuthorization(String json) throws IllegalArgumentException
IllegalArgumentException
public IncrementalAuthorization(JSONObject jsonObject)
public IncrementalAuthorization(IncrementalAuthorization src)
public String getId()
public Long getAmount()
public CardTransaction getCardTransaction()
public Result getResult()
public Long getCreatedTime()
public Reference getEmployee()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullAmount()
public boolean isNotNullCardTransaction()
public boolean isNotNullResult()
public boolean isNotNullCreatedTime()
public boolean isNotNullEmployee()
public boolean hasId()
public boolean hasAmount()
public boolean hasCardTransaction()
public boolean hasResult()
public boolean hasCreatedTime()
public boolean hasEmployee()
public IncrementalAuthorization setId(String id)
public IncrementalAuthorization setAmount(Long amount)
public IncrementalAuthorization setCardTransaction(CardTransaction cardTransaction)
public IncrementalAuthorization setResult(Result result)
public IncrementalAuthorization setCreatedTime(Long createdTime)
public IncrementalAuthorization setEmployee(Reference employee)
public void clearId()
public void clearAmount()
public void clearCardTransaction()
public void clearResult()
public void clearCreatedTime()
public void clearEmployee()
public boolean containsChanges()
public void resetChangeLog()
public IncrementalAuthorization copyChanges()
public void mergeChanges(IncrementalAuthorization src)