Commit a0129187 authored by 王源's avatar 王源 🎧

Merge branch 'rpc/shopify' into test

parents 325e92d2 faafecce
<?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
......@@ -8,7 +8,7 @@
namespace Meibuyu\Micro\Service\Interfaces\Product;
use Meibuyu\Micro\Exceptions\HttpResponseException;
use Meibuyu\Micro\Exceptions\RpcException;
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);
}
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