forked from marketvision/ShipStation4Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADDING FUNCTIONALITY TO UPDATE AND CREATE ORDERS IN BULK. THIS
FUNCTIONALITY DID NOT EXIST BEFORE.
- Loading branch information
Ather Rizvi
committed
Dec 30, 2021
1 parent
1c9d0f9
commit a8683d8
Showing
4 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace ShipStation4Net.Domain.Entities | ||
{ | ||
public class BulkOrderResult | ||
{ | ||
[JsonProperty("orderId")] | ||
public int? OrderId { get; set; } | ||
|
||
[JsonProperty("orderNumber")] | ||
public string OrderNumber { get; set; } | ||
|
||
[JsonProperty("orderKey")] | ||
public string OrderKey { get; set; } | ||
|
||
[JsonProperty("success")] | ||
public bool Success { get; set; } | ||
|
||
[JsonProperty("errorMessage")] | ||
public string ErrorMessage { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Newtonsoft.Json; | ||
using ShipStation4Net.Domain.Entities; | ||
using System.Collections.Generic; | ||
|
||
namespace ShipStation4Net.Responses | ||
{ | ||
public class BulkOrderResponse | ||
{ | ||
[JsonProperty("hasErrors")] | ||
public bool HasErrors { get; set; } | ||
|
||
[JsonProperty("results")] | ||
public List<BulkOrderResult> Results { get; set; } | ||
} | ||
} |