Commit 0e6998cf authored by 王源's avatar 王源 🎧

编写shopify Fulfillment相关代码

parent d31487d4
...@@ -14,6 +14,7 @@ use Meibuyu\Micro\Shopify\lib\Collect; ...@@ -14,6 +14,7 @@ use Meibuyu\Micro\Shopify\lib\Collect;
use Meibuyu\Micro\Shopify\lib\Collection; 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\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;
...@@ -43,6 +44,7 @@ use Meibuyu\Micro\Shopify\lib\Webhook; ...@@ -43,6 +44,7 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
* @property-read Location $Location * @property-read Location $Location
* @property-read Order $Order * @property-read Order $Order
* @property-read Event $Event * @property-read Event $Event
* @property-read Fulfillment $Fulfillment
* @property-read FulfillmentService $FulfillmentService * @property-read FulfillmentService $FulfillmentService
* @property-read GraphQL $GraphQL * @property-read GraphQL $GraphQL
* *
...@@ -58,6 +60,7 @@ use Meibuyu\Micro\Shopify\lib\Webhook; ...@@ -58,6 +60,7 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
* @method Location Location(integer $id = null) * @method Location Location(integer $id = null)
* @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 FulfillmentService FulfillmentService(integer $id = null) * @method FulfillmentService FulfillmentService(integer $id = null)
* @method GraphQL GraphQL() * @method GraphQL GraphQL()
* *
...@@ -79,6 +82,7 @@ class ShopifyApp ...@@ -79,6 +82,7 @@ class ShopifyApp
'Location', 'Location',
'Order', 'Order',
'Event', 'Event',
'Fulfillment',
'FulfillmentService', 'FulfillmentService',
'GraphQL', 'GraphQL',
]; ];
......
...@@ -16,6 +16,7 @@ namespace Meibuyu\Micro\Shopify\lib; ...@@ -16,6 +16,7 @@ namespace Meibuyu\Micro\Shopify\lib;
* *
* @method Event Event(integer $id = null) * @method Event Event(integer $id = null)
* *
* @method array update_tracking($info) Update Tracking
* @method array complete() Complete a fulfillment * @method array complete() Complete a fulfillment
* @method array open() Open a pending fulfillment * @method array open() Open a pending fulfillment
* @method array cancel() Cancel a fulfillment * @method array cancel() Cancel a fulfillment
...@@ -30,6 +31,7 @@ class Fulfillment extends AbstractShopify ...@@ -30,6 +31,7 @@ class Fulfillment extends AbstractShopify
]; ];
protected $customPostActions = [ protected $customPostActions = [
'update_tracking',
'complete', 'complete',
'open', 'open',
'cancel', 'cancel',
......
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