All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mercadopago.resources.CardToken Maven / Gradle / Ivy

There is a newer version: 2.1.29
Show newest version
package com.mercadopago.resources;

import com.mercadopago.net.MPResource;
import com.mercadopago.resources.customer.CustomerCardCardholder;
import java.time.OffsetDateTime;
import lombok.EqualsAndHashCode;
import lombok.Getter;

/**
 * Send customer card data to Mercado Pago server and receive a token to complete the payments
 * transactions. For testing only. .
 */
@Getter
@EqualsAndHashCode(callSuper = true)
public class CardToken extends MPResource {

  /** Card token. */
  private String id;

  /** Card id. */
  private String cardId;

  /** First six digits of card number. */
  private String firstSixDigits;

  /** Expiration month of the card. */
  private Integer expirationMonth;

  /** Expiration year of the card. */
  private Integer expirationYear;

  /** Last four digits of the card. */
  private String lastFourDigits;

  /** Cardholder information. */
  private CustomerCardCardholder cardholder;

  /** Current status of card. E.g. active. */
  private String status;

  /** Date token was created. */
  private OffsetDateTime dateCreated;

  /** Date token was last updated. */
  private OffsetDateTime dateLastUpdated;

  /** Date token expires. */
  private OffsetDateTime dateDue;

  /** Flag indicating if Luhn validation is used. */
  private Boolean luhnValidation;

  /** Flag indicating if this is a production card token. */
  private Boolean liveMode;

  /** Require esc. */
  private Boolean requireEsc;

  /** Security code of the card. */
  private Integer cardNumberLength;

  /** Security code of the card. */
  private Integer securityCodeLength;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy