Skip to content

Commit 748ada3

Browse files
authored
Update JavaScript SDK
1 parent fe9f77a commit 748ada3

File tree

65 files changed

+130
-130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+130
-130
lines changed

javascript/sdk/test/apluscontent_v2020_11_01/api/AplusContentApi.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { join } from 'path';
33

44
const modulePath = join(process.cwd(), 'src', 'apluscontent_v2020_11_01', 'index.js');
55
const SellingPartnerApiForAContentManagement = await import(modulePath);
6-
const endpoint = 'https://localhost:3000';
6+
const endpoint = 'http://localhost:3000';
77

88
describe('AplusContentApi', () => {
99
let instance;
1010

1111
beforeEach(() => {
12-
const apiClientInstance = new SellingPartnerApiForAContentManagement.ApiClient(testEndpoint);
12+
const apiClientInstance = new SellingPartnerApiForAContentManagement.ApiClient(endpoint);
1313
apiClientInstance.applyXAmzAccessTokenToRequest("testAccessToken");
1414
instance = new SellingPartnerApiForAContentManagement.AplusContentApi(apiClientInstance);
1515
});

javascript/sdk/test/appintegrations_v2024_04_01/api/AppIntegrationsApi.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { join } from 'path';
33

44
const modulePath = join(process.cwd(), 'src', 'appintegrations_v2024_04_01', 'index.js');
55
const TheSellingPartnerApiForThirdPartyApplicationIntegrations = await import(modulePath);
6-
const endpoint = 'https://localhost:3000';
6+
const endpoint = 'http://localhost:3000';
77

88
describe('AppIntegrationsApi', () => {
99
let instance;
1010

1111
beforeEach(() => {
12-
const apiClientInstance = new TheSellingPartnerApiForThirdPartyApplicationIntegrations.ApiClient(testEndpoint);
12+
const apiClientInstance = new TheSellingPartnerApiForThirdPartyApplicationIntegrations.ApiClient(endpoint);
1313
apiClientInstance.applyXAmzAccessTokenToRequest("testAccessToken");
1414
instance = new TheSellingPartnerApiForThirdPartyApplicationIntegrations.AppIntegrationsApi(apiClientInstance);
1515
});

javascript/sdk/test/applications_v2023_11_30/api/ApplicationsApi.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { join } from 'path';
33

44
const modulePath = join(process.cwd(), 'src', 'applications_v2023_11_30', 'index.js');
55
const SellingPartnerApiForApplicationManagement = await import(modulePath);
6-
const endpoint = 'https://localhost:3000';
6+
const endpoint = 'http://localhost:3000';
77

88
describe('ApplicationsApi', () => {
99
let instance;
1010

1111
beforeEach(() => {
12-
const apiClientInstance = new SellingPartnerApiForApplicationManagement.ApiClient(testEndpoint);
12+
const apiClientInstance = new SellingPartnerApiForApplicationManagement.ApiClient(endpoint);
1313
apiClientInstance.applyXAmzAccessTokenToRequest("testAccessToken");
1414
instance = new SellingPartnerApiForApplicationManagement.ApplicationsApi(apiClientInstance);
1515
});

javascript/sdk/test/awd_v2024_05_09/api/AwdApi.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { join } from 'path';
33

44
const modulePath = join(process.cwd(), 'src', 'awd_v2024_05_09', 'index.js');
55
const TheSellingPartnerApiForAmazonWarehousingAndDistribution = await import(modulePath);
6-
const endpoint = 'https://localhost:3000';
6+
const endpoint = 'http://localhost:3000';
77

88
describe('AwdApi', () => {
99
let instance;
1010

1111
beforeEach(() => {
12-
const apiClientInstance = new TheSellingPartnerApiForAmazonWarehousingAndDistribution.ApiClient(testEndpoint);
12+
const apiClientInstance = new TheSellingPartnerApiForAmazonWarehousingAndDistribution.ApiClient(endpoint);
1313
apiClientInstance.applyXAmzAccessTokenToRequest("testAccessToken");
1414
instance = new TheSellingPartnerApiForAmazonWarehousingAndDistribution.AwdApi(apiClientInstance);
1515
});

javascript/sdk/test/catalogitems_v2022_04_01/api/CatalogApi.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { join } from 'path';
33

44
const modulePath = join(process.cwd(), 'src', 'catalogitems_v2022_04_01', 'index.js');
55
const SellingPartnerApiForCatalogItems = await import(modulePath);
6-
const endpoint = 'https://localhost:3000';
6+
const endpoint = 'http://localhost:3000';
77

88
describe('CatalogApi', () => {
99
let instance;
1010

1111
beforeEach(() => {
12-
const apiClientInstance = new SellingPartnerApiForCatalogItems.ApiClient(testEndpoint);
12+
const apiClientInstance = new SellingPartnerApiForCatalogItems.ApiClient(endpoint);
1313
apiClientInstance.applyXAmzAccessTokenToRequest("testAccessToken");
1414
instance = new SellingPartnerApiForCatalogItems.CatalogApi(apiClientInstance);
1515
});

javascript/sdk/test/customerFeedback_2024_06_01/api/CustomerFeedbackApi.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { join } from 'path';
33

44
const modulePath = join(process.cwd(), 'src', 'customerFeedback_2024_06_01', 'index.js');
55
const TheSellingPartnerApiForCustomerFeedback = await import(modulePath);
6-
const endpoint = 'https://localhost:3000';
6+
const endpoint = 'http://localhost:3000';
77

88
describe('CustomerFeedbackApi', () => {
99
let instance;
1010

1111
beforeEach(() => {
12-
const apiClientInstance = new TheSellingPartnerApiForCustomerFeedback.ApiClient(testEndpoint);
12+
const apiClientInstance = new TheSellingPartnerApiForCustomerFeedback.ApiClient(endpoint);
1313
apiClientInstance.applyXAmzAccessTokenToRequest("testAccessToken");
1414
instance = new TheSellingPartnerApiForCustomerFeedback.CustomerFeedbackApi(apiClientInstance);
1515
});

javascript/sdk/test/datakiosk_v2023_11_15/api/QueriesApi.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { join } from 'path';
33

44
const modulePath = join(process.cwd(), 'src', 'datakiosk_v2023_11_15', 'index.js');
55
const SellingPartnerApiForDataKiosk = await import(modulePath);
6-
const endpoint = 'https://localhost:3000';
6+
const endpoint = 'http://localhost:3000';
77

88
describe('QueriesApi', () => {
99
let instance;
1010

1111
beforeEach(() => {
12-
const apiClientInstance = new SellingPartnerApiForDataKiosk.ApiClient(testEndpoint);
12+
const apiClientInstance = new SellingPartnerApiForDataKiosk.ApiClient(endpoint);
1313
apiClientInstance.applyXAmzAccessTokenToRequest("testAccessToken");
1414
instance = new SellingPartnerApiForDataKiosk.QueriesApi(apiClientInstance);
1515
});

javascript/sdk/test/easyship_v2022_03_23/api/EasyShipApi.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { join } from 'path';
33

44
const modulePath = join(process.cwd(), 'src', 'easyship_v2022_03_23', 'index.js');
55
const SellingPartnerApiForEasyShip = await import(modulePath);
6-
const endpoint = 'https://localhost:3000';
6+
const endpoint = 'http://localhost:3000';
77

88
describe('EasyShipApi', () => {
99
let instance;
1010

1111
beforeEach(() => {
12-
const apiClientInstance = new SellingPartnerApiForEasyShip.ApiClient(testEndpoint);
12+
const apiClientInstance = new SellingPartnerApiForEasyShip.ApiClient(endpoint);
1313
apiClientInstance.applyXAmzAccessTokenToRequest("testAccessToken");
1414
instance = new SellingPartnerApiForEasyShip.EasyShipApi(apiClientInstance);
1515
});

javascript/sdk/test/externalfulfillmentinventory_v2024_09_11/api/BatchInventoryApi.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { join } from 'path';
33

44
const modulePath = join(process.cwd(), 'src', 'externalfulfillmentinventory_v2024_09_11', 'index.js');
55
const TheSellingPartnerApiForExternalFulfillmentInventoryManagement = await import(modulePath);
6-
const endpoint = 'https://localhost:3000';
6+
const endpoint = 'http://localhost:3000';
77

88
describe('BatchInventoryApi', () => {
99
let instance;
1010

1111
beforeEach(() => {
12-
const apiClientInstance = new TheSellingPartnerApiForExternalFulfillmentInventoryManagement.ApiClient(testEndpoint);
12+
const apiClientInstance = new TheSellingPartnerApiForExternalFulfillmentInventoryManagement.ApiClient(endpoint);
1313
apiClientInstance.applyXAmzAccessTokenToRequest("testAccessToken");
1414
instance = new TheSellingPartnerApiForExternalFulfillmentInventoryManagement.BatchInventoryApi(apiClientInstance);
1515
});

javascript/sdk/test/externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { join } from 'path';
33

44
const modulePath = join(process.cwd(), 'src', 'externalfulfillmentreturns_v2024_09_11', 'index.js');
55
const TheSellingPartnerApiForAmazonExternalFulfillmentReturnItemProcessing = await import(modulePath);
6-
const endpoint = 'https://localhost:3000';
6+
const endpoint = 'http://localhost:3000';
77

88
describe('ReturnRetrievalApi', () => {
99
let instance;
1010

1111
beforeEach(() => {
12-
const apiClientInstance = new TheSellingPartnerApiForAmazonExternalFulfillmentReturnItemProcessing.ApiClient(testEndpoint);
12+
const apiClientInstance = new TheSellingPartnerApiForAmazonExternalFulfillmentReturnItemProcessing.ApiClient(endpoint);
1313
apiClientInstance.applyXAmzAccessTokenToRequest("testAccessToken");
1414
instance = new TheSellingPartnerApiForAmazonExternalFulfillmentReturnItemProcessing.ReturnRetrievalApi(apiClientInstance);
1515
});

0 commit comments

Comments
 (0)