Commit graph

74 commits

Author SHA1 Message Date
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
Jérémy Munsch
103b8bb590
fix fill method on CrmClient Model 2021-10-14 11:46:11 +02:00
Jérémy Munsch
4fb4a02710
ApiInterface fix replace needAuth by apiAuthFailed 2021-09-21 12:05:39 +02:00
Jérémy Munsch
60da6e6dcb Add some comment on Utils 2021-09-14 14:23:18 +02:00
Jérémy Munsch
8136ac38bd Add Utils::log with enum LogLevel (prefix logs) 2021-09-14 13:44:03 +02:00
Jérémy Munsch
4f3b9df0db Generate client: maj de ApiError messages 2021-09-14 11:18:32 +02:00
Jérémy Munsch
2d0866ad74 fix client containSymbol validate not accepting underscores 2021-09-07 14:41:16 +02:00
Jérémy Munsch
cea32d3a2c session of 15min WPCRM 2021-08-26 14:57:06 +02:00
Jérémy Munsch
8246fdf8ca gen client 2021-08-25 17:30:13 +02:00
Jérémy Munsch
84b26d8271 add methods unsetActive user try session timeout 2021-08-25 17:16:49 +02:00
Jérémy Munsch
6ea06b7620 Fix WPCRM saveOrUpdateUserToTable 2021-08-25 14:39:47 +02:00
Jérémy Munsch
71ca142a58 Fix warning for auth fail dont print in log 2021-08-24 11:18:24 +02:00
Jérémy Munsch
537b9f2f61 Rollback de required sur Customer address, code postal et ville (dans le cas ou sur le projet on utilise pas forcément MesBR) pour être conforme RGPD 2021-08-23 14:27:51 +02:00
Jérémy Munsch
5c2738b05e Ajout de cache sur api_token pour partager la clé sur tout les process du client 2021-08-23 14:25:01 +02:00
Jérémy Munsch
201f4a3ecd Client version 2.1.0
Mostly fix WPCrm and WPCrmUser
2021-08-20 17:52:34 +02:00
Jérémy Munsch
b1d3c5fa5b bump client to 2.0.14
set address as required
2021-08-18 08:48:33 +02:00
Jérémy Munsch
0b5691ac1a Change question to static 2021-08-17 11:03:05 +02:00
Jérémy Munsch
40416acabc password validation with translations for fields validations 2021-08-17 11:03:05 +02:00
Jérémy Munsch
4fd7904604 Generate client 2021-08-17 11:03:05 +02:00