@pax2pay/model-banking 0.1.355 → 0.1.356

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.
@@ -19,6 +19,9 @@ export class Accounts extends rest.Collection<gracely.Error> {
19
19
  async create(account: Account.Creatable): Promise<Account | gracely.Error> {
20
20
  return this.client.post<Account>("/account", account)
21
21
  }
22
+ async get(account: string): Promise<Account | gracely.Error> {
23
+ return this.client.get<Account>(`/account/${account}`)
24
+ }
22
25
  async list(options?: {
23
26
  limit?: string
24
27
  cursor?: string
@@ -13,6 +13,7 @@ export declare class Accounts extends rest.Collection<gracely.Error> {
13
13
  readonly counterparts: Counterparts;
14
14
  constructor(client: http.Client);
15
15
  create(account: Account.Creatable): Promise<Account | gracely.Error>;
16
+ get(account: string): Promise<Account | gracely.Error>;
16
17
  list(options?: {
17
18
  limit?: string;
18
19
  cursor?: string;
@@ -14,6 +14,9 @@ export class Accounts extends rest.Collection {
14
14
  async create(account) {
15
15
  return this.client.post("/account", account);
16
16
  }
17
+ async get(account) {
18
+ return this.client.get(`/account/${account}`);
19
+ }
17
20
  async list(options) {
18
21
  return this.client.get("/account", options);
19
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAM3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QANL,WAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;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,MAAM,CAAC,IAAI,CAAU,UAAU,EAAE,OAAO,CAAC,CAAA;IACtD,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,OAAe;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,YAAY,OAAO,EAAE,CAAC,CAAA;IACvD,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAIV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8C,UAAU,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.355",
3
+ "version": "0.1.356",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",