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 CustomerDefaultAddressgetAddress()Customer's address.List<CustomerAddress>getAddresses()Addresses.List<CustomerCard>getCards()List of cards.OffsetDateTimegetDateCreated()Customer's date created.OffsetDateTimegetDateLastUpdated()Customer's date last update.OffsetDateTimegetDateRegistered()Customer's date registered.StringgetDefaultAddress()Customer's default address.StringgetDefaultCard()Default card.StringgetDescription()Customer's description.StringgetEmail()Customer's email.StringgetFirstName()Customer's first name.StringgetId()Customer ID.IdentificationgetIdentification()Customer's identification information.StringgetLastName()Customer's last name.BooleangetLiveMode()Live mode.Map<String,Object>getMetadata()Metadata.PhonegetPhone()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.
-
-