cpybca
- Author:
Christoforus Surjoputro <cs_sanmar@yahoo.com>
- Date:
$Date: 2017-07-04 $
- Version:
$Version: 1.2.0 $
- License:
MIT License
Introduction
cpybca is python module to access BCA API. In this version, you can check balance, account statement (history), and transfer fund.
Python version
This module work on python 3.4+. Fully tested on python 3.5.2.
How to install
Clone or download this repo https://gitlab.com/3mp3ri0r/cpybca.git.
Move this entire project to your project’s directory.
How to use
Import cpybca to your project by doing this
from cpybca.bca import Bca.Initiate connection to BCA API server by doing this
bca = BCA('YOUR_API_KEY', 'YOUR_API_SECRET', 'YOUR_BCA_HOST').Sign in to BCA API server by doing this
bca.sign_in('YOUR_CLIENT_ID', 'YOUR_CLIENT_SECRET').Do action you want by calling
Bcafunction.
Get balance
You can get account balance by doing this:
bca.get_balance('CORPORATE_ID', 'ACCOUNT_NUMBER')
You can get multiple account balance by doing this:
bca.get_balance('CORPORATE_ID', ['ACCOUNT_NUMBER1', 'ACCOUNT_NUMBER2'])
Get statement
You can get account statement or history transaction by doing this:
bca.get_statement('CORPORATE_ID', 'ACCOUNT_NUMBER', 'START_DATE', 'END_DATE')
Note:
START_DATEandEND_DATEuseyyyy-MM-ddformat.Maximum date to get from start to end is 31 day.
Transfer fund
You can get account statement or history transaction by doing this:
bca.transfer('CORPORATE_ID', 'SOURCE_ACCOUNT_NUMBER', 'BENEFICIARY_ACCOUNT_NUMBER', 'TRANSACTION_ID', 'TRANSACTION_DATE', 'REFERENCE_ID', 'AMOUNT', 'CURRENCY_CODE', 'REMARK1', 'REMARK2')
Note:
BENEFICIARY_ACCOUNT_NUMBERis account number you want to receive money.TRANSACTION_IDis number of transfer you do on the following day.TRANSACTION_DATEis date you do transfer inyyyy-MM-ddformat.REFERENCE_IDis your reference code. It can contain combination of string and numeric. Example:1234/DP/2017AMOUNTis number of amount you want to send instringformat. Example:'1000000.00'REMARK1andREMARK2is notes you want to send to receiver. It is not mandatory so you can remove this.
How to contribute
Just create an issue when you encounter any problem.
Metadata
Release files for Cpybca 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Cpybca-1.2.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Cpybca-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / Cpybca-1.2.0.tar.gz
| Download URL | Cpybca-1.2.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c7dba366d54042d32e4127d3c11cf72d4f15c9007406fef33aeca69d2af26c3
|
|
BLAKE2b-256 checksum How to use checksums |
5ab0467e6025116e1d6d5e918b7066a528e975464f26580be533f026b213fd2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / Cpybca-1.2.0-py3-none-any.whl
| Download URL | Cpybca-1.2.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2e7e87171ec7a61ff32a0f1c2cc9255d0eff515052eaa0e12460d933c09bc6f
|
|
BLAKE2b-256 checksum How to use checksums |
7b7e68de9ebf60ac96bc07d8da5a8eacfd97844a4ef3dcc9afb8791281f64955
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|