@pax2pay/model-banking 0.1.51 → 0.1.53

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.
@@ -0,0 +1,81 @@
1
+ import { gracely } from "gracely"
2
+ import { isoly } from "isoly"
3
+ import { isly } from "isly"
4
+ import { Transaction } from "../Transaction"
5
+
6
+ export type Settlement = Succeeded | Failed
7
+
8
+ export interface Base {
9
+ id: string
10
+ created: [string, isoly.DateTime]
11
+ configuration: string
12
+ status: string
13
+ }
14
+
15
+ export interface Failed extends Base {
16
+ status: "failed"
17
+ }
18
+
19
+ export interface Succeeded extends Base {
20
+ settled?: { user: string; created: isoly.DateTime; transaction: string }
21
+ amount: Record<isoly.Currency, number>
22
+ fee: Record<isoly.Currency, number>
23
+ entries: {
24
+ status: "succeeded" | "failed"
25
+ type: "capture" | "cancel" | "refund"
26
+ account: string
27
+ card: string
28
+ transaction: string
29
+ amount: [isoly.Currency, number]
30
+ fee: [isoly.Currency, number]
31
+ }[]
32
+ status: "succeeded"
33
+ }
34
+
35
+ export namespace Settlement {
36
+ export const type = isly.union<Settlement, Succeeded, Failed>(
37
+ isly.object<Succeeded>({
38
+ id: isly.string(),
39
+ created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
40
+ configuration: isly.string(),
41
+ settled: isly
42
+ .object<{ user: string; created: isoly.DateTime; transaction: string }>({
43
+ user: isly.string(),
44
+ created: isly.fromIs("Settlement.settled.created", isoly.DateTime.is),
45
+ transaction: isly.string(),
46
+ })
47
+ .optional(),
48
+ amount: isly.record(isly.fromIs("Settlement.entries.amount", isoly.Currency.is), isly.number()),
49
+ fee: isly.record(isly.fromIs("Settlement.entries.fee", isoly.Currency.is), isly.number()),
50
+ entries: isly
51
+ .object<{
52
+ status: "succeeded" | "failed"
53
+ type: "capture" | "cancel" | "refund"
54
+ account: string
55
+ card: string
56
+ transaction: string
57
+ amount: [isoly.Currency, number]
58
+ fee: [isoly.Currency, number]
59
+ }>({
60
+ status: isly.string(),
61
+ type: isly.string(),
62
+ account: isly.string(),
63
+ card: isly.string(),
64
+ transaction: isly.string(),
65
+ amount: isly.tuple(isly.fromIs("Settlement.entries.amount", isoly.Currency.is), isly.number()),
66
+ fee: isly.tuple(isly.fromIs("Settlement.entries.amount", isoly.Currency.is), isly.number()),
67
+ })
68
+ .array(),
69
+ status: isly.string("succeeded"),
70
+ }),
71
+ isly.object<Failed>({
72
+ id: isly.string(),
73
+ created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
74
+ configuration: isly.string(),
75
+ status: isly.string("failed"),
76
+ })
77
+ )
78
+ export const is = type.is
79
+ export const flaw = type.flaw
80
+ export type Result = (Transaction | (gracely.Error & { id: string }))[]
81
+ }
@@ -1,4 +1,5 @@
1
1
  import { isoly } from "isoly"
2
+ import { isly } from "isly"
2
3
  import { Realm } from "../../Realm"
3
4
  import { Supplier } from "../../Supplier"
4
5
 
@@ -7,20 +8,17 @@ export interface Creatable {
7
8
  realm: Realm
8
9
  supplier: Supplier
9
10
  currencies: isoly.Currency[]
10
- type: "safeguarded" | "other"
11
+ type: "safeguarded" | "other" | "external"
11
12
  }
12
13
 
