Class Wallet

    • Constructor Detail

      • Wallet

        public Wallet()
        Constructs a new empty instance.
      • Wallet

        protected Wallet​(boolean noInit)
        Constructs a new empty instance.
      • Wallet

        public 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

        public Wallet​(Wallet src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getId

        public String getId()
        Unique identifier for the object.
      • getNumber

        public String getNumber()
        card number or DPAN depending on whether it is 3DSecure or PAN only
      • getEncryptedPan

        public String getEncryptedPan()
        Encrypted Card provided by TA - used in PAN Only case of google pay
      • getEncryptedPanForBinLookup

        public String getEncryptedPanForBinLookup()
        Encrypted pan or dpan for bin lookup purposes only. This is encrypted with custom RSA key used by Bin lookup service
      • getTokenMetaId

        public Long getTokenMetaId()
        token meta id in the db
      • getExpMonth

        public String getExpMonth()
        Two-digit number representing the card's expiration month.
      • getExpYear

        public String getExpYear()
        Two- or four-digit number representing the card's expiration year.
      • getCryptogram

        public String getCryptogram()
        cryptogram for 3DSecure also known as cavv
      • getWalletType

        public WalletType getWalletType()
        apple or google pay
      • getPaymentDataType

        public WalletPaymentDataType getPaymentDataType()
        Payment data type - 3DSecure or pan only
      • getEciIndicator

        public String getEciIndicator()
        ECI EComm indicator
      • getGoogleMessageId

        public String getGoogleMessageId()
        message id from google pay
      • getGoogleMessageExpiration

        public String getGoogleMessageExpiration()
        message expiration from google pay
      • getAppleDeviceManufacturerIdentifier

        public String getAppleDeviceManufacturerIdentifier()
        apple pay device manufacturer identifier
      • getCurrencyCode

        public String getCurrencyCode()
        apple or google pay currency code
      • getTransactionAmount

        public Long getTransactionAmount()
        apple or google pay transaction amount
      • getTransactionAmountType

        public TransactionAmountType getTransactionAmountType()
        Transaction amount type - FINAL or ESTIMATED
      • getLast4

        public String getLast4()
        last4 of number (for response only)
      • getFirst6

        public String getFirst6()
        first6 of number
      • getCountry

        public String getCountry()
        two character country code
      • getBrand

        public CardType getBrand()
        brand of card (for response only)
      • getCreatedTime

        public Long getCreatedTime()
      • getModifiedTime

        public Long getModifiedTime()
      • getObject

        public String getObject()
        String representing the object’s type. Objects of the same type share the same value.
      • getCurrency

        public String getCurrency()
        Required in order to add the card to an account; in all other cases, this parameter is not used. When added to an account, the card (which must be a debit card) can be used as a transfer destination for funds in this currency. Currently, the only supported currency for debit card payouts is `usd`.
      • getName

        public String getName()
        Cardholder's full name.
      • getAddressLine1

        public String getAddressLine1()
        Address line 1 (Street address / PO Box / Company name).
      • getAddressLine1Check

        public String getAddressLine1Check()
        If address_line1 was provided, results of the check: pass, fail, unavailable, or unchecked.
      • getAddressLine2

        public String getAddressLine2()
        Address line 2 (Apartment / Suite / Unit / Building).
      • getAddressCity

        public String getAddressCity()
        City / District / Suburb / Town / Village.
      • getAddressState

        public String getAddressState()
        State / County / Province / Region.
      • getAddressZip

        public String getAddressZip()
        ZIP or postal code.
      • getAddressZipCheck

        public String getAddressZipCheck()
        If address_zip was provided, results of the check: pass, fail, unavailable, or unchecked.
      • getAddressCountry

        public String getAddressCountry()
        Billing address country, if provided.
      • 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 interface JSONifiable
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullNumber

        public boolean isNotNullNumber()
        Checks whether the 'number' field is set and is not null
      • isNotNullEncryptedPan

        public boolean isNotNullEncryptedPan()
        Checks whether the 'encrypted_pan' field is set and is not null
      • isNotNullEncryptedPanForBinLookup

        public boolean isNotNullEncryptedPanForBinLookup()
        Checks whether the 'encrypted_pan_for_bin_lookup' field is set and is not null
      • isNotNullTokenMetaId

        public boolean isNotNullTokenMetaId()
        Checks whether the 'token_meta_id' field is set and is not null
      • isNotNullExpMonth

        public boolean isNotNullExpMonth()
        Checks whether the 'exp_month' field is set and is not null
      • isNotNullExpYear

        public boolean isNotNullExpYear()
        Checks whether the 'exp_year' field is set and is not null
      • isNotNullCryptogram

        public boolean isNotNullCryptogram()
        Checks whether the 'cryptogram' field is set and is not null
      • isNotNullWalletType

        public boolean isNotNullWalletType()
        Checks whether the 'walletType' field is set and is not null
      • isNotNullPaymentDataType

        public boolean isNotNullPaymentDataType()
        Checks whether the 'paymentDataType' field is set and is not null
      • isNotNullEciIndicator

        public boolean isNotNullEciIndicator()
        Checks whether the 'eciIndicator' field is set and is not null
      • isNotNullGoogleMessageId

        public boolean isNotNullGoogleMessageId()
        Checks whether the 'googleMessageId' field is set and is not null
      • isNotNullGoogleMessageExpiration

        public boolean isNotNullGoogleMessageExpiration()
        Checks whether the 'googleMessageExpiration' field is set and is not null
      • isNotNullAppleDeviceManufacturerIdentifier

        public boolean isNotNullAppleDeviceManufacturerIdentifier()
        Checks whether the 'appleDeviceManufacturerIdentifier' field is set and is not null
      • isNotNullCurrencyCode

        public boolean isNotNullCurrencyCode()
        Checks whether the 'currencyCode' field is set and is not null
      • isNotNullTransactionAmount

        public boolean isNotNullTransactionAmount()
        Checks whether the 'transactionAmount' field is set and is not null
      • isNotNullTransactionAmountType

        public boolean isNotNullTransactionAmountType()
        Checks whether the 'transactionAmountType' field is set and is not null
      • isNotNullLast4

        public boolean isNotNullLast4()
        Checks whether the 'last4' field is set and is not null
      • isNotNullFirst6

        public boolean isNotNullFirst6()
        Checks whether the 'first6' field is set and is not null
      • isNotNullCountry

        public boolean isNotNullCountry()
        Checks whether the 'country' field is set and is not null
      • isNotNullBrand

        public boolean isNotNullBrand()
        Checks whether the 'brand' field is set and is not null
      • isNotNullCreatedTime

        public boolean isNotNullCreatedTime()
        Checks whether the 'created_time' field is set and is not null
      • isNotNullModifiedTime

        public boolean isNotNullModifiedTime()
        Checks whether the 'modified_time' field is set and is not null
      • isNotNullObject

        public boolean isNotNullObject()
        Checks whether the 'object' field is set and is not null
      • isNotNullCurrency

        public boolean isNotNullCurrency()
        Checks whether the 'currency' field is set and is not null
      • isNotNullName

        public boolean isNotNullName()
        Checks whether the 'name' field is set and is not null
      • isNotNullAddressLine1

        public boolean isNotNullAddressLine1()
        Checks whether the 'address_line1' field is set and is not null
      • isNotNullAddressLine1Check

        public boolean isNotNullAddressLine1Check()
        Checks whether the 'address_line1_check' field is set and is not null
      • isNotNullAddressLine2

        public boolean isNotNullAddressLine2()
        Checks whether the 'address_line2' field is set and is not null
      • isNotNullAddressCity

        public boolean isNotNullAddressCity()
        Checks whether the 'address_city' field is set and is not null
      • isNotNullAddressState

        public boolean isNotNullAddressState()
        Checks whether the 'address_state' field is set and is not null
      • isNotNullAddressZip

        public boolean isNotNullAddressZip()
        Checks whether the 'address_zip' field is set and is not null
      • isNotNullAddressZipCheck

        public boolean isNotNullAddressZipCheck()
        Checks whether the 'address_zip_check' field is set and is not null
      • isNotNullAddressCountry

        public boolean isNotNullAddressCountry()
        Checks whether the 'address_country' field is set and is not null
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasNumber

        public boolean hasNumber()
        Checks whether the 'number' field has been set, however the value could be null
      • hasEncryptedPan

        public boolean hasEncryptedPan()
        Checks whether the 'encrypted_pan' field has been set, however the value could be null
      • hasEncryptedPanForBinLookup

        public boolean hasEncryptedPanForBinLookup()
        Checks whether the 'encrypted_pan_for_bin_lookup' field has been set, however the value could be null
      • hasTokenMetaId

        public boolean hasTokenMetaId()
        Checks whether the 'token_meta_id' field has been set, however the value could be null
      • hasExpMonth

        public boolean hasExpMonth()
        Checks whether the 'exp_month' field has been set, however the value could be null
      • hasExpYear

        public boolean hasExpYear()
        Checks whether the 'exp_year' field has been set, however the value could be null
      • hasCryptogram

        public boolean hasCryptogram()
        Checks whether the 'cryptogram' field has been set, however the value could be null
      • hasWalletType

        public boolean hasWalletType()
        Checks whether the 'walletType' field has been set, however the value could be null
      • hasPaymentDataType

        public boolean hasPaymentDataType()
        Checks whether the 'paymentDataType' field has been set, however the value could be null
      • hasEciIndicator

        public boolean hasEciIndicator()
        Checks whether the 'eciIndicator' field has been set, however the value could be null
      • hasGoogleMessageId

        public boolean hasGoogleMessageId()
        Checks whether the 'googleMessageId' field has been set, however the value could be null
      • hasGoogleMessageExpiration

        public boolean hasGoogleMessageExpiration()
        Checks whether the 'googleMessageExpiration' field has been set, however the value could be null
      • hasAppleDeviceManufacturerIdentifier

        public boolean hasAppleDeviceManufacturerIdentifier()
        Checks whether the 'appleDeviceManufacturerIdentifier' field has been set, however the value could be null
      • hasCurrencyCode

        public boolean hasCurrencyCode()
        Checks whether the 'currencyCode' field has been set, however the value could be null
      • hasTransactionAmount

        public boolean hasTransactionAmount()
        Checks whether the 'transactionAmount' field has been set, however the value could be null
      • hasTransactionAmountType

        public boolean hasTransactionAmountType()
        Checks whether the 'transactionAmountType' 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
      • hasFirst6

        public boolean hasFirst6()
        Checks whether the 'first6' field has been set, however the value could be null
      • hasCountry

        public boolean hasCountry()
        Checks whether the 'country' field has been set, however the value could be null
      • hasBrand

        public boolean hasBrand()
        Checks whether the 'brand' field has been set, however the value could be null
      • hasCreatedTime

        public boolean hasCreatedTime()
        Checks whether the 'created_time' field has been set, however the value could be null
      • hasModifiedTime

        public boolean hasModifiedTime()
        Checks whether the 'modified_time' field has been set, however the value could be null
      • hasObject

        public boolean hasObject()
        Checks whether the 'object' field has been set, however the value could be null
      • hasCurrency

        public boolean hasCurrency()
        Checks whether the 'currency' field has been set, however the value could be null
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set, however the value could be null
      • hasAddressLine1

        public boolean hasAddressLine1()
        Checks whether the 'address_line1' field has been set, however the value could be null
      • hasAddressLine1Check

        public boolean hasAddressLine1Check()
        Checks whether the 'address_line1_check' field has been set, however the value could be null
      • hasAddressLine2

        public boolean hasAddressLine2()
        Checks whether the 'address_line2' field has been set, however the value could be null
      • hasAddressCity

        public boolean hasAddressCity()
        Checks whether the 'address_city' field has been set, however the value could be null
      • hasAddressState

        public boolean hasAddressState()
        Checks whether the 'address_state' field has been set, however the value could be null
      • hasAddressZip

        public boolean hasAddressZip()
        Checks whether the 'address_zip' field has been set, however the value could be null
      • hasAddressZipCheck

        public boolean hasAddressZipCheck()
        Checks whether the 'address_zip_check' field has been set, however the value could be null
      • hasAddressCountry

        public boolean hasAddressCountry()
        Checks whether the 'address_country' field has been set, however the value could be null
      • setId

        public Wallet setId​(String id)
        Sets the field 'id'.
      • setNumber

        public Wallet setNumber​(String number)
        Sets the field 'number'.
      • setEncryptedPan

        public Wallet setEncryptedPan​(String encrypted_pan)
        Sets the field 'encrypted_pan'.
      • setEncryptedPanForBinLookup

        public Wallet setEncryptedPanForBinLookup​(String encrypted_pan_for_bin_lookup)
        Sets the field 'encrypted_pan_for_bin_lookup'.
      • setTokenMetaId

        public Wallet setTokenMetaId​(Long token_meta_id)
        Sets the field 'token_meta_id'.
      • setExpMonth

        public Wallet setExpMonth​(String exp_month)
        Sets the field 'exp_month'.
      • setExpYear

        public Wallet setExpYear​(String exp_year)
        Sets the field 'exp_year'.
      • setCryptogram

        public Wallet setCryptogram​(String cryptogram)
        Sets the field 'cryptogram'.
      • setWalletType

        public Wallet setWalletType​(WalletType walletType)
        Sets the field 'walletType'.
      • setEciIndicator

        public Wallet setEciIndicator​(String eciIndicator)
        Sets the field 'eciIndicator'.
      • setGoogleMessageId

        public Wallet setGoogleMessageId​(String googleMessageId)
        Sets the field 'googleMessageId'.
      • setGoogleMessageExpiration

        public Wallet setGoogleMessageExpiration​(String googleMessageExpiration)
        Sets the field 'googleMessageExpiration'.
      • setAppleDeviceManufacturerIdentifier

        public Wallet setAppleDeviceManufacturerIdentifier​(String appleDeviceManufacturerIdentifier)
        Sets the field 'appleDeviceManufacturerIdentifier'.
      • setCurrencyCode

        public Wallet setCurrencyCode​(String currencyCode)
        Sets the field 'currencyCode'.
      • setTransactionAmount

        public Wallet setTransactionAmount​(Long transactionAmount)
        Sets the field 'transactionAmount'.
      • setTransactionAmountType

        public Wallet setTransactionAmountType​(TransactionAmountType transactionAmountType)
        Sets the field 'transactionAmountType'.
      • setLast4

        public Wallet setLast4​(String last4)
        Sets the field 'last4'.
      • setFirst6

        public Wallet setFirst6​(String first6)
        Sets the field 'first6'.
      • setCountry

        public Wallet setCountry​(String country)
        Sets the field 'country'.
      • setBrand

        public Wallet setBrand​(CardType brand)
        Sets the field 'brand'.
      • setCreatedTime

        public Wallet setCreatedTime​(Long created_time)
        Sets the field 'created_time'.
      • setModifiedTime

        public Wallet setModifiedTime​(Long modified_time)
        Sets the field 'modified_time'.
      • setObject

        public Wallet setObject​(String object)
        Sets the field 'object'.
      • setCurrency

        public Wallet setCurrency​(String currency)
        Sets the field 'currency'.
      • setName

        public Wallet setName​(String name)
        Sets the field 'name'.
      • setAddressLine1

        public Wallet setAddressLine1​(String address_line1)
        Sets the field 'address_line1'.
      • setAddressLine1Check

        public Wallet setAddressLine1Check​(String address_line1_check)
        Sets the field 'address_line1_check'.
      • setAddressLine2

        public Wallet setAddressLine2​(String address_line2)
        Sets the field 'address_line2'.
      • setAddressCity

        public Wallet setAddressCity​(String address_city)
        Sets the field 'address_city'.
      • setAddressState

        public Wallet setAddressState​(String address_state)
        Sets the field 'address_state'.
      • setAddressZip

        public Wallet setAddressZip​(String address_zip)
        Sets the field 'address_zip'.
      • setAddressZipCheck

        public Wallet setAddressZipCheck​(String address_zip_check)
        Sets the field 'address_zip_check'.
      • setAddressCountry

        public Wallet setAddressCountry​(String address_country)
        Sets the field 'address_country'.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearNumber

        public void clearNumber()
        Clears the 'number' field, the 'has' method for this field will now return false
      • clearEncryptedPan

        public void clearEncryptedPan()
        Clears the 'encrypted_pan' field, the 'has' method for this field will now return false
      • clearEncryptedPanForBinLookup

        public void clearEncryptedPanForBinLookup()
        Clears the 'encrypted_pan_for_bin_lookup' field, the 'has' method for this field will now return false
      • clearTokenMetaId

        public void clearTokenMetaId()
        Clears the 'token_meta_id' field, the 'has' method for this field will now return false
      • clearExpMonth

        public void clearExpMonth()
        Clears the 'exp_month' field, the 'has' method for this field will now return false
      • clearExpYear

        public void clearExpYear()
        Clears the 'exp_year' field, the 'has' method for this field will now return false
      • clearCryptogram

        public void clearCryptogram()
        Clears the 'cryptogram' field, the 'has' method for this field will now return false
      • clearWalletType

        public void clearWalletType()
        Clears the 'walletType' field, the 'has' method for this field will now return false
      • clearPaymentDataType

        public void clearPaymentDataType()
        Clears the 'paymentDataType' field, the 'has' method for this field will now return false
      • clearEciIndicator

        public void clearEciIndicator()
        Clears the 'eciIndicator' field, the 'has' method for this field will now return false
      • clearGoogleMessageId

        public void clearGoogleMessageId()
        Clears the 'googleMessageId' field, the 'has' method for this field will now return false
      • clearGoogleMessageExpiration

        public void clearGoogleMessageExpiration()
        Clears the 'googleMessageExpiration' field, the 'has' method for this field will now return false
      • clearAppleDeviceManufacturerIdentifier

        public void clearAppleDeviceManufacturerIdentifier()
        Clears the 'appleDeviceManufacturerIdentifier' field, the 'has' method for this field will now return false
      • clearCurrencyCode

        public void clearCurrencyCode()
        Clears the 'currencyCode' field, the 'has' method for this field will now return false
      • clearTransactionAmount

        public void clearTransactionAmount()
        Clears the 'transactionAmount' field, the 'has' method for this field will now return false
      • clearTransactionAmountType

        public void clearTransactionAmountType()
        Clears the 'transactionAmountType' 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
      • clearFirst6

        public void clearFirst6()
        Clears the 'first6' field, the 'has' method for this field will now return false
      • clearCountry

        public void clearCountry()
        Clears the 'country' field, the 'has' method for this field will now return false
      • clearBrand

        public void clearBrand()
        Clears the 'brand' field, the 'has' method for this field will now return false
      • clearCreatedTime

        public void clearCreatedTime()
        Clears the 'created_time' field, the 'has' method for this field will now return false
      • clearModifiedTime

        public void clearModifiedTime()
        Clears the 'modified_time' field, the 'has' method for this field will now return false
      • clearObject

        public void clearObject()
        Clears the 'object' field, the 'has' method for this field will now return false
      • clearCurrency

        public void clearCurrency()
        Clears the 'currency' field, the 'has' method for this field will now return false
      • clearName

        public void clearName()
        Clears the 'name' field, the 'has' method for this field will now return false
      • clearAddressLine1

        public void clearAddressLine1()
        Clears the 'address_line1' field, the 'has' method for this field will now return false
      • clearAddressLine1Check

        public void clearAddressLine1Check()
        Clears the 'address_line1_check' field, the 'has' method for this field will now return false
      • clearAddressLine2

        public void clearAddressLine2()
        Clears the 'address_line2' field, the 'has' method for this field will now return false
      • clearAddressCity

        public void clearAddressCity()
        Clears the 'address_city' field, the 'has' method for this field will now return false
      • clearAddressState

        public void clearAddressState()
        Clears the 'address_state' field, the 'has' method for this field will now return false
      • clearAddressZip

        public void clearAddressZip()
        Clears the 'address_zip' field, the 'has' method for this field will now return false
      • clearAddressZipCheck

        public void clearAddressZipCheck()
        Clears the 'address_zip_check' field, the 'has' method for this field will now return false
      • clearAddressCountry

        public void clearAddressCountry()
        Clears the 'address_country' 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 Wallet copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(Wallet src)
        Copy all the changed fields from the given source to this instance.