Class VoucherInvalidationModel

All Implemented Interfaces:
Serializable

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

    • _TYPECODE

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

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

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

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

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

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

      public static final String VOUCHER
      Generated constant - Attribute key of VoucherInvalidation.voucher attribute defined at extension voucher.
      See Also:
  • Constructor Details

    • 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(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(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 Details

    • getCode

      @Accessor(qualifier="code", type=GETTER) public 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 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(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(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