Skip to content

Commit

Permalink
feat: adds advertising to Belgium
Browse files Browse the repository at this point in the history
  • Loading branch information
moltar committed Jan 27, 2023
1 parent f5fc74d commit fc5a3e5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/amazon-marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export enum AmazonMarketplaceAdvertisingCurrency {
export enum AmazonMarketplaceAdvertisingCountryCode {
AE = 'AE',
AU = 'AU',
BE = 'BE',
BR = 'BR',
CA = 'CA',
DE = 'DE',
Expand Down Expand Up @@ -94,6 +95,7 @@ export enum AmazonMarketplaceAdvertisingTimeZone {
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',
Expand Down
7 changes: 7 additions & 0 deletions src/marketplaces/be.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import {
AmazonMarketplace,
AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceAdvertisingCurrency,
AmazonMarketplaceAdvertisingTimeZone,
AmazonMarketplaceCountryCode,
AmazonMarketplaceTimeZone,
} from '../amazon-marketplace'
import { europeanAdvertisingFactory } from '../european-advertising-factory'
import { sellingPartnerRegions } from '../selling-partner-api-regions'

export const BE = new AmazonMarketplace({
Expand All @@ -21,6 +24,10 @@ export const BE = new AmazonMarketplace({
sellerCentralUri: 'https://sellercentral.amazon.com.be',
vendorCentralUri: 'https://vendorcentral.amazon.com.be',
webServiceUri: 'https://mws-eu.amazonservices.com',
advertising: europeanAdvertisingFactory(
AmazonMarketplaceAdvertisingCountryCode.BE,
AmazonMarketplaceAdvertisingTimeZone.EUROPE_BRUSSELS,
),
sellingPartner: {
region: sellingPartnerRegions.EU,
},
Expand Down
21 changes: 21 additions & 0 deletions test/__snapshots__/marketplaces.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,27 @@ AmazonMarketplace {

exports[`marketplace BE should match snapshot 1`] = `
AmazonMarketplace {
"advertising": {
"bids": {
"sponsoredBrands": {
"max": 3900,
"min": 10,
},
"sponsoredProducts": {
"max": 100000,
"min": 2,
},
},
"countryCode": "BE",
"region": AmazonMarketplaceAdvertisingRegion {
"accessTokenUri": "https://api.amazon.co.uk/auth/o2/token",
"authorizationUri": "https://eu.account.amazon.com/ap/oa",
"code": "EU",
"endpoint": "https://advertising-api-eu.amazon.com",
"name": "Europe",
},
"timeZone": "Europe/Brussels",
},
"countryCode": "BE",
"currency": "EUR",
"id": "AMEN7PMS3EDWL",
Expand Down

0 comments on commit fc5a3e5

Please sign in to comment.