Repository navigation
Expand file tree
/
Copy pathprograms.ts
More file actions
64 lines (55 loc) · 1.94 KB
/
Copy pathprograms.ts
File metadata and controls
64 lines (55 loc) · 1.94 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
59
60
61
62
63
64
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../core/resource';
import * as ProgramsAPI from '../programs';
import { APIPromise } from '../../core/api-promise';
import { RequestOptions } from '../../internal/request-options';
export class Programs extends APIResource {
/**
* Simulates a [Program](#programs) being created in your group. By default, your
* group has one program called Commercial Banking. Note that when your group
* operates more than one program, `program_id` is a required field when creating
* accounts.
*
* @example
* ```ts
* const program = await client.simulations.programs.create({
* name: 'For Benefit Of',
* });
* ```
*/
create(body: ProgramCreateParams, options?: RequestOptions): APIPromise<ProgramsAPI.Program> {
return this._client.post('/simulations/programs', { body, ...options });
}
}
export interface ProgramCreateParams {
/**
* The name of the program being added.
*/
name: string;
/**
* The bank for the program's accounts, defaults to Increase Bank.
*
* - `core_bank` - Core Bank
* - `first_internet_bank` - First Internet Bank of Indiana
* - `grasshopper_bank` - Grasshopper Bank
* - `increase_bank` - Increase Bank
*/
bank?: 'core_bank' | 'first_internet_bank' | 'grasshopper_bank' | 'increase_bank';
/**
* The maximum extendable credit of the program being added.
*/
lending_maximum_extendable_credit?: number;
/**
* Whether opening a loan Account under this Program requires an accepted Loan
* Offer. Requires `lending_maximum_extendable_credit`. Defaults to `false`.
*/
loan_accounts_require_loan_offers?: boolean;
/**
* The identifier of the Account the Program should be added to.
*/
reserve_account_id?: string;
[k: string]: unknown;
}
export declare namespace Programs {
export { type ProgramCreateParams as ProgramCreateParams };
}