-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathOrderDetailsModel.cs
155 lines (128 loc) · 5.26 KB
/
OrderDetailsModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
using System;
using System.Collections.Generic;
using SmartStore.Core.Domain.Catalog;
using SmartStore.Core.Domain.Common;
using SmartStore.Web.Framework.Modelling;
using SmartStore.Web.Models.Common;
using SmartStore.Web.Models.Media;
using SmartStore.Services.Localization;
namespace SmartStore.Web.Models.Order
{
public partial class OrderDetailsModel : EntityModelBase
{
public OrderDetailsModel()
{
MerchantCompanyInfo = new CompanyInformationSettings();
TaxRates = new List<TaxRate>();
GiftCards = new List<GiftCard>();
Items = new List<OrderItemModel>();
OrderNotes = new List<OrderNote>();
Shipments = new List<ShipmentBriefModel>();
BillingAddress = new AddressModel();
ShippingAddress = new AddressModel();
}
public int StoreId { get; set; }
public CompanyInformationSettings MerchantCompanyInfo { get; set; }
public string OrderNumber { get; set; }
public bool DisplayPdfInvoice { get; set; }
public bool RenderOrderNotes { get; set; }
public DateTime CreatedOn { get; set; }
public string OrderStatus { get; set; }
public bool IsReOrderAllowed { get; set; }
public bool IsReturnRequestAllowed { get; set; }
public bool IsShippable { get; set; }
public string ShippingStatus { get; set; }
public AddressModel ShippingAddress { get; set; }
public string ShippingMethod { get; set; }
public IList<ShipmentBriefModel> Shipments { get; set; }
public string BundleItemImages { get; set; }
public AddressModel BillingAddress { get; set; }
public string VatNumber { get; set; }
public string PaymentMethod { get; set; }
public bool CanRePostProcessPayment { get; set; }
public bool DisplayPurchaseOrderNumber { get; set; }
public string PurchaseOrderNumber { get; set; }
public string OrderSubtotal { get; set; }
public string OrderSubTotalDiscount { get; set; }
public string OrderShipping { get; set; }
public string PaymentMethodAdditionalFee { get; set; }
public string CheckoutAttributeInfo { get; set; }
public string Tax { get; set; }
public IList<TaxRate> TaxRates { get; set; }
public bool DisplayTax { get; set; }
public bool DisplayTaxRates { get; set; }
public string OrderTotalDiscount { get; set; }
public int RedeemedRewardPoints { get; set; }
public string RedeemedRewardPointsAmount { get; set; }
public string CreditBalance { get; set; }
public string OrderTotalRounding { get; set; }
public string OrderTotal { get; set; }
public string CustomerComment { get; set; }
public int CustomerLanguageId { get; set; }
public IList<GiftCard> GiftCards { get; set; }
public bool ShowSku { get; set; }
public bool ShowProductImages { get; set; }
public IList<OrderItemModel> Items { get; set; }
public IList<OrderNote> OrderNotes { get; set; }
#region Nested Classes
public partial class OrderItemModel : EntityModelBase
{
public OrderItemModel()
{
BundleItems = new List<BundleItemModel>();
}
public string Sku { get; set; }
public int ProductId { get; set; }
public LocalizedValue<string> ProductName { get; set; }
public string ProductSeName { get; set; }
public string ProductUrl { get; set; }
public ProductType ProductType { get; set; }
public string UnitPrice { get; set; }
public string SubTotal { get; set; }
public int Quantity { get; set; }
public string QuantityUnit { get; set; }
public string AttributeInfo { get; set; }
public bool BundlePerItemPricing { get; set; }
public bool BundlePerItemShoppingCart { get; set; }
public PictureModel Picture { get; set; }
public IList<BundleItemModel> BundleItems { get; set; }
}
public partial class BundleItemModel : ModelBase
{
public string Sku { get; set; }
public string ProductName { get; set; }
public string ProductSeName { get; set; }
public string ProductUrl { get; set; }
public bool VisibleIndividually { get; set; }
public int Quantity { get; set; }
public int DisplayOrder { get; set; }
public string PriceWithDiscount { get; set; }
public string AttributeInfo { get; set; }
}
public partial class TaxRate : ModelBase
{
public string Rate { get; set; }
public string Value { get; set; }
public string Label { get; set; }
}
public partial class GiftCard : ModelBase
{
public string CouponCode { get; set; }
public string Amount { get; set; }
public string Remaining { get; set; }
}
public partial class OrderNote : ModelBase
{
public string Note { get; set; }
public DateTime CreatedOn { get; set; }
public string FriendlyCreatedOn { get; set; }
}
public partial class ShipmentBriefModel : EntityModelBase
{
public string TrackingNumber { get; set; }
public DateTime? ShippedDate { get; set; }
public DateTime? DeliveryDate { get; set; }
}
#endregion
}
}