@pax2pay/model-banking 0.1.63 → 0.1.65

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.
@@ -11,7 +11,10 @@ export class Settlements extends rest.Collection<gracely.Error> {
11
11
  async fetch(settlement: string): Promise<Settlement | gracely.Error> {
12
12
  return this.client.get<Settlement>(`/card/settlement/${settlement}`)
13
13
  }
14
- async list(): Promise<Omit<Settlement, "entries">[] | gracely.Error> {
15
- return this.client.get<Omit<Settlement, "entries">[] & { cursor?: string | undefined }>(`/card/settlement`)
14
+ async list(): Promise<Settlement.Summary[] | gracely.Error> {
15
+ return this.client.get<Settlement.Summary[] & { cursor?: string | undefined }>(`/card/settlement`)
16
+ }
17
+ async settle(settlement: string): Promise<Settlement | gracely.Error> {
18
+ return this.client.patch<Settlement>(`/card/settlement/${settlement}`, {})
16
19
  }
17
20
  }
@@ -5,5 +5,6 @@ import { Settlement } from "../Settlement";
5
5
  export declare class Settlements extends rest.Collection<gracely.Error> {
6
6
  constructor(client: http.Client);
7
7
  fetch(settlement: string): Promise<Settlement | gracely.Error>;
8
- list(): Promise<Omit<Settlement, "entries">[] | gracely.Error>;
8
+ list(): Promise<Settlement.Summary[] | gracely.Error>;
9
+ settle(settlement: string): Promise<Settlement | gracely.Error>;
9
10
  }
@@ -9,5 +9,8 @@ export class Settlements extends rest.Collection {
9
9
  async list() {
10
10
  return this.client.get(`/card/settlement`);
11
11
  }
12
+ async settle(settlement) {
13
+ return this.client.patch(`/card/settlement/${settlement}`, {});
14
+ }
12
15
  }
13
16
  //# sourceMappingURL=Settlements.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Settlements.js","sourceRoot":"../","sources":["Client/Settlements.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,WAAY,SAAQ,IAAI,CAAC,UAAyB;IAC9D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,UAAkB;QAC7B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,oBAAoB,UAAU,EAAE,CAAC,CAAA;IACrE,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAkE,kBAAkB,CAAC,CAAA;IAC5G,CAAC;CACD"}
1
+ {"version":3,"file":"Settlements.js","sourceRoot":"../","sources":["Client/Settlements.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,WAAY,SAAQ,IAAI,CAAC,UAAyB;IAC9D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,UAAkB;QAC7B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,oBAAoB,UAAU,EAAE,CAAC,CAAA;IACrE,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAyD,kBAAkB,CAAC,CAAA;IACnG,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,oBAAoB,UAAU,EAAE,EAAE,EAAE,CAAC,CAAA;IAC3E,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",