-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnections.ts
41 lines (33 loc) · 972 Bytes
/
connections.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
export class Connections extends APIResource {
/**
* Get Connection Status
*/
status(query: ConnectionStatusParams, options?: Core.RequestOptions): Core.APIPromise<ConnectionStatus> {
return this._client.get('/connections/status', { query, ...options });
}
}
export interface ConnectionStatus {
data: ConnectionStatus.Data;
}
export namespace ConnectionStatus {
export interface Data {
status: string;
}
}
export interface ConnectionStatusParams {
provider: 'teller' | 'plaid' | 'gocardless';
/**
* GoCardLess reference id
*/
id?: string;
/**
* Teller or Plaid access token
*/
accessToken?: string;
}
export declare namespace Connections {
export { type ConnectionStatus as ConnectionStatus, type ConnectionStatusParams as ConnectionStatusParams };
}