added type var to Product and ProductBatchModel
This commit is contained in:
parent
fe18dce66a
commit
2310b3b825
23
src/Enum/Payments/PaymentObjectType.php
Normal file
23
src/Enum/Payments/PaymentObjectType.php
Normal 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';
|
||||||
|
}
|
22
src/Enum/Product/ProductType.php
Normal file
22
src/Enum/Product/ProductType.php
Normal 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';
|
||||||
|
}
|
@ -187,4 +187,12 @@ class Product
|
|||||||
* @JMS\SerializedName("updatedAt")
|
* @JMS\SerializedName("updatedAt")
|
||||||
*/
|
*/
|
||||||
public $updatedAt;
|
public $updatedAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @JMS\Type("string")
|
||||||
|
* @JMS\SerializedName("type")
|
||||||
|
*/
|
||||||
|
public $type;
|
||||||
}
|
}
|
||||||
|
@ -130,4 +130,12 @@ abstract class ProductBatchBase
|
|||||||
* @JMS\SerializedName("catalogId")
|
* @JMS\SerializedName("catalogId")
|
||||||
*/
|
*/
|
||||||
public $catalogId;
|
public $catalogId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @JMS\Type("string")
|
||||||
|
* @JMS\SerializedName("type")
|
||||||
|
*/
|
||||||
|
public $type;
|
||||||
}
|
}
|
||||||
|
@ -646,6 +646,7 @@ class Store extends AbstractApiResourceGroup
|
|||||||
* $productInput->popular = true;
|
* $productInput->popular = true;
|
||||||
* $productInput->recommended = true;
|
* $productInput->recommended = true;
|
||||||
* $productInput->stock = true;
|
* $productInput->stock = true;
|
||||||
|
* $productInput->type = 'product';
|
||||||
* $productEditGroupInput = new ProductEditGroupInput();
|
* $productEditGroupInput = new ProductEditGroupInput();
|
||||||
* $productEditGroupInput->externalId = 'testExternalId';
|
* $productEditGroupInput->externalId = 'testExternalId';
|
||||||
* $productEditGroupInput->id = 10;
|
* $productEditGroupInput->id = 10;
|
||||||
|
@ -375,6 +375,7 @@ EOF;
|
|||||||
"maxPrice": 624,
|
"maxPrice": 624,
|
||||||
"id": 828272,
|
"id": 828272,
|
||||||
"article": "38311",
|
"article": "38311",
|
||||||
|
"type": "product",
|
||||||
"name": "Test Product",
|
"name": "Test Product",
|
||||||
"url": "https://example.com",
|
"url": "https://example.com",
|
||||||
"imageUrl": "https://example.com/image.jpg",
|
"imageUrl": "https://example.com/image.jpg",
|
||||||
@ -699,6 +700,7 @@ EOF;
|
|||||||
$productInput->popular = true;
|
$productInput->popular = true;
|
||||||
$productInput->recommended = true;
|
$productInput->recommended = true;
|
||||||
$productInput->stock = true;
|
$productInput->stock = true;
|
||||||
|
$productInput->type = 'product';
|
||||||
|
|
||||||
$productEditGroupInput = new ProductEditGroupInput();
|
$productEditGroupInput = new ProductEditGroupInput();
|
||||||
$productEditGroupInput->id = 9717;
|
$productEditGroupInput->id = 9717;
|
||||||
|
Loading…
Reference in New Issue
Block a user