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
a0129187
Commit
a0129187
authored
Mar 04, 2021
by
王源
🎧
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rpc/shopify' into test
parents
325e92d2
faafecce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
6 deletions
+40
-6
RpcException.php
src/Exceptions/RpcException.php
+15
-0
ShopifyServiceInterface.php
src/Service/Interfaces/Product/ShopifyServiceInterface.php
+25
-6
No files found.
src/Exceptions/RpcException.php
0 → 100644
View file @
a0129187
<?php
namespace
Meibuyu\Micro\Exceptions
;
use
Throwable
;
class
RpcException
extends
\Exception
{
public
function
__construct
(
$message
=
""
,
$code
=
511
,
Throwable
$previous
=
null
)
{
parent
::
__construct
(
$message
,
$code
,
$previous
);
}
}
\ No newline at end of file
src/Service/Interfaces/Product/ShopifyServiceInterface.php
View file @
a0129187
...
...
@@ -8,7 +8,7 @@
namespace
Meibuyu\Micro\Service\Interfaces\Product
;
use
Meibuyu\Micro\Exceptions\
HttpResponse
Exception
;
use
Meibuyu\Micro\Exceptions\
Rpc
Exception
;
interface
ShopifyServiceInterface
{
...
...
@@ -54,16 +54,35 @@ interface ShopifyServiceInterface
/**
* 为shopify订单创建发货记录
* @param int $orderId
* @param array $params
* 参数示例: https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillment#create-2020-07
* location_id不传会默认拿取系统有的数据,拿不到报错
* @param int $orderId
* @param array $params
* @param int $shopifySiteId
* @return mixed
* @throws HttpResponseException
* @throws \Exception
* @author Zero
* @throws RpcException
* @author zero
*/
public
function
createOrderFulfillment
(
$orderId
,
$params
,
$shopifySiteId
);
/**
* 更新shopify订单发货物流信息
* 参数示例: https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillment#update_tracking-2020-07
* [
* "notify_customer" => true,
* "tracking_info" => [
* "number" => "1111",
* "url" => "http://www.my-url.com",
* "company" => "my-company",
* ]
* ]
* @param $fulfillmentId
* @param $params
* @param $shopifySiteId
* @return array
* @throws RpcException
* @author zero
*/
public
function
updateFulfillmentTracking
(
$fulfillmentId
,
$params
,
$shopifySiteId
);
}
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