@pax2pay/model-banking 0.1.1 → 0.1.3
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
id: cryptly.Identifier
|
|
9
|
+
created: isoly.DateTime
|
|
10
|
+
reference: string
|
|
11
11
|
rail: Rail[]
|
|
12
12
|
balance: Balance
|
|
13
13
|
}
|
|
@@ -14,7 +14,7 @@ export class Treasury extends rest.Collection<gracely.Error> {
|
|
|
14
14
|
return this.client.patch(`/treasury/${currency}/fiat`, changes)
|
|
15
15
|
}
|
|
16
16
|
async fetch(hour?: isoly.DateTime): Promise<TreasuryModel | gracely.Error> {
|
|
17
|
-
const path = hour ? `?hour=${isoly.DateTime.truncate(hour, "hours")}` :
|
|
17
|
+
const path = hour ? `?hour=${isoly.DateTime.truncate(hour, "hours")}` : ""
|
|
18
18
|
return this.client.get<TreasuryModel>(`/treasury${path}`)
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
id: cryptly.Identifier;
|
|
8
|
+
created: isoly.DateTime;
|
|
9
|
+
reference: string;
|
|
10
10
|
rail: Rail[];
|
|
11
11
|
balance: Balance;
|
|
12
12
|
}
|
|
@@ -8,7 +8,7 @@ export class Treasury extends rest.Collection {
|
|
|
8
8
|
return this.client.patch(`/treasury/${currency}/fiat`, changes);
|
|
9
9
|
}
|
|
10
10
|
async fetch(hour) {
|
|
11
|
-
const path = hour ? `?hour=${isoly.DateTime.truncate(hour, "hours")}` :
|
|
11
|
+
const path = hour ? `?hour=${isoly.DateTime.truncate(hour, "hours")}` : "";
|
|
12
12
|
return this.client.get(`/treasury${path}`);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Treasury.js","sourceRoot":"../","sources":["Treasury/Client/Treasury.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAIpC,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAC3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,QAAwB,EAAE,OAAiB;QACvD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,QAAQ,OAAO,EAAE,OAAO,CAAC,CAAA;IAChE,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,IAAqB;QAChC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"Treasury.js","sourceRoot":"../","sources":["Treasury/Client/Treasury.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAIpC,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAC3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,QAAwB,EAAE,OAAiB;QACvD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,QAAQ,OAAO,EAAE,OAAO,CAAC,CAAA;IAChE,C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