@pax2pay/model-banking 0.1.145 → 0.1.147

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,28 @@
1
+ import { isoly } from "isoly"
2
+ import { isly } from "isly"
3
+
4
+ export type Indices =
5
+ | ["currency", isoly.Currency]
6
+ | ["direction", Indices.Direction]
7
+ | ["rail", Indices.Rail]
8
+ | ["status", Indices.Status]
9
+ export namespace Indices {
10
+ const direction = ["inbound", "outbound"] as const
11
+ export type Direction = typeof direction[number]
12
+ const rail = "internal"
13
+ export type Rail = typeof rail
14
+ const status = ["review", "created", "approved", "rejected", "processing", "finalized"] as const
15
+ export type Status = typeof status[number]
16
+ export const type = isly.union(
17
+ isly.tuple<Indices>(isly.string("currency"), isly.fromIs("isoly.Currency", isoly.Currency.is)),
18
+ isly.tuple<Indices>(isly.string("direction"), isly.string(direction)),
19
+ isly.tuple<Indices>(isly.string("rail"), isly.string(rail)),
20
+ isly.tuple<Indices>(isly.string("status"), isly.string(status))
21
+ )
22
+ export const is = type.is
23
+ export const flaw = type.flaw
24
+ export function parse(value: string | undefined): Indices | undefined {
25
+ const indices = value?.split(",")
26
+ return is(indices) ? indices : undefined
27
+ }
28
+ }
@@ -3,6 +3,7 @@ import { isoly } from "isoly"
3
3
  import { http } from "cloudly-http"
4
4
  import * as rest from "cloudly-rest"
5
5
  import { Transaction } from "../../Transaction"
6
+ import { Indices as TransactionIndex } from "./Indices"
6
7
  import { Notes } from "./Notes"
7
8
 
8
9
  export class Transactions extends rest.Collection<gracely.Error> {
@@ -20,7 +21,10 @@ export class Transactions extends rest.Collection<gracely.Error> {
20
21
  index?: Transactions.Index
21
22
  dateRange?: isoly.DateRange
22
23
  }): Promise<(Transaction[] & { cursor?: string | undefined }) | gracely.Error> {
23
- const query = Object.entries({ ...(options?.index ?? {}), ...(options?.dateRange ?? {}) })
24
+ const query = Object.entries({
25
+ ...(options?.index ? { index: options.index.join(",") } : {}),
26
+ ...(options?.dateRange ?? {}),
27
+ })
24
28
  .map(([k, v]) => `${k}=${v}`)
25
29
  .join("&")
26
30
  const path = options?.account ? `/account/${options.account}/transaction` : `/transaction`
@@ -32,9 +36,6 @@ export class Transactions extends rest.Collection<gracely.Error> {
32
36
  }
33
37
 
34
38
  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" }
39
+ export type Index = TransactionIndex
40
+ export const Index = TransactionIndex
40
41
  }
package/Client/index.ts CHANGED
@@ -9,7 +9,7 @@ import { Operations } from "./Operations"
9
9
  import { Organizations } from "./Organizations"
10
10
  import { Rules } from "./Rules"
11
11
  import { Settlements } from "./Settlements"
12
- import { Transactions } from "./Transactions"
12
+ import { Transactions as ClientTransactions } from "./Transactions"
13
13
  import { Treasury } from "./Treasury"
14
14
  import { Version } from "./Version"
15
15
 
@@ -22,7 +22,7 @@ export class Client extends rest.Client<gracely.Error> {
22
22
  readonly organizations = new Organizations(this.client)
23
23
  readonly rules = new Rules(this.client)
24
24
  readonly settlements = new Settlements(this.client)
25
- readonly transactions = new Transactions(this.client)
25
+ readonly transactions = new ClientTransactions(this.client)
26
26
  readonly treasury = new Treasury(this.client)
27
27
  readonly flags = new Flags(this.client)
28
28
  readonly userwidgets = new userwidgets.ClientCollection(this.client, { pathPrefix: "/widgets" })
@@ -41,5 +41,9 @@ export class Client extends rest.Client<gracely.Error> {
41
41
  }
42
42
  }
43
43
  export namespace Client {
44
+ export const Transactions = ClientTransactions
45
+ export namespace Transactions {
46
+ export type Index = ClientTransactions.Index
47
+ }
44
48
  export type Unauthorized = (client: rest.Client<never>) => Promise<boolean>
45
49
  }
@@ -32,12 +32,15 @@ export namespace State {
32
32
  }
33
33
  export type Partial = StatePartial
34
34
  export const Partial = StatePartial
