Commit 993c55ea authored by 王源's avatar 王源 🎧

shopifyRpc优化创建shopify订单发货记录方法,添加更新shopify订单发货物流信息方法

parent 9859453d
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Meibuyu\Micro\Service\Interfaces\Product; namespace Meibuyu\Micro\Service\Interfaces\Product;
use Meibuyu\Micro\Exceptions\HttpResponseException; use Meibuyu\Micro\Exceptions\RpcException;
interface ShopifyServiceInterface interface ShopifyServiceInterface
{ {
...@@ -54,16 +54,35 @@ interface ShopifyServiceInterface ...@@ -54,16 +54,35 @@ interface ShopifyServiceInterface
/** /**
* 为shopify订单创建发货记录 * 为shopify订单创建发货记录
* @param int $orderId
* @param array $params
* 参数示例: 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 array $params
* @param int $shopifySiteId * @param int $shopifySiteId
* @return mixed * @return mixed
* @throws HttpResponseException * @throws RpcException
* @throws \Exception * @author zero
* @author Zero
*/ */
public function createOrderFulfillment($orderId, $params, $shopifySiteId); 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