@pax2pay/model-banking 0.1.36 → 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.
- package/Client/Accounts/Rails.ts +4 -5
- package/Client/Accounts/index.ts +2 -0
- package/dist/Client/Accounts/Rails.d.ts +9 -0
- package/dist/Client/Accounts/Rails.js +10 -0
- package/dist/Client/Accounts/Rails.js.map +1 -0
- package/dist/Client/Accounts/index.d.ts +2 -0
- package/dist/Client/Accounts/index.js +2 -0
- package/dist/Client/Accounts/index.js.map +1 -1
- package/package.json +1 -1
package/Client/Accounts/Rails.ts
CHANGED
|
@@ -2,14 +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"
|
|
6
|
+
|
|
5
7
|
export class Rails extends rest.Collection<gracely.Error> {
|
|
6
8
|
constructor(client: http.Client) {
|
|
7
9
|
super(client)
|
|
8
10
|
}
|
|
9
|
-
async create(
|
|
10
|
-
return this.client.post<Rail>(`/api/account/${account}/rail`, supplier
|
|
11
|
-
organization: organization,
|
|
12
|
-
account: account,
|
|
13
|
-
})
|
|
11
|
+
async create(account: string, supplier: Supplier): Promise<Rail | gracely.Error> {
|
|
12
|
+
return this.client.post<Rail>(`/api/account/${account}/rail`, supplier)
|
|
14
13
|
}
|
|
15
14
|
}
|
package/Client/Accounts/index.ts
CHANGED
|
@@ -2,8 +2,10 @@ import * as gracely from "gracely"
|
|
|
2
2
|
import * as http from "cloudly-http"
|
|
3
3
|
import * as rest from "cloudly-rest"
|
|
4
4
|
import { Account } from "../../Account"
|
|
5
|
+
import { Rails } from "./Rails"
|
|
5
6
|
|
|
6
7
|
export class Accounts extends rest.Collection<gracely.Error> {
|
|
8
|
+
readonly Rails = new Rails(this.client)
|
|
7
9
|
constructor(client: http.Client) {
|
|
8
10
|
super(client)
|
|
9
11
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as gracely from "gracely";
|
|
2
|
+
import * as http from "cloudly-http";
|
|
3
|
+
import * as rest from "cloudly-rest";
|
|
4
|
+
import { Rail } from "../../Rail";
|
|
5
|
+
import { Supplier } from "../../Supplier";
|
|
6
|
+
export declare class Rails extends rest.Collection<gracely.Error> {
|
|
7
|
+
constructor(client: http.Client);
|
|
8
|
+
create(account: string, supplier: Supplier): Promise<Rail | gracely.Error>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as rest from "cloudly-rest";
|
|
2
|
+
export class Rails extends rest.Collection {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
super(client);
|
|
5
|
+
}
|
|
6
|
+
async create(account, supplier) {
|
|
7
|
+
return this.client.post(`/api/account/${account}/rail`, supplier);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Rails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -2,7 +2,9 @@ import * as gracely from "gracely";
|
|
|
2
2
|
import * as http from "cloudly-http";
|
|
3
3
|
import * as rest from "cloudly-rest";
|
|
4
4
|
import { Account } from "../../Account";
|
|
5
|
+
import { Rails } from "./Rails";
|
|
5
6
|
export declare class Accounts extends rest.Collection<gracely.Error> {
|
|
7
|
+
readonly Rails: Rails;
|
|
6
8
|
constructor(client: http.Client);
|
|
7
9
|
create(account: Account.Creatable): Promise<Account | gracely.Error>;
|
|
8
10
|
list(options?: {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as rest from "cloudly-rest";
|
|
2
|
+
import { Rails } from "./Rails";
|
|
2
3
|
export class Accounts extends rest.Collection {
|
|
3
4
|
constructor(client) {
|
|
4
5
|
super(client);
|
|
6
|
+
this.Rails = new Rails(this.client);
|
|
5
7
|
}
|
|
6
8
|
async create(account) {
|
|
7
9
|
return this.client.post("/api/account", account);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAE3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QAFL,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAGvC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA0B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAU,cAAc,EAAE,OAAO,CAAC,CAAA;IAC1D,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAGV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmD,cAAc,EAAE,OAAO,CAAC,CAAA;IAClG,CAAC;CACD"}
|