@pax2pay/model-banking 0.1.618 → 0.1.620

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.
@@ -1,5 +1,3 @@
1
- import { isoly } from "isoly"
2
- import { Emoney } from "../Emoney"
3
1
  import { Base as ResultBase } from "./Base"
4
2
 
5
3
  export interface InternalReconciliation extends ResultBase {
@@ -7,11 +5,5 @@ export interface InternalReconciliation extends ResultBase {
7
5
  counterbalance: number
8
6
  emoney: number
9
7
  discrepancy: number
10
- accounts: InternalReconciliation.Account[]
11
- }
12
- export namespace InternalReconciliation {
13
- export interface Account extends Omit<Emoney, "balances"> {
14
- balance: number
15
- currency: isoly.Currency
16
- }
17
8
  }
9
+ export namespace InternalReconciliation {}
@@ -1,17 +1,10 @@
1
- import { isoly } from "isoly"
2
1
  import { Base } from "./Base"
3
- import { Result } from "./Result"
4
2
 
5
3
  export interface LedgerIntegrity extends Base {
6
4
  check: "ledger integrity"
7
- accounts: {
8
- id: string
9
- organization: string
10
- timestamp: string
11
- opening?: { at: isoly.DateTime; balance: number }
12
- ledger?: { change: number }
13
- closing: { at: isoly.DateTime; balance: number }
14
- result: Result
15
- }[]
5
+ failed: string[]
6
+ incomplete: string[]
7
+ passed: number
8
+ total: number
16
9
  }
17
10
  export namespace LedgerIntegrity {}
@@ -11,7 +11,8 @@ import { funding as snapshotFunding } from "./funding"
11
11
  import { Reconciliation as SnapshotReconciliation } from "./Reconciliation"
12
12
 
13
13
  export interface Snapshot {
14
- emoney: Balance.Extended & { total?: number }
14
+ version: 1
15
+ emoney: Balance.Extended & { total?: number; accounts: Snapshot.EmoneyAccounts[] }
15
16
  created: isoly.DateTime
16
17
  currency: isoly.Currency
17
18
  supplier: Supplier
@@ -26,6 +27,13 @@ export interface Snapshot {
26
27
  warnings?: Warning.Snapshot[]
27
28
  }
28
29
  export namespace Snapshot {
30
+ export type EmoneyAccounts = {
31
+ id: string
32
+ organization: string
33
+ opening?: { at: isoly.DateTime; balance: number }
34
+ ledger?: { change: number }
35
+ closing: { at: isoly.DateTime; balance: number }
36
+ }
29
37
  export import funding = snapshotFunding
30
38
  export import Check = SnapshotCheck
31
39
  export type Reconciliation = SnapshotReconciliation
@@ -1,16 +1,8 @@
1
- import { isoly } from "isoly";
2
- import { Emoney } from "../Emoney";
3
1
  import { Base as ResultBase } from "./Base";
4
2
  export interface InternalReconciliation extends ResultBase {
5
3
  check: "internal reconciliation";
6
4
  counterbalance: number;
7
5
  emoney: number;
8
6
  discrepancy: number;
9
- accounts: InternalReconciliation.Account[];
10
- }
11
- export declare namespace InternalReconciliation {
12
- interface Account extends Omit<Emoney, "balances"> {
13
- balance: number;
14
- currency: isoly.Currency;
15
- }
16
7
  }
8
+ export declare namespace InternalReconciliation { }
@@ -1,24 +1,9 @@
1
- import { isoly } from "isoly";
2
1
  import { Base } from "./Base";
3
- import { Result } from "./Result";
4
2
  export interface LedgerIntegrity extends Base {
5
3
  check: "ledger integrity";
6
- accounts: {
7
- id: string;
8
- organization: string;
9
- timestamp: string;
10
- opening?: {
11
- at: isoly.DateTime;
12
- balance: number;
13
- };
14
- ledger?: {
15
- change: number;
16
- };
17
- closing: {
18
- at: isoly.DateTime;
19
- balance: number;
20
- };
21
- result: Result;
22
- }[];
4
+ failed: string[];
5
+ incomplete: string[];
6
+ passed: number;
7
+ total: number;
23
8
  }
24
9
  export declare namespace LedgerIntegrity { }
@@ -10,8 +10,10 @@ import { Fiat as SnapshotFiat } from "./Fiat";
10
10
  import { funding as snapshotFunding } from "./funding";
11
11
  import { Reconciliation as SnapshotReconciliation } from "./Reconciliation";
12
12
  export interface Snapshot {
13
+ version: 1;
13
14
  emoney: Balance.Extended & {
14
15
  total?: number;
16
+ accounts: Snapshot.EmoneyAccounts[];
15
17
  };
16
18
  created: isoly.DateTime;
17
19
  currency: isoly.Currency;
@@ -27,6 +29,21 @@ export interface Snapshot {
27
29
  warnings?: Warning.Snapshot[];
28
30
  }
29
31
  export declare namespace Snapshot {
32
+ type EmoneyAccounts = {
33
+ id: string;
34
+ organization: string;
35
+ opening?: {
36
+ at: isoly.DateTime;
37
+ balance: number;
38
+ };
39
+ ledger?: {
40
+ change: number;
41
+ };
42
+ closing: {
43
+ at: isoly.DateTime;
44
+ balance: number;
45
+ };
46
+ };
30
47
  export import funding = snapshotFunding;
31
48
  export import Check = SnapshotCheck;
32
49
  type Reconciliation = SnapshotReconciliation;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":";;;AAKA,uCAAsD;AACtD,mCAAgD;AAGhD,uCAAsD;AAkBtD,IAAiB,QAAQ,CAOxB;AAPD,WAAiB,QAAQ;IACV,gBAAO,GAAG,iBAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,iBAAe,CAAA;AACxC,CAAC,EAPgB,QAAQ,wBAAR,QAAQ,QAOxB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":";;;AAKA,uCAAsD;AACtD,mCAAgD;AAGhD,uCAAsD;AAmBtD,IAAiB,QAAQ,CAcxB;AAdD,WAAiB,QAAQ;IAQV,gBAAO,GAAG,iBAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,iBAAe,CAAA;AACxC,CAAC,EAdgB,QAAQ,wBAAR,QAAQ,QAcxB"}
@@ -1,16 +1,8 @@
1
- import { isoly } from "isoly";
2
- import { Emoney } from "../Emoney";
3
1
  import { Base as ResultBase } from "./Base";
4
2
  export interface InternalReconciliation extends ResultBase {
5
3
  check: "internal reconciliation";
6
4
  counterbalance: number;
7
5
  emoney: number;
8
6
  discrepancy: number;
9
- accounts: InternalReconciliation.Account[];
10
- }
11
- export declare namespace InternalReconciliation {
12
- interface Account extends Omit<Emoney, "balances"> {
13
- balance: number;
14
- currency: isoly.Currency;
15
- }
16
7
  }
8
+ export declare namespace InternalReconciliation { }
@@ -1,24 +1,9 @@
1
- import { isoly } from "isoly";
2
1
  import { Base } from "./Base";
3
- import { Result } from "./Result";
4
2
  export interface LedgerIntegrity extends Base {
5
3
  check: "ledger integrity";
6
- accounts: {
7
- id: string;
8
- organization: string;
9
- timestamp: string;
10
- opening?: {
11
- at: isoly.DateTime;
12
- balance: number;
13
- };
14
- ledger?: {
15
- change: number;
16
- };
17
- closing: {
18
- at: isoly.DateTime;
19
- balance: number;
20
- };
21
- result: Result;
22
- }[];
4
+ failed: string[];
5
+ incomplete: string[];
6
+ passed: number;
7
+ total: number;
23
8
  }
24
9
  export declare namespace LedgerIntegrity { }
@@ -10,8 +10,10 @@ import { Fiat as SnapshotFiat } from "./Fiat";
10
10
  import { funding as snapshotFunding } from "./funding";
11
11
  import { Reconciliation as SnapshotReconciliation } from "./Reconciliation";
12
12
  export interface Snapshot {
13
+ version: 1;
13
14
  emoney: Balance.Extended & {
14
15
  total?: number;
16
+ accounts: Snapshot.EmoneyAccounts[];
15
17
  };
16
18
  created: isoly.DateTime;
17
19
  currency: isoly.Currency;
@@ -27,6 +29,21 @@ export interface Snapshot {
27
29
  warnings?: Warning.Snapshot[];
28
30
  }
29
31
  export declare namespace Snapshot {
32
+ type EmoneyAccounts = {
33
+ id: string;
34
+ organization: string;
35
+ opening?: {
36
+ at: isoly.DateTime;
37
+ balance: number;
38
+ };
39
+ ledger?: {
40
+ change: number;
41
+ };
42
+ closing: {
43
+ at: isoly.DateTime;
44
+ balance: number;
45
+ };
46
+ };
30
47
  export import funding = snapshotFunding;
31
48
  export import Check = SnapshotCheck;
32
49
  type Reconciliation = SnapshotReconciliation;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAGhD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AAkBtD,MAAM,KAAW,QAAQ,CAOxB;AAPD,WAAiB,QAAQ;IACV,gBAAO,GAAG,eAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,eAAe,CAAA;AACxC,CAAC,EAPgB,QAAQ,KAAR,QAAQ,QAOxB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAGhD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AAmBtD,MAAM,KAAW,QAAQ,CAcxB;AAdD,WAAiB,QAAQ;IAQV,gBAAO,GAAG,eAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,eAAe,CAAA;AACxC,CAAC,EAdgB,QAAQ,KAAR,QAAQ,QAcxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.618",
3
+ "version": "0.1.620",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",