C# Класс Nop.Services.Orders.OrderService

Order service
Наследование: IOrderService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

DeleteOrder() публичный Метод

Deletes an order
public DeleteOrder ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order The order
Результат void

DeleteOrderNote() публичный Метод

Deletes an order note
public DeleteOrderNote ( Nop.Core.Domain.Orders.OrderNote orderNote ) : void
orderNote Nop.Core.Domain.Orders.OrderNote The order note
Результат void

DeleteOrderProductVariant() публичный Метод

Delete an order product variant
public DeleteOrderProductVariant ( Nop.Core.Domain.Orders.OrderProductVariant orderProductVariant ) : void
orderProductVariant Nop.Core.Domain.Orders.OrderProductVariant The order product variant
Результат void

DeleteRecurringPayment() публичный Метод

Deletes a recurring payment
public DeleteRecurringPayment ( Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : void
recurringPayment Nop.Core.Domain.Orders.RecurringPayment Recurring payment
Результат void

DeleteReturnRequest() публичный Метод

Deletes a return request
public DeleteReturnRequest ( Nop.Core.Domain.Orders.ReturnRequest returnRequest ) : void
returnRequest Nop.Core.Domain.Orders.ReturnRequest Return request
Результат void

GetAllOrderProductVariants() публичный Метод

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
Результат IList

GetOrderByAuthorizationTransactionIdAndPaymentMethod() публичный Метод

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
Результат Nop.Core.Domain.Orders.Order

GetOrderByGuid() публичный Метод

Gets an order
public GetOrderByGuid ( System.Guid orderGuid ) : Nop.Core.Domain.Orders.Order
orderGuid System.Guid The order identifier
Результат Nop.Core.Domain.Orders.Order

GetOrderById() публичный Метод

Gets an order
public GetOrderById ( int orderId ) : Nop.Core.Domain.Orders.Order
orderId int The order identifier
Результат Nop.Core.Domain.Orders.Order

GetOrderProductVariantByGuid() публичный Метод

Gets an order product variant
public GetOrderProductVariantByGuid ( System.Guid orderProductVariantGuid ) : Nop.Core.Domain.Orders.OrderProductVariant
orderProductVariantGuid System.Guid Order product variant identifier
Результат Nop.Core.Domain.Orders.OrderProductVariant

GetOrderProductVariantById() публичный Метод

Gets an order product variant
public GetOrderProductVariantById ( int orderProductVariantId ) : Nop.Core.Domain.Orders.OrderProductVariant
orderProductVariantId int Order product variant identifier
Результат Nop.Core.Domain.Orders.OrderProductVariant

GetOrdersByAffiliateId() публичный Метод

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
Результат IPagedList

GetOrdersByCustomerId() публичный Метод

Gets all orders by customer identifier
public GetOrdersByCustomerId ( int customerId ) : IList
customerId int Customer identifier
Результат IList

GetOrdersByIds() публичный Метод

Get orders by identifiers
public GetOrdersByIds ( int orderIds ) : IList
orderIds int Order identifiers
Результат IList

GetRecurringPaymentById() публичный Метод

Gets a recurring payment
public GetRecurringPaymentById ( int recurringPaymentId ) : Nop.Core.Domain.Orders.RecurringPayment
recurringPaymentId int The recurring payment identifier
Результат Nop.Core.Domain.Orders.RecurringPayment

GetReturnRequestById() публичный Метод

Gets a return request
public GetReturnRequestById ( int returnRequestId ) : Nop.Core.Domain.Orders.ReturnRequest
returnRequestId int Return request identifier
Результат Nop.Core.Domain.Orders.ReturnRequest

InsertOrder() публичный Метод

Inserts an order
public InsertOrder ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order Order
Результат void

InsertRecurringPayment() публичный Метод

Inserts a recurring payment
public InsertRecurringPayment ( Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : void
recurringPayment Nop.Core.Domain.Orders.RecurringPayment Recurring payment
Результат void

OrderService() публичный Метод

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
Результат System

SearchOrders() публичный Метод

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
Результат IPagedList

SearchRecurringPayments() публичный Метод

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
Результат IPagedList

SearchReturnRequests() публичный Метод

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
Результат IPagedList

UpdateOrder() публичный Метод

Updates the order
public UpdateOrder ( Nop.Core.Domain.Orders.Order order ) : void
order Nop.Core.Domain.Orders.Order The order
Результат void

UpdateRecurringPayment() публичный Метод

Updates the recurring payment
public UpdateRecurringPayment ( Nop.Core.Domain.Orders.RecurringPayment recurringPayment ) : void
recurringPayment Nop.Core.Domain.Orders.RecurringPayment Recurring payment
Результат void