public static InvoiceOrder Create(string application, Guid wmsOrderId, string orderNumber, string transportNumber) { var invoiceOrder = new InvoiceOrder { Id = Guid.NewGuid(), Application = application, WmsOrderId = wmsOrderId, OrderNumber = orderNumber, TransportNumber = transportNumber }; AddCancelProperty(invoiceOrder); return(invoiceOrder); }
private static void AddCancelProperty(InvoiceOrder invoiceOrder) { var property = Property.Create("Cancel", "false"); invoiceOrder.SetProperty(property); }