2019-12-26 17:47:33 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace RetailCrm\DeliveryModuleBundle\Model;
|
|
|
|
|
|
|
|
use JMS\Serializer\Annotation as Serializer;
|
|
|
|
|
|
|
|
class ResponseSave
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Идентификатор доставки в службе доставки
|
2020-08-18 17:39:55 +03:00
|
|
|
*
|
2019-12-26 17:47:33 +03:00
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @Serializer\Groups({"response"})
|
|
|
|
* @Serializer\SerializedName("deliveryId")
|
|
|
|
* @Serializer\Type("string")
|
|
|
|
*/
|
|
|
|
public $deliveryId;
|
|
|
|
|
2020-08-18 17:39:55 +03:00
|
|
|
/**
|
2019-12-26 17:47:33 +03:00
|
|
|
* Трек номер
|
2020-08-18 17:39:55 +03:00
|
|
|
*
|
2019-12-26 17:47:33 +03:00
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @Serializer\Groups({"response"})
|
|
|
|
* @Serializer\SerializedName("trackNumber")
|
|
|
|
* @Serializer\Type("string")
|
|
|
|
*/
|
|
|
|
public $trackNumber;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Стоимость доставки
|
2020-08-18 17:39:55 +03:00
|
|
|
*
|
2019-12-26 17:47:33 +03:00
|
|
|
* @var float
|
|
|
|
*
|
|
|
|
* @Serializer\Groups({"response"})
|
|
|
|
* @Serializer\SerializedName("cost")
|
|
|
|
* @Serializer\Type("float")
|
|
|
|
*/
|
|
|
|
public $cost;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Код статуса доставки
|
2020-08-18 17:39:55 +03:00
|
|
|
*
|
2019-12-26 17:47:33 +03:00
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @Serializer\Groups({"response"})
|
|
|
|
* @Serializer\SerializedName("status")
|
|
|
|
* @Serializer\Type("string")
|
|
|
|
*/
|
|
|
|
public $status;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Дополнительные данные доставки
|
2020-08-18 17:39:55 +03:00
|
|
|
*
|
2019-12-26 17:47:33 +03:00
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @Serializer\Groups({"response"})
|
|
|
|
* @Serializer\SerializedName("extraData")
|
|
|
|
* @Serializer\Type("array")
|
|
|
|
*/
|
|
|
|
public $extraData;
|
|
|
|
|
|
|
|
public $additionalData;
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->extraData = [];
|
|
|
|
$this->additionalData = [];
|
|
|
|
}
|
|
|
|
}
|