@pax2pay/model-banking 0.1.139 → 0.1.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ import { gracely } from "gracely"
2
+ import { http } from "cloudly-http"
3
+ import * as rest from "cloudly-rest"
4
+ import { Rule } from "../Rule"
5
+
6
+ export class Rules extends rest.Collection<gracely.Error> {
7
+ constructor(client: http.Client) {
8
+ super(client)
9
+ }
10
+ async replace(rule: Rule[]): Promise<Rule[] | gracely.Error> {
11
+ return this.client.put<Rule[]>(`/rule`, rule)
12
+ }
13
+ async list(): Promise<Rule[] | gracely.Error> {
14
+ return this.client.get<Rule[]>(`/rule`)
15
+ }
16
+ }
@@ -1,4 +1,5 @@
1
1
  import { gracely } from "gracely"
2
+ import { isoly } from "isoly"
2
3
  import { http } from "cloudly-http"
3
4
  import * as rest from "cloudly-rest"
4
5
  import { Transaction } from "../../Transaction"
@@ -16,27 +17,24 @@ export class Transactions extends rest.Collection<gracely.Error> {
16
17
  account?: string
17
18
  limit?: number
18
19
  cursor?: string
19
- status?: "review" | "created" | "approved" | "rejected" | "processing" | "finalized"
20
- currency?: string
21
- direction?: "inbound" | "outbound"
22
- rail?: "internal"
23
- start?: string
24
- end?: string
20
+ index?: Transactions.Index
21
+ dateRange?: isoly.DateRange
25
22
  }): Promise<(Transaction[] & { cursor?: string | undefined }) | gracely.Error> {
26
- const searchOptions = options && (({ account, limit, cursor, ...search }) => search)(options)
27
- const query = searchOptions
28
- ? Object.entries(searchOptions)
29
- .map(([k, v]) => `${k}=${v}`)
30
- .reduce((prev, curr, i) => `${prev}${i == 0 ? "?" : "&"}${curr}`, "")
31
- : ""
32
- const path = options && options.account ? `/account/${options.account}/transaction${query}` : `/transaction${query}`
23
+ const query = Object.entries({ ...(options?.index ?? {}), ...(options?.dateRange ?? {}) })
24
+ .map(([k, v]) => `${k}=${v}`)
25
+ .join("&")
26
+ const path = options?.account ? `/account/${options.account}/transaction` : `/transaction`
33
27
  return this.client.get<Transaction[] & { cursor?: string | undefined }>(
34
- path,
35
- options &&
36
- (({ limit, cursor }) =>
37
- limit || cursor
38
- ? { ...(limit ? { limit: limit.toString() } : {}), ...(cursor ? { cursor: cursor } : {}) }
39
- : undefined)(options)
28
+ path + (query && "?" + query),
29
+ options?.limit ? { limit: options?.limit.toString() } : {}
40
30
  )
41
31
  }
42
32
  }
33
+
34
+ export namespace Transactions {
35
+ export type Index =
36
+ | { status: "review" | "created" | "approved" | "rejected" | "processing" | "finalized" }
37
+ | { currency: isoly.Currency }
38
+ | { direction: "inbound" | "outbound" }
39
+ | { rail: "internal" }
40
+ }
package/Client/index.ts CHANGED
@@ -6,6 +6,7 @@ import { Accounts } from "./Accounts"
6
6
  import { Cards } from "./Cards"
7
7
  import { Operations } from "./Operations"
8
8
  import { Organizations } from "./Organizations"
9
+ import { Rules } from "./Rules"
9
10
  import { Settlements } from "./Settlements"
10
11
  import { Transactions } from "./Transactions"
11
12
  import { Treasury } from "./Treasury"
