public class GiftCardResponse extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
GiftCardResponse.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<GiftCardResponse> |
CREATOR |
static JSONifiable.Creator<GiftCardResponse> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
GiftCardResponse()
Constructs a new empty instance.
|
protected |
GiftCardResponse(boolean noInit)
Constructs a new empty instance.
|
|
GiftCardResponse(GiftCardResponse src)
Constructs a new instance that is a deep copy of the source instance.
|
|
GiftCardResponse(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.
|
|
GiftCardResponse(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAccountNumber()
Clears the 'accountNumber' field, the 'has' method for this field will now return false
|
void |
clearAuthCode()
Clears the 'authCode' field, the 'has' method for this field will now return false
|
void |
clearBegBal()
Clears the 'begBal' field, the 'has' method for this field will now return false
|
void |
clearEndBal()
Clears the 'endBal' field, the 'has' method for this field will now return false
|
void |
clearGiftCardTxUuid()
Clears the 'giftCardTxUuid' field, the 'has' method for this field will now return false
|
void |
clearHoldBal()
Clears the 'holdBal' 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 |
clearReferenceUuid()
Clears the 'referenceUuid' field, the 'has' method for this field will now return false
|
void |
clearRequestAmount()
Clears the 'requestAmount' 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 |
clearResponseMessage()
Clears the 'responseMessage' field, the 'has' method for this field will now return false
|
void |
clearScv()
Clears the 'scv' field, the 'has' method for this field will now return false
|
void |
clearState()
Clears the 'state' field, the 'has' method for this field will now return false
|
void |
clearSyncPaymentObject()
Clears the 'syncPaymentObject' field, the 'has' method for this field will now return false
|
void |
clearTransactionId()
Clears the 'transactionId' field, the 'has' method for this field will now return false
|
void |
clearTxType()
Clears the 'txType' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
GiftCardResponse |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getAccountNumber() |
String |
getAuthCode() |
Long |
getBegBal() |
Long |
getEndBal() |
protected GenericClient |
getGenericClient() |
String |
getGiftCardTxUuid() |
Long |
getHoldBal() |
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() |
String |
getReferenceUuid() |
Long |
getRequestAmount()
Transaction Amount
|
Boolean |
getRequestSuccessful() |
String |
getResponseMessage() |
String |
getScv() |
GiftCardState |
getState() |
Boolean |
getSyncPaymentObject() |
String |
getTransactionId() |
TxType |
getTxType() |
boolean |
hasAccountNumber()
Checks whether the 'accountNumber' field has been set, however the value could be null
|
boolean |
hasAuthCode()
Checks whether the 'authCode' field has been set, however the value could be null
|
boolean |
hasBegBal()
Checks whether the 'begBal' field has been set, however the value could be null
|
boolean |
hasEndBal()
Checks whether the 'endBal' field has been set, however the value could be null
|
boolean |
hasGiftCardTxUuid()
Checks whether the 'giftCardTxUuid' field has been set, however the value could be null
|
boolean |
hasHoldBal()
Checks whether the 'holdBal' 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 |
hasReferenceUuid()
Checks whether the 'referenceUuid' field has been set, however the value could be null
|
boolean |
hasRequestAmount()
Checks whether the 'requestAmount' 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 |
hasResponseMessage()
Checks whether the 'responseMessage' field has been set, however the value could be null
|
boolean |
hasScv()
Checks whether the 'scv' field has been set, however the value could be null
|
boolean |
hasState()
Checks whether the 'state' field has been set, however the value could be null
|
boolean |
hasSyncPaymentObject()
Checks whether the 'syncPaymentObject' field has been set, however the value could be null
|
boolean |
hasTransactionId()
Checks whether the 'transactionId' field has been set, however the value could be null
|
boolean |
hasTxType()
Checks whether the 'txType' field has been set, however the value could be null
|
boolean |
isNotNullAccountNumber()
Checks whether the 'accountNumber' field is set and is not null
|
boolean |
isNotNullAuthCode()
Checks whether the 'authCode' field is set and is not null
|
boolean |
isNotNullBegBal()
Checks whether the 'begBal' field is set and is not null
|
boolean |
isNotNullEndBal()
Checks whether the 'endBal' field is set and is not null
|
boolean |
isNotNullGiftCardTxUuid()
Checks whether the 'giftCardTxUuid' field is set and is not null
|
boolean |
isNotNullHoldBal()
Checks whether the 'holdBal' field is set and is not null
|
boolean |
isNotNullPayment()
Checks whether the 'payment' field is set and is not null
|
boolean |
isNotNullReferenceUuid()
Checks whether the 'referenceUuid' field is set and is not null
|
boolean |
isNotNullRequestAmount()
Checks whether the 'requestAmount' field is set and is not null
|
boolean |
isNotNullRequestSuccessful()
Checks whether the 'requestSuccessful' field is set and is not null
|
boolean |
isNotNullResponseMessage()
Checks whether the 'responseMessage' field is set and is not null
|
boolean |
isNotNullScv()
Checks whether the 'scv' field is set and is not null
|
boolean |
isNotNullState()
Checks whether the 'state' field is set and is not null
|
boolean |
isNotNullSyncPaymentObject()
Checks whether the 'syncPaymentObject' field is set and is not null
|
boolean |
isNotNullTransactionId()
Checks whether the 'transactionId' field is set and is not null
|
boolean |
isNotNullTxType()
Checks whether the 'txType' field is set and is not null
|
void |
mergeChanges(GiftCardResponse 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.
|
GiftCardResponse |
setAccountNumber(String accountNumber)
Sets the field 'accountNumber'.
|
GiftCardResponse |
setAuthCode(String authCode)
Sets the field 'authCode'.
|
GiftCardResponse |
setBegBal(Long begBal)
Sets the field 'begBal'.
|
GiftCardResponse |
setEndBal(Long endBal)
Sets the field 'endBal'.
|
GiftCardResponse |
setGiftCardTxUuid(String giftCardTxUuid)
Sets the field 'giftCardTxUuid'.
|
GiftCardResponse |
setHoldBal(Long holdBal)
Sets the field 'holdBal'.
|
GiftCardResponse |
setPayment(Payment payment)
Sets the field 'payment'.
|
GiftCardResponse |
setReferenceUuid(String referenceUuid)
Sets the field 'referenceUuid'.
|
GiftCardResponse |
setRequestAmount(Long requestAmount)
Sets the field 'requestAmount'.
|
GiftCardResponse |
setRequestSuccessful(Boolean requestSuccessful)
Sets the field 'requestSuccessful'.
|
GiftCardResponse |
setResponseMessage(String responseMessage)
Sets the field 'responseMessage'.
|
GiftCardResponse |
setScv(String scv)
Sets the field 'scv'.
|
GiftCardResponse |
setState(GiftCardState state)
Sets the field 'state'.
|
GiftCardResponse |
setSyncPaymentObject(Boolean syncPaymentObject)
Sets the field 'syncPaymentObject'.
|
GiftCardResponse |
setTransactionId(String transactionId)
Sets the field 'transactionId'.
|
GiftCardResponse |
setTxType(TxType txType)
Sets the field 'txType'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<GiftCardResponse> CREATOR
public static final JSONifiable.Creator<GiftCardResponse> JSON_CREATOR
public GiftCardResponse()
protected GiftCardResponse(boolean noInit)
public GiftCardResponse(String json) throws IllegalArgumentException
IllegalArgumentException
public GiftCardResponse(JSONObject jsonObject)
public GiftCardResponse(GiftCardResponse src)
public TxType getTxType()
public GiftCardState getState()
public Long getRequestAmount()
public Payment getPayment()
public String getResponseMessage()
public Boolean getRequestSuccessful()
public String getAccountNumber()
public String getScv()
public String getGiftCardTxUuid()
public String getTransactionId()
public String getReferenceUuid()
public String getAuthCode()
public Long getBegBal()
public Long getEndBal()
public Long getHoldBal()
public Boolean getSyncPaymentObject()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullTxType()
public boolean isNotNullState()
public boolean isNotNullRequestAmount()
public boolean isNotNullPayment()
public boolean isNotNullResponseMessage()
public boolean isNotNullRequestSuccessful()
public boolean isNotNullAccountNumber()
public boolean isNotNullScv()
public boolean isNotNullGiftCardTxUuid()
public boolean isNotNullTransactionId()
public boolean isNotNullReferenceUuid()
public boolean isNotNullAuthCode()
public boolean isNotNullBegBal()
public boolean isNotNullEndBal()
public boolean isNotNullHoldBal()
public boolean isNotNullSyncPaymentObject()
public boolean hasTxType()
public boolean hasState()
public boolean hasRequestAmount()
public boolean hasPayment()
public boolean hasResponseMessage()
public boolean hasRequestSuccessful()
public boolean hasAccountNumber()
public boolean hasScv()
public boolean hasGiftCardTxUuid()
public boolean hasTransactionId()
public boolean hasReferenceUuid()
public boolean hasAuthCode()
public boolean hasBegBal()
public boolean hasEndBal()
public boolean hasHoldBal()
public boolean hasSyncPaymentObject()
public GiftCardResponse setTxType(TxType txType)
public GiftCardResponse setState(GiftCardState state)
public GiftCardResponse setRequestAmount(Long requestAmount)
public GiftCardResponse setPayment(Payment payment)
public GiftCardResponse setResponseMessage(String responseMessage)
public GiftCardResponse setRequestSuccessful(Boolean requestSuccessful)
public GiftCardResponse setAccountNumber(String accountNumber)
public GiftCardResponse setScv(String scv)
public GiftCardResponse setGiftCardTxUuid(String giftCardTxUuid)
public GiftCardResponse setTransactionId(String transactionId)
public GiftCardResponse setReferenceUuid(String referenceUuid)
public GiftCardResponse setAuthCode(String authCode)
public GiftCardResponse setBegBal(Long begBal)
public GiftCardResponse setEndBal(Long endBal)
public GiftCardResponse setHoldBal(Long holdBal)
public GiftCardResponse setSyncPaymentObject(Boolean syncPaymentObject)
public void clearTxType()
public void clearState()
public void clearRequestAmount()
public void clearPayment()
public void clearResponseMessage()
public void clearRequestSuccessful()
public void clearAccountNumber()
public void clearScv()
public void clearGiftCardTxUuid()
public void clearTransactionId()
public void clearReferenceUuid()
public void clearAuthCode()
public void clearBegBal()
public void clearEndBal()
public void clearHoldBal()
public void clearSyncPaymentObject()
public boolean containsChanges()
public void resetChangeLog()
public GiftCardResponse copyChanges()
public void mergeChanges(GiftCardResponse src)