diff --git a/src/amazon-marketplace.ts b/src/amazon-marketplace.ts index 7822c257..37b28c7d 100644 --- a/src/amazon-marketplace.ts +++ b/src/amazon-marketplace.ts @@ -1,4 +1,5 @@ import { AmazonMarketplaceAdvertisingRegion } from './amazon-marketplace-advertising-region' +import { AmazonSellingPartnerApiRegion } from './amazon-selling-partner-api-region' /** * Amazon Marketplace country code enum. @@ -147,6 +148,13 @@ export interface AmazonAdvertisingBidLimits { readonly max: number } +export interface AmazonSellingPartner { + /** + * Amazon Selling Partner API Region + */ + readonly region: AmazonSellingPartnerApiRegion +} + export interface AmazonMarketplace { /** * Amazon Marketplace ID. @@ -210,6 +218,11 @@ export interface AmazonMarketplace { * [Amazon Advertising](https://advertising.amazon.com/API/docs/v2/guides/supported_features). */ readonly advertising?: AmazonMarketplaceAdvertising + + /** + * [Amazon Selling Partner API](https://developer.amazonservices.com/). + */ + readonly sellingPartner?: AmazonSellingPartner } export class AmazonMarketplace implements AmazonMarketplace { diff --git a/src/amazon-selling-partner-api-region.ts b/src/amazon-selling-partner-api-region.ts new file mode 100644 index 00000000..e4a4f4d2 --- /dev/null +++ b/src/amazon-selling-partner-api-region.ts @@ -0,0 +1,28 @@ +export interface AmazonSellingPartnerApiRegion { + /** + * Region code. + */ + code: string + + /** + * Region name. + */ + name: string + + /** + * Access endpoint URI. + */ + endpoint: string + + /** + * AWS region. + */ + awsRegion: string +} + +export class AmazonSellingPartnerApiRegion implements AmazonSellingPartnerApiRegion { + constructor(data: AmazonSellingPartnerApiRegion) { + Object.assign(this, data) + Object.freeze(this) + } +} diff --git a/src/marketplaces/ae.ts b/src/marketplaces/ae.ts index bb69204a..79dc6105 100644 --- a/src/marketplaces/ae.ts +++ b/src/marketplaces/ae.ts @@ -6,6 +6,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const AE = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.AE, @@ -29,4 +30,7 @@ export const AE = new AmazonMarketplace({ }, timeZone: AmazonMarketplaceAdvertisingTimeZone.ASIA_DUBAI, }, + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/au.ts b/src/marketplaces/au.ts index f188ab6b..9f63c8ae 100644 --- a/src/marketplaces/au.ts +++ b/src/marketplaces/au.ts @@ -6,6 +6,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const AU = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.AU, @@ -29,4 +30,7 @@ export const AU = new AmazonMarketplace({ }, timeZone: AmazonMarketplaceAdvertisingTimeZone.AUSTRALIA_SYDNEY, }, + sellingPartner: { + region: sellingPartnerRegions.FE, + }, }) diff --git a/src/marketplaces/br.ts b/src/marketplaces/br.ts index 755720d1..f2fc5940 100644 --- a/src/marketplaces/br.ts +++ b/src/marketplaces/br.ts @@ -6,6 +6,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const BR = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.BR, @@ -29,4 +30,7 @@ export const BR = new AmazonMarketplace({ }, timeZone: AmazonMarketplaceAdvertisingTimeZone.AMERICA_SAO_PAULO, }, + sellingPartner: { + region: sellingPartnerRegions.NA, + }, }) diff --git a/src/marketplaces/ca.ts b/src/marketplaces/ca.ts index 996ec27e..1a209515 100644 --- a/src/marketplaces/ca.ts +++ b/src/marketplaces/ca.ts @@ -6,6 +6,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' /** * Canada @@ -32,4 +33,7 @@ export const CA = new AmazonMarketplace({ }, timeZone: AmazonMarketplaceAdvertisingTimeZone.AMERICA_LOS_ANGELES, }, + sellingPartner: { + region: sellingPartnerRegions.NA, + }, }) diff --git a/src/marketplaces/de.ts b/src/marketplaces/de.ts index 74662c90..34833472 100644 --- a/src/marketplaces/de.ts +++ b/src/marketplaces/de.ts @@ -5,6 +5,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { europeanAdvertisingFactory } from '../european-advertising-factory' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const DE = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.DE, @@ -14,4 +15,7 @@ export const DE = new AmazonMarketplace({ uri: 'https://www.amazon.de', webServiceUri: 'https://mws-eu.amazonservices.com', advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.DE), + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/es.ts b/src/marketplaces/es.ts index f19bf96b..51cbe9f5 100644 --- a/src/marketplaces/es.ts +++ b/src/marketplaces/es.ts @@ -5,6 +5,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { europeanAdvertisingFactory } from '../european-advertising-factory' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const ES = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.ES, @@ -14,4 +15,7 @@ export const ES = new AmazonMarketplace({ uri: 'https://www.amazon.es', webServiceUri: 'https://mws-eu.amazonservices.com', advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.ES), + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/fr.ts b/src/marketplaces/fr.ts index 15f7e83b..169d4121 100644 --- a/src/marketplaces/fr.ts +++ b/src/marketplaces/fr.ts @@ -5,6 +5,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { europeanAdvertisingFactory } from '../european-advertising-factory' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const FR = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.FR, @@ -14,4 +15,7 @@ export const FR = new AmazonMarketplace({ uri: 'https://www.amazon.fr', webServiceUri: 'https://mws-eu.amazonservices.com', advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.FR), + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/gb.ts b/src/marketplaces/gb.ts index e0ba2d5d..001118a3 100644 --- a/src/marketplaces/gb.ts +++ b/src/marketplaces/gb.ts @@ -6,6 +6,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' import { DE } from './de' if (!DE.advertising) { @@ -34,4 +35,7 @@ export const GB = new AmazonMarketplace({ }, timeZone: AmazonMarketplaceAdvertisingTimeZone.EUROPE_LONDON, }, + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/in.ts b/src/marketplaces/in.ts index 15fef9f0..c64ac0d4 100644 --- a/src/marketplaces/in.ts +++ b/src/marketplaces/in.ts @@ -3,6 +3,7 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, } from '../amazon-marketplace' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const IN = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.IN, @@ -11,4 +12,7 @@ export const IN = new AmazonMarketplace({ name: 'India', uri: 'https://www.amazon.in', webServiceUri: 'https://mws.amazonservices.in', + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/it.ts b/src/marketplaces/it.ts index 80d2b1ef..b6b1f78e 100644 --- a/src/marketplaces/it.ts +++ b/src/marketplaces/it.ts @@ -5,6 +5,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { europeanAdvertisingFactory } from '../european-advertising-factory' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const IT = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.IT, @@ -14,4 +15,7 @@ export const IT = new AmazonMarketplace({ uri: 'https://www.amazon.it', webServiceUri: 'https://mws-eu.amazonservices.com', advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.DE), + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/jp.ts b/src/marketplaces/jp.ts index f40b434e..dcd4f0ba 100644 --- a/src/marketplaces/jp.ts +++ b/src/marketplaces/jp.ts @@ -6,6 +6,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const JP = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.JP, @@ -29,4 +30,7 @@ export const JP = new AmazonMarketplace({ }, timeZone: AmazonMarketplaceAdvertisingTimeZone.ASIA_TOKYO, }, + sellingPartner: { + region: sellingPartnerRegions.FE, + }, }) diff --git a/src/marketplaces/mx.ts b/src/marketplaces/mx.ts index 6d0c82cf..694f8ce1 100644 --- a/src/marketplaces/mx.ts +++ b/src/marketplaces/mx.ts @@ -6,6 +6,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const MX = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.MX, @@ -29,4 +30,7 @@ export const MX = new AmazonMarketplace({ }, timeZone: AmazonMarketplaceAdvertisingTimeZone.AMERICA_LOS_ANGELES, }, + sellingPartner: { + region: sellingPartnerRegions.NA, + }, }) diff --git a/src/marketplaces/nl.ts b/src/marketplaces/nl.ts index 65ed77f0..9b06ba3f 100644 --- a/src/marketplaces/nl.ts +++ b/src/marketplaces/nl.ts @@ -5,6 +5,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { europeanAdvertisingFactory } from '../european-advertising-factory' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' import { DE } from './de' export const NL = new AmazonMarketplace({ @@ -15,4 +16,7 @@ export const NL = new AmazonMarketplace({ uri: 'https://www.amazon.nl', webServiceUri: DE.webServiceUri, advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.NL), + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/pl.ts b/src/marketplaces/pl.ts index 29757c3f..5a84cb56 100644 --- a/src/marketplaces/pl.ts +++ b/src/marketplaces/pl.ts @@ -3,6 +3,7 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, } from '../amazon-marketplace' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const PL = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.PL, @@ -11,4 +12,7 @@ export const PL = new AmazonMarketplace({ name: 'Poland', uri: 'https://www.amazon.pl', webServiceUri: 'https://mws-eu.amazonservices.com', + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/se.ts b/src/marketplaces/se.ts index eb5ab779..c47c69e6 100644 --- a/src/marketplaces/se.ts +++ b/src/marketplaces/se.ts @@ -3,6 +3,7 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, } from '../amazon-marketplace' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const SE = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.SE, @@ -11,4 +12,7 @@ export const SE = new AmazonMarketplace({ name: 'Sweden', uri: 'https://www.amazon.se', webServiceUri: 'https://mws-eu.amazonservices.com', + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/sg.ts b/src/marketplaces/sg.ts index cb9459a2..296a0925 100644 --- a/src/marketplaces/sg.ts +++ b/src/marketplaces/sg.ts @@ -3,6 +3,7 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, } from '../amazon-marketplace' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const SG = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.SG, @@ -11,4 +12,7 @@ export const SG = new AmazonMarketplace({ name: 'Singapore', uri: 'https://www.amazon.sg', webServiceUri: 'https://mws-fe.amazonservices.com', + sellingPartner: { + region: sellingPartnerRegions.FE, + }, }) diff --git a/src/marketplaces/tr.ts b/src/marketplaces/tr.ts index 54c54a56..f42a93e6 100644 --- a/src/marketplaces/tr.ts +++ b/src/marketplaces/tr.ts @@ -3,6 +3,7 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, } from '../amazon-marketplace' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const TR = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.TR, @@ -11,4 +12,7 @@ export const TR = new AmazonMarketplace({ name: 'Turkey', uri: 'https://www.amazon.com.tr', webServiceUri: 'https://mws-eu.amazonservices.com', + sellingPartner: { + region: sellingPartnerRegions.EU, + }, }) diff --git a/src/marketplaces/us.ts b/src/marketplaces/us.ts index 8545a97e..0df54d1c 100644 --- a/src/marketplaces/us.ts +++ b/src/marketplaces/us.ts @@ -6,6 +6,7 @@ import { AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' +import { sellingPartnerRegions } from '../selling-partner-api-regions/index' export const US = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.US, @@ -29,4 +30,7 @@ export const US = new AmazonMarketplace({ }, timeZone: AmazonMarketplaceAdvertisingTimeZone.AMERICA_LOS_ANGELES, }, + sellingPartner: { + region: sellingPartnerRegions.NA, + }, }) diff --git a/src/selling-partner-api-regions/eu.ts b/src/selling-partner-api-regions/eu.ts new file mode 100644 index 00000000..6f1936dd --- /dev/null +++ b/src/selling-partner-api-regions/eu.ts @@ -0,0 +1,8 @@ +import { AmazonSellingPartnerApiRegion } from '../amazon-selling-partner-api-region' + +export const EU = new AmazonSellingPartnerApiRegion({ + code: 'EU', + endpoint: 'https://sellingpartnerapi-eu.amazon.com', + name: 'Europe', + awsRegion: 'eu-west-1', +}) diff --git a/src/selling-partner-api-regions/fe.ts b/src/selling-partner-api-regions/fe.ts new file mode 100644 index 00000000..6806f59e --- /dev/null +++ b/src/selling-partner-api-regions/fe.ts @@ -0,0 +1,8 @@ +import { AmazonSellingPartnerApiRegion } from '../amazon-selling-partner-api-region' + +export const FE = new AmazonSellingPartnerApiRegion({ + code: 'FE', + endpoint: 'https://sellingpartnerapi-fe.amazon.com', + name: 'Far East', + awsRegion: 'us-west-2', +}) diff --git a/src/selling-partner-api-regions/index.ts b/src/selling-partner-api-regions/index.ts new file mode 100644 index 00000000..0cf13ac5 --- /dev/null +++ b/src/selling-partner-api-regions/index.ts @@ -0,0 +1,9 @@ +import { EU } from './eu' +import { FE } from './fe' +import { NA } from './na' + +export const sellingPartnerRegions = { + EU, + FE, + NA, +} as const diff --git a/src/selling-partner-api-regions/na.ts b/src/selling-partner-api-regions/na.ts new file mode 100644 index 00000000..80938c47 --- /dev/null +++ b/src/selling-partner-api-regions/na.ts @@ -0,0 +1,8 @@ +import { AmazonSellingPartnerApiRegion } from '../amazon-selling-partner-api-region' + +export const NA = new AmazonSellingPartnerApiRegion({ + code: 'NA', + endpoint: 'https://sellingpartnerapi-na.amazon.com', + name: 'North America', + awsRegion: 'us-east-1', +}) diff --git a/src/utils.ts b/src/utils.ts index ae7dfad1..2017d70d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,6 +1,10 @@ import ensure from '@lavadrop/ensure' -import { AmazonMarketplace, AmazonMarketplaceAdvertising } from './amazon-marketplace' +import { + AmazonMarketplace, + AmazonMarketplaceAdvertising, + AmazonSellingPartner, +} from './amazon-marketplace' import { amazonMarketplacesList } from './marketplaces' type Key = keyof Omit @@ -42,3 +46,16 @@ export function assertMarketplaceHasAdvertising( throw new Error(`Marketplace ${marketplace.id} does not have advertising.`) } } + +/** + * Assert function that guards the marketplace and asserts that it has the selling partner api capability. + * + * See [Assertion Functions](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions) docs. + */ +export function assertMarketplaceHasSellingPartner( + marketplace: AmazonMarketplace, +): asserts marketplace is AmazonMarketplace & { sellingPartner: AmazonSellingPartner } { + if (!marketplace.sellingPartner) { + throw new Error(`Marketplace ${marketplace.id} does not have Selling Partner API.`) + } +} diff --git a/test/__snapshots__/marketplaces.test.ts.snap b/test/__snapshots__/marketplaces.test.ts.snap index 32e92e15..c937d8d0 100644 --- a/test/__snapshots__/marketplaces.test.ts.snap +++ b/test/__snapshots__/marketplaces.test.ts.snap @@ -27,6 +27,14 @@ AmazonMarketplace { "currency": "AED", "id": "A2VIGQ35RCS4UG", "name": "United Arab Emirates", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.ae", "webServiceUri": "https://mws.amazonservices.ae", } @@ -59,6 +67,14 @@ AmazonMarketplace { "currency": "AUD", "id": "A39IBJ37TRP1C6", "name": "Australia", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "us-west-2", + "code": "FE", + "endpoint": "https://sellingpartnerapi-fe.amazon.com", + "name": "Far East", + }, + }, "uri": "https://www.amazon.com.au", "webServiceUri": "https://mws.amazonservices.com.au", } @@ -91,6 +107,14 @@ AmazonMarketplace { "currency": "BRL", "id": "A2Q3Y263D00KWC", "name": "Brazil", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "us-east-1", + "code": "NA", + "endpoint": "https://sellingpartnerapi-na.amazon.com", + "name": "North America", + }, + }, "uri": "https://www.amazon.com.br", "webServiceUri": "https://mws.amazonservices.com", } @@ -123,6 +147,14 @@ AmazonMarketplace { "currency": "CAD", "id": "A2EUQ1WTGCTBG2", "name": "Canada", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "us-east-1", + "code": "NA", + "endpoint": "https://sellingpartnerapi-na.amazon.com", + "name": "North America", + }, + }, "uri": "https://www.amazon.ca", "webServiceUri": "https://mws.amazonservices.ca", } @@ -166,6 +198,14 @@ AmazonMarketplace { "currency": "EUR", "id": "A1PA6795UKMFR9", "name": "Germany", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.de", "webServiceUri": "https://mws-eu.amazonservices.com", } @@ -209,6 +249,14 @@ AmazonMarketplace { "currency": "EUR", "id": "A1RKKUPIHCS9HS", "name": "Spain", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.es", "webServiceUri": "https://mws-eu.amazonservices.com", } @@ -241,6 +289,14 @@ AmazonMarketplace { "currency": "EUR", "id": "A13V1IB3VIYZZH", "name": "France", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.fr", "webServiceUri": "https://mws-eu.amazonservices.com", } @@ -273,6 +329,14 @@ AmazonMarketplace { "currency": "GBP", "id": "A1F83G8C2ARO7P", "name": "United Kingdom", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.co.uk", "webServiceUri": "https://mws-eu.amazonservices.com", } @@ -284,6 +348,14 @@ AmazonMarketplace { "currency": "INR", "id": "A21TJRUUN4KGV", "name": "India", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.in", "webServiceUri": "https://mws.amazonservices.in", } @@ -316,6 +388,14 @@ AmazonMarketplace { "currency": "EUR", "id": "APJ6JRA9NG5V4", "name": "Italy", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.it", "webServiceUri": "https://mws-eu.amazonservices.com", } @@ -348,6 +428,14 @@ AmazonMarketplace { "currency": "JPY", "id": "A1VC38T7YXB528", "name": "Japan", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "us-west-2", + "code": "FE", + "endpoint": "https://sellingpartnerapi-fe.amazon.com", + "name": "Far East", + }, + }, "uri": "https://www.amazon.co.jp", "webServiceUri": "https://mws.amazonservices.jp", } @@ -380,6 +468,14 @@ AmazonMarketplace { "currency": "MXN", "id": "A1AM78C64UM0Y8", "name": "Mexico", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "us-east-1", + "code": "NA", + "endpoint": "https://sellingpartnerapi-na.amazon.com", + "name": "North America", + }, + }, "uri": "https://www.amazon.com.mx", "webServiceUri": "https://mws.amazonservices.com.mx", } @@ -412,6 +508,14 @@ AmazonMarketplace { "currency": "EUR", "id": "A1805IZSGTT6HS", "name": "Netherlands", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.nl", "webServiceUri": "https://mws-eu.amazonservices.com", } @@ -423,6 +527,14 @@ AmazonMarketplace { "currency": "PLN", "id": "A1C3SOZRARQ6R3", "name": "Poland", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.pl", "webServiceUri": "https://mws-eu.amazonservices.com", } @@ -445,6 +557,14 @@ AmazonMarketplace { "currency": "SEK", "id": "A2NODRKZP88ZB9", "name": "Sweden", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.se", "webServiceUri": "https://mws-eu.amazonservices.com", } @@ -456,6 +576,14 @@ AmazonMarketplace { "currency": "SGD", "id": "A19VAU5U5O7RUS", "name": "Singapore", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "us-west-2", + "code": "FE", + "endpoint": "https://sellingpartnerapi-fe.amazon.com", + "name": "Far East", + }, + }, "uri": "https://www.amazon.sg", "webServiceUri": "https://mws-fe.amazonservices.com", } @@ -467,6 +595,14 @@ AmazonMarketplace { "currency": "TRY", "id": "A33AVAJ2PDY3EV", "name": "Turkey", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "eu-west-1", + "code": "EU", + "endpoint": "https://sellingpartnerapi-eu.amazon.com", + "name": "Europe", + }, + }, "uri": "https://www.amazon.com.tr", "webServiceUri": "https://mws-eu.amazonservices.com", } @@ -499,6 +635,14 @@ AmazonMarketplace { "currency": "USD", "id": "ATVPDKIKX0DER", "name": "United States", + "sellingPartner": Object { + "region": AmazonSellingPartnerApiRegion { + "awsRegion": "us-east-1", + "code": "NA", + "endpoint": "https://sellingpartnerapi-na.amazon.com", + "name": "North America", + }, + }, "uri": "https://www.amazon.com", "webServiceUri": "https://mws.amazonservices.com", }