1
0
mirror of synced 2025-01-09 18:47:12 +03:00
DeliveryModuleBundle/Model/Request/RequestCalculate.php

122 lines
2.9 KiB
PHP
Raw Normal View History

2019-12-26 17:47:33 +03:00
<?php
namespace RetailCrm\DeliveryModuleBundle\Model;
use Intaro\CRMBundle\Entity\Model\DeliveryTime;
use JMS\Serializer\Annotation as Serializer;
class RequestCalculate
{
use Traits\ExtraDataTrait;
/**
* Адрес отгрузки.
*
* @var RetailCrm\DeliveryModuleBundle\Model\DeliveryAddress
*
* @Serializer\Groups({"request", "calculate"})
* @Serializer\SerializedName("shipmentAddress")
* @Serializer\Type("RetailCrm\DeliveryModuleBundle\Model\DeliveryAddress")
*/
public $shipmentAddress;
/**
* Адрес доставки.
*
* @var string
*
* @Serializer\Groups({"request", "calculate"})
* @Serializer\SerializedName("deliveryAddress")
* @Serializer\Type("RetailCrm\DeliveryModuleBundle\Model\DeliveryAddress")
*/
public $deliveryAddress;
/**
* Набор упаковок.
*
* @var Intaro\CRMDeliveryBundle\Form\Model\Package[]
*
* @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;
/**
* Дата доставки.
*
* @var \DateTime
*
* @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;
}