Class CustomerImportImpl

java.lang.Object
com.commercetools.importapi.models.customers.CustomerImportImpl
All Implemented Interfaces:
ImportResource, CustomerImport, io.vrap.rmf.base.client.ModelBase

public class CustomerImportImpl extends Object implements 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.

  • Constructor Details

    • CustomerImportImpl

      public CustomerImportImpl()
      create empty instance
  • Method Details

    • getKey

      public String getKey()

      User-defined unique identifier.

      Specified by:
      getKey in interface ImportResource
      Returns:
      key
    • getCustomerNumber

      public String getCustomerNumber()

      Maps to Customer.customerNumber.

      Specified by:
      getCustomerNumber in interface CustomerImport
      Returns:
      customerNumber
    • getEmail

      public String getEmail()

      Maps to Customer.email.

      Specified by:
      getEmail in interface CustomerImport
      Returns:
      email
    • getPassword

      public String getPassword()

      Required when authenticationMode is set to Password. Maps to Customer.password.

      Specified by:
      getPassword in interface CustomerImport
      Returns:
      password
    • getStores

      public List<StoreKeyReference> 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 to unresolved until the necessary Stores are created.

      Specified by:
      getStores in interface CustomerImport
      Returns:
      stores
    • getFirstName

      public String getFirstName()

      Maps to Customer.firstName.

      Specified by:
      getFirstName in interface CustomerImport
      Returns:
      firstName
    • getLastName

      public String getLastName()

      Maps to Customer.lastName.

      Specified by:
      getLastName in interface CustomerImport
      Returns:
      lastName
    • getMiddleName

      public String getMiddleName()

      Maps to Customer.middleName.

      Specified by:
      getMiddleName in interface CustomerImport
      Returns:
      middleName
    • getTitle

      public String getTitle()

      Maps to Customer.title.

      Specified by:
      getTitle in interface CustomerImport
      Returns:
      title
    • getSalutation

      public String getSalutation()

      Maps to Customer.salutation.

      Specified by:
      getSalutation in interface CustomerImport
      Returns:
      salutation
    • getExternalId

      public String getExternalId()

      Maps to Customer.externalId.

      Specified by:
      getExternalId in interface CustomerImport
      Returns:
      externalId
    • getDateOfBirth

      public LocalDate getDateOfBirth()

      Maps to Customer.dateOfBirth.

      Specified by:
      getDateOfBirth in interface CustomerImport
      Returns:
      dateOfBirth
    • getCompanyName

      public String getCompanyName()

      Maps to Customer.companyName.

      Specified by:
      getCompanyName in interface CustomerImport
      Returns:
      companyName
    • getVatId

      public String getVatId()

      Maps to Customer.vatId.

      Specified by:
      getVatId in interface CustomerImport
      Returns:
      vatId
    • getIsEmailVerified

      public Boolean getIsEmailVerified()

      Maps to Customer.isEmailVerified.

      Specified by:
      getIsEmailVerified in interface CustomerImport
      Returns:
      isEmailVerified
    • getCustomerGroup

      public CustomerGroupKeyReference 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 to unresolved until the necessary CustomerGroup is created.

      Specified by:
      getCustomerGroup in interface CustomerImport
      Returns:
      customerGroup
    • getAddresses

      public List<CustomerAddress> getAddresses()

      Maps to Customer.addresses.

      Specified by:
      getAddresses in interface CustomerImport
      Returns:
      addresses
    • getDefaultBillingAddress

      public Integer 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 interface CustomerImport
      Returns:
      defaultBillingAddress
    • getBillingAddresses

      public List<Integer> 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 interface CustomerImport
      Returns:
      billingAddresses
    • getDefaultShippingAddress

      public Integer 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 interface CustomerImport
      Returns:
      defaultShippingAddress
    • getShippingAddresses

      public List<Integer> 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 interface CustomerImport
      Returns:
      shippingAddresses
    • getLocale

      public String getLocale()

      Maps to Customer.locale.

      Specified by:
      getLocale in interface CustomerImport
      Returns:
      locale
    • getCustom

      public Custom getCustom()

      The Custom Fields for this Customer.

      Specified by:
      getCustom in interface CustomerImport
      Returns:
      custom
    • getAuthenticationMode

      public AuthenticationMode getAuthenticationMode()
      • Set to Password to make the password field required for the Customer.
      • Set to ExternalAuth when the password is not required for the Customer.
      Specified by:
      getAuthenticationMode in interface CustomerImport
      Returns:
      authenticationMode
    • setKey

      public void setKey(String key)
      Description copied from interface: ImportResource

      User-defined unique identifier.

      Specified by:
      setKey in interface ImportResource
      Parameters:
      key - value to be set
    • setCustomerNumber

      public void setCustomerNumber(String customerNumber)
      Description copied from interface: CustomerImport

      Maps to Customer.customerNumber.

      Specified by:
      setCustomerNumber in interface CustomerImport
      Parameters:
      customerNumber - value to be set
    • setEmail

      public void setEmail(String email)
      Description copied from interface: CustomerImport

      Maps to Customer.email.

      Specified by:
      setEmail in interface CustomerImport
      Parameters:
      email - value to be set
    • setPassword

      public void setPassword(String password)
      Description copied from interface: CustomerImport

      Required when authenticationMode is set to Password. Maps to Customer.password.

      Specified by:
      setPassword in interface CustomerImport
      Parameters:
      password - value to be set
    • setStores

      public void setStores(StoreKeyReference... stores)
      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 to unresolved until the necessary Stores are created.

      Specified by:
      setStores in interface CustomerImport
      Parameters:
      stores - values to be set
    • setStores

      public void setStores(List<StoreKeyReference> stores)
      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 to unresolved until the necessary Stores are created.

      Specified by:
      setStores in interface CustomerImport
      Parameters:
      stores - values to be set
    • setFirstName

      public void setFirstName(String firstName)
      Description copied from interface: CustomerImport

      Maps to Customer.firstName.

      Specified by:
      setFirstName in interface CustomerImport
      Parameters:
      firstName - value to be set
    • setLastName

      public void setLastName(String lastName)
      Description copied from interface: CustomerImport

      Maps to Customer.lastName.

      Specified by:
      setLastName in interface CustomerImport
      Parameters:
      lastName - value to be set
    • setMiddleName

      public void setMiddleName(String middleName)
      Description copied from interface: CustomerImport

      Maps to Customer.middleName.

      Specified by:
      setMiddleName in interface CustomerImport
      Parameters:
      middleName - value to be set
    • setTitle

      public void setTitle(String title)
      Description copied from interface: CustomerImport

      Maps to Customer.title.

      Specified by:
      setTitle in interface CustomerImport
      Parameters:
      title - value to be set
    • setSalutation

      public void setSalutation(String salutation)
      Description copied from interface: CustomerImport

      Maps to Customer.salutation.

      Specified by:
      setSalutation in interface CustomerImport
      Parameters:
      salutation - value to be set
    • setExternalId

      public void setExternalId(String externalId)
      Description copied from interface: CustomerImport

      Maps to Customer.externalId.

      Specified by:
      setExternalId in interface CustomerImport
      Parameters:
      externalId - value to be set
    • setDateOfBirth

      public void setDateOfBirth(LocalDate dateOfBirth)
      Description copied from interface: CustomerImport

      Maps to Customer.dateOfBirth.

      Specified by:
      setDateOfBirth in interface CustomerImport
      Parameters:
      dateOfBirth - value to be set
    • setCompanyName

      public void setCompanyName(String companyName)
      Description copied from interface: CustomerImport

      Maps to Customer.companyName.

      Specified by:
      setCompanyName in interface CustomerImport
      Parameters:
      companyName - value to be set
    • setVatId

      public void setVatId(String vatId)
      Description copied from interface: CustomerImport

      Maps to Customer.vatId.

      Specified by:
      setVatId in interface CustomerImport
      Parameters:
      vatId - value to be set
    • setIsEmailVerified

      public void setIsEmailVerified(Boolean isEmailVerified)
      Description copied from interface: CustomerImport

      Maps to Customer.isEmailVerified.

      Specified by:
      setIsEmailVerified in interface CustomerImport
      Parameters:
      isEmailVerified - value to be set
    • setCustomerGroup

      public void setCustomerGroup(CustomerGroupKeyReference customerGroup)
      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 to unresolved until the necessary CustomerGroup is created.

      Specified by:
      setCustomerGroup in interface CustomerImport
      Parameters:
      customerGroup - value to be set
    • setAddresses

      public void setAddresses(CustomerAddress... addresses)
      Description copied from interface: CustomerImport

      Maps to Customer.addresses.

      Specified by:
      setAddresses in interface CustomerImport
      Parameters:
      addresses - values to be set
    • setAddresses

      public void setAddresses(List<CustomerAddress> addresses)
      Description copied from interface: CustomerImport

      Maps to Customer.addresses.

      Specified by:
      setAddresses in interface CustomerImport
      Parameters:
      addresses - values to be set
    • setDefaultBillingAddress

      public void setDefaultBillingAddress(Integer defaultBillingAddress)
      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 interface CustomerImport
      Parameters:
      defaultBillingAddress - value to be set
    • setBillingAddresses

      public void setBillingAddresses(Integer... billingAddresses)
      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 interface CustomerImport
      Parameters:
      billingAddresses - values to be set
    • setBillingAddresses

      public void setBillingAddresses(List<Integer> billingAddresses)
      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 interface CustomerImport
      Parameters:
      billingAddresses - values to be set
    • setDefaultShippingAddress

      public void setDefaultShippingAddress(Integer defaultShippingAddress)
      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 interface CustomerImport
      Parameters:
      defaultShippingAddress - value to be set
    • setShippingAddresses

      public void setShippingAddresses(Integer... shippingAddresses)
      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 interface CustomerImport
      Parameters:
      shippingAddresses - values to be set
    • setShippingAddresses

      public void setShippingAddresses(List<Integer> shippingAddresses)
      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 interface CustomerImport
      Parameters:
      shippingAddresses - values to be set
    • setLocale

      public void setLocale(String locale)
      Description copied from interface: CustomerImport

      Maps to Customer.locale.

      Specified by:
      setLocale in interface CustomerImport
      Parameters:
      locale - value to be set
    • setCustom

      public void setCustom(Custom custom)
      Description copied from interface: CustomerImport

      The Custom Fields for this Customer.

      Specified by:
      setCustom in interface CustomerImport
      Parameters:
      custom - value to be set
    • setAuthenticationMode

      public void setAuthenticationMode(AuthenticationMode authenticationMode)
      Description copied from interface: CustomerImport
      • Set to Password to make the password field required for the Customer.
      • Set to ExternalAuth when the password is not required for the Customer.
      Specified by:
      setAuthenticationMode in interface CustomerImport
      Parameters:
      authenticationMode - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object