increase 0.539.0 → 0.540.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/bin/cli +5 -12
- package/client.d.mts +6 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -3
- package/client.d.ts.map +1 -1
- package/client.js +6 -3
- package/client.js.map +1 -1
- package/client.mjs +6 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/check-deposits.d.mts +4 -3
- package/resources/check-deposits.d.mts.map +1 -1
- package/resources/check-deposits.d.ts +4 -3
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/inbound-mail-items.d.mts +19 -7
- package/resources/inbound-mail-items.d.mts.map +1 -1
- package/resources/inbound-mail-items.d.ts +19 -7
- package/resources/inbound-mail-items.d.ts.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/lockbox-addresses.d.mts +184 -0
- package/resources/lockbox-addresses.d.mts.map +1 -0
- package/resources/lockbox-addresses.d.ts +184 -0
- package/resources/lockbox-addresses.d.ts.map +1 -0
- package/resources/lockbox-addresses.js +64 -0
- package/resources/lockbox-addresses.js.map +1 -0
- package/resources/lockbox-addresses.mjs +60 -0
- package/resources/lockbox-addresses.mjs.map +1 -0
- package/resources/lockbox-recipients.d.mts +202 -0
- package/resources/lockbox-recipients.d.mts.map +1 -0
- package/resources/lockbox-recipients.d.ts +202 -0
- package/resources/lockbox-recipients.d.ts.map +1 -0
- package/resources/lockbox-recipients.js +69 -0
- package/resources/lockbox-recipients.js.map +1 -0
- package/resources/lockbox-recipients.mjs +65 -0
- package/resources/lockbox-recipients.mjs.map +1 -0
- package/resources/simulations/inbound-mail-items.d.mts +9 -5
- package/resources/simulations/inbound-mail-items.d.mts.map +1 -1
- package/resources/simulations/inbound-mail-items.d.ts +9 -5
- package/resources/simulations/inbound-mail-items.d.ts.map +1 -1
- package/resources/simulations/inbound-mail-items.js +0 -1
- package/resources/simulations/inbound-mail-items.js.map +1 -1
- package/resources/simulations/inbound-mail-items.mjs +0 -1
- package/resources/simulations/inbound-mail-items.mjs.map +1 -1
- package/src/client.ts +34 -15
- package/src/resources/check-deposits.ts +4 -3
- package/src/resources/inbound-mail-items.ts +27 -7
- package/src/resources/index.ts +15 -7
- package/src/resources/lockbox-addresses.ts +235 -0
- package/src/resources/lockbox-recipients.ts +257 -0
- package/src/resources/simulations/inbound-mail-items.ts +12 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/lockboxes.d.mts +0 -217
- package/resources/lockboxes.d.mts.map +0 -1
- package/resources/lockboxes.d.ts +0 -217
- package/resources/lockboxes.d.ts.map +0 -1
- package/resources/lockboxes.js +0 -64
- package/resources/lockboxes.js.map +0 -1
- package/resources/lockboxes.mjs +0 -60
- package/resources/lockboxes.mjs.map +0 -1
- package/src/resources/lockboxes.ts +0 -273
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { Page, type PageParams, PagePromise } from '../core/pagination';
|
|
6
|
-
import { RequestOptions } from '../internal/request-options';
|
|
7
|
-
import { path } from '../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class Lockboxes extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a Lockbox
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const lockbox = await client.lockboxes.create({
|
|
16
|
-
* account_id: 'account_in71c4amph0vgo2qllky',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
create(body: LockboxCreateParams, options?: RequestOptions): APIPromise<Lockbox> {
|
|
21
|
-
return this._client.post('/lockboxes', { body, ...options });
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Retrieve a Lockbox
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const lockbox = await client.lockboxes.retrieve(
|
|
30
|
-
* 'lockbox_3xt21ok13q19advds4t5',
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
retrieve(lockboxID: string, options?: RequestOptions): APIPromise<Lockbox> {
|
|
35
|
-
return this._client.get(path`/lockboxes/${lockboxID}`, options);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Update a Lockbox
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const lockbox = await client.lockboxes.update(
|
|
44
|
-
* 'lockbox_3xt21ok13q19advds4t5',
|
|
45
|
-
* );
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
update(lockboxID: string, body: LockboxUpdateParams, options?: RequestOptions): APIPromise<Lockbox> {
|
|
49
|
-
return this._client.patch(path`/lockboxes/${lockboxID}`, { body, ...options });
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* List Lockboxes
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* // Automatically fetches more pages as needed.
|
|
58
|
-
* for await (const lockbox of client.lockboxes.list()) {
|
|
59
|
-
* // ...
|
|
60
|
-
* }
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
list(
|
|
64
|
-
query: LockboxListParams | null | undefined = {},
|
|
65
|
-
options?: RequestOptions,
|
|
66
|
-
): PagePromise<LockboxesPage, Lockbox> {
|
|
67
|
-
return this._client.getAPIList('/lockboxes', Page<Lockbox>, { query, ...options });
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export type LockboxesPage = Page<Lockbox>;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Lockboxes are physical locations that can receive mail containing paper checks.
|
|
75
|
-
* Increase will automatically create a Check Deposit for checks received this way.
|
|
76
|
-
*/
|
|
77
|
-
export interface Lockbox {
|
|
78
|
-
/**
|
|
79
|
-
* The Lockbox identifier.
|
|
80
|
-
*/
|
|
81
|
-
id: string;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* The identifier for the Account checks sent to this lockbox will be deposited
|
|
85
|
-
* into.
|
|
86
|
-
*/
|
|
87
|
-
account_id: string;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* The mailing address for the Lockbox.
|
|
91
|
-
*/
|
|
92
|
-
address: Lockbox.Address;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Indicates if checks mailed to this lockbox will be deposited.
|
|
96
|
-
*
|
|
97
|
-
* - `enabled` - Checks mailed to this Lockbox will be deposited.
|
|
98
|
-
* - `disabled` - Checks mailed to this Lockbox will not be deposited.
|
|
99
|
-
* - `pend_for_processing` - Checks mailed to this Lockbox will be pending until
|
|
100
|
-
* actioned.
|
|
101
|
-
*/
|
|
102
|
-
check_deposit_behavior: 'enabled' | 'disabled' | 'pend_for_processing';
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
|
|
106
|
-
* was created.
|
|
107
|
-
*/
|
|
108
|
-
created_at: string;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* The description you choose for the Lockbox.
|
|
112
|
-
*/
|
|
113
|
-
description: string | null;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* The idempotency key you chose for this object. This value is unique across
|
|
117
|
-
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
118
|
-
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
119
|
-
*/
|
|
120
|
-
idempotency_key: string | null;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* The recipient name you choose for the Lockbox.
|
|
124
|
-
*/
|
|
125
|
-
recipient_name: string | null;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* A constant representing the object's type. For this resource it will always be
|
|
129
|
-
* `lockbox`.
|
|
130
|
-
*/
|
|
131
|
-
type: 'lockbox';
|
|
132
|
-
|
|
133
|
-
[k: string]: unknown;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export namespace Lockbox {
|
|
137
|
-
/**
|
|
138
|
-
* The mailing address for the Lockbox.
|
|
139
|
-
*/
|
|
140
|
-
export interface Address {
|
|
141
|
-
/**
|
|
142
|
-
* The city of the address.
|
|
143
|
-
*/
|
|
144
|
-
city: string;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* The first line of the address.
|
|
148
|
-
*/
|
|
149
|
-
line1: string;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* The second line of the address.
|
|
153
|
-
*/
|
|
154
|
-
line2: string;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* The postal code of the address.
|
|
158
|
-
*/
|
|
159
|
-
postal_code: string;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The recipient line of the address. This will include the recipient name you
|
|
163
|
-
* provide when creating the address, as well as an ATTN suffix to help route the
|
|
164
|
-
* mail to your lockbox. Mail senders must include this ATTN line to receive mail
|
|
165
|
-
* at this Lockbox.
|
|
166
|
-
*/
|
|
167
|
-
recipient: string | null;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
171
|
-
* the address.
|
|
172
|
-
*/
|
|
173
|
-
state: string;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export interface LockboxCreateParams {
|
|
178
|
-
/**
|
|
179
|
-
* The Account checks sent to this Lockbox should be deposited into.
|
|
180
|
-
*/
|
|
181
|
-
account_id: string;
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* The description you choose for the Lockbox, for display purposes.
|
|
185
|
-
*/
|
|
186
|
-
description?: string;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* The name of the recipient that will receive mail at this location.
|
|
190
|
-
*/
|
|
191
|
-
recipient_name?: string;
|
|
192
|
-
|
|
193
|
-
[k: string]: unknown;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export interface LockboxUpdateParams {
|
|
197
|
-
/**
|
|
198
|
-
* This indicates if checks mailed to this lockbox will be deposited.
|
|
199
|
-
*
|
|
200
|
-
* - `enabled` - Checks mailed to this Lockbox will be deposited.
|
|
201
|
-
* - `disabled` - Checks mailed to this Lockbox will not be deposited.
|
|
202
|
-
* - `pend_for_processing` - Checks mailed to this Lockbox will be pending until
|
|
203
|
-
* actioned.
|
|
204
|
-
*/
|
|
205
|
-
check_deposit_behavior?: 'enabled' | 'disabled' | 'pend_for_processing';
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* The description you choose for the Lockbox.
|
|
209
|
-
*/
|
|
210
|
-
description?: string;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* The recipient name you choose for the Lockbox.
|
|
214
|
-
*/
|
|
215
|
-
recipient_name?: string;
|
|
216
|
-
|
|
217
|
-
[k: string]: unknown;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface LockboxListParams extends PageParams {
|
|
221
|
-
/**
|
|
222
|
-
* Filter Lockboxes to those associated with the provided Account.
|
|
223
|
-
*/
|
|
224
|
-
account_id?: string;
|
|
225
|
-
|
|
226
|
-
created_at?: LockboxListParams.CreatedAt;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
230
|
-
* that object. This value is unique across Increase and is used to ensure that a
|
|
231
|
-
* request is only processed once. Learn more about
|
|
232
|
-
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
233
|
-
*/
|
|
234
|
-
idempotency_key?: string;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export namespace LockboxListParams {
|
|
238
|
-
export interface CreatedAt {
|
|
239
|
-
/**
|
|
240
|
-
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
241
|
-
* timestamp.
|
|
242
|
-
*/
|
|
243
|
-
after?: string;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
247
|
-
* timestamp.
|
|
248
|
-
*/
|
|
249
|
-
before?: string;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Return results on or after this
|
|
253
|
-
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
254
|
-
*/
|
|
255
|
-
on_or_after?: string;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Return results on or before this
|
|
259
|
-
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
260
|
-
*/
|
|
261
|
-
on_or_before?: string;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export declare namespace Lockboxes {
|
|
266
|
-
export {
|
|
267
|
-
type Lockbox as Lockbox,
|
|
268
|
-
type LockboxesPage as LockboxesPage,
|
|
269
|
-
type LockboxCreateParams as LockboxCreateParams,
|
|
270
|
-
type LockboxUpdateParams as LockboxUpdateParams,
|
|
271
|
-
type LockboxListParams as LockboxListParams,
|
|
272
|
-
};
|
|
273
|
-
}
|