C# Class Nop.Services.Orders.OrderProcessingService

Order processing service
Inheritance: IOrderProcessingService
Afficher le fichier Open project: jimmy00784/nopCommerce-Linux-Mysql

Méthodes publiques

Méthode 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)

Méthodes protégées

Méthode 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 méthode

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

CanCancelRecurringPayment() public méthode

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
Résultat bool

CanCapture() public méthode

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
Résultat bool

CanMarkOrderAsAuthorized() public méthode

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
Résultat bool

CanMarkOrderAsPaid() public méthode

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
Résultat bool

CanPartiallyRefund() public méthode

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
Résultat bool

CanPartiallyRefundOffline() public méthode

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
Résultat bool

CanRefund() public méthode

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
Résultat bool

CanRefundOffline() public méthode

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
Résultat bool

CanVoid() public méthode

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
Résultat bool

CanVoidOffline() public méthode

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
Résultat bool

CancelOrder() public méthode

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
Résultat void

CancelRecurringPayment() public méthode

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

Capture() public méthode

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

CheckOrderStatus() protected méthode

Checks order status
protected CheckOrderStatus ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order Order
Résultat void

DeleteOrder() public méthode

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

Deliver() public méthode

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
Résultat void

IsReturnRequestAllowed() public méthode

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

MarkAsAuthorized() public méthode

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

MarkOrderAsPaid() public méthode

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

OrderProcessingService() public méthode

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
Résultat System

PartiallyRefund() public méthode

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
Résultat IList

PartiallyRefundOffline() public méthode

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
Résultat void

PlaceOrder() public méthode

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

ProcessNextRecurringPayment() public méthode

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

ReOrder() public méthode

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
Résultat void

Refund() public méthode

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

RefundOffline() public méthode

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

SetOrderStatus() protected méthode

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
Résultat void

Ship() public méthode

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
Résultat void

ValidateMinOrderSubtotalAmount() public méthode

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

ValidateMinOrderTotalAmount() public méthode

Valdiate minimum order total amount
public ValidateMinOrderTotalAmount ( IList cart ) : bool
cart IList Shopping cart
Résultat bool

Void() public méthode

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

VoidOffline() public méthode

Voids order (offline)
public VoidOffline ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order Order
Résultat void