@pax2pay/model-banking 0.1.391 → 0.1.393

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/Warning/Base.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  import { isoly } from "isoly"
2
2
  import { isly } from "isly"
3
+ import { Issue } from "./Issue"
3
4
 
4
5
  export interface Base {
5
6
  type: string
6
7
  resource: string
7
8
  value?: number
8
9
  date: isoly.Date
10
+ issue?: Issue
9
11
  }
10
12
 
11
13
  export namespace Base {
@@ -14,5 +16,6 @@ export namespace Base {
14
16
  resource: isly.string(),
15
17
  value: isly.number().optional(),
16
18
  date: isly.string(),
19
+ issue: Issue.type.optional(),
17
20
  })
18
21
  }
@@ -0,0 +1,13 @@
1
+ import { isly } from "isly"
2
+
3
+ export interface Issue {
4
+ link: string
5
+ status: "closed" | "open"
6
+ }
7
+
8
+ export namespace Issue {
9
+ export const type = isly.object<Issue>({
10
+ link: isly.string(),
11
+ status: isly.string(["closed", "open"]),
12
+ })
13
+ }
@@ -1,7 +1,5 @@
1
1
  import { isoly } from "isoly"
2
2
  import { isly } from "isly"
3
- import { Stack } from "../../Card/Stack"
4
- import { Batch } from "../../Settlement/Batch"
5
3
  import { Identifier } from "../../Settlement/Identifier"
6
4
  import { Totals } from "../../Settlement/Totals"
7
5
  import { Base } from "../Base"
@@ -9,6 +7,7 @@ import { Base } from "../Base"
9
7
  export interface MissingFile extends Base {
10
8
  type: "missing-file"
11
9
  resource: Identifier
10
+ cycle?: string
12
11
  totals?: Totals
13
12
  }
14
13
 
