1
1
using System . Collections . Generic ;
2
2
using System . Linq ;
3
+ using static FikaAmazonAPI . ConstructFeed . BaseXML ;
3
4
4
5
namespace FikaAmazonAPI . Utils
5
6
{
@@ -10,8 +11,9 @@ public class MarketPlace
10
11
public Region Region { get ; set ; }
11
12
12
13
public Country Country { get ; set ; }
14
+ public BaseCurrencyCode CurrencyCode { get ; set ; }
13
15
14
- private MarketPlace ( string id , Region region , Country country )
16
+ private MarketPlace ( string id , Region region , Country country , BaseCurrencyCode currencyCode )
15
17
{
16
18
ID = id ;
17
19
Region = region ;
@@ -41,8 +43,8 @@ public static MarketPlace GetMarketplaceByCountryCode(string countryCode)
41
43
list . Add ( US ) ; list . Add ( Canada ) ; list . Add ( Mexico ) ; list . Add ( Brazil ) ;
42
44
//Europe
43
45
list . Add ( Spain ) ; list . Add ( UnitedKingdom ) ; list . Add ( France ) ; list . Add ( Belgium ) ;
44
- list . Add ( Netherlands ) ; list . Add ( Germany ) ; list . Add ( Italy ) ; list . Add ( Sweden ) ;
45
- list . Add ( Egypt ) ; list . Add ( Poland ) ; list . Add ( Turkey ) ; list . Add ( UnitedArabEmirates ) ;
46
+ list . Add ( Netherlands ) ; list . Add ( Germany ) ; list . Add ( Italy ) ; list . Add ( Sweden ) ;
47
+ list . Add ( Egypt ) ; list . Add ( Poland ) ; list . Add ( Turkey ) ; list . Add ( UnitedArabEmirates ) ;
46
48
list . Add ( India ) ; list . Add ( SaudiArabia ) ;
47
49
//FarEast
48
50
list . Add ( Singapore ) ; list . Add ( Australia ) ; list . Add ( Japan ) ;
@@ -52,42 +54,31 @@ public static MarketPlace GetMarketplaceByCountryCode(string countryCode)
52
54
//https://developer-docs.amazon.com/sp-api/docs/marketplace-ids
53
55
54
56
//NorthAmerica
55
- public static MarketPlace US { get { return new MarketPlace ( "ATVPDKIKX0DER" , Region . NorthAmerica , Country . US ) ; } }
56
- public static MarketPlace Canada { get { return new MarketPlace ( "A2EUQ1WTGCTBG2" , Region . NorthAmerica , Country . CA ) ; } }
57
- public static MarketPlace Mexico { get { return new MarketPlace ( "A1AM78C64UM0Y8" , Region . NorthAmerica , Country . MX ) ; } }
58
- public static MarketPlace Brazil { get { return new MarketPlace ( "A2Q3Y263D00KWC" , Region . NorthAmerica , Country . BR ) ; } }
57
+ public static MarketPlace US { get { return new MarketPlace ( "ATVPDKIKX0DER" , Region . NorthAmerica , Country . US , BaseCurrencyCode . USD ) ; } }
58
+ public static MarketPlace Canada { get { return new MarketPlace ( "A2EUQ1WTGCTBG2" , Region . NorthAmerica , Country . CA , BaseCurrencyCode . CAD ) ; } }
59
+ public static MarketPlace Mexico { get { return new MarketPlace ( "A1AM78C64UM0Y8" , Region . NorthAmerica , Country . MX , BaseCurrencyCode . MXN ) ; } }
60
+ public static MarketPlace Brazil { get { return new MarketPlace ( "A2Q3Y263D00KWC" , Region . NorthAmerica , Country . BR , BaseCurrencyCode . BRL ) ; } }
59
61
60
62
//Europe
61
- public static MarketPlace Spain { get { return new MarketPlace ( "A1RKKUPIHCS9HS" , Region . Europe , Country . ES ) ; } }
62
- public static MarketPlace UnitedKingdom { get { return new MarketPlace ( "A1F83G8C2ARO7P" , Region . Europe , Country . GB ) ; } }
63
- public static MarketPlace France { get { return new MarketPlace ( "A13V1IB3VIYZZH" , Region . Europe , Country . FR ) ; } }
64
- public static MarketPlace Belgium { get { return new MarketPlace ( "AMEN7PMS3EDWL" , Region . Europe , Country . BE ) ; } }
65
- public static MarketPlace Netherlands { get { return new MarketPlace ( "A1805IZSGTT6HS" , Region . Europe , Country . NL ) ; } }
66
- public static MarketPlace Germany { get { return new MarketPlace ( "A1PA6795UKMFR9" , Region . Europe , Country . DE ) ; } }
67
- public static MarketPlace Italy { get { return new MarketPlace ( "APJ6JRA9NG5V4" , Region . Europe , Country . IT ) ; } }
68
- public static MarketPlace Sweden { get { return new MarketPlace ( "A2NODRKZP88ZB9" , Region . Europe , Country . SE ) ; } }
69
- public static MarketPlace Egypt { get { return new MarketPlace ( "ARBP9OOSHTCHU" , Region . Europe , Country . EG ) ; } }
70
- public static MarketPlace Poland { get { return new MarketPlace ( "A1C3SOZRARQ6R3" , Region . Europe , Country . PL ) ; } }
71
- public static MarketPlace Turkey { get { return new MarketPlace ( "A33AVAJ2PDY3EV" , Region . Europe , Country . TR ) ; } }
72
- public static MarketPlace UnitedArabEmirates { get { return new MarketPlace ( "A2VIGQ35RCS4UG" , Region . Europe , Country . AE ) ; } }
73
- public static MarketPlace India { get { return new MarketPlace ( "A21TJRUUN4KGV" , Region . Europe , Country . IN ) ; } }
74
- public static MarketPlace SaudiArabia { get { return new MarketPlace ( "A17E79C6D8DWNP" , Region . Europe , Country . SA ) ; } }
63
+ public static MarketPlace Spain { get { return new MarketPlace ( "A1RKKUPIHCS9HS" , Region . Europe , Country . ES , BaseCurrencyCode . EUR ) ; } }
64
+ public static MarketPlace UnitedKingdom { get { return new MarketPlace ( "A1F83G8C2ARO7P" , Region . Europe , Country . GB , BaseCurrencyCode . GBP ) ; } }
65
+ public static MarketPlace France { get { return new MarketPlace ( "A13V1IB3VIYZZH" , Region . Europe , Country . FR , BaseCurrencyCode . EUR ) ; } }
66
+ public static MarketPlace Belgium { get { return new MarketPlace ( "AMEN7PMS3EDWL" , Region . Europe , Country . BE , BaseCurrencyCode . EUR ) ; } }
67
+ public static MarketPlace Netherlands { get { return new MarketPlace ( "A1805IZSGTT6HS" , Region . Europe , Country . NL , BaseCurrencyCode . EUR ) ; } }
68
+ public static MarketPlace Germany { get { return new MarketPlace ( "A1PA6795UKMFR9" , Region . Europe , Country . DE , BaseCurrencyCode . EUR ) ; } }
69
+ public static MarketPlace Italy { get { return new MarketPlace ( "APJ6JRA9NG5V4" , Region . Europe , Country . IT , BaseCurrencyCode . EUR ) ; } }
70
+ public static MarketPlace Sweden { get { return new MarketPlace ( "A2NODRKZP88ZB9" , Region . Europe , Country . SE , BaseCurrencyCode . SEK ) ; } }
71
+ public static MarketPlace Egypt { get { return new MarketPlace ( "ARBP9OOSHTCHU" , Region . Europe , Country . EG , BaseCurrencyCode . EGP ) ; } }
72
+ public static MarketPlace Poland { get { return new MarketPlace ( "A1C3SOZRARQ6R3" , Region . Europe , Country . PL , BaseCurrencyCode . PLN ) ; } }
73
+ public static MarketPlace Turkey { get { return new MarketPlace ( "A33AVAJ2PDY3EV" , Region . Europe , Country . TR , BaseCurrencyCode . TRY ) ; } }
74
+ public static MarketPlace UnitedArabEmirates { get { return new MarketPlace ( "A2VIGQ35RCS4UG" , Region . Europe , Country . AE , BaseCurrencyCode . AED ) ; } }
75
+ public static MarketPlace India { get { return new MarketPlace ( "A21TJRUUN4KGV" , Region . Europe , Country . IN , BaseCurrencyCode . INR ) ; } }
76
+ public static MarketPlace SaudiArabia { get { return new MarketPlace ( "A17E79C6D8DWNP" , Region . Europe , Country . SA , BaseCurrencyCode . SAR ) ; } }
75
77
76
78
//FarEast
77
- public static MarketPlace Singapore { get { return new MarketPlace ( "A19VAU5U5O7RUS" , Region . FarEast , Country . SG ) ; } }
78
- public static MarketPlace Australia { get { return new MarketPlace ( "A39IBJ37TRP1C6" , Region . FarEast , Country . AU ) ; } }
79
- public static MarketPlace Japan { get { return new MarketPlace ( "A1VC38T7YXB528" , Region . FarEast , Country . JP ) ; } }
80
-
81
-
82
-
83
-
84
-
79
+ public static MarketPlace Singapore { get { return new MarketPlace ( "A19VAU5U5O7RUS" , Region . FarEast , Country . SG , BaseCurrencyCode . SGD ) ; } }
80
+ public static MarketPlace Australia { get { return new MarketPlace ( "A39IBJ37TRP1C6" , Region . FarEast , Country . AU , BaseCurrencyCode . AUD ) ; } }
81
+ public static MarketPlace Japan { get { return new MarketPlace ( "A1VC38T7YXB528" , Region . FarEast , Country . JP , BaseCurrencyCode . JPY ) ; } }
85
82
86
83
}
87
-
88
-
89
-
90
-
91
-
92
-
93
84
}
0 commit comments