Class MyCustomerDraftImpl

java.lang.Object
com.commercetools.api.models.me.MyCustomerDraftImpl
All Implemented Interfaces:
CustomizableDraft<MyCustomerDraft>, MyCustomerDraft, io.vrap.rmf.base.client.Draft<MyCustomerDraft>, io.vrap.rmf.base.client.ModelBase

public class MyCustomerDraftImpl extends Object implements MyCustomerDraft, io.vrap.rmf.base.client.ModelBase
MyCustomerDraft
  • Constructor Details

    • MyCustomerDraftImpl

      public MyCustomerDraftImpl()
      create empty instance
  • Method Details

    • getEmail

      public String getEmail()

      Email address of the Customer that is unique for an entire Project or Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

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

      public String getPassword()

      Password of the Customer.

      Specified by:
      getPassword in interface MyCustomerDraft
      Returns:
      password
    • getFirstName

      public String getFirstName()

      Given name (first name) of the Customer.

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

      public String getLastName()

      Family name (last name) of the Customer.

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

      public String getMiddleName()

      Middle name of the Customer.

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

      public String getTitle()

      Title of the Customer, for example, 'Dr.'.

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

      public String getSalutation()

      Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

      Specified by:
      getSalutation in interface MyCustomerDraft
      Returns:
      salutation
    • getDateOfBirth

      public LocalDate getDateOfBirth()

      Date of birth of the Customer.

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

      public String getCompanyName()

      Company name of the Customer.

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

      public String getVatId()

      Individual VAT ID of the Customer.

      Specified by:
      getVatId in interface MyCustomerDraft
      Returns:
      vatId
    • getAddresses

      public List<BaseAddress> getAddresses()

      Addresses of the Customer.

      Specified by:
      getAddresses in interface MyCustomerDraft
      Returns:
      addresses
    • getDefaultShippingAddress

      public Long getDefaultShippingAddress()

      Index of the address in the addresses array to use as the default shipping address. The defaultShippingAddressId of the Customer will be set to the id of that address.

      Specified by:
      getDefaultShippingAddress in interface MyCustomerDraft
      Returns:
      defaultShippingAddress
    • getDefaultBillingAddress

      public Long getDefaultBillingAddress()

      Index of the address in the addresses array to use as the default billing address. The defaultBillingAddressId of the Customer will be set to the id of that address.

      Specified by:
      getDefaultBillingAddress in interface MyCustomerDraft
      Returns:
      defaultBillingAddress
    • getCustom

      public CustomFieldsDraft getCustom()

      Custom Fields for the Customer.

      Specified by:
      getCustom in interface CustomizableDraft<MyCustomerDraft>
      Specified by:
      getCustom in interface MyCustomerDraft
      Returns:
      custom
    • getLocale

      public String getLocale()

      Preferred language of the Customer. Must be one of the languages supported by the Project.

      Specified by:
      getLocale in interface MyCustomerDraft
      Returns:
      locale
    • getStores

      public List<StoreResourceIdentifier> getStores()

      Sets the Stores for the Customer.

      Specified by:
      getStores in interface MyCustomerDraft
      Returns:
      stores
    • setEmail

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

      Email address of the Customer that is unique for an entire Project or Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

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

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

      Password of the Customer.

      Specified by:
      setPassword in interface MyCustomerDraft
      Parameters:
      password - value to be set
    • setFirstName

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

      Given name (first name) of the Customer.

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

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

      Family name (last name) of the Customer.

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

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

      Middle name of the Customer.

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

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

      Title of the Customer, for example, 'Dr.'.

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

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

      Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

      Specified by:
      setSalutation in interface MyCustomerDraft
      Parameters:
      salutation - value to be set
    • setDateOfBirth

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

      Date of birth of the Customer.

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

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

      Company name of the Customer.

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

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

      Individual VAT ID of the Customer.

      Specified by:
      setVatId in interface MyCustomerDraft
      Parameters:
      vatId - value to be set
    • setAddresses

      public void setAddresses(BaseAddress... addresses)
      Description copied from interface: MyCustomerDraft

      Addresses of the Customer.

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

      public void setAddresses(List<BaseAddress> addresses)
      Description copied from interface: MyCustomerDraft

      Addresses of the Customer.

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

      public void setDefaultShippingAddress(Long defaultShippingAddress)
      Description copied from interface: MyCustomerDraft

      Index of the address in the addresses array to use as the default shipping address. The defaultShippingAddressId of the Customer will be set to the id of that address.

      Specified by:
      setDefaultShippingAddress in interface MyCustomerDraft
      Parameters:
      defaultShippingAddress - value to be set
    • setDefaultBillingAddress

      public void setDefaultBillingAddress(Long defaultBillingAddress)
      Description copied from interface: MyCustomerDraft

      Index of the address in the addresses array to use as the default billing address. The defaultBillingAddressId of the Customer will be set to the id of that address.

      Specified by:
      setDefaultBillingAddress in interface MyCustomerDraft
      Parameters:
      defaultBillingAddress - value to be set
    • setCustom

      public void setCustom(CustomFieldsDraft custom)
      Description copied from interface: MyCustomerDraft

      Custom Fields for the Customer.

      Specified by:
      setCustom in interface CustomizableDraft<MyCustomerDraft>
      Specified by:
      setCustom in interface MyCustomerDraft
      Parameters:
      custom - value to be set
    • setLocale

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

      Preferred language of the Customer. Must be one of the languages supported by the Project.

      Specified by:
      setLocale in interface MyCustomerDraft
      Parameters:
      locale - value to be set
    • setStores

      public void setStores(StoreResourceIdentifier... stores)
      Description copied from interface: MyCustomerDraft

      Sets the Stores for the Customer.

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

      public void setStores(List<StoreResourceIdentifier> stores)
      Description copied from interface: MyCustomerDraft

      Sets the Stores for the Customer.

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object