Class CustomerImportImpl
- All Implemented Interfaces:
ImportResource
,CustomerImport
,io.vrap.rmf.base.client.ModelBase
The data representation for a Customer to be imported that is persisted as a Customer in the Project.
-
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
Maps toCustomer.addresses
.Set toPassword
to make thepassword
field required for the Customer. Set toExternalAuth
when the password is not required for the Customer.The indices of the billing addresses in the addresses array.Maps toCustomer.companyName
.The Custom Fields for this Customer.The Reference to the CustomerGroup with which the Customer is associated.Maps toCustomer.customerNumber
.Maps toCustomer.dateOfBirth
.The index of the address in the addresses array.The index of the address in the addresses array.getEmail()
Maps toCustomer.email
.Maps toCustomer.externalId
.Maps toCustomer.firstName
.Maps toCustomer.isEmailVerified
.getKey()
User-defined unique identifier.Maps toCustomer.lastName
.Maps toCustomer.locale
.Maps toCustomer.middleName
.Required whenauthenticationMode
is set toPassword
.Maps toCustomer.salutation
.The indices of the shipping addresses in the addresses array.The References to the Stores with which the Customer is associated.getTitle()
Maps toCustomer.title
.getVatId()
Maps toCustomer.vatId
.int
hashCode()
void
setAddresses
(CustomerAddress... addresses) Maps toCustomer.addresses
.void
setAddresses
(List<CustomerAddress> addresses) Maps toCustomer.addresses
.void
setAuthenticationMode
(AuthenticationMode authenticationMode) Set toPassword
to make thepassword
field required for the Customer. Set toExternalAuth
when the password is not required for the Customer.void
setBillingAddresses
(Integer... billingAddresses) The indices of the billing addresses in the addresses array.void
setBillingAddresses
(List<Integer> billingAddresses) The indices of the billing addresses in the addresses array.void
setCompanyName
(String companyName) Maps toCustomer.companyName
.void
The Custom Fields for this Customer.void
setCustomerGroup
(CustomerGroupKeyReference customerGroup) The Reference to the CustomerGroup with which the Customer is associated.void
setCustomerNumber
(String customerNumber) Maps toCustomer.customerNumber
.void
setDateOfBirth
(LocalDate dateOfBirth) Maps toCustomer.dateOfBirth
.void
setDefaultBillingAddress
(Integer defaultBillingAddress) The index of the address in the addresses array.void
setDefaultShippingAddress
(Integer defaultShippingAddress) The index of the address in the addresses array.void
Maps toCustomer.email
.void
setExternalId
(String externalId) Maps toCustomer.externalId
.void
setFirstName
(String firstName) Maps toCustomer.firstName
.void
setIsEmailVerified
(Boolean isEmailVerified) Maps toCustomer.isEmailVerified
.void
User-defined unique identifier.void
setLastName
(String lastName) Maps toCustomer.lastName
.void
Maps toCustomer.locale
.void
setMiddleName
(String middleName) Maps toCustomer.middleName
.void
setPassword
(String password) Required whenauthenticationMode
is set toPassword
.void
setSalutation
(String salutation) Maps toCustomer.salutation
.void
setShippingAddresses
(Integer... shippingAddresses) The indices of the shipping addresses in the addresses array.void
setShippingAddresses
(List<Integer> shippingAddresses) The indices of the shipping addresses in the addresses array.void
setStores
(StoreKeyReference... stores) The References to the Stores with which the Customer is associated.void
setStores
(List<StoreKeyReference> stores) The References to the Stores with which the Customer is associated.void
Maps toCustomer.title
.void
Maps toCustomer.vatId
.toString()
Methods inherited from interface com.commercetools.importapi.models.customers.CustomerImport
withCustomerImport
Methods inherited from interface com.commercetools.importapi.models.common.ImportResource
withImportResource
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CustomerImportImpl
public CustomerImportImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier. If a Customer with this
key
exists, it will be updated with the imported data.- Specified by:
getKey
in interfaceCustomerImport
- Specified by:
getKey
in interfaceImportResource
- Returns:
- key
-
getCustomerNumber
Maps to
Customer.customerNumber
.- Specified by:
getCustomerNumber
in interfaceCustomerImport
- Returns:
- customerNumber
-
getEmail
Maps to
Customer.email
.- Specified by:
getEmail
in interfaceCustomerImport
- Returns:
-
getPassword
Required when
authenticationMode
is set toPassword
. Maps toCustomer.password
.- Specified by:
getPassword
in interfaceCustomerImport
- Returns:
- password
-
getStores
The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary Stores are created.- Specified by:
getStores
in interfaceCustomerImport
- Returns:
- stores
-
getFirstName
Maps to
Customer.firstName
.- Specified by:
getFirstName
in interfaceCustomerImport
- Returns:
- firstName
-
getLastName
Maps to
Customer.lastName
.- Specified by:
getLastName
in interfaceCustomerImport
- Returns:
- lastName
-
getMiddleName
Maps to
Customer.middleName
.- Specified by:
getMiddleName
in interfaceCustomerImport
- Returns:
- middleName
-
getTitle
Maps to
Customer.title
.- Specified by:
getTitle
in interfaceCustomerImport
- Returns:
- title
-
getSalutation
Maps to
Customer.salutation
.- Specified by:
getSalutation
in interfaceCustomerImport
- Returns:
- salutation
-
getExternalId
Maps to
Customer.externalId
.- Specified by:
getExternalId
in interfaceCustomerImport
- Returns:
- externalId
-
getDateOfBirth
Maps to
Customer.dateOfBirth
.- Specified by:
getDateOfBirth
in interfaceCustomerImport
- Returns:
- dateOfBirth
-
getCompanyName
Maps to
Customer.companyName
.- Specified by:
getCompanyName
in interfaceCustomerImport
- Returns:
- companyName
-
getVatId
Maps to
Customer.vatId
.- Specified by:
getVatId
in interfaceCustomerImport
- Returns:
- vatId
-
getIsEmailVerified
Maps to
Customer.isEmailVerified
.- Specified by:
getIsEmailVerified
in interfaceCustomerImport
- Returns:
- isEmailVerified
-
getCustomerGroup
The Reference to the CustomerGroup with which the Customer is associated. If referenced CustomerGroup does not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary CustomerGroup is created.- Specified by:
getCustomerGroup
in interfaceCustomerImport
- Returns:
- customerGroup
-
getAddresses
Maps to
Customer.addresses
.- Specified by:
getAddresses
in interfaceCustomerImport
- Returns:
- addresses
-
getDefaultBillingAddress
The index of the address in the addresses array. The
defaultBillingAddressId
of the customer will be set to the ID of that address.- Specified by:
getDefaultBillingAddress
in interfaceCustomerImport
- Returns:
- defaultBillingAddress
-
getBillingAddresses
The indices of the billing addresses in the addresses array. The
billingAddressIds
of the customer will be set to the IDs of that addresses.- Specified by:
getBillingAddresses
in interfaceCustomerImport
- Returns:
- billingAddresses
-
getDefaultShippingAddress
The index of the address in the addresses array. The
defaultShippingAddressId
of the customer will be set to the ID of that address.- Specified by:
getDefaultShippingAddress
in interfaceCustomerImport
- Returns:
- defaultShippingAddress
-
getShippingAddresses
The indices of the shipping addresses in the addresses array. The
shippingAddressIds
of the customer will be set to the IDs of that addresses.- Specified by:
getShippingAddresses
in interfaceCustomerImport
- Returns:
- shippingAddresses
-
getLocale
Maps to
Customer.locale
.- Specified by:
getLocale
in interfaceCustomerImport
- Returns:
- locale
-
getCustom
The Custom Fields for this Customer.
- Specified by:
getCustom
in interfaceCustomerImport
- Returns:
- custom
-
getAuthenticationMode
- Set to
Password
to make thepassword
field required for the Customer. - Set to
ExternalAuth
when the password is not required for the Customer.
- Specified by:
getAuthenticationMode
in interfaceCustomerImport
- Returns:
- authenticationMode
- Set to
-
setKey
Description copied from interface:CustomerImport
User-defined unique identifier. If a Customer with this
key
exists, it will be updated with the imported data.- Specified by:
setKey
in interfaceCustomerImport
- Specified by:
setKey
in interfaceImportResource
- Parameters:
key
- value to be set
-
setCustomerNumber
Description copied from interface:CustomerImport
Maps to
Customer.customerNumber
.- Specified by:
setCustomerNumber
in interfaceCustomerImport
- Parameters:
customerNumber
- value to be set
-
setEmail
Description copied from interface:CustomerImport
Maps to
Customer.email
.- Specified by:
setEmail
in interfaceCustomerImport
- Parameters:
email
- value to be set
-
setPassword
Description copied from interface:CustomerImport
Required when
authenticationMode
is set toPassword
. Maps toCustomer.password
.- Specified by:
setPassword
in interfaceCustomerImport
- Parameters:
password
- value to be set
-
setStores
Description copied from interface:CustomerImport
The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary Stores are created.- Specified by:
setStores
in interfaceCustomerImport
- Parameters:
stores
- values to be set
-
setStores
Description copied from interface:CustomerImport
The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary Stores are created.- Specified by:
setStores
in interfaceCustomerImport
- Parameters:
stores
- values to be set
-
setFirstName
Description copied from interface:CustomerImport
Maps to
Customer.firstName
.- Specified by:
setFirstName
in interfaceCustomerImport
- Parameters:
firstName
- value to be set
-
setLastName
Description copied from interface:CustomerImport
Maps to
Customer.lastName
.- Specified by:
setLastName
in interfaceCustomerImport
- Parameters:
lastName
- value to be set
-
setMiddleName
Description copied from interface:CustomerImport
Maps to
Customer.middleName
.- Specified by:
setMiddleName
in interfaceCustomerImport
- Parameters:
middleName
- value to be set
-
setTitle
Description copied from interface:CustomerImport
Maps to
Customer.title
.- Specified by:
setTitle
in interfaceCustomerImport
- Parameters:
title
- value to be set
-
setSalutation
Description copied from interface:CustomerImport
Maps to
Customer.salutation
.- Specified by:
setSalutation
in interfaceCustomerImport
- Parameters:
salutation
- value to be set
-
setExternalId
Description copied from interface:CustomerImport
Maps to
Customer.externalId
.- Specified by:
setExternalId
in interfaceCustomerImport
- Parameters:
externalId
- value to be set
-
setDateOfBirth
Description copied from interface:CustomerImport
Maps to
Customer.dateOfBirth
.- Specified by:
setDateOfBirth
in interfaceCustomerImport
- Parameters:
dateOfBirth
- value to be set
-
setCompanyName
Description copied from interface:CustomerImport
Maps to
Customer.companyName
.- Specified by:
setCompanyName
in interfaceCustomerImport
- Parameters:
companyName
- value to be set
-
setVatId
Description copied from interface:CustomerImport
Maps to
Customer.vatId
.- Specified by:
setVatId
in interfaceCustomerImport
- Parameters:
vatId
- value to be set
-
setIsEmailVerified
Description copied from interface:CustomerImport
Maps to
Customer.isEmailVerified
.- Specified by:
setIsEmailVerified
in interfaceCustomerImport
- Parameters:
isEmailVerified
- value to be set
-
setCustomerGroup
Description copied from interface:CustomerImport
The Reference to the CustomerGroup with which the Customer is associated. If referenced CustomerGroup does not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary CustomerGroup is created.- Specified by:
setCustomerGroup
in interfaceCustomerImport
- Parameters:
customerGroup
- value to be set
-
setAddresses
Description copied from interface:CustomerImport
Maps to
Customer.addresses
.- Specified by:
setAddresses
in interfaceCustomerImport
- Parameters:
addresses
- values to be set
-
setAddresses
Description copied from interface:CustomerImport
Maps to
Customer.addresses
.- Specified by:
setAddresses
in interfaceCustomerImport
- Parameters:
addresses
- values to be set
-
setDefaultBillingAddress
Description copied from interface:CustomerImport
The index of the address in the addresses array. The
defaultBillingAddressId
of the customer will be set to the ID of that address.- Specified by:
setDefaultBillingAddress
in interfaceCustomerImport
- Parameters:
defaultBillingAddress
- value to be set
-
setBillingAddresses
Description copied from interface:CustomerImport
The indices of the billing addresses in the addresses array. The
billingAddressIds
of the customer will be set to the IDs of that addresses.- Specified by:
setBillingAddresses
in interfaceCustomerImport
- Parameters:
billingAddresses
- values to be set
-
setBillingAddresses
Description copied from interface:CustomerImport
The indices of the billing addresses in the addresses array. The
billingAddressIds
of the customer will be set to the IDs of that addresses.- Specified by:
setBillingAddresses
in interfaceCustomerImport
- Parameters:
billingAddresses
- values to be set
-
setDefaultShippingAddress
Description copied from interface:CustomerImport
The index of the address in the addresses array. The
defaultShippingAddressId
of the customer will be set to the ID of that address.- Specified by:
setDefaultShippingAddress
in interfaceCustomerImport
- Parameters:
defaultShippingAddress
- value to be set
-
setShippingAddresses
Description copied from interface:CustomerImport
The indices of the shipping addresses in the addresses array. The
shippingAddressIds
of the customer will be set to the IDs of that addresses.- Specified by:
setShippingAddresses
in interfaceCustomerImport
- Parameters:
shippingAddresses
- values to be set
-
setShippingAddresses
Description copied from interface:CustomerImport
The indices of the shipping addresses in the addresses array. The
shippingAddressIds
of the customer will be set to the IDs of that addresses.- Specified by:
setShippingAddresses
in interfaceCustomerImport
- Parameters:
shippingAddresses
- values to be set
-
setLocale
Description copied from interface:CustomerImport
Maps to
Customer.locale
.- Specified by:
setLocale
in interfaceCustomerImport
- Parameters:
locale
- value to be set
-
setCustom
Description copied from interface:CustomerImport
The Custom Fields for this Customer.
- Specified by:
setCustom
in interfaceCustomerImport
- Parameters:
custom
- value to be set
-
setAuthenticationMode
Description copied from interface:CustomerImport
- Set to
Password
to make thepassword
field required for the Customer. - Set to
ExternalAuth
when the password is not required for the Customer.
- Specified by:
setAuthenticationMode
in interfaceCustomerImport
- Parameters:
authenticationMode
- value to be set
- Set to
-
equals
-
hashCode
public int hashCode() -
toString
-