BankAccount
Extends:
Method Summary
| Public Methods | ||
| public |
|
|
| public |
chargeByID(bankID: string, amount: number, description: string): Promise
|
|
| public |
chargeByToken(token: string, amount: number, description: string): Promise
|
|
| public |
|
|
| public |
createFromToken(token: string, customerID: string): Promise
|
|
| public |
|
|
| public |
|
|
| public |
|
|
Inherited Summary
| From class Base | ||
| public |
accessToken: * |
|
| public |
production: * |
|
| public |
realmID: * |
|
| public |
version: * |
|
| public |
all() |
|
| public |
create(info: *) |
|
| public |
createFromToken(info: *) |
|
| public |
|
|
| public |
get(id: *) |
|
| public |
remove(id: *) |
|
| public |
request(method: *, path: *, params: {}): * |
|
| public |
update(id: *, info: *) |
|
Public Methods
public all(customerID: string): Promise source
BankAccount all method.
Retrieve all bank accounts for a customer through the Intuit Quickbooks payment API
Required Options:
customerIDidentifier for the customer
Examples:
BankAccount().all(
'customer-id'
);
Override:
Base#allParams:
| Name | Type | Attribute | Description |
| customerID | string |
public chargeByID(bankID: string, amount: number, description: string): Promise source
BankAccount chargeByID method.
Charge a bank account for a customer through the Intuit Quickbooks payment API
Required Options:
bankIDid of the bank accountamountthe amount to charge the carddescriptiondescription for the charge
Examples:
BankAccount().chargeByID(
'some-id',
10.55,
'the description'
);
public chargeByToken(token: string, amount: number, description: string): Promise source
BankAccount chargeByID method.
Charge a bank account for a customer through the Intuit Quickbooks payment API
Required Options:
tokentokenized version of the cardamountthe amount to charge the carddescriptiondescription for the charge
Examples:
BankAccount().chargeByToken(
'some-token',
10.55,
'the description'
);
public create(bank: object, customerID: string): Promise source
BankAccount create method.
Create a bank account object through the Intuit Quickbooks payment API
Required Options:
banknamename of personroutingNumberrouting number for accountaccountNumberaccount number for accountaccountTypeaccount type (i.e.PERSONAL_CHECKINGorPERSONAL_SAVINGS)phonephone number of person
customerIDidentifier for the customer
Examples:
BankAccount().create({
"name": "My Checking",
"routingNumber": "XXXXX0358",
"accountNumber": "XXXX4534",
"accountType": "PERSONAL_CHECKING",
"phone": "6047296480"
}, 'customer-id');
Override:
Base#createpublic createFromToken(token: string, customerID: string): Promise source
BankAccount createFromToken method.
Create a bank account object from a token through the Intuit Quickbooks payment API
Required Options:
tokentokenized version of the bank accountcustomerIDidentifier for the customer
Examples:
BankAccount().createFromToken(
'some-token',
'customer-id'
);
Override:
Base#createFromTokenpublic get(bankID: string, customerID: string): Promise source
BankAccount get method.
Retrieve a bank account's information through the Intuit Quickbooks payment API
Required Options:
bankIDtokenized version of the bank accountcustomerIDidentifier for the customer
Examples:
BankAccount().remove(
'some-identifier',
'customer-id'
);
Override:
Base#getpublic receipt(checkID: string): Promise source
BankAccount receipt method.
Get a receipt of a previous charge through the Intuit Quickbooks payment API
Required Options:
checkIDid of the charge
Examples:
BankAccount().receipt(
'some-id',
);
Params:
| Name | Type | Attribute | Description |
| checkID | string |
public remove(bankID: string, customerID: string): Promise source
BankAccount remove method.
Remove a bank account through the Intuit Quickbooks payment API
Required Options:
bankIDtokenized version of the bank accountcustomerIDidentifier for the customer
Examples:
BankAccount().remove(
'some-identifier',
'customer-id'
);