35
- export type Account = StateAccount
36
- export const Account = StateAccount
37
35
  export type Authorization = StateAuthorization
38
36
  export const Authorization = StateAuthorization
39
37
  export type Card = StateCard
40
38
  export const Card = StateCard
39
+ export type Account = StateAccount
40
+ export const Account = StateAccount
41
+ export namespace Account {
42
+ export type Transactions = StateAccount.Transactions
43
+ }
41
44
  export type Transaction = StateTransaction
42
45
  export const Transaction = StateTransaction
43
46
  }
package/Rule/index.ts CHANGED
@@ -14,6 +14,9 @@ export namespace Rule {
14
14
  export const State = RuleState
15
15
  export namespace State {
16
16
  export type Account = RuleState.Account
17
+ export namespace Account {
18
+ export type Transactions = RuleState.Account.Transactions
19
+ }
17
20
  export type Authorization = RuleState.Authorization
18
21
  export type Card = RuleState.Card
19
22
  export type Transaction = RuleState.Transaction
@@ -0,0 +1,16 @@
1
+ import { isoly } from "isoly";
2
+ import { isly } from "isly";
3
+ export type Indices = ["currency", isoly.Currency] | ["direction", Indices.Direction] | ["rail", Indices.Rail] | ["status", Indices.Status];
4
+ export declare namespace Indices {
5
+ const direction: readonly ["inbound", "outbound"];
6
+ export type Direction = typeof direction[number];
7
+ const rail = "internal";
8
+ export type Rail = typeof rail;
9
+ const status: readonly ["review", "created", "approved", "rejected", "processing", "finalized"];
10
+ export type Status = typeof status[number];
11
+ export const type: isly.Type<Indices>;
12
+ export const is: isly.Type.IsFunction<Indices>;
13
+ export const flaw: isly.Type.FlawFunction;
14
+ export function parse(value: string | undefined): Indices | undefined;
15
+ export {};
16
+ }
@@ -0,0 +1,17 @@
1
+ import { isoly } from "isoly";
2
+ import { isly } from "isly";
3
+ export var Indices;
4
+ (function (Indices) {
5
+ const direction = ["inbound", "outbound"];
6
+ const rail = "internal";
7
+ const status = ["review", "created", "approved", "rejected", "processing", "finalized"];
8
+ Indices.type = isly.union(isly.tuple(isly.string("currency"), isly.fromIs("isoly.Currency", isoly.Currency.is)), isly.tuple(isly.string("direction"), isly.string(direction)), isly.tuple(isly.string("rail"), isly.string(rail)), isly.tuple(isly.string("status"), isly.string(status)));
9
+ Indices.is = Indices.type.is;
10
+ Indices.flaw = Indices.type.flaw;
11
+ function parse(value) {
12
+ const indices = value?.split(",");
13
+ return Indices.is(indices) ? indices : undefined;
14
+ }
15
+ Indices.parse = parse;
16
+ })(Indices || (Indices = {}));
17
+ //# sourceMappingURL=Indices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Indices.js","sourceRoot":"../","sources":["Client/Transactions/Indices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,KAAW,OAAO,CAmBvB;AAnBD,WAAiB,OAAO;IACvB,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,UAAU,CAAU,CAAA;IAElD,MAAM,IAAI,GAAG,UAAU,CAAA;IAEvB,MAAM,MAAM,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,CAAU,CAAA;IAEnF,YAAI,GAAG,IAAI,CAAC,KAAK,CAC7B,IAAI,CAAC,KAAK,CAAU,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAC9F,IAAI,CAAC,KAAK,CAAU,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,EACrE,IAAI,CAAC,KAAK,CAAU,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAC3D,IAAI,CAAC,KAAK,CAAU,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAC/D,CAAA;IACY,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;IAC7B,SAAgB,KAAK,CAAC,KAAyB;QAC9C,MAAM,OAAO,GAAG,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;QACjC,OAAO,QAAA,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAA;IACzC,CAAC;IAHe,aAAK,QAGpB,CAAA;AACF,CAAC,EAnBgB,OAAO,KAAP,OAAO,QAmBvB"}
@@ -3,6 +3,7 @@ import { isoly } from "isoly";
3
3
  import { http } from "cloudly-http";
4
4
  import * as rest from "cloudly-rest";
5
5
  import { Transaction } from "../../Transaction";
6
+ import { Indices as TransactionIndex } from "./Indices";
6
7
  import { Notes } from "./Notes";
7
8
  export declare class Transactions extends rest.Collection<gracely.Error> {
8
9
  readonly Notes: Notes;
@@ -19,13 +20,6 @@ export declare class Transactions extends rest.Collection<gracely.Error> {
19
20
  }) | gracely.Error>;
20
21
  }
21
22
  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
- };
23
+ type Index = TransactionIndex;
24
+ const Index: typeof TransactionIndex;
31
25
  }
