Bandwidth / node-numbers

Node SDK for Bandwidth Numbers
https://dev.bandwidth.com
MIT License
1 stars 5 forks source link

Need to promisify Order instance methods #10

Open cwilso03 opened 4 years ago

cwilso03 commented 4 years ago

Enhancement request:

Since you have async methods for things like order creation (Order.createAsync()), would also be good to have async versions of the instance methods (getAreaCodes(), getTns(), getNotes(), etc.) on the returned Order object.

I'm guessing the other main API objects also need similar treatment (don't know yet, as I'm working my way through the v1 to v2 conversion process).

dtolb commented 4 years ago

@cwilso03 We'll look into this and double check. I believe they should be included but perhaps not.

In the meantime you should be able to require('bluebird') and promisify the instance method needed from the object itself