Class Customer
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.setups.entities.customer.Customer
-
public class Customer extends java.lang.ObjectCustomer information for payment setup
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomer.CustomerBuilder
-
Constructor Summary
Constructors Constructor Description Customer()Customer(CustomerEmail email, java.lang.String name, Phone phone, CustomerDevice device, MerchantAccount merchantAccount)Creates a newCustomerinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Customer.CustomerBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)CustomerDevicegetDevice()Information about the customer's deviceCustomerEmailgetEmail()The customer's email informationMerchantAccountgetMerchantAccount()Details of the account the customer holds with the merchantjava.lang.StringgetName()<= 100 characters The customer's full namePhonegetPhone()The customer's phone numberinthashCode()voidsetDevice(CustomerDevice device)Information about the customer's devicevoidsetEmail(CustomerEmail email)The customer's email informationvoidsetMerchantAccount(MerchantAccount merchantAccount)Details of the account the customer holds with the merchantvoidsetName(java.lang.String name)<= 100 characters The customer's full namevoidsetPhone(Phone phone)The customer's phone numberjava.lang.StringtoString()
-
-
-
Constructor Detail
-
Customer
public Customer()
-
Customer
public Customer(CustomerEmail email, java.lang.String name, Phone phone, CustomerDevice device, MerchantAccount merchantAccount)
Creates a newCustomerinstance.- Parameters:
email- The customer's email informationname- <= 100 characters The customer's full namephone- The customer's phone numberdevice- Information about the customer's devicemerchantAccount- Details of the account the customer holds with the merchant
-
-
Method Detail
-
builder
public static Customer.CustomerBuilder builder()
-
getEmail
public CustomerEmail getEmail()
The customer's email information
-
getName
public java.lang.String getName()
<= 100 characters The customer's full name
-
getPhone
public Phone getPhone()
The customer's phone number
-
getDevice
public CustomerDevice getDevice()
Information about the customer's device
-
getMerchantAccount
public MerchantAccount getMerchantAccount()
Details of the account the customer holds with the merchant
-
setEmail
public void setEmail(CustomerEmail email)
The customer's email information
-
setName
public void setName(java.lang.String name)
<= 100 characters The customer's full name
-
setPhone
public void setPhone(Phone phone)
The customer's phone number
-
setDevice
public void setDevice(CustomerDevice device)
Information about the customer's device
-
setMerchantAccount
public void setMerchantAccount(MerchantAccount merchantAccount)
Details of the account the customer holds with the merchant
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-