forked from Increase/increase-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgroups.ts
More file actions
58 lines (50 loc) · 1.5 KB
/
groups.ts
File metadata and controls
58 lines (50 loc) · 1.5 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import * as GroupsAPI from './groups';
export class Groups extends APIResource {
/**
* Returns details for the currently authenticated Group.
*/
retrieve(options?: Core.RequestOptions): Core.APIPromise<Group> {
return this._client.get('/groups/current', options);
}
}
/**
* Groups represent organizations using Increase. You can retrieve information
* about your own organization via the API, or (more commonly) OAuth platforms can
* retrieve information about the organizations that have granted them access.
*/
export interface Group {
/**
* The Group identifier.
*/
id: string;
/**
* If the Group is allowed to create ACH debits.
*
* - `disabled` - The Group cannot make ACH debits.
* - `enabled` - The Group can make ACH debits.
*/
ach_debit_status: 'disabled' | 'enabled';
/**
* If the Group is activated or not.
*
* - `unactivated` - The Group is not activated.
* - `activated` - The Group is activated.
*/
activation_status: 'unactivated' | 'activated';
/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Group
* was created.
*/
created_at: string;
/**
* A constant representing the object's type. For this resource it will always be
* `group`.
*/
type: 'group';
}
export namespace Groups {
export import Group = GroupsAPI.Group;
}