@pax2pay/model-banking 0.1.185 → 0.1.186

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.
@@ -11,7 +11,7 @@ export class Treasury extends rest.Collection<gracely.Error> {
11
11
  }
12
12
 
13
13
  async change(currency: isoly.Currency, changes: Result[]): Promise<gracely.Result> {
14
- return this.client.patch(`/treasury/${currency}/fiat`, changes)
14
+ return this.client.patch(`/treasury/${currency}`, changes)
15
15
  }
16
16
  async fetch(hour?: isoly.DateTime): Promise<TreasuryModel | gracely.Error> {
17
17
  const path = hour ? `/${isoly.DateTime.truncate(hour, "hours")}` : ""
@@ -7,6 +7,8 @@ export namespace Permissions {
7
7
  | {
8
8
  create?: true
9
9
  view?: true
10
+ update?: true
11
+ remove?: true
10
12
  accounts?: { balance?: true; view?: true; create?: true; change?: true; cancel?: true } | true
11
13
  rules?:
12
14
  | {
@@ -5,7 +5,7 @@ export class Treasury extends rest.Collection {
5
5
  super(client);
6
6
  }
7
7
  async change(currency, changes) {
8
- return this.client.patch(`/treasury/${currency}/fiat`, changes);
8
+ return this.client.patch(`/treasury/${currency}`, changes);
9
9
  }
10
10
  async fetch(hour) {
11
11
  const path = hour ? `/${isoly.DateTime.truncate(hour, "hours")}` : "";
@@ -1 +1 @@
1
- {"version":3,"file":"Treasury.js","sourceRoot":"../","sources":["Client/Treasury.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,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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qBAAqB,SAAS,cAAc,CAAC,CAAA;IAClG,CAAC;CACD"}
@@ -5,6 +5,8 @@ export declare namespace Permissions {
5
5
  organizations?: {
6
6
  create?: true;
7
7
  view?: true;
8
+ update?: true;
9
+ remove?: true;
8
10
  accounts?: {
9
11
  balance?: true;
10
12
  view?: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.185",
3
+ "version": "0.1.186",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",