- Added delete order functionality with identity verification - OrderDetailsMenu now shows conditional buttons based on order/payment state - Retry payment if no payments exist - View payment details if payment pending - Delete order option for all pending orders - Full client SDK implementation for CancelOrderAsync 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
743 B
C#
15 lines
743 B
C#
using LittleShop.Client.Models;
|
|
|
|
namespace LittleShop.Client.Services;
|
|
|
|
public interface IOrderService
|
|
{
|
|
Task<ApiResponse<Order>> CreateOrderAsync(CreateOrderRequest request);
|
|
Task<ApiResponse<List<Order>>> GetOrdersByIdentityAsync(string identityReference);
|
|
Task<ApiResponse<List<Order>>> GetOrdersByCustomerIdAsync(Guid customerId);
|
|
Task<ApiResponse<Order>> GetOrderByIdAsync(Guid id);
|
|
Task<ApiResponse<Order>> GetOrderByCustomerIdAsync(Guid customerId, Guid orderId);
|
|
Task<ApiResponse<CryptoPayment>> CreatePaymentAsync(Guid orderId, int currency);
|
|
Task<ApiResponse<List<CryptoPayment>>> GetOrderPaymentsAsync(Guid orderId);
|
|
Task<ApiResponse<bool>> CancelOrderAsync(Guid orderId, string identityReference);
|
|
} |