13
14
  export namespace Creatable {
14
- export function is(value: Creatable | any): value is Creatable {
15
- return (
16
- value &&
17
- typeof value == "object" &&
18
- typeof value.name == "string" &&
19
- Realm.is(value.realm) &&
20
- Supplier.is(value.supplier) &&
21
- Array.isArray(value.currencies) &&
22
- value.currencies.every(isoly.Currency.is) &&
23
- (value.type == "safeguarded" || value.type == "other")
24
- )
25
- }
15
+ export const type = isly.object<Creatable>({
16
+ name: isly.string(),
17
+ realm: isly.fromIs("realm", Realm.is),
18
+ supplier: isly.fromIs("supplier", Supplier.is),
19
+ currencies: isly.fromIs("Account.Creatable.currencies", isoly.Currency.is).array(),
20
+ type: isly.string(["safeguarded", "other", "external"]),
21
+ })
22
+ export const is = type.is
23
+ export const flaw = type.flaw
26
24
  }
@@ -1,4 +1,5 @@
1
1
  import { isoly } from "isoly"
2
+ import { isly } from "isly"
2
3
  import { Rail } from "../../Rail"
3
4
  import { Supplier } from "../../Supplier"
4
5
  import { Balance } from "../Balance"
@@ -8,24 +9,21 @@ export interface Fetchable {
8
9
  supplier: Supplier
9
10
  reference: string
10
11
  currencies: isoly.Currency[]
11
- type: "safeguarded" | "other"
12
+ type: "safeguarded" | "other" | "external"
12
13
  rail: Rail[]
13
14
  balance: Balance
14
15
  }
15
16
 
16
17
  export namespace Fetchable {
17
- export function is(value: Fetchable | any): value is Fetchable {
18
- return (
19
- value &&
20
- typeof value == "object" &&
21
- typeof value.name == "string" &&
22
- Supplier.is(value.supplier) &&
23
- typeof value.reference == "string" &&
24
- Array.isArray(value.currencies) &&
25
- value.currencies.every(isoly.Currency.is) &&
26
- (value.type == "safeguarded" || value.type == "other") &&
27
- Array.isArray(value.rail) &&
28
- value.rail.every(Rail.is)
29
- )
30
- }
18
+ export const type = isly.object<Fetchable>({
19
+ name: isly.string(),
20
+ supplier: isly.fromIs("supplier", Supplier.is),
21
+ reference: isly.string(),
22
+ currencies: isly.fromIs("Account.Fetchable.currencies", isoly.Currency.is).array(),
23
+ type: isly.string(["safeguarded", "other", "external"]),
24
+ rail: isly.fromIs("Account.Fetchable.rail", Rail.is).array(),
25
+ balance: isly.fromIs("Account.Fetchable.rail", Balance.is),
26
+ })
27
+ export const is = type.is
28
+ export const flaw = type.flaw
31
29
  }
@@ -1,5 +1,6 @@
1
1
  import * as cryptly from "cryptly"
2
2
  import { isoly } from "isoly"
3
+ import { isly } from "isly"
3
4
  import { Realm } from "../../Realm"
4
5
  import { Supplier } from "../../Supplier"
5
6
 
@@ -12,15 +13,13 @@ export interface Storable {
12
13
  }
13
14
 
14
15
  export namespace Storable {
15
- export function is(value: Storable | any): value is Storable {
16
- return (
17
- value &&
18
- typeof value == "object" &&
19
- cryptly.Identifier.is(value.id, 8) &&
20
- isoly.DateTime.is(value.created) &&
21
- Realm.is(value.realm) &&
22
- Supplier.is(value.supplier) &&
23
- typeof value.reference == "string"
24
- )
25
- }
16
+ export const type = isly.object<Storable>({
17
+ id: isly.string(),
18
+ created: isly.fromIs("Treasury.Account.Storable", isoly.DateTime.is),
19
+ realm: isly.fromIs("realm", Realm.is),
20
+ supplier: isly.fromIs("supplier", Supplier.is),
21
+ reference: isly.string(),
22
+ })
23
+ export const is = type.is
24
+ export const flaw = type.flaw
26
25
  }
@@ -1,5 +1,6 @@
1
1
  import * as cryptly from "cryptly"
2
2
  import { isoly } from "isoly"
3
+ import { isly } from "isly"
3
4
  import { Rail } from "../../Rail"
4
5
  import { Realm } from "../../Realm"
5
6
  import { Supplier } from "../../Supplier"
@@ -16,29 +17,26 @@ export interface Account {
16
17
  supplier: Supplier
17
18
  reference: string
18
19
  currencies: isoly.Currency[]
19
- type: "safeguarded" | "other"
20
+ type: "safeguarded" | "other" | "external"
20
21
  rail: Rail[]
21
22
  balance: Balance
22
23
  }
