@pax2pay/model-banking 0.1.623 → 0.1.625

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.
@@ -2,6 +2,9 @@ import { Base } from "./Base"
2
2
 
3
3
  export interface LedgerIntegrity extends Base {
4
4
  check: "ledger integrity"
5
+ opening: { balance: number }
6
+ ledger: { change: number }
7
+ closing: { balance: number }
5
8
  failed: string[]
6
9
  incomplete: string[]
7
10
  passed: number
@@ -1,7 +1,7 @@
1
1
  import { Base as ResultBase } from "./Base"
2
2
 
3
3
  export interface UnallocatedFunds extends ResultBase {
4
- check: "unidentified funds"
4
+ check: "unallocated funds"
5
5
  balance: number
6
6
  }
7
7
  export namespace UnallocatedFunds {}
@@ -11,7 +11,7 @@ import { funding as snapshotFunding } from "./funding"
11
11
  import { Reconciliation as SnapshotReconciliation } from "./Reconciliation"
12
12
 
13
13
  export interface Snapshot {
14
- version: 1
14
+ version: typeof Snapshot.version
15
15
  emoney: Balance.Extended & { total?: number; accounts: Snapshot.EmoneyAccounts[] }
16
16
  created: isoly.DateTime
17
17
  currency: isoly.Currency
@@ -27,6 +27,7 @@ export interface Snapshot {
27
27
  warnings?: Warning.Snapshot[]
28
28
  }
29
29
  export namespace Snapshot {
30
+ export const version = 2
30
31
  export type EmoneyAccounts = {
31
32
  id: string
32
33
  organization: string
@@ -1,6 +1,15 @@
1
1
  import { Base } from "./Base";
2
2
  export interface LedgerIntegrity extends Base {
3
3
  check: "ledger integrity";
4
+ opening: {
5
+ balance: number;
6
+ };
7
+ ledger: {
8
+ change: number;
9
+ };
10
+ closing: {
11
+ balance: number;
12
+ };
4
13
  failed: string[];
5
14
  incomplete: string[];
6
15
  passed: number;
@@ -1,6 +1,6 @@
1
1
  import { Base as ResultBase } from "./Base";
2
2
  export interface UnallocatedFunds extends ResultBase {
3
- check: "unidentified funds";
3
+ check: "unallocated funds";
4
4
  balance: number;
5
5
  }
6
6
  export declare namespace UnallocatedFunds { }
@@ -10,7 +10,7 @@ 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
+ version: typeof Snapshot.version;
14
14
  emoney: Balance.Extended & {
15
15
  total?: number;
16
16
  accounts: Snapshot.EmoneyAccounts[];
@@ -29,6 +29,7 @@ export interface Snapshot {
29
29
  warnings?: Warning.Snapshot[];
30
30
  }
31
31
  export declare namespace Snapshot {
32
+ const version = 2;
32
33
  type EmoneyAccounts = {
33
34
  id: string;
34
35
  organization: string;
@@ -6,6 +6,7 @@ const Check_1 = require("./Check");
6
6
  const funding_1 = require("./funding");
7
7
  var Snapshot;
8
8
  (function (Snapshot) {
9
+ Snapshot.version = 2;
9
10
  Snapshot.funding = funding_1.funding;
10
11
  Snapshot.Check = Check_1.Check;
11
12
  Snapshot.Account = Account_1.Account;
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":";;;AAKA,uCAAsD;AACtD,mCAAgD;AAGhD,uCAAsD;AAmBtD,IAAiB,QAAQ,CAexB;AAfD,WAAiB,QAAQ;IACX,gBAAO,GAAG,CAAC,CAAA;IAQV,gBAAO,GAAG,iBAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,iBAAe,CAAA;AACxC,CAAC,EAfgB,QAAQ,wBAAR,QAAQ,QAexB"}
@@ -1,6 +1,15 @@
1
1
  import { Base } from "./Base";
2
2
  export interface LedgerIntegrity extends Base {
3
3
  check: "ledger integrity";
4
+ opening: {
5
+ balance: number;
6
+ };
7
+ ledger: {
8
+ change: number;
9
+ };
10
+ closing: {
11
+ balance: number;
12
+ };
4
13
  failed: string[];
5
14
  incomplete: string[];
6
15
  passed: number;
@@ -1,6 +1,6 @@
1
1
  import { Base as ResultBase } from "./Base";
2
2
  export interface UnallocatedFunds extends ResultBase {
3
- check: "unidentified funds";
3
+ check: "unallocated funds";
4
4
  balance: number;
5
5
  }
6
6
  export declare namespace UnallocatedFunds { }
@@ -10,7 +10,7 @@ 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
+ version: typeof Snapshot.version;
14
14
  emoney: Balance.Extended & {
15
15
  total?: number;
16
16
  accounts: Snapshot.EmoneyAccounts[];
@@ -29,6 +29,7 @@ export interface Snapshot {
29
29
  warnings?: Warning.Snapshot[];
30
30
  }
31
31
  export declare namespace Snapshot {
32
+ const version = 2;
32
33
  type EmoneyAccounts = {
33
34
  id: string;
34
35
  organization: string;
@@ -3,6 +3,7 @@ import { Check as SnapshotCheck } from "./Check";
3
3
  import { funding as snapshotFunding } from "./funding";
4
4
  export var Snapshot;
5
5
  (function (Snapshot) {
6
+ Snapshot.version = 2;
6
7
  Snapshot.funding = snapshotFunding;
7
8
  Snapshot.Check = SnapshotCheck;
8
9
  Snapshot.Account = SnapshotAccount;
@@ -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;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"}
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,CAexB;AAfD,WAAiB,QAAQ;IACX,gBAAO,GAAG,CAAC,CAAA;IAQV,gBAAO,GAAG,eAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,eAAe,CAAA;AACxC,CAAC,EAfgB,QAAQ,KAAR,QAAQ,QAexB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.623",
3
+ "version": "0.1.625",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",