Skip to content

Commit

Permalink
Add product move method
Browse files Browse the repository at this point in the history
  • Loading branch information
rytisder authored Sep 29, 2020
1 parent 36f4f36 commit ffc0ebf
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/APIs/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@

use Exception;
use habil\ResellerClub\Helper;
use SimpleXMLElement;

/**
* Class Products
*
* @package habil\ResellerClub\APIs
* @todo Add other endpoints
*/
class Products
{
Expand All @@ -30,4 +28,27 @@ public function customerPrice()
{
return $this->get('customer-price');
}

/**
* @param string $domainName
* @param int $existingCustomerId
* @param int $newCustomerId
* @param string $defaultContact
*
* @return array|Exception
* @throws Exception
* @link https://manage.logicboxes.com/kb/node/904
*/
public function move($domainName, $existingCustomerId, $newCustomerId, $defaultContact = 'oldcontact')
{
return $this->post(
'move',
[
'domain-name' => $domainName,
'existing-customer-id' => $existingCustomerId,
'new-customer-id' => $newCustomerId,
'default-contact' => $defaultContact,
]
);
}
}

0 comments on commit ffc0ebf

Please sign in to comment.