@pax2pay/model-banking 0.1.439 → 0.1.440
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/Settlements.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { gracely } from "gracely"
|
|
2
2
|
import { http } from "cloudly-http"
|
|
3
|
+
import { Card } from "../Card"
|
|
3
4
|
import { Settlement } from "../Settlement"
|
|
4
5
|
|
|
5
6
|
export class Settlements {
|
|
@@ -35,4 +36,7 @@ export class Settlements {
|
|
|
35
36
|
async addPayoutTransactions(settlement: string, transactions: string[]): Promise<Settlement | gracely.Error> {
|
|
36
37
|
return this.client.patch<Settlement>(`/settlement/${settlement}/settled`, transactions)
|
|
37
38
|
}
|
|
39
|
+
async downloadFile(stack: Card.Stack, reference: string): Promise<string | gracely.Error> {
|
|
40
|
+
return this.client.get<string>(`/processor/${stack}/file/${reference}`)
|
|
41
|
+
}
|
|
38
42
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { gracely } from "gracely";
|
|
2
2
|
import { http } from "cloudly-http";
|
|
3
|
+
import { Card } from "../Card";
|
|
3
4
|
import { Settlement } from "../Settlement";
|
|
4
5
|
export declare class Settlements {
|
|
5
6
|
private readonly client;
|
|
@@ -17,4 +18,5 @@ export declare class Settlements {
|
|
|
17
18
|
listEntries(settlement: string): Promise<Settlement.Entry[] | gracely.Error>;
|
|
18
19
|
listFailedEntries(settlement: string): Promise<Settlement.Entry[] | gracely.Error>;
|
|
19
20
|
addPayoutTransactions(settlement: string, transactions: string[]): Promise<Settlement | gracely.Error>;
|
|
21
|
+
downloadFile(stack: Card.Stack, reference: string): Promise<string | gracely.Error>;
|
|
20
22
|
}
|
|
@@ -26,5 +26,8 @@ export class Settlements {
|
|
|
26
26
|
async addPayoutTransactions(settlement, transactions) {
|
|
27
27
|
return this.client.patch(`/settlement/${settlement}/settled`, transactions);
|
|
28
28
|
}
|
|
29
|
+
async downloadFile(stack, reference) {
|
|
30
|
+
return this.client.get(`/processor/${stack}/file/${reference}`);
|
|
31
|
+
}
|
|
29
32
|
}
|
|
30
33
|
//# sourceMappingURL=Settlements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settlements.js","sourceRoot":"../","sources":["Client/Settlements.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Settlements.js","sourceRoot":"../","sources":["Client/Settlements.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,WAAW;IACvB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD,KAAK,CAAC,MAAM,CAAC,aAAqB;QACjC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAa,aAAa,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,CAAA;IACrF,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,eAAe,EAAE,EAAE,CAAC,CAAA;IACxD,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAGV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,cAAc,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAClE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAC1D,CAAA;IACF,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAa,eAAe,UAAU,EAAE,CAAC,CAAA;IACnE,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,eAAe,UAAU,EAAE,EAA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