@pax2pay/model-banking 0.1.60 → 0.1.62
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/Settlement/index.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { isly } from "isly"
|
|
|
3
3
|
import { Entry as SettlementEntry } from "./Entry"
|
|
4
4
|
|
|
5
5
|
export type Settlement = Settlement.Succeeded | Settlement.Failed | Settlement.Ongoing
|
|
6
|
-
|
|
7
6
|
export namespace Settlement {
|
|
7
|
+
export type Summary = Omit<Settlement.Succeeded, "entries"> | Settlement.Failed | Settlement.Ongoing
|
|
8
8
|
export interface Base {
|
|
9
9
|
id: string
|
|
10
10
|
created: [string, isoly.DateTime]
|
|
@@ -12,7 +12,7 @@ export namespace Settlement {
|
|
|
12
12
|
status: string
|
|
13
13
|
}
|
|
14
14
|
export interface Succeeded extends Base {
|
|
15
|
-
settled?: { user: string; created: isoly.DateTime;
|
|
15
|
+
settled?: { user: string; created: isoly.DateTime; transactions: Record<string, number> }
|
|
16
16
|
amount: Partial<Record<isoly.Currency, number>>
|
|
17
17
|
fee: Partial<Record<isoly.Currency, number>>
|
|
18
18
|
entries: SettlementEntry[]
|
|
@@ -32,10 +32,10 @@ export namespace Settlement {
|
|
|
32
32
|
created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
|
|
33
33
|
configuration: isly.string(),
|
|
34
34
|
settled: isly
|
|
35
|
-
.object<{ user: string; created: isoly.DateTime;
|
|
35
|
+
.object<{ user: string; created: isoly.DateTime; transactions: Record<string, number> }>({
|
|
36
36
|
user: isly.string(),
|
|
37
37
|
created: isly.fromIs("Settlement.settled.created", isoly.DateTime.is),
|
|
38
|
-
|
|
38
|
+
transactions: isly.record(isly.string(), isly.number()),
|
|
39
39
|
})
|
|
40
40
|
.optional(),
|
|
41
41
|
amount: isly.record(isly.fromIs("Settlement.entries.amount", isoly.Currency.is), isly.number()),
|
|
@@ -3,6 +3,7 @@ import { isly } from "isly";
|
|
|
3
3
|
import { Entry as SettlementEntry } from "./Entry";
|
|
4
4
|
export type Settlement = Settlement.Succeeded | Settlement.Failed | Settlement.Ongoing;
|
|
5
5
|
export declare namespace Settlement {
|
|
6
|
+
type Summary = Omit<Settlement.Succeeded, "entries"> | Settlement.Failed | Settlement.Ongoing;
|
|
6
7
|
interface Base {
|
|
7
8
|
id: string;
|
|
8
9
|
created: [string, isoly.DateTime];
|
|
@@ -13,7 +14,7 @@ export declare namespace Settlement {
|
|
|
13
14
|
settled?: {
|
|
14
15
|
user: string;
|
|
15
16
|
created: isoly.DateTime;
|
|
16
|
-
|
|
17
|
+
transactions: Record<string, number>;
|
|
17
18
|
};
|
|
18
19
|
amount: Partial<Record<isoly.Currency, number>>;
|
|
19
20
|
fee: Partial<Record<isoly.Currency, number>>;
|
package/dist/Settlement/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export var Settlement;
|
|
|
13
13
|
.object({
|
|
14
14
|
user: isly.string(),
|
|
15
15
|
created: isly.fromIs("Settlement.settled.created", isoly.DateTime.is),
|
|
16
|
-
|
|
16
|
+
transactions: isly.record(isly.string(), isly.number()),
|
|
17
17
|
})
|
|
18
18
|
.optional(),
|
|
19
19
|
amount: isly.record(isly.fromIs("Settlement.entries.amount", isoly.Currency.is), isly.number()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Settlement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,IAAI,eAAe,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Settlement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CA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AI,CAAC,CAAA;IACpG,aAAE,GAAG,WAAA,IAAI,CAAC,EAAE,CAAA;IACZ,eAAI,GAAG,WAAA,IAAI,CAAC,IAAI,CAAA;IAChB,gBAAK,GAAG,eAAe,CAAA;AAErC,CAAC,EAlEgB,UAAU,KAAV,UAAU,QAkE1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pax2pay/model-banking",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.62",
|
|
4
4
|
"description": "Library containing data model types and functions for the Pax2Pay Banking API.",
|
|
5
5
|
"author": "Pax2Pay Ltd",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
"prepare": "npm run build",
|
|
54
54
|
"clean": "rimraf dist node_modules coverage"
|
|
55
55
|
},
|
|
56
|
+
"overrides": {
|
|
57
|
+
"semver": "7.5.3"
|
|
58
|
+
},
|
|
56
59
|
"devDependencies": {
|
|
57
60
|
"@types/jest": "^29.5.2",
|
|
58
61
|
"@typescript-eslint/eslint-plugin": "5.59.11",
|