v2: discount code type ( str -> int )
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
478f063c44
commit
b60db4b969
@ -358,7 +358,7 @@ message SaleGetTokenReq {
|
|||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
int64 asset_id = 2;
|
int64 asset_id = 2;
|
||||||
double amount = 3;
|
double amount = 3;
|
||||||
optional string discount_code = 4;
|
optional uint64 discount_code = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// represent the information regarding the ipg gateway
|
// represent the information regarding the ipg gateway
|
||||||
@ -368,7 +368,7 @@ message SaleGetTokenRes {
|
|||||||
int64 total_price = 3;
|
int64 total_price = 3;
|
||||||
double amount = 4;
|
double amount = 4;
|
||||||
string asset = 5;
|
string asset = 5;
|
||||||
optional string discount_code = 6;
|
optional uint64 discount_code = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SaleConfirmReq {
|
message SaleConfirmReq {
|
||||||
@ -379,7 +379,7 @@ message SaleConfirmReq {
|
|||||||
string card_holder_info = 5;
|
string card_holder_info = 5;
|
||||||
string card_holder_pan = 6;
|
string card_holder_pan = 6;
|
||||||
string final_amount = 7;
|
string final_amount = 7;
|
||||||
optional string discount_code = 8;
|
optional uint64 discount_code = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SaleConfirmRes {
|
message SaleConfirmRes {
|
||||||
@ -393,7 +393,7 @@ message SaleManualReq {
|
|||||||
string paid_at = 4;
|
string paid_at = 4;
|
||||||
string rrn = 5;
|
string rrn = 5;
|
||||||
string national_id = 6;
|
string national_id = 6;
|
||||||
optional string discount_code = 7;
|
optional uint64 discount_code = 4;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -491,15 +491,17 @@ message LockAssetReq {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message AssetDiscountReq {
|
message AssetDiscountReq {
|
||||||
string code = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
int64 asset_id = 2;
|
string code = 2;
|
||||||
optional double amount = 3; // calculate discount amount
|
int64 asset_id = 3;
|
||||||
|
optional double amount = 4; // calculate discount amount
|
||||||
}
|
}
|
||||||
|
|
||||||
message AssetDiscountRes {
|
message AssetDiscountRes {
|
||||||
string code = 1;
|
uint64 id = 1;
|
||||||
string expires_at = 2;
|
string code = 2;
|
||||||
double static_amount = 3;
|
string expires_at = 3;
|
||||||
double percentage = 4;
|
double static_amount = 4;
|
||||||
optional double discount_amount = 5; // based of asset price and discount amount in req
|
double percentage = 5;
|
||||||
|
optional double discount_amount = 6; // based of asset price and discount amount in req
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user