-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in GUARD-702-Split-Orders-Feature-Overwrites-Order (pull request
#4) 2020-07-22 GUARD-673 GUARD-702 Split-Orders-Feature-Overwrites-Order Approved-by: Maxim Strelsov
- Loading branch information
Showing
12 changed files
with
271 additions
and
2 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
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
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
50 changes: 50 additions & 0 deletions
50
src/ShipStationAccess/V2/Models/Order/ShipStationOrderFulfillment.cs
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,50 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace ShipStationAccess.V2.Models.Order | ||
{ | ||
[ DataContract ] | ||
public sealed class ShipStationOrderFulfillments | ||
{ | ||
[ DataMember( Name = "fulfillments" ) ] | ||
public IEnumerable< ShipStationOrderFulfillment > Fulfillments { get; set; } | ||
|
||
[ DataMember( Name = "total" ) ] | ||
public int Total { get; set; } | ||
|
||
[ DataMember( Name = "page" ) ] | ||
public int Page { get; set; } | ||
|
||
[ DataMember( Name = "pages" ) ] | ||
public int Pages { get; set; } | ||
} | ||
|
||
[ DataContract ] | ||
public sealed class ShipStationOrderFulfillment | ||
{ | ||
[ DataMember( Name = "fulfillmentId" ) ] | ||
public long Id { get; set; } | ||
|
||
[ DataMember( Name = "orderId" ) ] | ||
public long OrderId { get; set; } | ||
|
||
[ DataMember( Name = "trackingNumber" ) ] | ||
public string TrackingNumber { get; set; } | ||
|
||
[ DataMember( Name = "createDate" ) ] | ||
public DateTime CreateDate { get; set; } | ||
|
||
[ DataMember( Name = "shipDate" ) ] | ||
public DateTime ShipDate { get; set; } | ||
|
||
[ DataMember( Name = "deliveryDate" ) ] | ||
public DateTime? DeliveryDate { get; set; } | ||
|
||
[ DataMember( Name = "carrierCode" ) ] | ||
public string CarrierCode { get; set; } | ||
|
||
[ DataMember( Name = "voided" ) ] | ||
public bool Voided { get; set; } | ||
} | ||
} |
104 changes: 104 additions & 0 deletions
104
src/ShipStationAccess/V2/Models/Order/ShipStationOrderShipment.cs
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,104 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace ShipStationAccess.V2.Models.Order | ||
{ | ||
[ DataContract ] | ||
public sealed class ShipStationOrderShipments | ||
{ | ||
[ DataMember( Name = "shipments" ) ] | ||
public IEnumerable< ShipStationOrderShipment > Shipments { get; set; } | ||
|
||
[ DataMember( Name = "total" ) ] | ||
public int Total { get; set; } | ||
|
||
[ DataMember( Name = "page" ) ] | ||
public int Page { get; set; } | ||
|
||
[ DataMember( Name = "pages" ) ] | ||
public int Pages { get; set; } | ||
} | ||
|
||
[ DataContract ] | ||
public sealed class ShipStationOrderShipment | ||
{ | ||
[ DataMember( Name = "shipmentId" ) ] | ||
public long Id { get; set; } | ||
|
||
[ DataMember( Name = "orderId" ) ] | ||
public long OrderId { get; set; } | ||
|
||
[ DataMember( Name = "createDate" ) ] | ||
public DateTime CreateDate { get; set; } | ||
|
||
[ DataMember( Name = "shipDate" ) ] | ||
public DateTime? ShipDate { get; set; } | ||
|
||
[ DataMember( Name = "shipmentCost" ) ] | ||
public decimal Cost { get; set; } | ||
|
||
[ DataMember( Name = "insuranceCost" ) ] | ||
public decimal InsuranceCost { get; set; } | ||
|
||
[ DataMember( Name = "trackingNumber" ) ] | ||
public string TrackingNumber { get; set; } | ||
|
||
[ DataMember( Name = "carrierCode" ) ] | ||
public string CarrierCode { get; set; } | ||
|
||
[ DataMember( Name = "serviceCode" ) ] | ||
public string ServiceCode { get; set; } | ||
|
||
[ DataMember( Name = "confirmation" ) ] | ||
public string Confirmation { get; set; } | ||
|
||
[ DataMember( Name = "voided" ) ] | ||
public bool Voided { get; set; } | ||
|
||
[ DataMember( Name = "weight" ) ] | ||
public ShipmentWeight Weight { get; set; } | ||
|
||
[ DataMember( Name = "dimensions" ) ] | ||
public ShipmentDimensions Dimensions { get; set; } | ||
|
||
[ DataMember( Name = "shipmentItems" ) ] | ||
public IEnumerable< ShipmentItem > Items { get; set; } | ||
} | ||
|
||
[ DataContract ] | ||
public sealed class ShipmentWeight | ||
{ | ||
[ DataMember( Name = "value" ) ] | ||
public decimal Value { get; set; } | ||
|
||
[ DataMember( Name = "units" ) ] | ||
public string Units { get; set; } | ||
} | ||
|
||
[ DataContract ] | ||
public sealed class ShipmentDimensions | ||
{ | ||
[ DataMember( Name = "units" ) ] | ||
public string Units { get; set; } | ||
|
||
[ DataMember( Name = "length" ) ] | ||
public decimal Length { get; set; } | ||
|
||
[ DataMember( Name = "width" ) ] | ||
public decimal Width { get; set; } | ||
|
||
[ DataMember( Name = "height" ) ] | ||
public decimal Height { get; set; } | ||
} | ||
|
||
[ DataContract ] | ||
public sealed class ShipmentItem | ||
{ | ||
[ DataMember( Name = "sku" ) ] | ||
public string Sku { get; set; } | ||
|
||
[ DataMember( Name = "quantity" ) ] | ||
public int Quantity { 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