-
- All Implemented Interfaces:
public class Customer.Builder
-
-
Method Summary
Modifier and Type Method Description Customer.Builder
setGivenName(@Nullable() String givenName)
Sets first name or given name. Customer.Builder
setSurname(@Nullable() String surname)
Sets last name or surname. Customer.Builder
setPhone(@Nullable() String phone)
Sets the phone number. Customer.Builder
setEmail(@Nullable() String email)
Sets the email. Customer
build()
Creates a new customer. -
-
Method Detail
-
setGivenName
@NonNull() Customer.Builder setGivenName(@Nullable() String givenName)
Sets first name or given name.
- Parameters:
givenName
- The first name or given name of the customer.
-
setSurname
@NonNull() Customer.Builder setSurname(@Nullable() String surname)
Sets last name or surname.
- Parameters:
surname
- The last name or surname of the customer.
-
setPhone
@NonNull() Customer.Builder setPhone(@Nullable() String phone)
Sets the phone number.
- Parameters:
phone
- phone number of the customer.
-
setEmail
@NonNull() Customer.Builder setEmail(@Nullable() String email)
Sets the email.
- Parameters:
email
- email of the customer.
-
-
-
-