public class RefundResponse extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
RefundResponse.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<RefundResponse> |
CREATOR |
static JSONifiable.Creator<RefundResponse> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
RefundResponse()
Constructs a new empty instance.
|
protected |
RefundResponse(boolean noInit)
Constructs a new empty instance.
|
|
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(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.
|
Modifier and Type | Method and Description |
---|---|
void |
clearExtra()
Clears the 'extra' field, the 'has' method for this field will now return false
|
void |
clearPayment()
Clears the 'payment' field, the 'has' method for this field will now return false
|
void |
clearRefund()
Clears the 'refund' field, the 'has' method for this field will now return false
|
void |
clearRequestSuccessful()
Clears the 'requestSuccessful' field, the 'has' method for this field will now return false
|
void |
clearResponseErrorMessage()
Clears the 'responseErrorMessage' field, the 'has' method for this field will now return false
|
boolean |
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 stuff
|
protected 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 null
|
boolean |
hasPayment()
Checks whether the 'payment' field has been set, however the value could be null
|
boolean |
hasRefund()
Checks whether the 'refund' field has been set, however the value could be null
|
boolean |
hasRequestSuccessful()
Checks whether the 'requestSuccessful' field has been set, however the value could be null
|
boolean |
hasResponseErrorMessage()
Checks whether the 'responseErrorMessage' field has been set, however the value could be null
|
boolean |
isNotEmptyExtra()
Checks whether the 'extra' field is set and is not null and is not empty
|
boolean |
isNotNullExtra()
Checks whether the 'extra' field is set and is not null
|
boolean |
isNotNullPayment()
Checks whether the 'payment' field is set and is not null
|
boolean |
isNotNullRefund()
Checks whether the 'refund' field is set and is not null
|
boolean |
isNotNullRequestSuccessful()
Checks whether the 'requestSuccessful' field is set and is not null
|
boolean |
isNotNullResponseErrorMessage()
Checks whether the 'responseErrorMessage' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<RefundResponse> CREATOR
public static final JSONifiable.Creator<RefundResponse> JSON_CREATOR
public RefundResponse()
protected RefundResponse(boolean noInit)
public RefundResponse(String json) throws IllegalArgumentException
IllegalArgumentException
public RefundResponse(JSONObject jsonObject)
public RefundResponse(RefundResponse src)
public Boolean getRequestSuccessful()
public String getResponseErrorMessage()
public Refund getRefund()
public Payment getPayment()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullRequestSuccessful()
public boolean isNotNullResponseErrorMessage()
public boolean isNotNullRefund()
public boolean isNotNullPayment()
public boolean isNotNullExtra()
public boolean isNotEmptyExtra()
public boolean hasRequestSuccessful()
public boolean hasResponseErrorMessage()
public boolean hasRefund()
public boolean hasPayment()
public boolean hasExtra()
public RefundResponse setRequestSuccessful(Boolean requestSuccessful)
public RefundResponse setResponseErrorMessage(String responseErrorMessage)
public RefundResponse setRefund(Refund refund)
public RefundResponse setPayment(Payment payment)
public RefundResponse setExtra(Map<String,String> extra)
public void clearRequestSuccessful()
public void clearResponseErrorMessage()
public void clearRefund()
public void clearPayment()
public void clearExtra()
public boolean containsChanges()
public void resetChangeLog()
public RefundResponse copyChanges()
public void mergeChanges(RefundResponse src)