Commit graph

27 commits

Author SHA1 Message Date
Alexis Gousseau
a7d7436b10
fix: 🚨 resolve phpcs errors 2025-08-28 16:41:48 +02:00
Vincent BRIDIER
f7e9ab78a2
fix: Remvove Laravel deps call + add PHP>8.1 compliance 2024-10-15 14:16:43 +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
01be799d20
Fixed: Customer do not call update if there are no updated fields 2022-02-11 15:18:19 +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
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
d1dce43e77
add some comment on customer 2021-10-26 10:06:49 +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
103b8bb590
fix fill method on CrmClient Model 2021-10-14 11:46:11 +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
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
40416acabc password validation with translations for fields validations 2021-08-17 11:03:05 +02:00
Jérémy Munsch
b626dfca55 Update hashcode on Customer after save 2021-08-17 11:03:05 +02:00
Jérémy Munsch
940a56482e Let Exception popup on customer save 2021-08-17 11:03:05 +02:00
Jérémy Munsch
c2d33b77d5 REmove required from address field 2021-08-17 11:03:05 +02:00
Jérémy Munsch
877ef33f41 Json serialize models 2021-08-17 11:03:05 +02:00
Jérémy Munsch
ee520a8168 Remove illuminate dependencies
Add  respect/validation
2021-08-13 10:45:55 +02:00
Jérémy Munsch
60af192324 Add WPMCRM v2 without test for now 2021-08-12 14:49:27 +02:00
Jérémy Munsch
7315daa986 Add missing customer login 2021-08-12 08:34:15 +02:00
Jérémy Munsch
14f0bb83dd V 2.0.1
More methods on CrmApiV2
2021-08-11 17:26:30 +02:00
Jérémy Munsch
5427646967 change password require 8 char instead of 10 2021-08-09 11:41:02 +02:00
Jérémy Munsch
6e04439a0b V2 Working client with some documentation 2021-08-09 09:18:46 +02:00