@@ 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 | ||
@@ 915-921 (lines=7) @@ | ||
912 | LPTrackerRequest::sendRequest($url, $data, 'DELETE', $this->token, $this->address); |
|
913 | $response = $custom->toArray(); |
|
914 | $response['value'] = null; |
|
915 | } else { |
|
916 | $data = [ |
|
917 | 'value' => $custom->getValue(), |
|
918 | 'options' => $options, |
|
919 | ]; |
|
920 | $response = LPTrackerRequest::sendRequest($url, $data, 'PUT', $this->token, $this->address); |
|
921 | } |
|
922 | return new Custom($response, $custom->getLeadId()); |
|
923 | } |
|
924 |