Skip to content

Commit

Permalink
task#98 externalLink
Browse files Browse the repository at this point in the history
  • Loading branch information
camaxtly committed Mar 25, 2018
1 parent d450087 commit a199411
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/classes/crm/invoice/invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,34 @@ public function fields()
);
return $fullResult;
}

/**
* get external link for invoice
*
* @param $id
*
* @return array
* @throws \Bitrix24\Exceptions\Bitrix24ApiException
* @throws \Bitrix24\Exceptions\Bitrix24EmptyResponseException
* @throws \Bitrix24\Exceptions\Bitrix24Exception
* @throws \Bitrix24\Exceptions\Bitrix24IoException
* @throws \Bitrix24\Exceptions\Bitrix24MethodNotFoundException
* @throws \Bitrix24\Exceptions\Bitrix24PaymentRequiredException
* @throws \Bitrix24\Exceptions\Bitrix24PortalDeletedException
* @throws \Bitrix24\Exceptions\Bitrix24PortalRenamedException
* @throws \Bitrix24\Exceptions\Bitrix24SecurityException
* @throws \Bitrix24\Exceptions\Bitrix24TokenIsExpiredException
* @throws \Bitrix24\Exceptions\Bitrix24TokenIsInvalidException
* @throws \Bitrix24\Exceptions\Bitrix24WrongClientException
*/
public function getExternalLink($id)
{
$fullResult = $this->client->call(
'crm.invoice.getexternallink',
array(
'id' => $id
)
);
return $fullResult;
}
}

0 comments on commit a199411

Please sign in to comment.