@pax2pay/model-banking 0.1.412 → 0.1.413

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.
@@ -2,13 +2,9 @@ import { gracely } from "gracely"
2
2
  import { isoly } from "isoly"
3
3
  import { http } from "cloudly-http"
4
4
  import { Treasury as TreasuryModel } from "../Treasury"
5
- import { Result } from "../Treasury/Balance"
6
5
 
7
6
  export class Treasury {
8
7
  constructor(private readonly client: http.Client) {}
9
- async change(currency: isoly.Currency, changes: Result[]): Promise<gracely.Result> {
10
- return this.client.patch(`/treasury/${currency}`, changes)
11
- }
12
8
  async fetch(hour?: isoly.DateTime): Promise<TreasuryModel.Snapshot | gracely.Error> {
13
9
  const path = hour ? `/${isoly.DateTime.truncate(hour, "hours")}` : ""
14
10
  return this.client.get<TreasuryModel.Snapshot>(`/treasury/snapshot${path}`)
@@ -2,11 +2,9 @@ import { gracely } from "gracely";
2
2
  import { isoly } from "isoly";
3
3
  import { http } from "cloudly-http";
4
4
  import { Treasury as TreasuryModel } from "../Treasury";
5
- import { Result } from "../Treasury/Balance";
6
5
  export declare class Treasury {
7
6
  private readonly client;
8
7
  constructor(client: http.Client);
9
- change(currency: isoly.Currency, changes: Result[]): Promise<gracely.Result>;
10
8
  fetch(hour?: isoly.DateTime): Promise<TreasuryModel.Snapshot | gracely.Error>;
11
9
  listTransactions(accountId: string): Promise<TreasuryModel.Transaction[] | gracely.Error>;
12
10
  listAccounts(): Promise<TreasuryModel.Account.Listable[] | gracely.Error>;
@@ -3,9 +3,6 @@ export class Treasury {
3
3
  constructor(client) {
4
4
  this.client = client;
5
5
  }
6
- async change(currency, changes) {
7
- return this.client.patch(`/treasury/${currency}`, changes);
8
- }
9
6
  async fetch(hour) {
10
7
  const path = hour ? `/${isoly.DateTime.truncate(hour, "hours")}` : "";
11
8
  return this.client.get(`/treasury/snapshot${path}`);
@@ -1 +1 @@
1
- {"version":3,"file":"Treasury.js","sourceRoot":"../","sources":["Client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EAAE,CAAA;QACrE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAyB,qBAAqB,IAAI,EAAE,CAAC,CAAA;IAC5E,CAAC;IACD,KAAK,CAAC,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8B,qBAAqB,SAAS,cAAc,CAAC,CAAA;IAClG,CAAC;IACD,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmC,mBAAmB,CAAC,CAAA;IAC9E,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.412",
3
+ "version": "0.1.413",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",