Skip to content

Commit 361f8fb

Browse files
author
steve
committed
Allow for the update of customer statuses.
1 parent df022a2 commit 361f8fb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/PleskX/Api/Operator/Customer.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@ public function create($properties)
2424
return new Struct\Info($response);
2525
}
2626

27+
public function set_status($plesk_customer_id,$status)
28+
{
29+
$packet = $this->_client->getPacket();
30+
31+
$get = $packet->addChild($this->_wrapperTag)->addChild('set');
32+
33+
$filter = $get->addChild('filter');
34+
$filter->addChild('id',$plesk_customer_id);
35+
$values = $get->addChild('values');
36+
$gen_info = $values->addChild('gen_info');
37+
$gen_info->addChild('status',$status);
38+
$response = $this->_client->request($packet,$this->_client::RESPONSE_FULL);
39+
40+
return new Struct\Info($response);
41+
}
42+
2743
/**
2844
* @param string $field
2945
* @param integer|string $value

0 commit comments

Comments
 (0)