Added payment status

This commit is contained in:
nfel 2024-08-10 12:08:16 +03:30
parent 6b2b6b105a
commit 14cd8ca8b5
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F

View File

@ -113,12 +113,21 @@ message GetUserBNPLInfoReq {
base.IdReq id = 2;
}
enum BNPLPaymentsStatus{
PENDING=0;
PAYED=1;
OVER_DUE=2;
NOT_STARTED=3;
NOT_YET_DUE=4;
CANCLED=5;
}
message BNPLPayments {
uint64 id = 1;
double amount = 2;
bool is_paied = 3;
string due_date = 4;
string settlement_date = 5;
BNPLPaymentsStatus status = 6;
}
message UserBNPLResp {
@ -146,6 +155,7 @@ message UserBNPLReq {
PaymentPeriodInfo payment_period = 8;
bool has_agreed_contract = 9;
}
message PaymentPeriodInfo {
uint64 id = 1;
uint64 period = 2;