1
0
mirror of synced 2025-01-25 01:31:41 +03:00

add workTime to Store model

This commit is contained in:
gridnev 2020-11-06 11:35:47 +03:00
parent 92a0e575d4
commit fb844786f1
3 changed files with 124 additions and 0 deletions

View File

@ -23,4 +23,13 @@ class Store
* @Serializer\Type("string")
*/
public $name;
/**
* @var StoreWorkTime
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("workTime")
* @Serializer\Type("RetailCrm\DeliveryModuleBundle\Model\StoreWorkTime")
*/
public $workTime;
}

71
Model/StoreWorkTime.php Normal file
View File

@ -0,0 +1,71 @@
<?php
namespace RetailCrm\DeliveryModuleBundle\Model;
use JMS\Serializer\Annotation as Serializer;
class StoreWorkTime
{
/**
* @var array<StoreWorkTimeItem>
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("mo")
* @Serializer\Type("array<RetailCrm\DeliveryModuleBundle\Model\StoreWorkTimeItem>")
*/
public $monday;
/**
* @var array<StoreWorkTimeItem>
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("tu")
* @Serializer\Type("array<RetailCrm\DeliveryModuleBundle\Model\StoreWorkTimeItem>")
*/
public $tuesday;
/**
* @var array<StoreWorkTimeItem>
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("we")
* @Serializer\Type("array<RetailCrm\DeliveryModuleBundle\Model\StoreWorkTimeItem>")
*/
public $wednesday;
/**
* @var array<StoreWorkTimeItem>
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("th")
* @Serializer\Type("array<RetailCrm\DeliveryModuleBundle\Model\StoreWorkTimeItem>")
*/
public $thursday;
/**
* @var array<StoreWorkTimeItem>
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("fr")
* @Serializer\Type("array<RetailCrm\DeliveryModuleBundle\Model\StoreWorkTimeItem>")
*/
public $friday;
/**
* @var array<StoreWorkTimeItem>
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("sa")
* @Serializer\Type("array<RetailCrm\DeliveryModuleBundle\Model\StoreWorkTimeItem>")
*/
public $saturday;
/**
* @var array<StoreWorkTimeItem>
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("su")
* @Serializer\Type("array<RetailCrm\DeliveryModuleBundle\Model\StoreWorkTimeItem>")
*/
public $sunday;
}

View File

@ -0,0 +1,44 @@
<?php
namespace RetailCrm\DeliveryModuleBundle\Model;
use JMS\Serializer\Annotation as Serializer;
class StoreWorkTimeItem
{
/**
* @var string
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("startTime")
* @Serializer\Type("string")
*/
public $startTime;
/**
* @var string
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("endTime")
* @Serializer\Type("string")
*/
public $endTime;
/**
* @var string
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("lunchStartTime")
* @Serializer\Type("string")
*/
public $lunchStartTime;
/**
* @var string
*
* @Serializer\Groups({"request"})
* @Serializer\SerializedName("lunchEndTime")
* @Serializer\Type("string")
*/
public $lunchEndTime;
}