1
0
mirror of synced 2024-11-24 22:36:06 +03:00

correct DTO for settings statuses list in the delivery module configuration

This commit is contained in:
Pavel 2021-07-15 10:35:33 +03:00
parent 7040640b57
commit d0ebd84cc8
2 changed files with 39 additions and 2 deletions

View File

@ -68,9 +68,9 @@ class Settings
public $shipmentPoints;
/**
* @var \RetailCrm\Api\Model\Entity\Integration\Delivery\Status[]
* @var \RetailCrm\Api\Model\Entity\Integration\Delivery\SettingsStatus[]
*
* @JMS\Type("array<RetailCrm\Api\Model\Entity\Integration\Delivery\Status>")
* @JMS\Type("array<RetailCrm\Api\Model\Entity\Integration\Delivery\SettingsStatus>")
* @JMS\SerializedName("statuses")
*/
public $statuses;

View File

@ -0,0 +1,37 @@
<?php
/**
* PHP 7.3
*
* @category SettingsStatus
* @package RetailCrm\Api\Model\Entity\Integration\Delivery
*/
namespace RetailCrm\Api\Model\Entity\Integration\Delivery;
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
/**
* Class SettingsStatus
*
* @category SettingsStatus
* @package RetailCrm\Api\Model\Entity\Integration\Delivery
*/
class SettingsStatus
{
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("code")
*/
public $code;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("trackingStatusCode")
*/
public $trackingStatusCode;
}