Skip to content

Commit

Permalink
feat!: add Saudi Arabia to Selling Partner (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentoanit authored Oct 28, 2022
1 parent 4f2b00a commit 69c2feb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/marketplaces/sa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
AmazonMarketplaceCountryCode,
AmazonMarketplaceTimeZone,
} from '../amazon-marketplace'
import { sellingPartnerRegions } from '../selling-partner-api-regions'

export const SA = new AmazonMarketplace({
countryCode: AmazonMarketplaceCountryCode.SA,
Expand All @@ -14,4 +15,7 @@ export const SA = new AmazonMarketplace({
uri: 'https://www.amazon.sa',
sellerCentralUri: 'https://sellercentral.amazon.sa',
webServiceUri: 'https://mws-eu.amazonservices.com',
sellingPartner: {
region: sellingPartnerRegions.EU,
},
})
9 changes: 9 additions & 0 deletions test/__snapshots__/marketplaces.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,15 @@ AmazonMarketplace {
"id": "A17E79C6D8DWNP",
"name": "Saudi Arabia",
"sellerCentralUri": "https://sellercentral.amazon.sa",
"sellingPartner": {
"region": AmazonSellingPartnerApiRegion {
"awsRegion": "eu-west-1",
"code": "EU",
"endpoint": "https://sellingpartnerapi-eu.amazon.com",
"name": "Europe",
},
"sellerCentralAuthUri": "https://sellercentral.amazon.sa/apps/authorize/consent",
},
"timeZone": "Asia/Riyadh",
"uri": "https://www.amazon.sa",
"webServiceUri": "https://mws-eu.amazonservices.com",
Expand Down

0 comments on commit 69c2feb

Please sign in to comment.