File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -629,6 +629,7 @@ public function productBatchEdit(ProductBatchEditRequest $request): ProductBatch
629
629
* use RetailCrm\Api\Model\Request\Store\ProductsBatchCreateRequest;
630
630
* use RetailCrm\Api\Factory\SimpleClientFactory;
631
631
* use RetailCrm\Api\Interfaces\ApiExceptionInterface;
632
+ * use RetailCrm\Api\Enum\Product\ProductType;
632
633
*
633
634
* $client = SimpleClientFactory::createClient('https://test.retailcrm.pro', 'apiKey');
634
635
*
@@ -646,7 +647,7 @@ public function productBatchEdit(ProductBatchEditRequest $request): ProductBatch
646
647
* $productInput->popular = true;
647
648
* $productInput->recommended = true;
648
649
* $productInput->stock = true;
649
- * $productInput->type = 'product' ;
650
+ * $productInput->type = ProductType::PRODUCT ;
650
651
* $productEditGroupInput = new ProductEditGroupInput();
651
652
* $productEditGroupInput->externalId = 'testExternalId';
652
653
* $productEditGroupInput->id = 10;
Original file line number Diff line number Diff line change 11
11
12
12
use RetailCrm \Api \Component \Transformer \DateTimeTransformer ;
13
13
use RetailCrm \Api \Enum \NumericBoolean ;
14
+ use RetailCrm \Api \Enum \Product \ProductType ;
14
15
use RetailCrm \Api \Enum \RequestMethod ;
15
16
use RetailCrm \Api \Model \Entity \Store \Inventory ;
16
17
use RetailCrm \Api \Model \Entity \Store \Offer ;
@@ -700,7 +701,7 @@ public function testProductBatchCreate(): void
700
701
$ productInput ->popular = true ;
701
702
$ productInput ->recommended = true ;
702
703
$ productInput ->stock = true ;
703
- $ productInput ->type = ' product ' ;
704
+ $ productInput ->type = ProductType:: PRODUCT ;
704
705
705
706
$ productEditGroupInput = new ProductEditGroupInput ();
706
707
$ productEditGroupInput ->id = 9717 ;
You can’t perform that action at this time.
0 commit comments