From 0b6ed08d491f1f01bb599f6369654b543f2b002e Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Mon, 8 Nov 2021 11:38:26 +0300 Subject: [PATCH] add `sites[][isDemo]` field for `/api/v5/reference/sites` method --- src/Model/Entity/References/Site.php | 8 ++++++++ tests/src/ResourceGroup/ReferencesTest.php | 24 +++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/Model/Entity/References/Site.php b/src/Model/Entity/References/Site.php index 634b1df..8c5fb3d 100644 --- a/src/Model/Entity/References/Site.php +++ b/src/Model/Entity/References/Site.php @@ -171,4 +171,12 @@ class Site * @JMS\SerializedName("isCatalogMainSite") */ public $isCatalogMainSite; + + /** + * @var bool + * + * @JMS\Type("bool") + * @JMS\SerializedName("isDemo") + */ + public $isDemo; } diff --git a/tests/src/ResourceGroup/ReferencesTest.php b/tests/src/ResourceGroup/ReferencesTest.php index 3315bdf..e67d24e 100644 --- a/tests/src/ResourceGroup/ReferencesTest.php +++ b/tests/src/ResourceGroup/ReferencesTest.php @@ -6699,7 +6699,29 @@ EOF; "senderEmail": "test@example.com", "senderName": "test", "catalogId": "catalog", - "isCatalogMainSite": true + "isCatalogMainSite": true, + "isDemo": false + }, + "test-ru": { + "catalogId": "81", + "isCatalogMainSite": true, + "isDemo": true, + "name": "Test Shop", + "url": "https://example.com/2", + "code": "test-ru", + "defaultForCrm": false, + "ymlUrl": "https://example.com/2/test_catalog.xml", + "loadFromYml": false, + "catalogUpdatedAt": "2021-02-24 12:30:46", + "catalogLoadingAt": "2021-04-07 15:14:53", + "contragent": { + "contragentType": "enterpreneur", + "legalName": "ИП Бороздина Татьяна Александровна", + "INN": "773719480154", + "code": "Vog_Gallery", + "countryIso": "RU" + }, + "countryIso": "RU" } } }