Package com.clover.sdk.v3.binhandler
Class DynamicBinHandlerRequest
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.binhandler.DynamicBinHandlerRequest
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class DynamicBinHandlerRequest extends GenericParcelable implements Validator, JSONifiable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DynamicBinHandlerRequest.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<DynamicBinHandlerRequest>
CREATOR
static JSONifiable.Creator<DynamicBinHandlerRequest>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description DynamicBinHandlerRequest()
Constructs a new empty instance.protected
DynamicBinHandlerRequest(boolean noInit)
Constructs a new empty instance.DynamicBinHandlerRequest(DynamicBinHandlerRequest src)
Constructs a new instance that is a deep copy of the source instance.DynamicBinHandlerRequest(String json)
Constructs a new instance from the given JSON String.DynamicBinHandlerRequest(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
clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return falsevoid
clearCardType()
Clears the 'cardType' field, the 'has' method for this field will now return falsevoid
clearEntryType()
Clears the 'entryType' field, the 'has' method for this field will now return falsevoid
clearFirst6()
Clears the 'first6' field, the 'has' method for this field will now return falsevoid
clearLast4()
Clears the 'last4' field, the 'has' method for this field will now return falsevoid
clearPaymentPlatformType()
Clears the 'paymentPlatformType' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.DynamicBinHandlerRequest
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Long
getAmount()
tx amountCardType
getCardType()
determined card type based on AID/GBF/etcCardEntryType
getEntryType()
enum indicating if this is MSR, CONTACT, NFC, KEYEDString
getFirst6()
first6 of numberprotected 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.String
getLast4()
last4 of numberPaymentPlatformType
getPaymentPlatformType()
boolean
hasAmount()
Checks whether the 'amount' field has been set, however the value could be nullboolean
hasCardType()
Checks whether the 'cardType' field has been set, however the value could be nullboolean
hasEntryType()
Checks whether the 'entryType' field has been set, however the value could be nullboolean
hasFirst6()
Checks whether the 'first6' field has been set, however the value could be nullboolean
hasLast4()
Checks whether the 'last4' field has been set, however the value could be nullboolean
hasPaymentPlatformType()
Checks whether the 'paymentPlatformType' field has been set, however the value could be nullboolean
isNotNullAmount()
Checks whether the 'amount' field is set and is not nullboolean
isNotNullCardType()
Checks whether the 'cardType' field is set and is not nullboolean
isNotNullEntryType()
Checks whether the 'entryType' field is set and is not nullboolean
isNotNullFirst6()
Checks whether the 'first6' field is set and is not nullboolean
isNotNullLast4()
Checks whether the 'last4' field is set and is not nullboolean
isNotNullPaymentPlatformType()
Checks whether the 'paymentPlatformType' field is set and is not nullvoid
mergeChanges(DynamicBinHandlerRequest 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.DynamicBinHandlerRequest
setAmount(Long amount)
Sets the field 'amount'.DynamicBinHandlerRequest
setCardType(CardType cardType)
Sets the field 'cardType'.DynamicBinHandlerRequest
setEntryType(CardEntryType entryType)
Sets the field 'entryType'.DynamicBinHandlerRequest
setFirst6(String first6)
Sets the field 'first6'.DynamicBinHandlerRequest
setLast4(String last4)
Sets the field 'last4'.DynamicBinHandlerRequest
setPaymentPlatformType(PaymentPlatformType paymentPlatformType)
Sets the field 'paymentPlatformType'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<DynamicBinHandlerRequest> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<DynamicBinHandlerRequest> JSON_CREATOR
-
-
Constructor Detail
-
DynamicBinHandlerRequest
public DynamicBinHandlerRequest()
Constructs a new empty instance.
-
DynamicBinHandlerRequest
protected DynamicBinHandlerRequest(boolean noInit)
Constructs a new empty instance.
-
DynamicBinHandlerRequest
public DynamicBinHandlerRequest(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
DynamicBinHandlerRequest
public DynamicBinHandlerRequest(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.
-
DynamicBinHandlerRequest
public DynamicBinHandlerRequest(DynamicBinHandlerRequest src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getPaymentPlatformType
public PaymentPlatformType getPaymentPlatformType()
-
getFirst6
public String getFirst6()
first6 of number
-
getLast4
public String getLast4()
last4 of number
-
getCardType
public CardType getCardType()
determined card type based on AID/GBF/etc
-
getAmount
public Long getAmount()
tx amount
-
getEntryType
public CardEntryType getEntryType()
enum indicating if this is MSR, CONTACT, NFC, KEYED
-
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
-
isNotNullPaymentPlatformType
public boolean isNotNullPaymentPlatformType()
Checks whether the 'paymentPlatformType' field is set and is not null
-
isNotNullFirst6
public boolean isNotNullFirst6()
Checks whether the 'first6' field is set and is not null
-
isNotNullLast4
public boolean isNotNullLast4()
Checks whether the 'last4' field is set and is not null
-
isNotNullCardType
public boolean isNotNullCardType()
Checks whether the 'cardType' field is set and is not null
-
isNotNullAmount
public boolean isNotNullAmount()
Checks whether the 'amount' field is set and is not null
-
isNotNullEntryType
public boolean isNotNullEntryType()
Checks whether the 'entryType' field is set and is not null
-
hasPaymentPlatformType
public boolean hasPaymentPlatformType()
Checks whether the 'paymentPlatformType' field has been set, however the value could be null
-
hasFirst6
public boolean hasFirst6()
Checks whether the 'first6' field has been set, however the value could be null
-
hasLast4
public boolean hasLast4()
Checks whether the 'last4' field has been set, however the value could be null
-
hasCardType
public boolean hasCardType()
Checks whether the 'cardType' field has been set, however the value could be null
-
hasAmount
public boolean hasAmount()
Checks whether the 'amount' field has been set, however the value could be null
-
hasEntryType
public boolean hasEntryType()
Checks whether the 'entryType' field has been set, however the value could be null
-
setPaymentPlatformType
public DynamicBinHandlerRequest setPaymentPlatformType(PaymentPlatformType paymentPlatformType)
Sets the field 'paymentPlatformType'.
-
setFirst6
public DynamicBinHandlerRequest setFirst6(String first6)
Sets the field 'first6'.
-
setLast4
public DynamicBinHandlerRequest setLast4(String last4)
Sets the field 'last4'.
-
setCardType
public DynamicBinHandlerRequest setCardType(CardType cardType)
Sets the field 'cardType'.
-
setAmount
public DynamicBinHandlerRequest setAmount(Long amount)
Sets the field 'amount'.
-
setEntryType
public DynamicBinHandlerRequest setEntryType(CardEntryType entryType)
Sets the field 'entryType'.
-
clearPaymentPlatformType
public void clearPaymentPlatformType()
Clears the 'paymentPlatformType' field, the 'has' method for this field will now return false
-
clearFirst6
public void clearFirst6()
Clears the 'first6' field, the 'has' method for this field will now return false
-
clearLast4
public void clearLast4()
Clears the 'last4' field, the 'has' method for this field will now return false
-
clearCardType
public void clearCardType()
Clears the 'cardType' field, the 'has' method for this field will now return false
-
clearAmount
public void clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return false
-
clearEntryType
public void clearEntryType()
Clears the 'entryType' 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 DynamicBinHandlerRequest copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(DynamicBinHandlerRequest src)
Copy all the changed fields from the given source to this instance.
-
-