File tree Expand file tree Collapse file tree 4 files changed +13
-5
lines changed
AmazonSpApiSDK/Models/Orders Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ Install-Package CSharpAmazonSpAPI
5959- [x] [ Authorization] ( https://developer-docs.amazon.com/sp-api/docs/authorization-api-v1-reference )
6060- [x] [ Easy Ship] ( https://developer-docs.amazon.com/sp-api/docs/easy-ship-api-v2022-03-23-reference )
6161- [ ] [ A+ Content] ( https://developer-docs.amazon.com/sp-api/docs/selling-partner-api-for-a-content-management )
62+ - [ ] [ Replenishment] ( https://developer-docs.amazon.com/sp-api/docs/replenishment-api-v2022-11-07-reference )
6263
6364
6465#### Vendor
Original file line number Diff line number Diff line change @@ -79,7 +79,13 @@ public enum DeemedResellerCategoryEnum
7979 /// Enum NZ_VOEC for value: NZ_VOEC
8080 /// </summary>
8181 [ EnumMember ( Value = "NZ_VOEC" ) ]
82- NZ_VOEC = 8
82+ NZ_VOEC = 8 ,
83+
84+ /// <summary>
85+ /// Enum JE_VOEC for value: JE_VOEC
86+ /// </summary>
87+ [ EnumMember ( Value = "JE_VOEC" ) ]
88+ JE_VOEC
8389 }
8490
8591 /// <summary>
Original file line number Diff line number Diff line change 11using FikaAmazonAPI . ReportGeneration . ReportDataTable ;
22using System . Collections . Generic ;
3+ using System . Text ;
34
45namespace FikaAmazonAPI . ReportGeneration
56{
67 public class ProductsReport
78 {
89 public List < ProductsRow > Data { get ; set ; } = new List < ProductsRow > ( ) ;
9- public ProductsReport ( string path , string refNumber )
10+ public ProductsReport ( string path , string refNumber , Encoding encoding = default )
1011 {
1112 if ( string . IsNullOrEmpty ( path ) )
1213 return ;
1314
14- var table = Table . ConvertFromCSV ( path ) ;
15+ var table = Table . ConvertFromCSV ( path , encoding : encoding ) ;
1516
1617 List < ProductsRow > values = new List < ProductsRow > ( ) ;
1718 foreach ( var row in table . Rows )
Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ public Table(params string[] header)
4848 this . header = header ;
4949 }
5050
51- public static Table ConvertFromCSV ( string path , char separator = '\t ' )
51+ public static Table ConvertFromCSV ( string path , char separator = '\t ' , Encoding encoding = default )
5252 {
53- var lines = File . ReadAllLines ( path ) ;
53+ var lines = File . ReadAllLines ( path , encoding ?? Encoding . UTF8 ) ;
5454
5555 var table = new Table ( lines . First ( ) . Split ( separator ) ) ;
5656
You can’t perform that action at this time.
0 commit comments