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

Merge pull request #9 from gridnevalex/add_workTime_to_store_model

Add workTime to Store model
This commit is contained in:
Kruglov Kirill 2020-11-06 11:41:14 +03:00 committed by GitHub
commit 6690847656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}