Skip to content

Commit 43192c2

Browse files
authored
Merge pull request #589 from tkmik/fix-parsing
Fixed parsing some properties for ProductsRow
2 parents eb44848 + ea95bf8 commit 43192c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/FikaAmazonAPI/ReportGeneration/ProductsReport.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ public static ProductsRow FromRow(TableRow rowData, string refNumber)
151151
row.ListingId = rowData.GetString("listing-id");
152152
row.SellerSku = rowData.GetString("seller-sku");
153153
row.Price = DataConverter.GetDecimal(rowData.GetString("price"));
154-
row.Quantity = rowData.GetInt32("quantity");
154+
row.Quantity = rowData.GetInt32Nullable("quantity");
155155
row.OpenDate = rowData.GetString("open-date");
156156
row.ImageUrl = rowData.GetString("image-url");
157157
row.ItemIsMarketplace = rowData.GetString("item-is-marketplace") == "y";
158-
row.ProductIdType = rowData.GetInt32("product-id-type");
158+
row.ProductIdType = rowData.GetInt32Nullable("product-id-type");
159159
row.ZshopShippingFee = rowData.GetString("zshop-shipping-fee");
160160
row.ItemNote = rowData.GetString("item-note");
161-
row.ItemCondition = rowData.GetInt32("zshop-category1");
161+
row.ItemCondition = rowData.GetInt32Nullable("zshop-category1");
162162
row.ZshopCategory1 = rowData.GetString("zshop-category1");
163163
row.ZshopBrowsePath = rowData.GetString("zshop-browse-path");
164164
row.ZshopStorefrontFeature = rowData.GetString("zshop-storefront-feature");
@@ -171,7 +171,7 @@ public static ProductsRow FromRow(TableRow rowData, string refNumber)
171171
row.ProductId = rowData.GetString("product-id");
172172
row.BidForFeaturedPlacement = rowData.GetString("bid-for-featured-placement");
173173
row.AddDelete = rowData.GetString("add-delete");
174-
row.PendingQuantity = rowData.GetInt32("pending-quantity");
174+
row.PendingQuantity = rowData.GetInt32Nullable("pending-quantity");
175175
row.FulfillmentChannel = rowData.GetString("fulfillment-channel");
176176
row.OptionalPaymentTypeExclusion = rowData.GetString("optional-payment-type-exclusion");
177177
row.Status = rowData.GetString("status");

0 commit comments

Comments
 (0)