You didn't rename the individual card method from 'bankAccount'
/**
- Retrieves an individual Card for a customer
- @param {string} customerId - id of customer
- @param {string} cardId - id of Card
- @param callback - Callback function which is called with any error or the Card
*/
Quickbooks.prototype.bankAccount = function(customerId, cardId, callback) {
module.request(this, 'get', {
url: '/payments/customers/' + customerId + '/cards/' + cardId,
headers: {
'Company-Id': this.realmId
}
}, null, callback)
}
You didn't rename the individual card method from 'bankAccount'
/**
*/
Quickbooks.prototype.bankAccount = function(customerId, cardId, callback) {
module.request(this, 'get', {
url: '/payments/customers/' + customerId + '/cards/' + cardId,
headers: {
'Company-Id': this.realmId
}
}, null, callback)
}