Commit Graph

33 Commits

Author SHA1 Message Date
308794488d Update Readme file with various fixes v1.2.1 2022-06-13 19:59:07 +09:00
2bcd42f4a5 Add phpUnit testing for Amazon Incentives class v1.2.0 2022-06-13 18:09:52 +09:00
05b33ac157 Move decode error method, minor text update for error strings
the method "decodeExceptionMessage" has moved from
AmazonIncentives\AmazonIncentives to
AmazonIncentives\Exceptions\AmazonErrors

The old method is currently tagged deprecated internal via @deprecated
PHPdoc entry
2022-06-13 18:06:16 +09:00
fd5477269b Turn on mock tests on AWS side in normal test file v1.1.7 2022-06-10 14:49:32 +09:00
afb11a6797 Add new class create methods for proper phpunit testing
instead of direct calling Client class and AWS class add a wrapper
method to call those so we can quicker replace under elements and also
do proper testing
2022-06-10 14:40:40 +09:00
6f177986f9 Update PHPdoc in AmazonIncentive and Config class
Missing documentation for methods/class constructors
v1.1.6
2022-06-10 14:30:20 +09:00
e1b5dc1bab Add PHPdoc to all methods, minor code reorder
Move some methods around to have them together by call order logic
2022-06-09 16:02:25 +09:00
7cb5e00a5f Add base phpUnit file 2022-06-09 09:26:42 +09:00
a51f4df53e Update core git config files, vendor installs for unit testing
Update .gitattributes with more files to ignore
Add .gitignore for php unit test cache
Install dotenv file parser for unit testing
Update current test pages with dotenv file parser (replaces function
call)

Documentation PHPdoc update for checkMe method call
2022-06-09 09:25:08 +09:00
1e836e9a2b Update to static checker file, add phpunit xml, update composer json 2022-06-08 15:04:59 +09:00
b1079e1d24 Install composer phpunit v9 for development testing 2022-06-08 06:34:47 +09:00
5b99da616b Just rename the readEnvFile function for testing
Until I find out how I can exclude folders from beeing deployed
Update composer ingore list
Add .gitattributes for ignore list
2022-03-18 09:24:27 +09:00
f60aa3e1bc Merge branch 'development'
PHPstan config updates, test file update
1.1.4
2021-11-25 17:45:13 +09:00
b041720a18 phpstan config updates, test code update 2021-11-25 17:44:04 +09:00
be6b2be55d Merge pull request #1 from arif-rh/minor-fix
Minor fix for README type on composer command and trailing , in config class
2021-11-25 17:42:33 +09:00
Arif RH
6163d26f50 minor fix Config 2021-11-25 14:55:55 +07:00
Arif RH
a4c06b9a36 minor fix README 2021-11-25 14:55:09 +07:00
24dc8426de Remove space from client interface 2021-10-27 17:55:29 +09:00
7ef4133537 Update composer json file to exclude test and static test files 1.1.3 2021-10-21 15:51:05 +09:00
4f90f2d916 Update test with simpl .env variables and include example file 1.1.2 2021-10-21 15:00:45 +09:00
192e4e54e1 Add psalm to level 3 and clean up more code 2021-10-21 14:57:29 +09:00
d0b676f8ce Add phan checks at max level 1.1.1 2021-10-21 13:37:59 +09:00
c2721cb8d4 Add PHPstan and fix all checks for max level 2021-10-21 13:31:18 +09:00
18cf3330df Change license to MIT 2021-10-21 10:31:08 +09:00
3b7f644ae9 Update readme file, Update composer.json file, Exception updates
Alle exceptions thrown in Response are now general AmazonError with json
return string for full compability
1.1.0
2021-10-21 10:22:17 +09:00
6f9bf781f2 Rewrite to composer package
composer require gullevek/amazon-incentives
2021-10-21 09:55:32 +09:00
94ea118731 Documentation update 2021-10-20 16:18:18 +09:00
a56f33c81c Debug log updates, error message updates on curl failure
Config setup works with null data if no data is set.

Debugger is now launched in the AamzonIncentive class at the beginning
Debugger id/debug flag set is now one static call
Debugger methods all have proper PHPdoc documentationn added

Fixed Client/Curl error messages to include the original error message
too. Also made sure that a possible null endpoint is not throwing errors
1.0.1
2021-10-20 09:39:26 +09:00
f3b17bbf4c Update tests script with logging, etc 2021-10-19 11:46:52 +09:00
f8c9d82f4c Just minor fixes in the test script 1.0.0 2021-10-19 11:14:55 +09:00
7b90cd862d Update decodeErrorMessage, Client error exception
If the exception json is not a json, return the array with message set
to the original string.

Updated the Client error result:
If Rate Exceeded error, set special T001 with RESEND status
Else set normal and ifn othing set to E999 with FAILURE
2021-10-19 10:52:04 +09:00
71abd4d06e Add README file, add status to exception return
Because status RESEND/FAILURE has to be checked we also add this to the
Exception return json string.
Also handle unset errors (eg when we get an Rate Limit error)

Move the _ENV check into mtheod

test now has some basic mock tests
2021-10-19 09:39:14 +09:00
b00d545a10 Amazon Gift Card on Demand Incentives stand alone class 2021-10-18 18:24:38 +09:00