2024-02-09 19:43:17 +03:30
|
|
|
|
using NetinaShop.Domain.Entities.Products;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NetinaShop.Domain.CommandQueries.Commands;
|
2023-12-31 19:55:22 +03:30
|
|
|
|
|
|
|
|
|
|
public sealed record CreateOrderCommand(string DiscountCode, List<OrderProductSDto> OrderProducts, OrderDeliverySDto OrderDelivery) : IRequest<OrderSDto>;
|
|
|
|
|
|
|
2024-03-03 11:42:11 +03:30
|
|
|
|
public sealed record CheckOrderBagCommand(List<CheckOrderBagRequestItem> OrderBag) : IRequest<List<CheckOrderBagResponseItem>>;
|
2024-02-10 14:00:31 +03:30
|
|
|
|
public sealed record AddToOrderBagCommand(List<OrderBagRequestDto> RequestDtos) : IRequest<OrderSDto>;
|
|
|
|
|
|
public sealed record RemoveFromOrderBagCommand(List<OrderBagRequestDto> RequestDtos) : IRequest<OrderSDto>;
|
2023-12-31 19:55:22 +03:30
|
|
|
|
|
2024-02-12 22:01:15 +03:30
|
|
|
|
public sealed record SubmitDiscountCommand(Guid OrderId,string DiscountCode) : IRequest<OrderSDto>;
|
|
|
|
|
|
public sealed record SubmitOrderDeliveryCommand(Guid AddressId, Guid OrderId, Guid ShippingId) : IRequest<OrderSDto>;
|
2023-12-31 19:55:22 +03:30
|
|
|
|
|
2024-03-03 11:42:11 +03:30
|
|
|
|
public sealed record SubmitOrderBagCommand(List<OrderBagRequestDto> RequestDtos) : IRequest<OrderSDto>;
|
2024-02-12 10:46:18 +03:30
|
|
|
|
public sealed record SubmitOrderPaymentCommand(Guid OrderId, OrderPaymentMethod PaymentMethod , bool HasPaid = false) : IRequest<SubmitOrderPaymentResponseDto>;
|
2023-12-31 19:55:22 +03:30
|
|
|
|
|