public class Wallet extends GenericParcelable implements Validator, JSONifiable
id
number
encrypted_pan
encrypted_pan_for_bin_lookup
token_meta_id
exp_month
exp_year
cryptogram
walletType
paymentDataType
eciIndicator
googleMessageId
googleMessageExpiration
appleDeviceManufacturerIdentifier
currencyCode
transactionAmount
transactionAmountType
last4
first6
country
brand
created_time
modified_time
object
currency
name
address_line1
address_line1_check
address_line2
address_city
address_state
address_zip
address_zip_check
address_country
Modifier and Type | Class and Description |
---|---|
static interface |
Wallet.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Wallet> |
CREATOR |
static JSONifiable.Creator<Wallet> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
Wallet()
Constructs a new empty instance.
|
protected |
Wallet(boolean noInit)
Constructs a new empty instance.
|
|
Wallet(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.
|
|
Wallet(String json)
Constructs a new instance from the given JSON String.
|
|
Wallet(Wallet src)
Constructs a new instance that is a deep copy of the source instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAddressCity()
Clears the 'address_city' field, the 'has' method for this field will now return false
|
void |
clearAddressCountry()
Clears the 'address_country' field, the 'has' method for this field will now return false
|
void |
clearAddressLine1()
Clears the 'address_line1' field, the 'has' method for this field will now return false
|
void |
clearAddressLine1Check()
Clears the 'address_line1_check' field, the 'has' method for this field will now return false
|
void |
clearAddressLine2()
Clears the 'address_line2' field, the 'has' method for this field will now return false
|
void |
clearAddressState()
Clears the 'address_state' field, the 'has' method for this field will now return false
|
void |
clearAddressZip()
Clears the 'address_zip' field, the 'has' method for this field will now return false
|
void |
clearAddressZipCheck()
Clears the 'address_zip_check' field, the 'has' method for this field will now return false
|
void |
clearAppleDeviceManufacturerIdentifier()
Clears the 'appleDeviceManufacturerIdentifier' field, the 'has' method for this field will now return false
|
void |
clearBrand()
Clears the 'brand' field, the 'has' method for this field will now return false
|
void |
clearCountry()
Clears the 'country' field, the 'has' method for this field will now return false
|
void |
clearCreatedTime()
Clears the 'created_time' field, the 'has' method for this field will now return false
|
void |
clearCryptogram()
Clears the 'cryptogram' field, the 'has' method for this field will now return false
|
void |
clearCurrency()
Clears the 'currency' field, the 'has' method for this field will now return false
|
void |
clearCurrencyCode()
Clears the 'currencyCode' field, the 'has' method for this field will now return false
|
void |
clearEciIndicator()
Clears the 'eciIndicator' field, the 'has' method for this field will now return false
|
void |
clearEncryptedPan()
Clears the 'encrypted_pan' field, the 'has' method for this field will now return false
|
void |
clearEncryptedPanForBinLookup()
Clears the 'encrypted_pan_for_bin_lookup' field, the 'has' method for this field will now return false
|
void |
clearExpMonth()
Clears the 'exp_month' field, the 'has' method for this field will now return false
|
void |
clearExpYear()
Clears the 'exp_year' 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 |
clearGoogleMessageExpiration()
Clears the 'googleMessageExpiration' field, the 'has' method for this field will now return false
|
void |
clearGoogleMessageId()
Clears the 'googleMessageId' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' 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 |
clearModifiedTime()
Clears the 'modified_time' field, the 'has' method for this field will now return false
|
void |
clearName()
Clears the 'name' field, the 'has' method for this field will now return false
|
void |
clearNumber()
Clears the 'number' field, the 'has' method for this field will now return false
|
void |
clearObject()
Clears the 'object' field, the 'has' method for this field will now return false
|
void |
clearPaymentDataType()
Clears the 'paymentDataType' field, the 'has' method for this field will now return false
|
void |
clearTokenMetaId()
Clears the 'token_meta_id' field, the 'has' method for this field will now return false
|
void |
clearTransactionAmount()
Clears the 'transactionAmount' field, the 'has' method for this field will now return false
|
void |
clearTransactionAmountType()
Clears the 'transactionAmountType' field, the 'has' method for this field will now return false
|
void |
clearWalletType()
Clears the 'walletType' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
Wallet |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getAddressCity()
City / District / Suburb / Town / Village.
|
String |
getAddressCountry()
Billing address country, if provided.
|
String |
getAddressLine1()
Address line 1 (Street address / PO Box / Company name).
|
String |
getAddressLine1Check()
If address_line1 was provided, results of the check: pass, fail, unavailable, or unchecked.
|
String |
getAddressLine2()
Address line 2 (Apartment / Suite / Unit / Building).
|
String |
getAddressState()
State / County / Province / Region.
|
String |
getAddressZip()
ZIP or postal code.
|
String |
getAddressZipCheck()
If address_zip was provided, results of the check: pass, fail, unavailable, or unchecked.
|
String |
getAppleDeviceManufacturerIdentifier()
apple pay device manufacturer identifier
|
CardType |
getBrand()
brand of card (for response only)
|
String |
getCountry()
two character country code
|
Long |
getCreatedTime() |
String |
getCryptogram()
cryptogram for 3DSecure also known as cavv
|
String |
getCurrency()
Required in order to add the card to an account; in all other cases, this parameter is not used.
|
String |
getCurrencyCode()
apple or google pay currency code
|
String |
getEciIndicator()
ECI EComm indicator
|
String |
getEncryptedPan()
Encrypted Card provided by TA - used in PAN Only case of google pay
|
String |
getEncryptedPanForBinLookup()
Encrypted pan or dpan for bin lookup purposes only.
|
String |
getExpMonth()
Two-digit number representing the card's expiration month.
|
String |
getExpYear()
Two- or four-digit number representing the card's expiration year.
|
String |
getFirst6()
first6 of number
|
protected GenericClient |
getGenericClient() |
String |
getGoogleMessageExpiration()
message expiration from google pay
|
String |
getGoogleMessageId()
message id from google pay
|
String |
getId()
Unique identifier for the object.
|
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 (for response only)
|
Long |
getModifiedTime() |
String |
getName()
Cardholder's full name.
|
String |
getNumber()
card number or DPAN depending on whether it is 3DSecure or PAN only
|
String |
getObject()
String representing the object’s type.
|
WalletPaymentDataType |
getPaymentDataType()
Payment data type - 3DSecure or pan only
|
Long |
getTokenMetaId()
token meta id in the db
|
Long |
getTransactionAmount()
apple or google pay transaction amount
|
TransactionAmountType |
getTransactionAmountType()
Transaction amount type - FINAL or ESTIMATED
|
WalletType |
getWalletType()
apple or google pay
|
boolean |
hasAddressCity()
Checks whether the 'address_city' field has been set, however the value could be null
|
boolean |
hasAddressCountry()
Checks whether the 'address_country' field has been set, however the value could be null
|
boolean |
hasAddressLine1()
Checks whether the 'address_line1' field has been set, however the value could be null
|
boolean |
hasAddressLine1Check()
Checks whether the 'address_line1_check' field has been set, however the value could be null
|
boolean |
hasAddressLine2()
Checks whether the 'address_line2' field has been set, however the value could be null
|
boolean |
hasAddressState()
Checks whether the 'address_state' field has been set, however the value could be null
|
boolean |
hasAddressZip()
Checks whether the 'address_zip' field has been set, however the value could be null
|
boolean |
hasAddressZipCheck()
Checks whether the 'address_zip_check' field has been set, however the value could be null
|
boolean |
hasAppleDeviceManufacturerIdentifier()
Checks whether the 'appleDeviceManufacturerIdentifier' field has been set, however the value could be null
|
boolean |
hasBrand()
Checks whether the 'brand' field has been set, however the value could be null
|
boolean |
hasCountry()
Checks whether the 'country' field has been set, however the value could be null
|
boolean |
hasCreatedTime()
Checks whether the 'created_time' field has been set, however the value could be null
|
boolean |
hasCryptogram()
Checks whether the 'cryptogram' field has been set, however the value could be null
|
boolean |
hasCurrency()
Checks whether the 'currency' field has been set, however the value could be null
|
boolean |
hasCurrencyCode()
Checks whether the 'currencyCode' field has been set, however the value could be null
|
boolean |
hasEciIndicator()
Checks whether the 'eciIndicator' field has been set, however the value could be null
|
boolean |
hasEncryptedPan()
Checks whether the 'encrypted_pan' field has been set, however the value could be null
|
boolean |
hasEncryptedPanForBinLookup()
Checks whether the 'encrypted_pan_for_bin_lookup' field has been set, however the value could be null
|
boolean |
hasExpMonth()
Checks whether the 'exp_month' field has been set, however the value could be null
|
boolean |
hasExpYear()
Checks whether the 'exp_year' 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 |
hasGoogleMessageExpiration()
Checks whether the 'googleMessageExpiration' field has been set, however the value could be null
|
boolean |
hasGoogleMessageId()
Checks whether the 'googleMessageId' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' 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 |
hasModifiedTime()
Checks whether the 'modified_time' field has been set, however the value could be null
|
boolean |
hasName()
Checks whether the 'name' field has been set, however the value could be null
|
boolean |
hasNumber()
Checks whether the 'number' field has been set, however the value could be null
|
boolean |
hasObject()
Checks whether the 'object' field has been set, however the value could be null
|
boolean |
hasPaymentDataType()
Checks whether the 'paymentDataType' field has been set, however the value could be null
|
boolean |
hasTokenMetaId()
Checks whether the 'token_meta_id' field has been set, however the value could be null
|
boolean |
hasTransactionAmount()
Checks whether the 'transactionAmount' field has been set, however the value could be null
|
boolean |
hasTransactionAmountType()
Checks whether the 'transactionAmountType' field has been set, however the value could be null
|
boolean |
hasWalletType()
Checks whether the 'walletType' field has been set, however the value could be null
|
boolean |
isNotNullAddressCity()
Checks whether the 'address_city' field is set and is not null
|
boolean |
isNotNullAddressCountry()
Checks whether the 'address_country' field is set and is not null
|
boolean |
isNotNullAddressLine1()
Checks whether the 'address_line1' field is set and is not null
|
boolean |
isNotNullAddressLine1Check()
Checks whether the 'address_line1_check' field is set and is not null
|
boolean |
isNotNullAddressLine2()
Checks whether the 'address_line2' field is set and is not null
|
boolean |
isNotNullAddressState()
Checks whether the 'address_state' field is set and is not null
|
boolean |
isNotNullAddressZip()
Checks whether the 'address_zip' field is set and is not null
|
boolean |
isNotNullAddressZipCheck()
Checks whether the 'address_zip_check' field is set and is not null
|
boolean |
isNotNullAppleDeviceManufacturerIdentifier()
Checks whether the 'appleDeviceManufacturerIdentifier' field is set and is not null
|
boolean |
isNotNullBrand()
Checks whether the 'brand' field is set and is not null
|
boolean |
isNotNullCountry()
Checks whether the 'country' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'created_time' field is set and is not null
|
boolean |
isNotNullCryptogram()
Checks whether the 'cryptogram' field is set and is not null
|
boolean |
isNotNullCurrency()
Checks whether the 'currency' field is set and is not null
|
boolean |
isNotNullCurrencyCode()
Checks whether the 'currencyCode' field is set and is not null
|
boolean |
isNotNullEciIndicator()
Checks whether the 'eciIndicator' field is set and is not null
|
boolean |
isNotNullEncryptedPan()
Checks whether the 'encrypted_pan' field is set and is not null
|
boolean |
isNotNullEncryptedPanForBinLookup()
Checks whether the 'encrypted_pan_for_bin_lookup' field is set and is not null
|
boolean |
isNotNullExpMonth()
Checks whether the 'exp_month' field is set and is not null
|
boolean |
isNotNullExpYear()
Checks whether the 'exp_year' field is set and is not null
|
boolean |
isNotNullFirst6()
Checks whether the 'first6' field is set and is not null
|
boolean |
isNotNullGoogleMessageExpiration()
Checks whether the 'googleMessageExpiration' field is set and is not null
|
boolean |
isNotNullGoogleMessageId()
Checks whether the 'googleMessageId' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullLast4()
Checks whether the 'last4' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modified_time' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
boolean |
isNotNullNumber()
Checks whether the 'number' field is set and is not null
|
boolean |
isNotNullObject()
Checks whether the 'object' field is set and is not null
|
boolean |
isNotNullPaymentDataType()
Checks whether the 'paymentDataType' field is set and is not null
|
boolean |
isNotNullTokenMetaId()
Checks whether the 'token_meta_id' field is set and is not null
|
boolean |
isNotNullTransactionAmount()
Checks whether the 'transactionAmount' field is set and is not null
|
boolean |
isNotNullTransactionAmountType()
Checks whether the 'transactionAmountType' field is set and is not null
|
boolean |
isNotNullWalletType()
Checks whether the 'walletType' field is set and is not null
|
void |
mergeChanges(Wallet 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.
|
Wallet |
setAddressCity(String address_city)
Sets the field 'address_city'.
|
Wallet |
setAddressCountry(String address_country)
Sets the field 'address_country'.
|
Wallet |
setAddressLine1(String address_line1)
Sets the field 'address_line1'.
|
Wallet |
setAddressLine1Check(String address_line1_check)
Sets the field 'address_line1_check'.
|
Wallet |
setAddressLine2(String address_line2)
Sets the field 'address_line2'.
|
Wallet |
setAddressState(String address_state)
Sets the field 'address_state'.
|
Wallet |
setAddressZip(String address_zip)
Sets the field 'address_zip'.
|
Wallet |
setAddressZipCheck(String address_zip_check)
Sets the field 'address_zip_check'.
|
Wallet |
setAppleDeviceManufacturerIdentifier(String appleDeviceManufacturerIdentifier)
Sets the field 'appleDeviceManufacturerIdentifier'.
|
Wallet |
setBrand(CardType brand)
Sets the field 'brand'.
|
Wallet |
setCountry(String country)
Sets the field 'country'.
|
Wallet |
setCreatedTime(Long created_time)
Sets the field 'created_time'.
|
Wallet |
setCryptogram(String cryptogram)
Sets the field 'cryptogram'.
|
Wallet |
setCurrency(String currency)
Sets the field 'currency'.
|
Wallet |
setCurrencyCode(String currencyCode)
Sets the field 'currencyCode'.
|
Wallet |
setEciIndicator(String eciIndicator)
Sets the field 'eciIndicator'.
|
Wallet |
setEncryptedPan(String encrypted_pan)
Sets the field 'encrypted_pan'.
|
Wallet |
setEncryptedPanForBinLookup(String encrypted_pan_for_bin_lookup)
Sets the field 'encrypted_pan_for_bin_lookup'.
|
Wallet |
setExpMonth(String exp_month)
Sets the field 'exp_month'.
|
Wallet |
setExpYear(String exp_year)
Sets the field 'exp_year'.
|
Wallet |
setFirst6(String first6)
Sets the field 'first6'.
|
Wallet |
setGoogleMessageExpiration(String googleMessageExpiration)
Sets the field 'googleMessageExpiration'.
|
Wallet |
setGoogleMessageId(String googleMessageId)
Sets the field 'googleMessageId'.
|
Wallet |
setId(String id)
Sets the field 'id'.
|
Wallet |
setLast4(String last4)
Sets the field 'last4'.
|
Wallet |
setModifiedTime(Long modified_time)
Sets the field 'modified_time'.
|
Wallet |
setName(String name)
Sets the field 'name'.
|
Wallet |
setNumber(String number)
Sets the field 'number'.
|
Wallet |
setObject(String object)
Sets the field 'object'.
|
Wallet |
setPaymentDataType(WalletPaymentDataType paymentDataType)
Sets the field 'paymentDataType'.
|
Wallet |
setTokenMetaId(Long token_meta_id)
Sets the field 'token_meta_id'.
|
Wallet |
setTransactionAmount(Long transactionAmount)
Sets the field 'transactionAmount'.
|
Wallet |
setTransactionAmountType(TransactionAmountType transactionAmountType)
Sets the field 'transactionAmountType'.
|
Wallet |
setWalletType(WalletType walletType)
Sets the field 'walletType'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<Wallet> CREATOR
public static final JSONifiable.Creator<Wallet> JSON_CREATOR
public Wallet()
protected Wallet(boolean noInit)
public Wallet(String json) throws IllegalArgumentException
IllegalArgumentException
public Wallet(JSONObject jsonObject)
public Wallet(Wallet src)
public String getId()
public String getNumber()
public String getEncryptedPan()
public String getEncryptedPanForBinLookup()
public Long getTokenMetaId()
public String getExpMonth()
public String getExpYear()
public String getCryptogram()
public WalletType getWalletType()
public WalletPaymentDataType getPaymentDataType()
public String getEciIndicator()
public String getGoogleMessageId()
public String getGoogleMessageExpiration()
public String getAppleDeviceManufacturerIdentifier()
public String getCurrencyCode()
public Long getTransactionAmount()
public TransactionAmountType getTransactionAmountType()
public String getLast4()
public String getFirst6()
public String getCountry()
public CardType getBrand()
public Long getCreatedTime()
public Long getModifiedTime()
public String getObject()
public String getCurrency()
public String getName()
public String getAddressLine1()
public String getAddressLine1Check()
public String getAddressLine2()
public String getAddressCity()
public String getAddressState()
public String getAddressZip()
public String getAddressZipCheck()
public String getAddressCountry()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullNumber()
public boolean isNotNullEncryptedPan()
public boolean isNotNullEncryptedPanForBinLookup()
public boolean isNotNullTokenMetaId()
public boolean isNotNullExpMonth()
public boolean isNotNullExpYear()
public boolean isNotNullCryptogram()
public boolean isNotNullWalletType()
public boolean isNotNullPaymentDataType()
public boolean isNotNullEciIndicator()
public boolean isNotNullGoogleMessageId()
public boolean isNotNullGoogleMessageExpiration()
public boolean isNotNullAppleDeviceManufacturerIdentifier()
public boolean isNotNullCurrencyCode()
public boolean isNotNullTransactionAmount()
public boolean isNotNullTransactionAmountType()
public boolean isNotNullLast4()
public boolean isNotNullFirst6()
public boolean isNotNullCountry()
public boolean isNotNullBrand()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullObject()
public boolean isNotNullCurrency()
public boolean isNotNullName()
public boolean isNotNullAddressLine1()
public boolean isNotNullAddressLine1Check()
public boolean isNotNullAddressLine2()
public boolean isNotNullAddressCity()
public boolean isNotNullAddressState()
public boolean isNotNullAddressZip()
public boolean isNotNullAddressZipCheck()
public boolean isNotNullAddressCountry()
public boolean hasId()
public boolean hasNumber()
public boolean hasEncryptedPan()
public boolean hasEncryptedPanForBinLookup()
public boolean hasTokenMetaId()
public boolean hasExpMonth()
public boolean hasExpYear()
public boolean hasCryptogram()
public boolean hasWalletType()
public boolean hasPaymentDataType()
public boolean hasEciIndicator()
public boolean hasGoogleMessageId()
public boolean hasGoogleMessageExpiration()
public boolean hasAppleDeviceManufacturerIdentifier()
public boolean hasCurrencyCode()
public boolean hasTransactionAmount()
public boolean hasTransactionAmountType()
public boolean hasLast4()
public boolean hasFirst6()
public boolean hasCountry()
public boolean hasBrand()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasObject()
public boolean hasCurrency()
public boolean hasName()
public boolean hasAddressLine1()
public boolean hasAddressLine1Check()
public boolean hasAddressLine2()
public boolean hasAddressCity()
public boolean hasAddressState()
public boolean hasAddressZip()
public boolean hasAddressZipCheck()
public boolean hasAddressCountry()
public Wallet setEncryptedPanForBinLookup(String encrypted_pan_for_bin_lookup)
public Wallet setWalletType(WalletType walletType)
public Wallet setPaymentDataType(WalletPaymentDataType paymentDataType)
public Wallet setGoogleMessageId(String googleMessageId)
public Wallet setGoogleMessageExpiration(String googleMessageExpiration)
public Wallet setAppleDeviceManufacturerIdentifier(String appleDeviceManufacturerIdentifier)
public Wallet setTransactionAmount(Long transactionAmount)
public Wallet setTransactionAmountType(TransactionAmountType transactionAmountType)
public Wallet setAddressLine1Check(String address_line1_check)
public Wallet setAddressZipCheck(String address_zip_check)
public Wallet setAddressCountry(String address_country)
public void clearId()
public void clearNumber()
public void clearEncryptedPan()
public void clearEncryptedPanForBinLookup()
public void clearTokenMetaId()
public void clearExpMonth()
public void clearExpYear()
public void clearCryptogram()
public void clearWalletType()
public void clearPaymentDataType()
public void clearEciIndicator()
public void clearGoogleMessageId()
public void clearGoogleMessageExpiration()
public void clearAppleDeviceManufacturerIdentifier()
public void clearCurrencyCode()
public void clearTransactionAmount()
public void clearTransactionAmountType()
public void clearLast4()
public void clearFirst6()
public void clearCountry()
public void clearBrand()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearObject()
public void clearCurrency()
public void clearName()
public void clearAddressLine1()
public void clearAddressLine1Check()
public void clearAddressLine2()
public void clearAddressCity()
public void clearAddressState()
public void clearAddressZip()
public void clearAddressZipCheck()
public void clearAddressCountry()
public boolean containsChanges()
public void resetChangeLog()
public Wallet copyChanges()
public void mergeChanges(Wallet src)