Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion openTRANS/ORDERRESPONSE/OrderResponse.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
using System.Collections.Generic;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace openTRANS
{
[XmlRoot("ORDERRESPONSE", Namespace = "http://www.opentrans.org/XMLSchema/2.1", IsNullable = false)]
public partial class OrderResponse
{
[XmlAttribute("schemaLocation", Namespace = XmlSchema.InstanceNamespace)]
public string xsiSchemaLocation => "http://www.opentrans.org/XMLSchema/2.1%20opentrans_2_1.xsd";

[XmlAttribute("version")]
public string Version = "2.1";
public string Version => "2.1";

[XmlElement("ORDERRESPONSE_HEADER")]
public OrderResponseHeader OrderResponseHeader = new OrderResponseHeader();
Expand Down
26 changes: 22 additions & 4 deletions openTRANS/ORDERRESPONSE/OrderResponseItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
using System.Xml.Serialization;
using static openTRANS.Common;

namespace openTRANS
{
namespace openTRANS {
public partial class OrderResponseItem
{
[XmlElement("LINE_ITEM_ID")]
Expand All @@ -21,14 +20,33 @@ public partial class OrderResponseItem
[XmlElement("QUANTITY")]
public int Quantity;

[XmlElement("ORDER_UNIT", Namespace = Common.Namespace.bmecat)]
[XmlElement("ORDER_UNIT", Namespace = Namespace.bmecat)]
public string OrderUnit;

[XmlElement("PRODUCT_PRICE_FIX")]
public ProductPriceFix ProductPriceFix = new ProductPriceFix();

[XmlElement("PRICE_LINE_AMOUNT")]
public decimal PriceLineAmount;
public decimal PriceLineAmount {
get => Quantity * ProductPriceFix.PriceAmount;
set { }
}

[XmlElement("DELIVERY_DATE")]
public DeliveryDate DeliveryDate { get; set; }

[XmlArray("PARTIAL_DELIVERY_LIST")]
[XmlArrayItem("PARTIAL_DELIVERY")]
public List<PartialDelivery> PartialDeliveryList { get; set; }

[XmlElement("SHIPMENT_PARTIES_REFERENCE")]
public ShipmentPartiesReference ShipmentPartiesReference { get; set; }

[XmlElement("SPECIAL_TREATMENT_CLASS")]
public string SpecialTreatmentClass { get; set; }

[XmlElement("MIME_INFO")]
public MimeInfo MimeInfo { get; set; }

[XmlElement("REMARKS")]
public List<TypedItem> Remarks = new List<TypedItem>();
Expand Down
7 changes: 7 additions & 0 deletions openTRANS/SHARED/__delete_after_merging_pulls.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using System;

namespace openTRANS {
[Obsolete("This class is implemented in one of the other pulls. Please merge first!", true)]
public class PartialDelivery {
}
}