Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manifest/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"fe": {
"hostname": "agcod-v2-fe.amazon.com",
"credentialScope": {
"region": "eu-west-1"
"region": "us-west-2"
}
},
"fe-sandbox": {
"hostname": "agcod-v2-fe-gamma.amazon.com",
"credentialScope": {
"region": "eu-west-1"
"region": "us-west-2"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/AmazonIncentivesClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,14 +375,14 @@ protected function getEndpointMetadata(?string $region): array
case 'fe':
return [
'endpoint' => 'https://agcod-v2-fe.amazon.com',
'signRegion' => 'eu-west-1',
'signRegion' => 'us-west-2',
'signService' => 'AGCODService',
'signVersions' => ['v4'],
];
case 'fe-sandbox':
return [
'endpoint' => 'https://agcod-v2-fe-gamma.amazon.com',
'signRegion' => 'eu-west-1',
'signRegion' => 'us-west-2',
'signService' => 'AGCODService',
'signVersions' => ['v4'],
];
Expand All @@ -402,6 +402,6 @@ protected function getEndpointMetadata(?string $region): array
];
}

throw new UnsupportedRegion(sprintf('The region "%s" is not supported by "AmazonIncentives".', $region));
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "AmazonIncentives".', $region));
}
}