Add new field in model for callback of calculate delivery (#145)
This commit is contained in:
parent
c6950a2103
commit
0b6cbb6794
37
src/Model/Callback/Entity/Delivery/BaseStore.php
Normal file
37
src/Model/Callback/Entity/Delivery/BaseStore.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PHP version 7.3
|
||||
*
|
||||
* @category BaseStore
|
||||
* @package RetailCrm\Api\Model\Callback\Entity\Delivery
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Api\Model\Callback\Entity\Delivery;
|
||||
|
||||
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
|
||||
|
||||
/**
|
||||
* Class BaseStore
|
||||
*
|
||||
* @category BaseStore
|
||||
* @package RetailCrm\Api\Model\Callback\Entity\Delivery
|
||||
*/
|
||||
class BaseStore
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("code")
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("name")
|
||||
*/
|
||||
public $name;
|
||||
}
|
@ -52,6 +52,14 @@ class RequestCalculate
|
||||
*/
|
||||
public $shipmentAddress;
|
||||
|
||||
/**
|
||||
* @var \RetailCrm\Api\Model\Callback\Entity\Delivery\BaseStore
|
||||
*
|
||||
* @JMS\Type("RetailCrm\Api\Model\Callback\Entity\Delivery\BaseStore")
|
||||
* @JMS\SerializedName("store")
|
||||
*/
|
||||
public $store;
|
||||
|
||||
/**
|
||||
* @var \RetailCrm\Api\Model\Callback\Entity\Delivery\DeliveryAddress
|
||||
*
|
||||
|
@ -17,24 +17,8 @@ use RetailCrm\Api\Component\Serializer\Annotation as JMS;
|
||||
* @category Store
|
||||
* @package RetailCrm\Api\Model\Callback\Entity\Delivery
|
||||
*/
|
||||
class Store
|
||||
class Store extends BaseStore
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("code")
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("name")
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var \RetailCrm\Api\Model\Callback\Entity\Delivery\SerializedStoreWeekOpeningHours
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user