Class Customer
- java.lang.Object
-
- com.mercadopago.net.MPResource
-
- com.mercadopago.resources.customer.Customer
-
public class Customer extends MPResource
This class allows you to store customers data safely to improve the shopping experience. This will allow your customer to complete their purchases much faster and easily when used in conjunction with the Cards class.
-
-
Constructor Summary
Constructors Constructor Description Customer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomerDefaultAddress
getAddress()
Customer's address.List<CustomerAddress>
getAddresses()
Addresses.List<CustomerCard>
getCards()
List of cards.OffsetDateTime
getDateCreated()
Customer's date created.OffsetDateTime
getDateLastUpdated()
Customer's date last update.OffsetDateTime
getDateRegistered()
Customer's date registered.String
getDefaultAddress()
Customer's default address.String
getDefaultCard()
Default card.String
getDescription()
Customer's description.String
getEmail()
Customer's email.String
getFirstName()
Customer's first name.String
getId()
Customer ID.Identification
getIdentification()
Customer's identification information.String
getLastName()
Customer's last name.Boolean
getLiveMode()
Live mode.Map<String,Object>
getMetadata()
Metadata.Phone
getPhone()
Customer's phone information.-
Methods inherited from class com.mercadopago.net.MPResource
canEqual, equals, getResponse, hashCode, setResponse, toString
-
-
-
-
Method Detail
-
getId
public String getId()
Customer ID.
-
getEmail
public String getEmail()
Customer's email.
-
getFirstName
public String getFirstName()
Customer's first name.
-
getLastName
public String getLastName()
Customer's last name.
-
getPhone
public Phone getPhone()
Customer's phone information.
-
getIdentification
public Identification getIdentification()
Customer's identification information.
-
getDefaultAddress
public String getDefaultAddress()
Customer's default address.
-
getAddress
public CustomerDefaultAddress getAddress()
Customer's address.
-
getDateRegistered
public OffsetDateTime getDateRegistered()
Customer's date registered.
-
getDescription
public String getDescription()
Customer's description.
-
getDateCreated
public OffsetDateTime getDateCreated()
Customer's date created.
-
getDateLastUpdated
public OffsetDateTime getDateLastUpdated()
Customer's date last update.
-
getDefaultCard
public String getDefaultCard()
Default card.
-
getCards
public List<CustomerCard> getCards()
List of cards.
-
getAddresses
public List<CustomerAddress> getAddresses()
Addresses.
-
getLiveMode
public Boolean getLiveMode()
Live mode.
-
-