From 81b00a7416ba92c92b41c2f5492add8f4a531e12 Mon Sep 17 00:00:00 2001 From: nfel Date: Sat, 27 Jul 2024 11:21:36 +0330 Subject: [PATCH] id type changed from int64 -> uint64 --- wallet_message.proto | 135 ++++++++++++++++++++++--------------------- 1 file changed, 68 insertions(+), 67 deletions(-) diff --git a/wallet_message.proto b/wallet_message.proto index 0b3d22c..d85564a 100644 --- a/wallet_message.proto +++ b/wallet_message.proto @@ -76,73 +76,6 @@ message Asset { int32 status = 31; AssetMeta meta = 32; } -/* - BNPL - not really but close name -*/ - -// enum BNPLPgState { -// -// } - -message GetUserBNPLInfoReq{ - authorization.InternalIAM iam =1 ; - base.IdReq id = 2; -} - -message BNPLPayments { - int64 id = 1; - double amount = 2; - bool is_paied = 3; - string due_date = 4; - string settlement_date = 5; -} - -message UserBNPLResp { - int64 id = 1; - BNPLInfo bnpl = 2; - int32 current_step=3; - optional float amount = 4; - optional float payment_period = 5; - optional bool accepted_terms = 6; - repeated BNPLPayments payments = 7; - optional string employee_id = 8; - optional authorization.Company company = 10; - optional string updated_at = 12; - optional string created_at = 13; -} - -message UserBNPLReq { - int64 id = 1; - int64 bnpl_id = 2; - string created_at = 3; - string employee_id = 4; - int64 company_id = 5; - float amount = 7; - float payment_period = 8; - bool has_agreed_contract = 9; -} -message PaymentPeriodInfo { - int64 id = 1; - string period = 2; - bool enabled = 3; -} -message BNPLInfo { - int64 id = 1; - string description = 3; - repeated Asset supported_assets = 2; - optional bool enabled = 4; - float amount_start = 5; - float amount_end = 6; - float amount_steps = 7; - repeated PaymentPeriodInfo payment_period = 8; - repeated authorization.Company possible_companies = 11; - string updated_at = 12; - string created_at = 13; - string expiers_at = 14; -} -message BNPLList { - repeated BNPLInfo list = 1; -} message GetAssetReq { optional int64 id = 1; @@ -167,6 +100,74 @@ message PropertyMeta { string user_agreement_url = 11; } +/* + BNPL - not really but close name +*/ + +// enum BNPLPgState { +// +// } + +message GetUserBNPLInfoReq { + authorization.InternalIAM iam = 1; + base.IdReq id = 2; +} + +message BNPLPayments { + uint64 id = 1; + double amount = 2; + bool is_paied = 3; + string due_date = 4; + string settlement_date = 5; +} + +message UserBNPLResp { + uint64 id = 1; + BNPLInfo bnpl = 2; + int32 current_step = 3; + optional float amount = 4; + optional float payment_period = 5; + optional bool accepted_terms = 6; + repeated BNPLPayments payments = 7; + optional string employee_id = 8; + optional authorization.Company company = 10; + optional string updated_at = 12; + optional string created_at = 13; +} + +message UserBNPLReq { + uint64 id = 1; + int64 bnpl_id = 2; + string created_at = 3; + string employee_id = 4; + int64 company_id = 5; + float amount = 7; + float payment_period = 8; + bool has_agreed_contract = 9; +} +message PaymentPeriodInfo { + uint64 id = 1; + string period = 2; + bool enabled = 3; +} +message BNPLInfo { + uint64 id = 1; + string description = 3; + repeated Asset supported_assets = 2; + optional bool enabled = 4; + float amount_start = 5; + float amount_end = 6; + float amount_steps = 7; + repeated PaymentPeriodInfo payment_period = 8; + repeated authorization.Company possible_companies = 11; + string updated_at = 12; + string created_at = 13; + string expiers_at = 14; +} +message BNPLList { + repeated BNPLInfo list = 1; +} + /* Wallet */