Skip to content

Commit

Permalink
Merge pull request #3 from exonet/designated-agent
Browse files Browse the repository at this point in the history
Add `designated-agent` option when modifying the contacts of a domain
  • Loading branch information
digicatech authored Sep 23, 2024
2 parents 0dbe0e6 + 6a081da commit 011726a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/APIs/Domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ public function deleteChildNameServer($orderId, $cns, $ip)
* @param int $adminContactId
* @param int $techContactId
* @param int $billingContactId
* @param bool $skipIRTP
* @param bool $designatedAgent
*
* @return array|Exception
* @throws Exception
Expand All @@ -606,14 +608,16 @@ public function modifyContact(
$adminContactId,
$techContactId,
$billingContactId,
$skipIRTP = false
$skipIRTP = false,
$designatedAgent = false
) {
$params = [
'order-id' => $orderId,
'reg-contact-id' => $regContactId,
'admin-contact-id' => $adminContactId,
'tech-contact-id' => $techContactId,
'billing-contact-id' => $billingContactId,
'designated-agent' => $designatedAgent ? 'true' : 'false',
];

if ($skipIRTP) {
Expand Down

0 comments on commit 011726a

Please sign in to comment.