react-native-tink-sdk
Version:
NPM package for wrapping Tink SDKs
33 lines (32 loc) • 1.66 kB
TypeScript
/**
* This is the method for connecting bank accounts for continuous access to Business Transactions using Tink Link SDK.
*
* @param clientId - client ID retrieved from Tink Console.
* @param redirectUri - configured in Tink Console - the page to which the end-user is redirected, along with the response parameters, when completing the flow.
* @param authorizationCode - the authorization code generated using API's.
* @param market - The market code for which providers should be listed.
* @param locale - Locale to be used for end-user facing text.
*
*/
export declare function connectAccount(clientId: string, redirectUri: string, authorizationCode: string, market: string, locale: string): Promise<any>;
/**
* This is the method for updating consent using Tink Link SDK.
*
* @param clientId - client ID retrieved from Tink Console.
* @param redirectUri - configured in Tink Console - the page to which the end-user is redirected, along with the response parameters, when completing the flow.
* @param authorizationCode - the authorization code generated using API's.
* @param credentialsId - The credentials id is obtained either from provider-consents API call or actionable insights(updateCredentials/renewConsent)
*
*/
export declare function updateConsent({ clientId, redirectUri, authorizationCode, credentialID, }: {
clientId: string;
redirectUri: string;
authorizationCode: string;
credentialID: string;
}): Promise<any>;
export declare function displayInsights({ clientId, accessToken, userId, idHint, }: {
clientId: string;
accessToken: string;
userId: string;
idHint: string;
}): Promise<any>;