Loading src/Shopify/ShopifyApp.php +4 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ use Meibuyu\Micro\Shopify\lib\Collection; use Meibuyu\Micro\Shopify\lib\CustomCollection; use Meibuyu\Micro\Shopify\lib\Event; use Meibuyu\Micro\Shopify\lib\Fulfillment; use Meibuyu\Micro\Shopify\lib\FulfillmentOrder; use Meibuyu\Micro\Shopify\lib\FulfillmentService; use Meibuyu\Micro\Shopify\lib\Graphql; use Meibuyu\Micro\Shopify\lib\InventoryItem; Loading Loading @@ -61,6 +62,7 @@ use Meibuyu\Micro\Shopify\lib\Webhook; * @method Order Order(integer $id = null) * @method Event Event(integer $id = null) * @method Fulfillment Fulfillment(integer $id = null) * @method FulfillmentOrder FulfillmentOrder() * @method FulfillmentService FulfillmentService(integer $id = null) * @method GraphQL GraphQL() * Loading @@ -83,6 +85,7 @@ class ShopifyApp 'Order', 'Event', 'Fulfillment', 'FulfillmentOrder', 'FulfillmentService', 'GraphQL', ]; Loading @@ -90,6 +93,7 @@ class ShopifyApp protected $childResources = array( 'Fulfillment' => 'Order', 'FulfillmentEvent' => 'Fulfillment', 'FulfillmentOrder' => 'Order', 'OrderRisk' => 'Order', 'ProductImage' => 'Product', 'ProductVariant' => 'Product', Loading src/Shopify/lib/FulfillmentOrder.php 0 → 100644 +25 −0 Original line number Diff line number Diff line <?php namespace Meibuyu\Micro\Shopify\lib; /** * Class FulfillmentOrder * @package Meibuyu\Micro\Shopify\lib * * @property-read Event $Event * * @method array cancel() Cancel a fulfillment order * @method array close() Marks a fulfillment order as incomplete * @method array move() Moves a fulfillment order to a new location */ class FulfillmentOrder extends AbstractShopify { protected $resourceKey = 'fulfillment_order'; protected $customPostActions = [ 'cancel', 'close', 'move', ]; } src/Shopify/lib/Order.php +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ namespace Meibuyu\Micro\Shopify\lib; * @property-read Event $Event * * @method Fulfillment Fulfillment(integer $id = null) * @method FulfillmentOrder FulfillmentOrder() * @method Event Event(integer $id = null) * * @method array close() Close an Order Loading @@ -29,6 +30,7 @@ class Order extends AbstractShopify protected $childResource = [ 'Fulfillment', 'FulfillmentOrder', 'Event', ]; Loading Loading
src/Shopify/ShopifyApp.php +4 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ use Meibuyu\Micro\Shopify\lib\Collection; use Meibuyu\Micro\Shopify\lib\CustomCollection; use Meibuyu\Micro\Shopify\lib\Event; use Meibuyu\Micro\Shopify\lib\Fulfillment; use Meibuyu\Micro\Shopify\lib\FulfillmentOrder; use Meibuyu\Micro\Shopify\lib\FulfillmentService; use Meibuyu\Micro\Shopify\lib\Graphql; use Meibuyu\Micro\Shopify\lib\InventoryItem; Loading Loading @@ -61,6 +62,7 @@ use Meibuyu\Micro\Shopify\lib\Webhook; * @method Order Order(integer $id = null) * @method Event Event(integer $id = null) * @method Fulfillment Fulfillment(integer $id = null) * @method FulfillmentOrder FulfillmentOrder() * @method FulfillmentService FulfillmentService(integer $id = null) * @method GraphQL GraphQL() * Loading @@ -83,6 +85,7 @@ class ShopifyApp 'Order', 'Event', 'Fulfillment', 'FulfillmentOrder', 'FulfillmentService', 'GraphQL', ]; Loading @@ -90,6 +93,7 @@ class ShopifyApp protected $childResources = array( 'Fulfillment' => 'Order', 'FulfillmentEvent' => 'Fulfillment', 'FulfillmentOrder' => 'Order', 'OrderRisk' => 'Order', 'ProductImage' => 'Product', 'ProductVariant' => 'Product', Loading
src/Shopify/lib/FulfillmentOrder.php 0 → 100644 +25 −0 Original line number Diff line number Diff line <?php namespace Meibuyu\Micro\Shopify\lib; /** * Class FulfillmentOrder * @package Meibuyu\Micro\Shopify\lib * * @property-read Event $Event * * @method array cancel() Cancel a fulfillment order * @method array close() Marks a fulfillment order as incomplete * @method array move() Moves a fulfillment order to a new location */ class FulfillmentOrder extends AbstractShopify { protected $resourceKey = 'fulfillment_order'; protected $customPostActions = [ 'cancel', 'close', 'move', ]; }
src/Shopify/lib/Order.php +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ namespace Meibuyu\Micro\Shopify\lib; * @property-read Event $Event * * @method Fulfillment Fulfillment(integer $id = null) * @method FulfillmentOrder FulfillmentOrder() * @method Event Event(integer $id = null) * * @method array close() Close an Order Loading @@ -29,6 +30,7 @@ class Order extends AbstractShopify protected $childResource = [ 'Fulfillment', 'FulfillmentOrder', 'Event', ]; Loading