1
0
mirror of synced 2024-11-24 06:16:27 +03:00

Add new field in model for callback of calculate delivery (#145)

This commit is contained in:
RenCurs 2022-03-31 14:48:34 +03:00 committed by GitHub
parent c6950a2103
commit 0b6cbb6794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 17 deletions

View 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;
}

View File

@ -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
*

View File

@ -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
*