forked from Increase/increase-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-deposits.ts
More file actions
41 lines (37 loc) · 1.44 KB
/
check-deposits.ts
File metadata and controls
41 lines (37 loc) · 1.44 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
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as CheckDepositsAPI from '../check-deposits';
export class CheckDeposits extends APIResource {
/**
* Simulates the rejection of a [Check Deposit](#check-deposits) by Increase due to
* factors like poor image quality. This Check Deposit must first have a `status`
* of `pending`.
*/
reject(
checkDepositId: string,
options?: Core.RequestOptions,
): Core.APIPromise<CheckDepositsAPI.CheckDeposit> {
return this._client.post(`/simulations/check_deposits/${checkDepositId}/reject`, options);
}
/**
* Simulates the return of a [Check Deposit](#check-deposits). This Check Deposit
* must first have a `status` of `submitted`.
*/
return(
checkDepositId: string,
options?: Core.RequestOptions,
): Core.APIPromise<CheckDepositsAPI.CheckDeposit> {
return this._client.post(`/simulations/check_deposits/${checkDepositId}/return`, options);
}
/**
* Simulates the submission of a [Check Deposit](#check-deposits) to the Federal
* Reserve. This Check Deposit must first have a `status` of `pending`.
*/
submit(
checkDepositId: string,
options?: Core.RequestOptions,
): Core.APIPromise<CheckDepositsAPI.CheckDeposit> {
return this._client.post(`/simulations/check_deposits/${checkDepositId}/submit`, options);
}
}