1- using Nop . Core . Configuration ;
2- 3- namespace Nop . Core . Domain . Orders
4- {
5- public class OrderSettings : ISettings
6- {
7- /// <summary>
8- /// Gets or sets a value indicating whether customer can make re-order
9- /// </summary>
10- public bool IsReOrderAllowed { get ; set ; }
11- 12- /// <summary>
13- /// Gets or sets a minimum order subtotal amount
14- /// </summary>
15- public decimal MinOrderSubtotalAmount { get ; set ; }
16- /// <summary>
17- /// Gets or sets a value indicating whether 'Minimum order subtotal amount' option
18- /// should be evaluated over 'X' value including tax or not
19- /// </summary>
20- public bool MinOrderSubtotalAmountIncludingTax { get ; set ; }
21- /// <summary>
22- /// Gets or sets a minimum order total amount
23- /// </summary>
24- public decimal MinOrderTotalAmount { get ; set ; }
25- 26- /// <summary>
27- /// Gets or sets a value indicating whether automatically update order totals on editing an order in admin area
28- /// </summary>
29- public bool AutoUpdateOrderTotalsOnEditingOrder { get ; set ; }
30- 31- /// <summary>
32- /// Gets or sets a value indicating whether anonymous checkout allowed
33- /// </summary>
34- public bool AnonymousCheckoutAllowed { get ; set ; }
35- 36- /// <summary>
37- /// Gets or sets a value indicating whether 'Terms of service' enabled on the shopping cart page
38- /// </summary>
39- public bool TermsOfServiceOnShoppingCartPage { get ; set ; }
40- /// <summary>
41- /// Gets or sets a value indicating whether 'Terms of service' enabled on the order confirmation page
42- /// </summary>
43- public bool TermsOfServiceOnOrderConfirmPage { get ; set ; }
44- 45- /// <summary>
46- /// Gets or sets a value indicating whether 'One-page checkout' is enabled
47- /// </summary>
48- public bool OnePageCheckoutEnabled { get ; set ; }
49- 50- /// <summary>
51- /// Gets or sets a value indicating whether order totals should be displayed on 'Payment info' tab of 'One-page checkout' page
52- /// </summary>
53- public bool OnePageCheckoutDisplayOrderTotalsOnPaymentInfoTab { get ; set ; }
54- /// <summary>
55- /// Gets or sets a value indicating whether "Billing address" step should be skipped
56- /// </summary>
57- public bool DisableBillingAddressCheckoutStep { get ; set ; }
58- /// <summary>
59- /// Gets or sets a value indicating whether "Order completed" page should be skipped
60- /// </summary>
61- public bool DisableOrderCompletedPage { get ; set ; }
62- 63- /// <summary>
64- /// Gets or sets a value indicating we should attach PDF invoice to "Order placed" email
65- /// </summary>
66- public bool AttachPdfInvoiceToOrderPlacedEmail { get ; set ; }
67- /// <summary>
68- /// Gets or sets a value indicating we should attach PDF invoice to "Order paid" email
69- /// </summary>
70- public bool AttachPdfInvoiceToOrderPaidEmail { get ; set ; }
71- /// <summary>
72- /// Gets or sets a value indicating we should attach PDF invoice to "Order completed" email
73- /// </summary>
74- public bool AttachPdfInvoiceToOrderCompletedEmail { get ; set ; }
75- /// <summary>
76- /// Gets or sets a value indicating we PDF invoices should be generated in customer language. Otherwise, use the current one
77- /// </summary>
78- public bool GeneratePdfInvoiceInCustomerLanguage { get ; set ; }
79- 80- /// <summary>
81- /// Gets or sets a value indicating whether "Return requests" are allowed
82- /// </summary>
83- public bool ReturnRequestsEnabled { get ; set ; }
84- /// <summary>
85- /// Gets or sets a value indicating whether customers are allowed to upload files
86- /// </summary>
87- public bool ReturnRequestsAllowFiles { get ; set ; }
88- /// <summary>
89- /// Gets or sets maximum file size for upload file (return request). Set 0 to allow any file size
90- /// </summary>
91- public int ReturnRequestsFileMaximumSize { get ; set ; }
92- /// <summary>
93- /// Gets or sets a value "Return requests" number mask
94- /// </summary>
95- public string ReturnRequestNumberMask { get ; set ; }
96- /// <summary>
97- /// Gets or sets a number of days that the Return Request Link will be available for customers after order placing.
98- /// </summary>
99- public int NumberOfDaysReturnRequestAvailable { get ; set ; }
100- 101- /// <summary>
102- /// Gets or sets a value indicating whether to activate related gift cards after completing the order
103- /// </summary>
104- public bool ActivateGiftCardsAfterCompletingOrder { get ; set ; }
105- /// <summary>
106- /// Gets or sets a value indicating whether to deactivate related gift cards after cancelling the order
107- /// </summary>
108- public bool DeactivateGiftCardsAfterCancellingOrder { get ; set ; }
109- /// <summary>
110- /// Gets or sets a value indicating whether to deactivate related gift cards after deleting the order
111- /// </summary>
112- public bool DeactivateGiftCardsAfterDeletingOrder { get ; set ; }
113- 114- /// <summary>
115- /// Gets or sets an order placement interval in seconds (prevent 2 orders being placed within an X seconds time frame).
116- /// </summary>
117- public int MinimumOrderPlacementInterval { get ; set ; }
118- 119- /// <summary>
120- /// Gets or sets a value indicating whether an order status should be set to "Complete" only when its shipping status is "Delivered". Otherwise, "Shipped" status will be enough.
121- /// </summary>
122- public bool CompleteOrderWhenDelivered { get ; set ; }
123- /// <summary>
124- /// Last issued Invoice Id
125- /// </summary>
126- public int InvoiceIdent { get ; set ; }
127- /// <summary>
128- /// Last issued Invoice Date
129- /// </summary>
130- public int InvoiceYear { get ; set ; }
131- 132- /// <summary>
133- /// Gets or sets a custom order number mask
134- /// </summary>
135- public string CustomOrderNumberMask { get ; set ; }
136- 137- /// <summary>
138- /// Gets or sets a value indicating whether the orders need to be exported with their products
139- /// </summary>
140- public bool ExportWithProducts { get ; set ; }
141- }
1+ using Nop . Core . Configuration ;
2+ 3+ namespace Nop . Core . Domain . Orders
4+ {
5+ public class OrderSettings : ISettings
6+ {
7+ /// <summary>
8+ /// Gets or sets a value indicating whether customer can make re-order
9+ /// </summary>
10+ public bool IsReOrderAllowed { get ; set ; }
11+ 12+ /// <summary>
13+ /// Gets or sets a minimum order subtotal amount
14+ /// </summary>
15+ public decimal MinOrderSubtotalAmount { get ; set ; }
16+ /// <summary>
17+ /// Gets or sets a value indicating whether 'Minimum order subtotal amount' option
18+ /// should be evaluated over 'X' value including tax or not
19+ /// </summary>
20+ public bool MinOrderSubtotalAmountIncludingTax { get ; set ; }
21+ /// <summary>
22+ /// Gets or sets a minimum order total amount
23+ /// </summary>
24+ public decimal MinOrderTotalAmount { get ; set ; }
25+ 26+ /// <summary>
27+ /// Gets or sets a value indicating whether automatically update order totals on editing an order in admin area
28+ /// </summary>
29+ public bool AutoUpdateOrderTotalsOnEditingOrder { get ; set ; }
30+ 31+ /// <summary>
32+ /// Gets or sets a value indicating whether anonymous checkout allowed
33+ /// </summary>
34+ public bool AnonymousCheckoutAllowed { get ; set ; }
35+ 36+ /// <summary>
37+ /// Gets or sets a value indicating whether 'Terms of service' enabled on the shopping cart page
38+ /// </summary>
39+ public bool TermsOfServiceOnShoppingCartPage { get ; set ; }
40+ /// <summary>
41+ /// Gets or sets a value indicating whether 'Terms of service' enabled on the order confirmation page
42+ /// </summary>
43+ public bool TermsOfServiceOnOrderConfirmPage { get ; set ; }
44+ 45+ /// <summary>
46+ /// Gets or sets a value indicating whether 'One-page checkout' is enabled
47+ /// </summary>
48+ public bool OnePageCheckoutEnabled { get ; set ; }
49+ 50+ /// <summary>
51+ /// Gets or sets a value indicating whether order totals should be displayed on 'Payment info' tab of 'One-page checkout' page
52+ /// </summary>
53+ public bool OnePageCheckoutDisplayOrderTotalsOnPaymentInfoTab { get ; set ; }
54+ /// <summary>
55+ /// Gets or sets a value indicating whether "Billing address" step should be skipped
56+ /// </summary>
57+ public bool DisableBillingAddressCheckoutStep { get ; set ; }
58+ /// <summary>
59+ /// Gets or sets a value indicating whether "Order completed" page should be skipped
60+ /// </summary>
61+ public bool DisableOrderCompletedPage { get ; set ; }
62+ 63+ /// <summary>
64+ /// Gets or sets a value indicating we should attach PDF invoice to "Order placed" email
65+ /// </summary>
66+ public bool AttachPdfInvoiceToOrderPlacedEmail { get ; set ; }
67+ /// <summary>
68+ /// Gets or sets a value indicating we should attach PDF invoice to "Order paid" email
69+ /// </summary>
70+ public bool AttachPdfInvoiceToOrderPaidEmail { get ; set ; }
71+ /// <summary>
72+ /// Gets or sets a value indicating we should attach PDF invoice to "Order completed" email
73+ /// </summary>
74+ public bool AttachPdfInvoiceToOrderCompletedEmail { get ; set ; }
75+ /// <summary>
76+ /// Gets or sets a value indicating we PDF invoices should be generated in customer language. Otherwise, use the current one
77+ /// </summary>
78+ public bool GeneratePdfInvoiceInCustomerLanguage { get ; set ; }
79+ 80+ /// <summary>
81+ /// Gets or sets a value indicating whether "Return requests" are allowed
82+ /// </summary>
83+ public bool ReturnRequestsEnabled { get ; set ; }
84+ /// <summary>
85+ /// Gets or sets a value indicating whether customers are allowed to upload files
86+ /// </summary>
87+ public bool ReturnRequestsAllowFiles { get ; set ; }
88+ /// <summary>
89+ /// Gets or sets maximum file size for upload file (return request). Set 0 to allow any file size
90+ /// </summary>
91+ public int ReturnRequestsFileMaximumSize { get ; set ; }
92+ /// <summary>
93+ /// Gets or sets a value "Return requests" number mask
94+ /// </summary>
95+ public string ReturnRequestNumberMask { get ; set ; }
96+ /// <summary>
97+ /// Gets or sets a number of days that the Return Request Link will be available for customers after order placing.
98+ /// </summary>
99+ public int NumberOfDaysReturnRequestAvailable { get ; set ; }
100+ 101+ /// <summary>
102+ /// Gets or sets a value indicating whether to activate related gift cards after completing the order
103+ /// </summary>
104+ public bool ActivateGiftCardsAfterCompletingOrder { get ; set ; }
105+ /// <summary>
106+ /// Gets or sets a value indicating whether to deactivate related gift cards after cancelling the order
107+ /// </summary>
108+ public bool DeactivateGiftCardsAfterCancellingOrder { get ; set ; }
109+ /// <summary>
110+ /// Gets or sets a value indicating whether to deactivate related gift cards after deleting the order
111+ /// </summary>
112+ public bool DeactivateGiftCardsAfterDeletingOrder { get ; set ; }
113+ 114+ /// <summary>
115+ /// Gets or sets an order placement interval in seconds (prevent 2 orders being placed within an X seconds time frame).
116+ /// </summary>
117+ public int MinimumOrderPlacementInterval { get ; set ; }
118+ 119+ /// <summary>
120+ /// Gets or sets a value indicating whether an order status should be set to "Complete" only when its shipping status is "Delivered". Otherwise, "Shipped" status will be enough.
121+ /// </summary>
122+ public bool CompleteOrderWhenDelivered { get ; set ; }
123+ /// <summary>
124+ /// Last issued Invoice Id
125+ /// </summary>
126+ public int InvoiceIdent { get ; set ; }
127+ /// <summary>
128+ /// Last issued Invoice Year
129+ /// </summary>
130+ public int InvoiceYear { get ; set ; }
131+ 132+ /// <summary>
133+ /// Gets or sets a custom order number mask
134+ /// </summary>
135+ public string CustomOrderNumberMask { get ; set ; }
136+ 137+ /// <summary>
138+ /// Gets or sets a value indicating whether the orders need to be exported with their products
139+ /// </summary>
140+ public bool ExportWithProducts { get ; set ; }
141+ }
142142}
0 commit comments