1
0
mirror of synced 2024-11-22 05:16:07 +03:00

Add itemDeclaredValues field to deliveryData

This commit is contained in:
Andrey Muriy 2023-04-27 16:05:24 +03:00
parent 5e2c947f27
commit 12d8381b80
3 changed files with 62 additions and 0 deletions

View File

@ -671,4 +671,12 @@ class DeliveryData
* @JMS\SerializedName("service") * @JMS\SerializedName("service")
*/ */
public $service; public $service;
/**
* @var ItemDeclaredValue[]
*
* @JMS\Type("array<RetailCrm\Api\Model\Entity\Orders\Delivery\ItemDeclaredValue>")
* @JMS\SerializedName("itemDeclaredValues")
*/
public $itemDeclaredValues;
} }

View File

@ -0,0 +1,31 @@
<?php
/**
* PHP version 7.3
*
* @category DeliveryData
* @package RetailCrm\Api\Model\Entity\Orders\Delivery
*/
namespace RetailCrm\Api\Model\Entity\Orders\Delivery;
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
class ItemDeclaredValue
{
/**
* @var ItemDeclaredValueProduct
*
* @JMS\Type("RetailCrm\Api\Model\Entity\Orders\Delivery\ItemDeclaredValueProduct")
* @JMS\SerializedName("orderProduct")
*/
public $orderProduct;
/**
* @var float
*
* @JMS\Type("float")
* @JMS\SerializedName("value")
*/
public $value;
}

View File

@ -0,0 +1,23 @@
<?php
/**
* PHP version 7.3
*
* @category DeliveryData
* @package RetailCrm\Api\Model\Entity\Orders\Delivery
*/
namespace RetailCrm\Api\Model\Entity\Orders\Delivery;
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
class ItemDeclaredValueProduct
{
/**
* @var int
*
* @JMS\Type("int")
* @JMS\SerializedName("id")
*/
public $id;
}