@pax2pay/model-banking 0.1.287 → 0.1.288
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/Account/index.ts +9 -8
- package/Rail/Address/PaxGiro.ts +3 -3
- package/Rail/Address/PaxgiroCredit.ts +9 -0
- package/Rail/Address/Scan.ts +8 -12
- package/Rail/Address/index.ts +29 -30
- package/Rail/index.ts +12 -23
- package/Transaction/Creatable.ts +2 -2
- package/Transaction/Incoming.ts +11 -4
- package/Transaction/index.ts +24 -21
- package/dist/Account/index.d.ts +6 -5
- package/dist/Account/index.js +3 -2
- package/dist/Account/index.js.map +1 -1
- package/dist/Rail/Address/PaxGiro.d.ts +3 -1
- package/dist/Rail/Address/PaxGiro.js +3 -5
- package/dist/Rail/Address/PaxGiro.js.map +1 -1
- package/dist/Rail/Address/PaxgiroCredit.d.ts +8 -0
- package/dist/Rail/Address/PaxgiroCredit.js +6 -0
- package/dist/Rail/Address/PaxgiroCredit.js.map +1 -0
- package/dist/Rail/Address/Scan.d.ts +3 -1
- package/dist/Rail/Address/Scan.js +8 -11
- package/dist/Rail/Address/Scan.js.map +1 -1
- package/dist/Rail/Address/index.d.ts +12 -17
- package/dist/Rail/Address/index.js +11 -12
- package/dist/Rail/Address/index.js.map +1 -1
- package/dist/Rail/index.d.ts +3 -24
- package/dist/Rail/index.js +12 -14
- package/dist/Rail/index.js.map +1 -1
- package/dist/Transaction/Creatable.d.ts +1 -1
- package/dist/Transaction/Creatable.js +1 -1
- package/dist/Transaction/Creatable.js.map +1 -1
- package/dist/Transaction/Incoming.d.ts +6 -2
- package/dist/Transaction/Incoming.js +6 -3
- package/dist/Transaction/Incoming.js.map +1 -1
- package/dist/Transaction/index.d.ts +21 -19
- package/dist/Transaction/index.js +6 -2
- package/dist/Transaction/index.js.map +1 -1
- package/package.json +2 -2
package/Account/index.ts
CHANGED
|
@@ -7,21 +7,22 @@ import { Rule } from "../Rule"
|
|
|
7
7
|
import { Creatable as AccountCreatable } from "./Creatable"
|
|
8
8
|
|
|
9
9
|
export interface Account extends Account.Creatable {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
id: cryptly.Identifier
|
|
11
|
+
created: isoly.DateTime
|
|
12
|
+
balances: Balances
|
|
13
|
+
rails: Rail.Address[]
|
|
14
|
+
counterparts?: Record<string, Rail.Address>
|
|
14
15
|
key?: string
|
|
15
|
-
|
|
16
|
+
rules?: Rule[]
|
|
16
17
|
}
|
|
17
|
-
|
|
18
18
|
export namespace Account {
|
|
19
19
|
export const type = isly.object<Account>({
|
|
20
20
|
name: isly.string(),
|
|
21
21
|
id: isly.string(),
|
|
22
22
|
created: isly.fromIs("isoly.DateTime", isoly.DateTime.is),
|
|
23
|
-
balances:
|
|
24
|
-
rails:
|
|
23
|
+
balances: Balances.type,
|
|
24
|
+
rails: Rail.Address.isType.array(),
|
|
25
|
+
counterparts: isly.record<Record<string, Rail.Address>>(isly.string(), Rail.Address.isType),
|
|
25
26
|
key: isly.string().optional(),
|
|
26
27
|
rules: Rule.type.array().optional(),
|
|
27
28
|
})
|
package/Rail/Address/PaxGiro.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { cryptly } from "cryptly"
|
|
2
|
+
import { isly } from "isly"
|
|
2
3
|
|
|
3
4
|
export interface PaxGiro {
|
|
4
5
|
type: "paxgiro"
|
|
@@ -6,7 +7,6 @@ export interface PaxGiro {
|
|
|
6
7
|
}
|
|
7
8
|
export namespace PaxGiro {
|
|
8
9
|
export const currencies = ["EUR", "GBP", "SEK", "USD"] as const
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
}
|
|
10
|
+
export const type = isly.object<PaxGiro>({ type: isly.string("paxgiro"), identifier: isly.string() })
|
|
11
|
+
export const is = type.is
|
|
12
12
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
|
|
3
|
+
export interface PaxgiroCredit {
|
|
4
|
+
type: "paxgiro-credit"
|
|
5
|
+
reference: string
|
|
6
|
+
}
|
|
7
|
+
export namespace PaxgiroCredit {
|
|
8
|
+
export const type = isly.object<PaxgiroCredit>({ type: isly.string("paxgiro-credit"), reference: isly.string() })
|
|
9
|
+
}
|
package/Rail/Address/Scan.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
1
2
|
import { Iban } from "./Iban"
|
|
2
3
|
|
|
3
4
|
//SCAN: Sort Code Account Number
|
|
@@ -9,19 +10,14 @@ export interface Scan {
|
|
|
9
10
|
}
|
|
10
11
|
export namespace Scan {
|
|
11
12
|
export const currencies = ["GBP"] as const
|
|
12
|
-
export function is(value: Scan | any): value is Scan {
|
|
13
|
-
return (
|
|
14
|
-
value &&
|
|
15
|
-
typeof value == "object" &&
|
|
16
|
-
value.type == "scan" &&
|
|
17
|
-
typeof value.sort == "string" &&
|
|
18
|
-
value.sort.length == 6 &&
|
|
19
|
-
typeof value.account == "string" &&
|
|
20
|
-
value.account.length == 8 &&
|
|
21
|
-
typeof value.holder == "string"
|
|
22
|
-
)
|
|
23
|
-
}
|
|
24
13
|
export function fromIban(iban: Iban): Scan {
|
|
25
14
|
return { type: "scan", sort: iban.iban.substring(8, 14), account: iban.iban.substring(14), holder: iban.holder }
|
|
26
15
|
}
|
|
16
|
+
export const type = isly.object<Scan>({
|
|
17
|
+
type: isly.string("scan"),
|
|
18
|
+
sort: isly.string(),
|
|
19
|
+
account: isly.string(),
|
|
20
|
+
holder: isly.string(),
|
|
21
|
+
})
|
|
22
|
+
export const is = type.is
|
|
27
23
|
}
|
package/Rail/Address/index.ts
CHANGED
|
@@ -3,17 +3,19 @@ import { Card as AddressCard } from "./Card"
|
|
|
3
3
|
import { Iban as AddressIban } from "./Iban"
|
|
4
4
|
import { Internal as AddressInternal } from "./internal"
|
|
5
5
|
import { PaxGiro as AddressPaxGiro } from "./PaxGiro"
|
|
6
|
+
import { PaxgiroCredit as AddressPaxgiroCredit } from "./PaxgiroCredit"
|
|
6
7
|
import { Scan as AddressScan } from "./Scan"
|
|
7
8
|
|
|
8
9
|
export type Address =
|
|
9
|
-
| AddressPaxGiro
|
|
10
|
-
| AddressInternal
|
|
11
|
-
| AddressIban
|
|
12
|
-
| AddressScan
|
|
13
10
|
| AddressCard
|
|
14
11
|
| AddressCard.Counterpart
|
|
12
|
+
| AddressPaxgiroCredit
|
|
13
|
+
| AddressIban
|
|
14
|
+
| AddressInternal
|
|
15
|
+
| AddressPaxGiro
|
|
16
|
+
| AddressScan
|
|
15
17
|
export namespace Address {
|
|
16
|
-
export const types = ["paxgiro", "internal", "iban", "scan", "card"] as const
|
|
18
|
+
export const types = ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"] as const
|
|
17
19
|
export type Type = typeof types[number]
|
|
18
20
|
export const type = isly.string(types)
|
|
19
21
|
export function compare(addresses: [Address, Address]): boolean {
|
|
@@ -49,6 +51,9 @@ export namespace Address {
|
|
|
49
51
|
case "card":
|
|
50
52
|
result = "id" in Address ? `${Address.type}-${Address.id}` : `${Address.type}-merchant-${Address.merchant.id}`
|
|
51
53
|
break
|
|
54
|
+
case "paxgiro-credit":
|
|
55
|
+
result = `${Address.type}-${Address.reference}`
|
|
56
|
+
break
|
|
52
57
|
}
|
|
53
58
|
return result
|
|
54
59
|
}
|
|
@@ -70,32 +75,26 @@ export namespace Address {
|
|
|
70
75
|
case "card":
|
|
71
76
|
result = "id" in Address ? `${Address.type}-${Address.id}` : `${Address.type}-merchant-${Address.merchant.id}`
|
|
72
77
|
break
|
|
78
|
+
case "paxgiro-credit":
|
|
79
|
+
result = `${Address.type}-${Address.reference}`
|
|
80
|
+
break
|
|
73
81
|
}
|
|
74
82
|
return result
|
|
75
83
|
}
|
|
76
|
-
export
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
export
|
|
89
|
-
export
|
|
90
|
-
export
|
|
91
|
-
export
|
|
92
|
-
export type Scan = AddressScan
|
|
93
|
-
export const Scan = AddressScan
|
|
94
|
-
export type Internal = AddressInternal
|
|
95
|
-
export const Internal = AddressInternal
|
|
96
|
-
export type Card = AddressCard
|
|
97
|
-
export const Card = AddressCard
|
|
98
|
-
export namespace Card {
|
|
99
|
-
export type Counterpart = AddressCard.Counterpart
|
|
100
|
-
}
|
|
84
|
+
export const isType = isly.union<Address>(
|
|
85
|
+
AddressCard.type,
|
|
86
|
+
AddressCard.Counterpart.type,
|
|
87
|
+
AddressPaxgiroCredit.type,
|
|
88
|
+
AddressIban.type,
|
|
89
|
+
AddressInternal.type,
|
|
90
|
+
AddressPaxGiro.type,
|
|
91
|
+
AddressScan.type
|
|
92
|
+
)
|
|
93
|
+
export const is = isType.is
|
|
94
|
+
export import PaxGiro = AddressPaxGiro
|
|
95
|
+
export import Iban = AddressIban
|
|
96
|
+
export import Scan = AddressScan
|
|
97
|
+
export import Internal = AddressInternal
|
|
98
|
+
export import Card = AddressCard
|
|
99
|
+
export import PaxgiroFunding = AddressPaxgiroCredit
|
|
101
100
|
}
|
package/Rail/index.ts
CHANGED
|
@@ -3,28 +3,17 @@ import { Address as RailAddress } from "./Address"
|
|
|
3
3
|
|
|
4
4
|
export type Rail = typeof Rail.rails[number]
|
|
5
5
|
export namespace Rail {
|
|
6
|
-
export const rails = [
|
|
6
|
+
export const rails = [
|
|
7
|
+
"internal",
|
|
8
|
+
"paxgiro",
|
|
9
|
+
"paxgiro-credit",
|
|
10
|
+
"mastercard",
|
|
11
|
+
"fasterpayments",
|
|
12
|
+
"chaps",
|
|
13
|
+
"bacs",
|
|
14
|
+
"transfer",
|
|
15
|
+
"credit",
|
|
16
|
+
] as const
|
|
7
17
|
export const type = isly.string<Rail>(rails)
|
|
8
|
-
export
|
|
9
|
-
export namespace Address {
|
|
10
|
-
export type Type = RailAddress.Type
|
|
11
|
-
export const types = RailAddress.types
|
|
12
|
-
export const is = RailAddress.is
|
|
13
|
-
export const compare = RailAddress.compare
|
|
14
|
-
export const stringify = RailAddress.stringify
|
|
15
|
-
export const beautify = RailAddress.beautify
|
|
16
|
-
export type PaxGiro = RailAddress.PaxGiro
|
|
17
|
-
export const PaxGiro = RailAddress.PaxGiro
|
|
18
|
-
export type Iban = RailAddress.Iban
|
|
19
|
-
export const Iban = RailAddress.Iban
|
|
20
|
-
export type Scan = RailAddress.Scan
|
|
21
|
-
export const Scan = RailAddress.Scan
|
|
22
|
-
export type Internal = RailAddress.Internal
|
|
23
|
-
export const Internal = RailAddress.Internal
|
|
24
|
-
export type Card = RailAddress.Card
|
|
25
|
-
export const Card = RailAddress.Card
|
|
26
|
-
export namespace Card {
|
|
27
|
-
export type Counterpart = RailAddress.Card.Counterpart
|
|
28
|
-
}
|
|
29
|
-
}
|
|
18
|
+
export import Address = RailAddress
|
|
30
19
|
}
|
package/Transaction/Creatable.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { isly } from "isly"
|
|
|
3
3
|
import { Rail } from "../Rail"
|
|
4
4
|
|
|
5
5
|
export interface Creatable {
|
|
6
|
-
counterpart: Rail.Address
|
|
6
|
+
counterpart: string | Rail.Address
|
|
7
7
|
currency: isoly.Currency
|
|
8
8
|
amount: number
|
|
9
9
|
description: string
|
|
10
10
|
}
|
|
11
11
|
export namespace Creatable {
|
|
12
12
|
export const type = isly.object<Creatable>({
|
|
13
|
-
counterpart: isly.
|
|
13
|
+
counterpart: isly.union<string | Rail.Address, string, Rail.Address>(isly.string(), Rail.Address.isType),
|
|
14
14
|
currency: isly.fromIs("isoly.Currency", isoly.Currency.is),
|
|
15
15
|
amount: isly.number(),
|
|
16
16
|
description: isly.string(),
|
package/Transaction/Incoming.ts
CHANGED
|
@@ -2,18 +2,25 @@ import { isoly } from "isoly"
|
|
|
2
2
|
import { isly } from "isly"
|
|
3
3
|
import { Rail } from "../Rail"
|
|
4
4
|
import { Settlement } from "../Settlement"
|
|
5
|
-
import { Creatable as TransactionCreatable } from "./Creatable"
|
|
6
5
|
import { Reference as TransactionReference } from "./Reference"
|
|
7
6
|
|
|
8
|
-
export interface Incoming
|
|
7
|
+
export interface Incoming {
|
|
9
8
|
account: Rail.Address
|
|
9
|
+
counterpart: Rail.Address
|
|
10
|
+
currency: isoly.Currency
|
|
11
|
+
amount: number
|
|
12
|
+
description: string
|
|
10
13
|
posted: string
|
|
11
14
|
rail?: Rail
|
|
12
15
|
reference?: TransactionReference
|
|
13
16
|
}
|
|
14
17
|
export namespace Incoming {
|
|
15
|
-
export const type =
|
|
16
|
-
account:
|
|
18
|
+
export const type = isly.object<Incoming>({
|
|
19
|
+
account: Rail.Address.isType,
|
|
20
|
+
counterpart: Rail.Address.isType,
|
|
21
|
+
currency: isly.fromIs("isoly.Currency", isoly.Currency.is),
|
|
22
|
+
amount: isly.number(),
|
|
23
|
+
description: isly.string(),
|
|
17
24
|
posted: isly.string(),
|
|
18
25
|
rail: Rail.type.optional(),
|
|
19
26
|
reference: TransactionReference.type.optional(),
|
package/Transaction/index.ts
CHANGED
|
@@ -13,16 +13,20 @@ import { Note as TransactionNote } from "./Note"
|
|
|
13
13
|
import { Reference as TransactionReference } from "./Reference"
|
|
14
14
|
import { Status as TransactionStatus } from "./Status"
|
|
15
15
|
|
|
16
|
-
export interface Transaction
|
|
16
|
+
export interface Transaction {
|
|
17
|
+
counterpart: Rail.Address & { code?: string }
|
|
18
|
+
currency: isoly.Currency
|
|
19
|
+
amount: number
|
|
20
|
+
description: string
|
|
17
21
|
organization: string
|
|
18
22
|
accountId: string
|
|
19
23
|
accountName?: string
|
|
20
24
|
account: Rail.Address
|
|
21
25
|
type?: Transaction.Types
|
|
22
26
|
direction?: Transaction.Direction
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
id: cryptly.Identifier
|
|
28
|
+
reference?: Transaction.Reference
|
|
29
|
+
posted: isoly.DateTime
|
|
26
30
|
transacted?: isoly.DateTime
|
|
27
31
|
by?: string
|
|
28
32
|
balance: {
|
|
@@ -44,30 +48,26 @@ export namespace Transaction {
|
|
|
44
48
|
export type Types = typeof types[number]
|
|
45
49
|
export const directions = ["inbound", "outbound"] as const
|
|
46
50
|
export type Direction = typeof directions[number]
|
|
47
|
-
export
|
|
48
|
-
export const Creatable = TransactionCreatable
|
|
51
|
+
export import Creatable = TransactionCreatable
|
|
49
52
|
export type Collect = TransactionCollect
|
|
50
53
|
export const Collect = TransactionCollect
|
|
51
54
|
export namespace Collect {
|
|
52
55
|
export type Creatable = TransactionCollect.Creatable
|
|
53
56
|
}
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export type Note = TransactionNote
|
|
59
|
-
export const Note = TransactionNote
|
|
60
|
-
export namespace Note {
|
|
61
|
-
export type Creatable = TransactionNote.Creatable
|
|
62
|
-
}
|
|
63
|
-
export type Status = TransactionStatus
|
|
64
|
-
export const Status = TransactionStatus
|
|
57
|
+
export import Incoming = TransactionIncoming
|
|
58
|
+
export import Reference = TransactionReference
|
|
59
|
+
export import Note = TransactionNote
|
|
60
|
+
export import Status = TransactionStatus
|
|
65
61
|
|
|
66
|
-
export const type =
|
|
62
|
+
export const type = isly.object<Transaction>({
|
|
63
|
+
counterpart: isly.fromIs("Rail.Address", Rail.Address.is),
|
|
64
|
+
currency: isly.fromIs("isoly.Currency", isoly.Currency.is),
|
|
65
|
+
amount: isly.number(),
|
|
66
|
+
description: isly.string(),
|
|
67
67
|
organization: isly.string(),
|
|
68
68
|
accountId: isly.string(),
|
|
69
69
|
accountName: isly.string().optional(),
|
|
70
|
-
account:
|
|
70
|
+
account: Rail.Address.isType,
|
|
71
71
|
type: isly.string(types).optional(),
|
|
72
72
|
direction: isly.string(directions).optional(),
|
|
73
73
|
id: isly.fromIs("cryptly.Identifier", cryptly.Identifier.is).readonly(),
|
|
@@ -107,7 +107,7 @@ export namespace Transaction {
|
|
|
107
107
|
accountName: string,
|
|
108
108
|
account: Rail.Address,
|
|
109
109
|
rail: Rail,
|
|
110
|
-
creatable: Creatable,
|
|
110
|
+
creatable: Creatable & { counterpart: Rail.Address },
|
|
111
111
|
operations: Operation.Creatable[],
|
|
112
112
|
balance: {
|
|
113
113
|
actual: number
|
|
@@ -186,7 +186,10 @@ export namespace Transaction {
|
|
|
186
186
|
transaction.flags = Array.from(current)
|
|
187
187
|
transaction.oldFlags = Array.from(old)
|
|
188
188
|
}
|
|
189
|
-
export function getType(
|
|
189
|
+
export function getType(
|
|
190
|
+
transaction: TransactionCreatable & { counterpart: Rail.Address },
|
|
191
|
+
accountName: string
|
|
192
|
+
): Types {
|
|
190
193
|
let result: Types
|
|
191
194
|
if (accountName.startsWith("settlement-") || accountName.startsWith("fee-"))
|
|
192
195
|
result = "system"
|
package/dist/Account/index.d.ts
CHANGED
|
@@ -6,12 +6,13 @@ import { Rail } from "../Rail";
|
|
|
6
6
|
import { Rule } from "../Rule";
|
|
7
7
|
import { Creatable as AccountCreatable } from "./Creatable";
|
|
8
8
|
export interface Account extends Account.Creatable {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
id: cryptly.Identifier;
|
|
10
|
+
created: isoly.DateTime;
|
|
11
|
+
balances: Balances;
|
|
12
|
+
rails: Rail.Address[];
|
|
13
|
+
counterparts?: Record<string, Rail.Address>;
|
|
13
14
|
key?: string;
|
|
14
|
-
|
|
15
|
+
rules?: Rule[];
|
|
15
16
|
}
|
|
16
17
|
export declare namespace Account {
|
|
17
18
|
const type: isly.object.ExtendableType<Account>;
|
package/dist/Account/index.js
CHANGED
|
@@ -11,8 +11,9 @@ export var Account;
|
|
|
11
11
|
name: isly.string(),
|
|
12
12
|
id: isly.string(),
|
|
13
13
|
created: isly.fromIs("isoly.DateTime", isoly.DateTime.is),
|
|
14
|
-
balances:
|
|
15
|
-
rails:
|
|
14
|
+
balances: Balances.type,
|
|
15
|
+
rails: Rail.Address.isType.array(),
|
|
16
|
+
counterparts: isly.record(isly.string(), Rail.Address.isType),
|
|
16
17
|
key: isly.string().optional(),
|
|
17
18
|
rules: Rule.type.array().optional(),
|
|
18
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAW3D,MAAM,KAAW,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAW3D,MAAM,KAAW,OAAO,CAmBvB;AAnBD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzD,QAAQ,EAAE,QAAQ,CAAC,IAAI;QACvB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE;QAClC,YAAY,EAAE,IAAI,CAAC,MAAM,CAA+B,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QAC3F,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KACnC,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;AAC1C,CAAC,EAnBgB,OAAO,KAAP,OAAO,QAmBvB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { cryptly } from "cryptly";
|
|
2
|
+
import { isly } from "isly";
|
|
2
3
|
export interface PaxGiro {
|
|
3
4
|
type: "paxgiro";
|
|
4
5
|
identifier: cryptly.Identifier;
|
|
5
6
|
}
|
|
6
7
|
export declare namespace PaxGiro {
|
|
7
8
|
const currencies: readonly ["EUR", "GBP", "SEK", "USD"];
|
|
8
|
-
|
|
9
|
+
const type: isly.object.ExtendableType<PaxGiro>;
|
|
10
|
+
const is: isly.Type.IsFunction<PaxGiro>;
|
|
9
11
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isly } from "isly";
|
|
2
2
|
export var PaxGiro;
|
|
3
3
|
(function (PaxGiro) {
|
|
4
4
|
PaxGiro.currencies = ["EUR", "GBP", "SEK", "USD"];
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
PaxGiro.is = is;
|
|
5
|
+
PaxGiro.type = isly.object({ type: isly.string("paxgiro"), identifier: isly.string() });
|
|
6
|
+
PaxGiro.is = PaxGiro.type.is;
|
|
9
7
|
})(PaxGiro || (PaxGiro = {}));
|
|
10
8
|
//# sourceMappingURL=PaxGiro.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaxGiro.js","sourceRoot":"../","sources":["Rail/Address/PaxGiro.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaxGiro.js","sourceRoot":"../","sources":["Rail/Address/PaxGiro.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,OAAO,CAIvB;AAJD,WAAiB,OAAO;IACV,kBAAU,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAU,CAAA;IAClD,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IACxF,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAJgB,OAAO,KAAP,OAAO,QAIvB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export var PaxgiroCredit;
|
|
3
|
+
(function (PaxgiroCredit) {
|
|
4
|
+
PaxgiroCredit.type = isly.object({ type: isly.string("paxgiro-credit"), reference: isly.string() });
|
|
5
|
+
})(PaxgiroCredit || (PaxgiroCredit = {}));
|
|
6
|
+
//# sourceMappingURL=PaxgiroCredit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaxgiroCredit.js","sourceRoot":"../","sources":["Rail/Address/PaxgiroCredit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,aAAa,CAE7B;AAFD,WAAiB,aAAa;IAChB,kBAAI,GAAG,IAAI,CAAC,MAAM,CAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;AAClH,CAAC,EAFgB,aAAa,KAAb,aAAa,QAE7B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
1
2
|
import { Iban } from "./Iban";
|
|
2
3
|
export interface Scan {
|
|
3
4
|
type: "scan";
|
|
@@ -7,6 +8,7 @@ export interface Scan {
|
|
|
7
8
|
}
|
|
8
9
|
export declare namespace Scan {
|
|
9
10
|
const currencies: readonly ["GBP"];
|
|
10
|
-
function is(value: Scan | any): value is Scan;
|
|
11
11
|
function fromIban(iban: Iban): Scan;
|
|
12
|
+
const type: isly.object.ExtendableType<Scan>;
|
|
13
|
+
const is: isly.Type.IsFunction<Scan>;
|
|
12
14
|
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
1
2
|
export var Scan;
|
|
2
3
|
(function (Scan) {
|
|
3
4
|
Scan.currencies = ["GBP"];
|
|
4
|
-
function is(value) {
|
|
5
|
-
return (value &&
|
|
6
|
-
typeof value == "object" &&
|
|
7
|
-
value.type == "scan" &&
|
|
8
|
-
typeof value.sort == "string" &&
|
|
9
|
-
value.sort.length == 6 &&
|
|
10
|
-
typeof value.account == "string" &&
|
|
11
|
-
value.account.length == 8 &&
|
|
12
|
-
typeof value.holder == "string");
|
|
13
|
-
}
|
|
14
|
-
Scan.is = is;
|
|
15
5
|
function fromIban(iban) {
|
|
16
6
|
return { type: "scan", sort: iban.iban.substring(8, 14), account: iban.iban.substring(14), holder: iban.holder };
|
|
17
7
|
}
|
|
18
8
|
Scan.fromIban = fromIban;
|
|
9
|
+
Scan.type = isly.object({
|
|
10
|
+
type: isly.string("scan"),
|
|
11
|
+
sort: isly.string(),
|
|
12
|
+
account: isly.string(),
|
|
13
|
+
holder: isly.string(),
|
|
14
|
+
});
|
|
15
|
+
Scan.is = Scan.type.is;
|
|
19
16
|
})(Scan || (Scan = {}));
|
|
20
17
|
//# sourceMappingURL=Scan.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scan.js","sourceRoot":"../","sources":["Rail/Address/Scan.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Scan.js","sourceRoot":"../","sources":["Rail/Address/Scan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAU3B,MAAM,KAAW,IAAI,CAYpB;AAZD,WAAiB,IAAI;IACP,eAAU,GAAG,CAAC,KAAK,CAAU,CAAA;IAC1C,SAAgB,QAAQ,CAAC,IAAU;QAClC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAA;IACjH,CAAC;IAFe,aAAQ,WAEvB,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;KACrB,CAAC,CAAA;IACW,OAAE,GAAG,KAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAZgB,IAAI,KAAJ,IAAI,QAYpB"}
|
|
@@ -3,28 +3,23 @@ import { Card as AddressCard } from "./Card";
|
|
|
3
3
|
import { Iban as AddressIban } from "./Iban";
|
|
4
4
|
import { Internal as AddressInternal } from "./internal";
|
|
5
5
|
import { PaxGiro as AddressPaxGiro } from "./PaxGiro";
|
|
6
|
+
import { PaxgiroCredit as AddressPaxgiroCredit } from "./PaxgiroCredit";
|
|
6
7
|
import { Scan as AddressScan } from "./Scan";
|
|
7
|
-
export type Address =
|
|
8
|
+
export type Address = AddressCard | AddressCard.Counterpart | AddressPaxgiroCredit | AddressIban | AddressInternal | AddressPaxGiro | AddressScan;
|
|
8
9
|
export declare namespace Address {
|
|
9
|
-
const types: readonly ["paxgiro", "internal", "iban", "scan", "card"];
|
|
10
|
+
const types: readonly ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"];
|
|
10
11
|
type Type = typeof types[number];
|
|
11
|
-
const type: isly.Type<"paxgiro" | "card" | "
|
|
12
|
+
const type: isly.Type<"paxgiro" | "card" | "paxgiro-credit" | "iban" | "internal" | "scan">;
|
|
12
13
|
function compare(addresses: [Address, Address]): boolean;
|
|
13
14
|
function parse(value: string): Address | undefined;
|
|
14
15
|
function stringify(Address: Address): string;
|
|
15
16
|
function beautify(Address: Address): string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const Internal: typeof AddressInternal;
|
|
25
|
-
type Card = AddressCard;
|
|
26
|
-
const Card: typeof AddressCard;
|
|
27
|
-
namespace Card {
|
|
28
|
-
type Counterpart = AddressCard.Counterpart;
|
|
29
|
-
}
|
|
17
|
+
const isType: isly.Type<Address>;
|
|
18
|
+
const is: isly.Type.IsFunction<Address>;
|
|
19
|
+
export import PaxGiro = AddressPaxGiro;
|
|
20
|
+
export import Iban = AddressIban;
|
|
21
|
+
export import Scan = AddressScan;
|
|
22
|
+
export import Internal = AddressInternal;
|
|
23
|
+
export import Card = AddressCard;
|
|
24
|
+
export import PaxgiroFunding = AddressPaxgiroCredit;
|
|
30
25
|
}
|
|
@@ -3,10 +3,11 @@ import { Card as AddressCard } from "./Card";
|
|
|
3
3
|
import { Iban as AddressIban } from "./Iban";
|
|
4
4
|
import { Internal as AddressInternal } from "./internal";
|
|
5
5
|
import { PaxGiro as AddressPaxGiro } from "./PaxGiro";
|
|
6
|
+
import { PaxgiroCredit as AddressPaxgiroCredit } from "./PaxgiroCredit";
|
|
6
7
|
import { Scan as AddressScan } from "./Scan";
|
|
7
8
|
export var Address;
|
|
8
9
|
(function (Address_1) {
|
|
9
|
-
Address_1.types = ["paxgiro", "internal", "iban", "scan", "card"];
|
|
10
|
+
Address_1.types = ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"];
|
|
10
11
|
Address_1.type = isly.string(Address_1.types);
|
|
11
12
|
function compare(addresses) {
|
|
12
13
|
return Object.entries(addresses[0]).every(([key, value]) => value == addresses[1][key]);
|
|
@@ -41,6 +42,9 @@ export var Address;
|
|
|
41
42
|
case "card":
|
|
42
43
|
result = "id" in Address ? `${Address.type}-${Address.id}` : `${Address.type}-merchant-${Address.merchant.id}`;
|
|
43
44
|
break;
|
|
45
|
+
case "paxgiro-credit":
|
|
46
|
+
result = `${Address.type}-${Address.reference}`;
|
|
47
|
+
break;
|
|
44
48
|
}
|
|
45
49
|
return result;
|
|
46
50
|
}
|
|
@@ -63,25 +67,20 @@ export var Address;
|
|
|
63
67
|
case "card":
|
|
64
68
|
result = "id" in Address ? `${Address.type}-${Address.id}` : `${Address.type}-merchant-${Address.merchant.id}`;
|
|
65
69
|
break;
|
|
70
|
+
case "paxgiro-credit":
|
|
71
|
+
result = `${Address.type}-${Address.reference}`;
|
|
72
|
+
break;
|
|
66
73
|
}
|
|
67
74
|
return result;
|
|
68
75
|
}
|
|
69
76
|
Address_1.beautify = beautify;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
typeof value == "object" &&
|
|
73
|
-
(Address_1.PaxGiro.is(value) ||
|
|
74
|
-
Address_1.Iban.is(value) ||
|
|
75
|
-
Address_1.Internal.is(value) ||
|
|
76
|
-
Address_1.Scan.is(value) ||
|
|
77
|
-
Address_1.Card.is(value) ||
|
|
78
|
-
Address_1.Card.Counterpart.type.is(value)));
|
|
79
|
-
}
|
|
80
|
-
Address_1.is = is;
|
|
77
|
+
Address_1.isType = isly.union(AddressCard.type, AddressCard.Counterpart.type, AddressPaxgiroCredit.type, AddressIban.type, AddressInternal.type, AddressPaxGiro.type, AddressScan.type);
|
|
78
|
+
Address_1.is = Address_1.isType.is;
|
|
81
79
|
Address_1.PaxGiro = AddressPaxGiro;
|
|
82
80
|
Address_1.Iban = AddressIban;
|
|
83
81
|
Address_1.Scan = AddressScan;
|
|
84
82
|
Address_1.Internal = AddressInternal;
|
|
85
83
|
Address_1.Card = AddressCard;
|
|
84
|
+
Address_1.PaxgiroFunding = AddressPaxgiroCredit;
|
|
86
85
|
})(Address || (Address = {}));
|
|
87
86
|
//# 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;AAC3B,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,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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address";
|
|
3
3
|
export type Rail = typeof Rail.rails[number];
|
|
4
4
|
export declare namespace Rail {
|
|
5
|
-
const rails: readonly ["internal", "paxgiro", "mastercard", "fasterpayments", "chaps", "bacs", "transfer"];
|
|
6
|
-
const type: isly.Type<"paxgiro" | "mastercard" | "internal" | "fasterpayments" | "chaps" | "bacs" | "transfer">;
|
|
7
|
-
|
|
8
|
-
namespace Address {
|
|
9
|
-
type Type = RailAddress.Type;
|
|
10
|
-
const types: readonly ["paxgiro", "internal", "iban", "scan", "card"];
|
|
11
|
-
const is: typeof RailAddress.is;
|
|
12
|
-
const compare: typeof RailAddress.compare;
|
|
13
|
-
const stringify: typeof RailAddress.stringify;
|
|
14
|
-
const beautify: typeof RailAddress.beautify;
|
|
15
|
-
type PaxGiro = RailAddress.PaxGiro;
|
|
16
|
-
const PaxGiro: typeof import("./Address/PaxGiro").PaxGiro;
|
|
17
|
-
type Iban = RailAddress.Iban;
|
|
18
|
-
const Iban: typeof import("./Address/Iban").Iban;
|
|
19
|
-
type Scan = RailAddress.Scan;
|
|
20
|
-
const Scan: typeof import("./Address/Scan").Scan;
|
|
21
|
-
type Internal = RailAddress.Internal;
|
|
22
|
-
const Internal: typeof import("./Address/internal").Internal;
|
|
23
|
-
type Card = RailAddress.Card;
|
|
24
|
-
const Card: typeof import("./Address/Card").Card;
|
|
25
|
-
namespace Card {
|
|
26
|
-
type Counterpart = RailAddress.Card.Counterpart;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
5
|
+
const rails: readonly ["internal", "paxgiro", "paxgiro-credit", "mastercard", "fasterpayments", "chaps", "bacs", "transfer", "credit"];
|
|
6
|
+
const type: isly.Type<"paxgiro" | "mastercard" | "paxgiro-credit" | "internal" | "fasterpayments" | "chaps" | "bacs" | "transfer" | "credit">;
|
|
7
|
+
export import Address = RailAddress;
|
|
29
8
|
}
|
package/dist/Rail/index.js
CHANGED
|
@@ -2,20 +2,18 @@ import { isly } from "isly";
|
|
|
2
2
|
import { Address as RailAddress } from "./Address";
|
|
3
3
|
export var Rail;
|
|
4
4
|
(function (Rail) {
|
|
5
|
-
Rail.rails = [
|
|
5
|
+
Rail.rails = [
|
|
6
|
+
"internal",
|
|
7
|
+
"paxgiro",
|
|
8
|
+
"paxgiro-credit",
|
|
9
|
+
"mastercard",
|
|
10
|
+
"fasterpayments",
|
|
11
|
+
"chaps",
|
|
12
|
+
"bacs",
|
|
13
|
+
"transfer",
|
|
14
|
+
"credit",
|
|
15
|
+
];
|
|
6
16
|
Rail.type = isly.string(Rail.rails);
|
|
7
|
-
|
|
8
|
-
(function (Address) {
|
|
9
|
-
Address.types = RailAddress.types;
|
|
10
|
-
Address.is = RailAddress.is;
|
|
11
|
-
Address.compare = RailAddress.compare;
|
|
12
|
-
Address.stringify = RailAddress.stringify;
|
|
13
|
-
Address.beautify = RailAddress.beautify;
|
|
14
|
-
Address.PaxGiro = RailAddress.PaxGiro;
|
|
15
|
-
Address.Iban = RailAddress.Iban;
|
|
16
|
-
Address.Scan = RailAddress.Scan;
|
|
17
|
-
Address.Internal = RailAddress.Internal;
|
|
18
|
-
Address.Card = RailAddress.Card;
|
|
19
|
-
})(Address = Rail.Address || (Rail.Address = {}));
|
|
17
|
+
Rail.Address = RailAddress;
|
|
20
18
|
})(Rail || (Rail = {}));
|
|
21
19
|
//# sourceMappingURL=index.js.map
|
package/dist/Rail/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA;AAGlD,MAAM,KAAW,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA;AAGlD,MAAM,KAAW,IAAI,CAcpB;AAdD,WAAiB,IAAI;IACP,UAAK,GAAG;QACpB,UAAU;QACV,SAAS;QACT,gBAAgB;QAChB,YAAY;QACZ,gBAAgB;QAChB,OAAO;QACP,MAAM;QACN,UAAU;QACV,QAAQ;KACC,CAAA;IACG,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO,KAAA,KAAK,CAAC,CAAA;IAC9B,YAAO,GAAG,WAAW,CAAA;AACpC,CAAC,EAdgB,IAAI,KAAJ,IAAI,QAcpB"}
|
|
@@ -4,7 +4,7 @@ import { Rail } from "../Rail";
|
|
|
4
4
|
export var Creatable;
|
|
5
5
|
(function (Creatable) {
|
|
6
6
|
Creatable.type = isly.object({
|
|
7
|
-
counterpart: isly.
|
|
7
|
+
counterpart: isly.union(isly.string(), Rail.Address.isType),
|
|
8
8
|
currency: isly.fromIs("isoly.Currency", isoly.Currency.is),
|
|
9
9
|
amount: isly.number(),
|
|
10
10
|
description: isly.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Transaction/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAQ9B,MAAM,KAAW,SAAS,CAUzB;AAVD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,WAAW,EAAE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Transaction/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAQ9B,MAAM,KAAW,SAAS,CAUzB;AAVD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,WAAW,EAAE,IAAI,CAAC,KAAK,CAA8C,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QACxG,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1D,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;KAC1B,CAAC,CAAA;IACW,YAAE,GAAG,UAAA,IAAI,CAAC,EAAE,CAAA;IACZ,cAAI,GAAG,UAAA,IAAI,CAAC,IAAI,CAAA;IAChB,aAAG,GAAG,UAAA,IAAI,CAAC,GAAG,CAAA;AAC5B,CAAC,EAVgB,SAAS,KAAT,SAAS,QAUzB"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
1
2
|
import { isly } from "isly";
|
|
2
3
|
import { Rail } from "../Rail";
|
|
3
4
|
import { Settlement } from "../Settlement";
|
|
4
|
-
import { Creatable as TransactionCreatable } from "./Creatable";
|
|
5
5
|
import { Reference as TransactionReference } from "./Reference";
|
|
6
|
-
export interface Incoming
|
|
6
|
+
export interface Incoming {
|
|
7
7
|
account: Rail.Address;
|
|
8
|
+
counterpart: Rail.Address;
|
|
9
|
+
currency: isoly.Currency;
|
|
10
|
+
amount: number;
|
|
11
|
+
description: string;
|
|
8
12
|
posted: string;
|
|
9
13
|
rail?: Rail;
|
|
10
14
|
reference?: TransactionReference;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
3
|
import { Rail } from "../Rail";
|
|
4
|
-
import { Creatable as TransactionCreatable } from "./Creatable";
|
|
5
4
|
import { Reference as TransactionReference } from "./Reference";
|
|
6
5
|
export var Incoming;
|
|
7
6
|
(function (Incoming) {
|
|
8
|
-
Incoming.type =
|
|
9
|
-
account:
|
|
7
|
+
Incoming.type = isly.object({
|
|
8
|
+
account: Rail.Address.isType,
|
|
9
|
+
counterpart: Rail.Address.isType,
|
|
10
|
+
currency: isly.fromIs("isoly.Currency", isoly.Currency.is),
|
|
11
|
+
amount: isly.number(),
|
|
12
|
+
description: isly.string(),
|
|
10
13
|
posted: isly.string(),
|
|
11
14
|
rail: Rail.type.optional(),
|
|
12
15
|
reference: TransactionReference.type.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Incoming.js","sourceRoot":"../","sources":["Transaction/Incoming.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"Incoming.js","sourceRoot":"../","sources":["Transaction/Incoming.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAY/D,MAAM,KAAW,QAAQ,CAyBxB;AAzBD,WAAiB,QAAQ;IACX,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW;QACzC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;QAC5B,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;QAChC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1D,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC1B,SAAS,EAAE,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE;KAC/C,CAAC,CAAA;IACW,WAAE,GAAG,SAAA,IAAI,CAAC,EAAE,CAAA;IACZ,aAAI,GAAG,SAAA,IAAI,CAAC,IAAI,CAAA;IAC7B,SAAgB,UAAU,CAAC,KAAwC,EAAE,IAAuB;QAC3F,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAA;QACvC,OAAO;YACN,OAAO,EAAE,IAAI;YACb,QAAQ;YACR,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;YAChF,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC5B,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;YACjF,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,IAAI,CAAC,MAAM;SACjB,CAAA;IACF,CAAC;IAXe,mBAAU,aAWzB,CAAA;AACF,CAAC,EAzBgB,QAAQ,KAAR,QAAQ,QAyBxB"}
|
|
@@ -10,16 +10,22 @@ import { Incoming as TransactionIncoming } from "./Incoming";
|
|
|
10
10
|
import { Note as TransactionNote } from "./Note";
|
|
11
11
|
import { Reference as TransactionReference } from "./Reference";
|
|
12
12
|
import { Status as TransactionStatus } from "./Status";
|
|
13
|
-
export interface Transaction
|
|
13
|
+
export interface Transaction {
|
|
14
|
+
counterpart: Rail.Address & {
|
|
15
|
+
code?: string;
|
|
16
|
+
};
|
|
17
|
+
currency: isoly.Currency;
|
|
18
|
+
amount: number;
|
|
19
|
+
description: string;
|
|
14
20
|
organization: string;
|
|
15
21
|
accountId: string;
|
|
16
22
|
accountName?: string;
|
|
17
23
|
account: Rail.Address;
|
|
18
24
|
type?: Transaction.Types;
|
|
19
25
|
direction?: Transaction.Direction;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
id: cryptly.Identifier;
|
|
27
|
+
reference?: Transaction.Reference;
|
|
28
|
+
posted: isoly.DateTime;
|
|
23
29
|
transacted?: isoly.DateTime;
|
|
24
30
|
by?: string;
|
|
25
31
|
balance: {
|
|
@@ -41,24 +47,16 @@ export declare namespace Transaction {
|
|
|
41
47
|
type Types = typeof types[number];
|
|
42
48
|
const directions: readonly ["inbound", "outbound"];
|
|
43
49
|
type Direction = typeof directions[number];
|
|
44
|
-
|
|
45
|
-
const Creatable: typeof TransactionCreatable;
|
|
50
|
+
export import Creatable = TransactionCreatable;
|
|
46
51
|
type Collect = TransactionCollect;
|
|
47
52
|
const Collect: typeof TransactionCollect;
|
|
48
53
|
namespace Collect {
|
|
49
54
|
type Creatable = TransactionCollect.Creatable;
|
|
50
55
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
type Note = TransactionNote;
|
|
56
|
-
const Note: typeof TransactionNote;
|
|
57
|
-
namespace Note {
|
|
58
|
-
type Creatable = TransactionNote.Creatable;
|
|
59
|
-
}
|
|
60
|
-
type Status = TransactionStatus;
|
|
61
|
-
const Status: typeof TransactionStatus;
|
|
56
|
+
export import Incoming = TransactionIncoming;
|
|
57
|
+
export import Reference = TransactionReference;
|
|
58
|
+
export import Note = TransactionNote;
|
|
59
|
+
export import Status = TransactionStatus;
|
|
62
60
|
const type: isly.object.ExtendableType<Transaction>;
|
|
63
61
|
const is: isly.Type.IsFunction<Transaction>;
|
|
64
62
|
const flaw: isly.Type.FlawFunction;
|
|
@@ -70,7 +68,9 @@ export declare namespace Transaction {
|
|
|
70
68
|
const get: isly.Type.GetFunction<Omit<Transaction, "state">>;
|
|
71
69
|
function from(transaction: Transaction): Event;
|
|
72
70
|
}
|
|
73
|
-
function fromCreatable(organization: string, accountId: string, accountName: string, account: Rail.Address, rail: Rail, creatable: Creatable
|
|
71
|
+
function fromCreatable(organization: string, accountId: string, accountName: string, account: Rail.Address, rail: Rail, creatable: Creatable & {
|
|
72
|
+
counterpart: Rail.Address;
|
|
73
|
+
}, operations: Operation.Creatable[], balance: {
|
|
74
74
|
actual: number;
|
|
75
75
|
reserved: number;
|
|
76
76
|
available: number;
|
|
@@ -82,7 +82,9 @@ export declare namespace Transaction {
|
|
|
82
82
|
}): Transaction;
|
|
83
83
|
function isIdentifier(value: string | any): value is string;
|
|
84
84
|
function flag(transaction: Transaction, flags: string[] | undefined): void;
|
|
85
|
-
function getType(transaction: TransactionCreatable
|
|
85
|
+
function getType(transaction: TransactionCreatable & {
|
|
86
|
+
counterpart: Rail.Address;
|
|
87
|
+
}, accountName: string): Types;
|
|
86
88
|
function getDirection(amount: number): Direction;
|
|
87
89
|
function toCsv(transactions: Transaction[]): string;
|
|
88
90
|
}
|
|
@@ -21,11 +21,15 @@ export var Transaction;
|
|
|
21
21
|
Transaction.Reference = TransactionReference;
|
|
22
22
|
Transaction.Note = TransactionNote;
|
|
23
23
|
Transaction.Status = TransactionStatus;
|
|
24
|
-
Transaction.type =
|
|
24
|
+
Transaction.type = isly.object({
|
|
25
|
+
counterpart: isly.fromIs("Rail.Address", Rail.Address.is),
|
|
26
|
+
currency: isly.fromIs("isoly.Currency", isoly.Currency.is),
|
|
27
|
+
amount: isly.number(),
|
|
28
|
+
description: isly.string(),
|
|
25
29
|
organization: isly.string(),
|
|
26
30
|
accountId: isly.string(),
|
|
27
31
|
accountName: isly.string().optional(),
|
|
28
|
-
account:
|
|
32
|
+
account: Rail.Address.isType,
|
|
29
33
|
type: isly.string(Transaction.types).optional(),
|
|
30
34
|
direction: isly.string(Transaction.directions).optional(),
|
|
31
35
|
id: isly.fromIs("cryptly.Identifier", cryptly.Identifier.is).readonly(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,WAAW,CAAA;AACzD,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;AAChD,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAC/D,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM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,CAAC,EAAE,CAAA;IACd,CAAC;IACD,SAAgB,KAAK,CAAC,YAA2B;QAChD,OAAO,MAAM,CAAC,KAAK,CAClB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EACnB,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAC9B,MAAM,CAAC,GAAG,CAAC,KAAK,CACf,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,EAC9C,GAAG,CACH,CACD,EACD,GAAG,CACH,CAAA;IACF,CAAC;IAXe,iBAAK,QAWpB,CAAA;AACF,CAAC,EArNgB,WAAW,KAAX,WAAW,QAqN3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pax2pay/model-banking",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.288",
|
|
4
4
|
"description": "Library containing data model types and functions for the Pax2Pay Banking API.",
|
|
5
5
|
"author": "Pax2Pay Ltd",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"cloudly-storage": "^0.10.6",
|
|
78
78
|
"cryptly": "^4.0.4",
|
|
79
79
|
"gracely": "^2.0.8",
|
|
80
|
-
"isly": "0.1.
|
|
80
|
+
"isly": "0.1.14",
|
|
81
81
|
"isoly": "^2.3.9",
|
|
82
82
|
"selectively": "^2.0.10"
|
|
83
83
|
}
|