@@ -1,4 +1,5 @@
1
1
  import * as rest from "cloudly-rest";
2
+ import { Indices as TransactionIndex } from "./Indices";
2
3
  import { Notes } from "./Notes";
3
4
  export class Transactions extends rest.Collection {
4
5
  constructor(client) {
@@ -9,11 +10,17 @@ export class Transactions extends rest.Collection {
9
10
  return this.client.post(`/account/${account}/transaction`, transaction);
10
11
  }
11
12
  async list(options) {
12
- const query = Object.entries({ ...(options?.index ?? {}), ...(options?.dateRange ?? {}) })
13
+ const query = Object.entries({
14
+ ...(options?.index ? { index: options.index.join(",") } : {}),
15
+ ...(options?.dateRange ?? {}),
16
+ })
13
17
  .map(([k, v]) => `${k}=${v}`)
14
18
  .join("&");
15
19
  const path = options?.account ? `/account/${options.account}/transaction` : `/transaction`;
16
20
  return this.client.get(path + (query && "?" + query), options?.limit ? { limit: options?.limit.toString() } : {});
17
21
  }
18
22
  }
23
+ (function (Transactions) {
24
+ Transactions.Index = TransactionIndex;
25
+ })(Transactions || (Transactions = {}));
19
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Transactions/index.ts"],"names":[],"mappings":"AAGA,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,OAMV;QACA,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC,EAAE,CAAC;aACxF,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;aAC5B,IAAI,CAAC,GAAG,CAAC,CAAA;QACX,MAAM,IAAI,GAAG,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,YAAY,OAAO,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,cAAc,CAAA;QAC1F,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAC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;QACX,MAAM,IAAI,GAAG,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,YAAY,OAAO,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,cAAc,CAAA;QAC1F,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,IAAI,GAAG,CAAC,KAAK,IAAI,GAAG,GAAG,KAAK,CAAC,EAC7B,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAC1D,CAAA;IACF,CAAC;CACD;AAED,WAAiB,YAAY;IAEf,kBAAK,GAAG,gBAAgB,CAAA;AACtC,CAAC,EAHgB,YAAY,KAAZ,YAAY,QAG5B"}
@@ -9,7 +9,7 @@ import { Operations } from "./Operations";
9
9
  import { Organizations } from "./Organizations";
10
10
  import { Rules } from "./Rules";
11
11
  import { Settlements } from "./Settlements";
12
- import { Transactions } from "./Transactions";
12
+ import { Transactions as ClientTransactions } from "./Transactions";
13
13
  import { Treasury } from "./Treasury";
14
14
  import { Version } from "./Version";
15
15
  export declare class Client extends rest.Client<gracely.Error> {
@@ -21,7 +21,7 @@ export declare class Client extends rest.Client<gracely.Error> {
21
21
  readonly organizations: Organizations;
22
22
  readonly rules: Rules;
23
23
  readonly settlements: Settlements;
24
- readonly transactions: Transactions;
24
+ readonly transactions: ClientTransactions;
25
25
  readonly treasury: Treasury;
26
26
  readonly flags: Flags;
27
27
  readonly userwidgets: userwidgets.ClientCollection;
@@ -29,5 +29,9 @@ export declare class Client extends rest.Client<gracely.Error> {
29
29
  static create<T = Record<string, any>>(server: string, key: string, load?: (client: http.Client) => T): Client & T;
30
30
  }
31
31
  export declare namespace Client {
32
+ const Transactions: typeof ClientTransactions;
33
+ namespace Transactions {
34
+ type Index = ClientTransactions.Index;
35
+ }
32
36
  type Unauthorized = (client: rest.Client<never>) => Promise<boolean>;
33
37
  }
@@ -8,7 +8,7 @@ import { Operations } from "./Operations";
8
8
  import { Organizations } from "./Organizations";
9
9
  import { Rules } from "./Rules";
10
10
  import { Settlements } from "./Settlements";
11
- import { Transactions } from "./Transactions";
11
+ import { Transactions as ClientTransactions } from "./Transactions";
12
12
  import { Treasury } from "./Treasury";
13
13
  import { Version } from "./Version";
14
14
  export class Client extends rest.Client {
@@ -20,7 +20,7 @@ export class Client extends rest.Client {
20
20
  this.organizations = new Organizations(this.client);
21
21
  this.rules = new Rules(this.client);
22
22
  this.settlements = new Settlements(this.client);
23
- this.transactions = new Transactions(this.client);
23
+ this.transactions = new ClientTransactions(this.client);
24
24
  this.treasury = new Treasury(this.client);
25
25
  this.flags = new Flags(this.client);
26
26
  this.userwidgets = new userwidgets.ClientCollection(this.client, { pathPrefix: "/widgets" });
@@ -36,4 +36,7 @@ export class Client extends rest.Client {
36
36
  return result;
37
37
  }
38
38
  }
39
+ (function (Client) {
40
+ Client.Transactions = ClientTransactions;
41
+ })(Client || (Client = {}));
39
42
  //# sourceMappingURL=index.js.map
@@ -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,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,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MA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C,CAAC,EANgB,MAAM,KAAN,MAAM,QAMtB"}
@@ -17,12 +17,15 @@ export declare namespace State {
17
17
  function from(account: ModelAccount, transactions: StateAccount.Transactions, transaction: ModelTransaction.Creatable, authorization?: ModelAuthorization.Creatable, card?: ModelCard): State;
18
18
  type Partial = StatePartial;
19
19
  const Partial: typeof StatePartial;
20
- type Account = StateAccount;
21
- const Account: typeof StateAccount;
22
20
  type Authorization = StateAuthorization;
23
21
  const Authorization: typeof StateAuthorization;
24
22
  type Card = StateCard;
25
23
  const Card: typeof StateCard;
24
+ type Account = StateAccount;
25
+ const Account: typeof StateAccount;
26
+ namespace Account {
27
+ type Transactions = StateAccount.Transactions;
28
+ }
26
29
  type Transaction = StateTransaction;
27
30
  const Transaction: typeof StateTransaction;
28
31
  }
@@ -15,9 +15,9 @@ export var State;
15
15
  }
16
16
  State.from = from;
17
17
  State.Partial = StatePartial;
18
- State.Account = StateAccount;
19
18
  State.Authorization = StateAuthorization;
20
19
  State.Card = StateCard;
20
+ State.Account = StateAccount;
21
21
  State.Transaction = StateTransaction;
22
22
  })(State || (State = {}));
23
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/State/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAS/D,MAAM,KAAW,KAAK,CAyBrB;AAzBD,WAAiB,KAAK;IACrB,SAAgB,IAAI,CACnB,OAAqB,EACrB,YAAuC,EACvC,WAAuC,EACvC,aAA4C,EAC5C,I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,EAAE,aAAa,IAAI,MAAA,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC;YACjE,IAAI,EAAE,IAAI,IAAI,MAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;SAC7B,CAAA;IACF,CAAC;IAbe,UAAI,OAanB,CAAA;IAEY,aAAO,GAAG,YAAY,CAAA;IAEtB,mBAAa,GAAG,kBAAkB,CAAA;IAElC,UAAI,GAAG,SAAS,CAAA;IAEhB,aAAO,GAAG,YAAY,CAAA;IAKtB,iBAAW,GAAG,gBAAgB,CAAA;AAC5C,CAAC,EA5BgB,KAAK,KAAL,KAAK,QA4BrB"}
@@ -11,6 +11,9 @@ export declare namespace Rule {
11
11
  const State: typeof RuleState;
12
12
  namespace State {
13
13
  type Account = RuleState.Account;
14
+ namespace Account {
15
+ type Transactions = RuleState.Account.Transactions;
16
+ }
14
17
  type Authorization = RuleState.Authorization;
15
18
  type Card = RuleState.Card;
16
19
  type Transaction = RuleState.Transaction;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,CAgCpB;AAhCD,WAAiB,IAAI;IACP,YAAO,GAAG,SAAS,CAAC,OAAO,CAAA;IAE3B,UAAK,GAAG,SAAS,CAAC,KAAK,CAAA;IAGvB,UAAK,GAAG,SAAS,CAAA;IASjB,SAAI,GAAG,SAAS,CAAC,IAAI,CAAA;IACrB,OAAE,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,CAAA;IACtB,SAAI,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA;IAC1B,cAAS,GAAG,SAAS,CAA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QAAQ,CACvB,KAAa,EACb,KAAY,EACZ,MAA+C;QAE/C,MAAM,MAAM,GAA2B,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;QAC3E,KAAK,CAAC,OAAO,CACZ,CAAC,CAAC,EAAE,CACH,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,WAAW,EAAE,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;YAC5F,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACzB,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IAZe,aAAQ,WAYvB,CAAA;AACF,CAAC,EAnCgB,IAAI,KAAJ,IAAI,QAmCpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.145",
3
+ "version": "0.1.147",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",