public class Card extends GenericParcelable implements Validator, JSONifiable
id
number
encrypted_pan
encrypted_track2
encrypted_pan_for_bin_lookup
transarmor_token
transarmor_token_type
token_meta_id
transarmor_key_id
exp_month
exp_year
cvv
first6
last4
country
brand
funding_type
is_purchase_card
created_time
modified_time
object
cvc
currency
name
address_line1
address_line1_check
address_line2
address_city
address_state
address_zip
address_zip_check
address_country
cvc_check
fingerprint
Modifier and Type | Class and Description |
---|---|
static interface |
Card.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Card> |
CREATOR |
static JSONifiable.Creator<Card> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
Card()
Constructs a new empty instance.
|
protected |
Card(boolean noInit)
Constructs a new empty instance.
|
|
Card(Card src)
Constructs a new instance that is a deep copy of the source instance.
|
|
Card(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.
|
|
Card(String json)
Constructs a new instance from the given JSON String.
|
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 |
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 |
clearCurrency()
Clears the 'currency' field, the 'has' method for this field will now return false
|
void |
clearCvc()
Clears the 'cvc' field, the 'has' method for this field will now return false
|
void |
clearCvcCheck()
Clears the 'cvc_check' field, the 'has' method for this field will now return false
|
void |
clearCvv()
Clears the 'cvv' 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 |
clearEncryptedTrack2()
Clears the 'encrypted_track2' 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 |
clearFingerprint()
Clears the 'fingerprint' 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 |
clearFundingType()
Clears the 'funding_type' 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 |
clearIsPurchaseCard()
Clears the 'is_purchase_card' 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 |
clearTokenMetaId()
Clears the 'token_meta_id' field, the 'has' method for this field will now return false
|
void |
clearTransarmorKeyId()
Clears the 'transarmor_key_id' field, the 'has' method for this field will now return false
|
void |
clearTransarmorToken()
Clears the 'transarmor_token' field, the 'has' method for this field will now return false
|
void |
clearTransarmorTokenType()
Clears the 'transarmor_token_type' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
Card |
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.
|
CardType |
getBrand()
brand of card (for response only)
|
String |
getCountry()
two character country code
|
Long |
getCreatedTime() |
String |
getCurrency()
Required in order to add the card to an account; in all other cases, this parameter is not used.
|
String |
getCvc()
Card security code.
|
String |
getCvcCheck()
If a CVC was provided, results of the check: pass, fail, unavailable, or unchecked.
|
String |
getCvv()
card verification value
|
String |
getEncryptedPan()
Encrypted Card provided by TA.
|
String |
getEncryptedPanForBinLookup()
Encrypted Card for bin lookup purposes only.
|
String |
getEncryptedTrack2()
Encrypted Track 2 Data provided by Clover devices from EMV or Swipe.
|
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 |
getFingerprint()
Uniquely identifies this particular card number.
|
String |
getFirst6()
first6 of number
|
FundingType |
getFundingType() |
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier for the object.
|
Boolean |
getIsPurchaseCard()
whether this is purchase card or not
|
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
|
String |
getObject()
String representing the object’s type.
|
Long |
getTokenMetaId()
token meta id in the db
|
String |
getTransarmorKeyId()
Transarmor key id to be used to encrypt pan or track data during tokenization request.
|
String |
getTransarmorToken()
Transarmor token (needed for Payeezy migration)
|
String |
getTransarmorTokenType()
Transarmor token type (needed for Payeezy migration)
|
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 |
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 |
hasCurrency()
Checks whether the 'currency' field has been set, however the value could be null
|
boolean |
hasCvc()
Checks whether the 'cvc' field has been set, however the value could be null
|
boolean |
hasCvcCheck()
Checks whether the 'cvc_check' field has been set, however the value could be null
|
boolean |
hasCvv()
Checks whether the 'cvv' 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 |
hasEncryptedTrack2()
Checks whether the 'encrypted_track2' 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 |
hasFingerprint()
Checks whether the 'fingerprint' 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 |
hasFundingType()
Checks whether the 'funding_type' 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 |
hasIsPurchaseCard()
Checks whether the 'is_purchase_card' 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 |
hasTokenMetaId()
Checks whether the 'token_meta_id' field has been set, however the value could be null
|
boolean |
hasTransarmorKeyId()
Checks whether the 'transarmor_key_id' field has been set, however the value could be null
|
boolean |
hasTransarmorToken()
Checks whether the 'transarmor_token' field has been set, however the value could be null
|
boolean |
hasTransarmorTokenType()
Checks whether the 'transarmor_token_type' 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 |
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 |
isNotNullCurrency()
Checks whether the 'currency' field is set and is not null
|
boolean |
isNotNullCvc()
Checks whether the 'cvc' field is set and is not null
|
boolean |
isNotNullCvcCheck()
Checks whether the 'cvc_check' field is set and is not null
|
boolean |
isNotNullCvv()
Checks whether the 'cvv' 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 |
isNotNullEncryptedTrack2()
Checks whether the 'encrypted_track2' 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 |
isNotNullFingerprint()
Checks whether the 'fingerprint' field is set and is not null
|
boolean |
isNotNullFirst6()
Checks whether the 'first6' field is set and is not null
|
boolean |
isNotNullFundingType()
Checks whether the 'funding_type' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullIsPurchaseCard()
Checks whether the 'is_purchase_card' 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 |
isNotNullTokenMetaId()
Checks whether the 'token_meta_id' field is set and is not null
|
boolean |
isNotNullTransarmorKeyId()
Checks whether the 'transarmor_key_id' field is set and is not null
|
boolean |
isNotNullTransarmorToken()
Checks whether the 'transarmor_token' field is set and is not null
|
boolean |
isNotNullTransarmorTokenType()
Checks whether the 'transarmor_token_type' field is set and is not null
|
void |
mergeChanges(Card 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.
|
Card |
setAddressCity(String address_city)
Sets the field 'address_city'.
|
Card |
setAddressCountry(String address_country)
Sets the field 'address_country'.
|
Card |
setAddressLine1(String address_line1)
Sets the field 'address_line1'.
|
Card |
setAddressLine1Check(String address_line1_check)
Sets the field 'address_line1_check'.
|
Card |
setAddressLine2(String address_line2)
Sets the field 'address_line2'.
|
Card |
setAddressState(String address_state)
Sets the field 'address_state'.
|
Card |
setAddressZip(String address_zip)
Sets the field 'address_zip'.
|
Card |
setAddressZipCheck(String address_zip_check)
Sets the field 'address_zip_check'.
|
Card |
setBrand(CardType brand)
Sets the field 'brand'.
|
Card |
setCountry(String country)
Sets the field 'country'.
|
Card |
setCreatedTime(Long created_time)
Sets the field 'created_time'.
|
Card |
setCurrency(String currency)
Sets the field 'currency'.
|
Card |
setCvc(String cvc)
Sets the field 'cvc'.
|
Card |
setCvcCheck(String cvc_check)
Sets the field 'cvc_check'.
|
Card |
setCvv(String cvv)
Sets the field 'cvv'.
|
Card |
setEncryptedPan(String encrypted_pan)
Sets the field 'encrypted_pan'.
|
Card |
setEncryptedPanForBinLookup(String encrypted_pan_for_bin_lookup)
Sets the field 'encrypted_pan_for_bin_lookup'.
|
Card |
setEncryptedTrack2(String encrypted_track2)
Sets the field 'encrypted_track2'.
|
Card |
setExpMonth(String exp_month)
Sets the field 'exp_month'.
|
Card |
setExpYear(String exp_year)
Sets the field 'exp_year'.
|
Card |
setFingerprint(String fingerprint)
Sets the field 'fingerprint'.
|
Card |
setFirst6(String first6)
Sets the field 'first6'.
|
Card |
setFundingType(FundingType funding_type)
Sets the field 'funding_type'.
|
Card |
setId(String id)
Sets the field 'id'.
|
Card |
setIsPurchaseCard(Boolean is_purchase_card)
Sets the field 'is_purchase_card'.
|
Card |
setLast4(String last4)
Sets the field 'last4'.
|
Card |
setModifiedTime(Long modified_time)
Sets the field 'modified_time'.
|
Card |
setName(String name)
Sets the field 'name'.
|
Card |
setNumber(String number)
Sets the field 'number'.
|
Card |
setObject(String object)
Sets the field 'object'.
|
Card |
setTokenMetaId(Long token_meta_id)
Sets the field 'token_meta_id'.
|
Card |
setTransarmorKeyId(String transarmor_key_id)
Sets the field 'transarmor_key_id'.
|
Card |
setTransarmorToken(String transarmor_token)
Sets the field 'transarmor_token'.
|
Card |
setTransarmorTokenType(String transarmor_token_type)
Sets the field 'transarmor_token_type'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<Card> CREATOR
public static final JSONifiable.Creator<Card> JSON_CREATOR
public Card()
protected Card(boolean noInit)
public Card(String json) throws IllegalArgumentException
IllegalArgumentException
public Card(JSONObject jsonObject)
public Card(Card src)
public String getId()
public String getNumber()
public String getEncryptedPan()
public String getEncryptedTrack2()
public String getEncryptedPanForBinLookup()
public String getTransarmorToken()
public String getTransarmorTokenType()
public Long getTokenMetaId()
public String getTransarmorKeyId()
public String getExpMonth()
public String getExpYear()
public String getCvv()
public String getFirst6()
public String getLast4()
public String getCountry()
public CardType getBrand()
public FundingType getFundingType()
public Boolean getIsPurchaseCard()
public Long getCreatedTime()
public Long getModifiedTime()
public String getObject()
public String getCvc()
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()
public String getCvcCheck()
public String getFingerprint()
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 isNotNullEncryptedTrack2()
public boolean isNotNullEncryptedPanForBinLookup()
public boolean isNotNullTransarmorToken()
public boolean isNotNullTransarmorTokenType()
public boolean isNotNullTokenMetaId()
public boolean isNotNullTransarmorKeyId()
public boolean isNotNullExpMonth()
public boolean isNotNullExpYear()
public boolean isNotNullCvv()
public boolean isNotNullFirst6()
public boolean isNotNullLast4()
public boolean isNotNullCountry()
public boolean isNotNullBrand()
public boolean isNotNullFundingType()
public boolean isNotNullIsPurchaseCard()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullObject()
public boolean isNotNullCvc()
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 isNotNullCvcCheck()
public boolean isNotNullFingerprint()
public boolean hasId()
public boolean hasNumber()
public boolean hasEncryptedPan()
public boolean hasEncryptedTrack2()
public boolean hasEncryptedPanForBinLookup()
public boolean hasTransarmorToken()
public boolean hasTransarmorTokenType()
public boolean hasTokenMetaId()
public boolean hasTransarmorKeyId()
public boolean hasExpMonth()
public boolean hasExpYear()
public boolean hasCvv()
public boolean hasFirst6()
public boolean hasLast4()
public boolean hasCountry()
public boolean hasBrand()
public boolean hasFundingType()
public boolean hasIsPurchaseCard()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasObject()
public boolean hasCvc()
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 boolean hasCvcCheck()
public boolean hasFingerprint()
public Card setEncryptedTrack2(String encrypted_track2)
public Card setEncryptedPanForBinLookup(String encrypted_pan_for_bin_lookup)
public Card setTransarmorToken(String transarmor_token)
public Card setTransarmorTokenType(String transarmor_token_type)
public Card setTransarmorKeyId(String transarmor_key_id)
public Card setFundingType(FundingType funding_type)
public Card setIsPurchaseCard(Boolean is_purchase_card)
public Card setAddressLine1Check(String address_line1_check)
public Card setAddressZipCheck(String address_zip_check)
public Card setAddressCountry(String address_country)
public void clearId()
public void clearNumber()
public void clearEncryptedPan()
public void clearEncryptedTrack2()
public void clearEncryptedPanForBinLookup()
public void clearTransarmorToken()
public void clearTransarmorTokenType()
public void clearTokenMetaId()
public void clearTransarmorKeyId()
public void clearExpMonth()
public void clearExpYear()
public void clearCvv()
public void clearFirst6()
public void clearLast4()
public void clearCountry()
public void clearBrand()
public void clearFundingType()
public void clearIsPurchaseCard()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearObject()
public void clearCvc()
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 void clearCvcCheck()
public void clearFingerprint()
public boolean containsChanges()
public void resetChangeLog()
public Card copyChanges()
public void mergeChanges(Card src)