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
59
59
- [x] [ Authorization] ( https://developer-docs.amazon.com/sp-api/docs/authorization-api-v1-reference )
60
60
- [x] [ Easy Ship] ( https://developer-docs.amazon.com/sp-api/docs/easy-ship-api-v2022-03-23-reference )
61
61
- [ ] [ 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 )
62
63
63
64
64
65
#### Vendor
Original file line number Diff line number Diff line change @@ -79,7 +79,13 @@ public enum DeemedResellerCategoryEnum
79
79
/// Enum NZ_VOEC for value: NZ_VOEC
80
80
/// </summary>
81
81
[ 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
83
89
}
84
90
85
91
/// <summary>
Original file line number Diff line number Diff line change 1
1
using FikaAmazonAPI . ReportGeneration . ReportDataTable ;
2
2
using System . Collections . Generic ;
3
+ using System . Text ;
3
4
4
5
namespace FikaAmazonAPI . ReportGeneration
5
6
{
6
7
public class ProductsReport
7
8
{
8
9
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 )
10
11
{
11
12
if ( string . IsNullOrEmpty ( path ) )
12
13
return ;
13
14
14
- var table = Table . ConvertFromCSV ( path ) ;
15
+ var table = Table . ConvertFromCSV ( path , encoding : encoding ) ;
15
16
16
17
List < ProductsRow > values = new List < ProductsRow > ( ) ;
17
18
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)
48
48
this . header = header ;
49
49
}
50
50
51
- public static Table ConvertFromCSV ( string path , char separator = '\t ' )
51
+ public static Table ConvertFromCSV ( string path , char separator = '\t ' , Encoding encoding = default )
52
52
{
53
- var lines = File . ReadAllLines ( path ) ;
53
+ var lines = File . ReadAllLines ( path , encoding ?? Encoding . UTF8 ) ;
54
54
55
55
var table = new Table ( lines . First ( ) . Split ( separator ) ) ;
56
56
You can’t perform that action at this time.
0 commit comments