C# Class Nop.Services.Orders.OrderService

Order service
Inheritance: IOrderService
Mostra file Open project: emilianionascu/NopCommerce

Public Methods

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

Deletes an order

DeleteOrderNote ( Nop.Core.Domain.Orders.OrderNote orderNote ) : void

Deletes an order note

DeleteOrderProductVariant ( Nop.Core.Domain.Orders.OrderProductVariant orderProductVariant ) : void

Delete an order product variant

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

Deletes a recurring payment

DeleteReturnRequest ( Nop.Core.Domain.Orders.ReturnRequest returnRequest ) : void

Deletes a return request

GetAllOrderProductVariants ( int orderId, int customerId, System.DateTime startTime, System.DateTime endTime, OrderStatus os, PaymentStatus ps, ShippingStatus ss, bool loadDownloableProductsOnly ) : IList

Gets all order product variants

GetOrderByAuthorizationTransactionIdAndPaymentMethod ( string authorizationTransactionId, string paymentMethodSystemName ) : Nop.Core.Domain.Orders.Order

Get an order by authorization transaction ID and payment method system name

GetOrderByGuid ( System.Guid orderGuid ) : Nop.Core.Domain.Orders.Order

Gets an order

GetOrderById ( int orderId ) : Nop.Core.Domain.Orders.Order

Gets an order

GetOrderProductVariantByGuid ( System.Guid orderProductVariantGuid ) : Nop.Core.Domain.Orders.OrderProductVariant

Gets an order product variant

GetOrderProductVariantById ( int orderProductVariantId ) : Nop.Core.Domain.Orders.OrderProductVariant

Gets an order product variant

GetOrdersByAffiliateId ( int affiliateId, int pageIndex, int pageSize ) : IPagedList

Gets all orders by affiliate identifier

GetOrdersByCustomerId ( int customerId ) : IList

Gets all orders by customer identifier

GetOrdersByIds ( int orderIds ) : IList

Get orders by identifiers

GetRecurringPaymentById ( int recurringPaymentId ) : Nop.Core.Domain.Orders.RecurringPayment

Gets a recurring payment

GetReturnRequestById ( int returnRequestId ) : Nop.Core.Domain.Orders.ReturnRequest

Gets a return request

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

Inserts an order

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

Inserts a recurring payment

OrderService ( IRepository orderRepository, IRepository opvRepository, IRepository orderNoteRepository, IRepository pvRepository, IRepository recurringPaymentRepository, IRepository customerRepository, IRepository returnRequestRepository, IEventPublisher eventPublisher ) : System

Ctor

SearchOrders ( System.DateTime startTime, System.DateTime endTime, OrderStatus os, PaymentStatus ps, ShippingStatus ss, string billingEmail, string orderGuid, int pageIndex, int pageSize ) : IPagedList

Search orders

