From 85198cd93758046a6942f3604a83054ac82a3a64 Mon Sep 17 00:00:00 2001 From: Roman Filippov Date: Mon, 9 Mar 2020 21:25:20 +0700 Subject: [PATCH] refactor: renames AmazonMarketplaceAdvertisingCountryCode Renames AmazonMarketplaceAdvertisingCountryCode to AmazonMarketplaceCountryCode to match the factual representation. BREAKING CHANGE: Renames AmazonMarketplaceAdvertisingCountryCode enum to AmazonMarketplaceCountryCode --- src/amazon-marketplace.ts | 6 +++--- src/marketplaces/AE.ts | 4 ++-- src/marketplaces/AU.ts | 4 ++-- src/marketplaces/BR.ts | 4 ++-- src/marketplaces/CA.ts | 4 ++-- src/marketplaces/CN.ts | 4 ++-- src/marketplaces/DE.ts | 4 ++-- src/marketplaces/ES.ts | 4 ++-- src/marketplaces/FR.ts | 4 ++-- src/marketplaces/GB.ts | 4 ++-- src/marketplaces/IN.ts | 4 ++-- src/marketplaces/IT.ts | 4 ++-- src/marketplaces/JP.ts | 4 ++-- src/marketplaces/MX.ts | 4 ++-- src/marketplaces/NL.ts | 4 ++-- src/marketplaces/SG.ts | 4 ++-- src/marketplaces/TR.ts | 4 ++-- src/marketplaces/US.ts | 4 ++-- 18 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/amazon-marketplace.ts b/src/amazon-marketplace.ts index d02deafe..8ad8311e 100644 --- a/src/amazon-marketplace.ts +++ b/src/amazon-marketplace.ts @@ -1,7 +1,7 @@ /** * Country code enum. */ -export enum AmazonMarketplaceAdvertisingCountryCode { +export enum AmazonMarketplaceCountryCode { AE = 'AE', AU = 'AU', BR = 'BR', @@ -129,9 +129,9 @@ export interface AmazonMarketplace { * * @example * - * AmazonMarketplaceAdvertisingCountryCode.CA + * AmazonMarketplaceCountryCode.CA */ - readonly countryCode: AmazonMarketplaceAdvertisingCountryCode + readonly countryCode: AmazonMarketplaceCountryCode /** * Currency code for the given marketplace. diff --git a/src/marketplaces/AE.ts b/src/marketplaces/AE.ts index da0ed144..c9cd99a1 100644 --- a/src/marketplaces/AE.ts +++ b/src/marketplaces/AE.ts @@ -1,12 +1,12 @@ import { AmazonMarketplace, AmazonMarketplaceAdvertisingTimeZone, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const AE = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.AE, + countryCode: AmazonMarketplaceCountryCode.AE, currency: AmazonMarketplaceAdvertisingCurrency.AED, id: 'A2VIGQ35RCS4UG', name: 'United Arab Emirates', diff --git a/src/marketplaces/AU.ts b/src/marketplaces/AU.ts index c6e4eb34..ba08b679 100644 --- a/src/marketplaces/AU.ts +++ b/src/marketplaces/AU.ts @@ -1,12 +1,12 @@ import { AmazonMarketplace, AmazonMarketplaceAdvertisingTimeZone, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const AU = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.AU, + countryCode: AmazonMarketplaceCountryCode.AU, currency: AmazonMarketplaceAdvertisingCurrency.AUD, id: 'A39IBJ37TRP1C6', name: 'Australia', diff --git a/src/marketplaces/BR.ts b/src/marketplaces/BR.ts index ed8f3ae1..737f8789 100644 --- a/src/marketplaces/BR.ts +++ b/src/marketplaces/BR.ts @@ -1,11 +1,11 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const BR = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.BR, + countryCode: AmazonMarketplaceCountryCode.BR, currency: AmazonMarketplaceAdvertisingCurrency.BRL, id: 'A2Q3Y263D00KWC', name: 'Brazil', diff --git a/src/marketplaces/CA.ts b/src/marketplaces/CA.ts index d70529b1..d538d144 100644 --- a/src/marketplaces/CA.ts +++ b/src/marketplaces/CA.ts @@ -1,6 +1,6 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' import { US } from './US' @@ -9,7 +9,7 @@ import { US } from './US' * Canada */ export const CA = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.CA, + countryCode: AmazonMarketplaceCountryCode.CA, currency: AmazonMarketplaceAdvertisingCurrency.CAD, id: 'A2EUQ1WTGCTBG2', name: 'Canada', diff --git a/src/marketplaces/CN.ts b/src/marketplaces/CN.ts index 43fc2af3..29dfa19f 100644 --- a/src/marketplaces/CN.ts +++ b/src/marketplaces/CN.ts @@ -1,11 +1,11 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const CN = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.CN, + countryCode: AmazonMarketplaceCountryCode.CN, currency: AmazonMarketplaceAdvertisingCurrency.CNY, id: 'AAHKV2X7AFYLW', name: 'China', diff --git a/src/marketplaces/DE.ts b/src/marketplaces/DE.ts index 676c5727..5757e465 100644 --- a/src/marketplaces/DE.ts +++ b/src/marketplaces/DE.ts @@ -1,12 +1,12 @@ import { AmazonMarketplace, AmazonMarketplaceAdvertisingTimeZone, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const DE = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.DE, + countryCode: AmazonMarketplaceCountryCode.DE, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'A1PA6795UKMFR9', name: 'Germany', diff --git a/src/marketplaces/ES.ts b/src/marketplaces/ES.ts index 10b86e62..7530d112 100644 --- a/src/marketplaces/ES.ts +++ b/src/marketplaces/ES.ts @@ -1,12 +1,12 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' import { DE } from './DE' export const ES = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.ES, + countryCode: AmazonMarketplaceCountryCode.ES, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'A1RKKUPIHCS9HS', name: 'Spain', diff --git a/src/marketplaces/FR.ts b/src/marketplaces/FR.ts index 505eabd0..481fa64c 100644 --- a/src/marketplaces/FR.ts +++ b/src/marketplaces/FR.ts @@ -1,12 +1,12 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' import { DE } from './DE' export const FR = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.FR, + countryCode: AmazonMarketplaceCountryCode.FR, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'A13V1IB3VIYZZH', name: 'France', diff --git a/src/marketplaces/GB.ts b/src/marketplaces/GB.ts index 01ef9b12..43651dde 100644 --- a/src/marketplaces/GB.ts +++ b/src/marketplaces/GB.ts @@ -1,7 +1,7 @@ import { AmazonMarketplace, AmazonMarketplaceAdvertisingTimeZone, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' import { DE } from './DE' @@ -11,7 +11,7 @@ if (!DE.advertising) { } export const GB = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.GB, + countryCode: AmazonMarketplaceCountryCode.GB, currency: AmazonMarketplaceAdvertisingCurrency.GBP, id: 'A1F83G8C2ARO7P', name: 'United Kingdom', diff --git a/src/marketplaces/IN.ts b/src/marketplaces/IN.ts index f987c40a..d3911445 100644 --- a/src/marketplaces/IN.ts +++ b/src/marketplaces/IN.ts @@ -1,11 +1,11 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const IN = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.IN, + countryCode: AmazonMarketplaceCountryCode.IN, currency: AmazonMarketplaceAdvertisingCurrency.INR, id: 'A21TJRUUN4KGV', name: 'India', diff --git a/src/marketplaces/IT.ts b/src/marketplaces/IT.ts index c12fee1f..bcc2684a 100644 --- a/src/marketplaces/IT.ts +++ b/src/marketplaces/IT.ts @@ -1,12 +1,12 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' import { DE } from './DE' export const IT = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.IT, + countryCode: AmazonMarketplaceCountryCode.IT, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'APJ6JRA9NG5V4', name: 'Italy', diff --git a/src/marketplaces/JP.ts b/src/marketplaces/JP.ts index e6c58d58..3a26728b 100644 --- a/src/marketplaces/JP.ts +++ b/src/marketplaces/JP.ts @@ -1,12 +1,12 @@ import { AmazonMarketplace, AmazonMarketplaceAdvertisingTimeZone, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const JP = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.JP, + countryCode: AmazonMarketplaceCountryCode.JP, currency: AmazonMarketplaceAdvertisingCurrency.JPY, id: 'A1VC38T7YXB528', name: 'Japan', diff --git a/src/marketplaces/MX.ts b/src/marketplaces/MX.ts index 276ad869..82cc0b42 100644 --- a/src/marketplaces/MX.ts +++ b/src/marketplaces/MX.ts @@ -1,11 +1,11 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const MX = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.MX, + countryCode: AmazonMarketplaceCountryCode.MX, currency: AmazonMarketplaceAdvertisingCurrency.MXN, id: 'A1AM78C64UM0Y8', name: 'Mexico', diff --git a/src/marketplaces/NL.ts b/src/marketplaces/NL.ts index 886c39de..e3dae0c2 100644 --- a/src/marketplaces/NL.ts +++ b/src/marketplaces/NL.ts @@ -1,12 +1,12 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' import { DE } from './DE' export const NL = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.NL, + countryCode: AmazonMarketplaceCountryCode.NL, currency: AmazonMarketplaceAdvertisingCurrency.EUR, id: 'A1805IZSGTT6HS', name: 'Netherlands', diff --git a/src/marketplaces/SG.ts b/src/marketplaces/SG.ts index 434d80f7..45772775 100644 --- a/src/marketplaces/SG.ts +++ b/src/marketplaces/SG.ts @@ -1,11 +1,11 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const SG = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.SG, + countryCode: AmazonMarketplaceCountryCode.SG, currency: AmazonMarketplaceAdvertisingCurrency.SGD, id: 'A19VAU5U5O7RUS', name: 'Singapore', diff --git a/src/marketplaces/TR.ts b/src/marketplaces/TR.ts index 9b5c715a..4911649c 100644 --- a/src/marketplaces/TR.ts +++ b/src/marketplaces/TR.ts @@ -1,11 +1,11 @@ import { AmazonMarketplace, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const TR = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.TR, + countryCode: AmazonMarketplaceCountryCode.TR, currency: AmazonMarketplaceAdvertisingCurrency.TRY, id: 'A33AVAJ2PDY3EV', name: 'Turkey', diff --git a/src/marketplaces/US.ts b/src/marketplaces/US.ts index 6f590106..ca13d8cf 100644 --- a/src/marketplaces/US.ts +++ b/src/marketplaces/US.ts @@ -1,12 +1,12 @@ import { AmazonMarketplace, AmazonMarketplaceAdvertisingTimeZone, - AmazonMarketplaceAdvertisingCountryCode, + AmazonMarketplaceCountryCode, AmazonMarketplaceAdvertisingCurrency, } from '../amazon-marketplace' export const US = new AmazonMarketplace({ - countryCode: AmazonMarketplaceAdvertisingCountryCode.US, + countryCode: AmazonMarketplaceCountryCode.US, currency: AmazonMarketplaceAdvertisingCurrency.USD, id: 'ATVPDKIKX0DER', name: 'United States',