Package com.clover.sdk.v3.payments
Class CreditRefund
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.CreditRefund
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class CreditRefund extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CreditRefund.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<CreditRefund>
CREATOR
static JSONifiable.Creator<CreditRefund>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor 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(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAppTracking()
Clears the 'appTracking' field, the 'has' method for this field will now return falsevoid
clearClientCreatedTime()
Clears the 'clientCreatedTime' field, the 'has' method for this field will now return falsevoid
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearCredit()
Clears the 'credit' field, the 'has' method for this field will now return falsevoid
clearDevice()
Clears the 'device' field, the 'has' method for this field will now return falsevoid
clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return falsevoid
clearGermanInfo()
Clears the 'germanInfo' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearOrderRef()
Clears the 'orderRef' field, the 'has' method for this field will now return falsevoid
clearReason()
Clears the 'reason' field, the 'has' method for this field will now return falsevoid
clearTransactionInfo()
Clears the 'transactionInfo' field, the 'has' method for this field will now return falseboolean
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 clientLong
getCreatedTime()
The time when the refund was recorded on the serverReference
getCredit()
The credit with which the credit refund is associatedReference
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 informationString
getId()
Unique identifierJSONObject
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 associatedString
getReason()
Reason why the credit refund was initiatedTransactionInfo
getTransactionInfo()
Transaction informationboolean
hasAppTracking()
Checks whether the 'appTracking' field has been set, however the value could be nullboolean
hasClientCreatedTime()
Checks whether the 'clientCreatedTime' field has been set, however the value could be nullboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasCredit()
Checks whether the 'credit' field has been set, however the value could be nullboolean
hasDevice()
Checks whether the 'device' field has been set, however the value could be nullboolean
hasEmployee()
Checks whether the 'employee' field has been set, however the value could be nullboolean
hasGermanInfo()
Checks whether the 'germanInfo' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasOrderRef()
Checks whether the 'orderRef' field has been set, however the value could be nullboolean
hasReason()
Checks whether the 'reason' field has been set, however the value could be nullboolean
hasTransactionInfo()
Checks whether the 'transactionInfo' field has been set, however the value could be nullboolean
isNotNullAppTracking()
Checks whether the 'appTracking' field is set and is not nullboolean
isNotNullClientCreatedTime()
Checks whether the 'clientCreatedTime' field is set and is not nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullCredit()
Checks whether the 'credit' field is set and is not nullboolean
isNotNullDevice()
Checks whether the 'device' field is set and is not nullboolean
isNotNullEmployee()
Checks whether the 'employee' field is set and is not nullboolean
isNotNullGermanInfo()
Checks whether the 'germanInfo' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullOrderRef()
Checks whether the 'orderRef' field is set and is not nullboolean
isNotNullReason()
Checks whether the 'reason' field is set and is not nullboolean
isNotNullTransactionInfo()
Checks whether the 'transactionInfo' field is set and is not nullvoid
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
setReason(String reason)
Sets the field 'reason'.CreditRefund
setTransactionInfo(TransactionInfo transactionInfo)
Sets the field 'transactionInfo'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<CreditRefund> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<CreditRefund> JSON_CREATOR
-
-
Constructor Detail
-
CreditRefund
public CreditRefund()
Constructs a new empty instance.
-
CreditRefund
protected CreditRefund(boolean noInit)
Constructs a new empty instance.
-
CreditRefund
public CreditRefund(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
CreditRefund
public 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
public CreditRefund(CreditRefund src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
Unique identifier
-
getOrderRef
public Reference getOrderRef()
The order with which the refund is associated
-
getDevice
public Reference getDevice()
Device which processed the transaction for this refund, a 128-bit UUID, not a normal base-13 Clover ID.
-
getCreatedTime
public Long getCreatedTime()
The time when the refund was recorded on the server
-
getClientCreatedTime
public Long getClientCreatedTime()
The time when the refund was recorded on the client
-
getCredit
public Reference getCredit()
The credit with which the credit refund is associated
-
getEmployee
public Reference getEmployee()
-
getGermanInfo
public GermanInfo getGermanInfo()
German region-specific information
-
getAppTracking
public AppTracking getAppTracking()
Tracking information for the app that created this payment.
-
getReason
public String getReason()
Reason why the credit refund was initiated
-
getTransactionInfo
public TransactionInfo getTransactionInfo()
Transaction information
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public 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.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullOrderRef
public boolean isNotNullOrderRef()
Checks whether the 'orderRef' field is set and is not null
-
isNotNullDevice
public boolean isNotNullDevice()
Checks whether the 'device' field is set and is not null
-
isNotNullCreatedTime
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
-
isNotNullClientCreatedTime
public boolean isNotNullClientCreatedTime()
Checks whether the 'clientCreatedTime' field is set and is not null
-
isNotNullCredit
public boolean isNotNullCredit()
Checks whether the 'credit' field is set and is not null
-
isNotNullEmployee
public boolean isNotNullEmployee()
Checks whether the 'employee' field is set and is not null
-
isNotNullGermanInfo
public boolean isNotNullGermanInfo()
Checks whether the 'germanInfo' field is set and is not null
-
isNotNullAppTracking
public boolean isNotNullAppTracking()
Checks whether the 'appTracking' field is set and is not null
-
isNotNullReason
public boolean isNotNullReason()
Checks whether the 'reason' field is set and is not null
-
isNotNullTransactionInfo
public boolean isNotNullTransactionInfo()
Checks whether the 'transactionInfo' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasOrderRef
public boolean hasOrderRef()
Checks whether the 'orderRef' field has been set, however the value could be null
-
hasDevice
public boolean hasDevice()
Checks whether the 'device' field has been set, however the value could be null
-
hasCreatedTime
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
-
hasClientCreatedTime
public boolean hasClientCreatedTime()
Checks whether the 'clientCreatedTime' field has been set, however the value could be null
-
hasCredit
public boolean hasCredit()
Checks whether the 'credit' field has been set, however the value could be null
-
hasEmployee
public boolean hasEmployee()
Checks whether the 'employee' field has been set, however the value could be null
-
hasGermanInfo
public boolean hasGermanInfo()
Checks whether the 'germanInfo' field has been set, however the value could be null
-
hasAppTracking
public boolean hasAppTracking()
Checks whether the 'appTracking' field has been set, however the value could be null
-
hasReason
public boolean hasReason()
Checks whether the 'reason' field has been set, however the value could be null
-
hasTransactionInfo
public boolean hasTransactionInfo()
Checks whether the 'transactionInfo' field has been set, however the value could be null
-
setId
public CreditRefund setId(String id)
Sets the field 'id'.
-
setOrderRef
public CreditRefund setOrderRef(Reference orderRef)
Sets the field 'orderRef'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setDevice
public CreditRefund setDevice(Reference device)
Sets the field 'device'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setCreatedTime
public CreditRefund setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
-
setClientCreatedTime
public CreditRefund setClientCreatedTime(Long clientCreatedTime)
Sets the field 'clientCreatedTime'.
-
setCredit
public CreditRefund setCredit(Reference credit)
Sets the field 'credit'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setEmployee
public CreditRefund setEmployee(Reference employee)
Sets the field 'employee'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setGermanInfo
public CreditRefund setGermanInfo(GermanInfo germanInfo)
Sets the field 'germanInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setAppTracking
public CreditRefund setAppTracking(AppTracking appTracking)
Sets the field 'appTracking'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setReason
public CreditRefund setReason(String reason)
Sets the field 'reason'.
-
setTransactionInfo
public CreditRefund setTransactionInfo(TransactionInfo transactionInfo)
Sets the field 'transactionInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearOrderRef
public void clearOrderRef()
Clears the 'orderRef' field, the 'has' method for this field will now return false
-
clearDevice
public void clearDevice()
Clears the 'device' field, the 'has' method for this field will now return false
-
clearCreatedTime
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
-
clearClientCreatedTime
public void clearClientCreatedTime()
Clears the 'clientCreatedTime' field, the 'has' method for this field will now return false
-
clearCredit
public void clearCredit()
Clears the 'credit' field, the 'has' method for this field will now return false
-
clearEmployee
public void clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return false
-
clearGermanInfo
public void clearGermanInfo()
Clears the 'germanInfo' field, the 'has' method for this field will now return false
-
clearAppTracking
public void clearAppTracking()
Clears the 'appTracking' field, the 'has' method for this field will now return false
-
clearReason
public void clearReason()
Clears the 'reason' field, the 'has' method for this field will now return false
-
clearTransactionInfo
public void clearTransactionInfo()
Clears the 'transactionInfo' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public CreditRefund copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(CreditRefund src)
Copy all the changed fields from the given source to this instance.
-
-