|
@@ 474-479 (lines=6) @@
|
| 471 |
|
LPTrackerRequest::sendRequest($url, [], 'DELETE', $this->token, $this->address); |
| 472 |
|
$response = $field->toArray(); |
| 473 |
|
$response['value'] = null; |
| 474 |
|
} else { |
| 475 |
|
$data = [ |
| 476 |
|
'value' => $field->getValue(), |
| 477 |
|
]; |
| 478 |
|
$response = LPTrackerRequest::sendRequest($url, $data, 'PUT', $this->token, $this->address); |
| 479 |
|
} |
| 480 |
|
return new ContactField($response); |
| 481 |
|
} |
| 482 |
|
|
|
@@ 921-927 (lines=7) @@
|
| 918 |
|
LPTrackerRequest::sendRequest($url, $data, 'DELETE', $this->token, $this->address); |
| 919 |
|
$response = $custom->toArray(); |
| 920 |
|
$response['value'] = null; |
| 921 |
|
} else { |
| 922 |
|
$data = [ |
| 923 |
|
'value' => $custom->getValue(), |
| 924 |
|
'options' => $options, |
| 925 |
|
]; |
| 926 |
|
$response = LPTrackerRequest::sendRequest($url, $data, 'PUT', $this->token, $this->address); |
| 927 |
|
} |
| 928 |
|
return new Custom($response, $custom->getLeadId()); |
| 929 |
|
} |
| 930 |
|
|