2019-12-26 17:47:33 +03:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace RetailCrm\DeliveryModuleBundle\Model;
|
|
|
|
|
|
2022-08-01 10:32:51 +03:00
|
|
|
|
use DateTime;
|
2019-12-26 17:47:33 +03:00
|
|
|
|
use JMS\Serializer\Annotation as Serializer;
|
|
|
|
|
|
|
|
|
|
class RequestCalculate
|
|
|
|
|
{
|
|
|
|
|
use Traits\ExtraDataTrait;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Адрес отгрузки.
|
|
|
|
|
*
|
2021-05-18 09:23:45 +03:00
|
|
|
|
* @var DeliveryAddress
|
2019-12-26 17:47:33 +03:00
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("shipmentAddress")
|
|
|
|
|
* @Serializer\Type("RetailCrm\DeliveryModuleBundle\Model\DeliveryAddress")
|
|
|
|
|
*/
|
|
|
|
|
public $shipmentAddress;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Адрес доставки.
|
|
|
|
|
*
|
2022-08-01 10:32:51 +03:00
|
|
|
|
* @var DeliveryAddress
|
2019-12-26 17:47:33 +03:00
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("deliveryAddress")
|
|
|
|
|
* @Serializer\Type("RetailCrm\DeliveryModuleBundle\Model\DeliveryAddress")
|
|
|
|
|
*/
|
|
|
|
|
public $deliveryAddress;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Набор упаковок.
|
|
|
|
|
*
|
2021-05-18 09:23:45 +03:00
|
|
|
|
* @var Package[]
|
2019-12-26 17:47:33 +03:00
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("packages")
|
|
|
|
|
* @Serializer\Type("array<RetailCrm\DeliveryModuleBundle\Model\Package>")
|
|
|
|
|
*/
|
|
|
|
|
public $packages;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Объявленная стоимость.
|
|
|
|
|
*
|
|
|
|
|
* @var float
|
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("declaredValue")
|
|
|
|
|
* @Serializer\Type("float")
|
|
|
|
|
*/
|
|
|
|
|
public $declaredValue;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Наложенный платеж.
|
|
|
|
|
*
|
|
|
|
|
* @var float
|
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("cod")
|
|
|
|
|
* @Serializer\Type("float")
|
|
|
|
|
*/
|
|
|
|
|
public $cod;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Плательщик за доставку.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("payerType")
|
|
|
|
|
* @Serializer\Type("string")
|
|
|
|
|
*/
|
|
|
|
|
public $payerType;
|
|
|
|
|
|
2022-08-01 10:32:51 +03:00
|
|
|
|
/**
|
|
|
|
|
* Дата отгрузки.
|
|
|
|
|
*
|
2022-08-01 12:56:48 +03:00
|
|
|
|
* @var \DateTime
|
2022-08-01 10:32:51 +03:00
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("shipmentDate")
|
|
|
|
|
* @Serializer\Type("DateTime<'Y-m-d'>")
|
|
|
|
|
*/
|
|
|
|
|
public $shipmentDate;
|
|
|
|
|
|
2019-12-26 17:47:33 +03:00
|
|
|
|
/**
|
|
|
|
|
* Дата доставки.
|
|
|
|
|
*
|
2022-08-01 12:56:48 +03:00
|
|
|
|
* @var \DateTime
|
2019-12-26 17:47:33 +03:00
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("deliveryDate")
|
|
|
|
|
* @Serializer\Type("DateTime<'Y-m-d'>")
|
|
|
|
|
*/
|
|
|
|
|
public $deliveryDate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Время доставки.
|
|
|
|
|
*
|
|
|
|
|
* @var DeliveryTime
|
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("deliveryTime")
|
|
|
|
|
* @Serializer\Type("RetailCrm\DeliveryModuleBundle\Model\DeliveryTime")
|
|
|
|
|
*/
|
|
|
|
|
public $deliveryTime;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Валюта.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("currency")
|
|
|
|
|
* @Serializer\Type("string")
|
|
|
|
|
*/
|
|
|
|
|
public $currency;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Дополнительные данные доставки.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("extraData")
|
|
|
|
|
* @Serializer\Type("array")
|
|
|
|
|
*/
|
|
|
|
|
public $extraData;
|
2022-08-01 10:32:51 +03:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Склад отгрузки.
|
|
|
|
|
*
|
|
|
|
|
* @var BaseStore
|
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"request", "calculate"})
|
|
|
|
|
* @Serializer\SerializedName("store")
|
|
|
|
|
* @Serializer\Type("RetailCrm\DeliveryModuleBundle\Model\BaseStore")
|
|
|
|
|
*/
|
|
|
|
|
public $store;
|
2019-12-26 17:47:33 +03:00
|
|
|
|
}
|