예제 #1
0
        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);
        }
예제 #2
0
        private static void AddCancelProperty(InvoiceOrder invoiceOrder)
        {
            var property = Property.Create("Cancel", "false");

            invoiceOrder.SetProperty(property);
        }