Skip to content

Commit

Permalink
Add ability to skip IRPT on contact modification
Browse files Browse the repository at this point in the history
  • Loading branch information
rytisder authored May 29, 2020
2 parents 33f7a09 + 1088bea commit f11b9c3
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/APIs/Domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,18 +605,22 @@ public function modifyContact(
$regContactId,
$adminContactId,
$techContactId,
$billingContactId
$billingContactId,
$skipIRTP = false
) {
return $this->post(
'modify-contact',
[
'order-id' => $orderId,
'reg-contact-id' => $regContactId,
'admin-contact-id' => $adminContactId,
'tech-contact-id' => $techContactId,
'billing-contact-id' => $billingContactId,
]
);
$params = [
'order-id' => $orderId,
'reg-contact-id' => $regContactId,
'admin-contact-id' => $adminContactId,
'tech-contact-id' => $techContactId,
'billing-contact-id' => $billingContactId,
];

if ($skipIRTP) {
$params = array_merge($params, $this->processAttributes(['skipIRTP' => 'true']));
}

return $this->post('modify-contact', $params);
}

/**
Expand Down

0 comments on commit f11b9c3

Please sign in to comment.