Constructor
new Kopra(corpID, user, password, noacc, useFingerprintInjector)
- Description:
Constructor for Kopra class.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
corpID |
string | Mandiri corporate ID. |
user |
string | Mandiri username. |
password |
string | Mandiri password. |
noacc |
string | Mandiri account number. |
useFingerprintInjector |
boolean | Flag to use fingerprint injector. |
Extends
- ScraperBank
Methods
formatDate(date) → {string}
- Description:
Formats a date object to a string.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
date |
Date | Date object to be formatted. |
Returns:
- Formatted date string.
- Type
- string
formatTransactionData(transaction) → {Object}
- Description:
Formats transaction data received from the Mandiri website.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
transaction |
Object | Raw transaction data. |
Returns:
- Formatted transaction data.
- Type
- Object
(async) getStatement() → {Object}
- Description:
Gets the account statement from the Mandiri website.
- Source:
Returns:
- Result containing a message and data.
- Type
- Object