Commit 8b0e5bdb authored by 王源's avatar 王源 🎧

Merge branch 'rpc/shopify' into test

parents a0129187 b8f27b33
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
namespace Meibuyu\Micro\Service\Interfaces\Product; namespace Meibuyu\Micro\Service\Interfaces\Product;
use Exception;
use Meibuyu\Micro\Exceptions\RpcException; use Meibuyu\Micro\Exceptions\RpcException;
interface ShopifyServiceInterface interface ShopifyServiceInterface
...@@ -18,7 +19,7 @@ interface ShopifyServiceInterface ...@@ -18,7 +19,7 @@ interface ShopifyServiceInterface
* @param $orderId * @param $orderId
* @param $shopifySiteId * @param $shopifySiteId
* @return array * @return array
* @throws \Exception * @throws Exception
*/ */
public function pullOrder($orderId, $shopifySiteId): array; public function pullOrder($orderId, $shopifySiteId): array;
...@@ -36,7 +37,7 @@ interface ShopifyServiceInterface ...@@ -36,7 +37,7 @@ interface ShopifyServiceInterface
* @param int $sinceId 订单id * @param int $sinceId 订单id
* @param int $shopifySiteId shopify站点id * @param int $shopifySiteId shopify站点id
* @return array * @return array
* @throws \Exception * @throws Exception
* @author Zero * @author Zero
*/ */
public function pullOrderList($sinceId, $shopifySiteId): array; public function pullOrderList($sinceId, $shopifySiteId): array;
...@@ -47,13 +48,13 @@ interface ShopifyServiceInterface ...@@ -47,13 +48,13 @@ interface ShopifyServiceInterface
* @param array $params 更新的数据 * @param array $params 更新的数据
* @param int $shopifySiteId shopify站点id * @param int $shopifySiteId shopify站点id
* @return mixed * @return mixed
* @throws \Exception * @throws RpcException
* @author Zero * @author zero
*/ */
public function updateOrder($orderId, $params, $shopifySiteId); public function updateOrder($orderId, $params, $shopifySiteId);
/** /**
* 为shopify订单创建发货记录 * 创建shopify订单发货记录
* 参数示例: https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillment#create-2020-07 * 参数示例: https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillment#create-2020-07
* location_id不传会默认拿取系统有的数据,拿不到报错 * location_id不传会默认拿取系统有的数据,拿不到报错
* @param int $orderId * @param int $orderId
......
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