Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit a199411

Browse files
committed
task#98 externalLink
1 parent d450087 commit a199411

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/classes/crm/invoice/invoice.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,34 @@ public function fields()
199199
);
200200
return $fullResult;
201201
}
202+
203+
/**
204+
* get external link for invoice
205+
*
206+
* @param $id
207+
*
208+
* @return array
209+
* @throws \Bitrix24\Exceptions\Bitrix24ApiException
210+
* @throws \Bitrix24\Exceptions\Bitrix24EmptyResponseException
211+
* @throws \Bitrix24\Exceptions\Bitrix24Exception
212+
* @throws \Bitrix24\Exceptions\Bitrix24IoException
213+
* @throws \Bitrix24\Exceptions\Bitrix24MethodNotFoundException
214+
* @throws \Bitrix24\Exceptions\Bitrix24PaymentRequiredException
215+
* @throws \Bitrix24\Exceptions\Bitrix24PortalDeletedException
216+
* @throws \Bitrix24\Exceptions\Bitrix24PortalRenamedException
217+
* @throws \Bitrix24\Exceptions\Bitrix24SecurityException
218+
* @throws \Bitrix24\Exceptions\Bitrix24TokenIsExpiredException
219+
* @throws \Bitrix24\Exceptions\Bitrix24TokenIsInvalidException
220+
* @throws \Bitrix24\Exceptions\Bitrix24WrongClientException
221+
*/
222+
public function getExternalLink($id)
223+
{
224+
$fullResult = $this->client->call(
225+
'crm.invoice.getexternallink',
226+
array(
227+
'id' => $id
228+
)
229+
);
230+
return $fullResult;
231+
}
202232
}

0 commit comments

Comments
 (0)