@pax2pay/model-banking 0.1.302 → 0.1.304
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/Card/Preset.ts +4 -2
- package/Card/Scheme.ts +2 -2
- package/Card/Stack.ts +2 -0
- package/Rail/Address/PaxgiroCredit.ts +6 -1
- package/Rail/index.ts +1 -0
- package/dist/Card/Preset.d.ts +3 -3
- package/dist/Card/Preset.js +2 -0
- package/dist/Card/Preset.js.map +1 -1
- package/dist/Card/Scheme.d.ts +2 -2
- package/dist/Card/Scheme.js +1 -1
- package/dist/Card/Scheme.js.map +1 -1
- package/dist/Card/Stack.d.ts +3 -3
- package/dist/Card/Stack.js +1 -0
- package/dist/Card/Stack.js.map +1 -1
- package/dist/Rail/Address/PaxgiroCredit.d.ts +1 -0
- package/dist/Rail/Address/PaxgiroCredit.js +5 -1
- package/dist/Rail/Address/PaxgiroCredit.js.map +1 -1
- package/dist/Rail/index.d.ts +2 -2
- package/dist/Rail/index.js +1 -0
- package/dist/Rail/index.js.map +1 -1
- package/package.json +1 -1
package/Card/Preset.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Stack } from "./Stack"
|
|
|
3
3
|
|
|
4
4
|
export type Preset = typeof Preset.names[number]
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// (test OR p2p)-scheme-interchange
|
|
7
7
|
export namespace Preset {
|
|
8
8
|
export const names = [
|
|
9
9
|
"p2p-mc-200",
|
|
@@ -12,12 +12,14 @@ export namespace Preset {
|
|
|
12
12
|
"test-pg-200",
|
|
13
13
|
"test-ta-pg-200",
|
|
14
14
|
"test-ta-mc-200",
|
|
15
|
+
"test-diners-200",
|
|
15
16
|
] as const
|
|
16
|
-
export const type = isly.string(names)
|
|
17
|
+
export const type = isly.string<Preset>(names)
|
|
17
18
|
export const is = type.is
|
|
18
19
|
export const flaw = type.flaw
|
|
19
20
|
export const presets: Record<Preset, Stack> = {
|
|
20
21
|
"p2p-mc-200": "uk-mc-tpl-marqeta",
|
|
22
|
+
"test-diners-200": "test-diners-dpg",
|
|
21
23
|
"test-mc-200": "testUK-marqeta",
|
|
22
24
|
"test-ta-mq-200": "testUK-tpl-marqeta",
|
|
23
25
|
"test-pg-200": "test-paxgiro",
|
package/Card/Scheme.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { isly } from "isly"
|
|
|
2
2
|
|
|
3
3
|
export type Scheme = typeof Scheme.schemes[number]
|
|
4
4
|
export namespace Scheme {
|
|
5
|
-
export const schemes = ["mastercard"] as const
|
|
6
|
-
export const type = isly.string(schemes)
|
|
5
|
+
export const schemes = ["mastercard", "diners"] as const
|
|
6
|
+
export const type = isly.string<Scheme>(schemes)
|
|
7
7
|
}
|
package/Card/Stack.ts
CHANGED
|
@@ -3,12 +3,14 @@ import { Realm } from "../Realm"
|
|
|
3
3
|
|
|
4
4
|
export type Stack = typeof Stack.stacks[number]
|
|
5
5
|
|
|
6
|
+
// realm-scheme-processor(-processor...)
|
|
6
7
|
export namespace Stack {
|
|
7
8
|
export const stacks = [
|
|
8
9
|
"test-paxgiro",
|
|
9
10
|
"test-tpl-paxgiro",
|
|
10
11
|
"testUK-marqeta",
|
|
11
12
|
"testUK-tpl-marqeta",
|
|
13
|
+
"test-diners-dpg",
|
|
12
14
|
"uk-mc-tpl-marqeta",
|
|
13
15
|
] as const
|
|
14
16
|
export const type = isly.string(stacks)
|
|
@@ -3,7 +3,12 @@ import { isly } from "isly"
|
|
|
3
3
|
export interface PaxgiroCredit {
|
|
4
4
|
type: "paxgiro-credit"
|
|
5
5
|
reference: string
|
|
6
|
+
justInTime?: boolean
|
|
6
7
|
}
|
|
7
8
|
export namespace PaxgiroCredit {
|
|
8
|
-
export const type = isly.object<PaxgiroCredit>({
|
|
9
|
+
export const type = isly.object<PaxgiroCredit>({
|
|
10
|
+
type: isly.string("paxgiro-credit"),
|
|
11
|
+
reference: isly.string(),
|
|
12
|
+
justInTime: isly.boolean().optional(),
|
|
13
|
+
})
|
|
9
14
|
}
|
package/Rail/index.ts
CHANGED
package/dist/Card/Preset.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { isly } from "isly";
|
|
|
2
2
|
import { Stack } from "./Stack";
|
|
3
3
|
export type Preset = typeof Preset.names[number];
|
|
4
4
|
export declare namespace Preset {
|
|
5
|
-
const names: readonly ["p2p-mc-200", "test-mc-200", "test-ta-mq-200", "test-pg-200", "test-ta-pg-200", "test-ta-mc-200"];
|
|
6
|
-
const type: isly.Type<"p2p-mc-200" | "test-mc-200" | "test-ta-mq-200" | "test-pg-200" | "test-ta-pg-200" | "test-ta-mc-200">;
|
|
7
|
-
const is: isly.Type.IsFunction<"p2p-mc-200" | "test-mc-200" | "test-ta-mq-200" | "test-pg-200" | "test-ta-pg-200" | "test-ta-mc-200">;
|
|
5
|
+
const names: readonly ["p2p-mc-200", "test-mc-200", "test-ta-mq-200", "test-pg-200", "test-ta-pg-200", "test-ta-mc-200", "test-diners-200"];
|
|
6
|
+
const type: isly.Type<"p2p-mc-200" | "test-mc-200" | "test-ta-mq-200" | "test-pg-200" | "test-ta-pg-200" | "test-ta-mc-200" | "test-diners-200">;
|
|
7
|
+
const is: isly.Type.IsFunction<"p2p-mc-200" | "test-mc-200" | "test-ta-mq-200" | "test-pg-200" | "test-ta-pg-200" | "test-ta-mc-200" | "test-diners-200">;
|
|
8
8
|
const flaw: isly.Type.FlawFunction;
|
|
9
9
|
const presets: Record<Preset, Stack>;
|
|
10
10
|
}
|
package/dist/Card/Preset.js
CHANGED
|
@@ -8,12 +8,14 @@ export var Preset;
|
|
|
8
8
|
"test-pg-200",
|
|
9
9
|
"test-ta-pg-200",
|
|
10
10
|
"test-ta-mc-200",
|
|
11
|
+
"test-diners-200",
|
|
11
12
|
];
|
|
12
13
|
Preset.type = isly.string(Preset.names);
|
|
13
14
|
Preset.is = Preset.type.is;
|
|
14
15
|
Preset.flaw = Preset.type.flaw;
|
|
15
16
|
Preset.presets = {
|
|
16
17
|
"p2p-mc-200": "uk-mc-tpl-marqeta",
|
|
18
|
+
"test-diners-200": "test-diners-dpg",
|
|
17
19
|
"test-mc-200": "testUK-marqeta",
|
|
18
20
|
"test-ta-mq-200": "testUK-tpl-marqeta",
|
|
19
21
|
"test-pg-200": "test-paxgiro",
|
package/dist/Card/Preset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preset.js","sourceRoot":"../","sources":["Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"Preset.js","sourceRoot":"../","sources":["Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,MAAM,CAsBtB;AAtBD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,YAAY;QACZ,aAAa;QACb,gBAAgB;QAChB,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,iBAAiB;KACR,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,KAAK,CAAC,CAAA;IACjC,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;IACZ,WAAI,GAAG,OAAA,IAAI,CAAC,IAAI,CAAA;IAChB,cAAO,GAA0B;QAC7C,YAAY,EAAE,mBAAmB;QACjC,iBAAiB,EAAE,iBAAiB;QACpC,aAAa,EAAE,gBAAgB;QAC/B,gBAAgB,EAAE,oBAAoB;QACtC,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;KACpC,CAAA;AACF,CAAC,EAtBgB,MAAM,KAAN,MAAM,QAsBtB"}
|
package/dist/Card/Scheme.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export type Scheme = typeof Scheme.schemes[number];
|
|
3
3
|
export declare namespace Scheme {
|
|
4
|
-
const schemes: readonly ["mastercard"];
|
|
5
|
-
const type: isly.Type<"mastercard">;
|
|
4
|
+
const schemes: readonly ["mastercard", "diners"];
|
|
5
|
+
const type: isly.Type<"mastercard" | "diners">;
|
|
6
6
|
}
|
package/dist/Card/Scheme.js
CHANGED
package/dist/Card/Scheme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scheme.js","sourceRoot":"../","sources":["Card/Scheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,MAAM,CAGtB;AAHD,WAAiB,MAAM;IACT,cAAO,GAAG,CAAC,YAAY,CAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Scheme.js","sourceRoot":"../","sources":["Card/Scheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,MAAM,CAGtB;AAHD,WAAiB,MAAM;IACT,cAAO,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAU,CAAA;IAC3C,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,OAAO,CAAC,CAAA;AACjD,CAAC,EAHgB,MAAM,KAAN,MAAM,QAGtB"}
|
package/dist/Card/Stack.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { isly } from "isly";
|
|
|
2
2
|
import { Realm } from "../Realm";
|
|
3
3
|
export type Stack = typeof Stack.stacks[number];
|
|
4
4
|
export declare namespace Stack {
|
|
5
|
-
const stacks: readonly ["test-paxgiro", "test-tpl-paxgiro", "testUK-marqeta", "testUK-tpl-marqeta", "uk-mc-tpl-marqeta"];
|
|
6
|
-
const type: isly.Type<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "testUK-tpl-marqeta" | "uk-mc-tpl-marqeta">;
|
|
7
|
-
const is: isly.Type.IsFunction<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "testUK-tpl-marqeta" | "uk-mc-tpl-marqeta">;
|
|
5
|
+
const stacks: readonly ["test-paxgiro", "test-tpl-paxgiro", "testUK-marqeta", "testUK-tpl-marqeta", "test-diners-dpg", "uk-mc-tpl-marqeta"];
|
|
6
|
+
const type: isly.Type<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "testUK-tpl-marqeta" | "test-diners-dpg" | "uk-mc-tpl-marqeta">;
|
|
7
|
+
const is: isly.Type.IsFunction<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "testUK-tpl-marqeta" | "test-diners-dpg" | "uk-mc-tpl-marqeta">;
|
|
8
8
|
const flaw: isly.Type.FlawFunction;
|
|
9
9
|
function toRealm(stack: Stack): Realm;
|
|
10
10
|
}
|
package/dist/Card/Stack.js
CHANGED
package/dist/Card/Stack.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.js","sourceRoot":"../","sources":["Card/Stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
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,CAerB;AAfD,WAAiB,KAAK;IACR,YAAM,GAAG;QACrB,cAAc;QACd,kBAAkB;QAClB,gBAAgB;QAChB,oBAAoB;QACpB,iBAAiB;QACjB,mBAAmB;KACV,CAAA;IACG,UAAI,GAAG,IAAI,CAAC,MAAM,CAAC,MAAA,MAAM,CAAC,CAAA;IAC1B,QAAE,GAAG,MAAA,IAAI,CAAC,EAAE,CAAA;IACZ,UAAI,GAAG,MAAA,IAAI,CAAC,IAAI,CAAA;IAC7B,SAAgB,OAAO,CAAC,KAAY;QACnC,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAU,CAAA;IACpC,CAAC;IAFe,aAAO,UAEtB,CAAA;AACF,CAAC,EAfgB,KAAK,KAAL,KAAK,QAerB"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export var PaxgiroCredit;
|
|
3
3
|
(function (PaxgiroCredit) {
|
|
4
|
-
PaxgiroCredit.type = isly.object({
|
|
4
|
+
PaxgiroCredit.type = isly.object({
|
|
5
|
+
type: isly.string("paxgiro-credit"),
|
|
6
|
+
reference: isly.string(),
|
|
7
|
+
justInTime: isly.boolean().optional(),
|
|
8
|
+
});
|
|
5
9
|
})(PaxgiroCredit || (PaxgiroCredit = {}));
|
|
6
10
|
//# sourceMappingURL=PaxgiroCredit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaxgiroCredit.js","sourceRoot":"../","sources":["Rail/Address/PaxgiroCredit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"PaxgiroCredit.js","sourceRoot":"../","sources":["Rail/Address/PaxgiroCredit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,KAAW,aAAa,CAM7B;AAND,WAAiB,aAAa;IAChB,kBAAI,GAAG,IAAI,CAAC,MAAM,CAAgB;QAC9C,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACnC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,UAAU,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACrC,CAAC,CAAA;AACH,CAAC,EANgB,aAAa,KAAb,aAAa,QAM7B"}
|
package/dist/Rail/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { isly } from "isly";
|
|
|
2
2
|
import { Address as RailAddress } from "./Address";
|
|
3
3
|
export type Rail = typeof Rail.rails[number];
|
|
4
4
|
export declare namespace Rail {
|
|
5
|
-
const rails: readonly ["internal", "paxgiro", "paxgiro-credit", "mastercard", "fasterpayments", "chaps", "bacs", "transfer", "credit"];
|
|
6
|
-
const type: isly.Type<"paxgiro" | "internal" | "paxgiro-credit" | "mastercard" | "fasterpayments" | "chaps" | "bacs" | "transfer" | "credit">;
|
|
5
|
+
const rails: readonly ["internal", "paxgiro", "paxgiro-credit", "mastercard", "diners", "fasterpayments", "chaps", "bacs", "transfer", "credit"];
|
|
6
|
+
const type: isly.Type<"paxgiro" | "internal" | "paxgiro-credit" | "mastercard" | "diners" | "fasterpayments" | "chaps" | "bacs" | "transfer" | "credit">;
|
|
7
7
|
export import Address = RailAddress;
|
|
8
8
|
}
|
package/dist/Rail/index.js
CHANGED
package/dist/Rail/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA;AAGlD,MAAM,KAAW,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA;AAGlD,MAAM,KAAW,IAAI,CAepB;AAfD,WAAiB,IAAI;IACP,UAAK,GAAG;QACpB,UAAU;QACV,SAAS;QACT,gBAAgB;QAChB,YAAY;QACZ,QAAQ;QACR,gBAAgB;QAChB,OAAO;QACP,MAAM;QACN,UAAU;QACV,QAAQ;KACC,CAAA;IACG,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO,KAAA,KAAK,CAAC,CAAA;IAC9B,YAAO,GAAG,WAAW,CAAA;AACpC,CAAC,EAfgB,IAAI,KAAJ,IAAI,QAepB"}
|