@pax2pay/model-banking 0.1.2 → 0.1.4

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.
@@ -5,9 +5,9 @@ import { Balance } from "../Balance"
5
5
  import { Creatable as AccountCreatable } from "./Creatable"
6
6
 
7
7
  export interface Account extends Account.Creatable {
8
- readonly id: cryptly.Identifier
9
- readonly created: isoly.DateTime
10
- readonly reference: string
8
+ id: cryptly.Identifier
9
+ created: isoly.DateTime
10
+ reference: string
11
11
  rail: Rail[]
12
12
  balance: Balance
13
13
  }
@@ -2,4 +2,4 @@ import * as isoly from "isoly"
2
2
  import { Balances } from "../Balances"
3
3
  import { Fiat } from "./Fiat"
4
4
 
5
- export type Treasury = Partial<Record<isoly.Currency, { eMoney: Balances; fiat: Fiat }>>
5
+ export type Treasury = Partial<Record<isoly.Currency, { eMoney: Partial<Record<Balances.Entry, number>>; fiat: Fiat }>>
@@ -4,9 +4,9 @@ import { Rail } from "../../Rail";
4
4
  import { Balance } from "../Balance";
5
5
  import { Creatable as AccountCreatable } from "./Creatable";
6
6
  export interface Account extends Account.Creatable {
7
- readonly id: cryptly.Identifier;
8
- readonly created: isoly.DateTime;
9
- readonly reference: string;
7
+ id: cryptly.Identifier;
8
+ created: isoly.DateTime;
9
+ reference: string;
10
10
  rail: Rail[];
11
11
  balance: Balance;
12
12
  }
@@ -2,6 +2,6 @@ import * as isoly from "isoly";
2
2
  import { Balances } from "../Balances";
3
3
  import { Fiat } from "./Fiat";
4
4
  export type Treasury = Partial<Record<isoly.Currency, {
5
- eMoney: Balances;
5
+ eMoney: Partial<Record<Balances.Entry, number>>;
6
6
  fiat: Fiat;
7
7
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",