Class CustomerCouponModel

  • All Implemented Interfaces:
    java.io.Serializable

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

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • ASSIGNABLE

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

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

        public static final java.lang.String CUSTOMERS
        Generated constant - Attribute key of CustomerCoupon.customers attribute defined at extension customercouponservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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​(java.lang.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​(java.lang.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 Detail

      • getAssignable

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

        @Accessor(qualifier="customers",
                  type=GETTER)
        public java.util.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 java.lang.String getDescription()
        Generated method - Getter of the CustomerCoupon.description attribute defined at extension customercouponservices.
        Returns:
        the description
      • getDescription

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

        @Accessor(qualifier="assignable",
                  type=SETTER)
        public void setAssignable​(java.lang.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​(java.util.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​(java.lang.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​(java.lang.String value,
                                   java.util.Locale loc)
        Generated method - Setter of CustomerCoupon.description attribute defined at extension customercouponservices.
        Parameters:
        value - the description
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language