Package com.clover.sdk.v3.payments
Class GiftCardResponse
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.GiftCardResponse
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class GiftCardResponse 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
GiftCardResponse.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<GiftCardResponse>
CREATOR
static JSONifiable.Creator<GiftCardResponse>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor 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(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAccountNumber()
Clears the 'accountNumber' field, the 'has' method for this field will now return falsevoid
clearAuthCode()
Clears the 'authCode' field, the 'has' method for this field will now return falsevoid
clearBegBal()
Clears the 'begBal' field, the 'has' method for this field will now return falsevoid
clearEndBal()
Clears the 'endBal' field, the 'has' method for this field will now return falsevoid
clearGiftCardTxUuid()
Clears the 'giftCardTxUuid' field, the 'has' method for this field will now return falsevoid
clearHoldBal()
Clears the 'holdBal' 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
clearReferenceUuid()
Clears the 'referenceUuid' field, the 'has' method for this field will now return falsevoid
clearRequestAmount()
Clears the 'requestAmount' 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
clearResponseMessage()
Clears the 'responseMessage' field, the 'has' method for this field will now return falsevoid
clearScv()
Clears the 'scv' field, the 'has' method for this field will now return falsevoid
clearState()
Clears the 'state' field, the 'has' method for this field will now return falsevoid
clearSyncPaymentObject()
Clears the 'syncPaymentObject' field, the 'has' method for this field will now return falsevoid
clearTransactionId()
Clears the 'transactionId' field, the 'has' method for this field will now return falsevoid
clearTxType()
Clears the 'txType' field, the 'has' method for this field will now return falseboolean
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 AmountBoolean
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 nullboolean
hasAuthCode()
Checks whether the 'authCode' field has been set, however the value could be nullboolean
hasBegBal()
Checks whether the 'begBal' field has been set, however the value could be nullboolean
hasEndBal()
Checks whether the 'endBal' field has been set, however the value could be nullboolean
hasGiftCardTxUuid()
Checks whether the 'giftCardTxUuid' field has been set, however the value could be nullboolean
hasHoldBal()
Checks whether the 'holdBal' 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
hasReferenceUuid()
Checks whether the 'referenceUuid' field has been set, however the value could be nullboolean
hasRequestAmount()
Checks whether the 'requestAmount' 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
hasResponseMessage()
Checks whether the 'responseMessage' field has been set, however the value could be nullboolean
hasScv()
Checks whether the 'scv' field has been set, however the value could be nullboolean
hasState()
Checks whether the 'state' field has been set, however the value could be nullboolean
hasSyncPaymentObject()
Checks whether the 'syncPaymentObject' field has been set, however the value could be nullboolean
hasTransactionId()
Checks whether the 'transactionId' field has been set, however the value could be nullboolean
hasTxType()
Checks whether the 'txType' field has been set, however the value could be nullboolean
isNotNullAccountNumber()
Checks whether the 'accountNumber' field is set and is not nullboolean
isNotNullAuthCode()
Checks whether the 'authCode' field is set and is not nullboolean
isNotNullBegBal()
Checks whether the 'begBal' field is set and is not nullboolean
isNotNullEndBal()
Checks whether the 'endBal' field is set and is not nullboolean
isNotNullGiftCardTxUuid()
Checks whether the 'giftCardTxUuid' field is set and is not nullboolean
isNotNullHoldBal()
Checks whether the 'holdBal' field is set and is not nullboolean
isNotNullPayment()
Checks whether the 'payment' field is set and is not nullboolean
isNotNullReferenceUuid()
Checks whether the 'referenceUuid' field is set and is not nullboolean
isNotNullRequestAmount()
Checks whether the 'requestAmount' field is set and is not nullboolean
isNotNullRequestSuccessful()
Checks whether the 'requestSuccessful' field is set and is not nullboolean
isNotNullResponseMessage()
Checks whether the 'responseMessage' field is set and is not nullboolean
isNotNullScv()
Checks whether the 'scv' field is set and is not nullboolean
isNotNullState()
Checks whether the 'state' field is set and is not nullboolean
isNotNullSyncPaymentObject()
Checks whether the 'syncPaymentObject' field is set and is not nullboolean
isNotNullTransactionId()
Checks whether the 'transactionId' field is set and is not nullboolean
isNotNullTxType()
Checks whether the 'txType' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<GiftCardResponse> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<GiftCardResponse> JSON_CREATOR
-
-
Constructor Detail
-
GiftCardResponse
public GiftCardResponse()
Constructs a new empty instance.
-
GiftCardResponse
protected GiftCardResponse(boolean noInit)
Constructs a new empty instance.
-
GiftCardResponse
public GiftCardResponse(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
GiftCardResponse
public 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
public GiftCardResponse(GiftCardResponse src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getTxType
public TxType getTxType()
-
getState
public GiftCardState getState()
-
getRequestAmount
public Long getRequestAmount()
Transaction Amount
-
getPayment
public Payment getPayment()
-
getResponseMessage
public String getResponseMessage()
-
getRequestSuccessful
public Boolean getRequestSuccessful()
-
getAccountNumber
public String getAccountNumber()
-
getScv
public String getScv()
-
getGiftCardTxUuid
public String getGiftCardTxUuid()
-
getTransactionId
public String getTransactionId()
-
getReferenceUuid
public String getReferenceUuid()
-
getAuthCode
public String getAuthCode()
-
getBegBal
public Long getBegBal()
-
getEndBal
public Long getEndBal()
-
getHoldBal
public Long getHoldBal()
-
getSyncPaymentObject
public Boolean getSyncPaymentObject()
-
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
-
isNotNullTxType
public boolean isNotNullTxType()
Checks whether the 'txType' field is set and is not null
-
isNotNullState
public boolean isNotNullState()
Checks whether the 'state' field is set and is not null
-
isNotNullRequestAmount
public boolean isNotNullRequestAmount()
Checks whether the 'requestAmount' field is set and is not null
-
isNotNullPayment
public boolean isNotNullPayment()
Checks whether the 'payment' field is set and is not null
-
isNotNullResponseMessage
public boolean isNotNullResponseMessage()
Checks whether the 'responseMessage' field is set and is not null
-
isNotNullRequestSuccessful
public boolean isNotNullRequestSuccessful()
Checks whether the 'requestSuccessful' field is set and is not null
-
isNotNullAccountNumber
public boolean isNotNullAccountNumber()
Checks whether the 'accountNumber' field is set and is not null
-
isNotNullScv
public boolean isNotNullScv()
Checks whether the 'scv' field is set and is not null
-
isNotNullGiftCardTxUuid
public boolean isNotNullGiftCardTxUuid()
Checks whether the 'giftCardTxUuid' field is set and is not null
-
isNotNullTransactionId
public boolean isNotNullTransactionId()
Checks whether the 'transactionId' field is set and is not null
-
isNotNullReferenceUuid
public boolean isNotNullReferenceUuid()
Checks whether the 'referenceUuid' field is set and is not null
-
isNotNullAuthCode
public boolean isNotNullAuthCode()
Checks whether the 'authCode' field is set and is not null
-
isNotNullBegBal
public boolean isNotNullBegBal()
Checks whether the 'begBal' field is set and is not null
-
isNotNullEndBal
public boolean isNotNullEndBal()
Checks whether the 'endBal' field is set and is not null
-
isNotNullHoldBal
public boolean isNotNullHoldBal()
Checks whether the 'holdBal' field is set and is not null
-
isNotNullSyncPaymentObject
public boolean isNotNullSyncPaymentObject()
Checks whether the 'syncPaymentObject' field is set and is not null
-
hasTxType
public boolean hasTxType()
Checks whether the 'txType' field has been set, however the value could be null
-
hasState
public boolean hasState()
Checks whether the 'state' field has been set, however the value could be null
-
hasRequestAmount
public boolean hasRequestAmount()
Checks whether the 'requestAmount' 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
-
hasResponseMessage
public boolean hasResponseMessage()
Checks whether the 'responseMessage' field has been set, however the value could be null
-
hasRequestSuccessful
public boolean hasRequestSuccessful()
Checks whether the 'requestSuccessful' field has been set, however the value could be null
-
hasAccountNumber
public boolean hasAccountNumber()
Checks whether the 'accountNumber' field has been set, however the value could be null
-
hasScv
public boolean hasScv()
Checks whether the 'scv' field has been set, however the value could be null
-
hasGiftCardTxUuid
public boolean hasGiftCardTxUuid()
Checks whether the 'giftCardTxUuid' field has been set, however the value could be null
-
hasTransactionId
public boolean hasTransactionId()
Checks whether the 'transactionId' field has been set, however the value could be null
-
hasReferenceUuid
public boolean hasReferenceUuid()
Checks whether the 'referenceUuid' field has been set, however the value could be null
-
hasAuthCode
public boolean hasAuthCode()
Checks whether the 'authCode' field has been set, however the value could be null
-
hasBegBal
public boolean hasBegBal()
Checks whether the 'begBal' field has been set, however the value could be null
-
hasEndBal
public boolean hasEndBal()
Checks whether the 'endBal' field has been set, however the value could be null
-
hasHoldBal
public boolean hasHoldBal()
Checks whether the 'holdBal' field has been set, however the value could be null
-
hasSyncPaymentObject
public boolean hasSyncPaymentObject()
Checks whether the 'syncPaymentObject' field has been set, however the value could be null
-
setTxType
public GiftCardResponse setTxType(TxType txType)
Sets the field 'txType'.
-
setState
public GiftCardResponse setState(GiftCardState state)
Sets the field 'state'.
-
setRequestAmount
public GiftCardResponse setRequestAmount(Long requestAmount)
Sets the field 'requestAmount'.
-
setPayment
public GiftCardResponse 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.
-
setResponseMessage
public GiftCardResponse setResponseMessage(String responseMessage)
Sets the field 'responseMessage'.
-
setRequestSuccessful
public GiftCardResponse setRequestSuccessful(Boolean requestSuccessful)
Sets the field 'requestSuccessful'.
-
setAccountNumber
public GiftCardResponse setAccountNumber(String accountNumber)
Sets the field 'accountNumber'.
-
setScv
public GiftCardResponse setScv(String scv)
Sets the field 'scv'.
-
setGiftCardTxUuid
public GiftCardResponse setGiftCardTxUuid(String giftCardTxUuid)
Sets the field 'giftCardTxUuid'.
-
setTransactionId
public GiftCardResponse setTransactionId(String transactionId)
Sets the field 'transactionId'.
-
setReferenceUuid
public GiftCardResponse setReferenceUuid(String referenceUuid)
Sets the field 'referenceUuid'.
-
setAuthCode
public GiftCardResponse setAuthCode(String authCode)
Sets the field 'authCode'.
-
setBegBal
public GiftCardResponse setBegBal(Long begBal)
Sets the field 'begBal'.
-
setEndBal
public GiftCardResponse setEndBal(Long endBal)
Sets the field 'endBal'.
-
setHoldBal
public GiftCardResponse setHoldBal(Long holdBal)
Sets the field 'holdBal'.
-
setSyncPaymentObject
public GiftCardResponse setSyncPaymentObject(Boolean syncPaymentObject)
Sets the field 'syncPaymentObject'.
-
clearTxType
public void clearTxType()
Clears the 'txType' field, the 'has' method for this field will now return false
-
clearState
public void clearState()
Clears the 'state' field, the 'has' method for this field will now return false
-
clearRequestAmount
public void clearRequestAmount()
Clears the 'requestAmount' 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
-
clearResponseMessage
public void clearResponseMessage()
Clears the 'responseMessage' field, the 'has' method for this field will now return false
-
clearRequestSuccessful
public void clearRequestSuccessful()
Clears the 'requestSuccessful' field, the 'has' method for this field will now return false
-
clearAccountNumber
public void clearAccountNumber()
Clears the 'accountNumber' field, the 'has' method for this field will now return false
-
clearScv
public void clearScv()
Clears the 'scv' field, the 'has' method for this field will now return false
-
clearGiftCardTxUuid
public void clearGiftCardTxUuid()
Clears the 'giftCardTxUuid' field, the 'has' method for this field will now return false
-
clearTransactionId
public void clearTransactionId()
Clears the 'transactionId' field, the 'has' method for this field will now return false
-
clearReferenceUuid
public void clearReferenceUuid()
Clears the 'referenceUuid' field, the 'has' method for this field will now return false
-
clearAuthCode
public void clearAuthCode()
Clears the 'authCode' field, the 'has' method for this field will now return false
-
clearBegBal
public void clearBegBal()
Clears the 'begBal' field, the 'has' method for this field will now return false
-
clearEndBal
public void clearEndBal()
Clears the 'endBal' field, the 'has' method for this field will now return false
-
clearHoldBal
public void clearHoldBal()
Clears the 'holdBal' field, the 'has' method for this field will now return false
-
clearSyncPaymentObject
public void clearSyncPaymentObject()
Clears the 'syncPaymentObject' 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 GiftCardResponse copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(GiftCardResponse src)
Copy all the changed fields from the given source to this instance.
-
-