1
0
mirror of synced 2024-11-25 06:46:07 +03:00

correct DTO for settings statuses list in the delivery module configuration

This commit is contained in:
Alex Lushpai 2021-07-15 12:36:15 +03:00 committed by GitHub
commit 1bdf8be34c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 2 deletions

View File

@ -68,9 +68,9 @@ class Settings
public $shipmentPoints; 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") * @JMS\SerializedName("statuses")
*/ */
public $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;
}