@pax2pay/model-banking 0.1.63 → 0.1.64
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.
package/Client/Settlements.ts
CHANGED
|
@@ -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<
|
|
15
|
-
return this.client.get<
|
|
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<
|
|
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,
|
|
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,CAAuD,kBAAkB,CAAC,CAAA;IACjG,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"}
|