-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task#98 Add paysystem adm persontype support
- Loading branch information
Showing
2 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
|
||
namespace Bitrix24\CRM\Invoice; | ||
|
||
use Bitrix24\Bitrix24Entity; | ||
|
||
/** | ||
* Class PaySystem | ||
*/ | ||
class PaySystem extends Bitrix24Entity | ||
{ | ||
/** | ||
* @link https://dev.1c-bitrix.ru/rest_help/crm/invoice/crm_paysystem_list.php | ||
* | ||
* @param array $order - order of task items | ||
* @param array $filter - filter array | ||
* | ||
* @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 getList($order = array(), $filter = array()) | ||
{ | ||
$fullResult = $this->client->call( | ||
'crm.paysystem.list', | ||
array( | ||
'order' => $order, | ||
'filter' => $filter, | ||
) | ||
); | ||
|
||
return $fullResult; | ||
} | ||
|
||
|
||
/** | ||
* @link https://dev.1c-bitrix.ru/rest_help/crm/invoice/crm_paysystem_fields.php | ||
* | ||
* @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 fields() | ||
{ | ||
$fullResult = $this->client->call( | ||
'crm.paysystem.fields', | ||
array() | ||
); | ||
|
||
return $fullResult; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
|
||
namespace Bitrix24\CRM\Invoice; | ||
|
||
use Bitrix24\Bitrix24Entity; | ||
|
||
/** | ||
* Class PersonType | ||
*/ | ||
class PersonType extends Bitrix24Entity | ||
{ | ||
/** | ||
* @link https://dev.1c-bitrix.ru/rest_help/crm/invoice/crm_persontype_list.php | ||
* | ||
* @param array $order - order of task items | ||
* @param array $filter - filter array | ||
* | ||
* @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 getList($order = array(), $filter = array()) | ||
{ | ||
$fullResult = $this->client->call( | ||
'crm.persontype.list', | ||
array( | ||
'order' => $order, | ||
'filter' => $filter, | ||
) | ||
); | ||
|
||
return $fullResult; | ||
} | ||
|
||
|
||
/** | ||
* @link https://dev.1c-bitrix.ru/rest_help/crm/invoice/crm_persontype_fields.php | ||
* | ||
* @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 fields() | ||
{ | ||
$fullResult = $this->client->call( | ||
'crm.persontype.fields', | ||
array() | ||
); | ||
|
||
return $fullResult; | ||
} | ||
} |