From 36524fc85b67457962f85950117755f3ec1462c3 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Tue, 24 May 2022 11:28:08 +0300 Subject: [PATCH] add ordering field to site definition --- src/Model/Entity/References/Site.php | 8 ++++++++ tests/src/ResourceGroup/ReferencesTest.php | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/src/Model/Entity/References/Site.php b/src/Model/Entity/References/Site.php index 8c5fb3d..2669451 100644 --- a/src/Model/Entity/References/Site.php +++ b/src/Model/Entity/References/Site.php @@ -116,6 +116,14 @@ class Site */ public $catalogLoadingAt; + /** + * @var int + * + * @JMS\Type("int") + * @JMS\SerializedName("ordering") + */ + public $ordering; + /** * @var \RetailCrm\Api\Model\Entity\References\LegalEntity * diff --git a/tests/src/ResourceGroup/ReferencesTest.php b/tests/src/ResourceGroup/ReferencesTest.php index e67d24e..1bc3dde 100644 --- a/tests/src/ResourceGroup/ReferencesTest.php +++ b/tests/src/ResourceGroup/ReferencesTest.php @@ -6683,6 +6683,7 @@ EOF; "name": "test", "url": "https://example.com", "code": "test", + "description": "description", "defaultForCrm": false, "ymlUrl": "https://example.com", "loadFromYml": true, @@ -6700,6 +6701,7 @@ EOF; "senderName": "test", "catalogId": "catalog", "isCatalogMainSite": true, + "ordering": 989, "isDemo": false }, "test-ru": { @@ -6707,6 +6709,7 @@ EOF; "isCatalogMainSite": true, "isDemo": true, "name": "Test Shop", + "description": "description", "url": "https://example.com/2", "code": "test-ru", "defaultForCrm": false, @@ -6714,6 +6717,7 @@ EOF; "loadFromYml": false, "catalogUpdatedAt": "2021-02-24 12:30:46", "catalogLoadingAt": "2021-04-07 15:14:53", + "ordering": 990, "contragent": { "contragentType": "enterpreneur", "legalName": "ИП Бороздина Татьяна Александровна",