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