public class CreditRefund extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
CreditRefund.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<CreditRefund> |
CREATOR |
static JSONifiable.Creator<CreditRefund> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
CreditRefund()
Constructs a new empty instance.
|
protected |
CreditRefund(boolean noInit)
Constructs a new empty instance.
|
|
CreditRefund(CreditRefund src)
Constructs a new instance that is a deep copy of the source instance.
|
|
CreditRefund(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.
|
|
CreditRefund(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAppTracking()
Clears the 'appTracking' field, the 'has' method for this field will now return false
|
void |
clearClientCreatedTime()
Clears the 'clientCreatedTime' 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 |
clearCredit()
Clears the 'credit' field, the 'has' method for this field will now return false
|
void |
clearDevice()
Clears the 'device' 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 |
clearGermanInfo()
Clears the 'germanInfo' 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 |
clearOrderRef()
Clears the 'orderRef' field, the 'has' method for this field will now return false
|
void |
clearTransactionInfo()
Clears the 'transactionInfo' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
CreditRefund |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
AppTracking |
getAppTracking()
Tracking information for the app that created this payment.
|
Long |
getClientCreatedTime()
The time when the refund was recorded on the client
|
Long |
getCreatedTime()
The time when the refund was recorded on the server
|
Reference |
getCredit()
The credit with which the credit refund is associated
|
Reference |
getDevice()
Device which processed the transaction for this refund, a 128-bit UUID, not a normal base-13 Clover ID.
|
Reference |
getEmployee() |
protected GenericClient |
getGenericClient() |
GermanInfo |
getGermanInfo()
German region-specific information
|
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.
|
Reference |
getOrderRef()
The order with which the refund is associated
|
TransactionInfo |
getTransactionInfo()
Transaction information
|
boolean |
hasAppTracking()
Checks whether the 'appTracking' field has been set, however the value could be null
|
boolean |
hasClientCreatedTime()
Checks whether the 'clientCreatedTime' 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 |
hasCredit()
Checks whether the 'credit' field has been set, however the value could be null
|
boolean |
hasDevice()
Checks whether the 'device' 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 |
hasGermanInfo()
Checks whether the 'germanInfo' 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 |
hasOrderRef()
Checks whether the 'orderRef' field has been set, however the value could be null
|
boolean |
hasTransactionInfo()
Checks whether the 'transactionInfo' field has been set, however the value could be null
|
boolean |
isNotNullAppTracking()
Checks whether the 'appTracking' field is set and is not null
|
boolean |
isNotNullClientCreatedTime()
Checks whether the 'clientCreatedTime' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullCredit()
Checks whether the 'credit' field is set and is not null
|
boolean |
isNotNullDevice()
Checks whether the 'device' field is set and is not null
|
boolean |
isNotNullEmployee()
Checks whether the 'employee' field is set and is not null
|
boolean |
isNotNullGermanInfo()
Checks whether the 'germanInfo' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullOrderRef()
Checks whether the 'orderRef' field is set and is not null
|
boolean |
isNotNullTransactionInfo()
Checks whether the 'transactionInfo' field is set and is not null
|
void |
mergeChanges(CreditRefund 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.
|
CreditRefund |
setAppTracking(AppTracking appTracking)
Sets the field 'appTracking'.
|
CreditRefund |
setClientCreatedTime(Long clientCreatedTime)
Sets the field 'clientCreatedTime'.
|
CreditRefund |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
CreditRefund |
setCredit(Reference credit)
Sets the field 'credit'.
|
CreditRefund |
setDevice(Reference device)
Sets the field 'device'.
|
CreditRefund |
setEmployee(Reference employee)
Sets the field 'employee'.
|
CreditRefund |
setGermanInfo(GermanInfo germanInfo)
Sets the field 'germanInfo'.
|
CreditRefund |
setId(String id)
Sets the field 'id'.
|
CreditRefund |
setOrderRef(Reference orderRef)
Sets the field 'orderRef'.
|
CreditRefund |
setTransactionInfo(TransactionInfo transactionInfo)
Sets the field 'transactionInfo'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<CreditRefund> CREATOR
public static final JSONifiable.Creator<CreditRefund> JSON_CREATOR
public CreditRefund()
protected CreditRefund(boolean noInit)
public CreditRefund(String json) throws IllegalArgumentException
IllegalArgumentException
public CreditRefund(JSONObject jsonObject)
public CreditRefund(CreditRefund src)
public String getId()
public Reference getOrderRef()
public Reference getDevice()
public Long getCreatedTime()
public Long getClientCreatedTime()
public Reference getCredit()
public Reference getEmployee()
public GermanInfo getGermanInfo()
public AppTracking getAppTracking()
public TransactionInfo getTransactionInfo()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullOrderRef()
public boolean isNotNullDevice()
public boolean isNotNullCreatedTime()
public boolean isNotNullClientCreatedTime()
public boolean isNotNullCredit()
public boolean isNotNullEmployee()
public boolean isNotNullGermanInfo()
public boolean isNotNullAppTracking()
public boolean isNotNullTransactionInfo()
public boolean hasId()
public boolean hasOrderRef()
public boolean hasDevice()
public boolean hasCreatedTime()
public boolean hasClientCreatedTime()
public boolean hasCredit()
public boolean hasEmployee()
public boolean hasGermanInfo()
public boolean hasAppTracking()
public boolean hasTransactionInfo()
public CreditRefund setId(String id)
public CreditRefund setOrderRef(Reference orderRef)
public CreditRefund setDevice(Reference device)
public CreditRefund setCreatedTime(Long createdTime)
public CreditRefund setClientCreatedTime(Long clientCreatedTime)
public CreditRefund setCredit(Reference credit)
public CreditRefund setEmployee(Reference employee)
public CreditRefund setGermanInfo(GermanInfo germanInfo)
public CreditRefund setAppTracking(AppTracking appTracking)
public CreditRefund setTransactionInfo(TransactionInfo transactionInfo)
public void clearId()
public void clearOrderRef()
public void clearDevice()
public void clearCreatedTime()
public void clearClientCreatedTime()
public void clearCredit()
public void clearEmployee()
public void clearGermanInfo()
public void clearAppTracking()
public void clearTransactionInfo()
public boolean containsChanges()
public void resetChangeLog()
public CreditRefund copyChanges()
public void mergeChanges(CreditRefund src)