@pax2pay/model-banking 0.1.598 → 0.1.600
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/Iban.ts +1 -1
- package/Rail/Address/Scan.ts +9 -1
- package/Transaction/Reference.ts +3 -1
- package/dist/cjs/Rail/Address/Scan.d.ts +1 -0
- package/dist/cjs/Rail/Address/Scan.js +8 -1
- package/dist/cjs/Rail/Address/Scan.js.map +1 -1
- package/dist/cjs/Transaction/Reference.d.ts +1 -0
- package/dist/cjs/Transaction/Reference.js +1 -0
- package/dist/cjs/Transaction/Reference.js.map +1 -1
- package/dist/mjs/Rail/Address/Scan.d.ts +1 -0
- package/dist/mjs/Rail/Address/Scan.js +8 -1
- package/dist/mjs/Rail/Address/Scan.js.map +1 -1
- package/dist/mjs/Transaction/Reference.d.ts +1 -0
- package/dist/mjs/Transaction/Reference.js +1 -0
- package/dist/mjs/Transaction/Reference.js.map +1 -1
- package/package.json +1 -1
package/Rail/Address/Iban.ts
CHANGED
package/Rail/Address/Scan.ts
CHANGED
|
@@ -7,16 +7,24 @@ export interface Scan {
|
|
|
7
7
|
sort: string
|
|
8
8
|
account: string
|
|
9
9
|
holder: string
|
|
10
|
+
institution?: string // BIC
|
|
10
11
|
}
|
|
11
12
|
export namespace Scan {
|
|
12
13
|
export const currencies = ["GBP"] as const
|
|
13
14
|
export function fromIban(iban: Iban): Scan {
|
|
14
|
-
return {
|
|
15
|
+
return {
|
|
16
|
+
type: "scan",
|
|
17
|
+
sort: iban.iban.substring(8, 14),
|
|
18
|
+
account: iban.iban.substring(14),
|
|
19
|
+
holder: iban.holder,
|
|
20
|
+
institution: iban.institution,
|
|
21
|
+
}
|
|
15
22
|
}
|
|
16
23
|
export const type = isly.object<Scan>({
|
|
17
24
|
type: isly.string("scan"),
|
|
18
25
|
sort: isly.string(),
|
|
19
26
|
account: isly.string(),
|
|
20
27
|
holder: isly.string(),
|
|
28
|
+
institution: isly.string().optional(),
|
|
21
29
|
})
|
|
22
30
|
}
|
package/Transaction/Reference.ts
CHANGED
|
@@ -3,9 +3,10 @@ import { Supplier } from "../Supplier"
|
|
|
3
3
|
|
|
4
4
|
export interface Reference {
|
|
5
5
|
supplier?: Supplier
|
|
6
|
-
reference?: string
|
|
6
|
+
reference?: string // Suppliers id for the transaction
|
|
7
7
|
returnId?: string
|
|
8
8
|
endToEndId?: string
|
|
9
|
+
instruction?: string // SWIFT instruction id, TransactionReference on Banking circle hook
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export namespace Reference {
|
|
@@ -14,5 +15,6 @@ export namespace Reference {
|
|
|
14
15
|
reference: isly.string().optional(),
|
|
15
16
|
returnId: isly.string().optional(),
|
|
16
17
|
endToEndId: isly.string().optional(),
|
|
18
|
+
instruction: isly.string().optional(),
|
|
17
19
|
})
|
|
18
20
|
}
|
|
@@ -6,7 +6,13 @@ var Scan;
|
|
|
6
6
|
(function (Scan) {
|
|
7
7
|
Scan.currencies = ["GBP"];
|
|
8
8
|
function fromIban(iban) {
|
|
9
|
-
return {
|
|
9
|
+
return {
|
|
10
|
+
type: "scan",
|
|
11
|
+
sort: iban.iban.substring(8, 14),
|
|
12
|
+
account: iban.iban.substring(14),
|
|
13
|
+
holder: iban.holder,
|
|
14
|
+
institution: iban.institution,
|
|
15
|
+
};
|
|
10
16
|
}
|
|
11
17
|
Scan.fromIban = fromIban;
|
|
12
18
|
Scan.type = isly_1.isly.object({
|
|
@@ -14,6 +20,7 @@ var Scan;
|
|
|
14
20
|
sort: isly_1.isly.string(),
|
|
15
21
|
account: isly_1.isly.string(),
|
|
16
22
|
holder: isly_1.isly.string(),
|
|
23
|
+
institution: isly_1.isly.string().optional(),
|
|
17
24
|
});
|
|
18
25
|
})(Scan || (exports.Scan = Scan = {}));
|
|
19
26
|
//# sourceMappingURL=Scan.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scan.js","sourceRoot":"","sources":["../../../../Rail/Address/Scan.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;
|
|
1
|
+
{"version":3,"file":"Scan.js","sourceRoot":"","sources":["../../../../Rail/Address/Scan.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAW3B,IAAiB,IAAI,CAkBpB;AAlBD,WAAiB,IAAI;IACP,eAAU,GAAG,CAAC,KAAK,CAAU,CAAA;IAC1C,SAAgB,QAAQ,CAAC,IAAU;QAClC,OAAO;YACN,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC;YAChC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YAChC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,WAAW,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAA;IACF,CAAC;IARe,aAAQ,WAQvB,CAAA;IACY,SAAI,GAAG,WAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QACzB,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;QACnB,OAAO,EAAE,WAAI,CAAC,MAAM,EAAE;QACtB,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACrC,CAAC,CAAA;AACH,CAAC,EAlBgB,IAAI,oBAAJ,IAAI,QAkBpB"}
|
|
@@ -10,6 +10,7 @@ var Reference;
|
|
|
10
10
|
reference: isly_1.isly.string().optional(),
|
|
11
11
|
returnId: isly_1.isly.string().optional(),
|
|
12
12
|
endToEndId: isly_1.isly.string().optional(),
|
|
13
|
+
instruction: isly_1.isly.string().optional(),
|
|
13
14
|
});
|
|
14
15
|
})(Reference || (exports.Reference = Reference = {}));
|
|
15
16
|
//# sourceMappingURL=Reference.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../../Transaction/Reference.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,0CAAsC;
|
|
1
|
+
{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../../Transaction/Reference.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,0CAAsC;AAUtC,IAAiB,SAAS,CAQzB;AARD,WAAiB,SAAS;IACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;QAC1C,QAAQ,EAAE,mBAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE;QAClC,SAAS,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,QAAQ,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,UAAU,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACpC,WAAW,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACrC,CAAC,CAAA;AACH,CAAC,EARgB,SAAS,yBAAT,SAAS,QAQzB"}
|
|
@@ -3,7 +3,13 @@ export var Scan;
|
|
|
3
3
|
(function (Scan) {
|
|
4
4
|
Scan.currencies = ["GBP"];
|
|
5
5
|
function fromIban(iban) {
|
|
6
|
-
return {
|
|
6
|
+
return {
|
|
7
|
+
type: "scan",
|
|
8
|
+
sort: iban.iban.substring(8, 14),
|
|
9
|
+
account: iban.iban.substring(14),
|
|
10
|
+
holder: iban.holder,
|
|
11
|
+
institution: iban.institution,
|
|
12
|
+
};
|
|
7
13
|
}
|
|
8
14
|
Scan.fromIban = fromIban;
|
|
9
15
|
Scan.type = isly.object({
|
|
@@ -11,6 +17,7 @@ export var Scan;
|
|
|
11
17
|
sort: isly.string(),
|
|
12
18
|
account: isly.string(),
|
|
13
19
|
holder: isly.string(),
|
|
20
|
+
institution: isly.string().optional(),
|
|
14
21
|
});
|
|
15
22
|
})(Scan || (Scan = {}));
|
|
16
23
|
//# sourceMappingURL=Scan.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scan.js","sourceRoot":"","sources":["../../../../Rail/Address/Scan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Scan.js","sourceRoot":"","sources":["../../../../Rail/Address/Scan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAW3B,MAAM,KAAW,IAAI,CAkBpB;AAlBD,WAAiB,IAAI;IACP,eAAU,GAAG,CAAC,KAAK,CAAU,CAAA;IAC1C,SAAgB,QAAQ,CAAC,IAAU;QAClC,OAAO;YACN,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC;YAChC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YAChC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,WAAW,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAA;IACF,CAAC;IARe,aAAQ,WAQvB,CAAA;IACY,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QACzB,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACrC,CAAC,CAAA;AACH,CAAC,EAlBgB,IAAI,KAAJ,IAAI,QAkBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../../Transaction/Reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../../Transaction/Reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAUtC,MAAM,KAAW,SAAS,CAQzB;AARD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE;QAClC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACpC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACrC,CAAC,CAAA;AACH,CAAC,EARgB,SAAS,KAAT,SAAS,QAQzB"}
|