@@ -14,15 +15,16 @@ import { Version } from "./Version"
14
15
  export class Client extends rest.Client<gracely.Error> {
15
16
  realm?: string
16
17
  organization?: string
17
- readonly userwidgets = new userwidgets.ClientCollection(this.client, { pathPrefix: "/widgets" })
18
18
  readonly accounts = new Accounts(this.client)
19
+ readonly cards = new Cards(this.client)
19
20
  readonly operations = new Operations(this.client)
20
21
  readonly organizations = new Organizations(this.client)
22
+ readonly rules = new Rules(this.client)
23
+ readonly settlements = new Settlements(this.client)
21
24
  readonly transactions = new Transactions(this.client)
22
25
  readonly treasury = new Treasury(this.client)
26
+ readonly userwidgets = new userwidgets.ClientCollection(this.client, { pathPrefix: "/widgets" })
23
27
  readonly version = new Version(this.client)
24
- readonly cards = new Cards(this.client)
25
- readonly settlements = new Settlements(this.client)
26
28
 
27
29
  static create<T = Record<string, any>>(server: string, key: string, load?: (client: http.Client) => T): Client & T {
28
30
  let httpClient: http.Client<gracely.Error>
@@ -0,0 +1,9 @@
1
+ import { isly } from "isly"
2
+
3
+ export type Status = typeof Status.values[number]
4
+ export namespace Status {
5
+ export const values = ["created", "approved", "rejected", "processing", "finalized"] as const
6
+ export const type = isly.string(values)
7
+ export const is = type.is
8
+ export const flaw = type.flaw
9
+ }
@@ -7,38 +7,52 @@ import { Creatable as TransactionCreatable } from "./Creatable"
7
7
  import { Incoming as TransactionIncoming } from "./Incoming"
8
8
  import { Note as TransactionNote } from "./Note"
9
9
  import { Reference as TransactionReference } from "./Reference"
10
+ import { Status as TransactionStatus } from "./Status"
10
11
 
11
- export interface Transaction extends TransactionCreatable {
12
+ export interface Transaction extends Transaction.Creatable {
12
13
  organization: string
13
14
  accountId: string
14
15
  account: Rail
15
16
  readonly id: cryptly.Identifier
16
- readonly reference?: TransactionReference
17
+ readonly reference?: Transaction.Reference
17
18
  readonly posted: isoly.DateTime
18
19
  transacted?: isoly.DateTime
19
20
  balance: number
20
21
  operations: Operation[]
21
- status: "created" | "approved" | "rejected" | "processing" | "finalized"
22
+ status: Transaction.Status
22
23
  flags: ("review" | string)[]
23
24
  oldFlags: string[]
24
- notes: TransactionNote[]
25
+ notes: Transaction.Note[]
25
26
  }
26
27
 
27
28
  export namespace Transaction {
28
- export const type = TransactionCreatable.type.extend<Transaction>({
29
+ export type Creatable = TransactionCreatable
30
+ export const Creatable = TransactionCreatable
31
+ export type Incoming = TransactionIncoming
32
+ export const Incoming = TransactionIncoming
33
+ export type Reference = TransactionReference
34
+ export const Reference = TransactionReference
35
+ export type Note = TransactionNote
36
+ export const Note = TransactionNote
37
+ export type Status = TransactionStatus
38
+ export const Status = TransactionStatus
39
+ export namespace Note {
40
+ export type Creatable = TransactionNote.Creatable
41
+ }
42
+ export const type = Creatable.type.extend<Transaction>({
29
43
  organization: isly.string(),
30
44
  accountId: isly.string(),
31
45
  account: isly.fromIs("Rail", Rail.is),
32
46
  id: isly.fromIs("cryptly.Identifier", cryptly.Identifier.is).readonly(),
33
- reference: isly.fromIs("TransactionReference", TransactionReference.is).readonly().optional(),
47
+ reference: isly.fromIs("TransactionReference", Reference.is).readonly().optional(),
34
48
  posted: isly.string(),
35
49
  transacted: isly.string().optional(),
36
50
  balance: isly.number(),
37
51
  operations: isly.array(isly.fromIs("Operation", Operation.is)),
38
- status: isly.string(["created", "approved", "rejected", "processing", "finalized"]),
52
+ status: Status.type,
39
53
  flags: isly.array(isly.string() || "review"),
40
54
  oldFlags: isly.string().array(),
41
- notes: isly.array(isly.fromIs("TransactionNote", TransactionNote.is)),
55
+ notes: isly.array(isly.fromIs("TransactionNote", Note.is)),
42
56
  })
43
57
  export const is = type.is
44
58
  export const flaw = type.flaw
@@ -71,7 +85,6 @@ export namespace Transaction {
71
85
  notes: [],
72
86
  }
73
87
  }
74
-
75
88
  export function fromIncoming(
76
89
  organization: string,
77
90
  accountId: string,
@@ -99,15 +112,4 @@ export namespace Transaction {
99
112
  export function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier {
100
113
  return cryptly.Identifier.is(value, 8)
101
114
  }
102
-
103
- export type Creatable = TransactionCreatable
104
- export const Creatable = TransactionCreatable
105
- export type Incoming = TransactionIncoming
106
- export const Incoming = TransactionIncoming
107
- export type Reference = TransactionReference
108
- export type Note = TransactionNote
109
- export const Note = TransactionNote
110
- export namespace Note {
111
- export type Creatable = TransactionNote.Creatable
112
- }
113
115
  }
@@ -0,0 +1,9 @@
1
+ import { gracely } from "gracely";
2
+ import { http } from "cloudly-http";
3
+ import * as rest from "cloudly-rest";
4
+ import { Rule } from "../Rule";
5
+ export declare class Rules extends rest.Collection<gracely.Error> {
6
+ constructor(client: http.Client);
7
+ replace(rule: Rule[]): Promise<Rule[] | gracely.Error>;
8
+ list(): Promise<Rule[] | gracely.Error>;
9
+ }
@@ -0,0 +1,13 @@
1
+ import * as rest from "cloudly-rest";
2
+ export class Rules extends rest.Collection {
3
+ constructor(client) {
4
+ super(client);
5
+ }
6
+ async replace(rule) {
7
+ return this.client.put(`/rule`, rule);
8
+ }
9
+ async list() {
10
+ return this.client.get(`/rule`);
11
+ }
12
+ }
13
+ //# sourceMappingURL=Rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rules.js","sourceRoot":"../","sources":["Client/Rules.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,IAAY;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,OAAO,EAAE,IAAI,CAAC,CAAA;IAC9C,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,OAAO,CAAC,CAAA;IACxC,CAAC;CACD"}
@@ -1,4 +1,5 @@
1
1
  import { gracely } from "gracely";
2
+ import { isoly } from "isoly";
2
3
  import { http } from "cloudly-http";
3
4
  import * as rest from "cloudly-rest";
4
5
  import { Transaction } from "../../Transaction";
@@ -11,13 +12,20 @@ export declare class Transactions extends rest.Collection<gracely.Error> {
11
12
  account?: string;
12
13
  limit?: number;
13
14
  cursor?: string;
14
- status?: "review" | "created" | "approved" | "rejected" | "processing" | "finalized";
15
- currency?: string;
16
- direction?: "inbound" | "outbound";
17
- rail?: "internal";
18
- start?: string;
19
- end?: string;
15
+ index?: Transactions.Index;
16
+ dateRange?: isoly.DateRange;
20
17
  }): Promise<(Transaction[] & {
21
18
  cursor?: string | undefined;
22
19
  }) | gracely.Error>;
23
20
  }
21
+ export declare namespace Transactions {
22
+ type Index = {
23
+ status: "review" | "created" | "approved" | "rejected" | "processing" | "finalized";
24
+ } | {
25
+ currency: isoly.Currency;
26
+ } | {
27
+ direction: "inbound" | "outbound";
28
+ } | {
29
+ rail: "internal";
30
+ };
31
+ }
@@ -9,17 +9,11 @@ export class Transactions extends rest.Collection {
9
9
  return this.client.post(`/account/${account}/transaction`, transaction);
10
10
  }
11
11
  async list(options) {
12
- const searchOptions = options && (({ account, limit, cursor, ...search }) => search)(options);
13
- const query = searchOptions
14
- ? Object.entries(searchOptions)
15
- .map(([k, v]) => `${k}=${v}`)
16
- .reduce((prev, curr, i) => `${prev}${i == 0 ? "?" : "&"}${curr}`, "")
17
- : "";
18
- const path = options && options.account ? `/account/${options.account}/transaction${query}` : `/transaction${query}`;
19
- return this.client.get(path, options &&
20
- (({ limit, cursor }) => limit || cursor
21
- ? { ...(limit ? { limit: limit.toString() } : {}), ...(cursor ? { cursor: cursor } : {}) }
22
- : undefined)(options));
12
+ const query = Object.entries({ ...(options?.index ?? {}), ...(options?.dateRange ?? {}) })
13
+ .map(([k, v]) => `${k}=${v}`)
14
+ .join("&");
15
+ const path = options?.account ? `/account/${options.account}/transaction` : `/transaction`;
16
+ return this.client.get(path + (query && "?" + query), options?.limit ? { limit: options?.limit.toString() } : {});
23
17
  }
24
18
  }
25
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Transactions/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,YAAa,SAAQ,IAAI,CAAC,UAAyB;IAE/D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QAFL,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAGvC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,WAAkC;QAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAc,YAAY,OAAO,cAAc,EAAE,WAAW,CAAC,CAAA;IACrF,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAUV;QACA,MAAM,aAAa,GAAG,OAAO,IAAI,CAAC,CAAC,EAAE,OA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ations } from "./Operations";
8
8
  import { Organizations } from "./Organizations";
9
+ import { Rules } from "./Rules";
9
10
  import { Settlements } from "./Settlements";
10
11
  import { Transactions } from "./Transactions";
11
12
  import { Treasury } from "./Treasury";
@@ -13,15 +14,16 @@ import { Version } from "./Version";
13
14
  export declare class Client extends rest.Client<gracely.Error> {
14
15
  realm?: string;
15
16
  organization?: string;
16
- readonly userwidgets: userwidgets.ClientCollection;
17
17
  readonly accounts: Accounts;
18
+ readonly cards: Cards;
18
19
  readonly operations: Operations;
19
20
  readonly organizations: Organizations;
21
+ readonly rules: Rules;
22
+ readonly settlements: Settlements;
20
23
  readonly transactions: Transactions;
21
24
  readonly treasury: Treasury;
25
+ readonly userwidgets: userwidgets.ClientCollection;
22
26
  readonly version: Version;
23
- readonly cards: Cards;
24
- readonly settlements: Settlements;
25
27
  static create<T = Record<string, any>>(server: string, key: string, load?: (client: http.Client) => T): Client & T;
26
28
  }
27
29
  export declare namespace Client {
@@ -5,6 +5,7 @@ import { Accounts } from "./Accounts";
5
5
  import { Cards } from "./Cards";
6
6
  import { Operations } from "./Operations";
7
7
  import { Organizations } from "./Organizations";
8
+ import { Rules } from "./Rules";
8
9
  import { Settlements } from "./Settlements";
9
10
  import { Transactions } from "./Transactions";
10
11
  import { Treasury } from "./Treasury";
@@ -12,15 +13,16 @@ import { Version } from "./Version";
12
13
  export class Client extends rest.Client {
13
14
  constructor() {
14
15
  super(...arguments);
15
- this.userwidgets = new userwidgets.ClientCollection(this.client, { pathPrefix: "/widgets" });
16
16
  this.accounts = new Accounts(this.client);
17
+ this.cards = new Cards(this.client);
17
18
  this.operations = new Operations(this.client);
18
19
  this.organizations = new Organizations(this.client);
20
+ this.rules = new Rules(this.client);
21
+ this.settlements = new Settlements(this.client);
19
22
  this.transactions = new Transactions(this.client);
20
23
  this.treasury = new Treasury(this.client);
24
+ this.userwidgets = new userwidgets.ClientCollection(this.client, { pathPrefix: "/widgets" });
21
25
  this.version = new Version(this.client);
22
- this.cards = new Cards(this.client);
23
- this.settlements = new Settlements(this.client);
24
26
  }
25
27
  static create(server, key, load) {
26
28
  let httpClient;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,MAAM,OAAO,MAAO,SAAQ,IAAI,CAAC,MAAqB;IAAtD;;QAGU,gBAAW,GAAG,IAAI,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAA;QACvF,aAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACpC,eAAU,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACxC,kBAAa,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9C,iBAAY,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC5C,aAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACpC,YAAO,GAAG,IAAI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EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC;SACxG,CAAC,CAAC,CACH,CAAA;QACD,IAAI,IAAI;YACP,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;QACxC,OAAO,MAAoB,CAAA;IAC5B,CAAC;CACD"}
@@ -0,0 +1,8 @@
1
+ import { isly } from "isly";
2
+ export type Status = typeof Status.values[number];
3
+ export declare namespace Status {
4
+ const values: readonly ["created", "approved", "rejected", "processing", "finalized"];
5
+ const type: isly.Type<"rejected" | "created" | "approved" | "processing" | "finalized">;
6
+ const is: isly.Type.IsFunction<"rejected" | "created" | "approved" | "processing" | "finalized">;
7
+ const flaw: isly.Type.FlawFunction;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { isly } from "isly";
2
+ export var Status;
3
+ (function (Status) {
4
+ Status.values = ["created", "approved", "rejected", "processing", "finalized"];
5
+ Status.type = isly.string(Status.values);
6
+ Status.is = Status.type.is;
7
+ Status.flaw = Status.type.flaw;
8
+ })(Status || (Status = {}));
9
+ //# sourceMappingURL=Status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Status.js","sourceRoot":"../","sources":["Transaction/Status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,MAAM,CAKtB;AALD,WAAiB,MAAM;IACT,aAAM,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,CAAU,CAAA;IAChF,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAA,MAAM,CAAC,CAAA;IAC1B,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;IACZ,WAAI,GAAG,OAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EALgB,MAAM,KAAN,MAAM,QAKtB"}
@@ -7,22 +7,36 @@ import { Creatable as TransactionCreatable } from "./Creatable";
7
7
  import { Incoming as TransactionIncoming } from "./Incoming";
8
8
  import { Note as TransactionNote } from "./Note";
9
9
  import { Reference as TransactionReference } from "./Reference";
10
- export interface Transaction extends TransactionCreatable {
10
+ import { Status as TransactionStatus } from "./Status";
11
+ export interface Transaction extends Transaction.Creatable {
11
12
  organization: string;
12
13
  accountId: string;
13
14
  account: Rail;
14
15
  readonly id: cryptly.Identifier;
15
- readonly reference?: TransactionReference;
16
+ readonly reference?: Transaction.Reference;
16
17
  readonly posted: isoly.DateTime;
17
18
  transacted?: isoly.DateTime;
18
19
  balance: number;
19
20
  operations: Operation[];
20
- status: "created" | "approved" | "rejected" | "processing" | "finalized";
21
+ status: Transaction.Status;
21
22
  flags: ("review" | string)[];
22
23
  oldFlags: string[];
23
- notes: TransactionNote[];
24
+ notes: Transaction.Note[];
24
25
  }
25
26
  export declare namespace Transaction {
27
+ type Creatable = TransactionCreatable;
28
+ const Creatable: typeof TransactionCreatable;
29
+ type Incoming = TransactionIncoming;
30
+ const Incoming: typeof TransactionIncoming;
31
+ type Reference = TransactionReference;
32
+ const Reference: typeof TransactionReference;
33
+ type Note = TransactionNote;
34
+ const Note: typeof TransactionNote;
35
+ type Status = TransactionStatus;
36
+ const Status: typeof TransactionStatus;
37
+ namespace Note {
38
+ type Creatable = TransactionNote.Creatable;
39
+ }
26
40
  const type: isly.object.ExtendableType<Transaction>;
27
41
  const is: isly.Type.IsFunction<Transaction>;
28
42
  const flaw: isly.Type.FlawFunction;
@@ -34,14 +48,4 @@ export declare namespace Transaction {
34
48
  operations: Operation.Creatable[];
35
49
  }, result: number): Transaction;
36
50
  function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier;
37
- type Creatable = TransactionCreatable;
38
- const Creatable: typeof TransactionCreatable;
39
- type Incoming = TransactionIncoming;
40
- const Incoming: typeof TransactionIncoming;
41
- type Reference = TransactionReference;
42
- type Note = TransactionNote;
43
- const Note: typeof TransactionNote;
44
- namespace Note {
45
- type Creatable = TransactionNote.Creatable;
46
- }
47
51
  }
@@ -7,22 +7,28 @@ import { Creatable as TransactionCreatable } from "./Creatable";
7
7
  import { Incoming as TransactionIncoming } from "./Incoming";
8
8
  import { Note as TransactionNote } from "./Note";
9
9
  import { Reference as TransactionReference } from "./Reference";
10
+ import { Status as TransactionStatus } from "./Status";
10
11
  export var Transaction;
11
12
  (function (Transaction) {
12
- Transaction.type = TransactionCreatable.type.extend({
13
+ Transaction.Creatable = TransactionCreatable;
14
+ Transaction.Incoming = TransactionIncoming;
15
+ Transaction.Reference = TransactionReference;
16
+ Transaction.Note = TransactionNote;
17
+ Transaction.Status = TransactionStatus;
18
+ Transaction.type = Transaction.Creatable.type.extend({
13
19
  organization: isly.string(),
14
20
  accountId: isly.string(),
15
21
  account: isly.fromIs("Rail", Rail.is),
16
22
  id: isly.fromIs("cryptly.Identifier", cryptly.Identifier.is).readonly(),
17
- reference: isly.fromIs("TransactionReference", TransactionReference.is).readonly().optional(),
23
+ reference: isly.fromIs("TransactionReference", Transaction.Reference.is).readonly().optional(),
18
24
  posted: isly.string(),
19
25
  transacted: isly.string().optional(),
20
26
  balance: isly.number(),
21
27
  operations: isly.array(isly.fromIs("Operation", Operation.is)),
22
- status: isly.string(["created", "approved", "rejected", "processing", "finalized"]),
28
+ status: Transaction.Status.type,
23
29
  flags: isly.array(isly.string() || "review"),
24
30
  oldFlags: isly.string().array(),
25
- notes: isly.array(isly.fromIs("TransactionNote", TransactionNote.is)),
31
+ notes: isly.array(isly.fromIs("TransactionNote", Transaction.Note.is)),
26
32
  });
27
33
  Transaction.is = Transaction.type.is;
28
34
  Transaction.flaw = Transaction.type.flaw;
@@ -74,8 +80,5 @@ export var Transaction;
74
80
  return cryptly.Identifier.is(value, 8);
75
81
  }
76
82
  Transaction.isIdentifier = isIdentifier;
77
- Transaction.Creatable = TransactionCreatable;
78
- Transaction.Incoming = TransactionIncoming;
79
- Transaction.Note = TransactionNote;
80
83
  })(Transaction || (Transa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wBAAY,eAE3B,CAAA;AACF,CAAC,EAvFgB,WAAW,KAAX,WAAW,QAuF3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.139",
3
+ "version": "0.1.141",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",