feat:Initial commit
This commit is contained in:
17
StoreService/Services/IOrderService.cs
Normal file
17
StoreService/Services/IOrderService.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using StoreService.Models;
|
||||
|
||||
namespace StoreService.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Service responsible for order lifecycle (create, pay, redeem) including price calculation.
|
||||
/// </summary>
|
||||
public interface IOrderService
|
||||
{
|
||||
#region Methods
|
||||
Task<OrderDto> CreateOrderAsync(CreateOrderRequest request, CancellationToken ct = default);
|
||||
Task<OrderDto?> GetOrderAsync(long id, CancellationToken ct = default);
|
||||
Task<OrderDto> PayOrderAsync(long id, CancellationToken ct = default);
|
||||
Task<OrderDto> RedeemOrderItemsAsync(long id, CancellationToken ct = default);
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user