feat(wallet): add credit wallet functionality and update Protobuf definitions
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 9m49s

- Introduced new CreditWalletCharge enum value to TransactionType for clarity.
- Implemented InitiateCreditCharge and VerifyCreditCharge methods in UserWalletService for handling credit wallet transactions.
- Updated ZarinpalReconciliationJob to support credit wallet payment verification.
- Enhanced Protobuf definitions with new messages and RPC methods for credit wallet operations.
- Bumped Protobuf project version to reflect the addition of new features.
This commit is contained in:
masoodafar-web
2026-06-26 16:11:18 +03:30
parent 7570c39e65
commit 6c3fbe43b1
10 changed files with 462 additions and 1 deletions
@@ -3,7 +3,7 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.201</Version>
<Version>0.0.202</Version>
<DebugType>None</DebugType>
<DebugSymbols>False</DebugSymbols>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
@@ -110,6 +110,21 @@ service UserWalletContract
body: "*"
};
};
// ============= Credit (Main) Wallet Methods =============
rpc InitiateCreditCharge(InitiateCreditChargeRequest) returns (InitiateCreditChargeResponse){
option (google.api.http) = {
post: "/Customer/InitiateCreditCharge"
body: "*"
};
};
rpc VerifyCreditCharge(VerifyWalletChargeRequest) returns (VerifyWalletChargeResponse){
option (google.api.http) = {
post: "/Customer/VerifyCreditCharge"
body: "*"
};
};
}
message CreateNewUserWalletRequest
{
@@ -283,6 +298,20 @@ message InitiateDiscountChargeResponse
string error_message = 3;
}
// ============= Credit (Main) Wallet Messages =============
message InitiateCreditChargeRequest
{
int64 amount = 1; // مبلغ واریزی (تومان)
}
message InitiateCreditChargeResponse
{
bool is_success = 1;
string gateway_url = 2;
string error_message = 3;
}
// ============= Wallet Verify Messages =============
message VerifyWalletChargeRequest