From 72440ce83de58094f0fc0a6fd223951bd0ea1a1b Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Tue, 31 Mar 2026 14:06:33 +0200 Subject: [PATCH 1/2] fix: :fire: move claim customer association into server side --- src/Models/Claim.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Models/Claim.php b/src/Models/Claim.php index 687f706..244a65c 100644 --- a/src/Models/Claim.php +++ b/src/Models/Claim.php @@ -2,7 +2,6 @@ namespace LDC\LDCCRM\Models; -use LDC\LDCCRM\CrmApiV4; use LDC\LDCCRM\Enums\ApiStatus; use LDC\LDCCRM\Utils; @@ -31,7 +30,6 @@ abstract class Claim extends ClientModel 'message' => 'required|string|min:3', 'brand_id' => 'required|int|min:1', 'subject_id' => 'required|int|min:1', - 'hashcode' => 'sometimes|nullable|string|size:36', ]; /** @@ -79,12 +77,6 @@ abstract class Claim extends ClientModel 'file', ); - // Add customer relation if exist. - $crmCustomer = (new CrmApiV4())->getCustomer($email); - if (!is_null($crmCustomer)) { - $params['hashcode'] = $crmCustomer->hashcode; - } - // Validate all data. foreach ($params as $key => $value) { self::validateValue($key, $value); @@ -94,6 +86,7 @@ abstract class Claim extends ClientModel $response = static::$apiInterface->call( Utils::getResquest('apiV4.claim.store', [], $params) ); + return $response->status->equals(ApiStatus::OK); } } From f09825531bb86c5df3b4a443620534eeda3578b4 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Tue, 31 Mar 2026 14:08:19 +0200 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=F0=9F=94=96=20release=20v4.1.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ composer.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f05dec5..a8167e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ### All notable changes to `CRM CLient V4` will be documented in this file. +# version 4.1.6 +- Changed: move claim customer association into server side + # version 4.1.4 - Changed: update claim customer relation with hashcode diff --git a/composer.json b/composer.json index 981da81..ff9b8c5 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "ldc/ldccrmv4client", - "version": "4.1.5", + "version": "4.1.6", "type": "library", "description": "LDC CRM Client V4", "license": "MIT",