Class Customer.CustomerBuilder
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.setups.entities.customer.Customer.CustomerBuilder
-
- Enclosing class:
- Customer
public static class Customer.CustomerBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Customerbuild()Customer.CustomerBuilderdevice(CustomerDevice device)Information about the customer's deviceCustomer.CustomerBuilderemail(CustomerEmail email)The customer's email informationCustomer.CustomerBuildermerchantAccount(MerchantAccount merchantAccount)Details of the account the customer holds with the merchantCustomer.CustomerBuildername(java.lang.String name)<= 100 characters The customer's full nameCustomer.CustomerBuilderphone(Phone phone)The customer's phone numberjava.lang.StringtoString()
-
-
-
Method Detail
-
email
public Customer.CustomerBuilder email(CustomerEmail email)
The customer's email information- Returns:
this.
-
name
public Customer.CustomerBuilder name(java.lang.String name)
<= 100 characters The customer's full name- Returns:
this.
-
phone
public Customer.CustomerBuilder phone(Phone phone)
The customer's phone number- Returns:
this.
-
device
public Customer.CustomerBuilder device(CustomerDevice device)
Information about the customer's device- Returns:
this.
-
merchantAccount
public Customer.CustomerBuilder merchantAccount(MerchantAccount merchantAccount)
Details of the account the customer holds with the merchant- Returns:
this.
-
build
public Customer build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-