@pax2pay/model-banking 0.1.228 → 0.1.229
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/Reports.ts +13 -0
- package/Client/index.ts +2 -0
- package/dist/Client/Reports.d.ts +8 -0
- package/dist/Client/Reports.js +10 -0
- package/dist/Client/Reports.js.map +1 -0
- package/dist/Client/index.d.ts +2 -0
- package/dist/Client/index.js +2 -0
- package/dist/Client/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { gracely } from "gracely"
|
|
2
|
+
import { http } from "cloudly-http"
|
|
3
|
+
import * as rest from "cloudly-rest"
|
|
4
|
+
import { Card } from "../Card"
|
|
5
|
+
|
|
6
|
+
export class Reports extends rest.Collection<gracely.Error> {
|
|
7
|
+
constructor(client: http.Client) {
|
|
8
|
+
super(client)
|
|
9
|
+
}
|
|
10
|
+
async fetchT140(stack: Card.Stack, id: string): Promise<string | gracely.Error> {
|
|
11
|
+
return this.client.get<string>(`/processor/${stack}/t140/${id}?decrypt`)
|
|
12
|
+
}
|
|
13
|
+
}
|
package/Client/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { Cards } from "./Cards"
|
|
|
7
7
|
import { Flags } from "./Flags"
|
|
8
8
|
import { Operations } from "./Operations"
|
|
9
9
|
import { Organizations } from "./Organizations"
|
|
10
|
+
import { Reports } from "./Reports"
|
|
10
11
|
import { Rules } from "./Rules"
|
|
11
12
|
import { Settlements } from "./Settlements"
|
|
12
13
|
import { Transactions } from "./Transactions"
|
|
@@ -20,6 +21,7 @@ export class Client extends rest.Client<gracely.Error> {
|
|
|
20
21
|
readonly cards = new Cards(this.client)
|
|
21
22
|
readonly operations = new Operations(this.client)
|
|
22
23
|
readonly organizations = new Organizations(this.client)
|
|
24
|
+
readonly reports = new Reports(this.client)
|
|
23
25
|
readonly rules = new Rules(this.client)
|
|
24
26
|
readonly settlements = new Settlements(this.client)
|
|
25
27
|
readonly transactions = new Transactions(this.client)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import * as rest from "cloudly-rest";
|
|
4
|
+
import { Card } from "../Card";
|
|
5
|
+
export declare class Reports extends rest.Collection<gracely.Error> {
|
|
6
|
+
constructor(client: http.Client);
|
|
7
|
+
fetchT140(stack: Card.Stack, id: string): Promise<string | gracely.Error>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as rest from "cloudly-rest";
|
|
2
|
+
export class Reports extends rest.Collection {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
super(client);
|
|
5
|
+
}
|
|
6
|
+
async fetchT140(stack, id) {
|
|
7
|
+
return this.client.get(`/processor/${stack}/t140/${id}?decrypt`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Reports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reports.js","sourceRoot":"../","sources":["Client/Reports.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,OAAQ,SAAQ,IAAI,CAAC,UAAyB;IAC1D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,SAAS,CAAC,KAAiB,EAAE,EAAU;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,cAAc,KAAK,SAAS,EAAE,UAAU,CAAC,CAAA;IACzE,CAAC;CACD"}
|
package/dist/Client/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { Cards } from "./Cards";
|
|
|
7
7
|
import { Flags } from "./Flags";
|
|
8
8
|
import { Operations } from "./Operations";
|
|
9
9
|
import { Organizations } from "./Organizations";
|
|
10
|
+
import { Reports } from "./Reports";
|
|
10
11
|
import { Rules } from "./Rules";
|
|
11
12
|
import { Settlements } from "./Settlements";
|
|
12
13
|
import { Transactions } from "./Transactions";
|
|
@@ -19,6 +20,7 @@ export declare class Client extends rest.Client<gracely.Error> {
|
|
|
19
20
|
readonly cards: Cards;
|
|
20
21
|
readonly operations: Operations;
|
|
21
22
|
readonly organizations: Organizations;
|
|
23
|
+
readonly reports: Reports;
|
|
22
24
|
readonly rules: Rules;
|
|
23
25
|
readonly settlements: Settlements;
|
|
24
26
|
readonly transactions: Transactions;
|
package/dist/Client/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { Cards } from "./Cards";
|
|
|
6
6
|
import { Flags } from "./Flags";
|
|
7
7
|
import { Operations } from "./Operations";
|
|
8
8
|
import { Organizations } from "./Organizations";
|
|
9
|
+
import { Reports } from "./Reports";
|
|
9
10
|
import { Rules } from "./Rules";
|
|
10
11
|
import { Settlements } from "./Settlements";
|
|
11
12
|
import { Transactions } from "./Transactions";
|
|
@@ -18,6 +19,7 @@ export class Client extends rest.Client {
|
|
|
18
19
|
this.cards = new Cards(this.client);
|
|
19
20
|
this.operations = new Operations(this.client);
|
|
20
21
|
this.organizations = new Organizations(this.client);
|
|
22
|
+
this.reports = new Reports(this.client);
|
|
21
23
|
this.rules = new Rules(this.client);
|
|
22
24
|
this.settlements = new Settlements(this.client);
|
|
23
25
|
this.transactions = new Transactions(this.client);
|
package/dist/Client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA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