Skip to content

Commit

Permalink
refactor: renames AmazonMarketplaceAdvertisingCountryCode
Browse files Browse the repository at this point in the history
Renames AmazonMarketplaceAdvertisingCountryCode to
AmazonMarketplaceCountryCode to match the factual representation.

BREAKING CHANGE: Renames AmazonMarketplaceAdvertisingCountryCode enum to AmazonMarketplaceCountryCode
  • Loading branch information
moltar authored and Roman committed Mar 9, 2020
1 parent f6e5d05 commit 85198cd
Show file tree
Hide file tree
Showing 18 changed files with 37 additions and 37 deletions.
6 changes: 3 additions & 3 deletions src/amazon-marketplace.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Country code enum.
*/
export enum AmazonMarketplaceAdvertisingCountryCode {
export enum AmazonMarketplaceCountryCode {
AE = 'AE',
AU = 'AU',
BR = 'BR',
Expand Down Expand Up @@ -129,9 +129,9 @@ export interface AmazonMarketplace {
*
* @example
*
* AmazonMarketplaceAdvertisingCountryCode.CA
* AmazonMarketplaceCountryCode.CA
*/
readonly countryCode: AmazonMarketplaceAdvertisingCountryCode
readonly countryCode: AmazonMarketplaceCountryCode

/**
* Currency code for the given marketplace.
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/AE.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/AU.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/BR.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/CA.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
AmazonMarketplace,
AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceCountryCode,
AmazonMarketplaceAdvertisingCurrency,
} from '../amazon-marketplace'
import { US } from './US'
Expand All @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/CN.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/DE.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/ES.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/FR.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/GB.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
AmazonMarketplace,
AmazonMarketplaceAdvertisingTimeZone,
AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceCountryCode,
AmazonMarketplaceAdvertisingCurrency,
} from '../amazon-marketplace'
import { DE } from './DE'
Expand All @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/IN.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/IT.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/JP.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/MX.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/NL.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/SG.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/TR.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/marketplaces/US.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 85198cd

Please sign in to comment.