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

Merge pull request #164 from AndreyMuriy/master

Add itemDeclaredValues field to deliveryData
This commit is contained in:
Andrey 2023-04-27 16:36:04 +03:00 committed by GitHub
commit bc820d0a69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 0 deletions

View File

@ -671,4 +671,12 @@ class DeliveryData
* @JMS\SerializedName("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;
}