SearchRecurringPayments ( int customerId, int initialOrderId, OrderStatus initialOrderStatus, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList

Search recurring payments

SearchReturnRequests ( int customerId, int orderProductVariantId, ReturnRequestStatus rs, int pageIndex, int pageSize ) : IPagedList

Search return requests

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

Updates the order

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

Updates the recurring payment

Method Details

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

DeleteOrderNote() public method

Deletes an order note
public DeleteOrderNote ( Nop.Core.Domain.Orders.OrderNote orderNote ) : void
orderNote Nop.Core.Domain.Orders.OrderNote The order note
return void

DeleteOrderProductVariant() public method

Delete an order product variant
public DeleteOrderProductVariant ( Nop.Core.Domain.Orders.OrderProductVariant orderProductVariant ) : void
orderProductVariant Nop.Core.Domain.Orders.OrderProductVariant The order product variant
return void

DeleteRecurringPayment() public method

Deletes a recurring payment
public DeleteRecurringPayment ( Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : void
recurringPayment Nop.Core.Domain.Orders.RecurringPayment Recurring payment
return void

DeleteReturnRequest() public method

Deletes a return request
public DeleteReturnRequest ( Nop.Core.Domain.Orders.ReturnRequest returnRequest ) : void
returnRequest Nop.Core.Domain.Orders.ReturnRequest Return request
return void

GetAllOrderProductVariants() public method

Gets all order product variants
public GetAllOrderProductVariants ( int orderId, int customerId, System.DateTime startTime, System.DateTime endTime, OrderStatus os, PaymentStatus ps, ShippingStatus ss, bool loadDownloableProductsOnly ) : IList
orderId int Order identifier; null to load all records
customerId int Customer identifier; null to load all records
startTime System.DateTime Order start time; null to load all records
endTime System.DateTime Order end time; null to load all records
os OrderStatus Order status; null to load all records
ps PaymentStatus Order payment status; null to load all records
ss ShippingStatus Order shippment status; null to load all records
loadDownloableProductsOnly bool Value indicating whether to load downloadable products only
return IList

GetOrderByAuthorizationTransactionIdAndPaymentMethod() public method

Get an order by authorization transaction ID and payment method system name
public GetOrderByAuthorizationTransactionIdAndPaymentMethod ( string authorizationTransactionId, string paymentMethodSystemName ) : Nop.Core.Domain.Orders.Order
authorizationTransactionId string Authorization transaction ID
paymentMethodSystemName string Payment method system name
return Nop.Core.Domain.Orders.Order

GetOrderByGuid() public method

Gets an order
public GetOrderByGuid ( System.Guid orderGuid ) : Nop.Core.Domain.Orders.Order
orderGuid System.Guid The order identifier
return Nop.Core.Domain.Orders.Order

GetOrderById() public method

Gets an order
public GetOrderById ( int orderId ) : Nop.Core.Domain.Orders.Order
orderId int The order identifier
return Nop.Core.Domain.Orders.Order

GetOrderProductVariantByGuid() public method

Gets an order product variant
public GetOrderProductVariantByGuid ( System.Guid orderProductVariantGuid ) : Nop.Core.Domain.Orders.OrderProductVariant
orderProductVariantGuid System.Guid Order product variant identifier
return Nop.Core.Domain.Orders.OrderProductVariant

GetOrderProductVariantById() public method

Gets an order product variant
public GetOrderProductVariantById ( int orderProductVariantId ) : Nop.Core.Domain.Orders.OrderProductVariant
orderProductVariantId int Order product variant identifier
return Nop.Core.Domain.Orders.OrderProductVariant

GetOrdersByAffiliateId() public method

Gets all orders by affiliate identifier
public GetOrdersByAffiliateId ( int affiliateId, int pageIndex, int pageSize ) : IPagedList
affiliateId int Affiliate identifier
pageIndex int Page index
pageSize int Page size
return IPagedList

GetOrdersByCustomerId() public method

Gets all orders by customer identifier
public GetOrdersByCustomerId ( int customerId ) : IList
customerId int Customer identifier
return IList

GetOrdersByIds() public method

Get orders by identifiers
public GetOrdersByIds ( int orderIds ) : IList
orderIds int Order identifiers
return IList

GetRecurringPaymentById() public method

Gets a recurring payment
public GetRecurringPaymentById ( int recurringPaymentId ) : Nop.Core.Domain.Orders.RecurringPayment
recurringPaymentId int The recurring payment identifier
return Nop.Core.Domain.Orders.RecurringPayment

GetReturnRequestById() public method

Gets a return request
public GetReturnRequestById ( int returnRequestId ) : Nop.Core.Domain.Orders.ReturnRequest
returnRequestId int Return request identifier
return Nop.Core.Domain.Orders.ReturnRequest

InsertOrder() public method

Inserts an order
public InsertOrder ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order Order
return void

InsertRecurringPayment() public method

Inserts a recurring payment
public InsertRecurringPayment ( Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : void
recurringPayment Nop.Core.Domain.Orders.RecurringPayment Recurring payment
return void

OrderService() public method

Ctor
public OrderService ( IRepository orderRepository, IRepository opvRepository, IRepository orderNoteRepository, IRepository pvRepository, IRepository recurringPaymentRepository, IRepository customerRepository, IRepository returnRequestRepository, IEventPublisher eventPublisher ) : System
orderRepository IRepository Order repository
opvRepository IRepository Order product variant repository
orderNoteRepository IRepository Order note repository
pvRepository IRepository Product variant repository
recurringPaymentRepository IRepository Recurring payment repository
customerRepository IRepository Customer repository
returnRequestRepository IRepository Return request repository
eventPublisher IEventPublisher Event published
return System

SearchOrders() public method

Search orders
public SearchOrders ( System.DateTime startTime, System.DateTime endTime, OrderStatus os, PaymentStatus ps, ShippingStatus ss, string billingEmail, string orderGuid, int pageIndex, int pageSize ) : IPagedList
startTime System.DateTime Order start time; null to load all orders
endTime System.DateTime Order end time; null to load all orders
os OrderStatus Order status; null to load all orders
ps PaymentStatus Order payment status; null to load all orders
ss ShippingStatus Order shippment status; null to load all orders
billingEmail string Billing email. Leave empty to load all records.
orderGuid string Search by order GUID (Global unique identifier) or part of GUID. Leave empty to load all orders.
pageIndex int Page index
pageSize int Page size
return IPagedList

SearchRecurringPayments() public method

Search recurring payments
public SearchRecurringPayments ( int customerId, int initialOrderId, OrderStatus initialOrderStatus, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList
customerId int The customer identifier; 0 to load all records
initialOrderId int The initial order identifier; 0 to load all records
initialOrderStatus OrderStatus Initial order status identifier; null to load all records
pageIndex int Page index
pageSize int Page size
showHidden bool A value indicating whether to show hidden records
return IPagedList

SearchReturnRequests() public method

Search return requests
public SearchReturnRequests ( int customerId, int orderProductVariantId, ReturnRequestStatus rs, int pageIndex, int pageSize ) : IPagedList
customerId int Customer identifier; null to load all entries
orderProductVariantId int Order product variant identifier; null to load all entries
rs ReturnRequestStatus Return request status; null to load all entries
pageIndex int Page index
pageSize int Page size
return IPagedList

UpdateOrder() public method

Updates the order
public UpdateOrder ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order The order
return void

UpdateRecurringPayment() public method

Updates the recurring payment
public UpdateRecurringPayment ( Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : void
recurringPayment Nop.Core.Domain.Orders.RecurringPayment Recurring payment
return void