v2: asset meta changes
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
bba9c90c6e
commit
206836156a
@ -140,7 +140,7 @@ message AssetList { repeated Asset list = 1; }
|
|||||||
|
|
||||||
message AssetFilter {
|
message AssetFilter {
|
||||||
repeated int64 ids = 1;
|
repeated int64 ids = 1;
|
||||||
repeated AssetType type = 2; // AssetType
|
repeated AssetType type = 2; // AssetType
|
||||||
repeated AssetType token_type = 3; // AssetType
|
repeated AssetType token_type = 3; // AssetType
|
||||||
repeated AssetStatus status = 4;
|
repeated AssetStatus status = 4;
|
||||||
repeated string name = 5;
|
repeated string name = 5;
|
||||||
@ -166,7 +166,8 @@ message AssetDiscountRes {
|
|||||||
double static_amount = 4;
|
double static_amount = 4;
|
||||||
double percentage = 5;
|
double percentage = 5;
|
||||||
double max_amount = 6;
|
double max_amount = 6;
|
||||||
double effective_amount = 7; // based of asset price and discount amount in req
|
double effective_amount =
|
||||||
|
7; // based of asset price and discount amount in req
|
||||||
optional int64 supported_asset = 8;
|
optional int64 supported_asset = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -196,6 +197,18 @@ message PropertyMeta {
|
|||||||
string completion_date = 10;
|
string completion_date = 10;
|
||||||
string user_agreement_url = 11;
|
string user_agreement_url = 11;
|
||||||
string location_image = 12;
|
string location_image = 12;
|
||||||
|
PropertyDetail detail = 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
message PropertyDetail {
|
||||||
|
repeated Content badge = 1; // 2>
|
||||||
|
repeated Content content = 2; // 4>
|
||||||
|
}
|
||||||
|
|
||||||
|
message Content {
|
||||||
|
string label = 1;
|
||||||
|
string value = 2;
|
||||||
|
string value_type = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Used for both locking and releasing asset :)
|
// Used for both locking and releasing asset :)
|
||||||
@ -588,7 +601,7 @@ message DeclineBuyContractReq {
|
|||||||
|
|
||||||
message ConfirmBuyAssetReq {
|
message ConfirmBuyAssetReq {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
uint64 agreement_id = 2; // Only in asset that require agreement contract
|
uint64 agreement_id = 2; // Only in asset that require agreement contract
|
||||||
optional auth.v1.TFA tfa = 3; // This might be used in the future
|
optional auth.v1.TFA tfa = 3; // This might be used in the future
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -620,7 +633,7 @@ enum ContractType {
|
|||||||
CONTRACT_TYPE_REDEEM = 3;
|
CONTRACT_TYPE_REDEEM = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
//agreement_id
|
// agreement_id
|
||||||
message ContractRes {
|
message ContractRes {
|
||||||
string link = 1;
|
string link = 1;
|
||||||
uint64 agreement_id = 2;
|
uint64 agreement_id = 2;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user