Ejemplo n.º 1
0
def authenticate_user():
    auth_user_params = request.get_json()
    print(f'authenticate_user :{auth_user_params}')
    finapr = FinApr()
    return finapr.authUser(auth_user_params)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
def get_payment(filter):
    print(f'get_payment :{filter}')
    finapr = FinApr()
Ejemplo n.º 4
0
def get_payments_by_mobno():
    print('Inside /api/v1/payments/payments-by-mobno')
    finapr = FinApr()
    return finapr.getPayments(request.args)
Ejemplo n.º 5
0
def get_apartment_by_mob_no(mob_no):
    finapr = FinApr()
    return finapr.getApartmentByMobNo(mob_no)
Ejemplo n.º 6
0
def get_apartment_curr_residents():
    finapr = FinApr()
    return finapr.getAptResidentsList()
Ejemplo n.º 7
0
def get_all_payment_purposes():
    print('get_all_payment_purposes')
    finapr = FinApr()
    return finapr.getAllPaymentPurposes()
Ejemplo n.º 8
0
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)
Ejemplo n.º 9
0
def get_exp_by_filter():
    print('get_exp_by_filter')
    print(f'query string {request.args}')
    finapr = FinApr()
    return finapr.getAllExpByFilter(request.args)
Ejemplo n.º 10
0
def get_all_apart_exp_purposes():
    print('get_all_apart_exp_purposes')
    finapr = FinApr()
    return finapr.getAllApartExpPurposes()
Ejemplo n.º 11
0
def sum_exp_by_purpose():
    print('sum_exp_by_purpose')
    finapr = FinApr()
    return finapr.getSumAllExpByPurpose(request.args)
Ejemplo n.º 12
0
def sum_exp_by_year_mon():
    print(f'sum_exp_by_year_mon ==>query string {request.args}')
    finapr = FinApr()
    return finapr.getSumAllExpByYearMon(request.args)
Ejemplo n.º 13
0
def all_expenses():
    print('all_expense')
    finapr = FinApr()
    return finapr.get_all_expenses()
Ejemplo n.º 14
0
def broadcast_message():
    print('broadcast_message')
    message_params = request.get_json()
    print(f'expense params :{message_params}')
    finapr = FinApr()
    return finapr.broadcastMessage(message_params)
Ejemplo n.º 15
0
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)
Ejemplo n.º 16
0
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)
Ejemplo n.º 17
0
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)
Ejemplo n.º 18
0
def get_apartment(apart_no):
    finapr = FinApr()
    return finapr.getApartment(apart_no)
Ejemplo n.º 19
0
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)
Ejemplo n.º 20
0
def get_apartment_by_apart_no(apart_no):
    finapr = FinApr()
    return finapr.getApartmentByApartNo(apart_no)
Ejemplo n.º 21
0
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)
Ejemplo n.º 22
0
def make_payment():
    payment = request.get_json()
    print(f'make_payment :{payment}')
    finapr = FinApr()
    return finapr.makePayment(payment)
Ejemplo n.º 23
0
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)
Ejemplo n.º 24
0
def get_payments():
    finapr = FinApr()
    return finapr.getPayments(request.args)
Ejemplo n.º 25
0
def get_apartments(methods=['GET']):
    findapr = FinApr()
    return findapr.getAllApartments()
Ejemplo n.º 26
0
def register_user():
    register_params = request.get_json()
    print(f'register_user :{register_params}')
    finapr = FinApr()
    return finapr.registerUser(register_params)
Ejemplo n.º 27
0
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)
Ejemplo n.º 28
0
def update_login_date():
    login_params = request.get_json()
    print(f'authenticate_user :{login_params}')
    finapr = FinApr()
    return finapr.updateLoginTime(login_params)
Ejemplo n.º 29
0
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)