def authenticate_user(): auth_user_params = request.get_json() print(f'authenticate_user :{auth_user_params}') finapr = FinApr() return finapr.authUser(auth_user_params)
def add_expense(): print('add_expense') expense_params = request.get_json() print(f'expense params :{expense_params}') finapr = FinApr() return finapr.add_expense(expense_params)
def get_payment(filter): print(f'get_payment :{filter}') finapr = FinApr()
def get_payments_by_mobno(): print('Inside /api/v1/payments/payments-by-mobno') finapr = FinApr() return finapr.getPayments(request.args)
def get_apartment_by_mob_no(mob_no): finapr = FinApr() return finapr.getApartmentByMobNo(mob_no)
def get_apartment_curr_residents(): finapr = FinApr() return finapr.getAptResidentsList()
def get_all_payment_purposes(): print('get_all_payment_purposes') finapr = FinApr() return finapr.getAllPaymentPurposes()
def set_message_status_to_read(): print('set_message_status_to_read') message_params = request.get_json() print(f'set_message_status_to_read :{message_params}') finapr = FinApr() return finapr.setMessageStatusToRead(message_params)
def get_exp_by_filter(): print('get_exp_by_filter') print(f'query string {request.args}') finapr = FinApr() return finapr.getAllExpByFilter(request.args)
def get_all_apart_exp_purposes(): print('get_all_apart_exp_purposes') finapr = FinApr() return finapr.getAllApartExpPurposes()
def sum_exp_by_purpose(): print('sum_exp_by_purpose') finapr = FinApr() return finapr.getSumAllExpByPurpose(request.args)
def sum_exp_by_year_mon(): print(f'sum_exp_by_year_mon ==>query string {request.args}') finapr = FinApr() return finapr.getSumAllExpByYearMon(request.args)
def all_expenses(): print('all_expense') finapr = FinApr() return finapr.get_all_expenses()
def broadcast_message(): print('broadcast_message') message_params = request.get_json() print(f'expense params :{message_params}') finapr = FinApr() return finapr.broadcastMessage(message_params)
def get_sum_exp_paidby_apartment_by_year(): print('get_sum_exp_paidby_apartment_by_year') print(f'query string {request.args}') finapr = FinApr() return finapr.getSumExpPaidByApartByYear(request.args)
def get_all_my_messages(): print('broadcast_message') message_params = request.args print(f'expense params :{message_params}') finapr = FinApr() return finapr.getAllMyMessages(message_params)
def get_tot_expense_paidby_apartment_by_year(): print('get_tot_expense_paidby_apartment_by_year') print(f'query string {request.args}') finapr = FinApr() return finapr.getTotExpenseForApartByYear(request.args)
def get_apartment(apart_no): finapr = FinApr() return finapr.getApartment(apart_no)
def get_sum_payments_by_occcupants_by_year(): print('get_sum_payments_by_occcupants_by_year') print(f'query string {request.args}') finapr = FinApr() return finapr.getSumPaymentsMadeByOcuupantsByYear(request.args)
def get_apartment_by_apart_no(apart_no): finapr = FinApr() return finapr.getApartmentByApartNo(apart_no)
def get_tot_payments_paidby_occupants_by_year(): print('get_tot_payments_paidby_occupants_by_year') print(f'query string {request.args}') finapr = FinApr() return finapr.getTotPaymentsByOcuupantsByYear(request.args)
def make_payment(): payment = request.get_json() print(f'make_payment :{payment}') finapr = FinApr() return finapr.makePayment(payment)
def get_tot_exp_inc_by_year(): print('get_tot_exp_inc_by_year') print(f'query string {request.args}') finapr = FinApr() return finapr.getExpenseIncomeOfApartmentByYear(request.args)
def get_payments(): finapr = FinApr() return finapr.getPayments(request.args)
def get_apartments(methods=['GET']): findapr = FinApr() return findapr.getAllApartments()
def register_user(): register_params = request.get_json() print(f'register_user :{register_params}') finapr = FinApr() return finapr.registerUser(register_params)
def add_message(): print('add_message') message_params = request.get_json() print(f'expense params :{message_params}') finapr = FinApr() return finapr.add_message(message_params)
def update_login_date(): login_params = request.get_json() print(f'authenticate_user :{login_params}') finapr = FinApr() return finapr.updateLoginTime(login_params)
def reset_password(): print('FinApr.reset_password Called') reset_params = request.get_json() print(f'reset_password :{reset_params}') finapr = FinApr() return finapr.resetPassword(reset_params)