@pax2pay/model-banking 0.1.506 → 0.1.507
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.
|
@@ -33,9 +33,10 @@ export class Transactions {
|
|
|
33
33
|
}
|
|
34
34
|
| string
|
|
35
35
|
): Promise<(Transaction[] & { cursor?: string | undefined }) | gracely.Error> {
|
|
36
|
-
const path = `/transaction`
|
|
37
36
|
const query = !options ? undefined : typeof options == "string" ? options : http.Search.stringify({ ...options })
|
|
38
|
-
return await this.client.get<Transaction[] & { cursor?: string | undefined }>(
|
|
37
|
+
return await this.client.get<Transaction[] & { cursor?: string | undefined }>(
|
|
38
|
+
"/transaction" + (query ? "?" + query : "")
|
|
39
|
+
)
|
|
39
40
|
}
|
|
40
41
|
async fetch(transaction: string, account?: string): Promise<Transaction | gracely.Error> {
|
|
41
42
|
return this.client.get<Transaction>(
|
|
@@ -14,9 +14,8 @@ class Transactions {
|
|
|
14
14
|
return this.client.post(`/account/${account}/transaction`, transaction);
|
|
15
15
|
}
|
|
16
16
|
async list(options) {
|
|
17
|
-
const path = `/transaction`;
|
|
18
17
|
const query = !options ? undefined : typeof options == "string" ? options : cloudly_http_1.http.Search.stringify({ ...options });
|
|
19
|
-
return await this.client.get(
|
|
18
|
+
return await this.client.get("/transaction" + (query ? "?" + query : ""));
|
|
20
19
|
}
|
|
21
20
|
async fetch(transaction, account) {
|
|
22
21
|
return this.client.get(account ? `/account/${account}/transaction/${transaction}` : `/transaction/${transaction}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Transactions/index.ts"],"names":[],"mappings":";;;AAEA,+CAAmC;AAOnC,mCAA+B;AAE/B,MAAa,YAAY;IAEK;IADpB,KAAK,CAAO;IACrB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;QAC/C,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,MAA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AgB,WAAW,EAAE,CAAC,CAAC,CAAC,gBAAgB,WAAW,EAAE,CAC1F,CAAA;IACF,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,aAAqB;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAc,gBAAgB,aAAa,YAAY,CAAC,CAAA;IAC/E,CAAC;IACD,KAAK,CAAC,QAAQ,CAAC,aAAqB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,gBAAgB,aAAa,QAAQ,CAAC,CAAA;IAC1E,CAAC;IACD,KAAK,CAAC,UAAU,CACf,KAAsB,EACtB,OAAwF;QAExF,MAAM,KAAK,GAAG,GAAG,GAAG,mBAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,GAAG,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC,CAAA;QACnE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAyB,0BAA0B,KAAK,EAAE,CAAC,CAAA;IAClF,CAAC;CACD;AA/CD,oCA+CC"}
|
|
@@ -11,9 +11,8 @@ export class Transactions {
|
|
|
11
11
|
return this.client.post(`/account/${account}/transaction`, transaction);
|
|
12
12
|
}
|
|
13
13
|
async list(options) {
|
|
14
|
-
const path = `/transaction`;
|
|
15
14
|
const query = !options ? undefined : typeof options == "string" ? options : http.Search.stringify({ ...options });
|
|
16
|
-
return await this.client.get(
|
|
15
|
+
return await this.client.get("/transaction" + (query ? "?" + query : ""));
|
|
17
16
|
}
|
|
18
17
|
async fetch(transaction, account) {
|
|
19
18
|
return this.client.get(account ? `/account/${account}/transaction/${transaction}` : `/transaction/${transaction}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Transactions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAOnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,YAAY;IAE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