Class CustomerCouponModel

All Implemented Interfaces:
Serializable

public class CustomerCouponModel extends AbstractCouponModel
Generated model class for type CustomerCoupon first defined at extension customercouponservices.
See Also:
  • Field Details

    • _TYPECODE

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

      public static final String ASSIGNABLE
      Generated constant - Attribute key of CustomerCoupon.assignable attribute defined at extension customercouponservices.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of CustomerCoupon.description attribute defined at extension customercouponservices.
      See Also:
    • CUSTOMERS

      public static final String CUSTOMERS
      Generated constant - Attribute key of CustomerCoupon.customers attribute defined at extension customercouponservices.
      See Also:
  • Constructor Details

    • CustomerCouponModel

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

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

      @Deprecated(since="4.1.1", forRemoval=true) public CustomerCouponModel(String _couponId)
      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:
      _couponId - initial attribute declared by type AbstractCoupon at extension couponservices
    • CustomerCouponModel

      @Deprecated(since="4.1.1", forRemoval=true) public CustomerCouponModel(String _couponId, ItemModel _owner)
      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:
      _couponId - initial attribute declared by type AbstractCoupon at extension couponservices
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getAssignable

      @Accessor(qualifier="assignable", type=GETTER) public Boolean getAssignable()
      Generated method - Getter of the CustomerCoupon.assignable attribute defined at extension customercouponservices.
      Returns:
      the assignable
    • getCustomers

      @Accessor(qualifier="customers", type=GETTER) public Collection<CustomerModel> getCustomers()
      Generated method - Getter of the CustomerCoupon.customers attribute defined at extension customercouponservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the customers - Customers
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the CustomerCoupon.description attribute defined at extension customercouponservices.
      Returns:
      the description
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
      Generated method - Getter of the CustomerCoupon.description attribute defined at extension customercouponservices.
      Parameters:
      loc - the value localization key
      Returns:
      the description
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setAssignable

      @Accessor(qualifier="assignable", type=SETTER) public void setAssignable(Boolean value)
      Generated method - Setter of CustomerCoupon.assignable attribute defined at extension customercouponservices.
      Parameters:
      value - the assignable
    • setCustomers

      @Accessor(qualifier="customers", type=SETTER) public void setCustomers(Collection<CustomerModel> value)
      Generated method - Setter of CustomerCoupon.customers attribute defined at extension customercouponservices.
      Parameters:
      value - the customers - Customers
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of CustomerCoupon.description attribute defined at extension customercouponservices.
      Parameters:
      value - the description
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc)
      Generated method - Setter of CustomerCoupon.description attribute defined at extension customercouponservices.
      Parameters:
      value - the description
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language