@pax2pay/model-banking 0.1.603 → 0.1.604

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,4 +16,7 @@ export class Treasury {
16
16
  async listAccounts(): Promise<TreasuryModel.Account.Listable[] | gracely.Error> {
17
17
  return this.client.get<TreasuryModel.Account.Listable[]>(`/treasury/account`)
18
18
  }
19
+ async report(start: isoly.Date, end: isoly.Date, supplier: string): Promise<string | gracely.Error> {
20
+ return this.client.get<string>(`/treasury/${supplier}/report?start=${start}&end=${end}`)
21
+ }
19
22
  }
@@ -8,4 +8,5 @@ export declare class Treasury {
8
8
  fetch(hour?: isoly.DateTime): Promise<TreasuryModel.Snapshot[] | gracely.Error>;
9
9
  listTransactions(accountId: string): Promise<TreasuryModel.Transaction[] | gracely.Error>;
10
10
  listAccounts(): Promise<TreasuryModel.Account.Listable[] | gracely.Error>;
11
+ report(start: isoly.Date, end: isoly.Date, supplier: string): Promise<string | gracely.Error>;
11
12
  }
@@ -16,6 +16,9 @@ class Treasury {
16
16
  async listAccounts() {
17
17
  return this.client.get(`/treasury/account`);
18
18
  }
19
+ async report(start, end, supplier) {
20
+ return this.client.get(`/treasury/${supplier}/report?start=${start}&end=${end}`);
21
+ }
19
22
  }
20
23
  exports.Treasury = Treasury;
21
24
  //# sourceMappingURL=Treasury.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Treasury.js","sourceRoot":"","sources":["../../../Client/Treasury.ts"],"names":[],"mappings":";;;AACA,iCAA6B;AAI7B,MAAa,QAAQ;IACS;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,KAAK,CAAC,IAAqB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,wBAAwB,IAAI,CAAC,CAAC,CAAC,IAAI,aAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAClF,CAAA;IACF,CAAC;IACD,KAAK,CAAC,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8B,qBAAqB,SAAS,cAAc,CAAC,CAAA;IAClG,CAAC;IACD,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmC,mBAAmB,CAAC,CAAA;IAC9E,CAAC;CACD;AAbD,4BAaC"}
1
+ {"version":3,"file":"Treasury.js","sourceRoot":"","sources":["../../../Client/Treasury.ts"],"names":[],"mappings":";;;AACA,iCAA6B;AAI7B,MAAa,QAAQ;IACS;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,KAAK,CAAC,IAAqB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,wBAAwB,IAAI,CAAC,CAAC,CAAC,IAAI,aAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAClF,CAAA;IACF,CAAC;IACD,KAAK,CAAC,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8B,qBAAqB,SAAS,cAAc,CAAC,CAAA;IAClG,CAAC;IACD,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmC,mBAAmB,CAAC,CAAA;IAC9E,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,KAAiB,EAAE,GAAe,EAAE,QAAgB;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,aAAa,QAAQ,iBAAiB,KAAK,QAAQ,GAAG,EAAE,CAAC,CAAA;IACzF,CAAC;CACD;AAhBD,4BAgBC"}
@@ -8,4 +8,5 @@ export declare class Treasury {
8
8
  fetch(hour?: isoly.DateTime): Promise<TreasuryModel.Snapshot[] | gracely.Error>;
9
9
  listTransactions(accountId: string): Promise<TreasuryModel.Transaction[] | gracely.Error>;
10
10
  listAccounts(): Promise<TreasuryModel.Account.Listable[] | gracely.Error>;
11
+ report(start: isoly.Date, end: isoly.Date, supplier: string): Promise<string | gracely.Error>;
11
12
  }
@@ -13,5 +13,8 @@ export class Treasury {
13
13
  async listAccounts() {
14
14
  return this.client.get(`/treasury/account`);
15
15
  }
16
+ async report(start, end, supplier) {
17
+ return this.client.get(`/treasury/${supplier}/report?start=${start}&end=${end}`);
18
+ }
16
19
  }
17
20
  //# sourceMappingURL=Treasury.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Treasury.js","sourceRoot":"","sources":["../../../Client/Treasury.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAI7B,MAAM,OAAO,QAAQ;IACS;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,KAAK,CAAC,IAAqB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,wBAAwB,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAClF,CAAA;IACF,CAAC;IACD,KAAK,CAAC,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8B,qBAAqB,SAAS,cAAc,CAAC,CAAA;IAClG,CAAC;IACD,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmC,mBAAmB,CAAC,CAAA;IAC9E,CAAC;CACD"}
1
+ {"version":3,"file":"Treasury.js","sourceRoot":"","sources":["../../../Client/Treasury.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAI7B,MAAM,OAAO,QAAQ;IACS;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,KAAK,CAAC,IAAqB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,wBAAwB,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAClF,CAAA;IACF,CAAC;IACD,KAAK,CAAC,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8B,qBAAqB,SAAS,cAAc,CAAC,CAAA;IAClG,CAAC;IACD,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmC,mBAAmB,CAAC,CAAA;IAC9E,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,KAAiB,EAAE,GAAe,EAAE,QAAgB;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,aAAa,QAAQ,iBAAiB,KAAK,QAAQ,GAAG,EAAE,CAAC,CAAA;IACzF,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.603",
3
+ "version": "0.1.604",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",