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
eebb7d56
Commit
eebb7d56
authored
Dec 04, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shopify底层库添加发货相关文件
parent
14e7c9fd
Changes
6
Show 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;
use
Meibuyu\Micro\Shopify\lib\Collect
;
use
Meibuyu\Micro\Shopify\lib\Collection
;
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\InventoryLevel
;
use
Meibuyu\Micro\Shopify\lib\Location
;
...
...
@@ -39,6 +41,8 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
* @property-read InventoryLevel $InventoryLevel
* @property-read Location $Location
* @property-read Order $Order
* @property-read Event $Event
* @property-read FulfillmentService $FulfillmentService
*
* @method Webhook Webhook(integer $id = null)
* @method Collection Collection(integer $id = null)
...
...
@@ -51,6 +55,8 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
* @method InventoryLevel InventoryLevel(integer $id = null)
* @method Location Location(integer $id = null)
* @method Order Order(integer $id = null)
* @method Event Event(integer $id = null)
* @method FulfillmentService FulfillmentService(integer $id = null)
*
*/
class
ShopifyApp
...
...
@@ -69,6 +75,8 @@ class ShopifyApp
'InventoryLevel'
,
'Location'
,
'Order'
,
'Event'
,
'FulfillmentService'
,
];
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;
* Class Order
* @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 open() Re-open a closed Order
* @method array cancel(array $data) Cancel an Order
...
...
@@ -21,6 +27,11 @@ class Order extends AbstractShopify
protected
$resourceKey
=
'order'
;
protected
$childResource
=
[
'Fulfillment'
,
'Event'
,
];
protected
$customPostActions
=
[
'close'
,
'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