1
0
mirror of synced 2024-11-24 22:36:06 +03:00

type fix in Store and StoreTest

This commit is contained in:
angelina pehova 2024-01-18 10:06:52 +03:00
parent 2310b3b825
commit 37e9ca0110
2 changed files with 4 additions and 2 deletions

View File

@ -629,6 +629,7 @@ class Store extends AbstractApiResourceGroup
* use RetailCrm\Api\Model\Request\Store\ProductsBatchCreateRequest;
* use RetailCrm\Api\Factory\SimpleClientFactory;
* use RetailCrm\Api\Interfaces\ApiExceptionInterface;
* use RetailCrm\Api\Enum\Product\ProductType;
*
* $client = SimpleClientFactory::createClient('https://test.retailcrm.pro', 'apiKey');
*
@ -646,7 +647,7 @@ class Store extends AbstractApiResourceGroup
* $productInput->popular = true;
* $productInput->recommended = true;
* $productInput->stock = true;
* $productInput->type = 'product';
* $productInput->type = ProductType::PRODUCT;
* $productEditGroupInput = new ProductEditGroupInput();
* $productEditGroupInput->externalId = 'testExternalId';
* $productEditGroupInput->id = 10;

View File

@ -11,6 +11,7 @@ namespace RetailCrm\Tests\ResourceGroup;
use RetailCrm\Api\Component\Transformer\DateTimeTransformer;
use RetailCrm\Api\Enum\NumericBoolean;
use RetailCrm\Api\Enum\Product\ProductType;
use RetailCrm\Api\Enum\RequestMethod;
use RetailCrm\Api\Model\Entity\Store\Inventory;
use RetailCrm\Api\Model\Entity\Store\Offer;
@ -700,7 +701,7 @@ EOF;
$productInput->popular = true;
$productInput->recommended = true;
$productInput->stock = true;
$productInput->type = 'product';
$productInput->type = ProductType::PRODUCT;
$productEditGroupInput = new ProductEditGroupInput();
$productEditGroupInput->id = 9717;