Package com.clover.sdk.v3.payments
Class RefundResponse
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.RefundResponse
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class RefundResponse 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
RefundResponse.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<RefundResponse>
CREATOR
static JSONifiable.Creator<RefundResponse>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description RefundResponse()
Constructs a new empty instance.protected
RefundResponse(boolean noInit)
Constructs a new empty instance.RefundResponse(RefundResponse src)
Constructs a new instance that is a deep copy of the source instance.RefundResponse(String json)
Constructs a new instance from the given JSON String.RefundResponse(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
clearExtra()
Clears the 'extra' field, the 'has' method for this field will now return falsevoid
clearPayment()
Clears the 'payment' field, the 'has' method for this field will now return falsevoid
clearRefund()
Clears the 'refund' field, the 'has' method for this field will now return falsevoid
clearRequestSuccessful()
Clears the 'requestSuccessful' field, the 'has' method for this field will now return falsevoid
clearResponseErrorMessage()
Clears the 'responseErrorMessage' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.RefundResponse
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Map<String,String>
getExtra()
extra stuffprotected GenericClient
getGenericClient()
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.Payment
getPayment()
Refund
getRefund()
Boolean
getRequestSuccessful()
String
getResponseErrorMessage()
boolean
hasExtra()
Checks whether the 'extra' field has been set, however the value could be nullboolean
hasPayment()
Checks whether the 'payment' field has been set, however the value could be nullboolean
hasRefund()
Checks whether the 'refund' field has been set, however the value could be nullboolean
hasRequestSuccessful()
Checks whether the 'requestSuccessful' field has been set, however the value could be nullboolean
hasResponseErrorMessage()
Checks whether the 'responseErrorMessage' field has been set, however the value could be nullboolean
isNotEmptyExtra()
Checks whether the 'extra' field is set and is not null and is not emptyboolean
isNotNullExtra()
Checks whether the 'extra' field is set and is not nullboolean
isNotNullPayment()
Checks whether the 'payment' field is set and is not nullboolean
isNotNullRefund()
Checks whether the 'refund' field is set and is not nullboolean
isNotNullRequestSuccessful()
Checks whether the 'requestSuccessful' field is set and is not nullboolean
isNotNullResponseErrorMessage()
Checks whether the 'responseErrorMessage' field is set and is not nullvoid
mergeChanges(RefundResponse 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.RefundResponse
setExtra(Map<String,String> extra)
Sets the field 'extra'.RefundResponse
setPayment(Payment payment)
Sets the field 'payment'.RefundResponse
setRefund(Refund refund)
Sets the field 'refund'.RefundResponse
setRequestSuccessful(Boolean requestSuccessful)
Sets the field 'requestSuccessful'.RefundResponse
setResponseErrorMessage(String responseErrorMessage)
Sets the field 'responseErrorMessage'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<RefundResponse> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<RefundResponse> JSON_CREATOR
-
-
Constructor Detail
-
RefundResponse
public RefundResponse()
Constructs a new empty instance.
-
RefundResponse
protected RefundResponse(boolean noInit)
Constructs a new empty instance.
-
RefundResponse
public RefundResponse(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
RefundResponse
public RefundResponse(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.
-
RefundResponse
public RefundResponse(RefundResponse src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getRequestSuccessful
public Boolean getRequestSuccessful()
-
getResponseErrorMessage
public String getResponseErrorMessage()
-
getRefund
public Refund getRefund()
-
getPayment
public Payment getPayment()
-
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
-
isNotNullRequestSuccessful
public boolean isNotNullRequestSuccessful()
Checks whether the 'requestSuccessful' field is set and is not null
-
isNotNullResponseErrorMessage
public boolean isNotNullResponseErrorMessage()
Checks whether the 'responseErrorMessage' field is set and is not null
-
isNotNullRefund
public boolean isNotNullRefund()
Checks whether the 'refund' field is set and is not null
-
isNotNullPayment
public boolean isNotNullPayment()
Checks whether the 'payment' field is set and is not null
-
isNotNullExtra
public boolean isNotNullExtra()
Checks whether the 'extra' field is set and is not null
-
isNotEmptyExtra
public boolean isNotEmptyExtra()
Checks whether the 'extra' field is set and is not null and is not empty
-
hasRequestSuccessful
public boolean hasRequestSuccessful()
Checks whether the 'requestSuccessful' field has been set, however the value could be null
-
hasResponseErrorMessage
public boolean hasResponseErrorMessage()
Checks whether the 'responseErrorMessage' field has been set, however the value could be null
-
hasRefund
public boolean hasRefund()
Checks whether the 'refund' field has been set, however the value could be null
-
hasPayment
public boolean hasPayment()
Checks whether the 'payment' field has been set, however the value could be null
-
hasExtra
public boolean hasExtra()
Checks whether the 'extra' field has been set, however the value could be null
-
setRequestSuccessful
public RefundResponse setRequestSuccessful(Boolean requestSuccessful)
Sets the field 'requestSuccessful'.
-
setResponseErrorMessage
public RefundResponse setResponseErrorMessage(String responseErrorMessage)
Sets the field 'responseErrorMessage'.
-
setRefund
public RefundResponse setRefund(Refund refund)
Sets the field 'refund'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setPayment
public RefundResponse setPayment(Payment payment)
Sets the field 'payment'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setExtra
public RefundResponse setExtra(Map<String,String> extra)
Sets the field 'extra'.
-
clearRequestSuccessful
public void clearRequestSuccessful()
Clears the 'requestSuccessful' field, the 'has' method for this field will now return false
-
clearResponseErrorMessage
public void clearResponseErrorMessage()
Clears the 'responseErrorMessage' field, the 'has' method for this field will now return false
-
clearRefund
public void clearRefund()
Clears the 'refund' field, the 'has' method for this field will now return false
-
clearPayment
public void clearPayment()
Clears the 'payment' field, the 'has' method for this field will now return false
-
clearExtra
public void clearExtra()
Clears the 'extra' 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 RefundResponse copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(RefundResponse src)
Copy all the changed fields from the given source to this instance.
-
-