Skip to content

Commit 88c789a

Browse files
committed
2 parents 04eb1ca + 18ed6b9 commit 88c789a

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Orders/OrderItem.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

Source/FikaAmazonAPI/ReportGeneration/ProductsReport.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
using FikaAmazonAPI.ReportGeneration.ReportDataTable;
22
using System.Collections.Generic;
3+
using System.Text;
34

45
namespace 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)

Source/FikaAmazonAPI/ReportGeneration/ReportDataTable/Table.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)