-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from va-fursenko/dev
Dev
- Loading branch information
Showing
5 changed files
with
90 additions
and
7 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
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,46 @@ | ||
<?php | ||
|
||
namespace MoySklad\Client; | ||
|
||
use MoySklad\ApiClient; | ||
use MoySklad\Client\Endpoint\GetEntitiesListEndpoint; | ||
use MoySklad\Client\Endpoint\GetEntityEndpoint; | ||
use MoySklad\Client\Endpoint\GetMetadataAttributeEndpoint; | ||
use MoySklad\Client\Endpoint\GetMetadataEndpoint; | ||
use MoySklad\Entity\Stock; | ||
|
||
/** | ||
* Class StockClient | ||
* @package MoySklad\Client | ||
* | ||
* Клиент работы с отчётом остатков | ||
* | ||
* @copyright CDEK.MARKET, Ltd. (ООО «СДЭК.МАРКЕТ» http://cdek.market) | ||
* @project ms-lib | ||
* @date 20.05.2020 14:23 | ||
* @author Viktor.Fursenko | ||
*/ | ||
class StockClient extends EntityClientBase | ||
{ | ||
use GetEntitiesListEndpoint, | ||
GetMetadataEndpoint, | ||
GetMetadataAttributeEndpoint, | ||
GetEntityEndpoint; | ||
|
||
/** | ||
* ServiceClient constructor. | ||
* @param ApiClient $api | ||
*/ | ||
public function __construct(ApiClient $api) | ||
{ | ||
parent::__construct($api, '/report/stock/all'); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
protected function getMetaEntityClass(): string | ||
{ | ||
return Stock::class; | ||
} | ||
} |
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
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
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