1
0
mirror of synced 2024-11-25 06:46:07 +03:00

update method docblock

This commit is contained in:
Pavel 2022-08-09 14:38:03 +03:00
parent 3aa3e65bbe
commit df9d1b6e6f

View File

@ -471,15 +471,16 @@ class Loyalty extends AbstractApiResourceGroup
* *
* Example: * Example:
* ```php * ```php
* use RetailCrm\Api\Enum\PaginationLimit;
* use RetailCrm\Api\Factory\SimpleClientFactory; * use RetailCrm\Api\Factory\SimpleClientFactory;
* use RetailCrm\Api\Interfaces\ApiExceptionInterface; * use RetailCrm\Api\Interfaces\ApiExceptionInterface;
* use RetailCrm\Api\Model\Filter\Loyalty\LoyaltyAccountBonusOperationsApiFilterType; * use RetailCrm\Api\Model\Filter\Loyalty\LoyaltyBonusOperationsApiFilterType;
* use RetailCrm\Api\Model\Request\Loyalty\LoyaltyBonusOperationsRequest; * use RetailCrm\Api\Model\Request\Loyalty\AllBonusOperationsRequest;
* *
* $client = SimpleClientFactory::createClient('https://test.retailcrm.pro', 'apiKey'); * $client = SimpleClientFactory::createClient('https://test.retailcrm.pro', 'apiKey');
* *
* $request = new AllBonusOperationsRequest(); * $request = new AllBonusOperationsRequest();
* $request->limit = 10; * $request->limit = PaginationLimit::LIMIT_20;
* $request->cursor = '12345'; * $request->cursor = '12345';
* $request->filter = new LoyaltyBonusOperationsApiFilterType([1, 2, 3]); * $request->filter = new LoyaltyBonusOperationsApiFilterType([1, 2, 3]);
* *