Class VoucherInvalidationModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class VoucherInvalidationModel
    extends ItemModel
    Generated model class for type VoucherInvalidation first defined at extension voucher.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

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

        public static final java.lang.String _VOUCHERINVALIDATIONSRELATION
        Generated relation code constant for relation VoucherInvalidationsRelation defining source attribute voucher in extension voucher.
        See Also:
        Constant Field Values
      • CODE

        public static final java.lang.String CODE
        Generated constant - Attribute key of VoucherInvalidation.code attribute defined at extension voucher.
        See Also:
        Constant Field Values
      • USER

        public static final java.lang.String USER
        Generated constant - Attribute key of VoucherInvalidation.user attribute defined at extension voucher.
        See Also:
        Constant Field Values
      • ORDER

        public static final java.lang.String ORDER
        Generated constant - Attribute key of VoucherInvalidation.order attribute defined at extension voucher.
        See Also:
        Constant Field Values
      • STATUS

        public static final java.lang.String STATUS
        Generated constant - Attribute key of VoucherInvalidation.status attribute defined at extension voucher.
        See Also:
        Constant Field Values
      • VOUCHER

        public static final java.lang.String VOUCHER
        Generated constant - Attribute key of VoucherInvalidation.voucher attribute defined at extension voucher.
        See Also:
        Constant Field Values
    • Constructor Detail

      • VoucherInvalidationModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public VoucherInvalidationModel​(java.lang.String _code,
                                        OrderModel _order,
                                        UserModel _user,
                                        VoucherModel _voucher)
        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:
        _code - initial attribute declared by type VoucherInvalidation at extension voucher
        _order - initial attribute declared by type VoucherInvalidation at extension voucher
        _user - initial attribute declared by type VoucherInvalidation at extension voucher
        _voucher - initial attribute declared by type VoucherInvalidation at extension voucher
      • VoucherInvalidationModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public VoucherInvalidationModel​(java.lang.String _code,
                                        OrderModel _order,
                                        ItemModel _owner,
                                        UserModel _user,
                                        VoucherModel _voucher)
        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:
        _code - initial attribute declared by type VoucherInvalidation at extension voucher
        _order - initial attribute declared by type VoucherInvalidation at extension voucher
        _owner - initial attribute declared by type Item at extension core
        _user - initial attribute declared by type VoucherInvalidation at extension voucher
        _voucher - initial attribute declared by type VoucherInvalidation at extension voucher
    • Method Detail

      • getCode

        @Accessor(qualifier="code",
                  type=GETTER)
        public java.lang.String getCode()
        Generated method - Getter of the VoucherInvalidation.code attribute defined at extension voucher.
        Returns:
        the code - the code used redeeming the voucher.
      • getOrder

        @Accessor(qualifier="order",
                  type=GETTER)
        public OrderModel getOrder()
        Generated method - Getter of the VoucherInvalidation.order attribute defined at extension voucher.
        Returns:
        the order - the order for which the voucher code was applied.
      • getStatus

        @Accessor(qualifier="status",
                  type=GETTER)
        public java.lang.String getStatus()
        Generated method - Getter of the VoucherInvalidation.status attribute defined at extension voucher.
        Returns:
        the status - the status of the invalidation.
      • getUser

        @Accessor(qualifier="user",
                  type=GETTER)
        public UserModel getUser()
        Generated method - Getter of the VoucherInvalidation.user attribute defined at extension voucher.
        Returns:
        the user - the user who redeemed the voucher.
      • getVoucher

        @Accessor(qualifier="voucher",
                  type=GETTER)
        public VoucherModel getVoucher()
        Generated method - Getter of the VoucherInvalidation.voucher attribute defined at extension voucher.
        Returns:
        the voucher
      • setCode

        @Accessor(qualifier="code",
                  type=SETTER)
        public void setCode​(java.lang.String value)
        Generated method - Initial setter of VoucherInvalidation.code attribute defined at extension voucher. Can only be used at creation of model - before first save.
        Parameters:
        value - the code - the code used redeeming the voucher.
      • setOrder

        @Accessor(qualifier="order",
                  type=SETTER)
        public void setOrder​(OrderModel value)
        Generated method - Initial setter of VoucherInvalidation.order attribute defined at extension voucher. Can only be used at creation of model - before first save.
        Parameters:
        value - the order - the order for which the voucher code was applied.
      • setStatus

        @Accessor(qualifier="status",
                  type=SETTER)
        public void setStatus​(java.lang.String value)
        Generated method - Setter of VoucherInvalidation.status attribute defined at extension voucher.
        Parameters:
        value - the status - the status of the invalidation.
      • setUser

        @Accessor(qualifier="user",
                  type=SETTER)
        public void setUser​(UserModel value)
        Generated method - Initial setter of VoucherInvalidation.user attribute defined at extension voucher. Can only be used at creation of model - before first save.
        Parameters:
        value - the user - the user who redeemed the voucher.
      • setVoucher

        @Accessor(qualifier="voucher",
                  type=SETTER)
        public void setVoucher​(VoucherModel value)
        Generated method - Initial setter of VoucherInvalidation.voucher attribute defined at extension voucher. Can only be used at creation of model - before first save.
        Parameters:
        value - the voucher