Skip to content

Commit cba16b2

Browse files
authored
Merge pull request #337 from J-W-Chan/main
2 parents e4865ba + 7e7acc3 commit cba16b2

File tree

4 files changed

+125
-1
lines changed

4 files changed

+125
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
using Newtonsoft.Json;
2+
3+
namespace FikaAmazonAPI.NotificationMessages
4+
{
5+
public class MfnOrderStatusChangeNotification
6+
{
7+
[JsonProperty("SellerId")]
8+
public string SellerId { get; set; }
9+
10+
[JsonProperty("MarketplaceId")]
11+
public string MarketplaceId { get; set; }
12+
13+
[JsonProperty("AmazonOrderId")]
14+
public string AmazonOrderId { get; set; }
15+
16+
[JsonProperty("PurchaseDate")]
17+
public long PurchaseDate { get; set; }
18+
19+
[JsonProperty("OrderStatus")]
20+
public string OrderStatus { get; set; }
21+
22+
[JsonProperty("DestinationPostalCode")]
23+
public string DestinationPostalCode { get; set; }
24+
25+
[JsonProperty("SupplySourceId")]
26+
public string SupplySourceId { get; set; }
27+
28+
[JsonProperty("OrderItemId")]
29+
public string OrderItemId { get; set; }
30+
31+
[JsonProperty("SellerSKU")]
32+
public string SellerSku { get; set; }
33+
34+
[JsonProperty("Quantity")]
35+
public int Quantity { get; set; }
36+
}
37+
}

Source/FikaAmazonAPI/NotificationMessages/NotificationPayload.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,37 @@ public class NotificationPayload
1010
/// </summary>
1111
[JsonProperty("anyOfferChangedNotification")]
1212
public AnyOfferChangedNotification AnyOfferChangedNotification { get; set; }
13-
13+
1414
[JsonProperty("b2bAnyOfferChangedNotification")]
1515
public B2BAnyOfferChangedNotification B2BAnyOfferChangedNotification { get; set; }
16+
1617
/// <summary>
1718
/// An explanation about the purpose of this instance.
1819
/// </summary>
1920
[JsonProperty("feePromotionNotification")]
2021
public FeePromotionNotification FeePromotionNotification { get; set; }
22+
2123
[JsonProperty("fbaOutboundShipmentStatusNotification")]
2224
public FbaOutboundShipmentStatusNotification FbaOutboundShipmentStatusNotification { get; set; }
25+
2326
[JsonProperty("fulfillmentOrderStatusNotification")]
2427
public FulfillmentOrderStatusNotification FulfillmentOrderStatusNotification { get; set; }
2528

29+
[JsonProperty("MFNOrderStatusChangeNotification")]
30+
public MfnOrderStatusChangeNotification MfnOrderStatusChangeNotification { get; set; }
31+
32+
[JsonProperty("OrderNotification")]
33+
public OrderNotification OrderNotification { get; set; }
34+
2635
[JsonProperty("reportProcessingFinishedNotification")]
2736
public ReportProcessingFinishedNotification ReportProcessingFinishedNotification { get; set; }
2837

2938
[JsonProperty("feedProcessingFinishedNotification")]
3039
public FeedProcessingFinishedNotification FeedProcessingFinishedNotification { get; set; }
40+
41+
[JsonProperty("OrderStatusChangeNotification")]
42+
public OrderStatusChangeNotification OrderStatusChangeNotification { get; set; }
43+
3144
/// <summary>
3245
/// An explanation about the purpose of this instance.
3346
/// </summary>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using Newtonsoft.Json;
2+
3+
namespace FikaAmazonAPI.NotificationMessages
4+
{
5+
public class OrderNotification
6+
{
7+
[JsonProperty("SellerId")]
8+
public string SellerId { get; set; }
9+
10+
[JsonProperty("AmazonOrderId")]
11+
public string AmazonOrderId { get; set; }
12+
13+
[JsonProperty("PurchaseDate")]
14+
public long PurchaseDate { get; set; }
15+
16+
[JsonProperty("OrderStatus")]
17+
public string OrderStatus { get; set; }
18+
19+
[JsonProperty("DestinationPostalCode")]
20+
public string DestinationPostalCode { get; set; }
21+
22+
[JsonProperty("SupplySourceId")]
23+
public string SupplySourceId { get; set; }
24+
25+
[JsonProperty("OrderItemId")]
26+
public string OrderItemId { get; set; }
27+
28+
[JsonProperty("SellerSKU")]
29+
public string SellerSku { get; set; }
30+
31+
[JsonProperty("Quantity")]
32+
public int Quantity { get; set; }
33+
}
34+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using Newtonsoft.Json;
2+
3+
namespace FikaAmazonAPI.NotificationMessages
4+
{
5+
public class OrderStatusChangeNotification
6+
{
7+
[JsonProperty("SellerId")]
8+
public string SellerId { get; set; }
9+
10+
[JsonProperty("MarketplaceId")]
11+
public string MarketplaceId { get; set; }
12+
13+
[JsonProperty("AmazonOrderId")]
14+
public string AmazonOrderId { get; set; }
15+
16+
[JsonProperty("PurchaseDate")]
17+
public long? PurchaseDate { get; set; }
18+
19+
[JsonProperty("OrderStatus")]
20+
public string OrderStatus { get; set; }
21+
22+
[JsonProperty("DestinationPostalCode")]
23+
public object DestinationPostalCode { get; set; }
24+
25+
[JsonProperty("SupplySourceId")]
26+
public object SupplySourceId { get; set; }
27+
28+
[JsonProperty("OrderItemId")]
29+
public string OrderItemId { get; set; }
30+
31+
[JsonProperty("SellerSKU")]
32+
public string SellerSku { get; set; }
33+
34+
[JsonProperty("Quantity")]
35+
public int Quantity { get; set; }
36+
37+
[JsonProperty("FulfillmentChannel")]
38+
public string FulfillmentChannel { get; set; }
39+
}
40+
}

0 commit comments

Comments
 (0)