public final class CustomerImpl extends Object implements Customer
Constructor and Description |
---|
CustomerImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<Address> |
getAddresses()
The addresses have unique IDs in the addresses list
|
List<String> |
getBillingAddressIds()
The IDs from the addresses list which are used as billing addresses
|
String |
getCompanyName() |
ZonedDateTime |
getCreatedAt() |
CreatedBy |
getCreatedBy()
Present on resources created after 1/02/2019 except for events not tracked.
|
CustomFields |
getCustom() |
CustomerGroupReference |
getCustomerGroup() |
String |
getCustomerNumber()
The customer number can be used to create a more human-readable (in contrast to ID) identifier for the customer.
|
LocalDate |
getDateOfBirth() |
String |
getDefaultBillingAddressId()
The address ID in the addresses list
|
String |
getDefaultShippingAddressId()
The address ID in the addresses list
|
String |
getEmail()
The customer's email address and the main identifier of uniqueness for a customer account.
|
String |
getExternalId() |
String |
getFirstName() |
String |
getId()
The unique ID of the customer.
|
Boolean |
getIsEmailVerified() |
String |
getKey()
User-specific unique identifier for a customer.
|
ZonedDateTime |
getLastModifiedAt() |
LastModifiedBy |
getLastModifiedBy()
Present on resources updated after 1/02/2019 except for events not tracked.
|
String |
getLastName() |
String |
getLocale() |
String |
getMiddleName() |
String |
getPassword() |
String |
getSalutation() |
List<String> |
getShippingAddressIds()
The IDs from the addresses list which are used as shipping addresses
|
List<StoreKeyReference> |
getStores()
References to the stores the customer account is associated with.
|
String |
getTitle() |
String |
getVatId() |
Long |
getVersion()
The current version of the customer.
|
int |
hashCode() |
void |
setAddresses(Address... addresses) |
void |
setAddresses(List<Address> addresses) |
void |
setBillingAddressIds(List<String> billingAddressIds) |
void |
setBillingAddressIds(String... billingAddressIds) |
void |
setCompanyName(String companyName) |
void |
setCreatedAt(ZonedDateTime createdAt) |
void |
setCreatedBy(CreatedBy createdBy) |
void |
setCustom(CustomFields custom) |
void |
setCustomerGroup(CustomerGroupReference customerGroup) |
void |
setCustomerNumber(String customerNumber) |
void |
setDateOfBirth(LocalDate dateOfBirth) |
void |
setDefaultBillingAddressId(String defaultBillingAddressId) |
void |
setDefaultShippingAddressId(String defaultShippingAddressId) |
void |
setEmail(String email) |
void |
setExternalId(String externalId) |
void |
setFirstName(String firstName) |
void |
setId(String id) |
void |
setIsEmailVerified(Boolean isEmailVerified) |
void |
setKey(String key) |
void |
setLastModifiedAt(ZonedDateTime lastModifiedAt) |
void |
setLastModifiedBy(LastModifiedBy lastModifiedBy) |
void |
setLastName(String lastName) |
void |
setLocale(String locale) |
void |
setMiddleName(String middleName) |
void |
setPassword(String password) |
void |
setSalutation(String salutation) |
void |
setShippingAddressIds(List<String> shippingAddressIds) |
void |
setShippingAddressIds(String... shippingAddressIds) |
void |
setStores(List<StoreKeyReference> stores) |
void |
setStores(StoreKeyReference... stores) |
void |
setTitle(String title) |
void |
setVatId(String vatId) |
void |
setVersion(Long version) |
getClass, notify, notifyAll, toString, wait, wait, wait
builder, builder, of, of, withCustomer
withBaseResource
get
public String getId()
The unique ID of the customer.
getId
in interface BaseResource
getId
in interface Customer
getId
in interface DomainResource<Customer>
public Long getVersion()
The current version of the customer.
getVersion
in interface BaseResource
getVersion
in interface Customer
getVersion
in interface DomainResource<Customer>
public ZonedDateTime getCreatedAt()
getCreatedAt
in interface BaseResource
getCreatedAt
in interface Customer
public ZonedDateTime getLastModifiedAt()
getLastModifiedAt
in interface BaseResource
getLastModifiedAt
in interface Customer
public LastModifiedBy getLastModifiedBy()
Present on resources updated after 1/02/2019 except for events not tracked.
getLastModifiedBy
in interface Customer
public CreatedBy getCreatedBy()
Present on resources created after 1/02/2019 except for events not tracked.
getCreatedBy
in interface Customer
public String getCustomerNumber()
The customer number can be used to create a more human-readable (in contrast to ID) identifier for the customer. It should be unique across a project. Once the field was set it cannot be changed anymore.
getCustomerNumber
in interface Customer
public String getEmail()
The customer's email address and the main identifier of uniqueness for a customer account. Email addresses are either unique to the store they're specified for, or for the entire project. For more information, see Email uniquenes.
public String getPassword()
getPassword
in interface Customer
public String getFirstName()
getFirstName
in interface Customer
public String getLastName()
getLastName
in interface Customer
public String getMiddleName()
getMiddleName
in interface Customer
public LocalDate getDateOfBirth()
getDateOfBirth
in interface Customer
public String getCompanyName()
getCompanyName
in interface Customer
public List<Address> getAddresses()
The addresses have unique IDs in the addresses list
getAddresses
in interface Customer
public String getDefaultShippingAddressId()
The address ID in the addresses list
getDefaultShippingAddressId
in interface Customer
public List<String> getShippingAddressIds()
The IDs from the addresses list which are used as shipping addresses
getShippingAddressIds
in interface Customer
public String getDefaultBillingAddressId()
The address ID in the addresses list
getDefaultBillingAddressId
in interface Customer
public List<String> getBillingAddressIds()
The IDs from the addresses list which are used as billing addresses
getBillingAddressIds
in interface Customer
public Boolean getIsEmailVerified()
getIsEmailVerified
in interface Customer
public String getExternalId()
getExternalId
in interface Customer
public CustomerGroupReference getCustomerGroup()
getCustomerGroup
in interface Customer
public CustomFields getCustom()
public String getSalutation()
getSalutation
in interface Customer
public String getKey()
User-specific unique identifier for a customer. Must be unique across a project. The field can be reset using the Set Key UpdateAction
public List<StoreKeyReference> getStores()
References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.
public void setId(String id)
setId
in interface BaseResource
setId
in interface Customer
public void setVersion(Long version)
setVersion
in interface BaseResource
setVersion
in interface Customer
public void setCreatedAt(ZonedDateTime createdAt)
setCreatedAt
in interface BaseResource
setCreatedAt
in interface Customer
public void setLastModifiedAt(ZonedDateTime lastModifiedAt)
setLastModifiedAt
in interface BaseResource
setLastModifiedAt
in interface Customer
public void setLastModifiedBy(LastModifiedBy lastModifiedBy)
setLastModifiedBy
in interface Customer
public void setCreatedBy(CreatedBy createdBy)
setCreatedBy
in interface Customer
public void setCustomerNumber(String customerNumber)
setCustomerNumber
in interface Customer
public void setPassword(String password)
setPassword
in interface Customer
public void setFirstName(String firstName)
setFirstName
in interface Customer
public void setLastName(String lastName)
setLastName
in interface Customer
public void setMiddleName(String middleName)
setMiddleName
in interface Customer
public void setDateOfBirth(LocalDate dateOfBirth)
setDateOfBirth
in interface Customer
public void setCompanyName(String companyName)
setCompanyName
in interface Customer
public void setAddresses(Address... addresses)
setAddresses
in interface Customer
public void setAddresses(List<Address> addresses)
setAddresses
in interface Customer
public void setDefaultShippingAddressId(String defaultShippingAddressId)
setDefaultShippingAddressId
in interface Customer
public void setShippingAddressIds(String... shippingAddressIds)
setShippingAddressIds
in interface Customer
public void setShippingAddressIds(List<String> shippingAddressIds)
setShippingAddressIds
in interface Customer
public void setDefaultBillingAddressId(String defaultBillingAddressId)
setDefaultBillingAddressId
in interface Customer
public void setBillingAddressIds(String... billingAddressIds)
setBillingAddressIds
in interface Customer
public void setBillingAddressIds(List<String> billingAddressIds)
setBillingAddressIds
in interface Customer
public void setIsEmailVerified(Boolean isEmailVerified)
setIsEmailVerified
in interface Customer
public void setExternalId(String externalId)
setExternalId
in interface Customer
public void setCustomerGroup(CustomerGroupReference customerGroup)
setCustomerGroup
in interface Customer
public void setCustom(CustomFields custom)
public void setSalutation(String salutation)
setSalutation
in interface Customer
public void setStores(StoreKeyReference... stores)
public void setStores(List<StoreKeyReference> stores)