From 9c110d49c78611859c7504f27994560a2d15ecfe Mon Sep 17 00:00:00 2001 From: Toan Nguyen Date: Mon, 24 Oct 2022 15:05:18 +0700 Subject: [PATCH] feat: add Amazon marketplace time zones --- README.md | 2 ++ src/amazon-marketplace.ts | 29 ++++++++++++++++++++ src/marketplaces/ae.ts | 2 ++ src/marketplaces/au.ts | 2 ++ src/marketplaces/be.ts | 2 ++ src/marketplaces/br.ts | 2 ++ src/marketplaces/ca.ts | 2 ++ src/marketplaces/cn.ts | 2 ++ src/marketplaces/de.ts | 2 ++ src/marketplaces/eg.ts | 2 ++ src/marketplaces/es.ts | 2 ++ src/marketplaces/fr.ts | 2 ++ src/marketplaces/gb.ts | 2 ++ src/marketplaces/in.ts | 2 ++ src/marketplaces/it.ts | 2 ++ src/marketplaces/jp.ts | 2 ++ src/marketplaces/mx.ts | 2 ++ src/marketplaces/nl.ts | 2 ++ src/marketplaces/pl.ts | 2 ++ src/marketplaces/sa.ts | 2 ++ src/marketplaces/se.ts | 2 ++ src/marketplaces/sg.ts | 2 ++ src/marketplaces/tr.ts | 2 ++ src/marketplaces/us.ts | 2 ++ test/__snapshots__/marketplaces.test.ts.snap | 22 +++++++++++++++ 25 files changed, 97 insertions(+) diff --git a/README.md b/README.md index 17529b72..4f2a4db1 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ a structured class. * ID (e.g. `A2EUQ1WTGCTBG2`) * Country code (ISO 3166-1) (e.g. `CA`) +* Amazon marketplace time zone (e.g. `America/Los_Angeles`) * Currency code (ISO 4217) (e.g. `CAD`) * Name (country name) (e.g. `Canada`) * URI (e.g. `https://www.amazon.ca/`) @@ -87,6 +88,7 @@ console.log(CA.advertising.countryCode) ```json { "countryCode": "CA", + "timeZone": "America/Los_Angeles", "currency": "CAD", "id": "A2EUQ1WTGCTBG2", "name": "Canada", diff --git a/src/amazon-marketplace.ts b/src/amazon-marketplace.ts index ab15ee36..72d01456 100644 --- a/src/amazon-marketplace.ts +++ b/src/amazon-marketplace.ts @@ -99,6 +99,26 @@ export enum AmazonMarketplaceAdvertisingTimeZone { EUROPE_WARSAW = 'Europe/Warsaw', } +export enum AmazonMarketplaceTimeZone { + AFRICA_CAIRO = 'Africa/Cairo', + AMERICA_LOS_ANGELES = 'America/Los_Angeles', + AMERICA_SAO_PAULO = 'America/Sao_Paulo', + ASIA_DUBAI = 'Asia/Dubai', + ASIA_INDIA = 'Asia/Kolkata', + ASIA_RIYADH = 'Asia/Riyadh', + ASIA_SHANGHAI = 'Asia/Shanghai', + ASIA_SINGAPORE = 'Asia/Singapore', + ASIA_TOKYO = 'Asia/Tokyo', + AUSTRALIA_SYDNEY = 'Australia/Sydney', + EUROPE_AMSTERDAM = 'Europe/Amsterdam', + EUROPE_BRUSSELS = 'Europe/Brussels', + EUROPE_ISTANBUL = 'Europe/Istanbul', + EUROPE_LONDON = 'Europe/London', + EUROPE_PARIS = 'Europe/Paris', + EUROPE_STOCKHOLM = 'Europe/Stockholm', + EUROPE_WARSAW = 'Europe/Warsaw', +} + export interface AmazonMarketplaceAdvertising { /** * Amazon Advertising account time zone. @@ -218,6 +238,15 @@ export interface AmazonMarketplace { */ readonly countryCode: AmazonMarketplaceCountryCode + /** + * Time zone for the given marketplace. + * + * @example + * + * "America/Los_Angeles" + */ + readonly timeZone: AmazonMarketplaceTimeZone + /** * Currency code for the given marketplace. * diff --git a/src/marketplaces/ae.ts b/src/marketplaces/ae.ts index 84850e9e..1189564b 100644 --- a/src/marketplaces/ae.ts +++ b/src/marketplaces/ae.ts @@ -4,12 +4,14 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const AE = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.AE, + timeZone: AmazonMarketplaceTimeZone.ASIA_DUBAI, currency: AmazonMarketplaceAdvertisingCurrency.AED, id: 'A2VIGQ35RCS4UG', name: 'United Arab Emirates', diff --git a/src/marketplaces/au.ts b/src/marketplaces/au.ts index 391a2362..310cfddf 100644 --- a/src/marketplaces/au.ts +++ b/src/marketplaces/au.ts @@ -4,12 +4,14 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const AU = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.AU, + timeZone: AmazonMarketplaceTimeZone.AUSTRALIA_SYDNEY, currency: AmazonMarketplaceAdvertisingCurrency.AUD, id: 'A39IBJ37TRP1C6', name: 'Australia', diff --git a/src/marketplaces/be.ts b/src/marketplaces/be.ts index 201447f6..bf3009e9 100644 --- a/src/marketplaces/be.ts +++ b/src/marketplaces/be.ts @@ -2,11 +2,13 @@ import { AmazonMarketplace, AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const BE = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.BE, + timeZone: AmazonMarketplaceTimeZone.EUROPE_BRUSSELS, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'AMEN7PMS3EDWL', name: 'Belgium', diff --git a/src/marketplaces/br.ts b/src/marketplaces/br.ts index 18e6dbcb..83eebaab 100644 --- a/src/marketplaces/br.ts +++ b/src/marketplaces/br.ts @@ -4,12 +4,14 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const BR = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.BR, + timeZone: AmazonMarketplaceTimeZone.AMERICA_SAO_PAULO, currency: AmazonMarketplaceAdvertisingCurrency.BRL, id: 'A2Q3Y263D00KWC', name: 'Brazil', diff --git a/src/marketplaces/ca.ts b/src/marketplaces/ca.ts index 1ed33dc1..bc753fe6 100644 --- a/src/marketplaces/ca.ts +++ b/src/marketplaces/ca.ts @@ -4,6 +4,7 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { amazonVendorCentralUriFactory } from '../amazon-vendor-central-uri-factory' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' @@ -14,6 +15,7 @@ import { sellingPartnerRegions } from '../selling-partner-api-regions' */ export const CA = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.CA, + timeZone: AmazonMarketplaceTimeZone.AMERICA_LOS_ANGELES, currency: AmazonMarketplaceAdvertisingCurrency.CAD, id: 'A2EUQ1WTGCTBG2', name: 'Canada', diff --git a/src/marketplaces/cn.ts b/src/marketplaces/cn.ts index 2606d759..c883145e 100644 --- a/src/marketplaces/cn.ts +++ b/src/marketplaces/cn.ts @@ -2,10 +2,12 @@ import { AmazonMarketplace, AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' export const CN = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.CN, + timeZone: AmazonMarketplaceTimeZone.ASIA_SHANGHAI, currency: AmazonMarketplaceAdvertisingCurrency.CNY, id: 'AAHKV2X7AFYLW', name: 'China', diff --git a/src/marketplaces/de.ts b/src/marketplaces/de.ts index 7d23503b..0623e0f9 100644 --- a/src/marketplaces/de.ts +++ b/src/marketplaces/de.ts @@ -3,6 +3,7 @@ import { AmazonMarketplaceAdvertisingCountryCode, AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { amazonVendorCentralUriFactory } from '../amazon-vendor-central-uri-factory' import { europeanAdvertisingFactory } from '../european-advertising-factory' @@ -11,6 +12,7 @@ import { sellingPartnerRegions } from '../selling-partner-api-regions' export const DE = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.DE, + timeZone: AmazonMarketplaceTimeZone.EUROPE_PARIS, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'A1PA6795UKMFR9', name: 'Germany', diff --git a/src/marketplaces/eg.ts b/src/marketplaces/eg.ts index 850b1141..fc9696c7 100644 --- a/src/marketplaces/eg.ts +++ b/src/marketplaces/eg.ts @@ -4,12 +4,14 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const EG = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.EG, + timeZone: AmazonMarketplaceTimeZone.AFRICA_CAIRO, currency: AmazonMarketplaceAdvertisingCurrency.EGP, id: 'ARBP9OOSHTCHU', name: 'Egypt', diff --git a/src/marketplaces/es.ts b/src/marketplaces/es.ts index 9c94feba..ca10ddbe 100644 --- a/src/marketplaces/es.ts +++ b/src/marketplaces/es.ts @@ -3,6 +3,7 @@ import { AmazonMarketplaceAdvertisingCountryCode, AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { amazonVendorCentralUriFactory } from '../amazon-vendor-central-uri-factory' import { europeanAdvertisingFactory } from '../european-advertising-factory' @@ -11,6 +12,7 @@ import { sellingPartnerRegions } from '../selling-partner-api-regions' export const ES = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.ES, + timeZone: AmazonMarketplaceTimeZone.EUROPE_PARIS, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'A1RKKUPIHCS9HS', name: 'Spain', diff --git a/src/marketplaces/fr.ts b/src/marketplaces/fr.ts index 3343f52d..fe192f6f 100644 --- a/src/marketplaces/fr.ts +++ b/src/marketplaces/fr.ts @@ -3,6 +3,7 @@ import { AmazonMarketplaceAdvertisingCountryCode, AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { amazonVendorCentralUriFactory } from '../amazon-vendor-central-uri-factory' import { europeanAdvertisingFactory } from '../european-advertising-factory' @@ -11,6 +12,7 @@ import { sellingPartnerRegions } from '../selling-partner-api-regions' export const FR = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.FR, + timeZone: AmazonMarketplaceTimeZone.EUROPE_PARIS, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'A13V1IB3VIYZZH', name: 'France', diff --git a/src/marketplaces/gb.ts b/src/marketplaces/gb.ts index ef4bb565..348a29a1 100644 --- a/src/marketplaces/gb.ts +++ b/src/marketplaces/gb.ts @@ -4,6 +4,7 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { europeanSellerCentralUriFactory } from '../european-seller-central-uri-factory' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' @@ -16,6 +17,7 @@ if (!DE.advertising) { export const GB = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.GB, + timeZone: AmazonMarketplaceTimeZone.EUROPE_LONDON, currency: AmazonMarketplaceAdvertisingCurrency.GBP, id: 'A1F83G8C2ARO7P', name: 'United Kingdom', diff --git a/src/marketplaces/in.ts b/src/marketplaces/in.ts index 88ff32f7..fa290f95 100644 --- a/src/marketplaces/in.ts +++ b/src/marketplaces/in.ts @@ -4,12 +4,14 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const IN = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.IN, + timeZone: AmazonMarketplaceTimeZone.ASIA_INDIA, currency: AmazonMarketplaceAdvertisingCurrency.INR, id: 'A21TJRUUN4KGV', name: 'India', diff --git a/src/marketplaces/it.ts b/src/marketplaces/it.ts index 255d66b3..b3f6b0eb 100644 --- a/src/marketplaces/it.ts +++ b/src/marketplaces/it.ts @@ -3,6 +3,7 @@ import { AmazonMarketplaceAdvertisingCountryCode, AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { amazonVendorCentralUriFactory } from '../amazon-vendor-central-uri-factory' import { europeanAdvertisingFactory } from '../european-advertising-factory' @@ -11,6 +12,7 @@ import { sellingPartnerRegions } from '../selling-partner-api-regions' export const IT = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.IT, + timeZone: AmazonMarketplaceTimeZone.EUROPE_PARIS, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'APJ6JRA9NG5V4', name: 'Italy', diff --git a/src/marketplaces/jp.ts b/src/marketplaces/jp.ts index 28180afc..4672ce05 100644 --- a/src/marketplaces/jp.ts +++ b/src/marketplaces/jp.ts @@ -4,12 +4,14 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const JP = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.JP, + timeZone: AmazonMarketplaceTimeZone.ASIA_TOKYO, currency: AmazonMarketplaceAdvertisingCurrency.JPY, id: 'A1VC38T7YXB528', name: 'Japan', diff --git a/src/marketplaces/mx.ts b/src/marketplaces/mx.ts index 791757a2..1a15afa2 100644 --- a/src/marketplaces/mx.ts +++ b/src/marketplaces/mx.ts @@ -4,12 +4,14 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const MX = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.MX, + timeZone: AmazonMarketplaceTimeZone.AMERICA_LOS_ANGELES, currency: AmazonMarketplaceAdvertisingCurrency.MXN, id: 'A1AM78C64UM0Y8', name: 'Mexico', diff --git a/src/marketplaces/nl.ts b/src/marketplaces/nl.ts index c53783dd..db08418e 100644 --- a/src/marketplaces/nl.ts +++ b/src/marketplaces/nl.ts @@ -4,6 +4,7 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { amazonVendorCentralUriFactory } from '../amazon-vendor-central-uri-factory' import { europeanAdvertisingFactory } from '../european-advertising-factory' @@ -12,6 +13,7 @@ import { DE } from './de' export const NL = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.NL, + timeZone: AmazonMarketplaceTimeZone.EUROPE_AMSTERDAM, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'A1805IZSGTT6HS', name: 'Netherlands', diff --git a/src/marketplaces/pl.ts b/src/marketplaces/pl.ts index 7c08d2ec..22d8f6da 100644 --- a/src/marketplaces/pl.ts +++ b/src/marketplaces/pl.ts @@ -4,6 +4,7 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { amazonVendorCentralUriFactory } from '../amazon-vendor-central-uri-factory' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' @@ -11,6 +12,7 @@ import { sellingPartnerRegions } from '../selling-partner-api-regions' export const PL = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.PL, + timeZone: AmazonMarketplaceTimeZone.EUROPE_WARSAW, currency: AmazonMarketplaceAdvertisingCurrency.PLN, id: 'A1C3SOZRARQ6R3', name: 'Poland', diff --git a/src/marketplaces/sa.ts b/src/marketplaces/sa.ts index 750e0e57..bfa24181 100644 --- a/src/marketplaces/sa.ts +++ b/src/marketplaces/sa.ts @@ -2,10 +2,12 @@ import { AmazonMarketplace, AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' export const SA = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.SA, + timeZone: AmazonMarketplaceTimeZone.ASIA_RIYADH, currency: AmazonMarketplaceAdvertisingCurrency.SAR, id: 'A17E79C6D8DWNP', name: 'Saudi Arabia', diff --git a/src/marketplaces/se.ts b/src/marketplaces/se.ts index ea8e293c..04c10aa6 100644 --- a/src/marketplaces/se.ts +++ b/src/marketplaces/se.ts @@ -4,6 +4,7 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { amazonVendorCentralUriFactory } from '../amazon-vendor-central-uri-factory' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' @@ -11,6 +12,7 @@ import { sellingPartnerRegions } from '../selling-partner-api-regions' export const SE = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.SE, + timeZone: AmazonMarketplaceTimeZone.EUROPE_STOCKHOLM, currency: AmazonMarketplaceAdvertisingCurrency.SEK, id: 'A2NODRKZP88ZB9', name: 'Sweden', diff --git a/src/marketplaces/sg.ts b/src/marketplaces/sg.ts index 850bb2a9..c495cb1b 100644 --- a/src/marketplaces/sg.ts +++ b/src/marketplaces/sg.ts @@ -4,12 +4,14 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const SG = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.SG, + timeZone: AmazonMarketplaceTimeZone.ASIA_SINGAPORE, currency: AmazonMarketplaceAdvertisingCurrency.SGD, id: 'A19VAU5U5O7RUS', name: 'Singapore', diff --git a/src/marketplaces/tr.ts b/src/marketplaces/tr.ts index c9324d3d..0321ed93 100644 --- a/src/marketplaces/tr.ts +++ b/src/marketplaces/tr.ts @@ -4,12 +4,14 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const TR = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.TR, + timeZone: AmazonMarketplaceTimeZone.EUROPE_ISTANBUL, currency: AmazonMarketplaceAdvertisingCurrency.TRY, id: 'A33AVAJ2PDY3EV', name: 'Turkey', diff --git a/src/marketplaces/us.ts b/src/marketplaces/us.ts index aed1bb9c..6e2a9557 100644 --- a/src/marketplaces/us.ts +++ b/src/marketplaces/us.ts @@ -4,12 +4,14 @@ import { AmazonMarketplaceAdvertisingCurrency, AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, + AmazonMarketplaceTimeZone, } from '../amazon-marketplace' import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const US = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.US, + timeZone: AmazonMarketplaceTimeZone.AMERICA_LOS_ANGELES, currency: AmazonMarketplaceAdvertisingCurrency.USD, id: 'ATVPDKIKX0DER', name: 'United States', diff --git a/test/__snapshots__/marketplaces.test.ts.snap b/test/__snapshots__/marketplaces.test.ts.snap index 4da9dac6..c3dc5bb1 100644 --- a/test/__snapshots__/marketplaces.test.ts.snap +++ b/test/__snapshots__/marketplaces.test.ts.snap @@ -38,6 +38,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.ae/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.me/apps/authorize/consent", }, + "timeZone": "Asia/Dubai", "uri": "https://www.amazon.ae", "vendorCentralUri": "https://vendorcentral.amazon.me", "webServiceUri": "https://mws.amazonservices.ae", @@ -82,6 +83,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.com.au/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.com.au/apps/authorize/consent", }, + "timeZone": "Australia/Sydney", "uri": "https://www.amazon.com.au", "vendorCentralUri": "https://vendorcentral.amazon.com.au", "webServiceUri": "https://mws.amazonservices.com.au", @@ -105,6 +107,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.com.be/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.com.be/apps/authorize/consent", }, + "timeZone": "Europe/Brussels", "uri": "https://www.amazon.com.be", "vendorCentralUri": "https://vendorcentral.amazon.com.be", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -149,6 +152,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.com.br/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.com.br/apps/authorize/consent", }, + "timeZone": "America/Sao_Paulo", "uri": "https://www.amazon.com.br", "vendorCentralUri": "https://vendorcentral.amazon.com.br", "webServiceUri": "https://mws.amazonservices.com", @@ -193,6 +197,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.ca/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.ca/apps/authorize/consent", }, + "timeZone": "America/Los_Angeles", "uri": "https://www.amazon.ca", "vendorCentralUri": "https://vendorcentral.amazon.ca", "webServiceUri": "https://mws.amazonservices.ca", @@ -205,6 +210,7 @@ AmazonMarketplace { "currency": "CNY", "id": "AAHKV2X7AFYLW", "name": "China", + "timeZone": "Asia/Shanghai", "uri": "https://www.amazon.cn", "webServiceUri": "https://mws.amazonservices.com.cn", } @@ -248,6 +254,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral-europe.amazon.com/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.de/apps/authorize/consent", }, + "timeZone": "Europe/Paris", "uri": "https://www.amazon.de", "vendorCentralUri": "https://vendorcentral.amazon.de", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -290,6 +297,7 @@ AmazonMarketplace { }, "vendorCentralAuthUri": "https://vendorcentral.amazon.me/apps/authorize/consent", }, + "timeZone": "Africa/Cairo", "uri": "https://www.amazon.eg", "vendorCentralUri": "https://vendorcentral.amazon.me", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -334,6 +342,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral-europe.amazon.com/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.es/apps/authorize/consent", }, + "timeZone": "Europe/Paris", "uri": "https://www.amazon.es", "vendorCentralUri": "https://vendorcentral.amazon.es", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -378,6 +387,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral-europe.amazon.com/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.fr/apps/authorize/consent", }, + "timeZone": "Europe/Paris", "uri": "https://www.amazon.fr", "vendorCentralUri": "https://vendorcentral.amazon.fr", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -422,6 +432,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral-europe.amazon.com/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.co.uk/apps/authorize/consent", }, + "timeZone": "Europe/London", "uri": "https://www.amazon.co.uk", "vendorCentralUri": "https://vendorcentral.amazon.co.uk", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -466,6 +477,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.in/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.in/apps/authorize/consent", }, + "timeZone": "Asia/Kolkata", "uri": "https://www.amazon.in", "vendorCentralUri": "https://vendorcentral.amazon.in", "webServiceUri": "https://mws.amazonservices.in", @@ -510,6 +522,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral-europe.amazon.com/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.it/apps/authorize/consent", }, + "timeZone": "Europe/Paris", "uri": "https://www.amazon.it", "vendorCentralUri": "https://vendorcentral.amazon.it", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -554,6 +567,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.co.jp/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.co.jp/apps/authorize/consent", }, + "timeZone": "Asia/Tokyo", "uri": "https://www.amazon.co.jp", "vendorCentralUri": "https://vendorcentral.amazon.co.jp", "webServiceUri": "https://mws.amazonservices.jp", @@ -598,6 +612,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.com.mx/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.com.mx/apps/authorize/consent", }, + "timeZone": "America/Los_Angeles", "uri": "https://www.amazon.com.mx", "vendorCentralUri": "https://vendorcentral.amazon.com.mx", "webServiceUri": "https://mws.amazonservices.com.mx", @@ -642,6 +657,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.nl/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.nl/apps/authorize/consent", }, + "timeZone": "Europe/Amsterdam", "uri": "https://www.amazon.nl", "vendorCentralUri": "https://vendorcentral.amazon.nl", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -686,6 +702,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.pl/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.pl/apps/authorize/consent", }, + "timeZone": "Europe/Warsaw", "uri": "https://www.amazon.pl", "vendorCentralUri": "https://vendorcentral.amazon.pl", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -699,6 +716,7 @@ AmazonMarketplace { "id": "A17E79C6D8DWNP", "name": "Saudi Arabia", "sellerCentralUri": "https://sellercentral.amazon.sa", + "timeZone": "Asia/Riyadh", "uri": "https://www.amazon.sa", "webServiceUri": "https://mws-eu.amazonservices.com", } @@ -742,6 +760,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.se/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.se/apps/authorize/consent", }, + "timeZone": "Europe/Stockholm", "uri": "https://www.amazon.se", "vendorCentralUri": "https://vendorcentral.amazon.se", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -786,6 +805,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.sg/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.com.sg/apps/authorize/consent", }, + "timeZone": "Asia/Singapore", "uri": "https://www.amazon.sg", "vendorCentralUri": "https://vendorcentral.amazon.com.sg", "webServiceUri": "https://mws-fe.amazonservices.com", @@ -830,6 +850,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.com.tr/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.com.tr/apps/authorize/consent", }, + "timeZone": "Europe/Istanbul", "uri": "https://www.amazon.com.tr", "vendorCentralUri": "https://vendorcentral.amazon.com.tr", "webServiceUri": "https://mws-eu.amazonservices.com", @@ -874,6 +895,7 @@ AmazonMarketplace { "sellerCentralAuthUri": "https://sellercentral.amazon.com/apps/authorize/consent", "vendorCentralAuthUri": "https://vendorcentral.amazon.com/apps/authorize/consent", }, + "timeZone": "America/Los_Angeles", "uri": "https://www.amazon.com", "vendorCentralUri": "https://vendorcentral.amazon.com", "webServiceUri": "https://mws.amazonservices.com",