6d8b6b3e59
Implemented DeliveryTask, Payment, and Sale entities with full CRUD, business logic, and API endpoints. Updated Order/OrderItem for sale linkage and fulfillment tracking. Registered new DbSets and DI services. Revised documentation for delivery, sale, and payment workflows.
16 lines
343 B
C#
16 lines
343 B
C#
using Distribution.Models;
|
|
|
|
namespace Distribution.Features.Payment;
|
|
|
|
public record CreatePaymentRequest(decimal Amount, PaymentMethod Method);
|
|
|
|
public record PaymentResponse(
|
|
Guid Id,
|
|
Guid SaleId,
|
|
Guid StoreId,
|
|
decimal Amount,
|
|
PaymentMethod Method,
|
|
DateTime CollectedAt,
|
|
Guid CollectedBy,
|
|
DateTime CreatedAt);
|