Redeem rpc and messages added
This commit is contained in:
parent
bcdcb6bb21
commit
016219f1da
@ -2,8 +2,8 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package wallet;
|
package wallet;
|
||||||
|
|
||||||
import "base_message.proto";
|
|
||||||
import "authorization_message.proto";
|
import "authorization_message.proto";
|
||||||
|
import "base_message.proto";
|
||||||
import "wallet_message.proto";
|
import "wallet_message.proto";
|
||||||
|
|
||||||
service WalletService {
|
service WalletService {
|
||||||
@ -34,4 +34,8 @@ service WalletService {
|
|||||||
rpc SubmitBNPLForm(UserBNPLReq) returns (base.StatusRes);
|
rpc SubmitBNPLForm(UserBNPLReq) returns (base.StatusRes);
|
||||||
rpc UpdateBNPL(UserBNPLReq) returns (base.StatusRes);
|
rpc UpdateBNPL(UserBNPLReq) returns (base.StatusRes);
|
||||||
rpc CancleBNPL(authorization.IdReqWithIAM) returns (base.StatusRes);
|
rpc CancleBNPL(authorization.IdReqWithIAM) returns (base.StatusRes);
|
||||||
|
|
||||||
|
// Redeem Token
|
||||||
|
rpc CalculateRedeemToken(authorization.IdReqWithIAM) returns (CalculateRedeemTokenRes);
|
||||||
|
rpc RedeemToken(RedeemTokenReq) returns (RedeemTokenRes);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -324,3 +324,27 @@ message SaleManualReq {
|
|||||||
string rrn = 5;
|
string rrn = 5;
|
||||||
string national_id = 6;
|
string national_id = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Redeem Token
|
||||||
|
|
||||||
|
*/
|
||||||
|
message RedeemTokenReq{
|
||||||
|
authorization.InternalIAM iam = 1;
|
||||||
|
int64 asset_id = 2;
|
||||||
|
uint64 account_id = 3;
|
||||||
|
double amount = 4;
|
||||||
|
string tfa_code = 5;
|
||||||
|
}
|
||||||
|
message RedeemTokenRes{
|
||||||
|
|
||||||
|
}
|
||||||
|
message CalculateRedeemTokenRes{
|
||||||
|
Asset asset = 1;
|
||||||
|
double free_balance = 2;
|
||||||
|
double total_balance = 3;
|
||||||
|
double request_amount = 4;
|
||||||
|
double profit_capital = 5;
|
||||||
|
double user_capital = 6;
|
||||||
|
optional authorization.BankInfo bank_info = 7;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user