Merge pull request #9 from gridnevalex/add_workTime_to_store_model
Add workTime to Store model
This commit is contained in:
commit
6690847656
@ -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
71
Model/StoreWorkTime.php
Normal 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;
|
||||
}
|
44
Model/StoreWorkTimeItem.php
Normal file
44
Model/StoreWorkTimeItem.php
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user