Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #63 from goshippo/add_substatus
Browse files Browse the repository at this point in the history
Adding Substatus to tracking status
  • Loading branch information
jfriedr authored Mar 29, 2021
2 parents c1fe8c9 + b87ca9c commit e27e828
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Shippo/Substatus.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using Newtonsoft.Json;

namespace Shippo
{
[JsonObject(MemberSerialization.OptIn)]
public class Substatus
{
[JsonProperty(PropertyName = "code")]
public string Code;

[JsonProperty(PropertyName = "text")]
public string Text;

[JsonProperty(PropertyName = "action_required")]
public bool ActionRequired;
}
}
3 changes: 3 additions & 0 deletions Shippo/TrackingStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public class TrackingStatus : ShippoId
[JsonProperty(PropertyName = "status_date")]
public DateTime? StatusDate;

[JsonProperty(PropertyName = "substatus")]
public Substatus Substatus;

[JsonProperty(PropertyName = "location")]
public ShortAddress Location;

Expand Down

0 comments on commit e27e828

Please sign in to comment.