-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagreement.ts
46 lines (34 loc) · 1.01 KB
/
agreement.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
42
43
44
45
46
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
import * as Core from '../../../core';
export class Agreement extends APIResource {
/**
* Agreement (GoCardLess)
*/
create(body: AgreementCreateParams, options?: Core.RequestOptions): Core.APIPromise<GocardlessAgreement> {
return this._client.post('/auth/gocardless/agreement', { body, ...options });
}
}
export interface GocardlessAgreement {
data: GocardlessAgreement.Data;
}
export namespace GocardlessAgreement {
export interface Data {
id: string;
accepted: boolean;
access_valid_for_days: number;
created: string;
institution_id: string;
max_historical_days: number;
}
}
export interface AgreementCreateParams {
institutionId: string;
transactionTotalDays: number;
}
export declare namespace Agreement {
export {
type GocardlessAgreement as GocardlessAgreement,
type AgreementCreateParams as AgreementCreateParams,
};
}