Package com.blockchyp.client.dto
Class Customer
java.lang.Object
com.blockchyp.client.dto.Customer
Models a customer record.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPaymentMethod(CustomerToken value) Adds a model saved payment methods associated with a customer.Gets customer's company name.Gets optional customer ref that can be used for the client's system's customer id.Gets customer's email address.Gets customer's first name.getId()Gets BlockChyp assigned customer id.Gets customer's last name.Gets model saved payment methods associated with a customer.Gets customer's SMS or mobile number.voidsetCompanyName(String value) Sets customer's company name.voidsetCustomerRef(String value) Sets optional customer ref that can be used for the client's system's customer id.voidsetEmailAddress(String value) Sets customer's email address.voidsetFirstName(String value) Sets customer's first name.voidSets BlockChyp assigned customer id.voidsetLastName(String value) Sets customer's last name.voidsetPaymentMethods(Collection<CustomerToken> value) Sets model saved payment methods associated with a customer.voidsetSmsNumber(String value) Sets customer's SMS or mobile number.
-
Constructor Details
-
Customer
public Customer()
-
-
Method Details
-
setId
Sets BlockChyp assigned customer id.- Parameters:
value- BlockChyp assigned customer id.
-
getId
Gets BlockChyp assigned customer id.- Returns:
- BlockChyp assigned customer id.
-
setCustomerRef
Sets optional customer ref that can be used for the client's system's customer id.- Parameters:
value- optional customer ref that can be used for the client's system's customer id.
-
getCustomerRef
Gets optional customer ref that can be used for the client's system's customer id.- Returns:
- optional customer ref that can be used for the client's system's customer id.
-
setFirstName
Sets customer's first name.- Parameters:
value- customer's first name.
-
getFirstName
Gets customer's first name.- Returns:
- customer's first name.
-
setLastName
Sets customer's last name.- Parameters:
value- customer's last name.
-
getLastName
Gets customer's last name.- Returns:
- customer's last name.
-
setCompanyName
Sets customer's company name.- Parameters:
value- customer's company name.
-
getCompanyName
Gets customer's company name.- Returns:
- customer's company name.
-
setEmailAddress
Sets customer's email address.- Parameters:
value- customer's email address.
-
getEmailAddress
Gets customer's email address.- Returns:
- customer's email address.
-
setSmsNumber
Sets customer's SMS or mobile number.- Parameters:
value- customer's SMS or mobile number.
-
getSmsNumber
Gets customer's SMS or mobile number.- Returns:
- customer's SMS or mobile number.
-
setPaymentMethods
Sets model saved payment methods associated with a customer.- Parameters:
value- model saved payment methods associated with a customer.
-
getPaymentMethods
Gets model saved payment methods associated with a customer.- Returns:
- model saved payment methods associated with a customer.
-
addPaymentMethod
Adds a model saved payment methods associated with a customer.- Parameters:
value- model saved payment methods associated with a customer.
-