feat: Implement user permission checks and manual payment functionalities

- Added CheckUserPermissionQuery and CheckUserPermissionQueryHandler for permission validation.
- Introduced GetUserRolesQuery and GetUserRolesQueryHandler to retrieve user roles.
- Created IPermissionService interface and its implementation in PermissionService.
- Defined permission and role constants in PermissionDefinitions.
- Developed SetDefaultVatPercentageCommand and its handler for VAT configuration.
- Implemented GetCurrentVatPercentageQuery and handler to fetch current VAT settings.
- Added manual payment commands: CreateManualPayment, ApproveManualPayment, and RejectManualPayment with respective handlers and validators.
- Created GetManualPaymentsQuery and handler for retrieving manual payment records.
- Integrated gRPC services for manual payments with appropriate permission checks.
- Established Protobuf definitions for manual payment operations and metadata.
This commit is contained in:
masoodafar-web
2025-12-05 17:27:38 +03:30
parent 67b43fea7a
commit 4aa9f28f6e
51 changed files with 1294 additions and 107 deletions
@@ -165,6 +165,11 @@ message GetUserOrderResponse
{
PaymentMethod payment_method = 16;
}
// اطلاعات مالیات بر ارزش افزوده
int64 vat_amount = 17;
double vat_percentage = 18;
int64 vat_base_amount = 19;
int64 vat_total_amount = 20;
}
message GetAllUserOrderByFilterRequest
{
@@ -226,6 +231,9 @@ message GetAllUserOrderByFilterResponseModel
{
PaymentMethod payment_method = 15;
}
// مبلغ و درصد مالیات بر ارزش افزوده
int64 vat_amount = 16;
double vat_percentage = 17;
}
// جزئیات فاکتور سفارش