@pax2pay/model-banking 0.1.613 → 0.1.614
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/Amount.ts +0 -6
- package/Card/Changeable.ts +0 -13
- package/Card/Creatable.ts +0 -28
- package/Card/Expiry.ts +0 -14
- package/Card/Operation/Authorization.ts +1 -13
- package/Card/Operation/Card.ts +0 -14
- package/Card/Operation/index.ts +0 -5
- package/Card/Preset.ts +0 -5
- package/Card/Restriction/Merchant.ts +0 -2
- package/Card/Restriction/index.ts +0 -8
- package/Card/Restriction/merchants/Merchant.ts +2 -2
- package/Card/Scheme.ts +0 -5
- package/Card/index.ts +0 -37
- package/Client/Transactions/index.ts +0 -21
- package/Rail/index.ts +0 -2
- package/Realm.ts +0 -5
- package/Rule/Base.ts +0 -26
- package/Rule/Other.ts +0 -6
- package/Rule/type.ts +0 -5
- package/dist/cjs/Amount.d.ts +0 -2
- package/dist/cjs/Amount.js +0 -3
- package/dist/cjs/Amount.js.map +1 -1
- package/dist/cjs/Card/Changeable.d.ts +0 -2
- package/dist/cjs/Card/Changeable.js +0 -13
- package/dist/cjs/Card/Changeable.js.map +1 -1
- package/dist/cjs/Card/Creatable.d.ts +0 -2
- package/dist/cjs/Card/Creatable.js +0 -28
- package/dist/cjs/Card/Creatable.js.map +1 -1
- package/dist/cjs/Card/Expiry.d.ts +0 -2
- package/dist/cjs/Card/Expiry.js +0 -11
- package/dist/cjs/Card/Expiry.js.map +1 -1
- package/dist/cjs/Card/Operation/Authorization.d.ts +0 -2
- package/dist/cjs/Card/Operation/Authorization.js +0 -12
- package/dist/cjs/Card/Operation/Authorization.js.map +1 -1
- package/dist/cjs/Card/Operation/Card.d.ts +0 -2
- package/dist/cjs/Card/Operation/Card.js +0 -14
- package/dist/cjs/Card/Operation/Card.js.map +1 -1
- package/dist/cjs/Card/Operation/index.d.ts +0 -2
- package/dist/cjs/Card/Operation/index.js +0 -5
- package/dist/cjs/Card/Operation/index.js.map +1 -1
- package/dist/cjs/Card/Preset.d.ts +0 -2
- package/dist/cjs/Card/Preset.js +0 -5
- package/dist/cjs/Card/Preset.js.map +1 -1
- package/dist/cjs/Card/Restriction/Merchant.d.ts +0 -2
- package/dist/cjs/Card/Restriction/Merchant.js +0 -2
- package/dist/cjs/Card/Restriction/Merchant.js.map +1 -1
- package/dist/cjs/Card/Restriction/index.d.ts +0 -2
- package/dist/cjs/Card/Restriction/index.js +0 -8
- package/dist/cjs/Card/Restriction/index.js.map +1 -1
- package/dist/cjs/Card/Restriction/merchants/Merchant.d.ts +1 -2
- package/dist/cjs/Card/Restriction/merchants/Merchant.js +8 -8
- package/dist/cjs/Card/Restriction/merchants/Merchant.js.map +1 -1
- package/dist/cjs/Card/Scheme.d.ts +0 -2
- package/dist/cjs/Card/Scheme.js +0 -5
- package/dist/cjs/Card/Scheme.js.map +1 -1
- package/dist/cjs/Card/index.d.ts +0 -2
- package/dist/cjs/Card/index.js +0 -38
- package/dist/cjs/Card/index.js.map +1 -1
- package/dist/cjs/Client/Transactions/index.d.ts +0 -16
- package/dist/cjs/Client/Transactions/index.js +0 -27
- package/dist/cjs/Client/Transactions/index.js.map +1 -1
- package/dist/cjs/Rail/index.d.ts +0 -2
- package/dist/cjs/Rail/index.js +0 -2
- package/dist/cjs/Rail/index.js.map +1 -1
- package/dist/cjs/Realm.d.ts +0 -2
- package/dist/cjs/Realm.js +0 -5
- package/dist/cjs/Realm.js.map +1 -1
- package/dist/cjs/Rule/Base.d.ts +0 -4
- package/dist/cjs/Rule/Base.js +0 -26
- package/dist/cjs/Rule/Base.js.map +1 -1
- package/dist/cjs/Rule/Other.d.ts +0 -3
- package/dist/cjs/Rule/Other.js +0 -6
- package/dist/cjs/Rule/Other.js.map +1 -1
- package/dist/cjs/Rule/type.js.map +1 -1
- package/dist/mjs/Amount.d.ts +0 -2
- package/dist/mjs/Amount.js +0 -3
- package/dist/mjs/Amount.js.map +1 -1
- package/dist/mjs/Card/Changeable.d.ts +0 -2
- package/dist/mjs/Card/Changeable.js +0 -13
- package/dist/mjs/Card/Changeable.js.map +1 -1
- package/dist/mjs/Card/Creatable.d.ts +0 -2
- package/dist/mjs/Card/Creatable.js +0 -28
- package/dist/mjs/Card/Creatable.js.map +1 -1
- package/dist/mjs/Card/Expiry.d.ts +0 -2
- package/dist/mjs/Card/Expiry.js +0 -11
- package/dist/mjs/Card/Expiry.js.map +1 -1
- package/dist/mjs/Card/Operation/Authorization.d.ts +0 -2
- package/dist/mjs/Card/Operation/Authorization.js +0 -12
- package/dist/mjs/Card/Operation/Authorization.js.map +1 -1
- package/dist/mjs/Card/Operation/Card.d.ts +0 -2
- package/dist/mjs/Card/Operation/Card.js +0 -14
- package/dist/mjs/Card/Operation/Card.js.map +1 -1
- package/dist/mjs/Card/Operation/index.d.ts +0 -2
- package/dist/mjs/Card/Operation/index.js +0 -5
- package/dist/mjs/Card/Operation/index.js.map +1 -1
- package/dist/mjs/Card/Preset.d.ts +0 -2
- package/dist/mjs/Card/Preset.js +0 -5
- package/dist/mjs/Card/Preset.js.map +1 -1
- package/dist/mjs/Card/Restriction/Merchant.d.ts +0 -2
- package/dist/mjs/Card/Restriction/Merchant.js +0 -2
- package/dist/mjs/Card/Restriction/Merchant.js.map +1 -1
- package/dist/mjs/Card/Restriction/index.d.ts +0 -2
- package/dist/mjs/Card/Restriction/index.js +0 -8
- package/dist/mjs/Card/Restriction/index.js.map +1 -1
- package/dist/mjs/Card/Restriction/merchants/Merchant.d.ts +1 -2
- package/dist/mjs/Card/Restriction/merchants/Merchant.js +2 -2
- package/dist/mjs/Card/Restriction/merchants/Merchant.js.map +1 -1
- package/dist/mjs/Card/Scheme.d.ts +0 -2
- package/dist/mjs/Card/Scheme.js +0 -5
- package/dist/mjs/Card/Scheme.js.map +1 -1
- package/dist/mjs/Card/index.d.ts +0 -2
- package/dist/mjs/Card/index.js +0 -38
- package/dist/mjs/Card/index.js.map +1 -1
- package/dist/mjs/Client/Transactions/index.d.ts +0 -16
- package/dist/mjs/Client/Transactions/index.js +0 -27
- package/dist/mjs/Client/Transactions/index.js.map +1 -1
- package/dist/mjs/Rail/index.d.ts +0 -2
- package/dist/mjs/Rail/index.js +0 -2
- package/dist/mjs/Rail/index.js.map +1 -1
- package/dist/mjs/Realm.d.ts +0 -2
- package/dist/mjs/Realm.js +0 -5
- package/dist/mjs/Realm.js.map +1 -1
- package/dist/mjs/Rule/Base.d.ts +0 -4
- package/dist/mjs/Rule/Base.js +0 -26
- package/dist/mjs/Rule/Base.js.map +1 -1
- package/dist/mjs/Rule/Other.d.ts +0 -3
- package/dist/mjs/Rule/Other.js +0 -6
- package/dist/mjs/Rule/Other.js.map +1 -1
- package/dist/mjs/Rule/type.js.map +1 -1
- package/package.json +1 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expiry.js","sourceRoot":"","sources":["../../../Card/Expiry.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;
|
|
1
|
+
{"version":3,"file":"Expiry.js","sourceRoot":"","sources":["../../../Card/Expiry.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAE3B,MAAM,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAU,CAAA;AAG9F,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAU,CAAA;AAI9D,IAAiB,MAAM,CAetB;AAfD,WAAiB,MAAM;IACT,WAAI,GAAG,WAAI,CAAC,KAAK,CAAS,WAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,WAAI,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;IACvF,SAAgB,UAAU,CAAC,MAAc;QACxC,OAAO,aAAK,CAAC,QAAQ,CAAC,SAAS,CAC9B,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,mBAAmB,CAC/F,CAAA;IACF,CAAC;IAJe,iBAAU,aAIzB,CAAA;IACD,SAAgB,SAAS,CAAC,MAAc;QACvC,MAAM,GAAG,GAAG,aAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAA;QAChC,MAAM,UAAU,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACnC,OAAO,CACN,UAAU,GAAG,aAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC;YACxC,CAAC,UAAU,IAAI,aAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,aAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CACvF,CAAA;IACF,CAAC;IAPe,gBAAS,YAOxB,CAAA;AACF,CAAC,EAfgB,MAAM,sBAAN,MAAM,QAetB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
export interface Authorization {
|
|
4
3
|
type: "authorization";
|
|
5
4
|
id: string;
|
|
@@ -11,5 +10,4 @@ export declare namespace Authorization {
|
|
|
11
10
|
const statuses: readonly ["created", "confirmed", "refunded", "captured", "cancelled"];
|
|
12
11
|
type Status = (typeof statuses)[number];
|
|
13
12
|
const type: import("isly/dist/cjs/object").IslyObject<Authorization, object>;
|
|
14
|
-
const type2: isly2.Object<Authorization>;
|
|
15
13
|
}
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Authorization = void 0;
|
|
4
4
|
const isoly_1 = require("isoly");
|
|
5
|
-
const isoly2_1 = require("isoly2");
|
|
6
5
|
const isly_1 = require("isly");
|
|
7
|
-
const isly2_1 = require("isly2");
|
|
8
6
|
var Authorization;
|
|
9
7
|
(function (Authorization) {
|
|
10
8
|
Authorization.statuses = ["created", "confirmed", "refunded", "captured", "cancelled"];
|
|
@@ -15,15 +13,5 @@ var Authorization;
|
|
|
15
13
|
reason: isly_1.isly.string().optional(),
|
|
16
14
|
created: isly_1.isly.fromIs("isoly.DateTime", isoly_1.isoly.DateTime.is),
|
|
17
15
|
});
|
|
18
|
-
Authorization.type2 = isly2_1.isly.object({
|
|
19
|
-
type: isly2_1.isly.string("value", "authorization").rename("Operation.Type").describe("Type of operation."),
|
|
20
|
-
id: isly2_1.isly.string().rename("Id").describe("The id of the operation."),
|
|
21
|
-
status: isly2_1.isly
|
|
22
|
-
.string("value", ...Authorization.statuses)
|
|
23
|
-
.rename("Status")
|
|
24
|
-
.describe("The updated status of the operation."),
|
|
25
|
-
reason: isly2_1.isly.string().optional().rename("Reason").describe("The reason for the status change."),
|
|
26
|
-
created: isoly2_1.isoly.DateTime.type.describe("The time of the operation."),
|
|
27
|
-
});
|
|
28
16
|
})(Authorization || (exports.Authorization = Authorization = {}));
|
|
29
17
|
//# sourceMappingURL=Authorization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authorization.js","sourceRoot":"","sources":["../../../../Card/Operation/Authorization.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B
|
|
1
|
+
{"version":3,"file":"Authorization.js","sourceRoot":"","sources":["../../../../Card/Operation/Authorization.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAS3B,IAAiB,aAAa,CAU7B;AAVD,WAAiB,aAAa;IAChB,sBAAQ,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,CAAU,CAAA;IAEjF,kBAAI,GAAG,WAAI,CAAC,MAAM,CAAgB;QAC9C,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,eAAe,CAAC;QAClC,EAAE,EAAE,WAAI,CAAC,MAAM,EAAE;QACjB,MAAM,EAAE,WAAI,CAAC,MAAM,CAAC,cAAA,QAAQ,CAAC;QAC7B,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,OAAO,EAAE,WAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,aAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;KACzD,CAAC,CAAA;AACH,CAAC,EAVgB,aAAa,6BAAb,aAAa,QAU7B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Changeable } from "../Changeable";
|
|
4
3
|
export interface Card {
|
|
5
4
|
type: "card";
|
|
@@ -11,5 +10,4 @@ export declare namespace Card {
|
|
|
11
10
|
const statuses: readonly ["created", "changed", "cancelled"];
|
|
12
11
|
type Status = (typeof statuses)[number];
|
|
13
12
|
const type: import("isly/dist/cjs/object").IslyObject<Card, object>;
|
|
14
|
-
const type2: isly2.Object<Card>;
|
|
15
13
|
}
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Card = void 0;
|
|
4
4
|
const isoly_1 = require("isoly");
|
|
5
|
-
const isoly2_1 = require("isoly2");
|
|
6
5
|
const isly_1 = require("isly");
|
|
7
|
-
const isly2_1 = require("isly2");
|
|
8
6
|
const Changeable_1 = require("../Changeable");
|
|
9
7
|
var Card;
|
|
10
8
|
(function (Card) {
|
|
@@ -15,17 +13,5 @@ var Card;
|
|
|
15
13
|
from: Changeable_1.Changeable.type.optional(),
|
|
16
14
|
created: isly_1.isly.fromIs("isoly.DateTime", isoly_1.isoly.DateTime.is),
|
|
17
15
|
});
|
|
18
|
-
Card.type2 = isly2_1.isly
|
|
19
|
-
.object({
|
|
20
|
-
type: isly2_1.isly.string("value", "card").rename("Type").describe("Type of operation."),
|
|
21
|
-
status: isly2_1.isly
|
|
22
|
-
.string("value", ...Card.statuses)
|
|
23
|
-
.rename("Status")
|
|
24
|
-
.describe("The updated status of the card."),
|
|
25
|
-
from: Changeable_1.Changeable.type2.optional(),
|
|
26
|
-
created: isoly2_1.isoly.DateTime.type.rename("Created").describe("The time of the operation."),
|
|
27
|
-
})
|
|
28
|
-
.describe("A card operation.")
|
|
29
|
-
.rename("Operation.Card");
|
|
30
16
|
})(Card || (exports.Card = Card = {}));
|
|
31
17
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../Card/Operation/Card.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../Card/Operation/Card.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAC3B,8CAA0C;AAS1C,IAAiB,IAAI,CASpB;AATD,WAAiB,IAAI;IACP,aAAQ,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,CAAU,CAAA;IAEvD,SAAI,GAAG,WAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QACzB,MAAM,EAAE,WAAI,CAAC,MAAM,CAAC,KAAA,QAAQ,CAAC;QAC7B,IAAI,EAAE,uBAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QAChC,OAAO,EAAE,WAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,aAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;KACzD,CAAC,CAAA;AACH,CAAC,EATgB,IAAI,oBAAJ,IAAI,QASpB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Authorization } from "../../Authorization";
|
|
4
3
|
import { Entry } from "../../Settlement/Entry";
|
|
5
4
|
import { Authorization as OperationAuthorization } from "./Authorization";
|
|
@@ -9,5 +8,4 @@ export declare namespace Operation {
|
|
|
9
8
|
function fromAuthorization(authorization: Authorization, status: OperationAuthorization.Status): Operation;
|
|
10
9
|
function fromEntry(entry: Entry): Operation | undefined;
|
|
11
10
|
const type: isly.Type<Card | OperationAuthorization>;
|
|
12
|
-
const type2: isly2.Union<Operation>;
|
|
13
11
|
}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Operation = void 0;
|
|
4
4
|
const isoly_1 = require("isoly");
|
|
5
5
|
const isly_1 = require("isly");
|
|
6
|
-
const isly2_1 = require("isly2");
|
|
7
6
|
const Authorization_1 = require("./Authorization");
|
|
8
7
|
const Card_1 = require("./Card");
|
|
9
8
|
var Operation;
|
|
@@ -29,9 +28,5 @@ var Operation;
|
|
|
29
28
|
}
|
|
30
29
|
Operation.fromEntry = fromEntry;
|
|
31
30
|
Operation.type = isly_1.isly.union(Card_1.Card.type, Authorization_1.Authorization.type);
|
|
32
|
-
Operation.type2 = isly2_1.isly
|
|
33
|
-
.union(Card_1.Card.type2, Authorization_1.Authorization.type2)
|
|
34
|
-
.rename("Operation")
|
|
35
|
-
.describe("An operation performed on a card.");
|
|
36
31
|
})(Operation || (exports.Operation = Operation = {}));
|
|
37
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Card/Operation/index.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Card/Operation/index.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAG3B,mDAAyE;AACzE,iCAA6B;AAI7B,IAAiB,SAAS,CAoBzB;AApBD,WAAiB,SAAS;IACzB,SAAgB,iBAAiB,CAAC,aAA4B,EAAE,MAAqC;QACpG,OAAO;YACN,IAAI,EAAE,eAAe;YACrB,EAAE,EAAE,aAAa,EAAE,EAAE,IAAI,aAAa,CAAC,WAAW,EAAE,EAAE,IAAI,SAAS;YACnE,MAAM;YACN,OAAO,EAAE,aAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;SAC7B,CAAA;IACF,CAAC;IAPe,2BAAiB,oBAOhC,CAAA;IACD,SAAgB,SAAS,CAAC,KAAY;QACrC,OAAO,KAAK,CAAC,MAAM,IAAI,QAAQ;YAC9B,CAAC,CAAC,SAAS;YACX,CAAC,CAAC;gBACA,IAAI,EAAE,eAAe;gBACrB,EAAE,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE;gBACxB,MAAM,EAAE,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU;gBACzD,OAAO,EAAE,aAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;aAC7B,CAAA;IACJ,CAAC;IATe,mBAAS,YASxB,CAAA;IACY,cAAI,GAAG,WAAI,CAAC,KAAK,CAAC,WAAI,CAAC,IAAI,EAAE,6BAAsB,CAAC,IAAI,CAAC,CAAA;AACvE,CAAC,EApBgB,SAAS,yBAAT,SAAS,QAoBzB"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Realm } from "../Realm";
|
|
4
3
|
import { Stack } from "./Stack";
|
|
5
4
|
export type Preset = (typeof Preset.names)[number];
|
|
6
5
|
export declare namespace Preset {
|
|
7
6
|
const names: readonly ["p2p-diners-175", "p2p-diners-200", "p2p-mc-200", "p2p-visa-bid-115", "p2p-visa-bp-140", "p2p-visa-cdd-185", "p2p-visa-idx-140", "p2p-visa-idx-160", "p2p-visa-idx-200", "test-pg-150", "test-pg-200", "test-ta-mc-200", "test-ta-pg-200", "test-ta-pg-bc-200", "test-diners-175"];
|
|
8
7
|
const type: isly.Type<"p2p-diners-175" | "p2p-diners-200" | "p2p-mc-200" | "p2p-visa-bid-115" | "p2p-visa-bp-140" | "p2p-visa-cdd-185" | "p2p-visa-idx-140" | "p2p-visa-idx-160" | "p2p-visa-idx-200" | "test-pg-150" | "test-pg-200" | "test-ta-mc-200" | "test-ta-pg-200" | "test-ta-pg-bc-200" | "test-diners-175">;
|
|
9
|
-
const type2: isly2.String<"p2p-diners-175" | "p2p-diners-200" | "p2p-mc-200" | "p2p-visa-bid-115" | "p2p-visa-bp-140" | "p2p-visa-cdd-185" | "p2p-visa-idx-140" | "p2p-visa-idx-160" | "p2p-visa-idx-200" | "test-pg-150" | "test-pg-200" | "test-ta-mc-200" | "test-ta-pg-200" | "test-ta-pg-bc-200" | "test-diners-175">;
|
|
10
8
|
const forRealm: Record<Realm, Preset[]>;
|
|
11
9
|
const presets: Record<Preset, Stack>;
|
|
12
10
|
}
|
package/dist/cjs/Card/Preset.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Preset = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
-
const isly2_1 = require("isly2");
|
|
6
5
|
var Preset;
|
|
7
6
|
(function (Preset) {
|
|
8
7
|
Preset.names = [
|
|
@@ -23,10 +22,6 @@ var Preset;
|
|
|
23
22
|
"test-diners-175",
|
|
24
23
|
];
|
|
25
24
|
Preset.type = isly_1.isly.string(Preset.names);
|
|
26
|
-
Preset.type2 = isly2_1.isly
|
|
27
|
-
.string("value", ...Preset.names)
|
|
28
|
-
.rename("Preset")
|
|
29
|
-
.describe("Card configuration (iin/scheme/interchange).");
|
|
30
25
|
Preset.forRealm = {
|
|
31
26
|
test: ["test-pg-150", "test-pg-200", "test-ta-mc-200", "test-ta-pg-200", "test-ta-pg-bc-200", "test-diners-175"],
|
|
32
27
|
uk: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;
|
|
1
|
+
{"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAO3B,IAAiB,MAAM,CAmDtB;AAnDD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,gBAAgB;QAChB,gBAAgB;QAChB,YAAY;QACZ,kBAAkB;QAClB,iBAAiB;QACjB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,aAAa;QACb,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,mBAAmB;QACnB,iBAAiB;KACR,CAAA;IACG,WAAI,GAAG,WAAI,CAAC,MAAM,CAAS,OAAA,KAAK,CAAC,CAAA;IACjC,eAAQ,GAA4B;QAChD,IAAI,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,iBAAiB,CAAC;QAChH,EAAE,EAAE;YACH,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,kBAAkB;YAClB,iBAAiB;YACjB,kBAAkB;YAClB,kBAAkB;YAClB,kBAAkB;YAClB,kBAAkB;SAClB;QACD,GAAG,EAAE,EAAE;KACP,CAAA;IACY,cAAO,GAA0B;QAC7C,gBAAgB,EAAE,eAAe;QACjC,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE,mBAAmB;QACjC,kBAAkB,EAAE,qBAAqB;QACzC,iBAAiB,EAAE,qBAAqB;QACxC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,aAAa,EAAE,cAAc;QAC7B,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;QACpC,mBAAmB,EAAE,kBAAkB;QACvC,iBAAiB,EAAE,oBAAoB;KACvC,CAAA;AACF,CAAC,EAnDgB,MAAM,sBAAN,MAAM,QAmDtB"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Rail } from "../../Rail";
|
|
4
3
|
export type Merchant = (typeof Merchant.values)[number];
|
|
5
4
|
export declare namespace Merchant {
|
|
6
5
|
const values: ("ryanair" | "easyjet" | "wizzair" | "aer lingus" | "air malta" | "vueling" | "jet2" | "eurowings" | "turkish air" | "tap" | "pegasus" | "royal air maroc" | "qatar air" | "blue island" | "klm" | "iberia" | "emirates" | "aegean airlines" | "tui" | "united airlines" | "cathay pacific airlines" | "air serbia" | "copa air" | "bamboo airways" | "latam airlines" | "flydubai" | "condor" | "transavia" | "austrian air" | "alitalia" | "apg airlines" | "iceland air" | "flyone" | "avianca" | "brussels airlines" | "saudia" | "aeromexico" | "gulf air" | "ethiopian airlines" | "egypt air" | "albawings" | "iberojet" | "norwegian air" | "vistara" | "air greenland" | "sky express" | "air canada" | "philippine airlines" | "south african airlink" | "air benelux" | "tunisair" | "lufthansa" | "corendon airlines" | "uganda airlines" | "freebird airlines" | "kenya airway" | "kuwait air" | "british airways" | "czech airlines" | "lot polish airlines" | "volotea" | "flybe" | "bulgaria air" | "sas" | "qantas" | "air india" | "air europa" | "royal jordanian" | "virgin atlantic" | "flexflight" | "rwandair" | "hahn air" | "american air" | "pakistan international airlines" | "singapore airlines" | "delta air lines" | "croatia airlines" | "air asia" | "hawaiian airlines" | "oman air" | "etihad air" | "middle east airlines" | "logan air" | "aurigny" | "eastern airways" | "sun express" | "spirit air" | "air france" | "malaysia airlines" | "finnair" | "swiss air" | "air china" | "ana air" | "ae bsp" | "thai airways" | "jet blue" | "westjet" | "aerolineas" | "air seoul" | "azerbaijan airlines" | "air dolomiti" | "bangkok airways" | "china airlines" | "china eastern airlines" | "eva air" | "jetstar airways" | "km malta airlines" | "ita airways" | "china southern airlines" | "world2fly" | "sata denmark" | "air baltic" | "ajet" | "flynorse" | "hainan air" | "sichuan airlines" | "korean air" | "gol airlines" | "azul brazilian airlines" | "flysafair" | "air mauritius" | "alaska airlines" | "allegiant air" | "plus ultra líneas aéreas" | "boliviana de aviacion" | "caribbean airlines" | "vietnam air" | "parkwing" | "albergo - food and drinks" | "amtrak" | "italo treno" | "ilsa web" | "rail ninja" | "irish rail" | "österreichische bundesbahnen" | "rail europe" | "via rail canada" | "direct ferries" | "booking.com" | "expedia group" | "google ads" | "facebook ads" | "milan airport shop" | "blacklane" | "visit britain gov" | "best western" | "una hotels" | "unaway hotels" | "albergo - lodging" | "leonardo hotels" | "hotel mercure" | "nh hotels & resorts" | "novotel hotels" | "ac hotels" | "marriott hotels" | "sheraton hotels and resorts" | "ih hotels" | "ibis hotels" | "hyatt hotels & resorts" | "hilton hotels & resorts" | "holiday inn" | "four seasons" | "doubletree by hilton" | "crowne plaza hotels" | "wmm hotel betriebs gmbh" | "the niu hotels" | "radisson hotels" | "achat hotels" | "arcotel hotels" | "gruppo una hotels and resorts" | "b&b hotels" | "dormero hotels" | "dorint hotels" | "schani hotels" | "innside" | "intercityhotel" | "lindner hotels & resorts" | "limehome" | "moxy hotels" | "roompay" | "rioca hotels" | "adagio" | "barcelo hotel group" | "campanile hotels" | "clayton hotels" | "palace catania" | "milano verticle" | "courtyard by marriott" | "splitmyfare")[];
|
|
7
6
|
const type: isly.Type<"ryanair" | "easyjet" | "wizzair" | "aer lingus" | "air malta" | "vueling" | "jet2" | "eurowings" | "turkish air" | "tap" | "pegasus" | "royal air maroc" | "qatar air" | "blue island" | "klm" | "iberia" | "emirates" | "aegean airlines" | "tui" | "united airlines" | "cathay pacific airlines" | "air serbia" | "copa air" | "bamboo airways" | "latam airlines" | "flydubai" | "condor" | "transavia" | "austrian air" | "alitalia" | "apg airlines" | "iceland air" | "flyone" | "avianca" | "brussels airlines" | "saudia" | "aeromexico" | "gulf air" | "ethiopian airlines" | "egypt air" | "albawings" | "iberojet" | "norwegian air" | "vistara" | "air greenland" | "sky express" | "air canada" | "philippine airlines" | "south african airlink" | "air benelux" | "tunisair" | "lufthansa" | "corendon airlines" | "uganda airlines" | "freebird airlines" | "kenya airway" | "kuwait air" | "british airways" | "czech airlines" | "lot polish airlines" | "volotea" | "flybe" | "bulgaria air" | "sas" | "qantas" | "air india" | "air europa" | "royal jordanian" | "virgin atlantic" | "flexflight" | "rwandair" | "hahn air" | "american air" | "pakistan international airlines" | "singapore airlines" | "delta air lines" | "croatia airlines" | "air asia" | "hawaiian airlines" | "oman air" | "etihad air" | "middle east airlines" | "logan air" | "aurigny" | "eastern airways" | "sun express" | "spirit air" | "air france" | "malaysia airlines" | "finnair" | "swiss air" | "air china" | "ana air" | "ae bsp" | "thai airways" | "jet blue" | "westjet" | "aerolineas" | "air seoul" | "azerbaijan airlines" | "air dolomiti" | "bangkok airways" | "china airlines" | "china eastern airlines" | "eva air" | "jetstar airways" | "km malta airlines" | "ita airways" | "china southern airlines" | "world2fly" | "sata denmark" | "air baltic" | "ajet" | "flynorse" | "hainan air" | "sichuan airlines" | "korean air" | "gol airlines" | "azul brazilian airlines" | "flysafair" | "air mauritius" | "alaska airlines" | "allegiant air" | "plus ultra líneas aéreas" | "boliviana de aviacion" | "caribbean airlines" | "vietnam air" | "parkwing" | "albergo - food and drinks" | "amtrak" | "italo treno" | "ilsa web" | "rail ninja" | "irish rail" | "österreichische bundesbahnen" | "rail europe" | "via rail canada" | "direct ferries" | "booking.com" | "expedia group" | "google ads" | "facebook ads" | "milan airport shop" | "blacklane" | "visit britain gov" | "best western" | "una hotels" | "unaway hotels" | "albergo - lodging" | "leonardo hotels" | "hotel mercure" | "nh hotels & resorts" | "novotel hotels" | "ac hotels" | "marriott hotels" | "sheraton hotels and resorts" | "ih hotels" | "ibis hotels" | "hyatt hotels & resorts" | "hilton hotels & resorts" | "holiday inn" | "four seasons" | "doubletree by hilton" | "crowne plaza hotels" | "wmm hotel betriebs gmbh" | "the niu hotels" | "radisson hotels" | "achat hotels" | "arcotel hotels" | "gruppo una hotels and resorts" | "b&b hotels" | "dormero hotels" | "dorint hotels" | "schani hotels" | "innside" | "intercityhotel" | "lindner hotels & resorts" | "limehome" | "moxy hotels" | "roompay" | "rioca hotels" | "adagio" | "barcelo hotel group" | "campanile hotels" | "clayton hotels" | "palace catania" | "milano verticle" | "courtyard by marriott" | "splitmyfare">;
|
|
8
|
-
const type2: isly2.String<"ryanair" | "easyjet" | "wizzair" | "aer lingus" | "air malta" | "vueling" | "jet2" | "eurowings" | "turkish air" | "tap" | "pegasus" | "royal air maroc" | "qatar air" | "blue island" | "klm" | "iberia" | "emirates" | "aegean airlines" | "tui" | "united airlines" | "cathay pacific airlines" | "air serbia" | "copa air" | "bamboo airways" | "latam airlines" | "flydubai" | "condor" | "transavia" | "austrian air" | "alitalia" | "apg airlines" | "iceland air" | "flyone" | "avianca" | "brussels airlines" | "saudia" | "aeromexico" | "gulf air" | "ethiopian airlines" | "egypt air" | "albawings" | "iberojet" | "norwegian air" | "vistara" | "air greenland" | "sky express" | "air canada" | "philippine airlines" | "south african airlink" | "air benelux" | "tunisair" | "lufthansa" | "corendon airlines" | "uganda airlines" | "freebird airlines" | "kenya airway" | "kuwait air" | "british airways" | "czech airlines" | "lot polish airlines" | "volotea" | "flybe" | "bulgaria air" | "sas" | "qantas" | "air india" | "air europa" | "royal jordanian" | "virgin atlantic" | "flexflight" | "rwandair" | "hahn air" | "american air" | "pakistan international airlines" | "singapore airlines" | "delta air lines" | "croatia airlines" | "air asia" | "hawaiian airlines" | "oman air" | "etihad air" | "middle east airlines" | "logan air" | "aurigny" | "eastern airways" | "sun express" | "spirit air" | "air france" | "malaysia airlines" | "finnair" | "swiss air" | "air china" | "ana air" | "ae bsp" | "thai airways" | "jet blue" | "westjet" | "aerolineas" | "air seoul" | "azerbaijan airlines" | "air dolomiti" | "bangkok airways" | "china airlines" | "china eastern airlines" | "eva air" | "jetstar airways" | "km malta airlines" | "ita airways" | "china southern airlines" | "world2fly" | "sata denmark" | "air baltic" | "ajet" | "flynorse" | "hainan air" | "sichuan airlines" | "korean air" | "gol airlines" | "azul brazilian airlines" | "flysafair" | "air mauritius" | "alaska airlines" | "allegiant air" | "plus ultra líneas aéreas" | "boliviana de aviacion" | "caribbean airlines" | "vietnam air" | "parkwing" | "albergo - food and drinks" | "amtrak" | "italo treno" | "ilsa web" | "rail ninja" | "irish rail" | "österreichische bundesbahnen" | "rail europe" | "via rail canada" | "direct ferries" | "booking.com" | "expedia group" | "google ads" | "facebook ads" | "milan airport shop" | "blacklane" | "visit britain gov" | "best western" | "una hotels" | "unaway hotels" | "albergo - lodging" | "leonardo hotels" | "hotel mercure" | "nh hotels & resorts" | "novotel hotels" | "ac hotels" | "marriott hotels" | "sheraton hotels and resorts" | "ih hotels" | "ibis hotels" | "hyatt hotels & resorts" | "hilton hotels & resorts" | "holiday inn" | "four seasons" | "doubletree by hilton" | "crowne plaza hotels" | "wmm hotel betriebs gmbh" | "the niu hotels" | "radisson hotels" | "achat hotels" | "arcotel hotels" | "gruppo una hotels and resorts" | "b&b hotels" | "dormero hotels" | "dorint hotels" | "schani hotels" | "innside" | "intercityhotel" | "lindner hotels & resorts" | "limehome" | "moxy hotels" | "roompay" | "rioca hotels" | "adagio" | "barcelo hotel group" | "campanile hotels" | "clayton hotels" | "palace catania" | "milano verticle" | "courtyard by marriott" | "splitmyfare">;
|
|
9
7
|
function check(merchant: Merchant, counterpart: Rail.Address.Card.Counterpart): boolean;
|
|
10
8
|
function resolve(counterpart: Rail.Address.Card.Counterpart): Merchant | undefined;
|
|
11
9
|
}
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Merchant = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
-
const isly2_1 = require("isly2");
|
|
6
5
|
const typedly_1 = require("typedly");
|
|
7
6
|
const merchants_1 = require("./merchants");
|
|
8
7
|
var Merchant;
|
|
9
8
|
(function (Merchant) {
|
|
10
9
|
Merchant.values = typedly_1.typedly.Object.keys(merchants_1.merchants);
|
|
11
10
|
Merchant.type = isly_1.isly.string(Merchant.values);
|
|
12
|
-
Merchant.type2 = isly2_1.isly.string("value", ...Merchant.values);
|
|
13
11
|
function check(merchant, counterpart) {
|
|
14
12
|
const attribute = merchants_1.merchants[merchant];
|
|
15
13
|
let result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Merchant.js","sourceRoot":"","sources":["../../../../Card/Restriction/Merchant.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"Merchant.js","sourceRoot":"","sources":["../../../../Card/Restriction/Merchant.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,qCAAiC;AAEjC,2CAAuC;AAIvC,IAAiB,QAAQ,CA+BxB;AA/BD,WAAiB,QAAQ;IACX,eAAM,GAAG,iBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAS,CAAC,CAAA;IACvC,aAAI,GAAG,WAAI,CAAC,MAAM,CAAW,SAAA,MAAM,CAAC,CAAA;IACjD,SAAgB,KAAK,CAAC,QAAkB,EAAE,WAA0C;QACnF,MAAM,SAAS,GAAc,qBAAS,CAAC,QAAQ,CAAC,CAAA;QAChD,IAAI,MAAe,CAAA;QACnB,IAAI,SAAS,EAAE,cAAc,IAAI,WAAW,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;YAChE,MAAM,GAAG,IAAI,CAAA;QACd,CAAC;aAAM,IAAI,SAAS,CAAC,QAAQ,IAAI,SA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merchant as RestrictionsMerchant } from "./Merchant";
|
|
4
3
|
export interface Restriction {
|
|
@@ -7,6 +6,5 @@ export interface Restriction {
|
|
|
7
6
|
export declare namespace Restriction {
|
|
8
7
|
export import Merchant = RestrictionsMerchant;
|
|
9
8
|
const type: import("isly/dist/cjs/object").IslyObject<Restriction, object>;
|
|
10
|
-
const type2: isly2.Object<Restriction>;
|
|
11
9
|
function check(restrictions: Restriction, transaction: Transaction.Creatable.CardTransaction | Transaction.PreTransaction.Authorization): boolean;
|
|
12
10
|
}
|
|
@@ -2,19 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Restriction = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
-
const isly2_1 = require("isly2");
|
|
6
5
|
const Merchant_1 = require("./Merchant");
|
|
7
6
|
var Restriction;
|
|
8
7
|
(function (Restriction) {
|
|
9
8
|
Restriction.Merchant = Merchant_1.Merchant;
|
|
10
9
|
Restriction.type = isly_1.isly.object({ merchants: Restriction.Merchant.type.array().optional() });
|
|
11
|
-
Restriction.type2 = isly2_1.isly.object({
|
|
12
|
-
merchants: Restriction.Merchant.type2
|
|
13
|
-
.array()
|
|
14
|
-
.optional()
|
|
15
|
-
.rename("Merchants")
|
|
16
|
-
.describe("List of merchants that the card can be used with."),
|
|
17
|
-
});
|
|
18
10
|
function check(restrictions, transaction) {
|
|
19
11
|
let result = true;
|
|
20
12
|
if (restrictions.merchants?.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Card/Restriction/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Card/Restriction/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAE3B,yCAA6D;AAK7D,IAAiB,WAAW,CAa3B;AAbD,WAAiB,WAAW;IACb,oBAAQ,GAAG,mBAAoB,CAAA;IAChC,gBAAI,GAAG,WAAI,CAAC,MAAM,CAAc,EAAE,SAAS,EAAE,YAAA,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;IAC7F,SAAgB,KAAK,CACpB,YAAyB,EACzB,WAA6F;QAE7F,IAAI,MAAM,GAAY,IAAI,CAAA;QAC1B,IAAI,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;YACpC,MAAM,GAAG,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,YAAA,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC,CAAA;QACpG,CAAC;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IATe,iBAAK,QASpB,CAAA;AACF,CAAC,EAbgB,WAAW,2BAAX,WAAW,QAa3B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { isly } from "isly2";
|
|
2
1
|
export interface Merchant {
|
|
3
2
|
name: string;
|
|
4
3
|
unambiguousMcc?: string;
|
|
@@ -7,6 +6,6 @@ export interface Merchant {
|
|
|
7
6
|
contains?: Readonly<string[]>;
|
|
8
7
|
}
|
|
9
8
|
export declare namespace Merchant {
|
|
10
|
-
const type: isly.
|
|
9
|
+
const type: import("isly/dist/cjs/object").IslyObject<Merchant, object>;
|
|
11
10
|
function parse(value: Record<string, any>): Merchant | undefined;
|
|
12
11
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Merchant = void 0;
|
|
4
|
-
const
|
|
4
|
+
const isly_1 = require("isly");
|
|
5
5
|
var Merchant;
|
|
6
6
|
(function (Merchant) {
|
|
7
|
-
Merchant.type =
|
|
8
|
-
name:
|
|
9
|
-
unambiguousMcc:
|
|
10
|
-
mccs:
|
|
11
|
-
startsWith:
|
|
12
|
-
contains:
|
|
7
|
+
Merchant.type = isly_1.isly.object({
|
|
8
|
+
name: isly_1.isly.string(),
|
|
9
|
+
unambiguousMcc: isly_1.isly.string().optional(),
|
|
10
|
+
mccs: isly_1.isly.string().array().optional(),
|
|
11
|
+
startsWith: isly_1.isly.string().array().optional(),
|
|
12
|
+
contains: isly_1.isly.string().array().optional(),
|
|
13
13
|
});
|
|
14
14
|
function parse(value) {
|
|
15
15
|
const result = {
|
|
@@ -19,7 +19,7 @@ var Merchant;
|
|
|
19
19
|
startsWith: value.startsWith && (Array.isArray(value.startsWith) ? value.startsWith : [value.startsWith]),
|
|
20
20
|
contains: value.contains && (Array.isArray(value.contains) ? value.contains : [value.contains]),
|
|
21
21
|
};
|
|
22
|
-
return Merchant.type.
|
|
22
|
+
return Merchant.type.get(result);
|
|
23
23
|
}
|
|
24
24
|
Merchant.parse = parse;
|
|
25
25
|
})(Merchant || (exports.Merchant = Merchant = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Merchant.js","sourceRoot":"","sources":["../../../../../Card/Restriction/merchants/Merchant.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"Merchant.js","sourceRoot":"","sources":["../../../../../Card/Restriction/merchants/Merchant.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAS3B,IAAiB,QAAQ,CAkBxB;AAlBD,WAAiB,QAAQ;IACX,aAAI,GAAG,WAAI,CAAC,MAAM,CAAW;QACzC,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;QACnB,cAAc,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACxC,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACtC,UAAU,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAC5C,QAAQ,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KAC1C,CAAC,CAAA;IACF,SAAgB,KAAK,CAAC,KAA0B;QAC/C,MAAM,MAAM,GAAG;YACd,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE;YAC/B,cAAc,EAAE,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,cAAc,CAAC,QAAQ,EAAE;YACvE,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7G,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACzG,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;SAC/F,CAAA;QACD,OAAO,SAAA,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB,CAAC;IATe,cAAK,QASpB,CAAA;AACF,CAAC,EAlBgB,QAAQ,wBAAR,QAAQ,QAkBxB"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
export type Scheme = (typeof Scheme.schemes)[number];
|
|
4
3
|
export declare namespace Scheme {
|
|
5
4
|
const schemes: readonly ["mastercard", "diners", "visa"];
|
|
6
5
|
const type: isly.Type<"mastercard" | "diners" | "visa">;
|
|
7
|
-
const type2: isly2.String<"mastercard" | "diners" | "visa">;
|
|
8
6
|
}
|
package/dist/cjs/Card/Scheme.js
CHANGED
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Scheme = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
-
const isly2_1 = require("isly2");
|
|
6
5
|
var Scheme;
|
|
7
6
|
(function (Scheme) {
|
|
8
7
|
Scheme.schemes = ["mastercard", "diners", "visa"];
|
|
9
8
|
Scheme.type = isly_1.isly.string(Scheme.schemes);
|
|
10
|
-
Scheme.type2 = isly2_1.isly
|
|
11
|
-
.string("value", ...Scheme.schemes)
|
|
12
|
-
.rename("Scheme")
|
|
13
|
-
.describe("Card scheme.");
|
|
14
9
|
})(Scheme || (exports.Scheme = Scheme = {}));
|
|
15
10
|
//# sourceMappingURL=Scheme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scheme.js","sourceRoot":"","sources":["../../../Card/Scheme.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;
|
|
1
|
+
{"version":3,"file":"Scheme.js","sourceRoot":"","sources":["../../../Card/Scheme.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAG3B,IAAiB,MAAM,CAGtB;AAHD,WAAiB,MAAM;IACT,cAAO,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAA;IACnD,WAAI,GAAG,WAAI,CAAC,MAAM,CAAS,OAAA,OAAO,CAAC,CAAA;AACjD,CAAC,EAHgB,MAAM,sBAAN,MAAM,QAGtB"}
|
package/dist/cjs/Card/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Amount } from "../Amount";
|
|
4
3
|
import { Realm } from "../Realm";
|
|
5
4
|
import type { Rule } from "../Rule";
|
|
@@ -50,6 +49,5 @@ export declare namespace Card {
|
|
|
50
49
|
export import Stack = CardStack;
|
|
51
50
|
export import Restriction = CardRestriction;
|
|
52
51
|
const type: import("isly/dist/cjs/object").IslyObject<Card, object>;
|
|
53
|
-
const type2: isly2.Object<Card>;
|
|
54
52
|
function toCsv(cards: Card[]): string;
|
|
55
53
|
}
|
package/dist/cjs/Card/index.js
CHANGED
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Card = void 0;
|
|
4
4
|
const isoly_1 = require("isoly");
|
|
5
5
|
const isly_1 = require("isly");
|
|
6
|
-
const isly2_1 = require("isly2");
|
|
7
|
-
const Amount_1 = require("../Amount");
|
|
8
6
|
const Realm_1 = require("../Realm");
|
|
9
7
|
const Report_1 = require("../Report");
|
|
10
8
|
const type_1 = require("../Rule/type");
|
|
@@ -53,42 +51,6 @@ var Card;
|
|
|
53
51
|
meta: isly_1.isly.fromIs("Card.Meta", Meta_1.Meta.is).optional(),
|
|
54
52
|
restricted: isly_1.isly.object({ to: Restriction_1.Restriction.type.optional() }).optional(),
|
|
55
53
|
});
|
|
56
|
-
Card.type2 = isly2_1.isly
|
|
57
|
-
.object({
|
|
58
|
-
id: isly2_1.isly.string().rename("Id").describe("Unique 16 character base 64 identifier."),
|
|
59
|
-
number: isly2_1.isly.string().optional().rename("Number").describe("Api users identifier."),
|
|
60
|
-
created: isly2_1.isly.string().rename("Created").describe("Date and time of creation."),
|
|
61
|
-
organization: isly2_1.isly.string().rename("Organization").describe("Organization code."),
|
|
62
|
-
realm: Realm_1.Realm.type2,
|
|
63
|
-
account: isly2_1.isly.string().rename("Account").describe("Account identifier."),
|
|
64
|
-
preset: Preset_1.Preset.type2,
|
|
65
|
-
scheme: Scheme_1.Scheme.type2,
|
|
66
|
-
reference: isly2_1.isly.string().rename("Reference").describe("Reference to external system."),
|
|
67
|
-
details: isly2_1.isly.object({
|
|
68
|
-
iin: isly2_1.isly.string().rename("Iin").describe("First 6-8 numbers of the pan."),
|
|
69
|
-
last4: isly2_1.isly.string().rename("Last4").describe("Last four digits of pan."),
|
|
70
|
-
expiry: Expiry_1.Expiry.type2,
|
|
71
|
-
holder: isly2_1.isly.string().rename("Holder").describe("Card holder name."),
|
|
72
|
-
token: isly2_1.isly.string().optional().rename("Token").describe("Encrypted token of the card."),
|
|
73
|
-
}),
|
|
74
|
-
limit: Amount_1.Amount.type2.rename("Limit").describe("Maximum amount that can be spent on the card."),
|
|
75
|
-
spent: Amount_1.Amount.type2.rename("Spent").describe("Amount spent on the card."),
|
|
76
|
-
status: isly2_1.isly.string("value", ["active", "cancelled"]).rename("Status").describe("Current card status."),
|
|
77
|
-
history: Operation_1.Operation.type2.array().rename("History").describe("Card operation history."),
|
|
78
|
-
rules: isly2_1.isly
|
|
79
|
-
.from("Rule", type_1.type.is)
|
|
80
|
-
.array()
|
|
81
|
-
.rename("Rules")
|
|
82
|
-
.describe("Card rules that applies to authorizations made with the card."),
|
|
83
|
-
meta: isly2_1.isly.from("Card.Meta", Meta_1.Meta.is).optional().rename("Meta").describe("Additional card information."),
|
|
84
|
-
restricted: isly2_1.isly
|
|
85
|
-
.object({ to: Restriction_1.Restriction.type2.optional() })
|
|
86
|
-
.optional()
|
|
87
|
-
.rename("Restrictions")
|
|
88
|
-
.describe("Set of restrictions that apply to the card."),
|
|
89
|
-
})
|
|
90
|
-
.rename("Card")
|
|
91
|
-
.describe("Card information.");
|
|
92
54
|
const csvMap = {
|
|
93
55
|
id: card => card.id,
|
|
94
56
|
created: card => readableDate(card.created),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Card/index.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Card/index.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;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G,CAAA;IACD,SAAS,YAAY,CAAC,IAAgC;QACrD,OAAO,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAA;IACpG,CAAC;IACD,SAAgB,KAAK,CAAC,KAAa;QAClC,OAAO,eAAM,CAAC,KAAK,CAClB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EACnB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAChB,eAAM,CAAC,GAAG,CAAC,KAAK,CACf,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EACvC,GAAG,CACH,CACD,EACD,GAAG,CACH,CAAA;IACF,CAAC;IAXe,UAAK,QAWpB,CAAA;AACF,CAAC,EAtEgB,IAAI,oBAAJ,IAAI,QAsEpB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { gracely } from "gracely";
|
|
2
2
|
import { isoly } from "isoly";
|
|
3
3
|
import { http } from "cloudly-http";
|
|
4
|
-
import { isly } from "isly2";
|
|
5
4
|
import { Card } from "../../Card";
|
|
6
5
|
import { Operation } from "../../Operation";
|
|
7
6
|
import { Rail } from "../../Rail";
|
|
@@ -41,19 +40,4 @@ export declare namespace Transactions {
|
|
|
41
40
|
rail?: Rail;
|
|
42
41
|
type?: Transaction.Types;
|
|
43
42
|
}
|
|
44
|
-
namespace Query {
|
|
45
|
-
const type: isly.Object<{
|
|
46
|
-
id: string | undefined;
|
|
47
|
-
account: string | undefined;
|
|
48
|
-
limit: number | undefined;
|
|
49
|
-
cursor: string | undefined;
|
|
50
|
-
start: string | undefined;
|
|
51
|
-
end: string | undefined;
|
|
52
|
-
currency: string | undefined;
|
|
53
|
-
organization: string | undefined;
|
|
54
|
-
rail: "paxgiro" | "mastercard" | "diners" | "visa" | "internal" | "transfer" | "paxgiro-credit" | "fasterpayments" | "chaps" | "bacs" | "credit" | undefined;
|
|
55
|
-
type: "card" | "internal" | "external" | "system" | undefined;
|
|
56
|
-
}>;
|
|
57
|
-
function parse(query: string | http.Request["search"]): Query;
|
|
58
|
-
}
|
|
59
43
|
}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Transactions = void 0;
|
|
4
4
|
const cloudly_http_1 = require("cloudly-http");
|
|
5
|
-
const isly2_1 = require("isly2");
|
|
6
|
-
const Rail_1 = require("../../Rail");
|
|
7
|
-
const Transaction_1 = require("../../Transaction");
|
|
8
5
|
const Notes_1 = require("./Notes");
|
|
9
6
|
class Transactions {
|
|
10
7
|
client;
|
|
@@ -39,28 +36,4 @@ class Transactions {
|
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
exports.Transactions = Transactions;
|
|
42
|
-
(function (Transactions) {
|
|
43
|
-
let Query;
|
|
44
|
-
(function (Query) {
|
|
45
|
-
Query.type = isly2_1.isly.object({
|
|
46
|
-
id: isly2_1.isly.string().optional(),
|
|
47
|
-
account: isly2_1.isly.string().optional(),
|
|
48
|
-
limit: isly2_1.isly.number().optional(),
|
|
49
|
-
cursor: isly2_1.isly.string().optional(),
|
|
50
|
-
start: isly2_1.isly.string().optional(),
|
|
51
|
-
end: isly2_1.isly.string().optional(),
|
|
52
|
-
currency: isly2_1.isly.string().optional(),
|
|
53
|
-
organization: isly2_1.isly.string().optional(),
|
|
54
|
-
rail: Rail_1.Rail.type2.optional(),
|
|
55
|
-
type: isly2_1.isly.string("value", ...Transaction_1.Transaction.types).optional(),
|
|
56
|
-
});
|
|
57
|
-
function parse(query) {
|
|
58
|
-
if (typeof query == "string") {
|
|
59
|
-
query = query ? cloudly_http_1.http.Search.parse(query.replace("?", "")) : {};
|
|
60
|
-
}
|
|
61
|
-
return Query.type.prune(query) ?? {};
|
|
62
|
-
}
|
|
63
|
-
Query.parse = parse;
|
|
64
|
-
})(Query = Transactions.Query || (Transactions.Query = {}));
|
|
65
|
-
})(Transactions || (exports.Transactions = Transactions = {}));
|
|
66
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Transactions/index.ts"],"names":[],"mappings":";;;AAEA,+CAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Transactions/index.ts"],"names":[],"mappings":";;;AAEA,+CAAmC;AAOnC,mCAA+B;AAE/B,MAAa,YAAY;IAEK;IADpB,KAAK,CAAO;IACrB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;QAC/C,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACpC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,WAAkC;QAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAc,YAAY,OAAO,cAAc,EAAE,WAAW,CAAC,CAAA;IACrF,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAAqC;QAC/C,MAAM,KAAK,GAAG,CAAC,OAAO;YACrB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,OAAO,OAAO,IAAI,QAAQ;gBAC3B,CAAC,CAAC,OAAO;gBACT,CAAC,CAAC,mBAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACpF,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAC3B,cAAc,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAC3C,CAAA;IACF,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,WAAmB,EAAE,OAAgB;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,OAAO,CAAC,CAAC,CAAC,YAAY,OAAO,gBAAgB,WAAW,EAAE,CAAC,CAAC,CAAC,gBAAgB,WAAW,EAAE,CAC1F,CAAA;IACF,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,aAAqB;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAc,gBAAgB,aAAa,YAAY,CAAC,CAAA;IAC/E,CAAC;IACD,KAAK,CAAC,QAAQ,CAAC,aAAqB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,gBAAgB,aAAa,QAAQ,CAAC,CAAA;IAC1E,CAAC;IACD,KAAK,CAAC,UAAU,CACf,KAAsB,EACtB,OAAwF;QAExF,MAAM,KAAK,GAAG,GAAG,GAAG,mBAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,GAAG,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC,CAAA;QACnE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAyB,0BAA0B,KAAK,EAAE,CAAC,CAAA;IAClF,CAAC;CACD;AArCD,oCAqCC"}
|
package/dist/cjs/Rail/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Address as RailAddress } from "./Address";
|
|
4
3
|
export type Rail = (typeof Rail.rails)[number];
|
|
5
4
|
export declare namespace Rail {
|
|
6
5
|
const rails: readonly ["internal", "paxgiro", "paxgiro-credit", "mastercard", "diners", "visa", "fasterpayments", "chaps", "bacs", "transfer", "credit"];
|
|
7
6
|
const type: isly.Type<"paxgiro" | "mastercard" | "diners" | "visa" | "internal" | "transfer" | "paxgiro-credit" | "fasterpayments" | "chaps" | "bacs" | "credit">;
|
|
8
|
-
const type2: isly2.String<"paxgiro" | "mastercard" | "diners" | "visa" | "internal" | "transfer" | "paxgiro-credit" | "fasterpayments" | "chaps" | "bacs" | "credit">;
|
|
9
7
|
export import Address = RailAddress;
|
|
10
8
|
}
|
package/dist/cjs/Rail/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Rail = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
-
const isly2_1 = require("isly2");
|
|
6
5
|
const Address_1 = require("./Address");
|
|
7
6
|
var Rail;
|
|
8
7
|
(function (Rail) {
|
|
@@ -20,7 +19,6 @@ var Rail;
|
|
|
20
19
|
"credit",
|
|
21
20
|
];
|
|
22
21
|
Rail.type = isly_1.isly.string(Rail.rails);
|
|
23
|
-
Rail.type2 = isly2_1.isly.string("value", ...Rail.rails);
|
|
24
22
|
Rail.Address = Address_1.Address;
|
|
25
23
|
})(Rail || (exports.Rail = Rail = {}));
|
|
26
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Rail/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Rail/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,uCAAkD;AAGlD,IAAiB,IAAI,CAgBpB;AAhBD,WAAiB,IAAI;IACP,UAAK,GAAG;QACpB,UAAU;QACV,SAAS;QACT,gBAAgB;QAChB,YAAY;QACZ,QAAQ;QACR,MAAM;QACN,gBAAgB;QAChB,OAAO;QACP,MAAM;QACN,UAAU;QACV,QAAQ;KACC,CAAA;IACG,SAAI,GAAG,WAAI,CAAC,MAAM,CAAO,KAAA,KAAK,CAAC,CAAA;IAC9B,YAAO,GAAG,iBAAW,CAAA;AACpC,CAAC,EAhBgB,IAAI,oBAAJ,IAAI,QAgBpB"}
|