Skip to content

Commit

Permalink
Merge pull request abuzuhri#705 from RinusPienaar/main
Browse files Browse the repository at this point in the history
  • Loading branch information
abuzuhri authored Jan 25, 2024
2 parents 91814bc + af5c89c commit 1409f25
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Source/FikaAmazonAPI/ConstructFeed/BaseXML.cs
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,12 @@ public enum BaseCurrencyCode
/// </summary>
[EnumMember(Value = "EGP")]
EGP,

/// <summary>
/// Enum ZAR for value: ZAR
/// </summary>
[EnumMember(Value = "ZAR")]
ZAR,
}

/// <remarks/>
Expand Down
3 changes: 1 addition & 2 deletions Source/FikaAmazonAPI/Utils/Country.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ private Country(string code, string name, string domain, string sellercentralUrl
public static Country AU { get { return new Country("AU", "Australia", "com.au", "https://sellercentral.amazon.com.au", "https://vendorcentral.amazon.com.au"); } }
public static Country JP { get { return new Country("JP", "Japan", "co.jp", "https://sellercentral.amazon.co.jp", "https://vendorcentral.amazon.co.jp"); } }



public static Country ZA { get { return new Country("ZA", "South Africa", "co.za", "https://sellercentral.amazon.co.za", "https://vendorcentral.amazon.co.za"); } }
}
}
5 changes: 3 additions & 2 deletions Source/FikaAmazonAPI/Utils/MarketPlace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static MarketPlace GetMarketPlaceByID(string id)
list.Add(Spain); list.Add(UnitedKingdom); list.Add(France); list.Add(Belgium);
list.Add(Netherlands); list.Add(Germany); list.Add(Italy); list.Add(Sweden);
list.Add(Egypt); list.Add(Poland); list.Add(Turkey); list.Add(UnitedArabEmirates);
list.Add(India); list.Add(SaudiArabia);
list.Add(India); list.Add(SaudiArabia); list.Add(SouthAfrica);
//FarEast
list.Add(Singapore); list.Add(Australia); list.Add(Japan);

Expand All @@ -51,7 +51,7 @@ public static MarketPlace GetMarketplaceByCountryCode(string countryCode)
list.Add(Spain); list.Add(UnitedKingdom); list.Add(France); list.Add(Belgium);
list.Add(Netherlands); list.Add(Germany); list.Add(Italy); list.Add(Sweden);
list.Add(Egypt); list.Add(Poland); list.Add(Turkey); list.Add(UnitedArabEmirates);
list.Add(India); list.Add(SaudiArabia);
list.Add(India); list.Add(SaudiArabia); list.Add(SouthAfrica);
//FarEast
list.Add(Singapore); list.Add(Australia); list.Add(Japan);
return list.FirstOrDefault(a => a.Country.Code == countryCode);
Expand Down Expand Up @@ -80,6 +80,7 @@ public static MarketPlace GetMarketplaceByCountryCode(string countryCode)
public static MarketPlace UnitedArabEmirates { get { return new MarketPlace("A2VIGQ35RCS4UG", Region.Europe, Country.AE, BaseCurrencyCode.AED); } }
public static MarketPlace India { get { return new MarketPlace("A21TJRUUN4KGV", Region.Europe, Country.IN, BaseCurrencyCode.INR); } }
public static MarketPlace SaudiArabia { get { return new MarketPlace("A17E79C6D8DWNP", Region.Europe, Country.SA, BaseCurrencyCode.SAR); } }
public static MarketPlace SouthAfrica { get { return new MarketPlace("AE08WJ6YKNBMC", Region.Europe, Country.ZA, BaseCurrencyCode.ZAR); } }

//FarEast
public static MarketPlace Singapore { get { return new MarketPlace("A19VAU5U5O7RUS", Region.FarEast, Country.SG, BaseCurrencyCode.SGD); } }
Expand Down

0 comments on commit 1409f25

Please sign in to comment.