Package com.mercadopago.resources
Class CardToken
- java.lang.Object
-
- com.mercadopago.net.MPResource
-
- com.mercadopago.resources.CardToken
-
public class CardToken extends MPResource
Send customer card data to Mercado Pago server and receive a token to complete the payments transactions. For testing only. .
-
-
Constructor Summary
Constructors Constructor Description CardToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
CustomerCardCardholder
getCardholder()
Cardholder information.String
getCardId()
Card id.Integer
getCardNumberLength()
Security code of the card.OffsetDateTime
getDateCreated()
Date token was created.OffsetDateTime
getDateDue()
Date token expires.OffsetDateTime
getDateLastUpdated()
Date token was last updated.Integer
getExpirationMonth()
Expiration month of the card.Integer
getExpirationYear()
Expiration year of the card.String
getFirstSixDigits()
First six digits of card number.String
getId()
Card token.String
getLastFourDigits()
Last four digits of the card.Boolean
getLiveMode()
Flag indicating if this is a production card token.Boolean
getLuhnValidation()
Flag indicating if Luhn validation is used.Boolean
getRequireEsc()
Require esc.Integer
getSecurityCodeLength()
Security code of the card.String
getStatus()
Current status of card.int
hashCode()
-
Methods inherited from class com.mercadopago.net.MPResource
getResponse, setResponse, toString
-
-
-
-
Method Detail
-
getId
public String getId()
Card token.
-
getCardId
public String getCardId()
Card id.
-
getFirstSixDigits
public String getFirstSixDigits()
First six digits of card number.
-
getExpirationMonth
public Integer getExpirationMonth()
Expiration month of the card.
-
getExpirationYear
public Integer getExpirationYear()
Expiration year of the card.
-
getLastFourDigits
public String getLastFourDigits()
Last four digits of the card.
-
getCardholder
public CustomerCardCardholder getCardholder()
Cardholder information.
-
getStatus
public String getStatus()
Current status of card. E.g. active.
-
getDateCreated
public OffsetDateTime getDateCreated()
Date token was created.
-
getDateLastUpdated
public OffsetDateTime getDateLastUpdated()
Date token was last updated.
-
getDateDue
public OffsetDateTime getDateDue()
Date token expires.
-
getLuhnValidation
public Boolean getLuhnValidation()
Flag indicating if Luhn validation is used.
-
getLiveMode
public Boolean getLiveMode()
Flag indicating if this is a production card token.
-
getRequireEsc
public Boolean getRequireEsc()
Require esc.
-
getCardNumberLength
public Integer getCardNumberLength()
Security code of the card.
-
getSecurityCodeLength
public Integer getSecurityCodeLength()
Security code of the card.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classMPResource
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classMPResource
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMPResource
-
-