@pax2pay/model-banking 0.1.199 → 0.1.200
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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { gracely } from "gracely"
|
|
2
|
-
import { isoly } from "isoly"
|
|
3
2
|
import { http } from "cloudly-http"
|
|
4
3
|
import * as rest from "cloudly-rest"
|
|
5
4
|
import { Settlement } from "../Settlement"
|
|
@@ -12,8 +11,8 @@ export class Settlements extends rest.Collection<gracely.Error> {
|
|
|
12
11
|
async create(configuration: string): Promise<Settlement | gracely.Error> {
|
|
13
12
|
return this.client.post<Settlement>(`/settlement`, { configuration: configuration })
|
|
14
13
|
}
|
|
15
|
-
async fetch(id: string
|
|
16
|
-
return this.client.get<Settlement>(`/settlement/${id}
|
|
14
|
+
async fetch(id: string): Promise<Settlement | gracely.Error> {
|
|
15
|
+
return this.client.get<Settlement>(`/settlement/${id}`)
|
|
17
16
|
}
|
|
18
17
|
async list(): Promise<Settlement[] | gracely.Error> {
|
|
19
18
|
return this.client.get<Settlement[] & { cursor?: string | undefined }>(`/settlement`)
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { gracely } from "gracely";
|
|
2
|
-
import { isoly } from "isoly";
|
|
3
2
|
import { http } from "cloudly-http";
|
|
4
3
|
import * as rest from "cloudly-rest";
|
|
5
4
|
import { Settlement } from "../Settlement";
|
|
6
5
|
export declare class Settlements extends rest.Collection<gracely.Error> {
|
|
7
6
|
constructor(client: http.Client);
|
|
8
7
|
create(configuration: string): Promise<Settlement | gracely.Error>;
|
|
9
|
-
fetch(id: string
|
|
8
|
+
fetch(id: string): Promise<Settlement | gracely.Error>;
|
|
10
9
|
list(): Promise<Settlement[] | gracely.Error>;
|
|
11
10
|
remove(settlement: string): Promise<Settlement | gracely.Error>;
|
|
12
11
|
update(settlement: string): Promise<Settlement | gracely.Error>;
|
|
@@ -6,8 +6,8 @@ export class Settlements extends rest.Collection {
|
|
|
6
6
|
async create(configuration) {
|
|
7
7
|
return this.client.post(`/settlement`, { configuration: configuration });
|
|
8
8
|
}
|
|
9
|
-
async fetch(id
|
|
10
|
-
return this.client.get(`/settlement/${id}
|
|
9
|
+
async fetch(id) {
|
|
10
|
+
return this.client.get(`/settlement/${id}`);
|
|
11
11
|
}
|
|
12
12
|
async list() {
|
|
13
13
|
return this.client.get(`/settlement`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settlements.js","sourceRoot":"../","sources":["Client/Settlements.ts"],"names":[],"mappings":"
|
|
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,MAAM,CAAC,aAAqB;QACjC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAa,aAAa,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,CAAA;IACrF,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,eAAe,EAAE,EAAE,CAAC,CAAA;IACxD,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiD,aAAa,CAAC,CAAA;IACtF,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAa,eAAe,UAAU,EAAE,CAAC,CAAA;IACnE,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,eAAe,UAAU,EAAE,EAAE,EAAE,CAAC,CAAA;IACtE,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,UAAkB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAqB,eAAe,UAAU,QAAQ,CAAC,CAAA;IAC9E,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,UAAkB;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAqB,eAAe,UAAU,eAAe,CAAC,CAAA;IACrF,CAAC;CACD"}
|