dc7e7a70fc
Introduced FlatPaymentController under Distribution.Features.Payment, providing GET and POST endpoints at /api/payments. Supports listing, retrieving, and creating payments with filtering and error handling. Business logic is delegated to PaymentService.
23 lines
562 B
C#
23 lines
562 B
C#
namespace Distribution.Features.DriverProfile;
|
|
|
|
public record DriverProfileResponse(
|
|
Guid Id,
|
|
Guid UserId,
|
|
string UserFullName,
|
|
string LicenseNumber,
|
|
DateTime LicenseExpiry,
|
|
DateTime MedicalClearanceExpiry,
|
|
bool IsActive,
|
|
DateTime CreatedAt);
|
|
|
|
public record CreateDriverProfileRequest(
|
|
Guid UserId,
|
|
string LicenseNumber,
|
|
DateTime LicenseExpiry,
|
|
DateTime MedicalClearanceExpiry);
|
|
|
|
public record UpdateDriverProfileRequest(
|
|
string LicenseNumber,
|
|
DateTime LicenseExpiry,
|
|
DateTime MedicalClearanceExpiry);
|