Skip to content

Commit

Permalink
feat: adds sellerCentralUri property
Browse files Browse the repository at this point in the history
  • Loading branch information
moltar committed Mar 29, 2021
1 parent 7ab2278 commit f0c765e
Show file tree
Hide file tree
Showing 21 changed files with 48 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/amazon-marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,19 @@ export interface AmazonMarketplace {
*
* @example
*
* 'https://www.amazon.ca/'
* 'https://www.amazon.ca'
*/
readonly uri: string

/**
* Amazon Seller Central URI.
*
* @example
*
* 'https://sellercentral.amazon.ca'
*/
readonly sellerCentralUri?: string

/**
* [Amazon Marketplace Web Service](https://developer.amazonservices.com/gp/mws/docs.html) (Amazon MWS) Endpoint URI.
*
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/ae.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const AE = new AmazonMarketplace({
id: 'A2VIGQ35RCS4UG',
name: 'United Arab Emirates',
uri: 'https://www.amazon.ae',
sellerCentralUri: 'https://sellercentral.amazon.ae',
webServiceUri: 'https://mws.amazonservices.ae',
advertising: {
countryCode: AmazonMarketplaceAdvertisingCountryCode.AE,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/au.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const AU = new AmazonMarketplace({
id: 'A39IBJ37TRP1C6',
name: 'Australia',
uri: 'https://www.amazon.com.au',
sellerCentralUri: 'https://sellercentral.amazon.com.au',
webServiceUri: 'https://mws.amazonservices.com.au',
advertising: {
countryCode: AmazonMarketplaceAdvertisingCountryCode.AU,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/br.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const BR = new AmazonMarketplace({
id: 'A2Q3Y263D00KWC',
name: 'Brazil',
uri: 'https://www.amazon.com.br',
sellerCentralUri: 'https://sellercentral.amazon.com.br',
webServiceUri: 'https://mws.amazonservices.com',
advertising: {
countryCode: AmazonMarketplaceAdvertisingCountryCode.BR,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/ca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const CA = new AmazonMarketplace({
name: 'Canada',
uri: 'https://www.amazon.ca',
webServiceUri: 'https://mws.amazonservices.ca',
sellerCentralUri: 'https://sellercentral.amazon.ca',
advertising: {
countryCode: AmazonMarketplaceAdvertisingCountryCode.CA,
region: marketplaceAdvertisingRegions.NA,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const DE = new AmazonMarketplace({
id: 'A1PA6795UKMFR9',
name: 'Germany',
uri: 'https://www.amazon.de',
sellerCentralUri: 'https://sellercentral.amazon.de',
webServiceUri: 'https://mws-eu.amazonservices.com',
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.DE),
sellingPartner: {
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const ES = new AmazonMarketplace({
name: 'Spain',
uri: 'https://www.amazon.es',
webServiceUri: 'https://mws-eu.amazonservices.com',
sellerCentralUri: 'https://sellercentral.amazon.es',
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.ES),
sellingPartner: {
region: sellingPartnerRegions.EU,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const FR = new AmazonMarketplace({
name: 'France',
uri: 'https://www.amazon.fr',
webServiceUri: 'https://mws-eu.amazonservices.com',
sellerCentralUri: 'https://sellercentral.amazon.fr',
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.FR),
sellingPartner: {
region: sellingPartnerRegions.EU,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/gb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const GB = new AmazonMarketplace({
id: 'A1F83G8C2ARO7P',
name: 'United Kingdom',
uri: 'https://www.amazon.co.uk',
sellerCentralUri: 'https://sellercentral.amazon.co.uk',
webServiceUri: DE.webServiceUri,
advertising: {
countryCode: AmazonMarketplaceAdvertisingCountryCode.UK,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const IN = new AmazonMarketplace({
id: 'A21TJRUUN4KGV',
name: 'India',
uri: 'https://www.amazon.in',
sellerCentralUri: 'https://sellercentral.amazon.in',
webServiceUri: 'https://mws.amazonservices.in',
sellingPartner: {
region: sellingPartnerRegions.EU,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const IT = new AmazonMarketplace({
id: 'APJ6JRA9NG5V4',
name: 'Italy',
uri: 'https://www.amazon.it',
sellerCentralUri: 'https://sellercentral.amazon.it',
webServiceUri: 'https://mws-eu.amazonservices.com',
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.DE),
sellingPartner: {
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/jp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const JP = new AmazonMarketplace({
id: 'A1VC38T7YXB528',
name: 'Japan',
uri: 'https://www.amazon.co.jp',
sellerCentralUri: 'https://sellercentral.amazon.co.jp',
webServiceUri: 'https://mws.amazonservices.jp',
advertising: {
countryCode: AmazonMarketplaceAdvertisingCountryCode.JP,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/mx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const MX = new AmazonMarketplace({
id: 'A1AM78C64UM0Y8',
name: 'Mexico',
uri: 'https://www.amazon.com.mx',
sellerCentralUri: 'https://sellercentral.amazon.com.mx',
webServiceUri: 'https://mws.amazonservices.com.mx',
advertising: {
countryCode: AmazonMarketplaceAdvertisingCountryCode.MX,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const NL = new AmazonMarketplace({
id: 'A1805IZSGTT6HS',
name: 'Netherlands',
uri: 'https://www.amazon.nl',
sellerCentralUri: 'https://sellercentral.amazon.nl',
webServiceUri: DE.webServiceUri,
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.NL),
sellingPartner: {
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const PL = new AmazonMarketplace({
id: 'A1C3SOZRARQ6R3',
name: 'Poland',
uri: 'https://www.amazon.pl',
sellerCentralUri: 'https://sellercentral.amazon.pl',
webServiceUri: 'https://mws-eu.amazonservices.com',
sellingPartner: {
region: sellingPartnerRegions.EU,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/sa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export const SA = new AmazonMarketplace({
id: 'A17E79C6D8DWNP',
name: 'Saudi Arabia',
uri: 'https://www.amazon.sa',
sellerCentralUri: 'https://sellercentral.amazon.sa',
webServiceUri: 'https://mws-eu.amazonservices.com',
})
1 change: 1 addition & 0 deletions src/marketplaces/se.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const SE = new AmazonMarketplace({
id: 'A2NODRKZP88ZB9',
name: 'Sweden',
uri: 'https://www.amazon.se',
sellerCentralUri: 'https://sellercentral.amazon.se',
webServiceUri: 'https://mws-eu.amazonservices.com',
sellingPartner: {
region: sellingPartnerRegions.EU,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/sg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const SG = new AmazonMarketplace({
id: 'A19VAU5U5O7RUS',
name: 'Singapore',
uri: 'https://www.amazon.sg',
sellerCentralUri: 'https://sellercentral.amazon.sg',
webServiceUri: 'https://mws-fe.amazonservices.com',
sellingPartner: {
region: sellingPartnerRegions.FE,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const TR = new AmazonMarketplace({
id: 'A33AVAJ2PDY3EV',
name: 'Turkey',
uri: 'https://www.amazon.com.tr',
sellerCentralUri: 'https://sellercentral.amazon.com.tr',
webServiceUri: 'https://mws-eu.amazonservices.com',
sellingPartner: {
region: sellingPartnerRegions.EU,
Expand Down
1 change: 1 addition & 0 deletions src/marketplaces/us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const US = new AmazonMarketplace({
id: 'ATVPDKIKX0DER',
name: 'United States',
uri: 'https://www.amazon.com',
sellerCentralUri: 'https://sellercentral.amazon.com',
webServiceUri: 'https://mws.amazonservices.com',
advertising: {
countryCode: AmazonMarketplaceAdvertisingCountryCode.US,
Expand Down
19 changes: 19 additions & 0 deletions test/__snapshots__/marketplaces.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ AmazonMarketplace {
"currency": "AED",
"id": "A2VIGQ35RCS4UG",
"name": "United Arab Emirates",
"sellerCentralUri": "https://sellercentral.amazon.ae",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand Down Expand Up @@ -68,6 +69,7 @@ AmazonMarketplace {
"currency": "AUD",
"id": "A39IBJ37TRP1C6",
"name": "Australia",
"sellerCentralUri": "https://sellercentral.amazon.com.au",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "us-west-2",
Expand Down Expand Up @@ -109,6 +111,7 @@ AmazonMarketplace {
"currency": "BRL",
"id": "A2Q3Y263D00KWC",
"name": "Brazil",
"sellerCentralUri": "https://sellercentral.amazon.com.br",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "us-east-1",
Expand Down Expand Up @@ -150,6 +153,7 @@ AmazonMarketplace {
"currency": "CAD",
"id": "A2EUQ1WTGCTBG2",
"name": "Canada",
"sellerCentralUri": "https://sellercentral.amazon.ca",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "us-east-1",
Expand Down Expand Up @@ -202,6 +206,7 @@ AmazonMarketplace {
"currency": "EUR",
"id": "A1PA6795UKMFR9",
"name": "Germany",
"sellerCentralUri": "https://sellercentral.amazon.de",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand Down Expand Up @@ -254,6 +259,7 @@ AmazonMarketplace {
"currency": "EUR",
"id": "A1RKKUPIHCS9HS",
"name": "Spain",
"sellerCentralUri": "https://sellercentral.amazon.es",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand Down Expand Up @@ -295,6 +301,7 @@ AmazonMarketplace {
"currency": "EUR",
"id": "A13V1IB3VIYZZH",
"name": "France",
"sellerCentralUri": "https://sellercentral.amazon.fr",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand Down Expand Up @@ -336,6 +343,7 @@ AmazonMarketplace {
"currency": "GBP",
"id": "A1F83G8C2ARO7P",
"name": "United Kingdom",
"sellerCentralUri": "https://sellercentral.amazon.co.uk",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand All @@ -356,6 +364,7 @@ AmazonMarketplace {
"currency": "INR",
"id": "A21TJRUUN4KGV",
"name": "India",
"sellerCentralUri": "https://sellercentral.amazon.in",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand Down Expand Up @@ -397,6 +406,7 @@ AmazonMarketplace {
"currency": "EUR",
"id": "APJ6JRA9NG5V4",
"name": "Italy",
"sellerCentralUri": "https://sellercentral.amazon.it",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand Down Expand Up @@ -438,6 +448,7 @@ AmazonMarketplace {
"currency": "JPY",
"id": "A1VC38T7YXB528",
"name": "Japan",
"sellerCentralUri": "https://sellercentral.amazon.co.jp",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "us-west-2",
Expand Down Expand Up @@ -479,6 +490,7 @@ AmazonMarketplace {
"currency": "MXN",
"id": "A1AM78C64UM0Y8",
"name": "Mexico",
"sellerCentralUri": "https://sellercentral.amazon.com.mx",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "us-east-1",
Expand Down Expand Up @@ -520,6 +532,7 @@ AmazonMarketplace {
"currency": "EUR",
"id": "A1805IZSGTT6HS",
"name": "Netherlands",
"sellerCentralUri": "https://sellercentral.amazon.nl",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand All @@ -540,6 +553,7 @@ AmazonMarketplace {
"currency": "PLN",
"id": "A1C3SOZRARQ6R3",
"name": "Poland",
"sellerCentralUri": "https://sellercentral.amazon.pl",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand All @@ -560,6 +574,7 @@ AmazonMarketplace {
"currency": "SAR",
"id": "A17E79C6D8DWNP",
"name": "Saudi Arabia",
"sellerCentralUri": "https://sellercentral.amazon.sa",
"uri": "https://www.amazon.sa",
"webServiceUri": "https://mws-eu.amazonservices.com",
}
Expand All @@ -571,6 +586,7 @@ AmazonMarketplace {
"currency": "SEK",
"id": "A2NODRKZP88ZB9",
"name": "Sweden",
"sellerCentralUri": "https://sellercentral.amazon.se",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand All @@ -591,6 +607,7 @@ AmazonMarketplace {
"currency": "SGD",
"id": "A19VAU5U5O7RUS",
"name": "Singapore",
"sellerCentralUri": "https://sellercentral.amazon.sg",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "us-west-2",
Expand All @@ -611,6 +628,7 @@ AmazonMarketplace {
"currency": "TRY",
"id": "A33AVAJ2PDY3EV",
"name": "Turkey",
"sellerCentralUri": "https://sellercentral.amazon.com.tr",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
Expand Down Expand Up @@ -652,6 +670,7 @@ AmazonMarketplace {
"currency": "USD",
"id": "ATVPDKIKX0DER",
"name": "United States",
"sellerCentralUri": "https://sellercentral.amazon.com",
"sellingPartner": Object {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "us-east-1",
Expand Down

0 comments on commit f0c765e

Please sign in to comment.