23
24
 
24
25
  export namespace Account {
25
- export function is(value: Account | any): value is Account {
26
- return (
27
- value &&
28
- typeof value == "object" &&
29
- cryptly.Identifier.is(value.id, 8) &&
30
- isoly.DateTime.is(value.created) &&
31
- typeof value.name == "string" &&
32
- Realm.is(value.realm) &&
33
- Supplier.is(value.supplier) &&
34
- typeof value.reference == "string" &&
35
- Array.isArray(value.currencies) &&
36
- value.currencies.every(isoly.Currency.is) &&
37
- (value.type == "safeguarded" || value.type == "other") &&
38
- Array.isArray(value.rail) &&
39
- value.rail.every(Rail.is)
40
- )
41
- }
26
+ export const type = isly.object<Account>({
27
+ id: isly.string(),
28
+ created: isly.fromIs("Treasury.Account.Created", isoly.DateTime.is),
29
+ name: isly.string(),
30
+ realm: isly.fromIs("realm", Realm.is),
31
+ supplier: isly.fromIs("supplier", Supplier.is),
32
+ reference: isly.string(),
33
+ currencies: isly.fromIs("Treasury.Account.currencies", isoly.Currency.is).array(),
34
+ type: isly.string(["safeguarded", "other", "external"]),
35
+ rail: isly.fromIs("Treasury.Account.rail", Rail.is).array(),
36
+ balance: isly.fromIs("Treasury.Account.rail", Balance.is),
37
+ })
38
+ export const is = type.is
39
+ export const flaw = type.flaw
42
40
  export function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier {
43
41
  return cryptly.Identifier.is(value, 8)
44
42
  }
@@ -0,0 +1,41 @@
1
+ import { gracely } from "gracely";
2
+ import { isoly } from "isoly";
3
+ import { isly } from "isly";
4
+ import { Transaction } from "../Transaction";
5
+ export type Settlement = Succeeded | Failed;
6
+ export interface Base {
7
+ id: string;
8
+ created: [string, isoly.DateTime];
9
+ configuration: string;
10
+ status: string;
11
+ }
12
+ export interface Failed extends Base {
13
+ status: "failed";
14
+ }
15
+ export interface Succeeded extends Base {
16
+ settled?: {
17
+ user: string;
18
+ created: isoly.DateTime;
19
+ transaction: string;
20
+ };
21
+ amount: Record<isoly.Currency, number>;
22
+ fee: Record<isoly.Currency, number>;
23
+ entries: {
24
+ status: "succeeded" | "failed";
25
+ type: "capture" | "cancel" | "refund";
26
+ account: string;
27
+ card: string;
28
+ transaction: string;
29
+ amount: [isoly.Currency, number];
30
+ fee: [isoly.Currency, number];
31
+ }[];
32
+ status: "succeeded";
33
+ }
34
+ export declare namespace Settlement {
35
+ const type: isly.Type<Settlement>;
36
+ const is: isly.Type.IsFunction<Settlement>;
37
+ const flaw: isly.Type.FlawFunction;
38
+ type Result = (Transaction | (gracely.Error & {
39
+ id: string;
40
+ }))[];
41
+ }
@@ -0,0 +1,39 @@
1
+ import { isoly } from "isoly";
2
+ import { isly } from "isly";
3
+ export var Settlement;
4
+ (function (Settlement) {
5
+ Settlement.type = isly.union(isly.object({
6
+ id: isly.string(),
7
+ created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
8
+ configuration: isly.string(),
9
+ settled: isly
10
+ .object({
11
+ user: isly.string(),
12
+ created: isly.fromIs("Settlement.settled.created", isoly.DateTime.is),
13
+ transaction: isly.string(),
14
+ })
15
+ .optional(),
16
+ amount: isly.record(isly.fromIs("Settlement.entries.amount", isoly.Currency.is), isly.number()),
17
+ fee: isly.record(isly.fromIs("Settlement.entries.fee", isoly.Currency.is), isly.number()),
18
+ entries: isly
19
+ .object({
20
+ status: isly.string(),
21
+ type: isly.string(),
22
+ account: isly.string(),
23
+ card: isly.string(),
24
+ transaction: isly.string(),
25
+ amount: isly.tuple(isly.fromIs("Settlement.entries.amount", isoly.Currency.is), isly.number()),
26
+ fee: isly.tuple(isly.fromIs("Settlement.entries.amount", isoly.Currency.is), isly.number()),
27
+ })
28
+ .array(),
29
+ status: isly.string("succeeded"),
30
+ }), isly.object({
31
+ id: isly.string(),
32
+ created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
33
+ configuration: isly.string(),
34
+ status: isly.string("failed"),
35
+ }));
36
+ Settlement.is = Settlement.type.is;
37
+ Settlement.flaw = Settlement.type.flaw;
38
+ })(Settlement || (Settlement = {}));
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Settlement/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAgC3B,MAAM,KAAW,UAAU,CA8C1B;AA9CD,WAAiB,UAAU;IACb,eAAI,GAAG,IAAI,CAAC,KAAK,CAC7B,IAAI,CAAC,MAAM,CAAY;QACtB,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACxF,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE;QAC5B,OAAO,EAAE,IAAI;aACX,MAAM,CAAiE;YACvE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;YACnB,OAA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AAC,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACxF,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE;QAC5B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;KAC7B,CAAC,CACF,CAAA;IACY,aAAE,GAAG,WAAA,IAAI,CAAC,EAAE,CAAA;IACZ,eAAI,GAAG,WAAA,IAAI,CAAC,IAAI,CAAA;AAE9B,CAAC,EA9CgB,UAAU,KAAV,UAAU,QA8C1B"}
@@ -1,4 +1,5 @@
1
1
  import { isoly } from "isoly";
2
+ import { isly } from "isly";
2
3
  import { Realm } from "../../Realm";
3
4
  import { Supplier } from "../../Supplier";
4
5
  export interface Creatable {
@@ -6,8 +7,10 @@ export interface Creatable {
6
7
  realm: Realm;
7
8
  supplier: Supplier;
8
9
  currencies: isoly.Currency[];
9
- type: "safeguarded" | "other";
10
+ type: "safeguarded" | "other" | "external";
10
11
  }
11
12
  export declare namespace Creatable {
12
- function is(value: Creatable | any): value is Creatable;
13
+ const type: isly.object.ExtendableType<Creatable>;
14
+ const is: isly.Type.IsFunction<Creatable>;
15
+ const flaw: isly.Type.FlawFunction;
13
16
  }
@@ -1,18 +1,17 @@
1
1
  import { isoly } from "isoly";
2
+ import { isly } from "isly";
2
3
  import { Realm } from "../../Realm";
3
4
  import { Supplier } from "../../Supplier";
4
5
  export var Creatable;
5
6
  (function (Creatable) {
6
- function is(value) {
7
- return (value &&
8
- typeof value == "object" &&
9
- typeof value.name == "string" &&
10
- Realm.is(value.realm) &&
11
- Supplier.is(value.supplier) &&
12
- Array.isArray(value.currencies) &&
13
- value.currencies.every(isoly.Currency.is) &&
14
- (value.type == "safeguarded" || value.type == "other"));
15
- }
16
- Creatable.is = is;
7
+ Creatable.type = isly.object({
8
+ name: isly.string(),
9
+ realm: isly.fromIs("realm", Realm.is),
10
+ supplier: isly.fromIs("supplier", Supplier.is),
11
+ currencies: isly.fromIs("Account.Creatable.currencies", isoly.Currency.is).array(),
12
+ type: isly.string(["safeguarded", "other", "external"]),
13
+ });
14
+ Creatable.is = Creatable.type.is;
15
+ Creatable.flaw = Creatable.type.flaw;
17
16
  })(Creatable || (Creatable = {}));
18
17
  //# sourceMappingURL=Creatable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Treasury/Account/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAUzC,MAAM,KAAW,SAAS,CAazB;AAbD,WAAiB,SAAS;IACzB,SAAgB,EAAE,CAAC,KAAsB;QACxC,OAAO,CACN,KAAK;YACL,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YAC3B,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC;YAC/B,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;YACzC,CAAC,KAAK,CAAC,IAAI,IAAI,aAAa,IAAI,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC,CACtD,CAAA;IACF,CAAC;IAXe,YAAE,KAWjB,CAAA;AACF,CAAC,EAbgB,SAAS,KAAT,SAAS,QAazB"}
1
+ {"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Treasury/Account/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAUzC,MAAM,KAAW,SAAS,CAUzB;AAVD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;QACrC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC9C,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,8BAA8B,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;QAClF,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;KACvD,CAAC,CAAA;IACW,YAAE,GAAG,UAAA,IAAI,CAAC,EAAE,CAAA;IACZ,cAAI,GAAG,UAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAVgB,SAAS,KAAT,SAAS,QAUzB"}
@@ -1,4 +1,5 @@
1
1
  import { isoly } from "isoly";
2
+ import { isly } from "isly";
2
3
  import { Rail } from "../../Rail";
3
4
  import { Supplier } from "../../Supplier";
4
5
  import { Balance } from "../Balance";
@@ -7,10 +8,12 @@ export interface Fetchable {
7
8
  supplier: Supplier;
8
9
  reference: string;
9
10
  currencies: isoly.Currency[];
10
- type: "safeguarded" | "other";
11
+ type: "safeguarded" | "other" | "external";
11
12
  rail: Rail[];
12
13
  balance: Balance;
13
14
  }
14
15
  export declare namespace Fetchable {
15
- function is(value: Fetchable | any): value is Fetchable;
16
+ const type: isly.object.ExtendableType<Fetchable>;
17
+ const is: isly.Type.IsFunction<Fetchable>;
18
+ const flaw: isly.Type.FlawFunction;
16
19
  }
@@ -1,20 +1,20 @@
1
1
  import { isoly } from "isoly";
2
+ import { isly } from "isly";
2
3
  import { Rail } from "../../Rail";
3
4
  import { Supplier } from "../../Supplier";
5
+ import { Balance } from "../Balance";
4
6
  export var Fetchable;
5
7
  (function (Fetchable) {
6
- function is(value) {
7
- return (value &&
8
- typeof value == "object" &&
9
- typeof value.name == "string" &&
10
- Supplier.is(value.supplier) &&
11
- typeof value.reference == "string" &&
12
- Array.isArray(value.currencies) &&
13
- value.currencies.every(isoly.Currency.is) &&
14
- (value.type == "safeguarded" || value.type == "other") &&
15
- Array.isArray(value.rail) &&
16
- value.rail.every(Rail.is));
17
- }
18
- Fetchable.is = is;
8
+ Fetchable.type = isly.object({
9
+ name: isly.string(),
10
+ supplier: isly.fromIs("supplier", Supplier.is),
11
+ reference: isly.string(),
12
+ currencies: isly.fromIs("Account.Fetchable.currencies", isoly.Currency.is).array(),
13
+ type: isly.string(["safeguarded", "other", "external"]),
14
+ rail: isly.fromIs("Account.Fetchable.rail", Rail.is).array(),
15
+ balance: isly.fromIs("Account.Fetchable.rail", Balance.is),
16
+ });
17
+ Fetchable.is = Fetchable.type.is;
18
+ Fetchable.flaw = Fetchable.type.flaw;
19
19
  })(Fetchable || (Fetchable = {}));
20
20
  //# sourceMappingURL=Fetchable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Fetchable.js","sourceRoot":"../","sources":["Treasury/Account/Fetchable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAazC,MAAM,KAAW,SAAS,CAezB;AAfD,WAAiB,SAAS;IACzB,SAAgB,EAAE,CAAC,KAAsB;QACxC,OAAO,CACN,KAAK;YACL,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,QAAQ,CAAC,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I,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACvD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,wBAAwB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;QAC5D,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,wBAAwB,EAAE,OAAO,CAAC,EAAE,CAAC;KAC1D,CAAC,CAAA;IACW,YAAE,GAAG,UAAA,IAAI,CAAC,EAAE,CAAA;IACZ,cAAI,GAAG,UAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAZgB,SAAS,KAAT,SAAS,QAYzB"}
@@ -1,5 +1,6 @@
1
1
  import * as cryptly from "cryptly";
2
2
  import { isoly } from "isoly";
3
+ import { isly } from "isly";
3
4
  import { Realm } from "../../Realm";
4
5
  import { Supplier } from "../../Supplier";
5
6
  export interface Storable {
@@ -10,5 +11,7 @@ export interface Storable {
10
11
  reference: string;
11
12
  }
12
13
  export declare namespace Storable {
13
- function is(value: Storable | any): value is Storable;
14
+ const type: isly.object.ExtendableType<Storable>;
15
+ const is: isly.Type.IsFunction<Storable>;
16
+ const flaw: isly.Type.FlawFunction;
14
17
  }
@@ -1,18 +1,17 @@
1
- import * as cryptly from "cryptly";
2
1
  import { isoly } from "isoly";
2
+ import { isly } from "isly";
3
3
  import { Realm } from "../../Realm";
4
4
  import { Supplier } from "../../Supplier";
5
5
  export var Storable;
6
6
  (function (Storable) {
7
- function is(value) {
8
- return (value &&
9
- typeof value == "object" &&
10
- cryptly.Identifier.is(value.id, 8) &&
11
- isoly.DateTime.is(value.created) &&
12
- Realm.is(value.realm) &&
13
- Supplier.is(value.supplier) &&
14
- typeof value.reference == "string");
15
- }
16
- Storable.is = is;
7
+ Storable.type = isly.object({
8
+ id: isly.string(),
9
+ created: isly.fromIs("Treasury.Account.Storable", isoly.DateTime.is),
10
+ realm: isly.fromIs("realm", Realm.is),
11
+ supplier: isly.fromIs("supplier", Supplier.is),
12
+ reference: isly.string(),
13
+ });
14
+ Storable.is = Storable.type.is;
15
+ Storable.flaw = Storable.type.flaw;
17
16
  })(Storable || (Storable = {}));
18
17
  //# sourceMappingURL=Storable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Storable.js","sourceRoot":"../","sources":["Treasury/Account/Storable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAUzC,MAAM,KAAW,QAAQ,CAYxB;AAZD,WAAiB,QAAQ;IACxB,SAAgB,EAAE,CAAC,KAAqB;QACvC,OAAO,CACN,KAAK;YACL,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;YAClC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;YAChC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YAC3B,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ,CAClC,CAAA;IACF,CAAC;IAVe,WAAE,KAUjB,CAAA;AACF,CAAC,EAZgB,QAAQ,KAAR,QAAQ,QAYxB"}
1
+ {"version":3,"file":"Storable.js","sourceRoot":"../","sources":["Treasury/Account/Storable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAUzC,MAAM,KAAW,QAAQ,CAUxB;AAVD,WAAiB,QAAQ;IACX,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW;QACzC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,2BAA2B,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACpE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;QACrC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC9C,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;KACxB,CAAC,CAAA;IACW,WAAE,GAAG,SAAA,IAAI,CAAC,EAAE,CAAA;IACZ,aAAI,GAAG,SAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAVgB,QAAQ,KAAR,QAAQ,QAUxB"}
@@ -1,5 +1,6 @@
1
1
  import * as cryptly from "cryptly";
2
2
  import { isoly } from "isoly";
3
+ import { isly } from "isly";
3
4
  import { Rail } from "../../Rail";
4
5
  import { Realm } from "../../Realm";
5
6
  import { Supplier } from "../../Supplier";
@@ -15,12 +16,14 @@ export interface Account {
15
16
  supplier: Supplier;
16
17
  reference: string;
17
18
  currencies: isoly.Currency[];
18
- type: "safeguarded" | "other";
19
+ type: "safeguarded" | "other" | "external";
19
20
  rail: Rail[];
20
21
  balance: Balance;
21
22
  }
22
23
  export declare namespace Account {
23
- function is(value: Account | any): value is Account;
24
+ const type: isly.object.ExtendableType<Account>;
25
+ const is: isly.Type.IsFunction<Account>;
26
+ const flaw: isly.Type.FlawFunction;
24
27
  function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier;
25
28
  type Creatable = AccountCreatable;
26
29
  const Creatable: typeof AccountCreatable;
@@ -1,29 +1,29 @@
1
1
  import * as cryptly from "cryptly";
2
2
  import { isoly } from "isoly";
3
+ import { isly } from "isly";
3
4
  import { Rail } from "../../Rail";
4
5
  import { Realm } from "../../Realm";
5
6
  import { Supplier } from "../../Supplier";
7
+ import { Balance } from "../Balance";
6
8
  import { Creatable as AccountCreatable } from "./Creatable";
7
9
  import { Fetchable as AccountFetchable } from "./Fetchable";
8
10
  import { Storable as AccountStorable } from "./Storable";
9
11
  export var Account;
10
12
  (function (Account) {
11
- function is(value) {
12
- return (value &&
13
- typeof value == "object" &&
14
- cryptly.Identifier.is(value.id, 8) &&
15
- isoly.DateTime.is(value.created) &&
16
- typeof value.name == "string" &&
17
- Realm.is(value.realm) &&
18
- Supplier.is(value.supplier) &&
19
- typeof value.reference == "string" &&
20
- Array.isArray(value.currencies) &&
21
- value.currencies.every(isoly.Currency.is) &&
22
- (value.type == "safeguarded" || value.type == "other") &&
23
- Array.isArray(value.rail) &&
24
- value.rail.every(Rail.is));
25
- }
26
- Account.is = is;
13
+ Account.type = isly.object({
14
+ id: isly.string(),
15
+ created: isly.fromIs("Treasury.Account.Created", isoly.DateTime.is),
16
+ name: isly.string(),
17
+ realm: isly.fromIs("realm", Realm.is),
18
+ supplier: isly.fromIs("supplier", Supplier.is),
19
+ reference: isly.string(),
20
+ currencies: isly.fromIs("Treasury.Account.currencies", isoly.Currency.is).array(),
21
+ type: isly.string(["safeguarded", "other", "external"]),
22
+ rail: isly.fromIs("Treasury.Account.rail", Rail.is).array(),
23
+ balance: isly.fromIs("Treasury.Account.rail", Balance.is),
24
+ });
25
+ Account.is = Account.type.is;
26
+ Account.flaw = Account.type.flaw;
27
27
  function isIdentifier(value) {
28
28
  return cryptly.Identifier.is(value, 8);
29
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,KAAK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AC;QAC9C,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,6BAA6B,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;QACjF,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACvD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,uBAAuB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;QAC3D,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,uBAAuB,EAAE,OAAO,CAAC,EAAE,CAAC;KACzD,CAAC,CAAA;IACW,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;IAC7B,SAAgB,YAAY,CAAC,KAA+B;QAC3D,OAAO,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACvC,CAAC;IAFe,oBAAY,eAE3B,CAAA;IAGY,iBAAS,GAAG,gBAAgB,CAAA;IAE5B,gBAAQ,GAAG,eAAe,CAAA;IAE1B,iBAAS,GAAG,gBAAgB,CAAA;AAC1C,CAAC,EAzBgB,OAAO,KAAP,OAAO,QAyBvB"}
@@ -14,6 +14,6 @@ export declare namespace Treasury {
14
14
  const Storable: typeof import("./Account/Storable").Storable;
15
15
  type Fetchable = TreasuryAccount.Fetchable;
16
16
  const Fetchable: typeof import("./Account/Fetchable").Fetchable;
17
- const is: typeof TreasuryAccount.is;
17
+ const is: import("isly/dist/Type").Type.IsFunction<TreasuryAccount>;
18
18
  }
19
19
  }
package/dist/pax2pay.d.ts CHANGED
@@ -10,3 +10,4 @@ export { Client } from "./Client";
10
10
  export { Treasury } from "./Treasury";
11
11
  export { Realm } from "./Realm";
12
12
  export { Supplier } from "./Supplier";
13
+ export { Settlement } from "./Settlement";
package/dist/pax2pay.js CHANGED
@@ -10,4 +10,5 @@ export { Client } from "./Client";
10
10
  export { Treasury } from "./Treasury";
11
11
  export { Realm } from "./Realm";
12
12
  export { Supplier } from "./Supplier";
13
+ export { Settlement } from "./Settlement";
13
14
  //# sourceMappingURL=pax2pay.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pax2pay.js","sourceRoot":"../","sources":["pax2pay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"pax2pay.js","sourceRoot":"../","sources":["pax2pay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",
package/pax2pay.ts CHANGED
@@ -10,3 +10,4 @@ export { Client } from "./Client"
10
10
  export { Treasury } from "./Treasury"
11
11
  export { Realm } from "./Realm"
12
12
  export { Supplier } from "./Supplier"
13
+ export { Settlement } from "./Settlement"