dev - trx status + type enum added
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
330f8e8bf1
commit
9609bdfa05
@ -219,10 +219,26 @@ message TransactionList {
|
|||||||
int64 total_count = 2;
|
int64 total_count = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum TransactionType {
|
||||||
|
Unknown = 0;
|
||||||
|
Buy = 1;
|
||||||
|
Sell = 2;
|
||||||
|
Transfer = 3;
|
||||||
|
Redeem = 4;
|
||||||
|
}
|
||||||
|
enum TransactionStatus {
|
||||||
|
Undetermined = 0;
|
||||||
|
Failed = -10;
|
||||||
|
Suspended = -9;
|
||||||
|
Created = -1;
|
||||||
|
Pending = 1;
|
||||||
|
Successful = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message Transaction {
|
message Transaction {
|
||||||
int64 id = 1;
|
int64 id = 1;
|
||||||
int64 asset_id = 2;
|
int64 asset_id = 2;
|
||||||
// Asset asset_info = 3; //Causing network overloading
|
// Asset asset_info = 3; //Causing network overloading
|
||||||
optional int64 from_user_id = 4;
|
optional int64 from_user_id = 4;
|
||||||
optional authorization.UserIdentityBasic from_user_info = 5;
|
optional authorization.UserIdentityBasic from_user_info = 5;
|
||||||
optional int64 from_federation_id = 6;
|
optional int64 from_federation_id = 6;
|
||||||
@ -232,8 +248,8 @@ message Transaction {
|
|||||||
optional int64 to_federation_id = 10;
|
optional int64 to_federation_id = 10;
|
||||||
optional Federation to_federation_info = 11;
|
optional Federation to_federation_info = 11;
|
||||||
double amount = 12;
|
double amount = 12;
|
||||||
int32 status = 13;
|
TransactionStatus status = 13;
|
||||||
int32 type = 14;
|
TransactionType type = 14;
|
||||||
string updated_at = 15;
|
string updated_at = 15;
|
||||||
string created_at = 16;
|
string created_at = 16;
|
||||||
string tracking_code = 17;
|
string tracking_code = 17;
|
||||||
@ -326,16 +342,16 @@ message SaleManualReq {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Redeem Token
|
Redeem Token
|
||||||
*/
|
*/
|
||||||
message RedeemTokenReq{
|
message RedeemTokenReq {
|
||||||
authorization.InternalIAM iam = 1;
|
authorization.InternalIAM iam = 1;
|
||||||
int64 asset_id = 2;
|
int64 asset_id = 2;
|
||||||
uint64 bank_info_id = 3;
|
uint64 bank_info_id = 3;
|
||||||
double amount = 4;
|
double amount = 4;
|
||||||
optional string tfa_code = 5;
|
optional string tfa_code = 5;
|
||||||
}
|
}
|
||||||
message CalculateRedeemTokenRes{
|
message CalculateRedeemTokenRes {
|
||||||
Asset asset = 1;
|
Asset asset = 1;
|
||||||
double free_balance = 2;
|
double free_balance = 2;
|
||||||
double total_balance = 3;
|
double total_balance = 3;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user