Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-micro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
without authentication
meibuyu-micro
Commits
b7d052df
Commit
b7d052df
authored
Apr 07, 2021
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整shopify的fulfillmentOrder文件;添加注解
parent
2cc2be53
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
3 deletions
+31
-3
ShopifyApp.php
src/Shopify/ShopifyApp.php
+4
-2
FulfillmentOrder.php
src/Shopify/lib/FulfillmentOrder.php
+25
-0
Order.php
src/Shopify/lib/Order.php
+2
-1
No files found.
src/Shopify/ShopifyApp.php
View file @
b7d052df
...
...
@@ -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
;
...
...
@@ -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()
*
...
...
@@ -83,7 +85,7 @@ class ShopifyApp
'Order'
,
'Event'
,
'Fulfillment'
,
'FulfillmentOrder
s
'
,
'FulfillmentOrder'
,
'FulfillmentService'
,
'GraphQL'
,
];
...
...
@@ -91,7 +93,7 @@ class ShopifyApp
protected
$childResources
=
array
(
'Fulfillment'
=>
'Order'
,
'FulfillmentEvent'
=>
'Fulfillment'
,
'FulfillmentOrder
s
'
=>
'Order'
,
'FulfillmentOrder'
=>
'Order'
,
'OrderRisk'
=>
'Order'
,
'ProductImage'
=>
'Product'
,
'ProductVariant'
=>
'Product'
,
...
...
src/Shopify/lib/FulfillmentOrder
s
.php
→
src/Shopify/lib/FulfillmentOrder.php
View file @
b7d052df
<?php
namespace
Meibuyu\Micro\Shopify\lib
;
/**
* Class Fulfillment
* Class Fulfillment
Order
* @package Meibuyu\Micro\Shopify\lib
*
* @property-read Event $Event
*
* @method Event Event(integer $id = null)
* @method array get() Cancel a fulfillment
* @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
s
extends
AbstractShopify
class
FulfillmentOrder
extends
AbstractShopify
{
protected
$resourceKey
=
'fulfillment_order'
;
protected
$childResource
=
[
'FulfillmentEvent'
=>
'Event'
,
];
protected
$customPostActions
=
[
'cancel'
,
'close'
,
'move'
,
];
}
\ No newline at end of file
}
src/Shopify/lib/Order.php
View file @
b7d052df
...
...
@@ -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
...
...
@@ -29,7 +30,7 @@ class Order extends AbstractShopify
protected
$childResource
=
[
'Fulfillment'
,
'FulfillmentOrder
s
'
,
'FulfillmentOrder'
,
'Event'
,
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment