From b64c3f9132f2a0855c0ddfc84b6cc15b04c0f075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=BD=AA?= Date: Tue, 11 Jun 2019 14:56:40 +0800 Subject: [PATCH] add InnerTransfer tests --- src/PrivateApi/Account.php | 1 - tests/AccountTest.php | 13 +++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/PrivateApi/Account.php b/src/PrivateApi/Account.php index 904c5d6..a1f964e 100644 --- a/src/PrivateApi/Account.php +++ b/src/PrivateApi/Account.php @@ -119,7 +119,6 @@ public function innerTransfer($clientOid, $payAccountId, $recAccountId, $amount) * @throws \KuCoin\SDK\Exceptions\BusinessException * @throws \KuCoin\SDK\Exceptions\HttpException * @throws \KuCoin\SDK\Exceptions\InvalidApiUriException - * @deprecated This interface was discontinued on August 29, 2019. Please use the transfer v2 interface provided below. */ public function innerTransferV2($clientOid, $currency, $from, $to, $amount) { diff --git a/tests/AccountTest.php b/tests/AccountTest.php index a3ac15a..806f0d0 100644 --- a/tests/AccountTest.php +++ b/tests/AccountTest.php @@ -151,6 +151,19 @@ public function testInnerTransfer(Account $api) } } + /** + * @dataProvider apiProvider + * @param Account $api + * @throws BusinessException + * @throws \KuCoin\SDK\Exceptions\HttpException + * @throws \KuCoin\SDK\Exceptions\InvalidApiUriException + */ + public function testInnerTransferV2(Account $api) + { + $order = $api->innerTransferV2(uniqid(), 'KCS', 'main', 'trade', '2'); + $this->assertArrayHasKey('orderId', $order); + } + /** * @dataProvider apiProvider * @param Account $api