diff --git a/src/MiniProgram/Shop/Aftersale/Client.php b/src/MiniProgram/Shop/Aftersale/Client.php index 5d29d3c..67f3ad3 100644 --- a/src/MiniProgram/Shop/Aftersale/Client.php +++ b/src/MiniProgram/Shop/Aftersale/Client.php @@ -38,6 +38,19 @@ class Client extends BaseClient return $this->httpPostJson('shop/ecaftersale/get', $order); } + /** + * 获取售后单详情 + * + * @param array $order + * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string + * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException + * @throws \GuzzleHttp\Exception\GuzzleException + */ + public function getDetails(array $order) + { + return $this->httpPostJson('shop/aftersale/get', $order); + } + /** * 更新售后 * @@ -92,7 +105,19 @@ class Client extends BaseClient } /** - * 商家同意退款|商家同意退货 + * 商家同意退货 + * @param array $data + * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string + * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException + * @throws \GuzzleHttp\Exception\GuzzleException + */ + public function acceptReturn(array $data) + { + return $this->httpPostJson('shop/ecaftersale/acceptreturn', $data); + } + + /** + * 商家同意退款 * * @param array $data * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string