Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-rpc
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
0
Merge Requests
0
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-rpc
Commits
eebb7d56
Commit
eebb7d56
authored
Dec 04, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shopify底层库添加发货相关文件
parent
14e7c9fd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
119 additions
and
0 deletions
+119
-0
ShopifyApp.php
src/Shopify/ShopifyApp.php
+8
-0
Event.php
src/Shopify/lib/Event.php
+20
-0
Fulfillment.php
src/Shopify/lib/Fulfillment.php
+38
-0
FulfillmentEvent.php
src/Shopify/lib/FulfillmentEvent.php
+20
-0
FulfillmentService.php
src/Shopify/lib/FulfillmentService.php
+22
-0
Order.php
src/Shopify/lib/Order.php
+11
-0
No files found.
src/Shopify/ShopifyApp.php
View file @
eebb7d56
...
@@ -13,6 +13,8 @@ use Meibuyu\Micro\Shopify\lib\AbstractShopify;
...
@@ -13,6 +13,8 @@ use Meibuyu\Micro\Shopify\lib\AbstractShopify;
use
Meibuyu\Micro\Shopify\lib\Collect
;
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\FulfillmentService
;
use
Meibuyu\Micro\Shopify\lib\InventoryItem
;
use
Meibuyu\Micro\Shopify\lib\InventoryItem
;
use
Meibuyu\Micro\Shopify\lib\InventoryLevel
;
use
Meibuyu\Micro\Shopify\lib\InventoryLevel
;
use
Meibuyu\Micro\Shopify\lib\Location
;
use
Meibuyu\Micro\Shopify\lib\Location
;
...
@@ -39,6 +41,8 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
...
@@ -39,6 +41,8 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
* @property-read InventoryLevel $InventoryLevel
* @property-read InventoryLevel $InventoryLevel
* @property-read Location $Location
* @property-read Location $Location
* @property-read Order $Order
* @property-read Order $Order
* @property-read Event $Event
* @property-read FulfillmentService $FulfillmentService
*
*
* @method Webhook Webhook(integer $id = null)
* @method Webhook Webhook(integer $id = null)
* @method Collection Collection(integer $id = null)
* @method Collection Collection(integer $id = null)
...
@@ -51,6 +55,8 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
...
@@ -51,6 +55,8 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
* @method InventoryLevel InventoryLevel(integer $id = null)
* @method InventoryLevel InventoryLevel(integer $id = null)
* @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 FulfillmentService FulfillmentService(integer $id = null)
*
*
*/
*/
class
ShopifyApp
class
ShopifyApp
...
@@ -69,6 +75,8 @@ class ShopifyApp
...
@@ -69,6 +75,8 @@ class ShopifyApp
'InventoryLevel'
,
'InventoryLevel'
,
'Location'
,
'Location'
,
'Order'
,
'Order'
,
'Event'
,
'FulfillmentService'
,
];
];
protected
$childResources
=
array
(
protected
$childResources
=
array
(
...
...
src/Shopify/lib/Event.php
0 → 100644
View file @
eebb7d56
<?php
/**
* Created by PhpStorm.
* User: Zero
* Date: 2020/9/2
* Time: 16:50
*/
namespace
Meibuyu\Micro\Shopify\lib
;
/**
* Class Event
* @package Meibuyu\Micro\Shopify\lib
*/
class
Event
extends
AbstractShopify
{
protected
$resourceKey
=
'event'
;
}
src/Shopify/lib/Fulfillment.php
0 → 100644
View file @
eebb7d56
<?php
/**
* Created by PhpStorm.
* User: Zero
* Date: 2020/9/2
* Time: 16:50
*/
namespace
Meibuyu\Micro\Shopify\lib
;
/**
* Class Fulfillment
* @package Meibuyu\Micro\Shopify\lib
*
* @property-read Event $Event
*
* @method Event Event(integer $id = null)
*
* @method array complete() Complete a fulfillment
* @method array open() Open a pending fulfillment
* @method array cancel() Cancel a fulfillment
*/
class
Fulfillment
extends
AbstractShopify
{
protected
$resourceKey
=
'fulfillment'
;
protected
$childResource
=
[
'FulfillmentEvent'
=>
'Event'
,
];
protected
$customPostActions
=
[
'complete'
,
'open'
,
'cancel'
,
];
}
src/Shopify/lib/FulfillmentEvent.php
0 → 100644
View file @
eebb7d56
<?php
/**
* Created by PhpStorm.
* User: Zero
* Date: 2020/9/2
* Time: 16:50
*/
namespace
Meibuyu\Micro\Shopify\lib
;
/**
* Class FulfillmentEvent
* @package Meibuyu\Micro\Shopify\lib
*/
class
FulfillmentEvent
extends
AbstractShopify
{
protected
$resourceKey
=
'event'
;
}
src/Shopify/lib/FulfillmentService.php
0 → 100644
View file @
eebb7d56
<?php
/**
* Created by PhpStorm.
* User: Zero
* Date: 2020/9/2
* Time: 16:50
*/
namespace
Meibuyu\Micro\Shopify\lib
;
/**
* Class FulfillmentService
* @package Meibuyu\Micro\Shopify\lib
*/
class
FulfillmentService
extends
AbstractShopify
{
protected
$resourceKey
=
'fulfillment_service'
;
public
$countEnabled
=
false
;
}
src/Shopify/lib/Order.php
View file @
eebb7d56
...
@@ -12,6 +12,12 @@ namespace Meibuyu\Micro\Shopify\lib;
...
@@ -12,6 +12,12 @@ namespace Meibuyu\Micro\Shopify\lib;
* Class Order
* Class Order
* @package Meibuyu\Micro\Shopify\lib
* @package Meibuyu\Micro\Shopify\lib
*
*
* @property-read Fulfillment $Fulfillment
* @property-read Event $Event
*
* @method Fulfillment Fulfillment(integer $id = null)
* @method Event Event(integer $id = null)
*
* @method array close() Close an Order
* @method array close() Close an Order
* @method array open() Re-open a closed Order
* @method array open() Re-open a closed Order
* @method array cancel(array $data) Cancel an Order
* @method array cancel(array $data) Cancel an Order
...
@@ -21,6 +27,11 @@ class Order extends AbstractShopify
...
@@ -21,6 +27,11 @@ class Order extends AbstractShopify
protected
$resourceKey
=
'order'
;
protected
$resourceKey
=
'order'
;
protected
$childResource
=
[
'Fulfillment'
,
'Event'
,
];
protected
$customPostActions
=
[
protected
$customPostActions
=
[
'close'
,
'close'
,
'open'
,
'open'
,
...
...
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