@pax2pay/model-banking 0.1.558 → 0.1.560
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/Processor/Tpl.ts +4 -3
- package/dist/cjs/Client/Processor/Tpl.d.ts +2 -2
- package/dist/cjs/Client/Processor/Tpl.js +2 -2
- package/dist/cjs/Client/Processor/Tpl.js.map +1 -1
- package/dist/mjs/Client/Processor/Tpl.d.ts +2 -2
- package/dist/mjs/Client/Processor/Tpl.js +2 -2
- package/dist/mjs/Client/Processor/Tpl.js.map +1 -1
- package/package.json +1 -1
package/Client/Processor/Tpl.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { gracely } from "gracely"
|
|
2
2
|
import { http } from "cloudly-http"
|
|
3
3
|
import { storage } from "cloudly-storage"
|
|
4
|
-
import {
|
|
4
|
+
import { pax2pay } from "../../index"
|
|
5
5
|
import { reports } from "../../reports"
|
|
6
6
|
|
|
7
7
|
export class Tpl {
|
|
8
8
|
constructor(private readonly client: http.Client) {}
|
|
9
9
|
|
|
10
10
|
async getQuarterly(
|
|
11
|
-
|
|
11
|
+
realm: pax2pay.Realm,
|
|
12
|
+
processor: string,
|
|
12
13
|
[start, end]: NonNullable<storage.KeyValueStore.ListOptions["range"]>,
|
|
13
14
|
cursor?: string,
|
|
14
15
|
limit?: number
|
|
@@ -16,7 +17,7 @@ export class Tpl {
|
|
|
16
17
|
const search =
|
|
17
18
|
`?start=${start}&end=${end}` + `${cursor ? `&cursor=${cursor}` : ""}` + `${limit ? `&limit=${limit}` : ""}`
|
|
18
19
|
return await this.client.get<reports.visa.Data & { cursor?: string }>(
|
|
19
|
-
`/processor/${
|
|
20
|
+
`/processor/${realm}-${processor}/report/quarterly${search}`
|
|
20
21
|
)
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { gracely } from "gracely";
|
|
2
2
|
import { http } from "cloudly-http";
|
|
3
3
|
import { storage } from "cloudly-storage";
|
|
4
|
-
import {
|
|
4
|
+
import { pax2pay } from "../../index";
|
|
5
5
|
import { reports } from "../../reports";
|
|
6
6
|
export declare class Tpl {
|
|
7
7
|
private readonly client;
|
|
8
8
|
constructor(client: http.Client);
|
|
9
|
-
getQuarterly(
|
|
9
|
+
getQuarterly(realm: pax2pay.Realm, processor: string, [start, end]: NonNullable<storage.KeyValueStore.ListOptions["range"]>, cursor?: string, limit?: number): Promise<(reports.visa.Data & {
|
|
10
10
|
cursor?: string;
|
|
11
11
|
}) | gracely.Error>;
|
|
12
12
|
}
|
|
@@ -6,9 +6,9 @@ class Tpl {
|
|
|
6
6
|
constructor(client) {
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
|
-
async getQuarterly(
|
|
9
|
+
async getQuarterly(realm, processor, [start, end], cursor, limit) {
|
|
10
10
|
const search = `?start=${start}&end=${end}` + `${cursor ? `&cursor=${cursor}` : ""}` + `${limit ? `&limit=${limit}` : ""}`;
|
|
11
|
-
return await this.client.get(`/processor/${
|
|
11
|
+
return await this.client.get(`/processor/${realm}-${processor}/report/quarterly${search}`);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.Tpl = Tpl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tpl.js","sourceRoot":"","sources":["../../../../Client/Processor/Tpl.ts"],"names":[],"mappings":";;;AAMA,MAAa,GAAG;IACc;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD,KAAK,CAAC,YAAY,CACjB,
|
|
1
|
+
{"version":3,"file":"Tpl.js","sourceRoot":"","sources":["../../../../Client/Processor/Tpl.ts"],"names":[],"mappings":";;;AAMA,MAAa,GAAG;IACc;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD,KAAK,CAAC,YAAY,CACjB,KAAoB,EACpB,SAAiB,EACjB,CAAC,KAAK,EAAE,GAAG,CAA0D,EACrE,MAAe,EACf,KAAc;QAEd,MAAM,MAAM,GACX,UAAU,KAAK,QAAQ,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,WAAW,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;QAC5G,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAC3B,cAAc,KAAK,IAAI,SAAS,oBAAoB,MAAM,EAAE,CAC5D,CAAA;IACF,CAAC;CACD;AAhBD,kBAgBC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { gracely } from "gracely";
|
|
2
2
|
import { http } from "cloudly-http";
|
|
3
3
|
import { storage } from "cloudly-storage";
|
|
4
|
-
import {
|
|
4
|
+
import { pax2pay } from "../../index";
|
|
5
5
|
import { reports } from "../../reports";
|
|
6
6
|
export declare class Tpl {
|
|
7
7
|
private readonly client;
|
|
8
8
|
constructor(client: http.Client);
|
|
9
|
-
getQuarterly(
|
|
9
|
+
getQuarterly(realm: pax2pay.Realm, processor: string, [start, end]: NonNullable<storage.KeyValueStore.ListOptions["range"]>, cursor?: string, limit?: number): Promise<(reports.visa.Data & {
|
|
10
10
|
cursor?: string;
|
|
11
11
|
}) | gracely.Error>;
|
|
12
12
|
}
|
|
@@ -3,9 +3,9 @@ export class Tpl {
|
|
|
3
3
|
constructor(client) {
|
|
4
4
|
this.client = client;
|
|
5
5
|
}
|
|
6
|
-
async getQuarterly(
|
|
6
|
+
async getQuarterly(realm, processor, [start, end], cursor, limit) {
|
|
7
7
|
const search = `?start=${start}&end=${end}` + `${cursor ? `&cursor=${cursor}` : ""}` + `${limit ? `&limit=${limit}` : ""}`;
|
|
8
|
-
return await this.client.get(`/processor/${
|
|
8
|
+
return await this.client.get(`/processor/${realm}-${processor}/report/quarterly${search}`);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=Tpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tpl.js","sourceRoot":"","sources":["../../../../Client/Processor/Tpl.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,GAAG;IACc;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD,KAAK,CAAC,YAAY,CACjB,
|
|
1
|
+
{"version":3,"file":"Tpl.js","sourceRoot":"","sources":["../../../../Client/Processor/Tpl.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,GAAG;IACc;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD,KAAK,CAAC,YAAY,CACjB,KAAoB,EACpB,SAAiB,EACjB,CAAC,KAAK,EAAE,GAAG,CAA0D,EACrE,MAAe,EACf,KAAc;QAEd,MAAM,MAAM,GACX,UAAU,KAAK,QAAQ,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,WAAW,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;QAC5G,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAC3B,cAAc,KAAK,IAAI,SAAS,oBAAoB,MAAM,EAAE,CAC5D,CAAA;IACF,CAAC;CACD"}
|