Skip to content

Commit

Permalink
Added query for list invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Audino committed Aug 11, 2017
1 parent a86aba3 commit ef2b8e9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/resources/Customers.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ module.exports = FusebillResource.extend({

listInvoices: fusebillMethod({
method: 'GET',
path: '/{customerId}/invoices',
urlParams: ['customerId'],
path: function(urlData) {
var url = '/' + urlData.customerId + "/invoices";
if (urlData.query) {
url = url + '?query=' + urlData.query
}
return url;
},
urlParams: ['customerId', 'optional!query'],
}),

listDraftInvoices: fusebillMethod({
Expand Down

0 comments on commit ef2b8e9

Please sign in to comment.