Commit graph

92 commits

Author SHA1 Message Date
Corentin Huet
30830596b1 fix: 🏷️ add Germany to the valid countries 2026-04-09 11:17:23 +02:00
Alexis Gousseau
72440ce83d
fix: 🔥 move claim customer association into server side 2026-03-31 14:06:33 +02:00
Alexis Gousseau
a7be8bbc46
fix: 🐛 update claim customer relation with hashcode 2025-10-07 09:20:31 +02:00
Alexis Gousseau
a7d7436b10
fix: 🚨 resolve phpcs errors 2025-08-28 16:41:48 +02:00
Alexis Gousseau
664dd850a2
fix: 🐛 update claim file validation 2025-08-28 16:41:39 +02:00
Alexis Gousseau
d6d9b9d54c
fix: ✅ add missing client tests for registering a claim 2025-08-26 09:43:27 +02:00
Alexis Gousseau
0ce322ad94
fix: 🐛 force string cast in ctype_digit method 2025-08-07 10:32:58 +02:00
Alexis Gousseau
8b37bc50dd
fix: 🐛 update optionnal answer id parameter when set new single optin for laravel and wordpress 2025-08-06 17:06:00 +02:00
Vincent BRIDIER
2746ed89dc Merge branch 'add-api-route' into 'develop'
feat: ✨ add new api route for sending new claim

See merge request ldc-web/projets/crm-client!9
2025-07-25 12:44:10 +00:00
Alexis Gousseau
833d024d99
feat: ✨ add optionnal answer id parameter when set new single optin 2025-07-25 10:16:40 +02:00
Alexis Gousseau
b6af059d72
feat: ✨ add new api route for sending new claim 2025-07-24 17:22:51 +02:00
Noah Lancien
392c3d77f2 fix: remove toggle optin in customer activation 2025-02-26 17:02:25 +01:00
Noah Lancien
b02282e8a0 fix: save customer optin after it changes in WPCrm 2024-10-22 11:10:07 +02:00
Vincent BRIDIER
d43da6d6a9
fix: LogLevel Enum type 2024-10-18 14:52:25 +02:00
Vincent BRIDIER
29a93b1f92
feat: Clean bump to 4.0.6 2024-10-15 14:22:42 +02:00
Vincent BRIDIER
f7e9ab78a2
fix: Remvove Laravel deps call + add PHP>8.1 compliance 2024-10-15 14:16:43 +02:00
Alexis Gousseau
99212285a4 chore: ⬆️ bump to v4.0.4 2024-10-14 16:20:32 +02:00
Alexis Gousseau
b0eb36daed chore: ⬆️ bump to v4.0.3 2024-10-10 14:49:13 +02:00
Alexis Gousseau
23d86024ef fix: 🏷️ add Netherlands to the valid countries 2024-09-09 15:21:41 +02:00
Jérémy Munsch
9c3b85cc4a
Add test V2 2023-10-05 13:16:07 +02:00
Jérémy Munsch
23fdfca0be
Tests OK 2023-10-05 12:16:43 +02:00
Alexis Gousseau
937a9627a7 WIP: oui 2023-09-15 15:14:26 +02:00
Alexis Gousseau
1f42c1a4d8 client v4 2023-09-11 16:19:10 +02:00
Jérémy Munsch
b15e9bcb59
SingleOptin add unsetStatusWithHashcode method 2023-06-28 15:13:35 +02:00
Jérémy Munsch
2ecd428168
client generate 2022-06-09 11:14:02 +02:00
Jérémy Munsch
c66f00cc33
Response.php : validate json check should check if really false 2022-03-30 16:50:26 +02:00
Jérémy Munsch
bd64c79d5a
Request.php : Fix request merge method of data to query 2022-03-30 12:16:31 +02:00
Jérémy Munsch
d7b7c15f83
- update comments to be user friendly
- update changelog
- regen documentation
2022-02-23 11:33:20 +01:00
Jérémy Munsch
01be799d20
Fixed: Customer do not call update if there are no updated fields 2022-02-11 15:18:19 +01:00
Jérémy Munsch
7e6efc7d4e
Fixed : WPCrm bootSessionIfNeeded trying to access $_SESSION['wpcrm'] before session was started 2022-02-11 13:08:34 +01:00
Jérémy Munsch
3ac734dbae
Fixed WPCrm now only returns a boolean 2022-02-10 17:18:30 +01:00
Jérémy Munsch
61aeca5e31
WPCrm readd forceLogin() 2022-02-10 16:43:58 +01:00
Jérémy Munsch
647ac8acb5
WpCrm::makeApiV2Call Change LogLevel on error from Emerge to Critical 2022-02-10 12:32:15 +01:00
Jérémy Munsch
03501c156e
- Fixed get crm info when client used in laravel 2022-02-10 09:42:55 +01:00
f36447854b
API V3 UPDATE
This removes api authentication with token in favor of signature method.
Refactored code and clean up. It add more unit test plus code coverage
in test/coverage.

