From 94ea1187315358c7fca267925afbc92ea08452cd Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 20 Oct 2021 16:18:18 +0900 Subject: [PATCH] Documentation update --- src/Amazon/AWS/AWS.php | 24 ++++++++++++++++++++++++ src/Amazon/AmazonIncentives.php | 6 ------ test/aws_gift_card_tests.php | 5 +++-- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/Amazon/AWS/AWS.php b/src/Amazon/AWS/AWS.php index 2fa5b7a..1a3c713 100644 --- a/src/Amazon/AWS/AWS.php +++ b/src/Amazon/AWS/AWS.php @@ -266,6 +266,30 @@ class AWS } /** + * get the region based on endpoint + * list as of 2021/10/20 + * WHERE URL REGION + * North America https://agcod-v2-gamma.amazon.com us-east-1 + * https://agcod-v2.amazon.com + * (US, CA, MX) + * Europe and Asia https://agcod-v2-eu-gamma.amazon.com eu-west-1 + * https://agcod-v2-eu.amazon.com + * (IT, ES, DE, FR, UK, TR, UAE, KSA, PL, NL, SE) + * Far East https://agcod-v2-fe-gamma.amazon.com us-west-2 + * https://agcod-v2-fe.amazon.com + * (JP, AU, SG) + * + * CURRENCY + * USD for US + * EUR for EU (IT, ES, DE, FR, PL, NL, SE) + * JPY for JP + * CAD for CA + * AUD for AU + * TRY for TR + * AED for UAE + * MXN for MX + * GBP for UK + * * @return string */ public function getRegion(): string diff --git a/src/Amazon/AmazonIncentives.php b/src/Amazon/AmazonIncentives.php index 43bcc0d..040c100 100644 --- a/src/Amazon/AmazonIncentives.php +++ b/src/Amazon/AmazonIncentives.php @@ -74,12 +74,6 @@ class AmazonIncentives // PRIVATE HELPER METHODS // ********************************************************************* - // ********************************************************************* - // PUBLIC DEBUG METHODS - // ********************************************************************* - - // like log collector (array) and returner - // ********************************************************************* // PUBLIC METHODS // ********************************************************************* diff --git a/test/aws_gift_card_tests.php b/test/aws_gift_card_tests.php index 0c31bd7..74db448 100644 --- a/test/aws_gift_card_tests.php +++ b/test/aws_gift_card_tests.php @@ -102,13 +102,14 @@ Far East https://agcod-v2-fe-gamma.amazon.com us-west-2 CURRENCY USD for US -EUR for EU +EUR for EU (IT, ES, DE, FR, PL, NL, SE) JPY for JP CAD for CA AUD for AU TRY for TR AED for UAE - +MXN for MX +GBP for UK */ $fp = fopen('log/debug.' . date('YmdHis') . '.log', 'w');