@pax2pay/model-banking 0.1.303 → 0.1.305

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 CHANGED
@@ -3,7 +3,7 @@ import { Stack } from "./Stack"
3
3
 
4
4
  export type Preset = typeof Preset.names[number]
5
5
 
6
- // "realm-scheme-interchange"
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)
package/Rail/index.ts CHANGED
@@ -8,6 +8,7 @@ export namespace Rail {
8
8
  "paxgiro",
9
9
  "paxgiro-credit",
10
10
  "mastercard",
11
+ "diners",
11
12
  "fasterpayments",
12
13
  "chaps",
13
14
  "bacs",
package/Rule/Rule/Base.ts CHANGED
@@ -13,7 +13,7 @@ export interface Base {
13
13
  export namespace Base {
14
14
  export const kinds = ["authorization", "outbound", "inbound"] as const
15
15
  export type Kind = typeof kinds[number]
16
- export const categories = ["customer", "product", "fincrime"] as const
16
+ export const categories = ["fincrime", "product", "customer"] as const
17
17
  export type Category = typeof categories[number]
18
18
  export const type = isly.object<Base>({
19
19
  code: isly.string(new RegExp(/^[a-z0-9\-_]+$/)),
@@ -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
  }
@@ -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",
@@ -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,CAoBtB;AApBD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,YAAY;QACZ,aAAa;QACb,gBAAgB;QAChB,aAAa;QACb,gBAAgB;QAChB,gBAAgB;KACP,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAA,KAAK,CAAC,CAAA;IACzB,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;IACZ,WAAI,GAAG,OAAA,IAAI,CAAC,IAAI,CAAA;IAChB,cAAO,GAA0B;QAC7C,YAAY,EAAE,mBAAmB;QACjC,aAAa,EAAE,gBAAgB;QAC/B,gBAAgB,EAAE,oBAAoB;QACtC,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;KACpC,CAAA;AACF,CAAC,EApBgB,MAAM,KAAN,MAAM,QAoBtB"}
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"}
@@ -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
  }
@@ -1,7 +1,7 @@
1
1
  import { isly } from "isly";
2
2
  export var Scheme;
3
3
  (function (Scheme) {
4
- Scheme.schemes = ["mastercard"];
4
+ Scheme.schemes = ["mastercard", "diners"];
5
5
  Scheme.type = isly.string(Scheme.schemes);
6
6
  })(Scheme || (Scheme = {}));
7
7
  //# sourceMappingURL=Scheme.js.map
@@ -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;IACjC,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAA,OAAO,CAAC,CAAA;AACzC,CAAC,EAHgB,MAAM,KAAN,MAAM,QAGtB"}
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"}
@@ -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
  }
@@ -6,6 +6,7 @@ export var Stack;
6
6
  "test-tpl-paxgiro",
7
7
  "testUK-marqeta",
8
8
  "testUK-tpl-marqeta",
9
+ "test-diners-dpg",
9
10
  "uk-mc-tpl-marqeta",
10
11
  ];
11
12
  Stack.type = isly.string(Stack.stacks);
@@ -1 +1 @@
1
- {"version":3,"file":"Stack.js","sourceRoot":"../","sources":["Card/Stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,MAAM,KAAW,KAAK,CAcrB;AAdD,WAAiB,KAAK;IACR,YAAM,GAAG;QACrB,cAAc;QACd,kBAAkB;QAClB,gBAAgB;QAChB,oBAAoB;QACpB,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,EAdgB,KAAK,KAAL,KAAK,QAcrB"}
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"}
@@ -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
  }
@@ -7,6 +7,7 @@ export var Rail;
7
7
  "paxgiro",
8
8
  "paxgiro-credit",
9
9
  "mastercard",
10
+ "diners",
10
11
  "fasterpayments",
11
12
  "chaps",
12
13
  "bacs",
@@ -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,CAcpB;AAdD,WAAiB,IAAI;IACP,UAAK,GAAG;QACpB,UAAU;QACV,SAAS;QACT,gBAAgB;QAChB,YAAY;QACZ,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,EAdgB,IAAI,KAAJ,IAAI,QAcpB"}
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"}
@@ -12,7 +12,7 @@ export interface Base {
12
12
  export declare namespace Base {
13
13
  const kinds: readonly ["authorization", "outbound", "inbound"];
14
14
  type Kind = typeof kinds[number];
15
- const categories: readonly ["customer", "product", "fincrime"];
15
+ const categories: readonly ["fincrime", "product", "customer"];
16
16
  type Category = typeof categories[number];
17
17
  const type: isly.object.ExtendableType<Base>;
18
18
  }
@@ -2,7 +2,7 @@ import { isly } from "isly";
2
2
  export var Base;
3
3
  (function (Base) {
4
4
  Base.kinds = ["authorization", "outbound", "inbound"];
5
- Base.categories = ["customer", "product", "fincrime"];
5
+ Base.categories = ["fincrime", "product", "customer"];
6
6
  Base.type = isly.object({
7
7
  code: isly.string(new RegExp(/^[a-z0-9\-_]+$/)),
8
8
  name: isly.string(),
@@ -10,7 +10,7 @@ export declare namespace Rule {
10
10
  }
11
11
  type Category = ModelRule.Base.Category;
12
12
  namespace Category {
13
- const values: readonly ["customer", "product", "fincrime"];
13
+ const values: readonly ["fincrime", "product", "customer"];
14
14
  }
15
15
  type Kind = ModelRule.Base.Kind;
16
16
  namespace Kind {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.303",
3
+ "version": "0.1.305",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",