Class CheckGiftRegistryPurchaseRecordEligibilityCmdImpl

  • All Implemented Interfaces:
    BusinessObjectDocumentCmd,, ECCommand, ECTargetableCommand, TaskCommand, CheckGiftRegistryPurchaseRecordEligibilityCmd,,,,,,

    public class CheckGiftRegistryPurchaseRecordEligibilityCmdImpl
    extends BusinessObjectDocumentCmdImpl
    implements CheckGiftRegistryPurchaseRecordEligibilityCmd
    This command checks if a purchase record is eligible to be updated. By default, the following rule is enforced:
    • A gift registry marked for delete should not be updated. An ECApplicationException with GiftRegistryMessage._ERR_GIFT_REGISTRY_NOT_FOUND will thrown if the given registry is marked for delete, because such gift registry is considered as gone.
    • The quantity purchased is validated. The value for quantity purchased can be a negative value in case the quantity bought needs to be reduced (Foe example return). This command will check if quantity bought + quantity purchased (negative value) is greater than zero. If not, the value for quantity purchased is not valid. An ECApplicationException with the message GiftRegistryMessage._ERR_GIFT_REGISTRY_PURCHASE_RECORD_INVALID_QUANTITY will be thrown.
    • The associated orderItem must contain the same catalog item as the given giftItem. Otherwise, an ECApplicationException with the message GiftRegistryMessage._ERR_MISMATCHING_ORDER_ITEM_AND_GIFT_ITEM will be thrown.
    See Also:
    Serialized Form
    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • CLASS_NAME

        public static final java.lang.String CLASS_NAME
        Class name of the command
    • Constructor Detail

      • CheckGiftRegistryPurchaseRecordEligibilityCmdImpl

        public CheckGiftRegistryPurchaseRecordEligibilityCmdImpl()