Class Card
-
- All Implemented Interfaces:
public final class CardCard details with potentially PCI sensitive information for Enterprise customers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCard.BuilderA builder for Card.
-
Method Summary
Modifier and Type Method Description final NonPciCardtoNonPciCard()final Stringtoken()Globally unique identifier. final StringaccountToken()Globally unique identifier for the account to which the card belongs. final StringcardProgramToken()Globally unique identifier for the card program on which the card exists. final OffsetDateTimecreated()An RFC 3339 timestamp for when the card was created. final NonPciCard.FundingAccountfunding()Deprecated: Funding account for the card. final StringlastFour()Last four digits of the card number. final NonPciCard.PinStatuspinStatus()Indicates if a card is blocked due a PIN status issue (e.g. final LongspendLimit()Amount (in cents) to limit approved authorizations (e.g. final SpendLimitDurationspendLimitDuration()Spend limit duration values: ANNUALLY- Card will authorize transactions up to spend limit for the trailing year.FOREVER- Card will authorize only up to spend limit for the entire lifetime of the card.MONTHLY- Card will authorize transactions up to spend limit for the trailing month. To support recurring monthly payments, which can occur on different day every month, the time window we consider for monthly velocity starts 6 days after the current calendar date one month prior.TRANSACTION- Card will authorize multiple transactions if each individual transaction is under the spend limit.
final NonPciCard.Statestate()Card state values: * CLOSED- Card will no longer approve authorizations.final NonPciCard.Typetype()Card types: * VIRTUAL- Card will authorize at any merchant and can be added to a digital wallet like Apple Pay or Google Pay (if the card program is digital wallet-enabled).final Optional<List<String>>authRuleTokens()List of identifiers for the Auth Rule(s) that are applied on the card. final Optional<String>cardholderCurrency()3-character alphabetic ISO 4217 code for the currency of the cardholder. final Optional<String>comment()Additional context or information related to the card. final Optional<String>digitalCardArtToken()Specifies the digital card art to be displayed in the user's digital wallet after tokenization. final Optional<String>expMonth()Two digit (MM) expiry month. final Optional<String>expYear()Four digit (yyyy) expiry year. final Optional<String>hostname()Hostname of card's locked merchant (will be empty if not applicable). final Optional<String>memo()Friendly name to identify the card. final Optional<String>networkProgramToken()Globally unique identifier for the card's network program. final Optional<List<String>>pendingCommands()Indicates if there are offline PIN changes pending card interaction with an offline PIN terminal. final Optional<String>productId()Only applicable to cards of type PHYSICAL.final Optional<String>replacementFor()If the card is a replacement for another card, the globally unique identifier for the card that was replaced. final Optional<NonPciCard.Substatus>substatus()Card state substatus values: * LOST- The physical card is no longer in the cardholder's possession due to being lost or never received by the cardholder.final Optional<String>cvv()Three digit cvv printed on the back of the card. final Optional<String>pan()Primary Account Number (PAN) (i.e. final JsonField<String>_token()Returns the raw JSON value of token. final JsonField<String>_accountToken()Returns the raw JSON value of accountToken. final JsonField<String>_cardProgramToken()Returns the raw JSON value of cardProgramToken. final JsonField<OffsetDateTime>_created()Returns the raw JSON value of created. final JsonField<NonPciCard.FundingAccount>_funding()Returns the raw JSON value of funding. final JsonField<String>_lastFour()Returns the raw JSON value of lastFour. final JsonField<NonPciCard.PinStatus>_pinStatus()Returns the raw JSON value of pinStatus. final JsonField<Long>_spendLimit()Returns the raw JSON value of spendLimit. final JsonField<SpendLimitDuration>_spendLimitDuration()Returns the raw JSON value of spendLimitDuration. final JsonField<NonPciCard.State>_state()Returns the raw JSON value of state. final JsonField<NonPciCard.Type>_type()Returns the raw JSON value of type. final JsonField<List<String>>_authRuleTokens()Returns the raw JSON value of authRuleTokens. final JsonField<String>_cardholderCurrency()Returns the raw JSON value of cardholderCurrency. final JsonField<String>_comment()Returns the raw JSON value of comment. final JsonField<String>_digitalCardArtToken()Returns the raw JSON value of digitalCardArtToken. final JsonField<String>_expMonth()Returns the raw JSON value of expMonth. final JsonField<String>_expYear()Returns the raw JSON value of expYear. final JsonField<String>_hostname()Returns the raw JSON value of hostname. final JsonField<String>_memo()Returns the raw JSON value of memo. final JsonField<String>_networkProgramToken()Returns the raw JSON value of networkProgramToken. final JsonField<List<String>>_pendingCommands()Returns the raw JSON value of pendingCommands. final JsonField<String>_productId()Returns the raw JSON value of productId. final JsonField<String>_replacementFor()Returns the raw JSON value of replacementFor. final JsonField<NonPciCard.Substatus>_substatus()Returns the raw JSON value of substatus. final JsonField<String>_cvv()Returns the raw JSON value of cvv. final JsonField<String>_pan()Returns the raw JSON value of pan. final Map<String, JsonValue>_additionalProperties()final Card.BuildertoBuilder()final Cardvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Card.Builderbuilder()Returns a mutable builder for constructing an instance of Card. -
-
Method Detail
-
toNonPciCard
final NonPciCard toNonPciCard()
-
accountToken
final String accountToken()
Globally unique identifier for the account to which the card belongs.
-
cardProgramToken
final String cardProgramToken()
Globally unique identifier for the card program on which the card exists.
-
created
final OffsetDateTime created()
An RFC 3339 timestamp for when the card was created. UTC time zone.
-
funding
final NonPciCard.FundingAccount funding()
Deprecated: Funding account for the card.
-
pinStatus
final NonPciCard.PinStatus pinStatus()
Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect attempts).
-
spendLimit
final Long spendLimit()
Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit). Transaction requests above the spend limit will be declined.
-
spendLimitDuration
final SpendLimitDuration spendLimitDuration()
Spend limit duration values:
ANNUALLY- Card will authorize transactions up to spend limit for the trailing year.FOREVER- Card will authorize only up to spend limit for the entire lifetime of the card.MONTHLY- Card will authorize transactions up to spend limit for the trailing month. To support recurring monthly payments, which can occur on different day every month, the time window we consider for monthly velocity starts 6 days after the current calendar date one month prior.TRANSACTION- Card will authorize multiple transactions if each individual transaction is under the spend limit.
-
state
final NonPciCard.State state()
Card state values: *
CLOSED- Card will no longer approve authorizations. Closing a card cannot be undone. *OPEN- Card will approve authorizations (if they match card and account parameters). *PAUSED- Card will decline authorizations, but can be resumed at a later time. *PENDING_FULFILLMENT- The initial state for cards of typePHYSICAL. The card is provisioned pending manufacturing and fulfillment. Cards in this state can accept authorizations for e-commerce purchases, but not for "Card Present" purchases where the physical card itself is present. *PENDING_ACTIVATION- At regular intervals, cards of typePHYSICALin statePENDING_FULFILLMENTare sent to the card production warehouse and updated to statePENDING_ACTIVATION. Similar toPENDING_FULFILLMENT, cards in this state can be used for e-commerce transactions or can be added to mobile wallets. API clients should update the card's state toOPENonly after the cardholder confirms receipt of the card. In sandbox, the same daily batch fulfillment occurs, but no cards are actually manufactured.
-
type
final NonPciCard.Type type()
Card types: *
VIRTUAL- Card will authorize at any merchant and can be added to a digital wallet like Apple Pay or Google Pay (if the card program is digital wallet-enabled). *PHYSICAL- Manufactured and sent to the cardholder. We offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality. *SINGLE_USE- Card is closed upon first successful authorization. *MERCHANT_LOCKED- Deprecated Card is locked to the first merchant that successfully authorizes the card. *UNLOCKED- Deprecated Similar behavior to VIRTUAL cards, please use VIRTUAL instead. *DIGITAL_WALLET- Deprecated Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
-
authRuleTokens
@Deprecated(message = "deprecated") final Optional<List<String>> authRuleTokens()
List of identifiers for the Auth Rule(s) that are applied on the card. This field is deprecated and will no longer be populated in the
Cardobject. The key will be removed from the schema in a future release. Use the/auth_rulesendpoints to fetch Auth Rule information instead.
-
cardholderCurrency
final Optional<String> cardholderCurrency()
3-character alphabetic ISO 4217 code for the currency of the cardholder.
-
digitalCardArtToken
final Optional<String> digitalCardArtToken()
Specifies the digital card art to be displayed in the user's digital wallet after tokenization. This artwork must be approved by Mastercard and configured by Lithic to use.
-
hostname
final Optional<String> hostname()
Hostname of card's locked merchant (will be empty if not applicable).
-
networkProgramToken
final Optional<String> networkProgramToken()
Globally unique identifier for the card's network program. Null if the card is not associated with a network program. Currently applicable to Visa cards participating in Account Level Management only
-
pendingCommands
final Optional<List<String>> pendingCommands()
Indicates if there are offline PIN changes pending card interaction with an offline PIN terminal. Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable only to cards issued in markets supporting offline PINs.
-
productId
final Optional<String> productId()
Only applicable to cards of type
PHYSICAL. This must be configured with Lithic before use. Specifies the configuration (i.e., physical card art) that the card should be manufactured with.
-
replacementFor
final Optional<String> replacementFor()
If the card is a replacement for another card, the globally unique identifier for the card that was replaced.
-
substatus
final Optional<NonPciCard.Substatus> substatus()
Card state substatus values: *
LOST- The physical card is no longer in the cardholder's possession due to being lost or never received by the cardholder. *COMPROMISED- Card information has been exposed, potentially leading to unauthorized access. This may involve physical card theft, cloning, or online data breaches. *DAMAGED- The physical card is not functioning properly, such as having chip failures or a demagnetized magnetic stripe. *END_USER_REQUEST- The cardholder requested the closure of the card for reasons unrelated to fraud or damage, such as switching to a different product or closing the account. *ISSUER_REQUEST- The issuer closed the card for reasons unrelated to fraud or damage, such as account inactivity, product or policy changes, or technology upgrades. *NOT_ACTIVE- The card hasn’t had any transaction activity for a specified period, applicable to statuses likePAUSEDorCLOSED. *SUSPICIOUS_ACTIVITY- The card has one or more suspicious transactions or activities that require review. This can involve prompting the cardholder to confirm legitimate use or report confirmed fraud. *INTERNAL_REVIEW- The card is temporarily paused pending further internal review. *EXPIRED- The card has expired and has been closed without being reissued. *UNDELIVERABLE- The card cannot be delivered to the cardholder and has been returned. *OTHER- The reason for the status does not fall into any of the above categories. A comment can be provided to specify the reason.
-
pan
final Optional<String> pan()
Primary Account Number (PAN) (i.e. the card number). Customers must be PCI compliant to have PAN returned as a field in production. Please contact [email protected] for questions.
-
_token
final JsonField<String> _token()
Returns the raw JSON value of token.
Unlike token, this method doesn't throw if the JSON field has an unexpected type.
-
_accountToken
final JsonField<String> _accountToken()
Returns the raw JSON value of accountToken.
Unlike accountToken, this method doesn't throw if the JSON field has an unexpected type.
-
_cardProgramToken
final JsonField<String> _cardProgramToken()
Returns the raw JSON value of cardProgramToken.
Unlike cardProgramToken, this method doesn't throw if the JSON field has an unexpected type.
-
_created
final JsonField<OffsetDateTime> _created()
Returns the raw JSON value of created.
Unlike created, this method doesn't throw if the JSON field has an unexpected type.
-
_funding
final JsonField<NonPciCard.FundingAccount> _funding()
Returns the raw JSON value of funding.
Unlike funding, this method doesn't throw if the JSON field has an unexpected type.
-
_lastFour
final JsonField<String> _lastFour()
Returns the raw JSON value of lastFour.
Unlike lastFour, this method doesn't throw if the JSON field has an unexpected type.
-
_pinStatus
final JsonField<NonPciCard.PinStatus> _pinStatus()
Returns the raw JSON value of pinStatus.
Unlike pinStatus, this method doesn't throw if the JSON field has an unexpected type.
-
_spendLimit
final JsonField<Long> _spendLimit()
Returns the raw JSON value of spendLimit.
Unlike spendLimit, this method doesn't throw if the JSON field has an unexpected type.
-
_spendLimitDuration
final JsonField<SpendLimitDuration> _spendLimitDuration()
Returns the raw JSON value of spendLimitDuration.
Unlike spendLimitDuration, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<NonPciCard.State> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<NonPciCard.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_authRuleTokens
@Deprecated(message = "deprecated") final JsonField<List<String>> _authRuleTokens()
Returns the raw JSON value of authRuleTokens.
Unlike authRuleTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_cardholderCurrency
final JsonField<String> _cardholderCurrency()
Returns the raw JSON value of cardholderCurrency.
Unlike cardholderCurrency, this method doesn't throw if the JSON field has an unexpected type.
-
_comment
final JsonField<String> _comment()
Returns the raw JSON value of comment.
Unlike comment, this method doesn't throw if the JSON field has an unexpected type.
-
_digitalCardArtToken
final JsonField<String> _digitalCardArtToken()
Returns the raw JSON value of digitalCardArtToken.
Unlike digitalCardArtToken, this method doesn't throw if the JSON field has an unexpected type.
-
_expMonth
final JsonField<String> _expMonth()
Returns the raw JSON value of expMonth.
Unlike expMonth, this method doesn't throw if the JSON field has an unexpected type.
-
_expYear
final JsonField<String> _expYear()
Returns the raw JSON value of expYear.
Unlike expYear, this method doesn't throw if the JSON field has an unexpected type.
-
_hostname
final JsonField<String> _hostname()
Returns the raw JSON value of hostname.
Unlike hostname, this method doesn't throw if the JSON field has an unexpected type.
-
_memo
final JsonField<String> _memo()
Returns the raw JSON value of memo.
Unlike memo, this method doesn't throw if the JSON field has an unexpected type.
-
_networkProgramToken
final JsonField<String> _networkProgramToken()
Returns the raw JSON value of networkProgramToken.
Unlike networkProgramToken, this method doesn't throw if the JSON field has an unexpected type.
-
_pendingCommands
final JsonField<List<String>> _pendingCommands()
Returns the raw JSON value of pendingCommands.
Unlike pendingCommands, this method doesn't throw if the JSON field has an unexpected type.
-
_productId
final JsonField<String> _productId()
Returns the raw JSON value of productId.
Unlike productId, this method doesn't throw if the JSON field has an unexpected type.
-
_replacementFor
final JsonField<String> _replacementFor()
Returns the raw JSON value of replacementFor.
Unlike replacementFor, this method doesn't throw if the JSON field has an unexpected type.
-
_substatus
final JsonField<NonPciCard.Substatus> _substatus()
Returns the raw JSON value of substatus.
Unlike substatus, this method doesn't throw if the JSON field has an unexpected type.
-
_cvv
final JsonField<String> _cvv()
Returns the raw JSON value of cvv.
Unlike cvv, this method doesn't throw if the JSON field has an unexpected type.
-
_pan
final JsonField<String> _pan()
Returns the raw JSON value of pan.
Unlike pan, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Card.Builder toBuilder()
-
builder
final static Card.Builder builder()
Returns a mutable builder for constructing an instance of Card.
The following fields are required:
.token() .accountToken() .cardProgramToken() .created() .funding() .lastFour() .pinStatus() .spendLimit() .spendLimitDuration() .state() .type()
-
-
-