feat: add manual membership payment processing with wallet and order management
All checks were successful
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 7m8s

This commit is contained in:
masoodafar-web
2025-12-12 10:07:14 +03:30
parent b19cf5e32e
commit 094846ce8b
8 changed files with 309 additions and 1 deletions

View File

@@ -38,6 +38,13 @@ service ManualPaymentContract
get: "/GetAllManualPayments"
};
};
rpc ProcessManualMembershipPayment(ProcessManualMembershipPaymentRequest) returns (ProcessManualMembershipPaymentResponse){
option (google.api.http) = {
post: "/ProcessManualMembershipPayment"
body: "*"
};
};
}
// Enums mirroring CMSMicroservice.Domain.Enums.ManualPaymentType
@@ -128,3 +135,20 @@ message ManualPaymentModel
google.protobuf.Timestamp created = 19;
}
message ProcessManualMembershipPaymentRequest
{
int64 user_id = 1;
int64 amount = 2;
string reference_number = 3;
google.protobuf.StringValue description = 4;
int64 admin_user_id = 5;
}
message ProcessManualMembershipPaymentResponse
{
int64 transaction_id = 1;
int64 order_id = 2;
int64 new_wallet_balance = 3;
string message = 4;
}