Class CustomerImpl
- All Implemented Interfaces:
BaseResource
,Customer
,CustomerMixin
,Customizable<Customer>
,DomainResource<Customer>
,Identifiable<Customer>
,Referencable<Customer>
,ResourceIdentifiable<Customer>
,Versioned<Customer>
,WithKey
,io.vrap.rmf.base.client.ModelBase
If stores
is not empty, the Customer is specific to those Stores.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Addresses used by the Customer.Indicates whether thepassword
is required for the Customer.IDs of addresses inaddresses
used as billing addresses.Company name of the Customer.Date and time (UTC) the Customer was initially created.Present on resources created after 1 February 2019 except for events not tracked.Custom Fields for the Customer.CustomerGroup to which the Customer belongs.User-defined unique identifier of the Customer.Date of birth of the Customer.ID of the address inaddresses
used as the default billing address.ID of the address inaddresses
used as the default shipping address.getEmail()
Email address of the Customer that is unique for an entire Project or to a Store the Customer is assigned to.Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).Given name (first name) of the Customer.getId()
Unique identifier of the Customer.Indicates whether the email address of the Customer is verified.getKey()
User-defined unique identifier of the Customer.Date and time (UTC) the Customer was last updated.Present on resources created after 1 February 2019 except for events not tracked.Family name (last name) of the Customer.Preferred language of the Customer.Middle name of the Customer.Present only whenauthenticationMode
is set toPassword
.Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.IDs of addresses inaddresses
used as shipping addresses.Stores to which the Customer is assigned to.getTitle()
Title of the Customer, for example, 'Dr.'.getVatId()
Individual VAT ID of the Customer.Current version of the Customer.int
hashCode()
void
setAddresses
(Address... addresses) Addresses used by the Customer.void
setAddresses
(List<Address> addresses) Addresses used by the Customer.void
setAuthenticationMode
(AuthenticationMode authenticationMode) Indicates whether thepassword
is required for the Customer.void
setBillingAddressIds
(String... billingAddressIds) IDs of addresses inaddresses
used as billing addresses.void
setBillingAddressIds
(List<String> billingAddressIds) IDs of addresses inaddresses
used as billing addresses.void
setCompanyName
(String companyName) Company name of the Customer.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Customer was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setCustom
(CustomFields custom) Custom Fields for the Customer.void
setCustomerGroup
(CustomerGroupReference customerGroup) CustomerGroup to which the Customer belongs.void
setCustomerNumber
(String customerNumber) User-defined unique identifier of the Customer.void
setDateOfBirth
(LocalDate dateOfBirth) Date of birth of the Customer.void
setDefaultBillingAddressId
(String defaultBillingAddressId) ID of the address inaddresses
used as the default billing address.void
setDefaultShippingAddressId
(String defaultShippingAddressId) ID of the address inaddresses
used as the default shipping address.void
Email address of the Customer that is unique for an entire Project or to a Store the Customer is assigned to.void
setExternalId
(String externalId) Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).void
setFirstName
(String firstName) Given name (first name) of the Customer.void
Unique identifier of the Customer.void
setIsEmailVerified
(Boolean isEmailVerified) Indicates whether the email address of the Customer is verified.void
User-defined unique identifier of the Customer.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Customer was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
setLastName
(String lastName) Family name (last name) of the Customer.void
Preferred language of the Customer.void
setMiddleName
(String middleName) Middle name of the Customer.void
setPassword
(String password) Present only whenauthenticationMode
is set toPassword
.void
setSalutation
(String salutation) Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.void
setShippingAddressIds
(String... shippingAddressIds) IDs of addresses inaddresses
used as shipping addresses.void
setShippingAddressIds
(List<String> shippingAddressIds) IDs of addresses inaddresses
used as shipping addresses.void
setStores
(StoreKeyReference... stores) Stores to which the Customer is assigned to.void
setStores
(List<StoreKeyReference> stores) Stores to which the Customer is assigned to.void
Title of the Customer, for example, 'Dr.'.void
Individual VAT ID of the Customer.void
setVersion
(Long version) Current version of the Customer.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.customer.Customer
withCustomer
Methods inherited from interface com.commercetools.api.models.customer.CustomerMixin
toReference, toResourceIdentifier
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CustomerImpl
public CustomerImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Customer.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceCustomer
- Specified by:
getId
in interfaceDomainResource<Customer>
- Specified by:
getId
in interfaceIdentifiable<Customer>
- Specified by:
getId
in interfaceVersioned<Customer>
- Returns:
- id
-
getVersion
Current version of the Customer.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceCustomer
- Specified by:
getVersion
in interfaceDomainResource<Customer>
- Specified by:
getVersion
in interfaceVersioned<Customer>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Customer was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceCustomer
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Customer was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceCustomer
- Returns:
- lastModifiedAt
-
getKey
User-defined unique identifier of the Customer.
-
getCustomerNumber
User-defined unique identifier of the Customer.
Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).
- Specified by:
getCustomerNumber
in interfaceCustomer
- Returns:
- customerNumber
-
getExternalId
Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).
- Specified by:
getExternalId
in interfaceCustomer
- Returns:
- externalId
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceCustomer
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceCustomer
- Returns:
- createdBy
-
getEmail
Email address of the Customer that is unique for an entire Project or to a Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.
-
getPassword
Present only when
authenticationMode
is set toPassword
.- Specified by:
getPassword
in interfaceCustomer
- Returns:
- password
-
getFirstName
Given name (first name) of the Customer.
- Specified by:
getFirstName
in interfaceCustomer
- Returns:
- firstName
-
getLastName
Family name (last name) of the Customer.
- Specified by:
getLastName
in interfaceCustomer
- Returns:
- lastName
-
getMiddleName
Middle name of the Customer.
- Specified by:
getMiddleName
in interfaceCustomer
- Returns:
- middleName
-
getTitle
Title of the Customer, for example, 'Dr.'.
-
getDateOfBirth
Date of birth of the Customer.
- Specified by:
getDateOfBirth
in interfaceCustomer
- Returns:
- dateOfBirth
-
getCompanyName
Company name of the Customer.
- Specified by:
getCompanyName
in interfaceCustomer
- Returns:
- companyName
-
getVatId
Individual VAT ID of the Customer.
-
getAddresses
Addresses used by the Customer.
- Specified by:
getAddresses
in interfaceCustomer
- Returns:
- addresses
-
getDefaultShippingAddressId
ID of the address in
addresses
used as the default shipping address.- Specified by:
getDefaultShippingAddressId
in interfaceCustomer
- Returns:
- defaultShippingAddressId
-
getShippingAddressIds
IDs of addresses in
addresses
used as shipping addresses.- Specified by:
getShippingAddressIds
in interfaceCustomer
- Returns:
- shippingAddressIds
-
getDefaultBillingAddressId
ID of the address in
addresses
used as the default billing address.- Specified by:
getDefaultBillingAddressId
in interfaceCustomer
- Returns:
- defaultBillingAddressId
-
getBillingAddressIds
IDs of addresses in
addresses
used as billing addresses.- Specified by:
getBillingAddressIds
in interfaceCustomer
- Returns:
- billingAddressIds
-
getIsEmailVerified
Indicates whether the email address of the Customer is verified.
- Specified by:
getIsEmailVerified
in interfaceCustomer
- Returns:
- isEmailVerified
-
getCustomerGroup
CustomerGroup to which the Customer belongs.
- Specified by:
getCustomerGroup
in interfaceCustomer
- Returns:
- customerGroup
-
getCustom
Custom Fields for the Customer.
- Specified by:
getCustom
in interfaceCustomer
- Specified by:
getCustom
in interfaceCustomizable<Customer>
- Returns:
- custom
-
getLocale
Preferred language of the Customer.
-
getSalutation
Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.
- Specified by:
getSalutation
in interfaceCustomer
- Returns:
- salutation
-
getStores
Stores to which the Customer is assigned to.
- If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
- If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
-
getAuthenticationMode
Indicates whether the
password
is required for the Customer.- Specified by:
getAuthenticationMode
in interfaceCustomer
- Returns:
- authenticationMode
-
setId
Description copied from interface:Customer
Unique identifier of the Customer.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceCustomer
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:Customer
Current version of the Customer.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceCustomer
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:Customer
Date and time (UTC) the Customer was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceCustomer
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:Customer
Date and time (UTC) the Customer was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceCustomer
- Parameters:
lastModifiedAt
- value to be set
-
setKey
Description copied from interface:Customer
User-defined unique identifier of the Customer.
-
setCustomerNumber
Description copied from interface:Customer
User-defined unique identifier of the Customer.
Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).
- Specified by:
setCustomerNumber
in interfaceCustomer
- Parameters:
customerNumber
- value to be set
-
setExternalId
Description copied from interface:Customer
Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).
- Specified by:
setExternalId
in interfaceCustomer
- Parameters:
externalId
- value to be set
-
setLastModifiedBy
Description copied from interface:Customer
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceCustomer
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:Customer
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceCustomer
- Parameters:
createdBy
- value to be set
-
setEmail
Description copied from interface:Customer
Email address of the Customer that is unique for an entire Project or to a Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.
-
setPassword
Description copied from interface:Customer
Present only when
authenticationMode
is set toPassword
.- Specified by:
setPassword
in interfaceCustomer
- Parameters:
password
- value to be set
-
setFirstName
Description copied from interface:Customer
Given name (first name) of the Customer.
- Specified by:
setFirstName
in interfaceCustomer
- Parameters:
firstName
- value to be set
-
setLastName
Description copied from interface:Customer
Family name (last name) of the Customer.
- Specified by:
setLastName
in interfaceCustomer
- Parameters:
lastName
- value to be set
-
setMiddleName
Description copied from interface:Customer
Middle name of the Customer.
- Specified by:
setMiddleName
in interfaceCustomer
- Parameters:
middleName
- value to be set
-
setTitle
Description copied from interface:Customer
Title of the Customer, for example, 'Dr.'.
-
setDateOfBirth
Description copied from interface:Customer
Date of birth of the Customer.
- Specified by:
setDateOfBirth
in interfaceCustomer
- Parameters:
dateOfBirth
- value to be set
-
setCompanyName
Description copied from interface:Customer
Company name of the Customer.
- Specified by:
setCompanyName
in interfaceCustomer
- Parameters:
companyName
- value to be set
-
setVatId
Description copied from interface:Customer
Individual VAT ID of the Customer.
-
setAddresses
Description copied from interface:Customer
Addresses used by the Customer.
- Specified by:
setAddresses
in interfaceCustomer
- Parameters:
addresses
- values to be set
-
setAddresses
Description copied from interface:Customer
Addresses used by the Customer.
- Specified by:
setAddresses
in interfaceCustomer
- Parameters:
addresses
- values to be set
-
setDefaultShippingAddressId
Description copied from interface:Customer
ID of the address in
addresses
used as the default shipping address.- Specified by:
setDefaultShippingAddressId
in interfaceCustomer
- Parameters:
defaultShippingAddressId
- value to be set
-
setShippingAddressIds
Description copied from interface:Customer
IDs of addresses in
addresses
used as shipping addresses.- Specified by:
setShippingAddressIds
in interfaceCustomer
- Parameters:
shippingAddressIds
- values to be set
-
setShippingAddressIds
Description copied from interface:Customer
IDs of addresses in
addresses
used as shipping addresses.- Specified by:
setShippingAddressIds
in interfaceCustomer
- Parameters:
shippingAddressIds
- values to be set
-
setDefaultBillingAddressId
Description copied from interface:Customer
ID of the address in
addresses
used as the default billing address.- Specified by:
setDefaultBillingAddressId
in interfaceCustomer
- Parameters:
defaultBillingAddressId
- value to be set
-
setBillingAddressIds
Description copied from interface:Customer
IDs of addresses in
addresses
used as billing addresses.- Specified by:
setBillingAddressIds
in interfaceCustomer
- Parameters:
billingAddressIds
- values to be set
-
setBillingAddressIds
Description copied from interface:Customer
IDs of addresses in
addresses
used as billing addresses.- Specified by:
setBillingAddressIds
in interfaceCustomer
- Parameters:
billingAddressIds
- values to be set
-
setIsEmailVerified
Description copied from interface:Customer
Indicates whether the email address of the Customer is verified.
- Specified by:
setIsEmailVerified
in interfaceCustomer
- Parameters:
isEmailVerified
- value to be set
-
setCustomerGroup
Description copied from interface:Customer
CustomerGroup to which the Customer belongs.
- Specified by:
setCustomerGroup
in interfaceCustomer
- Parameters:
customerGroup
- value to be set
-
setCustom
Description copied from interface:Customer
Custom Fields for the Customer.
- Specified by:
setCustom
in interfaceCustomer
- Specified by:
setCustom
in interfaceCustomizable<Customer>
- Parameters:
custom
- value to be set
-
setLocale
Description copied from interface:Customer
Preferred language of the Customer.
-
setSalutation
Description copied from interface:Customer
Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.
- Specified by:
setSalutation
in interfaceCustomer
- Parameters:
salutation
- value to be set
-
setStores
Description copied from interface:Customer
Stores to which the Customer is assigned to.
- If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
- If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
-
setStores
Description copied from interface:Customer
Stores to which the Customer is assigned to.
- If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
- If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
-
setAuthenticationMode
Description copied from interface:Customer
Indicates whether the
password
is required for the Customer.- Specified by:
setAuthenticationMode
in interfaceCustomer
- Parameters:
authenticationMode
- value to be set
-
equals
-
hashCode
-