C# Class Nop.Services.Orders.OrderService

Order service
Inheritance: IOrderService
Afficher le fichier Open project: emilianionascu/NopCommerce

Méthodes publiques

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

DeleteOrderNote() public méthode

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

DeleteOrderProductVariant() public méthode

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

DeleteRecurringPayment() public méthode

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

DeleteReturnRequest() public méthode

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

GetAllOrderProductVariants() public méthode

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

GetOrderByAuthorizationTransactionIdAndPaymentMethod() public méthode

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
Résultat Nop.Core.Domain.Orders.Order

GetOrderByGuid() public méthode

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

GetOrderById() public méthode

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

GetOrderProductVariantByGuid() public méthode

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

GetOrderProductVariantById() public méthode

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

GetOrdersByAffiliateId() public méthode

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

GetOrdersByCustomerId() public méthode

Gets all orders by customer identifier
public GetOrdersByCustomerId ( int customerId ) : IList
customerId int Customer identifier
Résultat IList

GetOrdersByIds() public méthode

Get orders by identifiers
public GetOrdersByIds ( int orderIds ) : IList
orderIds int Order identifiers
Résultat IList

GetRecurringPaymentById() public méthode

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

GetReturnRequestById() public méthode

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

InsertOrder() public méthode

Inserts an order
public InsertOrder ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order Order
Résultat void

InsertRecurringPayment() public méthode

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

OrderService() public méthode

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

SearchOrders() public méthode

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

SearchRecurringPayments() public méthode

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

SearchReturnRequests() public méthode

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

UpdateOrder() public méthode

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

UpdateRecurringPayment() public méthode

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