Class DefaultShippingActionStrategy

    • Constructor Detail

      • DefaultShippingActionStrategy

        public DefaultShippingActionStrategy()
    • Method Detail

      • apply

        public java.util.List<PromotionResultModel> apply​(AbstractRuleActionRAO action)
        If the parameter action is of type ShipmentRAO Delivery options set to corresponding fields of Order model.
        Parameters:
        action - the action to apply
        Returns:
        empty list since no any PromotionResultModel can correspond to Shipment Promotion Action.
      • undo

        public void undo​(ItemModel item)
        Description copied from interface: RuleActionStrategy
        Revokes the Promotion Action that was applied.
        Parameters:
        item - the action to be undone
      • getDeliveryModeForCode

        protected DeliveryModeModel getDeliveryModeForCode​(java.lang.String code)
      • setDeliveryModeDao

        public void setDeliveryModeDao​(DeliveryModeDao deliveryModeDao)