@pax2pay/model-banking 0.1.661 → 0.1.663
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/Rail/Address/Bic.ts +27 -0
- package/Rail/Address/index.ts +28 -17
- package/dist/cjs/Account/Details.d.ts +6 -0
- package/dist/cjs/Account/index.d.ts +12 -0
- package/dist/cjs/Rail/Address/Bic.d.ts +19 -0
- package/dist/cjs/Rail/Address/Bic.js +24 -0
- package/dist/cjs/Rail/Address/Bic.js.map +1 -0
- package/dist/cjs/Rail/Address/index.d.ts +12 -4
- package/dist/cjs/Rail/Address/index.js +39 -30
- package/dist/cjs/Rail/Address/index.js.map +1 -1
- package/dist/cjs/Transaction/Creatable.d.ts +6 -0
- package/dist/cjs/Transaction/PreTransaction/Base.d.ts +6 -0
- package/dist/cjs/Transaction/PreTransaction/Incoming.d.ts +12 -0
- package/dist/cjs/Transaction/PreTransaction/Outgoing.d.ts +6 -0
- package/dist/cjs/Transaction/PreTransaction/index.d.ts +18 -0
- package/dist/cjs/Transaction/index.d.ts +38 -2
- package/dist/mjs/Account/Details.d.ts +6 -0
- package/dist/mjs/Account/index.d.ts +12 -0
- package/dist/mjs/Rail/Address/Bic.d.ts +19 -0
- package/dist/mjs/Rail/Address/Bic.js +21 -0
- package/dist/mjs/Rail/Address/Bic.js.map +1 -0
- package/dist/mjs/Rail/Address/index.d.ts +12 -4
- package/dist/mjs/Rail/Address/index.js +39 -30
- package/dist/mjs/Rail/Address/index.js.map +1 -1
- package/dist/mjs/Transaction/Creatable.d.ts +6 -0
- package/dist/mjs/Transaction/PreTransaction/Base.d.ts +6 -0
- package/dist/mjs/Transaction/PreTransaction/Incoming.d.ts +12 -0
- package/dist/mjs/Transaction/PreTransaction/Outgoing.d.ts +6 -0
- package/dist/mjs/Transaction/PreTransaction/index.d.ts +18 -0
- package/dist/mjs/Transaction/index.d.ts +38 -2
- package/package.json +5 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
import { zod } from "../../zod"
|
|
3
|
+
|
|
4
|
+
export interface Bic {
|
|
5
|
+
type: "bic"
|
|
6
|
+
account: string
|
|
7
|
+
institution: string // BIC, validated against the SWIFT directory by the supplier
|
|
8
|
+
holder: string
|
|
9
|
+
transactor?: string
|
|
10
|
+
}
|
|
11
|
+
export namespace Bic {
|
|
12
|
+
export const currencies = ["USD"] as const
|
|
13
|
+
export const type = isly.object<Bic>({
|
|
14
|
+
type: isly.string("bic"),
|
|
15
|
+
account: isly.string(),
|
|
16
|
+
institution: isly.string(),
|
|
17
|
+
holder: isly.string(),
|
|
18
|
+
transactor: isly.string().optional(),
|
|
19
|
+
})
|
|
20
|
+
export const typeZod = zod.object({
|
|
21
|
+
type: zod.literal("bic"),
|
|
22
|
+
account: zod.string(),
|
|
23
|
+
institution: zod.string(),
|
|
24
|
+
holder: zod.string(),
|
|
25
|
+
transactor: zod.string().optional(),
|
|
26
|
+
})
|
|
27
|
+
}
|
package/Rail/Address/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { Realm } from "../../Realm"
|
|
3
3
|
import { zod } from "../../zod"
|
|
4
|
+
import { Bic as AddressBic } from "./Bic"
|
|
4
5
|
import { Card as AddressCard } from "./Card"
|
|
5
6
|
import { Iban as AddressIban } from "./Iban"
|
|
6
7
|
import { Internal as AddressInternal } from "./internal"
|
|
@@ -15,13 +16,14 @@ export type Address =
|
|
|
15
16
|
| AddressInternal
|
|
16
17
|
| AddressPaxGiro
|
|
17
18
|
| AddressScan
|
|
19
|
+
| AddressBic
|
|
18
20
|
export namespace Address {
|
|
19
21
|
export const realm: Record<Realm, string[]> = {
|
|
20
|
-
test: ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"],
|
|
22
|
+
test: ["paxgiro", "internal", "iban", "bic", "scan", "card", "paxgiro-credit"],
|
|
21
23
|
uk: ["internal", "iban", "scan", "card"],
|
|
22
24
|
eea: ["internal", "iban", "scan", "card"],
|
|
23
25
|
}
|
|
24
|
-
export const values = ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"] as const
|
|
26
|
+
export const values = ["paxgiro", "internal", "iban", "bic", "scan", "card", "paxgiro-credit"] as const
|
|
25
27
|
export type Type = (typeof values)[number]
|
|
26
28
|
export function compare(addresses: [Address, Address]): boolean {
|
|
27
29
|
return Object.entries(addresses[0]).every(([key, value]) => value == (addresses[1] as any)[key])
|
|
@@ -36,44 +38,50 @@ export namespace Address {
|
|
|
36
38
|
}
|
|
37
39
|
return result
|
|
38
40
|
}
|
|
39
|
-
export function stringify(
|
|
41
|
+
export function stringify(address: Address): string {
|
|
40
42
|
let result: string
|
|
41
|
-
switch (
|
|
43
|
+
switch (address.type) {
|
|
42
44
|
case "iban":
|
|
43
|
-
result = `iban-${
|
|
45
|
+
result = `iban-${address.iban}`
|
|
44
46
|
break
|
|
45
47
|
case "paxgiro":
|
|
46
|
-
result = `pxg-${
|
|
48
|
+
result = `pxg-${address.identifier}`
|
|
47
49
|
break
|
|
48
50
|
case "internal":
|
|
49
|
-
result = `internal-${
|
|
51
|
+
result = `internal-${address.identifier}`
|
|
50
52
|
break
|
|
51
53
|
case "scan":
|
|
52
|
-
result = `scan-${
|
|
54
|
+
result = `scan-${address.sort}-${address.account}`
|
|
53
55
|
break
|
|
54
56
|
case "card":
|
|
55
|
-
result = "id" in
|
|
57
|
+
result = "id" in address ? `${address.type}-${address.id}` : `${address.type}-merchant-${address.merchant.id}`
|
|
58
|
+
break
|
|
59
|
+
case "bic":
|
|
60
|
+
result = `bic-${address.institution}-${address.account}`
|
|
56
61
|
break
|
|
57
62
|
}
|
|
58
63
|
return result
|
|
59
64
|
}
|
|
60
|
-
export function beautify(
|
|
65
|
+
export function beautify(address: Address): string {
|
|
61
66
|
let result: string
|
|
62
|
-
switch (
|
|
67
|
+
switch (address.type) {
|
|
63
68
|
case "iban":
|
|
64
|
-
result = `${
|
|
69
|
+
result = `${address.iban}`
|
|
65
70
|
break
|
|
66
71
|
case "paxgiro":
|
|
67
|
-
result = `${
|
|
72
|
+
result = `${address.identifier}`
|
|
68
73
|
break
|
|
69
74
|
case "internal":
|
|
70
|
-
result = `${
|
|
75
|
+
result = `${address.identifier}`
|
|
71
76
|
break
|
|
72
77
|
case "scan":
|
|
73
|
-
result = `${
|
|
78
|
+
result = `${address.sort} ${address.account}`
|
|
74
79
|
break
|
|
75
80
|
case "card":
|
|
76
|
-
result = "id" in
|
|
81
|
+
result = "id" in address ? `${address.type}-${address.id}` : `${address.type}-merchant-${address.merchant.id}`
|
|
82
|
+
break
|
|
83
|
+
case "bic":
|
|
84
|
+
result = `${address.institution} ${address.account}`
|
|
77
85
|
break
|
|
78
86
|
}
|
|
79
87
|
return result
|
|
@@ -84,7 +92,8 @@ export namespace Address {
|
|
|
84
92
|
AddressIban.type,
|
|
85
93
|
AddressInternal.type,
|
|
86
94
|
AddressPaxGiro.type,
|
|
87
|
-
AddressScan.type
|
|
95
|
+
AddressScan.type,
|
|
96
|
+
AddressBic.type
|
|
88
97
|
)
|
|
89
98
|
export const typeZod = zod.union([
|
|
90
99
|
AddressCard.typeZod,
|
|
@@ -93,6 +102,7 @@ export namespace Address {
|
|
|
93
102
|
AddressInternal.typeZod,
|
|
94
103
|
AddressPaxGiro.typeZod,
|
|
95
104
|
AddressScan.typeZod,
|
|
105
|
+
AddressBic.typeZod,
|
|
96
106
|
])
|
|
97
107
|
|
|
98
108
|
export import PaxGiro = AddressPaxGiro
|
|
@@ -101,4 +111,5 @@ export namespace Address {
|
|
|
101
111
|
export import Internal = AddressInternal
|
|
102
112
|
export import Card = AddressCard
|
|
103
113
|
export import Route = AddressRoute
|
|
114
|
+
export import Bic = AddressBic
|
|
104
115
|
}
|
|
@@ -251,6 +251,12 @@ export declare namespace Details {
|
|
|
251
251
|
account: zod.ZodString;
|
|
252
252
|
holder: zod.ZodString;
|
|
253
253
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
254
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
255
|
+
type: zod.ZodLiteral<"bic">;
|
|
256
|
+
account: zod.ZodString;
|
|
257
|
+
institution: zod.ZodString;
|
|
258
|
+
holder: zod.ZodString;
|
|
259
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
254
260
|
}, zod.z.core.$strip>]>>;
|
|
255
261
|
}, zod.z.core.$strip>;
|
|
256
262
|
interface Creatable {
|
|
@@ -284,6 +284,12 @@ export declare namespace Account {
|
|
|
284
284
|
account: zod.ZodString;
|
|
285
285
|
holder: zod.ZodString;
|
|
286
286
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
287
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
288
|
+
type: zod.ZodLiteral<"bic">;
|
|
289
|
+
account: zod.ZodString;
|
|
290
|
+
institution: zod.ZodString;
|
|
291
|
+
holder: zod.ZodString;
|
|
292
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
287
293
|
}, zod.z.core.$strip>]>>;
|
|
288
294
|
details: zod.ZodOptional<zod.ZodObject<{
|
|
289
295
|
supplier: zod.ZodEnum<{
|
|
@@ -526,6 +532,12 @@ export declare namespace Account {
|
|
|
526
532
|
account: zod.ZodString;
|
|
527
533
|
holder: zod.ZodString;
|
|
528
534
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
535
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
536
|
+
type: zod.ZodLiteral<"bic">;
|
|
537
|
+
account: zod.ZodString;
|
|
538
|
+
institution: zod.ZodString;
|
|
539
|
+
holder: zod.ZodString;
|
|
540
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
529
541
|
}, zod.z.core.$strip>]>>;
|
|
530
542
|
}, zod.z.core.$strip>>;
|
|
531
543
|
charges: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { zod } from "../../zod";
|
|
2
|
+
export interface Bic {
|
|
3
|
+
type: "bic";
|
|
4
|
+
account: string;
|
|
5
|
+
institution: string;
|
|
6
|
+
holder: string;
|
|
7
|
+
transactor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace Bic {
|
|
10
|
+
const currencies: readonly ["USD"];
|
|
11
|
+
const type: import("isly/dist/cjs/object").IslyObject<Bic, object>;
|
|
12
|
+
const typeZod: zod.ZodObject<{
|
|
13
|
+
type: zod.ZodLiteral<"bic">;
|
|
14
|
+
account: zod.ZodString;
|
|
15
|
+
institution: zod.ZodString;
|
|
16
|
+
holder: zod.ZodString;
|
|
17
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
18
|
+
}, zod.z.core.$strip>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Bic = void 0;
|
|
4
|
+
const isly_1 = require("isly");
|
|
5
|
+
const zod_1 = require("../../zod");
|
|
6
|
+
var Bic;
|
|
7
|
+
(function (Bic) {
|
|
8
|
+
Bic.currencies = ["USD"];
|
|
9
|
+
Bic.type = isly_1.isly.object({
|
|
10
|
+
type: isly_1.isly.string("bic"),
|
|
11
|
+
account: isly_1.isly.string(),
|
|
12
|
+
institution: isly_1.isly.string(),
|
|
13
|
+
holder: isly_1.isly.string(),
|
|
14
|
+
transactor: isly_1.isly.string().optional(),
|
|
15
|
+
});
|
|
16
|
+
Bic.typeZod = zod_1.zod.object({
|
|
17
|
+
type: zod_1.zod.literal("bic"),
|
|
18
|
+
account: zod_1.zod.string(),
|
|
19
|
+
institution: zod_1.zod.string(),
|
|
20
|
+
holder: zod_1.zod.string(),
|
|
21
|
+
transactor: zod_1.zod.string().optional(),
|
|
22
|
+
});
|
|
23
|
+
})(Bic || (exports.Bic = Bic = {}));
|
|
24
|
+
//# sourceMappingURL=Bic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bic.js","sourceRoot":"","sources":["../../../../Rail/Address/Bic.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,mCAA+B;AAS/B,IAAiB,GAAG,CAgBnB;AAhBD,WAAiB,GAAG;IACN,cAAU,GAAG,CAAC,KAAK,CAAU,CAAA;IAC7B,QAAI,GAAG,WAAI,CAAC,MAAM,CAAM;QACpC,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QACxB,OAAO,EAAE,WAAI,CAAC,MAAM,EAAE;QACtB,WAAW,EAAE,WAAI,CAAC,MAAM,EAAE;QAC1B,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE;QACrB,UAAU,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACpC,CAAC,CAAA;IACW,WAAO,GAAG,SAAG,CAAC,MAAM,CAAC;QACjC,IAAI,EAAE,SAAG,CAAC,OAAO,CAAC,KAAK,CAAC;QACxB,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,SAAG,CAAC,MAAM,EAAE;QACzB,MAAM,EAAE,SAAG,CAAC,MAAM,EAAE;QACpB,UAAU,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,CAAA;AACH,CAAC,EAhBgB,GAAG,mBAAH,GAAG,QAgBnB"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { Realm } from "../../Realm";
|
|
3
3
|
import { zod } from "../../zod";
|
|
4
|
+
import { Bic as AddressBic } from "./Bic";
|
|
4
5
|
import { Card as AddressCard } from "./Card";
|
|
5
6
|
import { Iban as AddressIban } from "./Iban";
|
|
6
7
|
import { Internal as AddressInternal } from "./internal";
|
|
7
8
|
import { PaxGiro as AddressPaxGiro } from "./PaxGiro";
|
|
8
9
|
import { Route as AddressRoute } from "./Route";
|
|
9
10
|
import { Scan as AddressScan } from "./Scan";
|
|
10
|
-
export type Address = AddressCard | AddressCard.Counterpart | AddressIban | AddressInternal | AddressPaxGiro | AddressScan;
|
|
11
|
+
export type Address = AddressCard | AddressCard.Counterpart | AddressIban | AddressInternal | AddressPaxGiro | AddressScan | AddressBic;
|
|
11
12
|
export declare namespace Address {
|
|
12
13
|
const realm: Record<Realm, string[]>;
|
|
13
|
-
const values: readonly ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"];
|
|
14
|
+
const values: readonly ["paxgiro", "internal", "iban", "bic", "scan", "card", "paxgiro-credit"];
|
|
14
15
|
type Type = (typeof values)[number];
|
|
15
16
|
function compare(addresses: [Address, Address]): boolean;
|
|
16
17
|
function parse(value: string): Address | undefined;
|
|
17
|
-
function stringify(
|
|
18
|
-
function beautify(
|
|
18
|
+
function stringify(address: Address): string;
|
|
19
|
+
function beautify(address: Address): string;
|
|
19
20
|
const type: isly.Type<Address>;
|
|
20
21
|
const typeZod: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
21
22
|
type: zod.ZodLiteral<"card">;
|
|
@@ -70,6 +71,12 @@ export declare namespace Address {
|
|
|
70
71
|
account: zod.ZodString;
|
|
71
72
|
holder: zod.ZodString;
|
|
72
73
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
74
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
75
|
+
type: zod.ZodLiteral<"bic">;
|
|
76
|
+
account: zod.ZodString;
|
|
77
|
+
institution: zod.ZodString;
|
|
78
|
+
holder: zod.ZodString;
|
|
79
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
73
80
|
}, zod.z.core.$strip>]>;
|
|
74
81
|
export import PaxGiro = AddressPaxGiro;
|
|
75
82
|
export import Iban = AddressIban;
|
|
@@ -77,4 +84,5 @@ export declare namespace Address {
|
|
|
77
84
|
export import Internal = AddressInternal;
|
|
78
85
|
export import Card = AddressCard;
|
|
79
86
|
export import Route = AddressRoute;
|
|
87
|
+
export import Bic = AddressBic;
|
|
80
88
|
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Address = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
5
|
const zod_1 = require("../../zod");
|
|
6
|
+
const Bic_1 = require("./Bic");
|
|
6
7
|
const Card_1 = require("./Card");
|
|
7
8
|
const Iban_1 = require("./Iban");
|
|
8
9
|
const internal_1 = require("./internal");
|
|
@@ -10,17 +11,17 @@ const PaxGiro_1 = require("./PaxGiro");
|
|
|
10
11
|
const Route_1 = require("./Route");
|
|
11
12
|
const Scan_1 = require("./Scan");
|
|
12
13
|
var Address;
|
|
13
|
-
(function (
|
|
14
|
-
|
|
15
|
-
test: ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"],
|
|
14
|
+
(function (Address) {
|
|
15
|
+
Address.realm = {
|
|
16
|
+
test: ["paxgiro", "internal", "iban", "bic", "scan", "card", "paxgiro-credit"],
|
|
16
17
|
uk: ["internal", "iban", "scan", "card"],
|
|
17
18
|
eea: ["internal", "iban", "scan", "card"],
|
|
18
19
|
};
|
|
19
|
-
|
|
20
|
+
Address.values = ["paxgiro", "internal", "iban", "bic", "scan", "card", "paxgiro-credit"];
|
|
20
21
|
function compare(addresses) {
|
|
21
22
|
return Object.entries(addresses[0]).every(([key, value]) => value == addresses[1][key]);
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
+
Address.compare = compare;
|
|
24
25
|
function parse(value) {
|
|
25
26
|
let result;
|
|
26
27
|
const splitted = value.split("-");
|
|
@@ -31,65 +32,73 @@ var Address;
|
|
|
31
32
|
}
|
|
32
33
|
return result;
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
-
function stringify(
|
|
35
|
+
Address.parse = parse;
|
|
36
|
+
function stringify(address) {
|
|
36
37
|
let result;
|
|
37
|
-
switch (
|
|
38
|
+
switch (address.type) {
|
|
38
39
|
case "iban":
|
|
39
|
-
result = `iban-${
|
|
40
|
+
result = `iban-${address.iban}`;
|
|
40
41
|
break;
|
|
41
42
|
case "paxgiro":
|
|
42
|
-
result = `pxg-${
|
|
43
|
+
result = `pxg-${address.identifier}`;
|
|
43
44
|
break;
|
|
44
45
|
case "internal":
|
|
45
|
-
result = `internal-${
|
|
46
|
+
result = `internal-${address.identifier}`;
|
|
46
47
|
break;
|
|
47
48
|
case "scan":
|
|
48
|
-
result = `scan-${
|
|
49
|
+
result = `scan-${address.sort}-${address.account}`;
|
|
49
50
|
break;
|
|
50
51
|
case "card":
|
|
51
|
-
result = "id" in
|
|
52
|
+
result = "id" in address ? `${address.type}-${address.id}` : `${address.type}-merchant-${address.merchant.id}`;
|
|
53
|
+
break;
|
|
54
|
+
case "bic":
|
|
55
|
+
result = `bic-${address.institution}-${address.account}`;
|
|
52
56
|
break;
|
|
53
57
|
}
|
|
54
58
|
return result;
|
|
55
59
|
}
|
|
56
|
-
|
|
57
|
-
function beautify(
|
|
60
|
+
Address.stringify = stringify;
|
|
61
|
+
function beautify(address) {
|
|
58
62
|
let result;
|
|
59
|
-
switch (
|
|
63
|
+
switch (address.type) {
|
|
60
64
|
case "iban":
|
|
61
|
-
result = `${
|
|
65
|
+
result = `${address.iban}`;
|
|
62
66
|
break;
|
|
63
67
|
case "paxgiro":
|
|
64
|
-
result = `${
|
|
68
|
+
result = `${address.identifier}`;
|
|
65
69
|
break;
|
|
66
70
|
case "internal":
|
|
67
|
-
result = `${
|
|
71
|
+
result = `${address.identifier}`;
|
|
68
72
|
break;
|
|
69
73
|
case "scan":
|
|
70
|
-
result = `${
|
|
74
|
+
result = `${address.sort} ${address.account}`;
|
|
71
75
|
break;
|
|
72
76
|
case "card":
|
|
73
|
-
result = "id" in
|
|
77
|
+
result = "id" in address ? `${address.type}-${address.id}` : `${address.type}-merchant-${address.merchant.id}`;
|
|
78
|
+
break;
|
|
79
|
+
case "bic":
|
|
80
|
+
result = `${address.institution} ${address.account}`;
|
|
74
81
|
break;
|
|
75
82
|
}
|
|
76
83
|
return result;
|
|
77
84
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
85
|
+
Address.beautify = beautify;
|
|
86
|
+
Address.type = isly_1.isly.union(Card_1.Card.type, Card_1.Card.Counterpart.type, Iban_1.Iban.type, internal_1.Internal.type, PaxGiro_1.PaxGiro.type, Scan_1.Scan.type, Bic_1.Bic.type);
|
|
87
|
+
Address.typeZod = zod_1.zod.union([
|
|
81
88
|
Card_1.Card.typeZod,
|
|
82
89
|
Card_1.Card.Counterpart.typeZod,
|
|
83
90
|
Iban_1.Iban.typeZod,
|
|
84
91
|
internal_1.Internal.typeZod,
|
|
85
92
|
PaxGiro_1.PaxGiro.typeZod,
|
|
86
93
|
Scan_1.Scan.typeZod,
|
|
94
|
+
Bic_1.Bic.typeZod,
|
|
87
95
|
]);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
Address.PaxGiro = PaxGiro_1.PaxGiro;
|
|
97
|
+
Address.Iban = Iban_1.Iban;
|
|
98
|
+
Address.Scan = Scan_1.Scan;
|
|
99
|
+
Address.Internal = internal_1.Internal;
|
|
100
|
+
Address.Card = Card_1.Card;
|
|
101
|
+
Address.Route = Route_1.Route;
|
|
102
|
+
Address.Bic = Bic_1.Bic;
|
|
94
103
|
})(Address || (exports.Address = Address = {}));
|
|
95
104
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Rail/Address/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAE3B,mCAA+B;AAC/B,iCAA4C;AAC5C,iCAA4C;AAC5C,yCAAwD;AACxD,uCAAqD;AACrD,mCAA+C;AAC/C,iCAA4C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Rail/Address/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAE3B,mCAA+B;AAC/B,+BAAyC;AACzC,iCAA4C;AAC5C,iCAA4C;AAC5C,yCAAwD;AACxD,uCAAqD;AACrD,mCAA+C;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,6 +72,12 @@ export declare namespace Creatable {
|
|
|
72
72
|
account: zod.ZodString;
|
|
73
73
|
holder: zod.ZodString;
|
|
74
74
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
75
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
76
|
+
type: zod.ZodLiteral<"bic">;
|
|
77
|
+
account: zod.ZodString;
|
|
78
|
+
institution: zod.ZodString;
|
|
79
|
+
holder: zod.ZodString;
|
|
80
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
75
81
|
}, zod.z.core.$strip>]>;
|
|
76
82
|
currency: zod.ZodEnum<{
|
|
77
83
|
AED: "AED";
|
|
@@ -71,6 +71,12 @@ export declare namespace Base {
|
|
|
71
71
|
account: zod.ZodString;
|
|
72
72
|
holder: zod.ZodString;
|
|
73
73
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
74
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
75
|
+
type: zod.ZodLiteral<"bic">;
|
|
76
|
+
account: zod.ZodString;
|
|
77
|
+
institution: zod.ZodString;
|
|
78
|
+
holder: zod.ZodString;
|
|
79
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
74
80
|
}, zod.z.core.$strip>]>;
|
|
75
81
|
currency: zod.ZodEnum<{
|
|
76
82
|
AED: "AED";
|
|
@@ -70,6 +70,12 @@ export declare namespace Incoming {
|
|
|
70
70
|
account: zod.ZodString;
|
|
71
71
|
holder: zod.ZodString;
|
|
72
72
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
73
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
74
|
+
type: zod.ZodLiteral<"bic">;
|
|
75
|
+
account: zod.ZodString;
|
|
76
|
+
institution: zod.ZodString;
|
|
77
|
+
holder: zod.ZodString;
|
|
78
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
73
79
|
}, zod.z.core.$strip>]>;
|
|
74
80
|
exchange: zod.ZodOptional<zod.ZodObject<{
|
|
75
81
|
rate: zod.ZodNumber;
|
|
@@ -491,6 +497,12 @@ export declare namespace Incoming {
|
|
|
491
497
|
account: zod.ZodString;
|
|
492
498
|
holder: zod.ZodString;
|
|
493
499
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
500
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
501
|
+
type: zod.ZodLiteral<"bic">;
|
|
502
|
+
account: zod.ZodString;
|
|
503
|
+
institution: zod.ZodString;
|
|
504
|
+
holder: zod.ZodString;
|
|
505
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
494
506
|
}, zod.z.core.$strip>]>;
|
|
495
507
|
currency: zod.ZodEnum<{
|
|
496
508
|
AED: "AED";
|
|
@@ -58,6 +58,12 @@ export declare namespace Outgoing {
|
|
|
58
58
|
account: zod.ZodString;
|
|
59
59
|
holder: zod.ZodString;
|
|
60
60
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
61
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
62
|
+
type: zod.ZodLiteral<"bic">;
|
|
63
|
+
account: zod.ZodString;
|
|
64
|
+
institution: zod.ZodString;
|
|
65
|
+
holder: zod.ZodString;
|
|
66
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
61
67
|
}, zod.z.core.$strip>]>;
|
|
62
68
|
currency: zod.ZodEnum<{
|
|
63
69
|
AED: "AED";
|
|
@@ -66,6 +66,12 @@ export declare namespace PreTransaction {
|
|
|
66
66
|
account: zod.ZodString;
|
|
67
67
|
holder: zod.ZodString;
|
|
68
68
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
69
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
70
|
+
type: zod.ZodLiteral<"bic">;
|
|
71
|
+
account: zod.ZodString;
|
|
72
|
+
institution: zod.ZodString;
|
|
73
|
+
holder: zod.ZodString;
|
|
74
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
69
75
|
}, zod.z.core.$strip>]>;
|
|
70
76
|
currency: zod.ZodEnum<{
|
|
71
77
|
AED: "AED";
|
|
@@ -1252,6 +1258,12 @@ export declare namespace PreTransaction {
|
|
|
1252
1258
|
account: zod.ZodString;
|
|
1253
1259
|
holder: zod.ZodString;
|
|
1254
1260
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
1261
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1262
|
+
type: zod.ZodLiteral<"bic">;
|
|
1263
|
+
account: zod.ZodString;
|
|
1264
|
+
institution: zod.ZodString;
|
|
1265
|
+
holder: zod.ZodString;
|
|
1266
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
1255
1267
|
}, zod.z.core.$strip>]>;
|
|
1256
1268
|
exchange: zod.ZodOptional<zod.ZodObject<{
|
|
1257
1269
|
rate: zod.ZodNumber;
|
|
@@ -1673,6 +1685,12 @@ export declare namespace PreTransaction {
|
|
|
1673
1685
|
account: zod.ZodString;
|
|
1674
1686
|
holder: zod.ZodString;
|
|
1675
1687
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
1688
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1689
|
+
type: zod.ZodLiteral<"bic">;
|
|
1690
|
+
account: zod.ZodString;
|
|
1691
|
+
institution: zod.ZodString;
|
|
1692
|
+
holder: zod.ZodString;
|
|
1693
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
1676
1694
|
}, zod.z.core.$strip>]>;
|
|
1677
1695
|
currency: zod.ZodEnum<{
|
|
1678
1696
|
AED: "AED";
|
|
@@ -114,6 +114,12 @@ export declare namespace Transaction {
|
|
|
114
114
|
account: zod.ZodString;
|
|
115
115
|
holder: zod.ZodString;
|
|
116
116
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
117
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
118
|
+
type: zod.ZodLiteral<"bic">;
|
|
119
|
+
account: zod.ZodString;
|
|
120
|
+
institution: zod.ZodString;
|
|
121
|
+
holder: zod.ZodString;
|
|
122
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
117
123
|
}, zod.z.core.$strip>]>;
|
|
118
124
|
currency: zod.ZodEnum<{
|
|
119
125
|
AED: "AED";
|
|
@@ -964,6 +970,12 @@ export declare namespace Transaction {
|
|
|
964
970
|
account: zod.ZodString;
|
|
965
971
|
holder: zod.ZodString;
|
|
966
972
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
973
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
974
|
+
type: zod.ZodLiteral<"bic">;
|
|
975
|
+
account: zod.ZodString;
|
|
976
|
+
institution: zod.ZodString;
|
|
977
|
+
holder: zod.ZodString;
|
|
978
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
967
979
|
}, zod.z.core.$strip>]>;
|
|
968
980
|
type: zod.ZodOptional<zod.ZodEnum<{
|
|
969
981
|
card: "card";
|
|
@@ -1468,7 +1480,6 @@ export declare namespace Transaction {
|
|
|
1468
1480
|
available: zod.ZodNumber;
|
|
1469
1481
|
reserved: zod.ZodNumber;
|
|
1470
1482
|
}, zod.z.core.$strip>;
|
|
1471
|
-
id: zod.ZodString;
|
|
1472
1483
|
account: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
1473
1484
|
type: zod.ZodLiteral<"card">;
|
|
1474
1485
|
scheme: zod.ZodEnum<{
|
|
@@ -1522,7 +1533,14 @@ export declare namespace Transaction {
|
|
|
1522
1533
|
account: zod.ZodString;
|
|
1523
1534
|
holder: zod.ZodString;
|
|
1524
1535
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
1536
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1537
|
+
type: zod.ZodLiteral<"bic">;
|
|
1538
|
+
account: zod.ZodString;
|
|
1539
|
+
institution: zod.ZodString;
|
|
1540
|
+
holder: zod.ZodString;
|
|
1541
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
1525
1542
|
}, zod.z.core.$strip>]>;
|
|
1543
|
+
id: zod.ZodString;
|
|
1526
1544
|
status: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
1527
1545
|
created: "created";
|
|
1528
1546
|
review: "review";
|
|
@@ -1609,6 +1627,12 @@ export declare namespace Transaction {
|
|
|
1609
1627
|
account: zod.ZodString;
|
|
1610
1628
|
holder: zod.ZodString;
|
|
1611
1629
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
1630
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1631
|
+
type: zod.ZodLiteral<"bic">;
|
|
1632
|
+
account: zod.ZodString;
|
|
1633
|
+
institution: zod.ZodString;
|
|
1634
|
+
holder: zod.ZodString;
|
|
1635
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
1612
1636
|
}, zod.z.core.$strip>]>;
|
|
1613
1637
|
posted: zod.ZodString;
|
|
1614
1638
|
description: zod.ZodString;
|
|
@@ -2684,7 +2708,6 @@ export declare namespace Transaction {
|
|
|
2684
2708
|
available: zod.ZodNumber;
|
|
2685
2709
|
reserved: zod.ZodNumber;
|
|
2686
2710
|
}, zod.z.core.$strip>;
|
|
2687
|
-
id: zod.ZodString;
|
|
2688
2711
|
account: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
2689
2712
|
type: zod.ZodLiteral<"card">;
|
|
2690
2713
|
scheme: zod.ZodEnum<{
|
|
@@ -2738,7 +2761,14 @@ export declare namespace Transaction {
|
|
|
2738
2761
|
account: zod.ZodString;
|
|
2739
2762
|
holder: zod.ZodString;
|
|
2740
2763
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
2764
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
2765
|
+
type: zod.ZodLiteral<"bic">;
|
|
2766
|
+
account: zod.ZodString;
|
|
2767
|
+
institution: zod.ZodString;
|
|
2768
|
+
holder: zod.ZodString;
|
|
2769
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
2741
2770
|
}, zod.z.core.$strip>]>;
|
|
2771
|
+
id: zod.ZodString;
|
|
2742
2772
|
status: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
2743
2773
|
created: "created";
|
|
2744
2774
|
review: "review";
|
|
@@ -2824,6 +2854,12 @@ export declare namespace Transaction {
|
|
|
2824
2854
|
account: zod.ZodString;
|
|
2825
2855
|
holder: zod.ZodString;
|
|
2826
2856
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
2857
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
2858
|
+
type: zod.ZodLiteral<"bic">;
|
|
2859
|
+
account: zod.ZodString;
|
|
2860
|
+
institution: zod.ZodString;
|
|
2861
|
+
holder: zod.ZodString;
|
|
2862
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
2827
2863
|
}, zod.z.core.$strip>]>;
|
|
2828
2864
|
posted: zod.ZodString;
|
|
2829
2865
|
description: zod.ZodString;
|
|
@@ -251,6 +251,12 @@ export declare namespace Details {
|
|
|
251
251
|
account: zod.ZodString;
|
|
252
252
|
holder: zod.ZodString;
|
|
253
253
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
254
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
255
|
+
type: zod.ZodLiteral<"bic">;
|
|
256
|
+
account: zod.ZodString;
|
|
257
|
+
institution: zod.ZodString;
|
|
258
|
+
holder: zod.ZodString;
|
|
259
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
254
260
|
}, zod.z.core.$strip>]>>;
|
|
255
261
|
}, zod.z.core.$strip>;
|
|
256
262
|
interface Creatable {
|
|
@@ -284,6 +284,12 @@ export declare namespace Account {
|
|
|
284
284
|
account: zod.ZodString;
|
|
285
285
|
holder: zod.ZodString;
|
|
286
286
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
287
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
288
|
+
type: zod.ZodLiteral<"bic">;
|
|
289
|
+
account: zod.ZodString;
|
|
290
|
+
institution: zod.ZodString;
|
|
291
|
+
holder: zod.ZodString;
|
|
292
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
287
293
|
}, zod.z.core.$strip>]>>;
|
|
288
294
|
details: zod.ZodOptional<zod.ZodObject<{
|
|
289
295
|
supplier: zod.ZodEnum<{
|
|
@@ -526,6 +532,12 @@ export declare namespace Account {
|
|
|
526
532
|
account: zod.ZodString;
|
|
527
533
|
holder: zod.ZodString;
|
|
528
534
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
535
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
536
|
+
type: zod.ZodLiteral<"bic">;
|
|
537
|
+
account: zod.ZodString;
|
|
538
|
+
institution: zod.ZodString;
|
|
539
|
+
holder: zod.ZodString;
|
|
540
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
529
541
|
}, zod.z.core.$strip>]>>;
|
|
530
542
|
}, zod.z.core.$strip>>;
|
|
531
543
|
charges: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { zod } from "../../zod";
|
|
2
|
+
export interface Bic {
|
|
3
|
+
type: "bic";
|
|
4
|
+
account: string;
|
|
5
|
+
institution: string;
|
|
6
|
+
holder: string;
|
|
7
|
+
transactor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace Bic {
|
|
10
|
+
const currencies: readonly ["USD"];
|
|
11
|
+
const type: import("isly/dist/cjs/object").IslyObject<Bic, object>;
|
|
12
|
+
const typeZod: zod.ZodObject<{
|
|
13
|
+
type: zod.ZodLiteral<"bic">;
|
|
14
|
+
account: zod.ZodString;
|
|
15
|
+
institution: zod.ZodString;
|
|
16
|
+
holder: zod.ZodString;
|
|
17
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
18
|
+
}, zod.z.core.$strip>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { zod } from "../../zod";
|
|
3
|
+
export var Bic;
|
|
4
|
+
(function (Bic) {
|
|
5
|
+
Bic.currencies = ["USD"];
|
|
6
|
+
Bic.type = isly.object({
|
|
7
|
+
type: isly.string("bic"),
|
|
8
|
+
account: isly.string(),
|
|
9
|
+
institution: isly.string(),
|
|
10
|
+
holder: isly.string(),
|
|
11
|
+
transactor: isly.string().optional(),
|
|
12
|
+
});
|
|
13
|
+
Bic.typeZod = zod.object({
|
|
14
|
+
type: zod.literal("bic"),
|
|
15
|
+
account: zod.string(),
|
|
16
|
+
institution: zod.string(),
|
|
17
|
+
holder: zod.string(),
|
|
18
|
+
transactor: zod.string().optional(),
|
|
19
|
+
});
|
|
20
|
+
})(Bic || (Bic = {}));
|
|
21
|
+
//# sourceMappingURL=Bic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bic.js","sourceRoot":"","sources":["../../../../Rail/Address/Bic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAS/B,MAAM,KAAW,GAAG,CAgBnB;AAhBD,WAAiB,GAAG;IACN,cAAU,GAAG,CAAC,KAAK,CAAU,CAAA;IAC7B,QAAI,GAAG,IAAI,CAAC,MAAM,CAAM;QACpC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QACxB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACpC,CAAC,CAAA;IACW,WAAO,GAAG,GAAG,CAAC,MAAM,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC;QACxB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE;QACzB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE;QACpB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,CAAA;AACH,CAAC,EAhBgB,GAAG,KAAH,GAAG,QAgBnB"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { Realm } from "../../Realm";
|
|
3
3
|
import { zod } from "../../zod";
|
|
4
|
+
import { Bic as AddressBic } from "./Bic";
|
|
4
5
|
import { Card as AddressCard } from "./Card";
|
|
5
6
|
import { Iban as AddressIban } from "./Iban";
|
|
6
7
|
import { Internal as AddressInternal } from "./internal";
|
|
7
8
|
import { PaxGiro as AddressPaxGiro } from "./PaxGiro";
|
|
8
9
|
import { Route as AddressRoute } from "./Route";
|
|
9
10
|
import { Scan as AddressScan } from "./Scan";
|
|
10
|
-
export type Address = AddressCard | AddressCard.Counterpart | AddressIban | AddressInternal | AddressPaxGiro | AddressScan;
|
|
11
|
+
export type Address = AddressCard | AddressCard.Counterpart | AddressIban | AddressInternal | AddressPaxGiro | AddressScan | AddressBic;
|
|
11
12
|
export declare namespace Address {
|
|
12
13
|
const realm: Record<Realm, string[]>;
|
|
13
|
-
const values: readonly ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"];
|
|
14
|
+
const values: readonly ["paxgiro", "internal", "iban", "bic", "scan", "card", "paxgiro-credit"];
|
|
14
15
|
type Type = (typeof values)[number];
|
|
15
16
|
function compare(addresses: [Address, Address]): boolean;
|
|
16
17
|
function parse(value: string): Address | undefined;
|
|
17
|
-
function stringify(
|
|
18
|
-
function beautify(
|
|
18
|
+
function stringify(address: Address): string;
|
|
19
|
+
function beautify(address: Address): string;
|
|
19
20
|
const type: isly.Type<Address>;
|
|
20
21
|
const typeZod: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
21
22
|
type: zod.ZodLiteral<"card">;
|
|
@@ -70,6 +71,12 @@ export declare namespace Address {
|
|
|
70
71
|
account: zod.ZodString;
|
|
71
72
|
holder: zod.ZodString;
|
|
72
73
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
74
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
75
|
+
type: zod.ZodLiteral<"bic">;
|
|
76
|
+
account: zod.ZodString;
|
|
77
|
+
institution: zod.ZodString;
|
|
78
|
+
holder: zod.ZodString;
|
|
79
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
73
80
|
}, zod.z.core.$strip>]>;
|
|
74
81
|
export import PaxGiro = AddressPaxGiro;
|
|
75
82
|
export import Iban = AddressIban;
|
|
@@ -77,4 +84,5 @@ export declare namespace Address {
|
|
|
77
84
|
export import Internal = AddressInternal;
|
|
78
85
|
export import Card = AddressCard;
|
|
79
86
|
export import Route = AddressRoute;
|
|
87
|
+
export import Bic = AddressBic;
|
|
80
88
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { zod } from "../../zod";
|
|
3
|
+
import { Bic as AddressBic } from "./Bic";
|
|
3
4
|
import { Card as AddressCard } from "./Card";
|
|
4
5
|
import { Iban as AddressIban } from "./Iban";
|
|
5
6
|
import { Internal as AddressInternal } from "./internal";
|
|
@@ -7,17 +8,17 @@ import { PaxGiro as AddressPaxGiro } from "./PaxGiro";
|
|
|
7
8
|
import { Route as AddressRoute } from "./Route";
|
|
8
9
|
import { Scan as AddressScan } from "./Scan";
|
|
9
10
|
export var Address;
|
|
10
|
-
(function (
|
|
11
|
-
|
|
12
|
-
test: ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"],
|
|
11
|
+
(function (Address) {
|
|
12
|
+
Address.realm = {
|
|
13
|
+
test: ["paxgiro", "internal", "iban", "bic", "scan", "card", "paxgiro-credit"],
|
|
13
14
|
uk: ["internal", "iban", "scan", "card"],
|
|
14
15
|
eea: ["internal", "iban", "scan", "card"],
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
Address.values = ["paxgiro", "internal", "iban", "bic", "scan", "card", "paxgiro-credit"];
|
|
17
18
|
function compare(addresses) {
|
|
18
19
|
return Object.entries(addresses[0]).every(([key, value]) => value == addresses[1][key]);
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
Address.compare = compare;
|
|
21
22
|
function parse(value) {
|
|
22
23
|
let result;
|
|
23
24
|
const splitted = value.split("-");
|
|
@@ -28,65 +29,73 @@ export var Address;
|
|
|
28
29
|
}
|
|
29
30
|
return result;
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
-
function stringify(
|
|
32
|
+
Address.parse = parse;
|
|
33
|
+
function stringify(address) {
|
|
33
34
|
let result;
|
|
34
|
-
switch (
|
|
35
|
+
switch (address.type) {
|
|
35
36
|
case "iban":
|
|
36
|
-
result = `iban-${
|
|
37
|
+
result = `iban-${address.iban}`;
|
|
37
38
|
break;
|
|
38
39
|
case "paxgiro":
|
|
39
|
-
result = `pxg-${
|
|
40
|
+
result = `pxg-${address.identifier}`;
|
|
40
41
|
break;
|
|
41
42
|
case "internal":
|
|
42
|
-
result = `internal-${
|
|
43
|
+
result = `internal-${address.identifier}`;
|
|
43
44
|
break;
|
|
44
45
|
case "scan":
|
|
45
|
-
result = `scan-${
|
|
46
|
+
result = `scan-${address.sort}-${address.account}`;
|
|
46
47
|
break;
|
|
47
48
|
case "card":
|
|
48
|
-
result = "id" in
|
|
49
|
+
result = "id" in address ? `${address.type}-${address.id}` : `${address.type}-merchant-${address.merchant.id}`;
|
|
50
|
+
break;
|
|
51
|
+
case "bic":
|
|
52
|
+
result = `bic-${address.institution}-${address.account}`;
|
|
49
53
|
break;
|
|
50
54
|
}
|
|
51
55
|
return result;
|
|
52
56
|
}
|
|
53
|
-
|
|
54
|
-
function beautify(
|
|
57
|
+
Address.stringify = stringify;
|
|
58
|
+
function beautify(address) {
|
|
55
59
|
let result;
|
|
56
|
-
switch (
|
|
60
|
+
switch (address.type) {
|
|
57
61
|
case "iban":
|
|
58
|
-
result = `${
|
|
62
|
+
result = `${address.iban}`;
|
|
59
63
|
break;
|
|
60
64
|
case "paxgiro":
|
|
61
|
-
result = `${
|
|
65
|
+
result = `${address.identifier}`;
|
|
62
66
|
break;
|
|
63
67
|
case "internal":
|
|
64
|
-
result = `${
|
|
68
|
+
result = `${address.identifier}`;
|
|
65
69
|
break;
|
|
66
70
|
case "scan":
|
|
67
|
-
result = `${
|
|
71
|
+
result = `${address.sort} ${address.account}`;
|
|
68
72
|
break;
|
|
69
73
|
case "card":
|
|
70
|
-
result = "id" in
|
|
74
|
+
result = "id" in address ? `${address.type}-${address.id}` : `${address.type}-merchant-${address.merchant.id}`;
|
|
75
|
+
break;
|
|
76
|
+
case "bic":
|
|
77
|
+
result = `${address.institution} ${address.account}`;
|
|
71
78
|
break;
|
|
72
79
|
}
|
|
73
80
|
return result;
|
|
74
81
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
82
|
+
Address.beautify = beautify;
|
|
83
|
+
Address.type = isly.union(AddressCard.type, AddressCard.Counterpart.type, AddressIban.type, AddressInternal.type, AddressPaxGiro.type, AddressScan.type, AddressBic.type);
|
|
84
|
+
Address.typeZod = zod.union([
|
|
78
85
|
AddressCard.typeZod,
|
|
79
86
|
AddressCard.Counterpart.typeZod,
|
|
80
87
|
AddressIban.typeZod,
|
|
81
88
|
AddressInternal.typeZod,
|
|
82
89
|
AddressPaxGiro.typeZod,
|
|
83
90
|
AddressScan.typeZod,
|
|
91
|
+
AddressBic.typeZod,
|
|
84
92
|
]);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
Address.PaxGiro = AddressPaxGiro;
|
|
94
|
+
Address.Iban = AddressIban;
|
|
95
|
+
Address.Scan = AddressScan;
|
|
96
|
+
Address.Internal = AddressInternal;
|
|
97
|
+
Address.Card = AddressCard;
|
|
98
|
+
Address.Route = AddressRoute;
|
|
99
|
+
Address.Bic = AddressBic;
|
|
91
100
|
})(Address || (Address = {}));
|
|
92
101
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Rail/Address/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Rail/Address/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAU5C,MAAM,KAAW,OAAO,CA+FvB;AA/FD,WAAiB,OAAO;IACV,aAAK,GAA4B;QAC7C,IA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ZodOptional<zod.ZodString>;
|
|
75
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
76
|
+
type: zod.ZodLiteral<"bic">;
|
|
77
|
+
account: zod.ZodString;
|
|
78
|
+
institution: zod.ZodString;
|
|
79
|
+
holder: zod.ZodString;
|
|
80
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
75
81
|
}, zod.z.core.$strip>]>;
|
|
76
82
|
currency: zod.ZodEnum<{
|
|
77
83
|
AED: "AED";
|
|
@@ -71,6 +71,12 @@ export declare namespace Base {
|
|
|
71
71
|
account: zod.ZodString;
|
|
72
72
|
holder: zod.ZodString;
|
|
73
73
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
74
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
75
|
+
type: zod.ZodLiteral<"bic">;
|
|
76
|
+
account: zod.ZodString;
|
|
77
|
+
institution: zod.ZodString;
|
|
78
|
+
holder: zod.ZodString;
|
|
79
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
74
80
|
}, zod.z.core.$strip>]>;
|
|
75
81
|
currency: zod.ZodEnum<{
|
|
76
82
|
AED: "AED";
|
|
@@ -70,6 +70,12 @@ export declare namespace Incoming {
|
|
|
70
70
|
account: zod.ZodString;
|
|
71
71
|
holder: zod.ZodString;
|
|
72
72
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
73
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
74
|
+
type: zod.ZodLiteral<"bic">;
|
|
75
|
+
account: zod.ZodString;
|
|
76
|
+
institution: zod.ZodString;
|
|
77
|
+
holder: zod.ZodString;
|
|
78
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
73
79
|
}, zod.z.core.$strip>]>;
|
|
74
80
|
exchange: zod.ZodOptional<zod.ZodObject<{
|
|
75
81
|
rate: zod.ZodNumber;
|
|
@@ -491,6 +497,12 @@ export declare namespace Incoming {
|
|
|
491
497
|
account: zod.ZodString;
|
|
492
498
|
holder: zod.ZodString;
|
|
493
499
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
500
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
501
|
+
type: zod.ZodLiteral<"bic">;
|
|
502
|
+
account: zod.ZodString;
|
|
503
|
+
institution: zod.ZodString;
|
|
504
|
+
holder: zod.ZodString;
|
|
505
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
494
506
|
}, zod.z.core.$strip>]>;
|
|
495
507
|
currency: zod.ZodEnum<{
|
|
496
508
|
AED: "AED";
|
|
@@ -58,6 +58,12 @@ export declare namespace Outgoing {
|
|
|
58
58
|
account: zod.ZodString;
|
|
59
59
|
holder: zod.ZodString;
|
|
60
60
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
61
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
62
|
+
type: zod.ZodLiteral<"bic">;
|
|
63
|
+
account: zod.ZodString;
|
|
64
|
+
institution: zod.ZodString;
|
|
65
|
+
holder: zod.ZodString;
|
|
66
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
61
67
|
}, zod.z.core.$strip>]>;
|
|
62
68
|
currency: zod.ZodEnum<{
|
|
63
69
|
AED: "AED";
|
|
@@ -66,6 +66,12 @@ export declare namespace PreTransaction {
|
|
|
66
66
|
account: zod.ZodString;
|
|
67
67
|
holder: zod.ZodString;
|
|
68
68
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
69
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
70
|
+
type: zod.ZodLiteral<"bic">;
|
|
71
|
+
account: zod.ZodString;
|
|
72
|
+
institution: zod.ZodString;
|
|
73
|
+
holder: zod.ZodString;
|
|
74
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
69
75
|
}, zod.z.core.$strip>]>;
|
|
70
76
|
currency: zod.ZodEnum<{
|
|
71
77
|
AED: "AED";
|
|
@@ -1252,6 +1258,12 @@ export declare namespace PreTransaction {
|
|
|
1252
1258
|
account: zod.ZodString;
|
|
1253
1259
|
holder: zod.ZodString;
|
|
1254
1260
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
1261
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1262
|
+
type: zod.ZodLiteral<"bic">;
|
|
1263
|
+
account: zod.ZodString;
|
|
1264
|
+
institution: zod.ZodString;
|
|
1265
|
+
holder: zod.ZodString;
|
|
1266
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
1255
1267
|
}, zod.z.core.$strip>]>;
|
|
1256
1268
|
exchange: zod.ZodOptional<zod.ZodObject<{
|
|
1257
1269
|
rate: zod.ZodNumber;
|
|
@@ -1673,6 +1685,12 @@ export declare namespace PreTransaction {
|
|
|
1673
1685
|
account: zod.ZodString;
|
|
1674
1686
|
holder: zod.ZodString;
|
|
1675
1687
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
1688
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1689
|
+
type: zod.ZodLiteral<"bic">;
|
|
1690
|
+
account: zod.ZodString;
|
|
1691
|
+
institution: zod.ZodString;
|
|
1692
|
+
holder: zod.ZodString;
|
|
1693
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
1676
1694
|
}, zod.z.core.$strip>]>;
|
|
1677
1695
|
currency: zod.ZodEnum<{
|
|
1678
1696
|
AED: "AED";
|
|
@@ -114,6 +114,12 @@ export declare namespace Transaction {
|
|
|
114
114
|
account: zod.ZodString;
|
|
115
115
|
holder: zod.ZodString;
|
|
116
116
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
117
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
118
|
+
type: zod.ZodLiteral<"bic">;
|
|
119
|
+
account: zod.ZodString;
|
|
120
|
+
institution: zod.ZodString;
|
|
121
|
+
holder: zod.ZodString;
|
|
122
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
117
123
|
}, zod.z.core.$strip>]>;
|
|
118
124
|
currency: zod.ZodEnum<{
|
|
119
125
|
AED: "AED";
|
|
@@ -964,6 +970,12 @@ export declare namespace Transaction {
|
|
|
964
970
|
account: zod.ZodString;
|
|
965
971
|
holder: zod.ZodString;
|
|
966
972
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
973
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
974
|
+
type: zod.ZodLiteral<"bic">;
|
|
975
|
+
account: zod.ZodString;
|
|
976
|
+
institution: zod.ZodString;
|
|
977
|
+
holder: zod.ZodString;
|
|
978
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
967
979
|
}, zod.z.core.$strip>]>;
|
|
968
980
|
type: zod.ZodOptional<zod.ZodEnum<{
|
|
969
981
|
card: "card";
|
|
@@ -1468,7 +1480,6 @@ export declare namespace Transaction {
|
|
|
1468
1480
|
available: zod.ZodNumber;
|
|
1469
1481
|
reserved: zod.ZodNumber;
|
|
1470
1482
|
}, zod.z.core.$strip>;
|
|
1471
|
-
id: zod.ZodString;
|
|
1472
1483
|
account: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
1473
1484
|
type: zod.ZodLiteral<"card">;
|
|
1474
1485
|
scheme: zod.ZodEnum<{
|
|
@@ -1522,7 +1533,14 @@ export declare namespace Transaction {
|
|
|
1522
1533
|
account: zod.ZodString;
|
|
1523
1534
|
holder: zod.ZodString;
|
|
1524
1535
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
1536
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1537
|
+
type: zod.ZodLiteral<"bic">;
|
|
1538
|
+
account: zod.ZodString;
|
|
1539
|
+
institution: zod.ZodString;
|
|
1540
|
+
holder: zod.ZodString;
|
|
1541
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
1525
1542
|
}, zod.z.core.$strip>]>;
|
|
1543
|
+
id: zod.ZodString;
|
|
1526
1544
|
status: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
1527
1545
|
created: "created";
|
|
1528
1546
|
review: "review";
|
|
@@ -1609,6 +1627,12 @@ export declare namespace Transaction {
|
|
|
1609
1627
|
account: zod.ZodString;
|
|
1610
1628
|
holder: zod.ZodString;
|
|
1611
1629
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
1630
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1631
|
+
type: zod.ZodLiteral<"bic">;
|
|
1632
|
+
account: zod.ZodString;
|
|
1633
|
+
institution: zod.ZodString;
|
|
1634
|
+
holder: zod.ZodString;
|
|
1635
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
1612
1636
|
}, zod.z.core.$strip>]>;
|
|
1613
1637
|
posted: zod.ZodString;
|
|
1614
1638
|
description: zod.ZodString;
|
|
@@ -2684,7 +2708,6 @@ export declare namespace Transaction {
|
|
|
2684
2708
|
available: zod.ZodNumber;
|
|
2685
2709
|
reserved: zod.ZodNumber;
|
|
2686
2710
|
}, zod.z.core.$strip>;
|
|
2687
|
-
id: zod.ZodString;
|
|
2688
2711
|
account: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
2689
2712
|
type: zod.ZodLiteral<"card">;
|
|
2690
2713
|
scheme: zod.ZodEnum<{
|
|
@@ -2738,7 +2761,14 @@ export declare namespace Transaction {
|
|
|
2738
2761
|
account: zod.ZodString;
|
|
2739
2762
|
holder: zod.ZodString;
|
|
2740
2763
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
2764
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
2765
|
+
type: zod.ZodLiteral<"bic">;
|
|
2766
|
+
account: zod.ZodString;
|
|
2767
|
+
institution: zod.ZodString;
|
|
2768
|
+
holder: zod.ZodString;
|
|
2769
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
2741
2770
|
}, zod.z.core.$strip>]>;
|
|
2771
|
+
id: zod.ZodString;
|
|
2742
2772
|
status: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
2743
2773
|
created: "created";
|
|
2744
2774
|
review: "review";
|
|
@@ -2824,6 +2854,12 @@ export declare namespace Transaction {
|
|
|
2824
2854
|
account: zod.ZodString;
|
|
2825
2855
|
holder: zod.ZodString;
|
|
2826
2856
|
institution: zod.ZodOptional<zod.ZodString>;
|
|
2857
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
2858
|
+
type: zod.ZodLiteral<"bic">;
|
|
2859
|
+
account: zod.ZodString;
|
|
2860
|
+
institution: zod.ZodString;
|
|
2861
|
+
holder: zod.ZodString;
|
|
2862
|
+
transactor: zod.ZodOptional<zod.ZodString>;
|
|
2827
2863
|
}, zod.z.core.$strip>]>;
|
|
2828
2864
|
posted: zod.ZodString;
|
|
2829
2865
|
description: zod.ZodString;
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pax2pay/model-banking",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.663",
|
|
4
4
|
"description": "Library containing data model types and functions for the Pax2Pay Banking API.",
|
|
5
5
|
"author": "Pax2Pay Ltd",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"repository":
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/pax2pay/model-banking.git"
|
|
10
|
+
},
|
|
8
11
|
"bugs": {
|
|
9
12
|
"url": "https://github.com/pax2pay/model-banking/issues"
|
|
10
13
|
},
|