@@ -16,13 +15,15 @@ export namespace MissingFile {
16
15
  export const type = Base.type.extend<MissingFile>({
17
16
  type: isly.string("missing-file"),
18
17
  resource: Identifier.type,
18
+ cycle: isly.string().optional(),
19
19
  totals: Totals.type.optional(),
20
20
  })
21
- export function create(date: isoly.Date, order: number, stack: Stack): MissingFile {
21
+ export function create(id: string, cycle: string, date: isoly.Date): MissingFile {
22
22
  return {
23
23
  type: "missing-file",
24
- resource: Identifier.create(date, stack, order),
25
- date: isoly.Date.now(),
24
+ resource: id,
25
+ cycle,
26
+ date,
26
27
  }
27
28
  }
28
29
  }
@@ -3,6 +3,6 @@ import { Address as RailAddress } from "./Address";
3
3
  export type Rail = typeof Rail.rails[number];
4
4
  export declare namespace Rail {
5
5
  const rails: readonly ["internal", "paxgiro", "paxgiro-credit", "mastercard", "diners", "fasterpayments", "chaps", "bacs", "transfer", "credit"];
6
- const type: isly.Type<"paxgiro" | "internal" | "mastercard" | "diners" | "paxgiro-credit" | "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
  }
@@ -1,10 +1,12 @@
1
1
  import { isoly } from "isoly";
2
2
  import { isly } from "isly";
3
+ import { Issue } from "./Issue";
3
4
  export interface Base {
4
5
  type: string;
5
6
  resource: string;
6
7
  value?: number;
7
8
  date: isoly.Date;
9
+ issue?: Issue;
8
10
  }
9
11
  export declare namespace Base {
10
12
  const type: isly.object.ExtendableType<Base>;
@@ -1,4 +1,5 @@
1
1
  import { isly } from "isly";
2
+ import { Issue } from "./Issue";
2
3
  export var Base;
3
4
  (function (Base) {
4
5
  Base.type = isly.object({
@@ -6,6 +7,7 @@ export var Base;
6
7
  resource: isly.string(),
7
8
  value: isly.number().optional(),
8
9
  date: isly.string(),
10
+ issue: Issue.type.optional(),
9
11
  });
10
12
  })(Base || (Base = {}));
11
13
  //# sourceMappingURL=Base.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Base.js","sourceRoot":"../","sources":["Warning/Base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAS3B,MAAM,KAAW,IAAI,CAOpB;AAPD,WAAiB,IAAI;IACP,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;QACvB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;KACnB,CAAC,CAAA;AACH,CAAC,EAPgB,IAAI,KAAJ,IAAI,QAOpB"}
1
+ {"version":3,"file":"Base.js","sourceRoot":"../","sources":["Warning/Base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAU/B,MAAM,KAAW,IAAI,CAQpB;AARD,WAAiB,IAAI;IACP,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;QACvB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;KAC5B,CAAC,CAAA;AACH,CAAC,EARgB,IAAI,KAAJ,IAAI,QAQpB"}
@@ -0,0 +1,8 @@
1
+ import { isly } from "isly";
2
+ export interface Issue {
3
+ link: string;
4
+ status: "closed" | "open";
5
+ }
6
+ export declare namespace Issue {
7
+ const type: isly.object.ExtendableType<Issue>;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { isly } from "isly";
2
+ export var Issue;
3
+ (function (Issue) {
4
+ Issue.type = isly.object({
5
+ link: isly.string(),
6
+ status: isly.string(["closed", "open"]),
7
+ });
8
+ })(Issue || (Issue = {}));
9
+ //# sourceMappingURL=Issue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Issue.js","sourceRoot":"../","sources":["Warning/Issue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,KAAW,KAAK,CAKrB;AALD,WAAiB,KAAK;IACR,UAAI,GAAG,IAAI,CAAC,MAAM,CAAQ;QACtC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;KACvC,CAAC,CAAA;AACH,CAAC,EALgB,KAAK,KAAL,KAAK,QAKrB"}
@@ -1,15 +1,15 @@
1
1
  import { isoly } from "isoly";
2
2
  import { isly } from "isly";
3
- import { Stack } from "../../Card/Stack";
4
3
  import { Identifier } from "../../Settlement/Identifier";
5
4
  import { Totals } from "../../Settlement/Totals";
6
5
  import { Base } from "../Base";
7
6
  export interface MissingFile extends Base {
8
7
  type: "missing-file";
9
8
  resource: Identifier;
9
+ cycle?: string;
10
10
  totals?: Totals;
11
11
  }
12
12
  export declare namespace MissingFile {
13
13
  const type: isly.object.ExtendableType<MissingFile>;
14
- function create(date: isoly.Date, order: number, stack: Stack): MissingFile;
14
+ function create(id: string, cycle: string, date: isoly.Date): MissingFile;
15
15
  }
@@ -1,4 +1,3 @@
1
- import { isoly } from "isoly";
2
1
  import { isly } from "isly";
3
2
  import { Identifier } from "../../Settlement/Identifier";
4
3
  import { Totals } from "../../Settlement/Totals";
@@ -8,13 +7,15 @@ export var MissingFile;
8
7
  MissingFile.type = Base.type.extend({
9
8
  type: isly.string("missing-file"),
10
9
  resource: Identifier.type,
10
+ cycle: isly.string().optional(),
11
11
  totals: Totals.type.optional(),
12
12
  });
13
- function create(date, order, stack) {
13
+ function create(id, cycle, date) {
14
14
  return {
15
15
  type: "missing-file",
16
- resource: Identifier.create(date, stack, order),
17
- date: isoly.Date.now(),
16
+ resource: id,
17
+ cycle,
18
+ date,
18
19
  };
19
20
  }
20
21
  MissingFile.create = create;
@@ -1 +1 @@
1
- {"version":3,"file":"MissingFile.js","sourceRoot":"../","sources":["Warning/Settlement/MissingFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAQ9B,MAAM,KAAW,WAAW,CAa3B;AAbD,WAAiB,WAAW;IACd,gBAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAc;QACjD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;QACjC,QAAQ,EAAE,UAAU,CAAC,IAAI;QACzB,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE;KAC9B,CAAC,CAAA;IACF,SAAgB,MAAM,CAAC,IAAgB,EAAE,KAAa,EAAE,KAAY;QACnE,OAAO;YACN,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC;YAC/C,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;SACtB,CAAA;IACF,CAAC;IANe,kBAAM,SAMrB,CAAA;AACF,CAAC,EAbgB,WAAW,KAAX,WAAW,QAa3B"}
1
+ {"version":3,"file":"MissingFile.js","sourceRoot":"../","sources":["Warning/Settlement/MissingFile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAS9B,MAAM,KAAW,WAAW,CAe3B;AAfD,WAAiB,WAAW;IACd,gBAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAc;QACjD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;QACjC,QAAQ,EAAE,UAAU,CAAC,IAAI;QACzB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE;KAC9B,CAAC,CAAA;IACF,SAAgB,MAAM,CAAC,EAAU,EAAE,KAAa,EAAE,IAAgB;QACjE,OAAO;YACN,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE,EAAE;YACZ,KAAK;YACL,IAAI;SACJ,CAAA;IACF,CAAC;IAPe,kBAAM,SAOrB,CAAA;AACF,CAAC,EAfgB,WAAW,KAAX,WAAW,QAe3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.391",
3
+ "version": "0.1.393",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",