Commit b7d052df authored by 王源's avatar 王源 🎧

调整shopify的fulfillmentOrder文件;添加注解

parent 2cc2be53
...@@ -15,6 +15,7 @@ use Meibuyu\Micro\Shopify\lib\Collection; ...@@ -15,6 +15,7 @@ use Meibuyu\Micro\Shopify\lib\Collection;
use Meibuyu\Micro\Shopify\lib\CustomCollection; use Meibuyu\Micro\Shopify\lib\CustomCollection;
use Meibuyu\Micro\Shopify\lib\Event; use Meibuyu\Micro\Shopify\lib\Event;
use Meibuyu\Micro\Shopify\lib\Fulfillment; use Meibuyu\Micro\Shopify\lib\Fulfillment;
use Meibuyu\Micro\Shopify\lib\FulfillmentOrder;
use Meibuyu\Micro\Shopify\lib\FulfillmentService; use Meibuyu\Micro\Shopify\lib\FulfillmentService;
use Meibuyu\Micro\Shopify\lib\Graphql; use Meibuyu\Micro\Shopify\lib\Graphql;
use Meibuyu\Micro\Shopify\lib\InventoryItem; use Meibuyu\Micro\Shopify\lib\InventoryItem;
...@@ -61,6 +62,7 @@ use Meibuyu\Micro\Shopify\lib\Webhook; ...@@ -61,6 +62,7 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
* @method Order Order(integer $id = null) * @method Order Order(integer $id = null)
* @method Event Event(integer $id = null) * @method Event Event(integer $id = null)
* @method Fulfillment Fulfillment(integer $id = null) * @method Fulfillment Fulfillment(integer $id = null)
* @method FulfillmentOrder FulfillmentOrder()
* @method FulfillmentService FulfillmentService(integer $id = null) * @method FulfillmentService FulfillmentService(integer $id = null)
* @method GraphQL GraphQL() * @method GraphQL GraphQL()
* *
...@@ -83,7 +85,7 @@ class ShopifyApp ...@@ -83,7 +85,7 @@ class ShopifyApp
'Order', 'Order',
'Event', 'Event',
'Fulfillment', 'Fulfillment',
'FulfillmentOrders', 'FulfillmentOrder',
'FulfillmentService', 'FulfillmentService',
'GraphQL', 'GraphQL',
]; ];
...@@ -91,7 +93,7 @@ class ShopifyApp ...@@ -91,7 +93,7 @@ class ShopifyApp
protected $childResources = array( protected $childResources = array(
'Fulfillment' => 'Order', 'Fulfillment' => 'Order',
'FulfillmentEvent' => 'Fulfillment', 'FulfillmentEvent' => 'Fulfillment',
'FulfillmentOrders' => 'Order', 'FulfillmentOrder' => 'Order',
'OrderRisk' => 'Order', 'OrderRisk' => 'Order',
'ProductImage' => 'Product', 'ProductImage' => 'Product',
'ProductVariant' => 'Product', 'ProductVariant' => 'Product',
......
<?php <?php
namespace Meibuyu\Micro\Shopify\lib; namespace Meibuyu\Micro\Shopify\lib;
/** /**
* Class Fulfillment * Class FulfillmentOrder
* @package Meibuyu\Micro\Shopify\lib * @package Meibuyu\Micro\Shopify\lib
* *
* @property-read Event $Event * @property-read Event $Event
* *
* @method Event Event(integer $id = null) * @method array cancel() Cancel a fulfillment order
* @method array get() Cancel a fulfillment * @method array close() Marks a fulfillment order as incomplete
* @method array move() Moves a fulfillment order to a new location
*/ */
class FulfillmentOrders extends AbstractShopify class FulfillmentOrder extends AbstractShopify
{ {
protected $resourceKey = 'fulfillment_order'; protected $resourceKey = 'fulfillment_order';
protected $childResource = [
'FulfillmentEvent' => 'Event',
];
protected $customPostActions = [ protected $customPostActions = [
'cancel',
'close',
'move',
]; ];
}
\ No newline at end of file }
...@@ -16,6 +16,7 @@ namespace Meibuyu\Micro\Shopify\lib; ...@@ -16,6 +16,7 @@ namespace Meibuyu\Micro\Shopify\lib;
* @property-read Event $Event * @property-read Event $Event
* *
* @method Fulfillment Fulfillment(integer $id = null) * @method Fulfillment Fulfillment(integer $id = null)
* @method FulfillmentOrder FulfillmentOrder()
* @method Event Event(integer $id = null) * @method Event Event(integer $id = null)
* *
* @method array close() Close an Order * @method array close() Close an Order
...@@ -29,7 +30,7 @@ class Order extends AbstractShopify ...@@ -29,7 +30,7 @@ class Order extends AbstractShopify
protected $childResource = [ protected $childResource = [
'Fulfillment', 'Fulfillment',
'FulfillmentOrders', 'FulfillmentOrder',
'Event', 'Event',
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment