Merge pull request #15797 from FHenry/dev_fix_reslter_explorer_api_thirdparty

Dev fix reslter explorer api thirdparty
This commit is contained in:
Laurent Destailleur 2020-12-21 18:02:37 +01:00 committed by GitHub
commit 189c0be00b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,6 @@
use Luracast\Restler\RestException; use Luracast\Restler\RestException;
/** /**
* API class for thirdparties * API class for thirdparties
* *
@ -69,7 +68,7 @@ class Thirdparties extends DolibarrApi
* Return an array with thirdparty informations * Return an array with thirdparty informations
* *
* @param int $id Id of third party to load * @param int $id Id of third party to load
* @return Object Cleaned Societe object * @return array|mixed Cleaned Societe object
* *
* @throws RestException * @throws RestException
*/ */
@ -84,7 +83,7 @@ class Thirdparties extends DolibarrApi
* Return an array with thirdparty informations * Return an array with thirdparty informations
* *
* @param string $email Email of third party to load * @param string $email Email of third party to load
* @return Object Cleaned Societe object * @return array|mixed Cleaned Societe object
* *
* @url GET email/{email} * @url GET email/{email}
* *
@ -101,7 +100,7 @@ class Thirdparties extends DolibarrApi
* Return an array with thirdparty informations * Return an array with thirdparty informations
* *
* @param string $barcode Barcode of third party to load * @param string $barcode Barcode of third party to load
* @return Object Cleaned Societe object * @return array|mixed Cleaned Societe object
* *
* @url GET barcode/{barcode} * @url GET barcode/{barcode}
* *
@ -247,7 +246,7 @@ class Thirdparties extends DolibarrApi
* *
* @param int $id Id of thirdparty to update * @param int $id Id of thirdparty to update
* @param array $request_data Datas * @param array $request_data Datas
* @return Object|boolean * @return array|mixed|boolean
*/ */
public function put($id, $request_data = null) public function put($id, $request_data = null)
{ {
@ -1190,7 +1189,7 @@ class Thirdparties extends DolibarrApi
* @param int $id ID of thirdparty * @param int $id ID of thirdparty
* @param array $request_data Request data * @param array $request_data Request data
* *
* @return object BankAccount of thirdparty * @return array|mixed BankAccount of thirdparty
* *
* @url POST {id}/bankaccounts * @url POST {id}/bankaccounts
*/ */
@ -1233,7 +1232,7 @@ class Thirdparties extends DolibarrApi
* @param int $bankaccount_id ID of CompanyBankAccount * @param int $bankaccount_id ID of CompanyBankAccount
* @param array $request_data Request data * @param array $request_data Request data
* *
* @return object BankAccount of thirdparty * @return array|mixed BankAccount of thirdparty
* *
* @url PUT {id}/bankaccounts/{bankaccount_id} * @url PUT {id}/bankaccounts/{bankaccount_id}
*/ */
@ -1389,7 +1388,7 @@ class Thirdparties extends DolibarrApi
* @param int $id ID of thirdparty * @param int $id ID of thirdparty
* @param string $site Site key * @param string $site Site key
* *
* @return SocieteAccount[] * @return array|mixed
* @throws RestException 401 Unauthorized: User does not have permission to read thirdparties * @throws RestException 401 Unauthorized: User does not have permission to read thirdparties
* @throws RestException 404 Not Found: Specified thirdparty ID does not belongs to an existing thirdparty * @throws RestException 404 Not Found: Specified thirdparty ID does not belongs to an existing thirdparty
* *
@ -1461,7 +1460,7 @@ class Thirdparties extends DolibarrApi
* @param int $id ID of thirdparty * @param int $id ID of thirdparty
* @param array $request_data Request data * @param array $request_data Request data
* *
* @return SocieteAccount * @return array|mixed
* *
* @throws RestException 401 Unauthorized: User does not have permission to read thirdparties * @throws RestException 401 Unauthorized: User does not have permission to read thirdparties
* @throws RestException 409 Conflict: A SocieteAccount entity (gateway) already exists for this company and site. * @throws RestException 409 Conflict: A SocieteAccount entity (gateway) already exists for this company and site.
@ -1519,7 +1518,7 @@ class Thirdparties extends DolibarrApi
* @param string $site Site key * @param string $site Site key
* @param array $request_data Request data * @param array $request_data Request data
* *
* @return SocieteAccount * @return array|mixed
* *
* @throws RestException 401 Unauthorized: User does not have permission to read thirdparties * @throws RestException 401 Unauthorized: User does not have permission to read thirdparties
* @throws RestException 422 Unprocessable Entity: You must pass the site attribute in your request data ! * @throws RestException 422 Unprocessable Entity: You must pass the site attribute in your request data !
@ -1599,7 +1598,7 @@ class Thirdparties extends DolibarrApi
* @param string $site Site key * @param string $site Site key
* @param array $request_data Request data * @param array $request_data Request data
* *
* @return SocieteAccount * @return array|mixed
* *
* @throws RestException 401 Unauthorized: User does not have permission to read thirdparties * @throws RestException 401 Unauthorized: User does not have permission to read thirdparties
* @throws RestException 404 Not Found: Specified thirdparty ID does not belongs to an existing thirdparty * @throws RestException 404 Not Found: Specified thirdparty ID does not belongs to an existing thirdparty
@ -1733,7 +1732,7 @@ class Thirdparties extends DolibarrApi
* Clean sensible object datas * Clean sensible object datas
* *
* @param Object $object Object to clean * @param Object $object Object to clean
* @return Object Object with cleaned properties * @return array|mixed Object with cleaned properties
*/ */
protected function _cleanObjectDatas($object) protected function _cleanObjectDatas($object)
{ {
@ -1806,7 +1805,7 @@ class Thirdparties extends DolibarrApi
* @param string $idprof6 Prof id 6 of third party (Warning, this can return several records) * @param string $idprof6 Prof id 6 of third party (Warning, this can return several records)
* @param string $email Email of third party (Warning, this can return several records) * @param string $email Email of third party (Warning, this can return several records)
* @param string $ref_alias Name_alias of third party (Warning, this can return several records) * @param string $ref_alias Name_alias of third party (Warning, this can return several records)
* @return Object cleaned Societe object * @return array|mixed cleaned Societe object
* *
* @throws RestException * @throws RestException
*/ */