Package com.usebutton.merchant
Class Order.Customer.Builder
-
- All Implemented Interfaces:
public class Order.Customer.BuilderBuilder class for order customer Order.Customer.
-
-
Constructor Summary
Constructors Constructor Description Order.Customer.Builder(String id)
-
Method Summary
Modifier and Type Method Description Order.Customer.BuildersetIsNew(boolean isNew)A flag indicating whether the customer is new (or not). Order.Customerbuild()Builds and returns an Order customer Object Order.Customer.BuildersetEmail(String email)The SHA-256 hash of the transacting customer’s lowercase email, as a 64-character hex string. -
-
Constructor Detail
-
Order.Customer.Builder
Order.Customer.Builder(String id)
- Parameters:
id- The id for the transacting customer in your system (required)
-
-
Method Detail
-
setIsNew
Order.Customer.Builder setIsNew(boolean isNew)
A flag indicating whether the customer is new (or not).
-
build
Order.Customer build()
Builds and returns an Order customer Object
-
setEmail
Order.Customer.Builder setEmail(String email)
The SHA-256 hash of the transacting customer’s lowercase email, as a 64-character hex string. Note: The value of the e-mail address must be converted to lowercase before computing the hash. The hash itself may use uppercase or lowercase hex characters.
-
-
-
-