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

added type var to Product and ProductBatchModel

This commit is contained in:
angelina pehova 2024-01-16 11:14:57 +03:00
parent fe18dce66a
commit 2310b3b825
6 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?php
/**
* PHP 7.3
*
* @category PaymentInvoiceType
* @package RetailCrm\Api\Enum\Payments
*/
namespace RetailCrm\Api\Enum\Payments;
/**
* Class PaymentInvoiceType
*
* @category PaymentInvoiceType
* @package RetailCrm\Api\Enum\Payments
*/
final class PaymentObjectType
{
public const COMMODITY = 'commodity';
public const SERVICE = 'service';
public const PAYMENT = 'payment';
}

View File

@ -0,0 +1,22 @@
<?php
/**
* PHP version 7.3
*
* @category CallEventType
* @package RetailCrm\Api\Enum\Telephony
*/
namespace RetailCrm\Api\Enum\Product;
/**
* Class CallEventType
*
* @category CallEventType
* @package RetailCrm\Api\Enum\Telephony
*/
final class ProductType
{
public const PRODUCT = 'product';
public const SERVICE = 'service';
}

View File

@ -187,4 +187,12 @@ class Product
* @JMS\SerializedName("updatedAt")
*/
public $updatedAt;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("type")
*/
public $type;
}

View File

@ -130,4 +130,12 @@ abstract class ProductBatchBase
* @JMS\SerializedName("catalogId")
*/
public $catalogId;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("type")
*/
public $type;
}

View File

@ -646,6 +646,7 @@ class Store extends AbstractApiResourceGroup
* $productInput->popular = true;
* $productInput->recommended = true;
* $productInput->stock = true;
* $productInput->type = 'product';
* $productEditGroupInput = new ProductEditGroupInput();
* $productEditGroupInput->externalId = 'testExternalId';
* $productEditGroupInput->id = 10;

View File

@ -375,6 +375,7 @@ EOF;
"maxPrice": 624,
"id": 828272,
"article": "38311",
"type": "product",
"name": "Test Product",
"url": "https://example.com",
"imageUrl": "https://example.com/image.jpg",
@ -699,6 +700,7 @@ EOF;
$productInput->popular = true;
$productInput->recommended = true;
$productInput->stock = true;
$productInput->type = 'product';
$productEditGroupInput = new ProductEditGroupInput();
$productEditGroupInput->id = 9717;