Skip to content

Commit

Permalink
Added RequestedBy on ShopOrderLine
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasvandeweerdt committed Feb 18, 2023
1 parent 754d722 commit cf1f00f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Source/Sdk4me/Entities/ShopOrderLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class ShopOrderLine : CustomFieldsBaseItem
private float quantity;
private float providerTotalPrice;
private float? providerTotalRecurringPrice;
private Person requestedBy;
private Person requestedFor;
private string shopArticle;
private string source;
Expand Down Expand Up @@ -418,6 +419,23 @@ public float? ProviderTotalRecurringPrice

#endregion

#region Requested by

/// <summary>
/// The person who submitted the order.
/// </summary>
[JsonProperty("requested_by")]
public Person RequestedBy
{
get => requestedBy;
internal set => requestedBy = value;
}

[JsonProperty("requested_by_id"), Sdk4meIgnoreInFieldSelection()]
internal long? RequestedByID => requestedBy?.ID;

#endregion

#region Requested for

/// <summary>
Expand Down Expand Up @@ -524,6 +542,7 @@ internal override void ResetPropertySerializationCollection()
fulfillmentRequest?.ResetPropertySerializationCollection();
fulfillmentTask?.ResetPropertySerializationCollection();
fulfillmentTemplate?.ResetPropertySerializationCollection();
requestedBy?.ResetPropertySerializationCollection();
requestedFor?.ResetPropertySerializationCollection();
base.ResetPropertySerializationCollection();
}
Expand Down

0 comments on commit cf1f00f

Please sign in to comment.