diff --git a/Model/BaseStore.php b/Model/BaseStore.php new file mode 100644 index 0000000..509a924 --- /dev/null +++ b/Model/BaseStore.php @@ -0,0 +1,26 @@ +") + */ + public $shipmentDate; + /** * Дата доставки. * - * @var \DateTime + * @var DateTime * * @Serializer\Groups({"request", "calculate"}) * @Serializer\SerializedName("deliveryDate") @@ -117,4 +129,16 @@ class RequestCalculate * @Serializer\Type("array") */ public $extraData; + + + /** + * Склад отгрузки. + * + * @var BaseStore + * + * @Serializer\Groups({"request", "calculate"}) + * @Serializer\SerializedName("store") + * @Serializer\Type("RetailCrm\DeliveryModuleBundle\Model\BaseStore") + */ + public $store; } diff --git a/Model/Store.php b/Model/Store.php index 62441db..d4c11d0 100644 --- a/Model/Store.php +++ b/Model/Store.php @@ -4,26 +4,8 @@ namespace RetailCrm\DeliveryModuleBundle\Model; use JMS\Serializer\Annotation as Serializer; -class Store +class Store extends BaseStore { - /** - * @var string - * - * @Serializer\Groups({"request"}) - * @Serializer\SerializedName("code") - * @Serializer\Type("string") - */ - public $code; - - /** - * @var string - * - * @Serializer\Groups({"request"}) - * @Serializer\SerializedName("name") - * @Serializer\Type("string") - */ - public $name; - /** * @var StoreWorkTime *