From c5249d37a14d125dfa85d49cea495da4efb79490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 21 Oct 2021 17:11:22 +0200 Subject: [PATCH 1/2] Fix mail arcadia V2 --- src/Models/ArcadiaMailDefault.php | 2 +- src/Models/ArcadiaMailGame.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Models/ArcadiaMailDefault.php b/src/Models/ArcadiaMailDefault.php index 1992239..b993366 100644 --- a/src/Models/ArcadiaMailDefault.php +++ b/src/Models/ArcadiaMailDefault.php @@ -353,7 +353,7 @@ class ArcadiaMailDefault extends CrmClientModel { $this->validateAllValues(); static::setUpApiInterface(); // set apiInterface - $request = Utils::getResquest('apiV2.arcadia.outgoingMailDefault', $this->jsonSerialize()); + $request = Utils::getResquest('apiV2.arcadia.outgoingMailDefault', [], $this->jsonSerialize()); $response = static::$apiInterface->call($request); if ($status = $response->status->equals(ApiStatus::OK())) { $this->updatedValues = []; diff --git a/src/Models/ArcadiaMailGame.php b/src/Models/ArcadiaMailGame.php index a2fbd0f..ad6b4f6 100644 --- a/src/Models/ArcadiaMailGame.php +++ b/src/Models/ArcadiaMailGame.php @@ -303,7 +303,7 @@ class ArcadiaMailGame extends CrmClientModel { $this->validateAllValues(); static::setUpApiInterface(); // set apiInterface - $request = Utils::getResquest('apiV2.arcadia.outgoingMailGame', $this->jsonSerialize()); + $request = Utils::getResquest('apiV2.arcadia.outgoingMailGame', [], $this->jsonSerialize()); $response = static::$apiInterface->call($request); if ($status = $response->status->equals(ApiStatus::OK())) { $this->updatedValues = []; From fa22cdf03b0138580612cd1dc56ec5eccbcf0326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 21 Oct 2021 17:24:02 +0200 Subject: [PATCH 2/2] bump version to 2.2.2 and update changelog --- changelog.md | 5 ++++- composer.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index cf19ace..6308f01 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,9 @@ # Changelog -All notable changes to `CRM CLient V2` will be documented in this file. +#All notable changes to `CRM CLient V2` will be documented in this file. + +# version 2.2.2 +- Fixed Arcadia mail where sending parameters as query instead of Data # version 2.2.1 - Fixed fill methods on models to handle all enums + arrays diff --git a/composer.json b/composer.json index 6be3108..9369579 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "type": "library", "description": "LDC CRM Client V2", "license": "MIT", - "version": "2.2.1", + "version": "2.2.2", "authors": [ { "name": "Jérémy Munsch",