コード例 #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);
        }