C# Class Nop.Services.Orders.OrderProcessingService

Order processing service
Inheritance: IOrderProcessingService
显示文件 Open project: jimmy00784/nopCommerce-Linux-Mysql

Public Methods

Method Description
CanCancelOrder ( Nop.Core.Domain.Orders.Order order ) : bool

Gets a value indicating whether cancel is allowed

CanCancelRecurringPayment ( Customer customerToValidate, Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : bool

Gets a value indicating whether a customer can cancel recurring payment

CanCapture ( Nop.Core.Domain.Orders.Order order ) : bool

Gets a value indicating whether capture from admin panel is allowed

CanMarkOrderAsAuthorized ( Nop.Core.Domain.Orders.Order order ) : bool

Gets a value indicating whether order can be marked as authorized

CanMarkOrderAsPaid ( Nop.Core.Domain.Orders.Order order ) : bool

Gets a value indicating whether order can be marked as paid

CanPartiallyRefund ( Nop.Core.Domain.Orders.Order order, decimal amountToRefund ) : bool

Gets a value indicating whether partial refund from admin panel is allowed

CanPartiallyRefundOffline ( Nop.Core.Domain.Orders.Order order, decimal amountToRefund ) : bool

Gets a value indicating whether order can be marked as partially refunded

CanRefund ( Nop.Core.Domain.Orders.Order order ) : bool

Gets a value indicating whether refund from admin panel is allowed

CanRefundOffline ( Nop.Core.Domain.Orders.Order order ) : bool

Gets a value indicating whether order can be marked as refunded

CanVoid ( Nop.Core.Domain.Orders.Order order ) : bool

Gets a value indicating whether void from admin panel is allowed

CanVoidOffline ( Nop.Core.Domain.Orders.Order order ) : bool

Gets a value indicating whether order can be marked as voided

CancelOrder ( Nop.Core.Domain.Orders.Order order, bool notifyCustomer ) : void

Cancels order

CancelRecurringPayment ( Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : IList

Cancels a recurring payment

Capture ( Nop.Core.Domain.Orders.Order order ) : IList

Capture an order (from admin panel)

DeleteOrder ( Nop.Core.Domain.Orders.Order order ) : void

Deletes an order

Deliver ( Nop.Core.Domain.Shipping.Shipment shipment, bool notifyCustomer ) : void

Marks a shipment as delivered

IsReturnRequestAllowed ( Nop.Core.Domain.Orders.Order order ) : bool

Check whether return request is allowed

MarkAsAuthorized ( Nop.Core.Domain.Orders.Order order ) : void

Marks order as authorized

MarkOrderAsPaid ( Nop.Core.Domain.Orders.Order order ) : void

Marks order as paid

OrderProcessingService ( IOrderService orderService, IWebHelper webHelper, ILocalizationService localizationService, ILanguageService languageService, IProductService productService, IPaymentService paymentService, ILogger logger, IOrderTotalCalculationService orderTotalCalculationService, IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter, IProductAttributeParser productAttributeParser, IProductAttributeFormatter productAttributeFormatter, IGiftCardService giftCardService, IShoppingCartService shoppingCartService, ICheckoutAttributeFormatter checkoutAttributeFormatter, IShippingService shippingService, IShipmentService shipmentService, ITaxService taxService, ICustomerService customerService, IDiscountService discountService, IEncryptionService encryptionService, IWorkContext workContext, IWorkflowMessageService workflowMessageService, ICustomerActivityService customerActivityService, ICurrencyService currencyService, IEventPublisher eventPublisher, Nop.Core.Domain.Payments.PaymentSettings paymentSettings, Nop.Core.Domain.Customers.RewardPointsSettings rewardPointsSettings, Nop.Core.Domain.Orders.OrderSettings orderSettings, Nop.Core.Domain.Tax.TaxSettings taxSettings, Nop.Core.Domain.Localization.LocalizationSettings localizationSettings, Nop.Core.Domain.Directory.CurrencySettings currencySettings ) : System

Ctor

PartiallyRefund ( Nop.Core.Domain.Orders.Order order, decimal amountToRefund ) : IList

Partially refunds an order (from admin panel)

PartiallyRefundOffline ( Nop.Core.Domain.Orders.Order order, decimal amountToRefund ) : void

Partially refunds an order (offline)

PlaceOrder ( Nop.Services.Payments.ProcessPaymentRequest processPaymentRequest ) : Nop.Services.Orders.PlaceOrderResult

Places an order

ProcessNextRecurringPayment ( Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : void

Process next recurring psayment

ReOrder ( Nop.Core.Domain.Orders.Order order ) : void

Place order items in current user shopping cart.

Refund ( Nop.Core.Domain.Orders.Order order ) : IList

Refunds an order (from admin panel)

RefundOffline ( Nop.Core.Domain.Orders.Order order ) : void

Refunds an order (offline)

Ship ( Nop.Core.Domain.Shipping.Shipment shipment, bool notifyCustomer ) : void

Send a shipment

ValidateMinOrderSubtotalAmount ( IList cart ) : bool

Valdiate minimum order sub-total amount

ValidateMinOrderTotalAmount ( IList cart ) : bool

Valdiate minimum order total amount

Void ( Nop.Core.Domain.Orders.Order order ) : IList

Voids order (from admin panel)

VoidOffline ( Nop.Core.Domain.Orders.Order order ) : void

Voids order (offline)

Protected Methods

Method Description
CheckOrderStatus ( Nop.Core.Domain.Orders.Order order ) : void

Checks order status

SetOrderStatus ( Nop.Core.Domain.Orders.Order order, OrderStatus os, bool notifyCustomer ) : void

Sets an order status

Method Details

CanCancelOrder() public method

Gets a value indicating whether cancel is allowed
public CanCancelOrder ( Nop.Core.Domain.Orders.Order order ) : bool
order Nop.Core.Domain.Orders.Order Order
return bool

CanCancelRecurringPayment() public method

Gets a value indicating whether a customer can cancel recurring payment
public CanCancelRecurringPayment ( Customer customerToValidate, Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : bool
customerToValidate Nop.Core.Domain.Customers.Customer Customer
recurringPayment Nop.Core.Domain.Orders.RecurringPayment Recurring Payment
return bool

CanCapture() public method

Gets a value indicating whether capture from admin panel is allowed
public CanCapture ( Nop.Core.Domain.Orders.Order order ) : bool
order Nop.Core.Domain.Orders.Order Order
return bool

CanMarkOrderAsAuthorized() public method

Gets a value indicating whether order can be marked as authorized
public CanMarkOrderAsAuthorized ( Nop.Core.Domain.Orders.Order order ) : bool
order Nop.Core.Domain.Orders.Order Order
return bool

CanMarkOrderAsPaid() public method

Gets a value indicating whether order can be marked as paid
public CanMarkOrderAsPaid ( Nop.Core.Domain.Orders.Order order ) : bool
order Nop.Core.Domain.Orders.Order Order
return bool

CanPartiallyRefund() public method

Gets a value indicating whether partial refund from admin panel is allowed
public CanPartiallyRefund ( Nop.Core.Domain.Orders.Order order, decimal amountToRefund ) : bool
order Nop.Core.Domain.Orders.Order Order
amountToRefund decimal Amount to refund
return bool

CanPartiallyRefundOffline() public method

Gets a value indicating whether order can be marked as partially refunded
public CanPartiallyRefundOffline ( Nop.Core.Domain.Orders.Order order, decimal amountToRefund ) : bool
order Nop.Core.Domain.Orders.Order Order
amountToRefund decimal Amount to refund
return bool

CanRefund() public method

Gets a value indicating whether refund from admin panel is allowed
public CanRefund ( Nop.Core.Domain.Orders.Order order ) : bool
order Nop.Core.Domain.Orders.Order Order
return bool

CanRefundOffline() public method

Gets a value indicating whether order can be marked as refunded
public CanRefundOffline ( Nop.Core.Domain.Orders.Order order ) : bool
order Nop.Core.Domain.Orders.Order Order
return bool

CanVoid() public method

Gets a value indicating whether void from admin panel is allowed
public CanVoid ( Nop.Core.Domain.Orders.Order order ) : bool
order Nop.Core.Domain.Orders.Order Order
return bool

CanVoidOffline() public method

Gets a value indicating whether order can be marked as voided
public CanVoidOffline ( Nop.Core.Domain.Orders.Order order ) : bool
order Nop.Core.Domain.Orders.Order Order
return bool

CancelOrder() public method

Cancels order
public CancelOrder ( Nop.Core.Domain.Orders.Order order, bool notifyCustomer ) : void
order Nop.Core.Domain.Orders.Order Order
notifyCustomer bool True to notify customer
return void

CancelRecurringPayment() public method

Cancels a recurring payment
public CancelRecurringPayment ( Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : IList
recurringPayment Nop.Core.Domain.Orders.RecurringPayment Recurring payment
return IList

Capture() public method

Capture an order (from admin panel)
public Capture ( Nop.Core.Domain.Orders.Order order ) : IList
order Nop.Core.Domain.Orders.Order Order
return IList

CheckOrderStatus() protected method

Checks order status
protected CheckOrderStatus ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order Order
return void

DeleteOrder() public method

Deletes an order
public DeleteOrder ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order The order
return void

Deliver() public method

Marks a shipment as delivered
public Deliver ( Nop.Core.Domain.Shipping.Shipment shipment, bool notifyCustomer ) : void
shipment Nop.Core.Domain.Shipping.Shipment Shipment
notifyCustomer bool True to notify customer
return void

IsReturnRequestAllowed() public method

Check whether return request is allowed
public IsReturnRequestAllowed ( Nop.Core.Domain.Orders.Order order ) : bool
order Nop.Core.Domain.Orders.Order Order
return bool

MarkAsAuthorized() public method

Marks order as authorized
public MarkAsAuthorized ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order Order
return void

MarkOrderAsPaid() public method

Marks order as paid
public MarkOrderAsPaid ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order Order
return void

OrderProcessingService() public method

Ctor
public OrderProcessingService ( IOrderService orderService, IWebHelper webHelper, ILocalizationService localizationService, ILanguageService languageService, IProductService productService, IPaymentService paymentService, ILogger logger, IOrderTotalCalculationService orderTotalCalculationService, IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter, IProductAttributeParser productAttributeParser, IProductAttributeFormatter productAttributeFormatter, IGiftCardService giftCardService, IShoppingCartService shoppingCartService, ICheckoutAttributeFormatter checkoutAttributeFormatter, IShippingService shippingService, IShipmentService shipmentService, ITaxService taxService, ICustomerService customerService, IDiscountService discountService, IEncryptionService encryptionService, IWorkContext workContext, IWorkflowMessageService workflowMessageService, ICustomerActivityService customerActivityService, ICurrencyService currencyService, IEventPublisher eventPublisher, Nop.Core.Domain.Payments.PaymentSettings paymentSettings, Nop.Core.Domain.Customers.RewardPointsSettings rewardPointsSettings, Nop.Core.Domain.Orders.OrderSettings orderSettings, Nop.Core.Domain.Tax.TaxSettings taxSettings, Nop.Core.Domain.Localization.LocalizationSettings localizationSettings, Nop.Core.Domain.Directory.CurrencySettings currencySettings ) : System
orderService IOrderService Order service
webHelper IWebHelper Web helper
localizationService ILocalizationService Localization service
languageService ILanguageService Language service
productService IProductService Product service
paymentService IPaymentService Payment service
logger ILogger Logger
orderTotalCalculationService IOrderTotalCalculationService Order total calculationservice
priceCalculationService IPriceCalculationService Price calculation service
priceFormatter IPriceFormatter Price formatter
productAttributeParser IProductAttributeParser Product attribute parser
productAttributeFormatter IProductAttributeFormatter Product attribute formatter
giftCardService IGiftCardService Gift card service
shoppingCartService IShoppingCartService Shopping cart service
checkoutAttributeFormatter ICheckoutAttributeFormatter Checkout attribute service
shippingService IShippingService Shipping service
shipmentService IShipmentService Shipment service
taxService ITaxService Tax service
customerService ICustomerService Customer service
discountService IDiscountService Discount service
encryptionService IEncryptionService Encryption service
workContext IWorkContext Work context
workflowMessageService IWorkflowMessageService Workflow message service
customerActivityService ICustomerActivityService Customer activity service
currencyService ICurrencyService Currency service
eventPublisher IEventPublisher Event published
paymentSettings Nop.Core.Domain.Payments.PaymentSettings Payment settings
rewardPointsSettings Nop.Core.Domain.Customers.RewardPointsSettings Reward points settings
orderSettings Nop.Core.Domain.Orders.OrderSettings Order settings
taxSettings Nop.Core.Domain.Tax.TaxSettings Tax settings
localizationSettings Nop.Core.Domain.Localization.LocalizationSettings Localization settings
currencySettings Nop.Core.Domain.Directory.CurrencySettings Currency settings
return System

PartiallyRefund() public method

Partially refunds an order (from admin panel)
public PartiallyRefund ( Nop.Core.Domain.Orders.Order order, decimal amountToRefund ) : IList
order Nop.Core.Domain.Orders.Order Order
amountToRefund decimal Amount to refund
return IList

PartiallyRefundOffline() public method

Partially refunds an order (offline)
public PartiallyRefundOffline ( Nop.Core.Domain.Orders.Order order, decimal amountToRefund ) : void
order Nop.Core.Domain.Orders.Order Order
amountToRefund decimal Amount to refund
return void

PlaceOrder() public method

Places an order
public PlaceOrder ( Nop.Services.Payments.ProcessPaymentRequest processPaymentRequest ) : Nop.Services.Orders.PlaceOrderResult
processPaymentRequest Nop.Services.Payments.ProcessPaymentRequest Process payment request
return Nop.Services.Orders.PlaceOrderResult

ProcessNextRecurringPayment() public method

Process next recurring psayment
public ProcessNextRecurringPayment ( Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : void
recurringPayment Nop.Core.Domain.Orders.RecurringPayment Recurring payment
return void

ReOrder() public method

Place order items in current user shopping cart.
public ReOrder ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order The order
return void

Refund() public method

Refunds an order (from admin panel)
public Refund ( Nop.Core.Domain.Orders.Order order ) : IList
order Nop.Core.Domain.Orders.Order Order
return IList

RefundOffline() public method

Refunds an order (offline)
public RefundOffline ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order Order
return void

SetOrderStatus() protected method

Sets an order status
protected SetOrderStatus ( Nop.Core.Domain.Orders.Order order, OrderStatus os, bool notifyCustomer ) : void
order Nop.Core.Domain.Orders.Order Order
os OrderStatus New order status
notifyCustomer bool True to notify customer
return void

Ship() public method

Send a shipment
public Ship ( Nop.Core.Domain.Shipping.Shipment shipment, bool notifyCustomer ) : void
shipment Nop.Core.Domain.Shipping.Shipment Shipment
notifyCustomer bool True to notify customer
return void

ValidateMinOrderSubtotalAmount() public method

Valdiate minimum order sub-total amount
public ValidateMinOrderSubtotalAmount ( IList cart ) : bool
cart IList Shopping cart
return bool

ValidateMinOrderTotalAmount() public method

Valdiate minimum order total amount
public ValidateMinOrderTotalAmount ( IList cart ) : bool
cart IList Shopping cart
return bool

Void() public method

Voids order (from admin panel)
public Void ( Nop.Core.Domain.Orders.Order order ) : IList
order Nop.Core.Domain.Orders.Order Order
return IList

VoidOffline() public method

Voids order (offline)
public VoidOffline ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order Order
return void