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
|
INTERNAL DATA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
message InternalTransactionData {
|
message InternalTransactionData { int64 transaction_id = 1; }
|
||||||
int64 transaction_id = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Federation
|
Federation
|
||||||
@ -38,9 +36,7 @@ message GetFederationReq {
|
|||||||
Asset
|
Asset
|
||||||
*/
|
*/
|
||||||
|
|
||||||
message AssetList {
|
message AssetList { repeated Asset list = 1; }
|
||||||
repeated Asset list = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message Asset {
|
message Asset {
|
||||||
int64 id = 1;
|
int64 id = 1;
|
||||||
@ -90,9 +86,7 @@ message GetAssetReq {
|
|||||||
optional string code = 3;
|
optional string code = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AssetMeta {
|
message AssetMeta { PropertyMeta property = 1; }
|
||||||
PropertyMeta property = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message PropertyMeta {
|
message PropertyMeta {
|
||||||
string description = 1;
|
string description = 1;
|
||||||
@ -167,7 +161,8 @@ message UserBNPLReq {
|
|||||||
optional float amount = 7;
|
optional float amount = 7;
|
||||||
optional PaymentPeriodInfo payment_period = 8;
|
optional PaymentPeriodInfo payment_period = 8;
|
||||||
optional bool has_agreed_contract = 9;
|
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;
|
optional int64 asset_id = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,9 +186,7 @@ message BNPLInfo {
|
|||||||
string expires_at = 14;
|
string expires_at = 14;
|
||||||
}
|
}
|
||||||
|
|
||||||
message BNPLList {
|
message BNPLList { repeated BNPLInfo list = 1; }
|
||||||
repeated BNPLInfo list = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Wallet
|
Wallet
|
||||||
@ -382,9 +375,7 @@ message SaleConfirmReq {
|
|||||||
optional uint64 discount_code = 8;
|
optional uint64 discount_code = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SaleConfirmRes {
|
message SaleConfirmRes { string receipt_link = 1; }
|
||||||
string receipt_link = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message SaleManualReq {
|
message SaleManualReq {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
@ -394,7 +385,6 @@ message SaleManualReq {
|
|||||||
string rrn = 5;
|
string rrn = 5;
|
||||||
string national_id = 6;
|
string national_id = 6;
|
||||||
optional uint64 discount_code = 7;
|
optional uint64 discount_code = 7;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -430,18 +420,14 @@ message RedeemTokenRes {
|
|||||||
optional auth.v1.BankInfo bank_info = 10;
|
optional auth.v1.BankInfo bank_info = 10;
|
||||||
optional string receipt = 11;
|
optional string receipt = 11;
|
||||||
}
|
}
|
||||||
message RedeemTokenResList {
|
message RedeemTokenResList { repeated RedeemTokenRes list = 1; }
|
||||||
repeated RedeemTokenRes list = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetPublicKeyByNationalIDReq {
|
message GetPublicKeyByNationalIDReq {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
string national_id = 2;
|
string national_id = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetPublicKeyByNationalIDRes {
|
message GetPublicKeyByNationalIDRes { string pub_key = 1; }
|
||||||
string pub_key = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Network Details
|
Network Details
|
||||||
@ -467,9 +453,7 @@ message Network {
|
|||||||
string created_at = 11;
|
string created_at = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
message NetworkList {
|
message NetworkList { repeated Network list = 1; }
|
||||||
repeated Network list = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message Commission {
|
message Commission {
|
||||||
uint64 id = 1;
|
uint64 id = 1;
|
||||||
@ -503,5 +487,7 @@ message AssetDiscountRes {
|
|||||||
string expires_at = 3;
|
string expires_at = 3;
|
||||||
double static_amount = 4;
|
double static_amount = 4;
|
||||||
double percentage = 5;
|
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