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