Skip to content

Commit

Permalink
Amazon Pay API SDK (Node.js) 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bjguillot committed Jun 24, 2020
1 parent 4bd07fc commit 9b3a020
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### Version 2.1.1 - June 2020
* Underlying endpoint for getBuyer API changed

#### Version 2.1.0 - June 2020
* Added getBuyer() API call

Expand All @@ -6,4 +9,3 @@

#### Version 2.0.0 - April 2020
* Initial release

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amazonpay/amazon-pay-api-sdk-nodejs",
"version": "2.1.0",
"version": "2.1.1",
"description": "Amazon Pay Checkout V2 Integration",
"main": "src/client.js",
"directories": {},
Expand Down
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class WebStoreClient extends AmazonPayClient {
getBuyer(buyerToken, headers = null) {
return this.apiCall({
method: 'GET',
urlFragment: `buyer/${buyerToken}`,
urlFragment: `buyers/${buyerToken}`,
headers: headers
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = {
SDK_VERSION: '2.1.0',
SDK_VERSION: '2.1.1',
API_VERSION: 'v2',
RETRIES: 3,
API_ENDPOINTS: {
Expand Down
2 changes: 1 addition & 1 deletion tst/webStoreClientTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('WebStore Client Test Cases - Checkout Session APIs', () => {
webStoreClient.getBuyer(buyerToken, headers).then(function (result) {
assert.equal(result.statusCode, 200);
var actualResponse = JSON.parse(result.body);
assert.equal(actualResponse.buyer.buyerId.startsWith('amzn1.account.'), true);
assert.equal(actualResponse.buyerId.startsWith('amzn1.account.'), true);
done();
}).catch(err => {
done(err);
Expand Down

0 comments on commit 9b3a020

Please sign in to comment.