-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the result type of the assigend fulfillment order service meth…
…od from Ienumerable to a list result type.
- Loading branch information
1 parent
d941d9d
commit 3d673b4
Showing
6 changed files
with
164 additions
and
24 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace ShopifySharp | ||
{ | ||
/// <summary> | ||
/// An object representing a Shopify assigned fulfillment order. | ||
/// </summary> | ||
public class AssignedFulfillmentOrder : ShopifyObject | ||
{ | ||
/// <summary> | ||
/// The ID of the fulfillment order's assigned location. This is the location from which the order is expected to be fulfilled. | ||
/// </summary> | ||
[JsonProperty("assigned_location_id")] | ||
public long? AssignedLocationId { get; set; } | ||
|
||
/// <summary> | ||
/// The destination where the items should be sent upon fulfillment. | ||
/// </summary> | ||
[JsonProperty("destination")] | ||
public FulfillmentOrderDestination Destination { get; set; } | ||
|
||
/// <summary> | ||
/// Represents line items belonging to a fulfillment order: | ||
/// </summary> | ||
[JsonProperty("line_items")] | ||
public IEnumerable<AssignedFulfillmentOrderLineItem> LineItems { get; set; } | ||
|
||
/// <summary> | ||
/// The ID of the order that's associated with the fulfillment order. | ||
/// </summary> | ||
[JsonProperty("order_id")] | ||
public long? OrderId { get; set; } | ||
|
||
/// <summary> | ||
/// The status of the fulfillment order. | ||
/// unsubmitted: The initial request status for the newly-created fulfillment orders. This is the only valid request status for fulfillment orders that aren't assigned to a fulfillment service. | ||
/// submitted: The merchant requested fulfillment for this fulfillment order. | ||
/// accepted: The fulfillment service accepted the merchant's fulfillment request. | ||
/// rejected: The fulfillment service rejected the merchant's fulfillment request. | ||
/// cancellation_requested: The merchant requested a cancellation of the fulfillment request for this fulfillment order. | ||
/// cancellation_accepted: The fulfillment service accepted the merchant's fulfillment cancellation request. | ||
/// cancellation_rejected: The fulfillment service rejected the merchant's fulfillment cancellation request. | ||
/// closed: The fulfillment service closed the fulfillment order without completing it. | ||
/// </summary> | ||
[JsonProperty("request_status")] | ||
public string RequestStatus { get; set; } | ||
|
||
/// <summary> | ||
/// The ID of the shop that's associated with the fulfillment order. | ||
/// </summary> | ||
[JsonProperty("shop_id")] | ||
public long? ShopId { get; set; } | ||
|
||
/// <summary> | ||
/// The status of the fulfillment order. Valid values: | ||
/// open: Default state for newly created fulfillment orders. | ||
/// in_progress: The fulfillment order is being processed. | ||
/// cancelled: The fulfillment order has been cancelled by the merchant. | ||
/// incomplete: The fulfillment order cannot be completed as requested. | ||
/// closed: The fulfillment order has been completed and closed. | ||
/// </summary> | ||
[JsonProperty("status")] | ||
public string Status { 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,43 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace ShopifySharp | ||
{ | ||
public class AssignedFulfillmentOrderLineItem : ShopifyObject | ||
{ | ||
/// <summary> | ||
/// The ID of the shop associated with the fulfillment order line item. | ||
/// </summary> | ||
[JsonProperty("shop_id")] | ||
public long? ShopId { get; set; } | ||
|
||
/// <summary> | ||
/// The ID of the fulfillment order associated with this line item. | ||
/// </summary> | ||
[JsonProperty("fulfillment_order_id")] | ||
public long? FulfillmentOrderId { get; set; } | ||
|
||
/// <summary> | ||
/// The ID of the line item associated with this fulfillment order line item. | ||
/// </summary> | ||
[JsonProperty("line_item_id")] | ||
public long? LineItemId { get; set; } | ||
|
||
/// <summary> | ||
/// The ID of the inventory item associated with this fulfillment order line item. | ||
/// </summary> | ||
[JsonProperty("inventory_item_id")] | ||
public long? InventoryItemId { get; set; } | ||
|
||
/// <summary> | ||
/// The total number of units to be fulfilled. | ||
/// </summary> | ||
[JsonProperty("quantity")] | ||
public long? Quantity { get; set; } | ||
|
||
/// <summary> | ||
/// The number of units remaining to be fulfilled. | ||
/// </summary> | ||
[JsonProperty("fulfillable_quantity")] | ||
public long? FulfillableQuantity { 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
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