Skip to content

Commit 2180f31

Browse files
committed
fix bug
1 parent 39855d8 commit 2180f31

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Source/FikaAmazonAPI.SampleCode/FeedsSample.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ public async Task SubmitFeedPRICING_JSONAsync(string SKU, decimal PRICE, decimal
200200
msg.MaximumSellerAllowedPrice = new StandardPrice()
201201
{
202202
currency = amazonConnection.GetCurrentMarketplace.CurrencyCode.ToString(),
203-
Value = decimal.Round(maxPrice.Value, 2)
203+
Value = decimal.Round(maxPrice.Value, 2),
204+
start_at = "2024-01-01",
205+
end_at = "2025-01-01"
204206
};
205207
}
206208

@@ -209,7 +211,9 @@ public async Task SubmitFeedPRICING_JSONAsync(string SKU, decimal PRICE, decimal
209211
msg.MinimumSellerAllowedPrice = new StandardPrice()
210212
{
211213
currency = amazonConnection.GetCurrentMarketplace.CurrencyCode.ToString(),
212-
Value = decimal.Round(minPrice.Value, 2)
214+
Value = decimal.Round(minPrice.Value, 2),
215+
start_at = "2024-01-01",
216+
end_at = "2025-01-01"
213217
};
214218
}
215219

Source/FikaAmazonAPI/ConstructFeed/ConstructJSONFeedService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public void AddPriceMessage(IList<PriceMessage> messages)
5454
new SchedulePriceData
5555
{
5656
value_with_tax = itm.MinimumSellerAllowedPrice.Value,
57-
start_at = itm.StandardPrice.start_at,
58-
end_at = itm.StandardPrice.end_at
57+
start_at = itm.MinimumSellerAllowedPrice.start_at,
58+
end_at = itm.MinimumSellerAllowedPrice.end_at
5959
}
6060
}
6161
}
@@ -73,8 +73,8 @@ public void AddPriceMessage(IList<PriceMessage> messages)
7373
new SchedulePriceData
7474
{
7575
value_with_tax = itm.MaximumSellerAllowedPrice.Value,
76-
start_at = itm.StandardPrice.start_at,
77-
end_at = itm.StandardPrice.end_at
76+
start_at = itm.MaximumSellerAllowedPrice.start_at,
77+
end_at = itm.MaximumSellerAllowedPrice.end_at
7878
}
7979
}
8080
}

0 commit comments

Comments
 (0)