v2: formate + discount now has supported assets
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
f1350ead71
commit
26f5aeecc3
@ -9,9 +9,7 @@ import "base/v1/msg.proto";
|
||||
INTERNAL DATA
|
||||
*/
|
||||
|
||||
message InternalTransactionData {
|
||||
int64 transaction_id = 1;
|
||||
}
|
||||
message InternalTransactionData { int64 transaction_id = 1; }
|
||||
|
||||
/*
|
||||
Federation
|
||||
@ -38,9 +36,7 @@ message GetFederationReq {
|
||||
Asset
|
||||
*/
|
||||
|
||||
message AssetList {
|
||||
repeated Asset list = 1;
|
||||
}
|
||||
message AssetList { repeated Asset list = 1; }
|
||||
|
||||
message Asset {
|
||||
int64 id = 1;
|
||||
@ -90,9 +86,7 @@ message GetAssetReq {
|
||||
optional string code = 3;
|
||||
}
|
||||
|
||||
message AssetMeta {
|
||||
PropertyMeta property = 1;
|
||||
}
|
||||
message AssetMeta { PropertyMeta property = 1; }
|
||||
|
||||
message PropertyMeta {
|
||||
string description = 1;
|
||||
@ -167,7 +161,8 @@ message UserBNPLReq {
|
||||
optional float amount = 7;
|
||||
optional PaymentPeriodInfo payment_period = 8;
|
||||
optional bool has_agreed_contract = 9;
|
||||
optional int32 current_step = 10; //Can be useful for admin to change the current step
|
||||
optional int32 current_step =
|
||||
10; // Can be useful for admin to change the current step
|
||||
optional int64 asset_id = 11;
|
||||
}
|
||||
|
||||
@ -191,9 +186,7 @@ message BNPLInfo {
|
||||
string expires_at = 14;
|
||||
}
|
||||
|
||||
message BNPLList {
|
||||
repeated BNPLInfo list = 1;
|
||||
}
|
||||
message BNPLList { repeated BNPLInfo list = 1; }
|
||||
|
||||
/*
|
||||
Wallet
|
||||
@ -382,9 +375,7 @@ message SaleConfirmReq {
|
||||
optional uint64 discount_code = 8;
|
||||
}
|
||||
|
||||
message SaleConfirmRes {
|
||||
string receipt_link = 1;
|
||||
}
|
||||
message SaleConfirmRes { string receipt_link = 1; }
|
||||
|
||||
message SaleManualReq {
|
||||
auth.v1.InternalIAM iam = 1;
|
||||
@ -394,7 +385,6 @@ message SaleManualReq {
|
||||
string rrn = 5;
|
||||
string national_id = 6;
|
||||
optional uint64 discount_code = 7;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
@ -430,18 +420,14 @@ message RedeemTokenRes {
|
||||
optional auth.v1.BankInfo bank_info = 10;
|
||||
optional string receipt = 11;
|
||||
}
|
||||
message RedeemTokenResList {
|
||||
repeated RedeemTokenRes list = 1;
|
||||
}
|
||||
message RedeemTokenResList { repeated RedeemTokenRes list = 1; }
|
||||
|
||||
message GetPublicKeyByNationalIDReq {
|
||||
auth.v1.InternalIAM iam = 1;
|
||||
string national_id = 2;
|
||||
}
|
||||
|
||||
message GetPublicKeyByNationalIDRes {
|
||||
string pub_key = 1;
|
||||
}
|
||||
message GetPublicKeyByNationalIDRes { string pub_key = 1; }
|
||||
|
||||
/*
|
||||
Network Details
|
||||
@ -467,9 +453,7 @@ message Network {
|
||||
string created_at = 11;
|
||||
}
|
||||
|
||||
message NetworkList {
|
||||
repeated Network list = 1;
|
||||
}
|
||||
message NetworkList { repeated Network list = 1; }
|
||||
|
||||
message Commission {
|
||||
uint64 id = 1;
|
||||
@ -503,5 +487,7 @@ message AssetDiscountRes {
|
||||
string expires_at = 3;
|
||||
double static_amount = 4;
|
||||
double percentage = 5;
|
||||
optional double discount_amount = 6; // based of asset price and discount amount in req
|
||||
double supported_assets = 6;
|
||||
optional double discount_amount =
|
||||
7; // based of asset price and discount amount in req
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user