@pax2pay/model-banking 0.1.31 → 0.1.33
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/Transaction/Incoming.ts +4 -4
- package/Transaction/Reference.ts +8 -0
- package/Transaction/index.ts +3 -1
- package/dist/Transaction/Incoming.d.ts +3 -2
- package/dist/Transaction/Incoming.js +1 -2
- package/dist/Transaction/Incoming.js.map +1 -1
- package/dist/Transaction/Reference.d.ts +7 -0
- package/dist/Transaction/Reference.js +2 -0
- package/dist/Transaction/Reference.js.map +1 -0
- package/dist/Transaction/index.d.ts +3 -1
- package/dist/Transaction/index.js.map +1 -1
- package/package.json +1 -1
package/Transaction/Incoming.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as isoly from "isoly"
|
|
2
2
|
import { Rail } from "../Rail"
|
|
3
3
|
import { Creatable as TransactionCreatable } from "./Creatable"
|
|
4
|
+
import { Reference as TransactionReference } from "./Reference"
|
|
4
5
|
|
|
5
6
|
export interface Incoming extends TransactionCreatable {
|
|
6
7
|
account: Rail
|
|
7
8
|
counterpart: Rail
|
|
8
9
|
currency: isoly.Currency
|
|
9
10
|
amount: number
|
|
10
|
-
reference?:
|
|
11
|
-
posted:
|
|
11
|
+
reference?: TransactionReference
|
|
12
|
+
posted: string
|
|
12
13
|
description: string
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -21,8 +22,7 @@ export namespace Incoming {
|
|
|
21
22
|
Rail.is(value.counterpart) &&
|
|
22
23
|
isoly.Currency.is(value.currency) &&
|
|
23
24
|
typeof value.amount == "number" &&
|
|
24
|
-
|
|
25
|
-
isoly.DateTime.is(value.posted) &&
|
|
25
|
+
typeof value.posted == "string" &&
|
|
26
26
|
typeof value.description == "string"
|
|
27
27
|
)
|
|
28
28
|
}
|
package/Transaction/index.ts
CHANGED
|
@@ -5,13 +5,14 @@ import { Rail } from "../Rail"
|
|
|
5
5
|
import { Creatable as TransactionCreatable } from "./Creatable"
|
|
6
6
|
import { Incoming as TransactionIncoming } from "./Incoming"
|
|
7
7
|
import { Note as TransactionNote } from "./Note"
|
|
8
|
+
import { Reference as TransactionReference } from "./Reference"
|
|
8
9
|
|
|
9
10
|
export interface Transaction extends TransactionCreatable {
|
|
10
11
|
organization: string
|
|
11
12
|
accountId: string
|
|
12
13
|
account: Rail
|
|
13
14
|
readonly id: cryptly.Identifier
|
|
14
|
-
readonly reference?:
|
|
15
|
+
readonly reference?: TransactionReference
|
|
15
16
|
readonly posted: isoly.DateTime
|
|
16
17
|
transacted?: isoly.DateTime
|
|
17
18
|
balance: number
|
|
@@ -94,6 +95,7 @@ export namespace Transaction {
|
|
|
94
95
|
export const Creatable = TransactionCreatable
|
|
95
96
|
export type Incoming = TransactionIncoming
|
|
96
97
|
export const Incoming = TransactionIncoming
|
|
98
|
+
export type Reference = TransactionReference
|
|
97
99
|
export type Note = TransactionNote
|
|
98
100
|
export const Note = TransactionNote
|
|
99
101
|
export namespace Note {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as isoly from "isoly";
|
|
2
2
|
import { Rail } from "../Rail";
|
|
3
3
|
import { Creatable as TransactionCreatable } from "./Creatable";
|
|
4
|
+
import { Reference as TransactionReference } from "./Reference";
|
|
4
5
|
export interface Incoming extends TransactionCreatable {
|
|
5
6
|
account: Rail;
|
|
6
7
|
counterpart: Rail;
|
|
7
8
|
currency: isoly.Currency;
|
|
8
9
|
amount: number;
|
|
9
|
-
reference?:
|
|
10
|
-
posted:
|
|
10
|
+
reference?: TransactionReference;
|
|
11
|
+
posted: string;
|
|
11
12
|
description: string;
|
|
12
13
|
}
|
|
13
14
|
export declare namespace Incoming {
|
|
@@ -9,8 +9,7 @@ export var Incoming;
|
|
|
9
9
|
Rail.is(value.counterpart) &&
|
|
10
10
|
isoly.Currency.is(value.currency) &&
|
|
11
11
|
typeof value.amount == "number" &&
|
|
12
|
-
|
|
13
|
-
isoly.DateTime.is(value.posted) &&
|
|
12
|
+
typeof value.posted == "string" &&
|
|
14
13
|
typeof value.description == "string");
|
|
15
14
|
}
|
|
16
15
|
Incoming.is = is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Incoming.js","sourceRoot":"../","sources":["Transaction/Incoming.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"Incoming.js","sourceRoot":"../","sources":["Transaction/Incoming.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAc9B,MAAM,KAAW,QAAQ,CAaxB;AAbD,WAAiB,QAAQ;IACxB,SAAgB,EAAE,CAAC,KAAqB;QACvC,OAAO,CACN,KAAK;YACL,OAAO,KAAK,IAAI,QAAQ;YACxB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;YACtB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC;YAC1B,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YACjC,OAAO,KAAK,CAAC,MAAM,IAAI,QAAQ;YAC/B,OAAO,KAAK,CAAC,MAAM,IAAI,QAAQ;YAC/B,OAAO,KAAK,CAAC,WAAW,IAAI,QAAQ,CACpC,CAAA;IACF,CAAC;IAXe,WAAE,KAWjB,CAAA;AACF,CAAC,EAbgB,QAAQ,KAAR,QAAQ,QAaxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reference.js","sourceRoot":"../","sources":["Transaction/Reference.ts"],"names":[],"mappings":""}
|
|
@@ -5,12 +5,13 @@ import { Rail } from "../Rail";
|
|
|
5
5
|
import { Creatable as TransactionCreatable } from "./Creatable";
|
|
6
6
|
import { Incoming as TransactionIncoming } from "./Incoming";
|
|
7
7
|
import { Note as TransactionNote } from "./Note";
|
|
8
|
+
import { Reference as TransactionReference } from "./Reference";
|
|
8
9
|
export interface Transaction extends TransactionCreatable {
|
|
9
10
|
organization: string;
|
|
10
11
|
accountId: string;
|
|
11
12
|
account: Rail;
|
|
12
13
|
readonly id: cryptly.Identifier;
|
|
13
|
-
readonly reference?:
|
|
14
|
+
readonly reference?: TransactionReference;
|
|
14
15
|
readonly posted: isoly.DateTime;
|
|
15
16
|
transacted?: isoly.DateTime;
|
|
16
17
|
balance: number;
|
|
@@ -32,6 +33,7 @@ export declare namespace Transaction {
|
|
|
32
33
|
const Creatable: typeof TransactionCreatable;
|
|
33
34
|
type Incoming = TransactionIncoming;
|
|
34
35
|
const Incoming: typeof TransactionIncoming;
|
|
36
|
+
type Reference = TransactionReference;
|
|
35
37
|
type Note = TransactionNote;
|
|
36
38
|
const Note: typeof TransactionNote;
|
|
37
39
|
namespace Note {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAC/D,OAAO,EAAE,QAAQ,IAAI,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAC5D,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,cAA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