public class RefundRequest extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
RefundRequest.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<RefundRequest> |
CREATOR |
static JSONifiable.Creator<RefundRequest> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
RefundRequest()
Constructs a new empty instance.
|
protected |
RefundRequest(boolean noInit)
Constructs a new empty instance.
|
|
RefundRequest(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.
|
|
RefundRequest(RefundRequest src)
Constructs a new instance that is a deep copy of the source instance.
|
|
RefundRequest(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCard()
Clears the 'card' field, the 'has' method for this field will now return false
|
void |
clearIsAdjustment()
Clears the 'isAdjustment' 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
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
RefundRequest |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
PaymentRequestCardDetails |
getCard() |
protected GenericClient |
getGenericClient() |
Boolean |
getIsAdjustment() |
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.
|
Refund |
getRefund() |
boolean |
hasCard()
Checks whether the 'card' field has been set, however the value could be null
|
boolean |
hasIsAdjustment()
Checks whether the 'isAdjustment' 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 |
isNotNullCard()
Checks whether the 'card' field is set and is not null
|
boolean |
isNotNullIsAdjustment()
Checks whether the 'isAdjustment' field is set and is not null
|
boolean |
isNotNullRefund()
Checks whether the 'refund' field is set and is not null
|
void |
mergeChanges(RefundRequest 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.
|
RefundRequest |
setCard(PaymentRequestCardDetails card)
Sets the field 'card'.
|
RefundRequest |
setIsAdjustment(Boolean isAdjustment)
Sets the field 'isAdjustment'.
|
RefundRequest |
setRefund(Refund refund)
Sets the field 'refund'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<RefundRequest> CREATOR
public static final JSONifiable.Creator<RefundRequest> JSON_CREATOR
public RefundRequest()
protected RefundRequest(boolean noInit)
public RefundRequest(String json) throws IllegalArgumentException
IllegalArgumentException
public RefundRequest(JSONObject jsonObject)
public RefundRequest(RefundRequest src)
public Refund getRefund()
public PaymentRequestCardDetails getCard()
public Boolean getIsAdjustment()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullRefund()
public boolean isNotNullCard()
public boolean isNotNullIsAdjustment()
public boolean hasRefund()
public boolean hasCard()
public boolean hasIsAdjustment()
public RefundRequest setRefund(Refund refund)
public RefundRequest setCard(PaymentRequestCardDetails card)
public RefundRequest setIsAdjustment(Boolean isAdjustment)
public void clearRefund()
public void clearCard()
public void clearIsAdjustment()
public boolean containsChanges()
public void resetChangeLog()
public RefundRequest copyChanges()
public void mergeChanges(RefundRequest src)