Skip to content

Commit 8dea6d8

Browse files
Merge pull request #4 from BreakOutEvent/feature/searching-invoices
Adding endpoint for searching invoices
2 parents c684c2e + 3ccd35e commit 8dea6d8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "breakout-api-client",
3-
"version": "0.15.0",
3+
"version": "0.15.1",
44
"description": "A JS Api client for the breakout-backend",
55
"main": "src/BreakoutApi.js",
66
"directories": {

src/BreakoutApi.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,12 @@ class BreakoutApi {
298298
.then(resp => resp.data);
299299
}
300300

301+
searchInvoices(params) {
302+
let formData = qs.stringify(params);
303+
return this.instance.get(`sponsoringinvoice/search/?${formData}`)
304+
.then(resp => resp.data);
305+
}
306+
301307
signCloudinaryParams(params = {}) {
302308

303309
const data = params;

0 commit comments

Comments
 (0)