File tree Expand file tree Collapse file tree 6 files changed +66
-0
lines changed Expand file tree Collapse file tree 6 files changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * PHP 7.3
5
+ *
6
+ * @category PaymentInvoiceType
7
+ * @package RetailCrm\Api\Enum\Payments
8
+ */
9
+
10
+ namespace RetailCrm \Api \Enum \Payments ;
11
+
12
+ /**
13
+ * Class PaymentInvoiceType
14
+ *
15
+ * @category PaymentInvoiceType
16
+ * @package RetailCrm\Api\Enum\Payments
17
+ */
18
+ final class PaymentObjectType
19
+ {
20
+ public const COMMODITY = 'commodity ' ;
21
+ public const SERVICE = 'service ' ;
22
+ public const PAYMENT = 'payment ' ;
23
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * PHP version 7.3
5
+ *
6
+ * @category CallEventType
7
+ * @package RetailCrm\Api\Enum\Telephony
8
+ */
9
+
10
+ namespace RetailCrm \Api \Enum \Product ;
11
+
12
+ /**
13
+ * Class CallEventType
14
+ *
15
+ * @category CallEventType
16
+ * @package RetailCrm\Api\Enum\Telephony
17
+ */
18
+ final class ProductType
19
+ {
20
+ public const PRODUCT = 'product ' ;
21
+ public const SERVICE = 'service ' ;
22
+ }
Original file line number Diff line number Diff line change @@ -187,4 +187,12 @@ class Product
187
187
* @JMS\SerializedName("updatedAt")
188
188
*/
189
189
public $ updatedAt ;
190
+
191
+ /**
192
+ * @var string
193
+ *
194
+ * @JMS\Type("string")
195
+ * @JMS\SerializedName("type")
196
+ */
197
+ public $ type ;
190
198
}
Original file line number Diff line number Diff line change @@ -130,4 +130,12 @@ abstract class ProductBatchBase
130
130
* @JMS\SerializedName("catalogId")
131
131
*/
132
132
public $ catalogId ;
133
+
134
+ /**
135
+ * @var string
136
+ *
137
+ * @JMS\Type("string")
138
+ * @JMS\SerializedName("type")
139
+ */
140
+ public $ type ;
133
141
}
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,6 +647,7 @@ public function productBatchEdit(ProductBatchEditRequest $request): ProductBatch
646
647
* $productInput->popular = true;
647
648
* $productInput->recommended = true;
648
649
* $productInput->stock = true;
650
+ * $productInput->type = ProductType::PRODUCT;
649
651
* $productEditGroupInput = new ProductEditGroupInput();
650
652
* $productEditGroupInput->externalId = 'testExternalId';
651
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 ;
@@ -375,6 +376,7 @@ public function testProducts(): void
375
376
"maxPrice": 624,
376
377
"id": 828272,
377
378
"article": "38311",
379
+ "type": "product",
378
380
"name": "Test Product",
379
381
"url": "https://example.com",
380
382
"imageUrl": "https://example.com/image.jpg",
@@ -699,6 +701,7 @@ public function testProductBatchCreate(): void
699
701
$ productInput ->popular = true ;
700
702
$ productInput ->recommended = true ;
701
703
$ productInput ->stock = true ;
704
+ $ productInput ->type = ProductType::PRODUCT ;
702
705
703
706
$ productEditGroupInput = new ProductEditGroupInput ();
704
707
$ productEditGroupInput ->id = 9717 ;
You can’t perform that action at this time.
0 commit comments