phpUnit tests updates and fixes

All gift card id checks are against string and not numeric.

Add missing checks for card status, card amount value, card amount
currency in any buy card checks.

Add epiration date regex check for buy card

Add request cancled card check.
This commit is contained in:
2022-06-14 06:53:44 +09:00
parent 308794488d
commit 422fc66137
2 changed files with 148 additions and 3 deletions

View File

@@ -4,6 +4,8 @@ This is a abastract from [https://github.com/kamerk22/AmazonGiftCod](https://git
Amazon Gift Codes On Demand (AGCOD). Integration for Amazon Incentive API.
[General Amazon Incentives Documentation](https://developer.amazon.com/docs/incentives-api/digital-gift-cards.html)
## How to install
`composer require gullevek/amazon-incentives`