Class CustomerModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
B2BCustomerModel

public class CustomerModel extends UserModel
Generated model class for type Customer first defined at extension core.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _CUSTOMERCOUPON2CUSTOMER

      public static final String _CUSTOMERCOUPON2CUSTOMER
      Generated relation code constant for relation CustomerCoupon2Customer defining source attribute customerCoupons in extension customercouponservices.
      See Also:
    • CUSTOMERID

      public static final String CUSTOMERID
      Generated constant - Attribute key of Customer.customerID attribute defined at extension core.
      See Also:
    • PREVIEWCATALOGVERSIONS

      public static final String PREVIEWCATALOGVERSIONS
      Generated constant - Attribute key of Customer.previewCatalogVersions attribute defined at extension catalog.
      See Also:
    • TITLE

      public static final String TITLE
      Generated constant - Attribute key of Customer.title attribute defined at extension commerceservices.
      See Also:
    • DEFAULTPAYMENTINFO

      public static final String DEFAULTPAYMENTINFO
      Generated constant - Attribute key of Customer.defaultPaymentInfo attribute defined at extension commerceservices.
      See Also:
    • TOKEN

      public static final String TOKEN
      Generated constant - Attribute key of Customer.token attribute defined at extension commerceservices.
      See Also:
    • CONTACTEMAIL

      public static final String CONTACTEMAIL
      Generated constant - Attribute key of Customer.contactEmail attribute defined at extension commerceservices.
      See Also:
    • ORIGINALUID

      public static final String ORIGINALUID
      Generated constant - Attribute key of Customer.originalUid attribute defined at extension commerceservices.
      See Also:
    • TYPE

      public static final String TYPE
      Generated constant - Attribute key of Customer.type attribute defined at extension commerceservices.
      See Also:
    • EMAILPREFERENCE

      public static final String EMAILPREFERENCE
      Generated constant - Attribute key of Customer.emailPreference attribute defined at extension notificationservices.
      See Also:
    • SMSPREFERENCE

      public static final String SMSPREFERENCE
      Generated constant - Attribute key of Customer.smsPreference attribute defined at extension notificationservices.
      See Also:
    • NOTIFICATIONCHANNELS

      public static final String NOTIFICATIONCHANNELS
      Generated constant - Attribute key of Customer.notificationChannels attribute defined at extension notificationservices.
      See Also:
    • TICKETS

      public static final String TICKETS
      Generated constant - Attribute key of Customer.tickets attribute defined at extension ticketsystem.
      See Also:
    • EMAILLANGUAGE

      public static final String EMAILLANGUAGE
      Generated constant - Attribute key of Customer.emailLanguage attribute defined at extension chineseprofileservices.
      See Also:
    • MOBILENUMBER

      public static final String MOBILENUMBER
      Generated constant - Attribute key of Customer.mobileNumber attribute defined at extension chineseprofileservices.
      See Also:
    • PRODUCTINTERESTS

      public static final String PRODUCTINTERESTS
      Generated constant - Attribute key of Customer.productInterests attribute defined at extension customerinterestsservices.
      See Also:
    • CUSTOMERCOUPONS

      public static final String CUSTOMERCOUPONS
      Generated constant - Attribute key of Customer.customerCoupons attribute defined at extension customercouponservices.
      See Also:
  • Constructor Details

    • CustomerModel

      public CustomerModel()
      Generated constructor - Default constructor for generic creation.
    • CustomerModel

      public CustomerModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • CustomerModel

      @Deprecated(since="4.1.1", forRemoval=true) public CustomerModel(boolean _loginDisabled, String _uid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _loginDisabled - initial attribute declared by type User at extension core
      _uid - initial attribute declared by type Principal at extension core
    • CustomerModel

      @Deprecated(since="4.1.1", forRemoval=true) public CustomerModel(Collection<CustomerReviewModel> _customerReviews, boolean _loginDisabled, ItemModel _owner, String _uid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _customerReviews - initial attribute declared by type User at extension customerreview
      _loginDisabled - initial attribute declared by type User at extension core
      _owner - initial attribute declared by type Item at extension core
      _uid - initial attribute declared by type Principal at extension core
  • Method Details

    • getContactEmail

      @Accessor(qualifier="contactEmail", type=GETTER) public String getContactEmail()
      Generated method - Getter of the Customer.contactEmail dynamic attribute defined at extension commerceservices.
      Returns:
      the contactEmail - Contact email is a dynamic attribute that is used to determine contact email address.
    • getCustomerCoupons

      @Accessor(qualifier="customerCoupons", type=GETTER) public Collection<CustomerCouponModel> getCustomerCoupons()
      Generated method - Getter of the Customer.customerCoupons attribute defined at extension customercouponservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the customerCoupons - Customer Coupons
    • getCustomerID

      @Accessor(qualifier="customerID", type=GETTER) public String getCustomerID()
      Generated method - Getter of the Customer.customerID attribute defined at extension core.
      Returns:
      the customerID
    • getDefaultPaymentInfo

      @Accessor(qualifier="defaultPaymentInfo", type=GETTER) public PaymentInfoModel getDefaultPaymentInfo()
      Generated method - Getter of the Customer.defaultPaymentInfo attribute defined at extension commerceservices.
      Returns:
      the defaultPaymentInfo - It holds information about default payment that is used by the customer.
    • getEmailLanguage

      @Accessor(qualifier="emailLanguage", type=GETTER) public String getEmailLanguage()
      Generated method - Getter of the Customer.emailLanguage attribute defined at extension chineseprofileservices.
      Returns:
      the emailLanguage
    • getEmailPreference

      @Deprecated(since="6.7", forRemoval=true) @Accessor(qualifier="emailPreference", type=GETTER) public Boolean getEmailPreference()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 6.7
      Generated method - Getter of the Customer.emailPreference attribute defined at extension notificationservices.
      Returns:
      the emailPreference - Deprecated since 6.7, will be removed in the future.
    • getMobileNumber

      @Accessor(qualifier="mobileNumber", type=GETTER) public String getMobileNumber()
      Generated method - Getter of the Customer.mobileNumber attribute defined at extension chineseprofileservices.
      Returns:
      the mobileNumber
    • getNotificationChannels

      @Accessor(qualifier="notificationChannels", type=GETTER) public Set<NotificationChannel> getNotificationChannels()
      Generated method - Getter of the Customer.notificationChannels attribute defined at extension notificationservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the notificationChannels
    • getOriginalUid

      @Accessor(qualifier="originalUid", type=GETTER) public String getOriginalUid()
      Generated method - Getter of the Customer.originalUid attribute defined at extension commerceservices.
      Returns:
      the originalUid
    • getPreviewCatalogVersions

      @Accessor(qualifier="previewCatalogVersions", type=GETTER) public Collection<CatalogVersionModel> getPreviewCatalogVersions()
      Generated method - Getter of the Customer.previewCatalogVersions attribute defined at extension catalog. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the previewCatalogVersions
    • getProductInterests

      @Accessor(qualifier="productInterests", type=GETTER) public Collection<ProductInterestModel> getProductInterests()
      Generated method - Getter of the Customer.productInterests attribute defined at extension customerinterestsservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the productInterests
    • getSmsPreference

      @Deprecated(since="6.7", forRemoval=true) @Accessor(qualifier="smsPreference", type=GETTER) public Boolean getSmsPreference()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 6.7
      Generated method - Getter of the Customer.smsPreference attribute defined at extension notificationservices.
      Returns:
      the smsPreference - Deprecated since 6.7, will be removed in the future.
    • getTickets

      @Accessor(qualifier="tickets", type=GETTER) public List<CsTicketModel> getTickets()
      Generated method - Getter of the Customer.tickets dynamic attribute defined at extension ticketsystem. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the tickets - Tickets is a dynamic attribute.
    • getTitle

      @Accessor(qualifier="title", type=GETTER) public TitleModel getTitle()
      Generated method - Getter of the Customer.title attribute defined at extension commerceservices.
      Returns:
      the title - It holds information about customer title (i.e. Mr, Dr, etc.)
    • getToken

      @Accessor(qualifier="token", type=GETTER) public String getToken()
      Generated method - Getter of the Customer.token attribute defined at extension commerceservices.
      Returns:
      the token - Attribute is used during forgotten password to ensure that the link can be used only once.
    • getType

      @Accessor(qualifier="type", type=GETTER) public CustomerType getType()
      Generated method - Getter of the Customer.type attribute defined at extension commerceservices.
      Returns:
      the type - Customer type
    • setCustomerCoupons

      @Accessor(qualifier="customerCoupons", type=SETTER) public void setCustomerCoupons(Collection<CustomerCouponModel> value)
      Generated method - Setter of Customer.customerCoupons attribute defined at extension customercouponservices.
      Parameters:
      value - the customerCoupons - Customer Coupons
    • setCustomerID

      @Accessor(qualifier="customerID", type=SETTER) public void setCustomerID(String value)
      Generated method - Setter of Customer.customerID attribute defined at extension core.
      Parameters:
      value - the customerID
    • setDefaultPaymentInfo

      @Accessor(qualifier="defaultPaymentInfo", type=SETTER) public void setDefaultPaymentInfo(PaymentInfoModel value)
      Generated method - Setter of Customer.defaultPaymentInfo attribute defined at extension commerceservices.
      Parameters:
      value - the defaultPaymentInfo - It holds information about default payment that is used by the customer.
    • setEmailLanguage

      @Accessor(qualifier="emailLanguage", type=SETTER) public void setEmailLanguage(String value)
      Generated method - Setter of Customer.emailLanguage attribute defined at extension chineseprofileservices.
      Parameters:
      value - the emailLanguage
    • setEmailPreference

      @Deprecated(since="6.7", forRemoval=true) @Accessor(qualifier="emailPreference", type=SETTER) public void setEmailPreference(Boolean value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 6.7
      Generated method - Setter of Customer.emailPreference attribute defined at extension notificationservices.
      Parameters:
      value - the emailPreference - Deprecated since 6.7, will be removed in the future.
    • setMobileNumber

      @Accessor(qualifier="mobileNumber", type=SETTER) public void setMobileNumber(String value)
      Generated method - Setter of Customer.mobileNumber attribute defined at extension chineseprofileservices.
      Parameters:
      value - the mobileNumber
    • setNotificationChannels

      @Accessor(qualifier="notificationChannels", type=SETTER) public void setNotificationChannels(Set<NotificationChannel> value)
      Generated method - Setter of Customer.notificationChannels attribute defined at extension notificationservices.
      Parameters:
      value - the notificationChannels
    • setOriginalUid

      @Accessor(qualifier="originalUid", type=SETTER) public void setOriginalUid(String value)
      Generated method - Setter of Customer.originalUid attribute defined at extension commerceservices.
      Parameters:
      value - the originalUid
    • setPreviewCatalogVersions

      @Accessor(qualifier="previewCatalogVersions", type=SETTER) public void setPreviewCatalogVersions(Collection<CatalogVersionModel> value)
      Generated method - Setter of Customer.previewCatalogVersions attribute defined at extension catalog.
      Parameters:
      value - the previewCatalogVersions
    • setProductInterests

      @Accessor(qualifier="productInterests", type=SETTER) public void setProductInterests(Collection<ProductInterestModel> value)
      Generated method - Setter of Customer.productInterests attribute defined at extension customerinterestsservices.
      Parameters:
      value - the productInterests
    • setSmsPreference

      @Deprecated(since="6.7", forRemoval=true) @Accessor(qualifier="smsPreference", type=SETTER) public void setSmsPreference(Boolean value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 6.7
      Generated method - Setter of Customer.smsPreference attribute defined at extension notificationservices.
      Parameters:
      value - the smsPreference - Deprecated since 6.7, will be removed in the future.
    • setTickets

      @Accessor(qualifier="tickets", type=SETTER) public void setTickets(List<CsTicketModel> value)
      Generated method - Setter of Customer.tickets dynamic attribute defined at extension ticketsystem.
      Parameters:
      value - the tickets - Tickets is a dynamic attribute.
    • setTitle

      @Accessor(qualifier="title", type=SETTER) public void setTitle(TitleModel value)
      Generated method - Setter of Customer.title attribute defined at extension commerceservices.
      Parameters:
      value - the title - It holds information about customer title (i.e. Mr, Dr, etc.)
    • setToken

      @Accessor(qualifier="token", type=SETTER) public void setToken(String value)
      Generated method - Setter of Customer.token attribute defined at extension commerceservices.
      Parameters:
      value - the token - Attribute is used during forgotten password to ensure that the link can be used only once.
    • setType

      @Accessor(qualifier="type", type=SETTER) public void setType(CustomerType value)
      Generated method - Setter of Customer.type attribute defined at extension commerceservices.
      Parameters:
      value - the type - Customer type