Skip to content

Commit

Permalink
added missing properties to OrderItem
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanstapel committed Jun 24, 2024
1 parent b5e6578 commit 681bcb6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions BrickOwlSharp.Client/OrderItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public class OrderItem
[JsonPropertyName("ordered_quantity"), JsonConverter(typeof(IntStringConverter))]
public int OrderedQuantity { get; set; }

[JsonPropertyName("refunded_quantity"), JsonConverter(typeof(IntStringConverter))]
public int RefundedQuantity { get; set; }

[JsonPropertyName("personal_note")]
public string PersonalNote { get; set; }

Expand All @@ -72,8 +75,8 @@ public class OrderItem
[JsonPropertyName("bl_lot_id"), JsonConverter(typeof(IntStringConverter))]
public int BlLotId { get; set; }

/** @todo external_lot_ids
*/
[JsonPropertyName("ids")]
public List<CatalogItemId> Ids { get; set; }

[JsonPropertyName("remaining_quantity"), JsonConverter(typeof(IntStringConverter))]
public int RemainingQuantity { get; set; }
Expand All @@ -86,5 +89,8 @@ public class OrderItem

[JsonPropertyName("base_price"), JsonConverter(typeof(DecimalStringConverter))]
public decimal BasePrice { get; set; }

[JsonPropertyName("external_lot_ids"), JsonConverter(typeof(ExternalLotIdConverter))]
public List<Reference> ExternalLotIds { get; set; } = new List<Reference>();
}
}

0 comments on commit 681bcb6

Please sign in to comment.