taxtank-core 0.16.5 → 0.16.6
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/bundles/taxtank-core.umd.js +59 -1
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +59 -3
- package/fesm2015/taxtank-core.js +57 -1
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/services/http/bank/basiq/basiq.service.d.ts +19 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { BankAccount } from '../../../../models/bank/bank-account';
|
|
|
5
5
|
import { BasiqToken } from '../../../../models/bank/basiq-token';
|
|
6
6
|
import { BankConnection } from '../../../../models/bank/bank-connection';
|
|
7
7
|
import { IEventListener } from '../../../../interfaces/event-listener.interface';
|
|
8
|
+
import { User } from '../../../../models/user/user';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
11
|
* basiq is a middleman between bank and user
|
|
@@ -22,7 +23,7 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
|
|
|
22
23
|
/**
|
|
23
24
|
* Update user's basiq consents data on backend
|
|
24
25
|
*/
|
|
25
|
-
confirmConsents(): Observable<
|
|
26
|
+
confirmConsents(): Observable<void>;
|
|
26
27
|
/**
|
|
27
28
|
* Notify backend to update connections
|
|
28
29
|
*/
|
|
@@ -31,7 +32,20 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
|
|
|
31
32
|
* access token to use basiq connect ui iframe
|
|
32
33
|
*/
|
|
33
34
|
getToken(): Observable<BasiqToken>;
|
|
35
|
+
/**
|
|
36
|
+
* Get list of user's bank conections
|
|
37
|
+
*/
|
|
34
38
|
getConnections(): Observable<BankConnection[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Listen response from basiq UI to handle result.
|
|
41
|
+
* @param isBasiqConsentExist flag from User.ClientDetails - true if user confirmed basiq consent
|
|
42
|
+
* @param callback function we run after basiq UI work is finished
|
|
43
|
+
*/
|
|
44
|
+
listenBasiqResponse(isBasiqConsentExist: boolean, callback: () => any): void;
|
|
45
|
+
/**
|
|
46
|
+
* Get URL with filled params to run basiq UI iframe
|
|
47
|
+
*/
|
|
48
|
+
generateBasiqConsentUrl(user: User): Observable<string>;
|
|
35
49
|
/**
|
|
36
50
|
* Listen to EventDispatcherService event related to added Bank connection
|
|
37
51
|
*/
|
|
@@ -40,6 +54,10 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
|
|
|
40
54
|
* listen to notifications to update basiq accounts list
|
|
41
55
|
*/
|
|
42
56
|
private listenNotifications;
|
|
57
|
+
/**
|
|
58
|
+
* Update user's basiq connections when user confirmed basiq consent
|
|
59
|
+
*/
|
|
60
|
+
private listenBasiqConcentUpdated;
|
|
43
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<BasiqService, never>;
|
|
44
62
|
static ɵprov: i0.ɵɵInjectableDeclaration<BasiqService>;
|
|
45
63
|
}
|