$rule->getEvent()->getId(), 'action' => $rule->getAction()->getId()); } catch(Exception $e) { AmzFulfillment_Logger::warn('Failed to load rule: ' . $e->getMessage()); } } return $value; } protected function defaultObject() { return array( new AmzFulfillment_Entity_Rule(AmzFulfillment_Entity_Event::WOOCOMMERCE_ORDER_PROCESSING, AmzFulfillment_Entity_Action::AMAZON_FULFILLMENT_CREATE), new AmzFulfillment_Entity_Rule(AmzFulfillment_Entity_Event::AMAZON_FULFILLMENT_CANCELLED, AmzFulfillment_Entity_Action::WOOCOMMERCE_ORDER_CANCELLED), new AmzFulfillment_Entity_Rule(AmzFulfillment_Entity_Event::AMAZON_FULFILLMENT_INVALID, AmzFulfillment_Entity_Action::WOOCOMMERCE_ORDER_FAILED), new AmzFulfillment_Entity_Rule(AmzFulfillment_Entity_Event::AMAZON_FULFILLMENT_COMPLETE, AmzFulfillment_Entity_Action::WOOCOMMERCE_ORDER_COMPLETED), new AmzFulfillment_Entity_Rule(AmzFulfillment_Entity_Event::AMAZON_FULFILLMENT_UNFULFILLABLE, AmzFulfillment_Entity_Action::WOOCOMMERCE_ORDER_FAILED), new AmzFulfillment_Entity_Rule(AmzFulfillment_Entity_Event::AMAZON_PACKAGE_TRACKING_NUMBER, AmzFulfillment_Entity_Action::EMAIL_PACKAGE_TRACKING) ); } }