Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Eugeny/ebank-client

Repository files navigation

Deps:

  • apt-get install npm python-virtualenv python-pip libmysqlclient-dev
  • npm install -g coffee-script less bower

Setup:

virtualenv env
. env/bin/activate
pip install -r requirements.txt
./manage.py syncdb
./manage.py migrate

Running:

. env/bin/activate
make run

API

Parameters are passed in a JSON body

  • api/auth/login - args: id, password
  • api/auth/logout - logs out
  • api/info - returns definitions, current user, etc
  • api/currency - returns currency definitions
  • api/notifications - returns list of notifications
  • api/notification/mark-read - marks notification as read, args: notificationId
  • api/erip/tree - fetches and returns ERIP tree from server
  • api/erip/pay - performs a payment, args: accountId, paymentId, fields (object), amount
  • api/pay - performs a payment, args: accountId, recipientAccountId, amount
  • api/payment/report - returns report, args: accountId, dateFrom(opt), dateTo(opt), type(opt)=(erip|direct)
  • api/change-password - changes the password, args: client_id_to_change, old_password, new_password
  • api/autopayment/:accountId/:id - autopayment resource endpoint. Fields: startDate, period (week|??), data[recipientBank], data[payerName],data[code]=e, data[recipientAccountId], data[recipientName], data[amount], data[paymentId], data[paymentFields], type (direct|erip)

Report URL

/report/<account-id>/<type>/<from>/<to>/<format> - type: erip/payment, from & to - timestamps, format: html/csv/pdf

Localization: from django_language cookie value (en/ru/be)

Bank API

Parameters are passed via POST

  • bank-api/notify - posts a notification, args: clientId, content

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published