@pax2pay/model-banking 0.1.37 → 0.1.38

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,15 +2,13 @@ import * as gracely from "gracely"
2
2
  import * as http from "cloudly-http"
3
3
  import * as rest from "cloudly-rest"
4
4
  import { Rail } from "../../Rail"
5
+ import { Supplier } from "../../Supplier"
5
6
 
6
7
  export class Rails extends rest.Collection<gracely.Error> {
7
8
  constructor(client: http.Client) {
8
9
  super(client)
9
10
  }
10
- async create(organization: string, account: string, supplier: string): Promise<Rail | gracely.Error> {
11
- return this.client.post<Rail>(`/api/account/${account}/rail`, supplier, {
12
- organization: organization,
13
- account: account,
14
- })
11
+ async create(account: string, supplier: Supplier): Promise<Rail | gracely.Error> {
12
+ return this.client.post<Rail>(`/api/account/${account}/rail`, supplier)
15
13
  }
16
14
  }
@@ -2,7 +2,8 @@ import * as gracely from "gracely";
2
2
  import * as http from "cloudly-http";
3
3
  import * as rest from "cloudly-rest";
4
4
  import { Rail } from "../../Rail";
5
+ import { Supplier } from "../../Supplier";
5
6
  export declare class Rails extends rest.Collection<gracely.Error> {
6
7
  constructor(client: http.Client);
7
- create(organization: string, account: string, supplier: string): Promise<Rail | gracely.Error>;
8
+ create(account: string, supplier: Supplier): Promise<Rail | gracely.Error>;
8
9
  }
@@ -3,11 +3,8 @@ export class Rails extends rest.Collection {
3
3
  constructor(client) {
4
4
  super(client);
5
5
  }
6
- async create(organization, account, supplier) {
7
- return this.client.post(`/api/account/${account}/rail`, supplier, {
8
- organization: organization,
9
- account: account,
10
- });
6
+ async create(account, supplier) {
7
+ return this.client.post(`/api/account/${account}/rail`, supplier);
11
8
  }
12
9
  }
13
10
  //# sourceMappingURL=Rails.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rails.js","sourceRoot":"../","sources":["Client/Accounts/Rails.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,YAAoB,EAAE,OAAe,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,gBAAgB,OAAO,OAAO,EAAE,QAAQ,EAAE;YACvE,YAAY,EAAE,YAAY;YAC1B,OAAO,EAAE,OAAO;SAChB,CAAC,CAAA;IACH,CAAC;CACD"}
1
+ {"version":3,"file":"Rails.js","sourceRoot":"../","sources":["Client/Accounts/Rails.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAIpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,QAAkB;QAC/C,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,gBAAgB,OAAO,OAAO,EAAE,QAAQ,CAAC,CAAA;IACxE,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",