Commit graph

29 commits

Author SHA1 Message Date
Jérémy Munsch
9fe08103f4
Fix ArcadiaMail Requests on api Allow phone to be empty string 2022-08-24 15:12:09 +02:00
Jérémy Munsch
e9b077e9ea
Merge remote-tracking branch 'origin/ticket918' into develop 2022-08-24 11:27:21 +02:00
Jérémy Munsch
6ceee32368
SendArchadiaGameMailRequest: Limit code on pack to 50 chars 2022-06-17 14:08:08 +02:00
Jérémy Munsch
f2371d97ea
Fixed #905
- handled Country and Phone on customer store and update
- refactorize Country and Phone
2022-06-09 11:09:11 +02:00
Vincent BRIDIER
e08123212b
Fix Arcadia phone length field (RemoveSpaces) 2022-03-22 11:26:11 +01:00
81aabdab72
Version 3.0.0
This removes api authentification with token in favor of signature method.
Refactorize code and clean up. It add more unit test plus code coverage
in test/converage.

- Added config.api.timestampTimeout
- Added Helper::signRequest This calculates the request signature
- Added more unit tests and extend code coverage.
- Added rate limiter for web routes
- Added RemoveSpaces Sanitizer on api requests
- Added stress test suite
- Changed AuthServiceProvider api-token to api-hmac
- Changed CustomerSeeder to have at least of customer activated (for unit tests)
- Changed used transation for saveing multiple models
- Changed, in ServiceController generateApiToken to generateServicePassword
- Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC  value
- Composer added brianium/paratest
- Composer update
- Fixed case where removing single optin could be the wrong one (not for the good service)
- Fixed customer delete
- Fixed customer would not be resolved by brand.
- Fixed Really check that request is json checking body content, preventing sending malformed requests
- Remove ApiError::needAuth
- Removed api_token
- Removed ApiController::authenticate
- Removed config.api.tokenTimeout
- Removed Header check or usage because of HAProxy doing weird stuff
- Removed lock files from gitignore
- Removed memcached dependency
- Removed unused questions resources api routes
- Removed workspace file

Migrations
- Added unique index on services.bearer_token
- Changed customer_id on customer_answer is nullable
- Changed services.bearer_pwd length to 312 (the size of the token)
- Dropped services.api_token and service.api_token_date
2022-01-06 12:11:05 +01:00
Jérémy Munsch
69ac3abf5e
Stat Api phase 1 CRM side + test 2021-11-05 14:46:53 +01:00
Jérémy Munsch
7b4faee998
Stats par questions 2021-11-03 15:11:41 +01:00
Jérémy Munsch
9f6ae7bd09
Stats graphs 2021-11-03 11:18:19 +01:00
Jérémy Munsch
f41b6ae644
Add more data sanitize on base request for user info 2021-10-25 17:48:43 +02:00
Jérémy Munsch
2742a3af3f
Fix authenticate method, remove exists validate on request 2021-10-21 14:23:33 +02:00
Jérémy Munsch
030d9698cd
bump to 2.2.1
Repair arcadia send methods + client with unit tests
2021-10-20 15:30:21 +02:00
Jérémy Munsch
2ae1d09afc
Correct arcadia Api V2 methods + unit tests 2021-10-19 17:15:34 +02:00
Jérémy Munsch
923e566ee7
Changed Arcadia mails, add customer parameters for these calls
Updated Client
bump to 2.2.0
2021-10-18 09:03:00 +02:00
Jérémy Munsch
41909ff8e0 Question export 2021-09-14 10:58:00 +02:00
Jérémy Munsch
193a93715e Newsletter export Function
- composer require league/csv
2021-09-09 16:08:42 +02:00
Jérémy Munsch
de25ed732c Mail alert on service token generate from BO 2021-09-09 16:08:42 +02:00
Jérémy Munsch
59bf1f231a phpcs fix customer delete 2021-08-23 20:50:51 +02:00
Jérémy Munsch
848fbe4cb1 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:29:10 +02:00
Jérémy Munsch
055b824ffa Set address as required 2021-08-18 08:43:44 +02:00
Jérémy Munsch
c97abfb253 Store customer, remove required from address field 2021-08-16 13:20:26 +02:00
Jérémy Munsch
f59deac5fc Merge branch 'v2' into develop 2021-08-12 14:57:05 +02:00
Jérémy Munsch
787ee5a4c5 - tag 2.0.1
- Add Questions segementation
- Fix Customer delete Tests
2021-08-11 17:37:59 +02:00
Jérémy Munsch
b3f56a5329 Change password requirement 8 char instead of 10 2021-08-09 17:12:40 +02:00
Jérémy Munsch
260d5fd259 - Arcadia separate routes on v2
- fix optin v2
- customer validation password
- full working v2 tests
2021-08-06 15:57:48 +02:00
Jérémy Munsch
f03ae09e6a - fixes
- customer update prop test
2021-08-05 16:18:09 +02:00
Vincent BRIDIER
446f9f297e - Add customer delete on BO 2021-08-02 17:22:56 +02:00
Jérémy Munsch
19e1a022a2 mise à plat, renomage v1 et v2 en V1 et V2 2021-07-28 14:18:47 +02:00
Jérémy Munsch
6987501a98 CRM API V2 2021-03-27 08:29:31 +01:00