@pax2pay/model-banking 0.1.650 → 0.1.652
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/Account/Creatable.ts +1 -1
- package/Card/Stack.ts +1 -1
- package/Client/Policies.ts +23 -0
- package/Client/index.ts +3 -3
- package/dist/cjs/Card/Stack.d.ts +5 -5
- package/dist/cjs/Card/Stack.js.map +1 -1
- package/dist/cjs/Client/Policies.d.ts +15 -0
- package/dist/cjs/Client/{MCCPolicies.js → Policies.js} +8 -8
- package/dist/cjs/Client/Policies.js.map +1 -0
- package/dist/cjs/Client/index.d.ts +2 -2
- package/dist/cjs/Client/index.js +3 -3
- package/dist/cjs/Client/index.js.map +1 -1
- package/dist/cjs/pax2pay.d.ts +1 -1
- package/dist/cjs/pax2pay.js +3 -3
- package/dist/cjs/pax2pay.js.map +1 -1
- package/dist/cjs/policy/Mcc/Action.js.map +1 -0
- package/dist/{mjs/MCCPolicy → cjs/policy/Mcc}/Creatable.d.ts +1 -1
- package/dist/cjs/{MCCPolicy → policy/Mcc}/Creatable.js +1 -1
- package/dist/cjs/policy/Mcc/Creatable.js.map +1 -0
- package/dist/{mjs/MCCPolicy → cjs/policy/Mcc}/Group.d.ts +1 -1
- package/dist/cjs/{MCCPolicy → policy/Mcc}/Group.js +3 -9
- package/dist/cjs/policy/Mcc/Group.js.map +1 -0
- package/dist/cjs/{MCCPolicy → policy/Mcc}/Updatable.js +1 -3
- package/dist/cjs/policy/Mcc/Updatable.js.map +1 -0
- package/dist/cjs/policy/Mcc/index.d.ts +29 -0
- package/dist/cjs/{MCCPolicy → policy/Mcc}/index.js +20 -21
- package/dist/cjs/policy/Mcc/index.js.map +1 -0
- package/dist/cjs/policy/index.d.ts +4 -0
- package/dist/cjs/policy/index.js +9 -0
- package/dist/cjs/policy/index.js.map +1 -0
- package/dist/mjs/Card/Stack.d.ts +5 -5
- package/dist/mjs/Card/Stack.js.map +1 -1
- package/dist/mjs/Client/Policies.d.ts +15 -0
- package/dist/mjs/Client/{MCCPolicies.js → Policies.js} +6 -6
- package/dist/mjs/Client/Policies.js.map +1 -0
- package/dist/mjs/Client/index.d.ts +2 -2
- package/dist/mjs/Client/index.js +3 -3
- package/dist/mjs/Client/index.js.map +1 -1
- package/dist/mjs/pax2pay.d.ts +1 -1
- package/dist/mjs/pax2pay.js +1 -1
- package/dist/mjs/pax2pay.js.map +1 -1
- package/dist/mjs/policy/Mcc/Action.js.map +1 -0
- package/dist/{cjs/MCCPolicy → mjs/policy/Mcc}/Creatable.d.ts +1 -1
- package/dist/mjs/{MCCPolicy → policy/Mcc}/Creatable.js +1 -1
- package/dist/mjs/policy/Mcc/Creatable.js.map +1 -0
- package/dist/{cjs/MCCPolicy → mjs/policy/Mcc}/Group.d.ts +1 -1
- package/dist/mjs/{MCCPolicy → policy/Mcc}/Group.js +3 -9
- package/dist/mjs/policy/Mcc/Group.js.map +1 -0
- package/dist/mjs/{MCCPolicy → policy/Mcc}/Updatable.js +1 -3
- package/dist/mjs/policy/Mcc/Updatable.js.map +1 -0
- package/dist/mjs/policy/Mcc/index.d.ts +29 -0
- package/dist/mjs/policy/Mcc/index.js +42 -0
- package/dist/mjs/policy/Mcc/index.js.map +1 -0
- package/dist/mjs/policy/index.d.ts +4 -0
- package/dist/mjs/policy/index.js +6 -0
- package/dist/mjs/policy/index.js.map +1 -0
- package/package.json +1 -1
- package/pax2pay.ts +1 -1
- package/{MCCPolicy → policy/Mcc}/Action.ts +1 -2
- package/{MCCPolicy → policy/Mcc}/Creatable.ts +1 -2
- package/{MCCPolicy → policy/Mcc}/Group.ts +3 -9
- package/{MCCPolicy → policy/Mcc}/Updatable.ts +1 -4
- package/policy/Mcc/index.ts +47 -0
- package/policy/index.ts +5 -0
- package/Client/MCCPolicies.ts +0 -23
- package/MCCPolicy/Identifier.ts +0 -9
- package/MCCPolicy/index.ts +0 -47
- package/dist/cjs/Client/MCCPolicies.d.ts +0 -15
- package/dist/cjs/Client/MCCPolicies.js.map +0 -1
- package/dist/cjs/MCCPolicy/Action.js.map +0 -1
- package/dist/cjs/MCCPolicy/Creatable.js.map +0 -1
- package/dist/cjs/MCCPolicy/Group.js.map +0 -1
- package/dist/cjs/MCCPolicy/Identifier.d.ts +0 -4
- package/dist/cjs/MCCPolicy/Identifier.js +0 -12
- package/dist/cjs/MCCPolicy/Identifier.js.map +0 -1
- package/dist/cjs/MCCPolicy/Updatable.js.map +0 -1
- package/dist/cjs/MCCPolicy/index.d.ts +0 -31
- package/dist/cjs/MCCPolicy/index.js.map +0 -1
- package/dist/mjs/Client/MCCPolicies.d.ts +0 -15
- package/dist/mjs/Client/MCCPolicies.js.map +0 -1
- package/dist/mjs/MCCPolicy/Action.js.map +0 -1
- package/dist/mjs/MCCPolicy/Creatable.js.map +0 -1
- package/dist/mjs/MCCPolicy/Group.js.map +0 -1
- package/dist/mjs/MCCPolicy/Identifier.d.ts +0 -4
- package/dist/mjs/MCCPolicy/Identifier.js +0 -9
- package/dist/mjs/MCCPolicy/Identifier.js.map +0 -1
- package/dist/mjs/MCCPolicy/Updatable.js.map +0 -1
- package/dist/mjs/MCCPolicy/index.d.ts +0 -31
- package/dist/mjs/MCCPolicy/index.js +0 -43
- package/dist/mjs/MCCPolicy/index.js.map +0 -1
- /package/dist/cjs/{MCCPolicy → policy/Mcc}/Action.d.ts +0 -0
- /package/dist/cjs/{MCCPolicy → policy/Mcc}/Action.js +0 -0
- /package/dist/cjs/{MCCPolicy → policy/Mcc}/Updatable.d.ts +0 -0
- /package/dist/mjs/{MCCPolicy → policy/Mcc}/Action.d.ts +0 -0
- /package/dist/mjs/{MCCPolicy → policy/Mcc}/Action.js +0 -0
- /package/dist/mjs/{MCCPolicy → policy/Mcc}/Updatable.d.ts +0 -0
package/Account/Creatable.ts
CHANGED
package/Card/Stack.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type Stack = (typeof Stack.stacks)[number]
|
|
|
7
7
|
export namespace Stack {
|
|
8
8
|
export type Active = (typeof Active.values)[number]
|
|
9
9
|
export namespace Active {
|
|
10
|
-
export const test = ["test-paxgiro", "test-tpl-paxgiro", "test-diners-clowd9"]
|
|
10
|
+
export const test = ["test-paxgiro", "test-tpl-paxgiro", "test-diners-clowd9"] as const
|
|
11
11
|
export const uk = ["uk-visa-tpl-marqeta", "uk-diners-clowd9"] as const
|
|
12
12
|
export const values = [...test, ...uk] as const
|
|
13
13
|
export const type = isly.string([...test, ...uk])
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { gracely } from "gracely"
|
|
2
|
+
import { http } from "cloudly-http"
|
|
3
|
+
import { Card } from "../Card"
|
|
4
|
+
import { policy } from "../policy"
|
|
5
|
+
|
|
6
|
+
export class Policies {
|
|
7
|
+
constructor(private readonly client: http.Client) {}
|
|
8
|
+
async create(policy: policy.Mcc.Creatable): Promise<policy.Mcc | gracely.Error> {
|
|
9
|
+
return this.client.post<policy.Mcc>(`/policy/mcc`, policy)
|
|
10
|
+
}
|
|
11
|
+
async update(policy: policy.Mcc.Updatable): Promise<policy.Mcc | gracely.Error> {
|
|
12
|
+
return this.client.put<policy.Mcc>(`/policy/mcc`, policy)
|
|
13
|
+
}
|
|
14
|
+
async list(filter: { organization?: string; stack?: Card.Stack }): Promise<policy.Mcc[] | gracely.Error> {
|
|
15
|
+
const query = Object.entries(filter)
|
|
16
|
+
.map(([key, value]) => `${key}=${value}`)
|
|
17
|
+
.join("&")
|
|
18
|
+
return this.client.get<policy.Mcc[]>(`/policy/mcc${query ? `?${query}` : ""}`)
|
|
19
|
+
}
|
|
20
|
+
async remove(id: string): Promise<policy.Mcc | gracely.Error> {
|
|
21
|
+
return this.client.delete<policy.Mcc>(`/policy/mcc/${id}`)
|
|
22
|
+
}
|
|
23
|
+
}
|
package/Client/index.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { Accounts } from "./Accounts"
|
|
|
4
4
|
import { Audit } from "./Audit"
|
|
5
5
|
import { Cards } from "./Cards"
|
|
6
6
|
import { Logs } from "./Logs"
|
|
7
|
-
import { MCCPolicies } from "./MCCPolicies"
|
|
8
7
|
import { Me } from "./Me"
|
|
9
8
|
import { Operations } from "./Operations"
|
|
10
9
|
import { Organizations } from "./Organizations"
|
|
10
|
+
import { Policies } from "./Policies"
|
|
11
11
|
import { Processor } from "./Processor"
|
|
12
12
|
import { Reports } from "./Reports"
|
|
13
13
|
import { Settlements } from "./Settlements"
|
|
@@ -22,7 +22,7 @@ export class Client {
|
|
|
22
22
|
readonly audits: Audit
|
|
23
23
|
readonly cards: Cards
|
|
24
24
|
readonly logs: Logs
|
|
25
|
-
readonly
|
|
25
|
+
readonly policies: Policies
|
|
26
26
|
readonly me: Me
|
|
27
27
|
readonly operations: Operations
|
|
28
28
|
readonly organizations: Organizations
|
|
@@ -51,7 +51,7 @@ export class Client {
|
|
|
51
51
|
this.audits = new Audit(this.client)
|
|
52
52
|
this.cards = new Cards(this.client)
|
|
53
53
|
this.logs = new Logs(this.client)
|
|
54
|
-
this.
|
|
54
|
+
this.policies = new Policies(this.client)
|
|
55
55
|
this.me = new Me(this.client)
|
|
56
56
|
this.operations = new Operations(this.client)
|
|
57
57
|
this.organizations = new Organizations(this.client)
|
package/dist/cjs/Card/Stack.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export type Stack = (typeof Stack.stacks)[number];
|
|
|
4
4
|
export declare namespace Stack {
|
|
5
5
|
type Active = (typeof Active.values)[number];
|
|
6
6
|
namespace Active {
|
|
7
|
-
const test:
|
|
7
|
+
const test: readonly ["test-paxgiro", "test-tpl-paxgiro", "test-diners-clowd9"];
|
|
8
8
|
const uk: readonly ["uk-visa-tpl-marqeta", "uk-diners-clowd9"];
|
|
9
|
-
const values: readonly [
|
|
10
|
-
const type: isly.Type<
|
|
9
|
+
const values: readonly ["test-paxgiro", "test-tpl-paxgiro", "test-diners-clowd9", "uk-visa-tpl-marqeta", "uk-diners-clowd9"];
|
|
10
|
+
const type: isly.Type<"test-paxgiro" | "test-tpl-paxgiro" | "test-diners-clowd9" | "uk-visa-tpl-marqeta" | "uk-diners-clowd9">;
|
|
11
11
|
}
|
|
12
12
|
type Decommissioned = (typeof Decommissioned.values)[number];
|
|
13
13
|
namespace Decommissioned {
|
|
@@ -15,8 +15,8 @@ export declare namespace Stack {
|
|
|
15
15
|
const values: readonly ["uk-diners-dpg", "uk-mc-tpl-marqeta"];
|
|
16
16
|
const type: isly.Type<"uk-diners-dpg" | "uk-mc-tpl-marqeta">;
|
|
17
17
|
}
|
|
18
|
-
const stacks: readonly [
|
|
19
|
-
const type: isly.Type<
|
|
18
|
+
const stacks: readonly ["test-paxgiro", "test-tpl-paxgiro", "test-diners-clowd9", "uk-visa-tpl-marqeta", "uk-diners-clowd9", "uk-diners-dpg", "uk-mc-tpl-marqeta"];
|
|
19
|
+
const type: isly.Type<"test-paxgiro" | "test-tpl-paxgiro" | "test-diners-clowd9" | "uk-visa-tpl-marqeta" | "uk-diners-clowd9" | "uk-diners-dpg" | "uk-mc-tpl-marqeta">;
|
|
20
20
|
function toRealm(stack: Stack): Realm;
|
|
21
21
|
function toScheme(stack: Stack): string;
|
|
22
22
|
function toProcessor(stack: Stack): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.js","sourceRoot":"","sources":["../../../Card/Stack.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAM3B,IAAiB,KAAK,CA4FrB;AA5FD,WAAiB,KAAK;IAErB,IAAiB,MAAM,CAKtB;IALD,WAAiB,MAAM;QACT,WAAI,GAAG,CAAC,cAAc,EAAE,kBAAkB,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"Stack.js","sourceRoot":"","sources":["../../../Card/Stack.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAM3B,IAAiB,KAAK,CA4FrB;AA5FD,WAAiB,KAAK;IAErB,IAAiB,MAAM,CAKtB;IALD,WAAiB,MAAM;QACT,WAAI,GAAG,CAAC,cAAc,EAAE,kBAAkB,EAAE,oBAAoB,CAAU,CAAA;QAC1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,IAAI,SAAS,CAC7D,EAAE,CAAC,CAAC,CAAC,CAAA;QACP,CAAC;QAJe,iBAAO,UAItB,CAAA;IACF,CAAC,EA9CgB,SAAS,GAAT,eAAS,KAAT,eAAS,QA8CzB;AAEF,CAAC,EA5FgB,KAAK,qBAAL,KAAK,QA4FrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import { Card } from "../Card";
|
|
4
|
+
import { policy } from "../policy";
|
|
5
|
+
export declare class Policies {
|
|
6
|
+
private readonly client;
|
|
7
|
+
constructor(client: http.Client);
|
|
8
|
+
create(policy: policy.Mcc.Creatable): Promise<policy.Mcc | gracely.Error>;
|
|
9
|
+
update(policy: policy.Mcc.Updatable): Promise<policy.Mcc | gracely.Error>;
|
|
10
|
+
list(filter: {
|
|
11
|
+
organization?: string;
|
|
12
|
+
stack?: Card.Stack;
|
|
13
|
+
}): Promise<policy.Mcc[] | gracely.Error>;
|
|
14
|
+
remove(id: string): Promise<policy.Mcc | gracely.Error>;
|
|
15
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
class
|
|
3
|
+
exports.Policies = void 0;
|
|
4
|
+
class Policies {
|
|
5
5
|
client;
|
|
6
6
|
constructor(client) {
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
async create(policy) {
|
|
10
|
-
return this.client.post(`/mcc
|
|
10
|
+
return this.client.post(`/policy/mcc`, policy);
|
|
11
11
|
}
|
|
12
12
|
async update(policy) {
|
|
13
|
-
return this.client.put(`/mcc
|
|
13
|
+
return this.client.put(`/policy/mcc`, policy);
|
|
14
14
|
}
|
|
15
15
|
async list(filter) {
|
|
16
16
|
const query = Object.entries(filter)
|
|
17
17
|
.map(([key, value]) => `${key}=${value}`)
|
|
18
18
|
.join("&");
|
|
19
|
-
return this.client.get(`/mcc
|
|
19
|
+
return this.client.get(`/policy/mcc${query ? `?${query}` : ""}`);
|
|
20
20
|
}
|
|
21
21
|
async remove(id) {
|
|
22
|
-
return this.client.delete(`/mcc
|
|
22
|
+
return this.client.delete(`/policy/mcc/${id}`);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
exports.
|
|
26
|
-
//# sourceMappingURL=
|
|
25
|
+
exports.Policies = Policies;
|
|
26
|
+
//# sourceMappingURL=Policies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Policies.js","sourceRoot":"","sources":["../../../Client/Policies.ts"],"names":[],"mappings":";;;AAKA,MAAa,QAAQ;IACS;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,MAA4B;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAa,aAAa,EAAE,MAAM,CAAC,CAAA;IAC3D,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,MAA4B;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,aAAa,EAAE,MAAM,CAAC,CAAA;IAC1D,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,MAAqD;QAC/D,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;aAClC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;aACxC,IAAI,CAAC,GAAG,CAAC,CAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAe,cAAc,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAC/E,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAa,eAAe,EAAE,EAAE,CAAC,CAAA;IAC3D,CAAC;CACD;AAjBD,4BAiBC"}
|
|
@@ -3,10 +3,10 @@ import { Accounts } from "./Accounts";
|
|
|
3
3
|
import { Audit } from "./Audit";
|
|
4
4
|
import { Cards } from "./Cards";
|
|
5
5
|
import { Logs } from "./Logs";
|
|
6
|
-
import { MCCPolicies } from "./MCCPolicies";
|
|
7
6
|
import { Me } from "./Me";
|
|
8
7
|
import { Operations } from "./Operations";
|
|
9
8
|
import { Organizations } from "./Organizations";
|
|
9
|
+
import { Policies } from "./Policies";
|
|
10
10
|
import { Processor } from "./Processor";
|
|
11
11
|
import { Reports } from "./Reports";
|
|
12
12
|
import { Settlements } from "./Settlements";
|
|
@@ -22,7 +22,7 @@ export declare class Client {
|
|
|
22
22
|
readonly audits: Audit;
|
|
23
23
|
readonly cards: Cards;
|
|
24
24
|
readonly logs: Logs;
|
|
25
|
-
readonly
|
|
25
|
+
readonly policies: Policies;
|
|
26
26
|
readonly me: Me;
|
|
27
27
|
readonly operations: Operations;
|
|
28
28
|
readonly organizations: Organizations;
|
package/dist/cjs/Client/index.js
CHANGED
|
@@ -6,10 +6,10 @@ const Accounts_1 = require("./Accounts");
|
|
|
6
6
|
const Audit_1 = require("./Audit");
|
|
7
7
|
const Cards_1 = require("./Cards");
|
|
8
8
|
const Logs_1 = require("./Logs");
|
|
9
|
-
const MCCPolicies_1 = require("./MCCPolicies");
|
|
10
9
|
const Me_1 = require("./Me");
|
|
11
10
|
const Operations_1 = require("./Operations");
|
|
12
11
|
const Organizations_1 = require("./Organizations");
|
|
12
|
+
const Policies_1 = require("./Policies");
|
|
13
13
|
const Processor_1 = require("./Processor");
|
|
14
14
|
const Reports_1 = require("./Reports");
|
|
15
15
|
const Settlements_1 = require("./Settlements");
|
|
@@ -25,7 +25,7 @@ class Client {
|
|
|
25
25
|
audits;
|
|
26
26
|
cards;
|
|
27
27
|
logs;
|
|
28
|
-
|
|
28
|
+
policies;
|
|
29
29
|
me;
|
|
30
30
|
operations;
|
|
31
31
|
organizations;
|
|
@@ -55,7 +55,7 @@ class Client {
|
|
|
55
55
|
this.audits = new Audit_1.Audit(this.client);
|
|
56
56
|
this.cards = new Cards_1.Cards(this.client);
|
|
57
57
|
this.logs = new Logs_1.Logs(this.client);
|
|
58
|
-
this.
|
|
58
|
+
this.policies = new Policies_1.Policies(this.client);
|
|
59
59
|
this.me = new Me_1.Me(this.client);
|
|
60
60
|
this.operations = new Operations_1.Operations(this.client);
|
|
61
61
|
this.organizations = new Organizations_1.Organizations(this.client);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Client/index.ts"],"names":[],"mappings":";;;AACA,+CAAmC;AACnC,yCAAqC;AACrC,mCAA+B;AAC/B,mCAA+B;AAC/B,iCAA6B;AAC7B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Client/index.ts"],"names":[],"mappings":";;;AACA,+CAAmC;AACnC,yCAAqC;AACrC,mCAA+B;AAC/B,mCAA+B;AAC/B,iCAA6B;AAC7B,6BAAyB;AACzB,6CAAyC;AACzC,mDAA+C;AAC/C,yCAAqC;AACrC,2CAAuC;AACvC,uCAAmC;AACnC,+CAA2C;AAC3C,iDAAmE;AACnE,yCAAqC;AACrC,mCAA+B;AAC/B,uCAAmC;AACnC,MAAa,MAAM;IA8BmB;IA7BrC,KAAK,CAAS;IACd,YAAY,CAAS;IACZ,QAAQ,CAAU;IAClB,MAAM,CAAO;IACb,KAAK,CAAO;IACZ,IAAI,CAAM;IACV,QAAQ,CAAU;IAClB,EAAE,CAAI;IACN,UAAU,CAAY;IACtB,aAAa,CAAe;IAC5B,UAAU,CAAW;IACrB,OAAO,CAAS;IAChB,WAAW,CAAa;IACxB,YAAY,CAAoB;IAChC,QAAQ,CAAU;IAClB,KAAK,CAAO;IACZ,OAAO,CAAS;IACzB,IAAI,GAAG,CAAC,KAAyB;QAChC,IAAI,CAAC,MAAM,C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,CAC5B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE;wBACrC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;qBACtE,CAAC,CACF,CAAA;gBACF,CAAC;gBACD,OAAO,MAAM,CAAA;YACd,CAAC;SACD,CAAC,CAAA;QACF,MAAM,MAAM,GAAW,IAAI,MAAM,CAAC,UAAU,CAAC,CAAA;QAC7C,OAAO,MAAM,CAAA;IACd,CAAC;CACD;AA3ED,wBA2EC;AACD,WAAiB,MAAM;IACR,mBAAY,GAAG,2BAAkB,CAAA;AAChD,CAAC,EAFgB,MAAM,sBAAN,MAAM,QAEtB"}
|
package/dist/cjs/pax2pay.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { fx } from "./fx";
|
|
|
13
13
|
export { Holidays } from "./Holidays";
|
|
14
14
|
export { Identifier } from "./Identifier";
|
|
15
15
|
export { Log } from "./Log";
|
|
16
|
-
export {
|
|
16
|
+
export { policy } from "./policy";
|
|
17
17
|
export { Merchant } from "./Merchant";
|
|
18
18
|
export { Operation } from "./Operation";
|
|
19
19
|
export { Organization } from "./Organization";
|
package/dist/cjs/pax2pay.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zodHelper = exports.Quarter = exports.Warning = exports.User = exports.Treasury = exports.Transaction = exports.Supplier = exports.Settlement = exports.Rule = exports.reports = exports.Report = exports.Realm = exports.Rail = exports.Organization = exports.Operation = exports.Merchant = exports.
|
|
3
|
+
exports.zodHelper = exports.Quarter = exports.Warning = exports.User = exports.Treasury = exports.Transaction = exports.Supplier = exports.Settlement = exports.Rule = exports.reports = exports.Report = exports.Realm = exports.Rail = exports.Organization = exports.Operation = exports.Merchant = exports.policy = exports.Log = exports.Identifier = exports.Holidays = exports.fx = exports.Client = exports.Card = exports.Balances = exports.Balance = exports.Backup = exports.Authorization = exports.Audit = exports.Amounts = exports.Amount = exports.Acquirer = exports.Account = void 0;
|
|
4
4
|
var Account_1 = require("./Account");
|
|
5
5
|
Object.defineProperty(exports, "Account", { enumerable: true, get: function () { return Account_1.Account; } });
|
|
6
6
|
var Acquirer_1 = require("./Acquirer");
|
|
@@ -31,8 +31,8 @@ var Identifier_1 = require("./Identifier");
|
|
|
31
31
|
Object.defineProperty(exports, "Identifier", { enumerable: true, get: function () { return Identifier_1.Identifier; } });
|
|
32
32
|
var Log_1 = require("./Log");
|
|
33
33
|
Object.defineProperty(exports, "Log", { enumerable: true, get: function () { return Log_1.Log; } });
|
|
34
|
-
var
|
|
35
|
-
Object.defineProperty(exports, "
|
|
34
|
+
var policy_1 = require("./policy");
|
|
35
|
+
Object.defineProperty(exports, "policy", { enumerable: true, get: function () { return policy_1.policy; } });
|
|
36
36
|
var Merchant_1 = require("./Merchant");
|
|
37
37
|
Object.defineProperty(exports, "Merchant", { enumerable: true, get: function () { return Merchant_1.Merchant; } });
|
|
38
38
|
var Operation_1 = require("./Operation");
|
package/dist/cjs/pax2pay.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pax2pay.js","sourceRoot":"","sources":["../../pax2pay.ts"],"names":[],"mappings":";;;AAAA,qCAAmC;AAA1B,kGAAA,OAAO,OAAA;AAChB,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,mCAAiC;AAAxB,gGAAA,MAAM,OAAA;AACf,qCAAmC;AAA1B,kGAAA,OAAO,OAAA;AAChB,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,mCAAiC;AAAxB,gGAAA,MAAM,OAAA;AACf,qCAAmC;AAA1B,kGAAA,OAAO,OAAA;AAChB,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,+B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GAAA,OAAO,OAAA;AAChB,+BAA6B;AAApB,4FAAA,IAAI,OAAA;AACb,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,+BAA6B;AAApB,4FAAA,IAAI,OAAA;AACb,qCAAmC;AAA1B,kGAAA,OAAO,OAAA;AAChB,qCAAmC;AAA1B,kGAAA,OAAO,OAAA;AAChB,6BAAiC;AAAxB,gGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../../policy/Mcc/Action.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAG3B,IAAiB,MAAM,CAGtB;AAHD,WAAiB,MAAM;IACT,aAAM,GAAG,CAAC,OAAO,EAAE,OAAO,CAAU,CAAA;IACpC,WAAI,GAAG,WAAI,CAAC,MAAM,CAAS,OAAA,MAAM,CAAC,CAAA;AAChD,CAAC,EAHgB,MAAM,sBAAN,MAAM,QAGtB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Creatable = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
-
const Card_1 = require("
|
|
5
|
+
const Card_1 = require("../../Card");
|
|
6
6
|
const Action_1 = require("./Action");
|
|
7
7
|
const Group_1 = require("./Group");
|
|
8
8
|
var Creatable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../../policy/Mcc/Creatable.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,qCAAiC;AACjC,qCAAiC;AACjC,mCAA+B;AAU/B,IAAiB,SAAS,CASzB;AATD,WAAiB,SAAS;IACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;QAC1C,MAAM,EAAE,eAAM,CAAC,IAAI;QACnB,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACrC,YAAY,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACtC,MAAM,EAAE,WAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAC1C,KAAK,EAAE,aAAK,CAAC,IAAI;KACjB,CAAC,CAAA;AACH,CAAC,EATgB,SAAS,yBAAT,SAAS,QASzB"}
|
|
@@ -2,20 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Group = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
-
const Merchant_1 = require("
|
|
5
|
+
const Merchant_1 = require("../../Merchant");
|
|
6
6
|
var Group;
|
|
7
7
|
(function (Group) {
|
|
8
8
|
let Range;
|
|
9
9
|
(function (Range) {
|
|
10
|
-
Range.type = isly_1.isly.object({
|
|
11
|
-
from: Merchant_1.Merchant.Category.type,
|
|
12
|
-
to: Merchant_1.Merchant.Category.type,
|
|
13
|
-
});
|
|
10
|
+
Range.type = isly_1.isly.object({ from: Merchant_1.Merchant.Category.type, to: Merchant_1.Merchant.Category.type });
|
|
14
11
|
})(Range = Group.Range || (Group.Range = {}));
|
|
15
|
-
Group.type = isly_1.isly.object({
|
|
16
|
-
values: Merchant_1.Merchant.Category.type.array(),
|
|
17
|
-
ranges: Range.type.array(),
|
|
18
|
-
});
|
|
12
|
+
Group.type = isly_1.isly.object({ values: Merchant_1.Merchant.Category.type.array(), ranges: Range.type.array() });
|
|
19
13
|
function within(set, category) {
|
|
20
14
|
return set.values.includes(category) || set.ranges.some(r => r.from <= category && category <= r.to);
|
|
21
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../policy/Mcc/Group.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,6CAAyC;AAMzC,IAAiB,KAAK,CAYrB;AAZD,WAAiB,KAAK;IAKrB,IAAiB,KAAK,CAErB;IAFD,WAAiB,KAAK;QACR,UAAI,GAAG,WAAI,CAAC,MAAM,CAAQ,EAAE,IAAI,EAAE,mBAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,EAAE,mBAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;IACrG,CAAC,EAFgB,KAAK,GAAL,WAAK,KAAL,WAAK,QAErB;IACY,UAAI,GAAG,WAAI,CAAC,MAAM,CAAQ,EAAE,MAAM,EAAE,mBAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;IAC9G,SAAgB,MAAM,CAAC,GAAU,EAAE,QAA2B;QAC7D,OAAO,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,QAAQ,IAAI,QAAQ,IAAI,CAAC,CAAC,EAAE,CAAC,CAAA;IACrG,CAAC;IAFe,YAAM,SAErB,CAAA;AACF,CAAC,EAZgB,KAAK,qBAAL,KAAK,QAYrB"}
|
|
@@ -5,8 +5,6 @@ const isly_1 = require("isly");
|
|
|
5
5
|
const Creatable_1 = require("./Creatable");
|
|
6
6
|
var Updatable;
|
|
7
7
|
(function (Updatable) {
|
|
8
|
-
Updatable.type = Creatable_1.Creatable.type.extend({
|
|
9
|
-
id: isly_1.isly.string(),
|
|
10
|
-
});
|
|
8
|
+
Updatable.type = Creatable_1.Creatable.type.extend({ id: isly_1.isly.string() });
|
|
11
9
|
})(Updatable || (exports.Updatable = Updatable = {}));
|
|
12
10
|
//# sourceMappingURL=Updatable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Updatable.js","sourceRoot":"","sources":["../../../../policy/Mcc/Updatable.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,2CAAuC;AAKvC,IAAiB,SAAS,CAEzB;AAFD,WAAiB,SAAS;IACZ,cAAI,GAAG,qBAAS,CAAC,IAAI,CAAC,MAAM,CAAY,EAAE,EAAE,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;AAC5E,CAAC,EAFgB,SAAS,yBAAT,SAAS,QAEzB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { Card } from "../../Card";
|
|
3
|
+
import { Merchant } from "../../Merchant";
|
|
4
|
+
import { Realm } from "../../Realm";
|
|
5
|
+
import { Action as MCCAction } from "./Action";
|
|
6
|
+
import { Creatable as MccCreatable } from "./Creatable";
|
|
7
|
+
import { Group as MCCGroup } from "./Group";
|
|
8
|
+
import { Updatable as MccUpdatable } from "./Updatable";
|
|
9
|
+
export interface Mcc extends MccCreatable {
|
|
10
|
+
id: string;
|
|
11
|
+
realm: Realm;
|
|
12
|
+
created: isoly.DateTime;
|
|
13
|
+
updated: isoly.DateTime;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace Mcc {
|
|
16
|
+
export import Creatable = MccCreatable;
|
|
17
|
+
export import Updatable = MccUpdatable;
|
|
18
|
+
export import Action = MCCAction;
|
|
19
|
+
export import Group = MCCGroup;
|
|
20
|
+
type TransactionInput = {
|
|
21
|
+
category?: Merchant.Category;
|
|
22
|
+
preset?: Card.Preset;
|
|
23
|
+
organization?: string;
|
|
24
|
+
};
|
|
25
|
+
const type: import("isly/dist/cjs/object").IslyObject<Mcc, Creatable>;
|
|
26
|
+
function match(policy: Mcc, transaction: TransactionInput): boolean;
|
|
27
|
+
function resolve(policies: Mcc[], transaction: TransactionInput): Mcc[];
|
|
28
|
+
function isAllowed(policies: Mcc[], transaction: TransactionInput): boolean | undefined;
|
|
29
|
+
}
|
|
@@ -1,46 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Mcc = void 0;
|
|
4
4
|
const isoly_1 = require("isoly");
|
|
5
5
|
const isly_1 = require("isly");
|
|
6
|
-
const Card_1 = require("
|
|
7
|
-
const Realm_1 = require("
|
|
6
|
+
const Card_1 = require("../../Card");
|
|
7
|
+
const Realm_1 = require("../../Realm");
|
|
8
8
|
const Action_1 = require("./Action");
|
|
9
9
|
const Creatable_1 = require("./Creatable");
|
|
10
10
|
const Group_1 = require("./Group");
|
|
11
|
-
const Identifier_1 = require("./Identifier");
|
|
12
11
|
const Updatable_1 = require("./Updatable");
|
|
13
|
-
var
|
|
14
|
-
(function (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
MCCPolicy.type = MCCPolicy.Creatable.type.extend({
|
|
12
|
+
var Mcc;
|
|
13
|
+
(function (Mcc) {
|
|
14
|
+
Mcc.Creatable = Creatable_1.Creatable;
|
|
15
|
+
Mcc.Updatable = Updatable_1.Updatable;
|
|
16
|
+
Mcc.Action = Action_1.Action;
|
|
17
|
+
Mcc.Group = Group_1.Group;
|
|
18
|
+
Mcc.type = Mcc.Creatable.type.extend({
|
|
21
19
|
id: isly_1.isly.string(),
|
|
22
20
|
realm: Realm_1.Realm.type,
|
|
23
21
|
created: isly_1.isly.fromIs("isoly.DateTime", isoly_1.isoly.DateTime.is),
|
|
24
22
|
updated: isly_1.isly.fromIs("isoly.DateTime", isoly_1.isoly.DateTime.is),
|
|
25
23
|
});
|
|
26
24
|
function match(policy, transaction) {
|
|
27
|
-
const stack = transaction.
|
|
25
|
+
const stack = transaction.preset ? Card_1.Card.Preset.presets[transaction.preset] : undefined;
|
|
28
26
|
const stackMatches = !policy.stacks || (!!stack && policy.stacks.includes(stack));
|
|
29
|
-
const orgMatches = policy.organization == undefined ||
|
|
30
|
-
|
|
27
|
+
const orgMatches = policy.organization == undefined ||
|
|
28
|
+
(!!transaction.organization && policy.organization == transaction.organization);
|
|
29
|
+
return !!transaction.category && stackMatches && orgMatches && Mcc.Group.within(policy.group, transaction.category);
|
|
31
30
|
}
|
|
32
|
-
|
|
31
|
+
Mcc.match = match;
|
|
33
32
|
function resolve(policies, transaction) {
|
|
34
33
|
const blocks = policies.filter(c => c.action == "block");
|
|
35
|
-
const blockMatches = blocks.filter(c =>
|
|
34
|
+
const blockMatches = blocks.filter(c => Mcc.match(c, transaction));
|
|
36
35
|
const allows = policies.filter(c => c.action == "allow");
|
|
37
|
-
return blockMatches.length ? blockMatches : allows.filter(c =>
|
|
36
|
+
return blockMatches.length ? blockMatches : allows.filter(c => Mcc.match(c, transaction));
|
|
38
37
|
}
|
|
39
|
-
|
|
38
|
+
Mcc.resolve = resolve;
|
|
40
39
|
function isAllowed(policies, transaction) {
|
|
41
40
|
const [result] = resolve(policies, transaction);
|
|
42
41
|
return result ? result.action == "allow" : undefined;
|
|
43
42
|
}
|
|
44
|
-
|
|
45
|
-
})(
|
|
43
|
+
Mcc.isAllowed = isAllowed;
|
|
44
|
+
})(Mcc || (exports.Mcc = Mcc = {}));
|
|
46
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../policy/Mcc/index.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAC3B,qCAAiC;AAEjC,uCAAmC;AACnC,qCAA8C;AAC9C,2CAAuD;AACvD,mCAA2C;AAC3C,2CAAuD;AAQvD,IAAiB,GAAG,CA8BnB;AA9BD,WAAiB,GAAG;IACL,aAAS,GAAG,qBAAY,CAAA;IACxB,aAAS,GAAG,qBAAY,CAAA;IACxB,UAAM,GAAG,eAAS,CAAA;IAClB,SAAK,GAAG,aAAQ,CAA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AC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAA;QAClE,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,OAAO,CAAC,CAAA;QACxD,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAA;IAC1F,CAAC;IALe,WAAO,UAKtB,CAAA;IACD,SAAgB,SAAS,CAAC,QAAe,EAAE,WAA6B;QACvE,MAAM,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAA;QAC/C,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,SAAS,CAAA;IACrD,CAAC;IAHe,aAAS,YAGxB,CAAA;AACF,CAAC,EA9BgB,GAAG,mBAAH,GAAG,QA8BnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.policy = void 0;
|
|
4
|
+
const Mcc_1 = require("./Mcc");
|
|
5
|
+
var policy;
|
|
6
|
+
(function (policy) {
|
|
7
|
+
policy.Mcc = Mcc_1.Mcc;
|
|
8
|
+
})(policy || (exports.policy = policy = {}));
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../policy/index.ts"],"names":[],"mappings":";;;AAAA,+BAAwC;AAExC,IAAiB,MAAM,CAEtB;AAFD,WAAiB,MAAM;IACR,UAAG,GAAG,SAAS,CAAA;AAC9B,CAAC,EAFgB,MAAM,sBAAN,MAAM,QAEtB"}
|
package/dist/mjs/Card/Stack.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export type Stack = (typeof Stack.stacks)[number];
|
|
|
4
4
|
export declare namespace Stack {
|
|
5
5
|
type Active = (typeof Active.values)[number];
|
|
6
6
|
namespace Active {
|
|
7
|
-
const test:
|
|
7
|
+
const test: readonly ["test-paxgiro", "test-tpl-paxgiro", "test-diners-clowd9"];
|
|
8
8
|
const uk: readonly ["uk-visa-tpl-marqeta", "uk-diners-clowd9"];
|
|
9
|
-
const values: readonly [
|
|
10
|
-
const type: isly.Type<
|
|
9
|
+
const values: readonly ["test-paxgiro", "test-tpl-paxgiro", "test-diners-clowd9", "uk-visa-tpl-marqeta", "uk-diners-clowd9"];
|
|
10
|
+
const type: isly.Type<"test-paxgiro" | "test-tpl-paxgiro" | "test-diners-clowd9" | "uk-visa-tpl-marqeta" | "uk-diners-clowd9">;
|
|
11
11
|
}
|
|
12
12
|
type Decommissioned = (typeof Decommissioned.values)[number];
|
|
13
13
|
namespace Decommissioned {
|
|
@@ -15,8 +15,8 @@ export declare namespace Stack {
|
|
|
15
15
|
const values: readonly ["uk-diners-dpg", "uk-mc-tpl-marqeta"];
|
|
16
16
|
const type: isly.Type<"uk-diners-dpg" | "uk-mc-tpl-marqeta">;
|
|
17
17
|
}
|
|
18
|
-
const stacks: readonly [
|
|
19
|
-
const type: isly.Type<
|
|
18
|
+
const stacks: readonly ["test-paxgiro", "test-tpl-paxgiro", "test-diners-clowd9", "uk-visa-tpl-marqeta", "uk-diners-clowd9", "uk-diners-dpg", "uk-mc-tpl-marqeta"];
|
|
19
|
+
const type: isly.Type<"test-paxgiro" | "test-tpl-paxgiro" | "test-diners-clowd9" | "uk-visa-tpl-marqeta" | "uk-diners-clowd9" | "uk-diners-dpg" | "uk-mc-tpl-marqeta">;
|
|
20
20
|
function toRealm(stack: Stack): Realm;
|
|
21
21
|
function toScheme(stack: Stack): string;
|
|
22
22
|
function toProcessor(stack: Stack): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.js","sourceRoot":"","sources":["../../../Card/Stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,KAAK,CA4FrB;AA5FD,WAAiB,KAAK;IAErB,IAAiB,MAAM,CAKtB;IALD,WAAiB,MAAM;QACT,WAAI,GAAG,CAAC,cAAc,EAAE,kBAAkB,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"Stack.js","sourceRoot":"","sources":["../../../Card/Stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,KAAK,CA4FrB;AA5FD,WAAiB,KAAK;IAErB,IAAiB,MAAM,CAKtB;IALD,WAAiB,MAAM;QACT,WAAI,GAAG,CAAC,cAAc,EAAE,kBAAkB,EAAE,oBAAoB,CAAU,CAAA;QAC1E,SAAE,GAAG,CAAC,qBAAqB,EAAE,kBAAkB,CAAU,CAAA;QACzD,aAAM,GAAG,CAAC,GAAG,OAAA,IAAI,EAAE,GAAG,OAAA,EAAE,CAAU,CAAA;QAClC,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,OAAA,IAAI,EAAE,GAAG,OAAA,EAAE,CAAC,CAAC,CAAA;IAClD,CAAC,EALgB,MAAM,GAAN,YAAM,KAAN,YAAM,QAKtB;IAED,IAAiB,cAAc,CAI9B;IAJD,WAAiB,cAAc;QACjB,iBAAE,GAAG,CAAC,eAAe,EAAE,mBAAmB,CAAU,CAAA;QACpD,qBAAM,GAAG,CAAC,GAAG,eAAA,EAAE,CAAU,CAAA;QACzB,mBAAI,GAAG,IAAI,CAAC,MAAM,CAAC,eAAA,MAAM,CAAC,CAAA;IACxC,CAAC,EAJgB,cAAc,GAAd,oBAAc,KAAd,oBAAc,QAI9B;IACY,YAAM,GAAG,CAAC,GAAG,MAAM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,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;SACM,CAAA;QACV,MAAM,KAAK,GAAmC;YAC7C,cAAc,EAAE,GAAG;YACnB,kBAAkB,EAAE,GAAG;YACvB,oBAAoB,EAAE,GAAG;YACzB,mBAAmB,EAAE,GAAG;YACxB,eAAe,EAAE,GAAG;YACpB,qBAAqB,EAAE,GAAG;YAC1B,kBAAkB,EAAE,GAAG;SACvB,CAAA;QACD,SAAgB,IAAI,CAAC,KAAY;YAChC,OAAO,KAAK,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC;QAFe,cAAI,OAEnB,CAAA;QACD,SAAgB,OAAO,CAAC,SAA0B;YACjD,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAChC,CAAC,KAAK,EAA+B,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS,CAC7D,EAAE,CAAC,CAAC,CAAC,CAAA;QACP,CAAC;QAJe,iBAAO,UAItB,CAAA;IACF,CAAC,EA9CgB,SAAS,GAAT,eAAS,KAAT,eAAS,QA8CzB;AAEF,CAAC,EA5FgB,KAAK,KAAL,KAAK,QA4FrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import { Card } from "../Card";
|
|
4
|
+
import { policy } from "../policy";
|
|
5
|
+
export declare class Policies {
|
|
6
|
+
private readonly client;
|
|
7
|
+
constructor(client: http.Client);
|
|
8
|
+
create(policy: policy.Mcc.Creatable): Promise<policy.Mcc | gracely.Error>;
|
|
9
|
+
update(policy: policy.Mcc.Updatable): Promise<policy.Mcc | gracely.Error>;
|
|
10
|
+
list(filter: {
|
|
11
|
+
organization?: string;
|
|
12
|
+
stack?: Card.Stack;
|
|
13
|
+
}): Promise<policy.Mcc[] | gracely.Error>;
|
|
14
|
+
remove(id: string): Promise<policy.Mcc | gracely.Error>;
|
|
15
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export class
|
|
1
|
+
export class Policies {
|
|
2
2
|
client;
|
|
3
3
|
constructor(client) {
|
|
4
4
|
this.client = client;
|
|
5
5
|
}
|
|
6
6
|
async create(policy) {
|
|
7
|
-
return this.client.post(`/mcc
|
|
7
|
+
return this.client.post(`/policy/mcc`, policy);
|
|
8
8
|
}
|
|
9
9
|
async update(policy) {
|
|
10
|
-
return this.client.put(`/mcc
|
|
10
|
+
return this.client.put(`/policy/mcc`, policy);
|
|
11
11
|
}
|
|
12
12
|
async list(filter) {
|
|
13
13
|
const query = Object.entries(filter)
|
|
14
14
|
.map(([key, value]) => `${key}=${value}`)
|
|
15
15
|
.join("&");
|
|
16
|
-
return this.client.get(`/mcc
|
|
16
|
+
return this.client.get(`/policy/mcc${query ? `?${query}` : ""}`);
|
|
17
17
|
}
|
|
18
18
|
async remove(id) {
|
|
19
|
-
return this.client.delete(`/mcc
|
|
19
|
+
return this.client.delete(`/policy/mcc/${id}`);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=Policies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Policies.js","sourceRoot":"","sources":["../../../Client/Policies.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,QAAQ;IACS;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,MAA4B;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAa,aAAa,EAAE,MAAM,CAAC,CAAA;IAC3D,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,MAA4B;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,aAAa,EAAE,MAAM,CAAC,CAAA;IAC1D,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,MAAqD;QAC/D,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;aAClC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;aACxC,IAAI,CAAC,GAAG,CAAC,CAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAe,cAAc,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAC/E,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAa,eAAe,EAAE,EAAE,CAAC,CAAA;IAC3D,CAAC;CACD"}
|
|
@@ -3,10 +3,10 @@ import { Accounts } from "./Accounts";
|
|
|
3
3
|
import { Audit } from "./Audit";
|
|
4
4
|
import { Cards } from "./Cards";
|
|
5
5
|
import { Logs } from "./Logs";
|
|
6
|
-
import { MCCPolicies } from "./MCCPolicies";
|
|
7
6
|
import { Me } from "./Me";
|
|
8
7
|
import { Operations } from "./Operations";
|
|
9
8
|
import { Organizations } from "./Organizations";
|
|
9
|
+
import { Policies } from "./Policies";
|
|
10
10
|
import { Processor } from "./Processor";
|
|
11
11
|
import { Reports } from "./Reports";
|
|
12
12
|
import { Settlements } from "./Settlements";
|
|
@@ -22,7 +22,7 @@ export declare class Client {
|
|
|
22
22
|
readonly audits: Audit;
|
|
23
23
|
readonly cards: Cards;
|
|
24
24
|
readonly logs: Logs;
|
|
25
|
-
readonly
|
|
25
|
+
readonly policies: Policies;
|
|
26
26
|
readonly me: Me;
|
|
27
27
|
readonly operations: Operations;
|
|
28
28
|
readonly organizations: Organizations;
|