feat(wallet): add credit wallet functionality and update Protobuf definitions
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 9m49s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user