public class DynamicBinHandlerRequest extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
DynamicBinHandlerRequest.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DynamicBinHandlerRequest> |
CREATOR |
static JSONifiable.Creator<DynamicBinHandlerRequest> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and 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(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(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return false
|
void |
clearCardType()
Clears the 'cardType' field, the 'has' method for this field will now return false
|
void |
clearEntryType()
Clears the 'entryType' field, the 'has' method for this field will now return false
|
void |
clearFirst6()
Clears the 'first6' field, the 'has' method for this field will now return false
|
void |
clearLast4()
Clears the 'last4' field, the 'has' method for this field will now return false
|
void |
clearPaymentPlatformType()
Clears the 'paymentPlatformType' field, the 'has' method for this field will now return false
|
boolean |
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 amount
|
CardType |
getCardType()
determined card type based on AID/GBF/etc
|
CardEntryType |
getEntryType()
enum indicating if this is MSR, CONTACT, NFC, KEYED
|
String |
getFirst6()
first6 of number
|
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.
|
String |
getLast4()
last4 of number
|
PaymentPlatformType |
getPaymentPlatformType() |
boolean |
hasAmount()
Checks whether the 'amount' field has been set, however the value could be null
|
boolean |
hasCardType()
Checks whether the 'cardType' field has been set, however the value could be null
|
boolean |
hasEntryType()
Checks whether the 'entryType' field has been set, however the value could be null
|
boolean |
hasFirst6()
Checks whether the 'first6' field has been set, however the value could be null
|
boolean |
hasLast4()
Checks whether the 'last4' field has been set, however the value could be null
|
boolean |
hasPaymentPlatformType()
Checks whether the 'paymentPlatformType' field has been set, however the value could be null
|
boolean |
isNotNullAmount()
Checks whether the 'amount' field is set and is not null
|
boolean |
isNotNullCardType()
Checks whether the 'cardType' field is set and is not null
|
boolean |
isNotNullEntryType()
Checks whether the 'entryType' field is set and is not null
|
boolean |
isNotNullFirst6()
Checks whether the 'first6' field is set and is not null
|
boolean |
isNotNullLast4()
Checks whether the 'last4' field is set and is not null
|
boolean |
isNotNullPaymentPlatformType()
Checks whether the 'paymentPlatformType' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<DynamicBinHandlerRequest> CREATOR
public static final JSONifiable.Creator<DynamicBinHandlerRequest> JSON_CREATOR
public DynamicBinHandlerRequest()
protected DynamicBinHandlerRequest(boolean noInit)
public DynamicBinHandlerRequest(String json) throws IllegalArgumentException
IllegalArgumentException
public DynamicBinHandlerRequest(JSONObject jsonObject)
public DynamicBinHandlerRequest(DynamicBinHandlerRequest src)
public PaymentPlatformType getPaymentPlatformType()
public String getFirst6()
public String getLast4()
public CardType getCardType()
public Long getAmount()
public CardEntryType getEntryType()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullPaymentPlatformType()
public boolean isNotNullFirst6()
public boolean isNotNullLast4()
public boolean isNotNullCardType()
public boolean isNotNullAmount()
public boolean isNotNullEntryType()
public boolean hasPaymentPlatformType()
public boolean hasFirst6()
public boolean hasLast4()
public boolean hasCardType()
public boolean hasAmount()
public boolean hasEntryType()
public DynamicBinHandlerRequest setPaymentPlatformType(PaymentPlatformType paymentPlatformType)
public DynamicBinHandlerRequest setFirst6(String first6)
public DynamicBinHandlerRequest setLast4(String last4)
public DynamicBinHandlerRequest setCardType(CardType cardType)
public DynamicBinHandlerRequest setAmount(Long amount)
public DynamicBinHandlerRequest setEntryType(CardEntryType entryType)
public void clearPaymentPlatformType()
public void clearFirst6()
public void clearLast4()
public void clearCardType()
public void clearAmount()
public void clearEntryType()
public boolean containsChanges()
public void resetChangeLog()
public DynamicBinHandlerRequest copyChanges()
public void mergeChanges(DynamicBinHandlerRequest src)