diff --git a/php/src/mollie/reseller.php b/php/src/mollie/reseller.php index 6bd27cb..af67801 100755 --- a/php/src/mollie/reseller.php +++ b/php/src/mollie/reseller.php @@ -175,6 +175,23 @@ public function bankAccountEdit($username, $password, $id, array $fields) ); } + /** + * @param string $username + * @param string $password + * @param string $partner_id_customer + * + * @throws Mollie_Exception + * @return SimpleXMLElement + */ + public function disconnectAccount($username, $password, $partner_id_customer) + { + return $this->performRequest( + self::METHOD_POST, + sprintf('/api/reseller/v%d/disconnect-account', self::API_VERSION), + ["username" => $username, "password" => $password, "partner_id_customer" => $partner_id_customer] + ); + } + /** * @param string $username * @param string $password diff --git a/php/tests/mollie/resellerTest.php b/php/tests/mollie/resellerTest.php index e72325c..c30dc1e 100755 --- a/php/tests/mollie/resellerTest.php +++ b/php/tests/mollie/resellerTest.php @@ -127,6 +127,11 @@ public function dpApiCalls () ['availablePaymentMethodsByPartnerId', [ 'partner_id_customer' => '555', ]], + ['disconnectAccount', [ + 'username' => 'john', + 'password' => '123456', + 'partner_id_customer' => '555', + ]], ]; } @@ -151,6 +156,9 @@ public function testApiCalls ($method, array $params) case 'availablePaymentMethodsByPartnerId': $actual_method = 'availablePaymentMethods'; break; + case 'disconnectAccount': + $actual_method = 'disconnect-account'; + break; default: $actual_method = $method; }