- Added   : mardown documentation.
- Changed : model Stats::getQuestionStats  to pass question as route parameter
- Changed : now requests need to have a signature generated with a private key (crm password) using hmac sha256 wrapping url, method and parameters
- Changed : now timestamp will timeout if request is slower than "timestampTimeout", this means crm will reject the request
- Changed : throw ValidationException s instead of TypeErrors
- Changed : timestamp has to be send in request with a DateTime format, it also has to a UTC value
- Fixed   : Change WPCRM dynamic session key, this could prevent spoofing session in some cases.
- Fixed   : closure validation
- Fixed   : model mutator not catching reflectionException
- Fixed   : really send json request using Guzzle internal lib methods.
- Removed : Api AUTH system with api token
- Removed : ApiError::needAuth
- Removed : composer vlucas/dotenv, .env file is not handled any more.
- Removed : LoginException
- Removed : memcached dependency
- Removed : need of memcached
- Removed : unused service provider
- Removed : WpCrm::forceLogin
- Removed : WpCrm::sendArcadiaMailDefault
- Removed : WpCrm::sendArcadiaMailGame
- Updated : PHPCS rules, phpcs fixes and refactored code
2021-12-31 17:00:55 +01:00
94db0de47b
phpcs pass 2021-12-06 00:16:13 +01:00
a004852c3c
Fix auth loop 2021-12-06 00:07:26 +01:00
Jérémy Munsch
796bc1a814
Hotfix arcadia orders 2021-11-30 16:10:00 +01:00
Jérémy Munsch
3889be79aa
Hotfix for LG unconsistant data (skip validation, respect sometimes validation) 2021-11-30 15:14:46 +01:00
Jérémy Munsch
9a3f1188b4
Add Stats model with api call
Bump to version 2.3.0
update changelog
2021-11-05 15:09:24 +01:00
Jérémy Munsch
2059e0ef05
Fill data props after save or update on Customer 2021-10-26 12:36:10 +02:00
Jérémy Munsch
d8786e0b43
Force bool cast when reponse is 0 or 1 2021-10-26 10:30:17 +02:00
Jérémy Munsch
d1dce43e77
add some comment on customer 2021-10-26 10:06:49 +02:00
Jérémy Munsch
c5249d37a1
Fix mail arcadia V2 2021-10-21 17:11:22 +02:00
Jérémy Munsch
e345383a40
Update enum country 2021-10-20 15:24:08 +02:00
Jérémy Munsch
dfcdb166fe
Customer update validation fields, update readme 2021-10-20 10:57:45 +02:00
Jérémy Munsch
79bcf49f0b
Correct fill methods on models to handle all enums + arrays 2021-10-18 16:05:03 +02:00
Jérémy Munsch
c9572314aa
Changed Arcadia mails, add customer parameters for these calls 2021-10-18 09:02:31 +02:00
Jérémy Munsch
1975edaa6c
Utils.php fix getResquest method 2021-10-18 09:01:05 +02:00
Jérémy Munsch
93950cd75e
Utils::makeValidator fix typo min rule 2021-10-15 12:10:07 +02:00