Table of Contents

Interface IOrderService

Namespace
Rescope.Commerce.Core.Services
Assembly
Rescope.Commerce.Core.dll
public interface IOrderService : IService<Order>
Inherited Members

Methods

CapturePayment(Order)

Task<CapturePaymentResult?> CapturePayment(Order order)

Parameters

order Order

Returns

Task<CapturePaymentResult>

GetByNumber(string)

Task<Order> GetByNumber(string orderNumber)

Parameters

orderNumber string

Returns

Task<Order>

GetPage(int, string, SortOrder, string?, PaymentStatus?)

Task<PaginatedResponse<Order>> GetPage(int page, string filter, SortOrder sortOrder = SortOrder.DESC, string? sortBy = null, PaymentStatus? paymentStatus = null)

Parameters

page int
filter string
sortOrder SortOrder
sortBy string
paymentStatus PaymentStatus?

Returns

Task<PaginatedResponse<Order>>

RetryPayment(Order, IPublishedContent)

Task<InitiatePaymentResult> RetryPayment(Order basket, IPublishedContent confirmationPage)

Parameters

basket Order
confirmationPage IPublishedContent

Returns

Task<InitiatePaymentResult>

SaveAdditionalData(Order)

Task SaveAdditionalData(Order order)

Parameters

order Order

Returns

Task