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.
Files changed (72) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bin/cli +5 -12
  3. package/client.d.mts +6 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -3
  6. package/client.d.ts.map +1 -1
  7. package/client.js +6 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +6 -3
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/check-deposits.d.mts +4 -3
  13. package/resources/check-deposits.d.mts.map +1 -1
  14. package/resources/check-deposits.d.ts +4 -3
  15. package/resources/check-deposits.d.ts.map +1 -1
  16. package/resources/inbound-mail-items.d.mts +19 -7
  17. package/resources/inbound-mail-items.d.mts.map +1 -1
  18. package/resources/inbound-mail-items.d.ts +19 -7
  19. package/resources/inbound-mail-items.d.ts.map +1 -1
  20. package/resources/index.d.mts +2 -1
  21. package/resources/index.d.mts.map +1 -1
  22. package/resources/index.d.ts +2 -1
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js +6 -4
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs +2 -1
  27. package/resources/index.mjs.map +1 -1
  28. package/resources/lockbox-addresses.d.mts +184 -0
  29. package/resources/lockbox-addresses.d.mts.map +1 -0
  30. package/resources/lockbox-addresses.d.ts +184 -0
  31. package/resources/lockbox-addresses.d.ts.map +1 -0
  32. package/resources/lockbox-addresses.js +64 -0
  33. package/resources/lockbox-addresses.js.map +1 -0
  34. package/resources/lockbox-addresses.mjs +60 -0
  35. package/resources/lockbox-addresses.mjs.map +1 -0
  36. package/resources/lockbox-recipients.d.mts +202 -0
  37. package/resources/lockbox-recipients.d.mts.map +1 -0
  38. package/resources/lockbox-recipients.d.ts +202 -0
  39. package/resources/lockbox-recipients.d.ts.map +1 -0
  40. package/resources/lockbox-recipients.js +69 -0
  41. package/resources/lockbox-recipients.js.map +1 -0
  42. package/resources/lockbox-recipients.mjs +65 -0
  43. package/resources/lockbox-recipients.mjs.map +1 -0
  44. package/resources/simulations/inbound-mail-items.d.mts +9 -5
  45. package/resources/simulations/inbound-mail-items.d.mts.map +1 -1
  46. package/resources/simulations/inbound-mail-items.d.ts +9 -5
  47. package/resources/simulations/inbound-mail-items.d.ts.map +1 -1
  48. package/resources/simulations/inbound-mail-items.js +0 -1
  49. package/resources/simulations/inbound-mail-items.js.map +1 -1
  50. package/resources/simulations/inbound-mail-items.mjs +0 -1
  51. package/resources/simulations/inbound-mail-items.mjs.map +1 -1
  52. package/src/client.ts +34 -15
  53. package/src/resources/check-deposits.ts +4 -3
  54. package/src/resources/inbound-mail-items.ts +27 -7
  55. package/src/resources/index.ts +15 -7
  56. package/src/resources/lockbox-addresses.ts +235 -0
  57. package/src/resources/lockbox-recipients.ts +257 -0
  58. package/src/resources/simulations/inbound-mail-items.ts +12 -6
  59. package/src/version.ts +1 -1
  60. package/version.d.mts +1 -1
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/version.mjs +1 -1
  64. package/resources/lockboxes.d.mts +0 -217
  65. package/resources/lockboxes.d.mts.map +0 -1
  66. package/resources/lockboxes.d.ts +0 -217
  67. package/resources/lockboxes.d.ts.map +0 -1
  68. package/resources/lockboxes.js +0 -64
  69. package/resources/lockboxes.js.map +0 -1
  70. package/resources/lockboxes.mjs +0 -60
  71. package/resources/lockboxes.mjs.map +0 -1
  72. package/src/resources/lockboxes.ts +0 -273
package/src/client.ts CHANGED
@@ -268,13 +268,21 @@ import {
268
268
  IntrafiExclusionsPage,
269
269
  } from './resources/intrafi-exclusions';
270
270
  import {
271
- Lockbox,
272
- LockboxCreateParams,
273
- LockboxListParams,
274
- LockboxUpdateParams,
275
- Lockboxes,
276
- LockboxesPage,
277
- } from './resources/lockboxes';
271
+ LockboxAddress,
272
+ LockboxAddressCreateParams,
273
+ LockboxAddressListParams,
274
+ LockboxAddressUpdateParams,
275
+ LockboxAddresses,
276
+ LockboxAddressesPage,
277
+ } from './resources/lockbox-addresses';
278
+ import {
279
+ LockboxRecipient,
280
+ LockboxRecipientCreateParams,
281
+ LockboxRecipientListParams,
282
+ LockboxRecipientUpdateParams,
283
+ LockboxRecipients,
284
+ LockboxRecipientsPage,
285
+ } from './resources/lockbox-recipients';
278
286
  import {
279
287
  OAuthApplication,
280
288
  OAuthApplicationListParams,
@@ -1162,7 +1170,8 @@ export class Increase {
1162
1170
  inboundFednowTransfers: API.InboundFednowTransfers = new API.InboundFednowTransfers(this);
1163
1171
  swiftTransfers: API.SwiftTransfers = new API.SwiftTransfers(this);
1164
1172
  checkDeposits: API.CheckDeposits = new API.CheckDeposits(this);
1165
- lockboxes: API.Lockboxes = new API.Lockboxes(this);
1173
+ lockboxAddresses: API.LockboxAddresses = new API.LockboxAddresses(this);
1174
+ lockboxRecipients: API.LockboxRecipients = new API.LockboxRecipients(this);
1166
1175
  inboundMailItems: API.InboundMailItems = new API.InboundMailItems(this);
1167
1176
  routingNumbers: API.RoutingNumbers = new API.RoutingNumbers(this);
1168
1177
  externalAccounts: API.ExternalAccounts = new API.ExternalAccounts(this);
@@ -1220,7 +1229,8 @@ Increase.FednowTransfers = FednowTransfers;
1220
1229
  Increase.InboundFednowTransfers = InboundFednowTransfers;
1221
1230
  Increase.SwiftTransfers = SwiftTransfers;
1222
1231
  Increase.CheckDeposits = CheckDeposits;
1223
- Increase.Lockboxes = Lockboxes;
1232
+ Increase.LockboxAddresses = LockboxAddresses;
1233
+ Increase.LockboxRecipients = LockboxRecipients;
1224
1234
  Increase.InboundMailItems = InboundMailItems;
1225
1235
  Increase.RoutingNumbers = RoutingNumbers;
1226
1236
  Increase.ExternalAccounts = ExternalAccounts;
@@ -1496,12 +1506,21 @@ export declare namespace Increase {
1496
1506
  };
1497
1507
 
1498
1508
  export {
1499
- Lockboxes as Lockboxes,
1500
- type Lockbox as Lockbox,
1501
- type LockboxesPage as LockboxesPage,
1502
- type LockboxCreateParams as LockboxCreateParams,
1503
- type LockboxUpdateParams as LockboxUpdateParams,
1504
- type LockboxListParams as LockboxListParams,
1509
+ LockboxAddresses as LockboxAddresses,
1510
+ type LockboxAddress as LockboxAddress,
1511
+ type LockboxAddressesPage as LockboxAddressesPage,
1512
+ type LockboxAddressCreateParams as LockboxAddressCreateParams,
1513
+ type LockboxAddressUpdateParams as LockboxAddressUpdateParams,
1514
+ type LockboxAddressListParams as LockboxAddressListParams,
1515
+ };
1516
+
1517
+ export {
1518
+ LockboxRecipients as LockboxRecipients,
1519
+ type LockboxRecipient as LockboxRecipient,
1520
+ type LockboxRecipientsPage as LockboxRecipientsPage,
1521
+ type LockboxRecipientCreateParams as LockboxRecipientCreateParams,
1522
+ type LockboxRecipientUpdateParams as LockboxRecipientUpdateParams,
1523
+ type LockboxRecipientListParams as LockboxRecipientListParams,
1505
1524
  };
1506
1525
 
1507
1526
  export {
@@ -149,10 +149,11 @@ export interface CheckDeposit {
149
149
  inbound_mail_item_id: string | null;
150
150
 
151
151
  /**
152
- * If the Check Deposit was the result of an Inbound Mail Item, this will contain
153
- * the identifier of the Lockbox that received it.
152
+ * If the Check Deposit was the result of an Inbound Mail Item routed to a Lockbox
153
+ * Recipient, this will contain the identifier of the Lockbox Recipient that
154
+ * received it.
154
155
  */
155
- lockbox_id: string | null;
156
+ lockbox_recipient_id: string | null;
156
157
 
157
158
  /**
158
159
  * The status of the Check Deposit.
@@ -66,7 +66,8 @@ export class InboundMailItems extends APIResource {
66
66
  export type InboundMailItemsPage = Page<InboundMailItem>;
67
67
 
68
68
  /**
69
- * Inbound Mail Items represent pieces of physical mail delivered to a Lockbox.
69
+ * Inbound Mail Items represent pieces of physical mail delivered to a Lockbox
70
+ * Address.
70
71
  */
71
72
  export interface InboundMailItem {
72
73
  /**
@@ -91,10 +92,15 @@ export interface InboundMailItem {
91
92
  file_id: string;
92
93
 
93
94
  /**
94
- * The identifier for the Lockbox that received this mail item. For mail items that
95
- * could not be processed due to an invalid address, this will be null.
95
+ * The identifier for the Lockbox Address that received this mail item.
96
96
  */
97
- lockbox_id: string | null;
97
+ lockbox_address_id: string | null;
98
+
99
+ /**
100
+ * The identifier for the Lockbox Recipient that received this mail item. For mail
101
+ * items that could not be routed to a Lockbox Recipient, this will be null.
102
+ */
103
+ lockbox_recipient_id: string | null;
98
104
 
99
105
  /**
100
106
  * The recipient name as written on the mail item.
@@ -107,8 +113,17 @@ export interface InboundMailItem {
107
113
  * - `no_matching_lockbox` - The mail item does not match any lockbox.
108
114
  * - `no_check` - The mail item does not contain a check.
109
115
  * - `lockbox_not_active` - The Lockbox or its associated Account is not active.
116
+ * - `lockbox_address_not_active` - The Lockbox Address is not active.
117
+ * - `lockbox_recipient_not_active` - The Lockbox Recipient or its associated
118
+ * Account is not active.
110
119
  */
111
- rejection_reason: 'no_matching_lockbox' | 'no_check' | 'lockbox_not_active' | null;
120
+ rejection_reason:
121
+ | 'no_matching_lockbox'
122
+ | 'no_check'
123
+ | 'lockbox_not_active'
124
+ | 'lockbox_address_not_active'
125
+ | 'lockbox_recipient_not_active'
126
+ | null;
112
127
 
113
128
  /**
114
129
  * If the mail item has been processed.
@@ -168,9 +183,14 @@ export interface InboundMailItemListParams extends PageParams {
168
183
  created_at?: InboundMailItemListParams.CreatedAt;
169
184
 
170
185
  /**
171
- * Filter Inbound Mail Items to ones sent to the provided Lockbox.
186
+ * Filter Inbound Mail Items to ones sent to the provided Lockbox Address.
187
+ */
188
+ lockbox_address_id?: string;
189
+
190
+ /**
191
+ * Filter Inbound Mail Items to ones sent to the provided Lockbox Recipient.
172
192
  */
173
- lockbox_id?: string;
193
+ lockbox_recipient_id?: string;
174
194
  }
175
195
 
176
196
  export namespace InboundMailItemListParams {
@@ -255,13 +255,21 @@ export {
255
255
  type IntrafiExclusionsPage,
256
256
  } from './intrafi-exclusions';
257
257
  export {
258
- Lockboxes,
259
- type Lockbox,
260
- type LockboxCreateParams,
261
- type LockboxUpdateParams,
262
- type LockboxListParams,
263
- type LockboxesPage,
264
- } from './lockboxes';
258
+ LockboxAddresses,
259
+ type LockboxAddress,
260
+ type LockboxAddressCreateParams,
261
+ type LockboxAddressUpdateParams,
262
+ type LockboxAddressListParams,
263
+ type LockboxAddressesPage,
264
+ } from './lockbox-addresses';
265
+ export {
266
+ LockboxRecipients,
267
+ type LockboxRecipient,
268
+ type LockboxRecipientCreateParams,
269
+ type LockboxRecipientUpdateParams,
270
+ type LockboxRecipientListParams,
271
+ type LockboxRecipientsPage,
272
+ } from './lockbox-recipients';
265
273
  export {
266
274
  OAuthApplications,
267
275
  type OAuthApplication,
@@ -0,0 +1,235 @@
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 LockboxAddresses extends APIResource {
10
+ /**
11
+ * Create a Lockbox Address
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const lockboxAddress =
16
+ * await client.lockboxAddresses.create();
17
+ * ```
18
+ */
19
+ create(body: LockboxAddressCreateParams, options?: RequestOptions): APIPromise<LockboxAddress> {
20
+ return this._client.post('/lockbox_addresses', { body, ...options });
21
+ }
22
+
23
+ /**
24
+ * Retrieve a Lockbox Address
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const lockboxAddress =
29
+ * await client.lockboxAddresses.retrieve(
30
+ * 'lockbox_address_lw6sbzl9ol5dfd8hdml6',
31
+ * );
32
+ * ```
33
+ */
34
+ retrieve(lockboxAddressID: string, options?: RequestOptions): APIPromise<LockboxAddress> {
35
+ return this._client.get(path`/lockbox_addresses/${lockboxAddressID}`, options);
36
+ }
37
+
38
+ /**
39
+ * Update a Lockbox Address
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const lockboxAddress = await client.lockboxAddresses.update(
44
+ * 'lockbox_address_lw6sbzl9ol5dfd8hdml6',
45
+ * );
46
+ * ```
47
+ */
48
+ update(
49
+ lockboxAddressID: string,
50
+ body: LockboxAddressUpdateParams,
51
+ options?: RequestOptions,
52
+ ): APIPromise<LockboxAddress> {
53
+ return this._client.patch(path`/lockbox_addresses/${lockboxAddressID}`, { body, ...options });
54
+ }
55
+
56
+ /**
57
+ * List Lockbox Addresses
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * // Automatically fetches more pages as needed.
62
+ * for await (const lockboxAddress of client.lockboxAddresses.list()) {
63
+ * // ...
64
+ * }
65
+ * ```
66
+ */
67
+ list(
68
+ query: LockboxAddressListParams | null | undefined = {},
69
+ options?: RequestOptions,
70
+ ): PagePromise<LockboxAddressesPage, LockboxAddress> {
71
+ return this._client.getAPIList('/lockbox_addresses', Page<LockboxAddress>, { query, ...options });
72
+ }
73
+ }
74
+
75
+ export type LockboxAddressesPage = Page<LockboxAddress>;
76
+
77
+ /**
78
+ * Lockbox Addresses are physical locations that can receive mail containing paper
79
+ * checks.
80
+ */
81
+ export interface LockboxAddress {
82
+ /**
83
+ * The Lockbox Address identifier.
84
+ */
85
+ id: string;
86
+
87
+ /**
88
+ * The mailing address for the Lockbox Address. It will be present after Increase
89
+ * generates it.
90
+ */
91
+ address: LockboxAddress.Address | null;
92
+
93
+ /**
94
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
95
+ * Address was created.
96
+ */
97
+ created_at: string;
98
+
99
+ /**
100
+ * The description you choose for the Lockbox Address.
101
+ */
102
+ description: string | null;
103
+
104
+ /**
105
+ * The idempotency key you chose for this object. This value is unique across
106
+ * Increase and is used to ensure that a request is only processed once. Learn more
107
+ * about [idempotency](https://increase.com/documentation/idempotency-keys).
108
+ */
109
+ idempotency_key: string | null;
110
+
111
+ /**
112
+ * The status of the Lockbox Address.
113
+ *
114
+ * - `pending` - Increase is generating this Lockbox Address.
115
+ * - `active` - This Lockbox Address is active.
116
+ * - `disabled` - This Lockbox Address is disabled.
117
+ * - `canceled` - This Lockbox Address is permanently disabled.
118
+ */
119
+ status: 'pending' | 'active' | 'disabled' | 'canceled';
120
+
121
+ /**
122
+ * A constant representing the object's type. For this resource it will always be
123
+ * `lockbox_address`.
124
+ */
125
+ type: 'lockbox_address';
126
+ }
127
+
128
+ export namespace LockboxAddress {
129
+ /**
130
+ * The mailing address for the Lockbox Address. It will be present after Increase
131
+ * generates it.
132
+ */
133
+ export interface Address {
134
+ /**
135
+ * The city of the address.
136
+ */
137
+ city: string;
138
+
139
+ /**
140
+ * The first line of the address.
141
+ */
142
+ line1: string;
143
+
144
+ /**
145
+ * The second line of the address.
146
+ */
147
+ line2: string;
148
+
149
+ /**
150
+ * The postal code of the address.
151
+ */
152
+ postal_code: string;
153
+
154
+ /**
155
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
156
+ * the address.
157
+ */
158
+ state: string;
159
+ }
160
+ }
161
+
162
+ export interface LockboxAddressCreateParams {
163
+ /**
164
+ * The description you choose for the Lockbox Address.
165
+ */
166
+ description?: string;
167
+
168
+ [k: string]: unknown;
169
+ }
170
+
171
+ export interface LockboxAddressUpdateParams {
172
+ /**
173
+ * The description you choose for the Lockbox Address.
174
+ */
175
+ description?: string;
176
+
177
+ /**
178
+ * The status of the Lockbox Address.
179
+ *
180
+ * - `active` - This Lockbox Address is active.
181
+ * - `disabled` - This Lockbox Address is disabled.
182
+ * - `canceled` - This Lockbox Address is permanently disabled.
183
+ */
184
+ status?: 'active' | 'disabled' | 'canceled';
185
+ }
186
+
187
+ export interface LockboxAddressListParams extends PageParams {
188
+ created_at?: LockboxAddressListParams.CreatedAt;
189
+
190
+ /**
191
+ * Filter records to the one with the specified `idempotency_key` you chose for
192
+ * that object. This value is unique across Increase and is used to ensure that a
193
+ * request is only processed once. Learn more about
194
+ * [idempotency](https://increase.com/documentation/idempotency-keys).
195
+ */
196
+ idempotency_key?: string;
197
+ }
198
+
199
+ export namespace LockboxAddressListParams {
200
+ export interface CreatedAt {
201
+ /**
202
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
203
+ * timestamp.
204
+ */
205
+ after?: string;
206
+
207
+ /**
208
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
209
+ * timestamp.
210
+ */
211
+ before?: string;
212
+
213
+ /**
214
+ * Return results on or after this
215
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
216
+ */
217
+ on_or_after?: string;
218
+
219
+ /**
220
+ * Return results on or before this
221
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
222
+ */
223
+ on_or_before?: string;
224
+ }
225
+ }
226
+
227
+ export declare namespace LockboxAddresses {
228
+ export {
229
+ type LockboxAddress as LockboxAddress,
230
+ type LockboxAddressesPage as LockboxAddressesPage,
231
+ type LockboxAddressCreateParams as LockboxAddressCreateParams,
232
+ type LockboxAddressUpdateParams as LockboxAddressUpdateParams,
233
+ type LockboxAddressListParams as LockboxAddressListParams,
234
+ };
235
+ }
@@ -0,0 +1,257 @@
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 LockboxRecipients extends APIResource {
10
+ /**
11
+ * Create a Lockbox Recipient
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const lockboxRecipient =
16
+ * await client.lockboxRecipients.create({
17
+ * account_id: 'account_in71c4amph0vgo2qllky',
18
+ * lockbox_address_id:
19
+ * 'lockbox_address_lw6sbzl9ol5dfd8hdml6',
20
+ * });
21
+ * ```
22
+ */
23
+ create(body: LockboxRecipientCreateParams, options?: RequestOptions): APIPromise<LockboxRecipient> {
24
+ return this._client.post('/lockbox_recipients', { body, ...options });
25
+ }
26
+
27
+ /**
28
+ * Retrieve a Lockbox Recipient
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const lockboxRecipient =
33
+ * await client.lockboxRecipients.retrieve(
34
+ * 'lockbox_3xt21ok13q19advds4t5',
35
+ * );
36
+ * ```
37
+ */
38
+ retrieve(lockboxRecipientID: string, options?: RequestOptions): APIPromise<LockboxRecipient> {
39
+ return this._client.get(path`/lockbox_recipients/${lockboxRecipientID}`, options);
40
+ }
41
+
42
+ /**
43
+ * Update a Lockbox Recipient
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const lockboxRecipient =
48
+ * await client.lockboxRecipients.update(
49
+ * 'lockbox_3xt21ok13q19advds4t5',
50
+ * );
51
+ * ```
52
+ */
53
+ update(
54
+ lockboxRecipientID: string,
55
+ body: LockboxRecipientUpdateParams,
56
+ options?: RequestOptions,
57
+ ): APIPromise<LockboxRecipient> {
58
+ return this._client.patch(path`/lockbox_recipients/${lockboxRecipientID}`, { body, ...options });
59
+ }
60
+
61
+ /**
62
+ * List Lockbox Recipients
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * // Automatically fetches more pages as needed.
67
+ * for await (const lockboxRecipient of client.lockboxRecipients.list()) {
68
+ * // ...
69
+ * }
70
+ * ```
71
+ */
72
+ list(
73
+ query: LockboxRecipientListParams | null | undefined = {},
74
+ options?: RequestOptions,
75
+ ): PagePromise<LockboxRecipientsPage, LockboxRecipient> {
76
+ return this._client.getAPIList('/lockbox_recipients', Page<LockboxRecipient>, { query, ...options });
77
+ }
78
+ }
79
+
80
+ export type LockboxRecipientsPage = Page<LockboxRecipient>;
81
+
82
+ /**
83
+ * Lockbox Recipients represent an inbox at a Lockbox Address. Checks received for
84
+ * a Lockbox Recipient are deposited into its associated Account.
85
+ */
86
+ export interface LockboxRecipient {
87
+ /**
88
+ * The Lockbox Recipient identifier.
89
+ */
90
+ id: string;
91
+
92
+ /**
93
+ * The identifier for the Account that checks sent to this Lockbox Recipient will
94
+ * be deposited into.
95
+ */
96
+ account_id: string;
97
+
98
+ /**
99
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
100
+ * Recipient was created.
101
+ */
102
+ created_at: string;
103
+
104
+ /**
105
+ * The description of the Lockbox Recipient.
106
+ */
107
+ description: string | null;
108
+
109
+ /**
110
+ * The idempotency key you chose for this object. This value is unique across
111
+ * Increase and is used to ensure that a request is only processed once. Learn more
112
+ * about [idempotency](https://increase.com/documentation/idempotency-keys).
113
+ */
114
+ idempotency_key: string | null;
115
+
116
+ /**
117
+ * The identifier for the Lockbox Address where this Lockbox Recipient may receive
118
+ * physical mail.
119
+ */
120
+ lockbox_address_id: string;
121
+
122
+ /**
123
+ * The mail stop code uniquely identifying this Lockbox Recipient at its Lockbox
124
+ * Address. It should be included in the mailing address intended for this Lockbox
125
+ * Recipient.
126
+ */
127
+ mail_stop_code: string;
128
+
129
+ /**
130
+ * The name of the Lockbox Recipient.
131
+ */
132
+ recipient_name: string | null;
133
+
134
+ /**
135
+ * The status of the Lockbox Recipient.
136
+ *
137
+ * - `active` - This Lockbox Recipient is active.
138
+ * - `disabled` - This Lockbox Recipient is disabled. Checks mailed to this Lockbox
139
+ * Recipient will be rejected.
140
+ * - `canceled` - This Lockbox Recipient is canceled and cannot be modified. Checks
141
+ * mailed to this Lockbox Recipient will be rejected.
142
+ */
143
+ status: 'active' | 'disabled' | 'canceled' | null;
144
+
145
+ /**
146
+ * A constant representing the object's type. For this resource it will always be
147
+ * `lockbox_recipient`.
148
+ */
149
+ type: 'lockbox_recipient';
150
+ }
151
+
152
+ export interface LockboxRecipientCreateParams {
153
+ /**
154
+ * The Account that checks sent to this Lockbox Recipient should be deposited into.
155
+ */
156
+ account_id: string;
157
+
158
+ /**
159
+ * The Lockbox Address where this Lockbox Recipient may receive mail.
160
+ */
161
+ lockbox_address_id: string;
162
+
163
+ /**
164
+ * The description you choose for the Lockbox Recipient.
165
+ */
166
+ description?: string;
167
+
168
+ /**
169
+ * The name of the Lockbox Recipient
170
+ */
171
+ recipient_name?: string;
172
+
173
+ [k: string]: unknown;
174
+ }
175
+
176
+ export interface LockboxRecipientUpdateParams {
177
+ /**
178
+ * The description you choose for the Lockbox Recipient.
179
+ */
180
+ description?: string;
181
+
182
+ /**
183
+ * The name of the Lockbox Recipient.
184
+ */
185
+ recipient_name?: string;
186
+
187
+ /**
188
+ * The status of the Lockbox Recipient.
189
+ *
190
+ * - `active` - This Lockbox Recipient is active.
191
+ * - `disabled` - This Lockbox Recipient is disabled. Checks mailed to this Lockbox
192
+ * Recipient will be rejected.
193
+ * - `canceled` - This Lockbox Recipient is canceled and cannot be modified. Checks
194
+ * mailed to this Lockbox Recipient will be rejected.
195
+ */
196
+ status?: 'active' | 'disabled' | 'canceled';
197
+ }
198
+
199
+ export interface LockboxRecipientListParams extends PageParams {
200
+ /**
201
+ * Filter Lockbox Recipients to those associated with the provided Account.
202
+ */
203
+ account_id?: string;
204
+
205
+ created_at?: LockboxRecipientListParams.CreatedAt;
206
+
207
+ /**
208
+ * Filter records to the one with the specified `idempotency_key` you chose for
209
+ * that object. This value is unique across Increase and is used to ensure that a
210
+ * request is only processed once. Learn more about
211
+ * [idempotency](https://increase.com/documentation/idempotency-keys).
212
+ */
213
+ idempotency_key?: string;
214
+
215
+ /**
216
+ * Filter Lockbox Recipients to those associated with the provided Lockbox Address.
217
+ */
218
+ lockbox_address_id?: string;
219
+ }
220
+
221
+ export namespace LockboxRecipientListParams {
222
+ export interface CreatedAt {
223
+ /**
224
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
225
+ * timestamp.
226
+ */
227
+ after?: string;
228
+
229
+ /**
230
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
231
+ * timestamp.
232
+ */
233
+ before?: string;
234
+
235
+ /**
236
+ * Return results on or after this
237
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
238
+ */
239
+ on_or_after?: string;
240
+
241
+ /**
242
+ * Return results on or before this
243
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
244
+ */
245
+ on_or_before?: string;
246
+ }
247
+ }
248
+
249
+ export declare namespace LockboxRecipients {
250
+ export {
251
+ type LockboxRecipient as LockboxRecipient,
252
+ type LockboxRecipientsPage as LockboxRecipientsPage,
253
+ type LockboxRecipientCreateParams as LockboxRecipientCreateParams,
254
+ type LockboxRecipientUpdateParams as LockboxRecipientUpdateParams,
255
+ type LockboxRecipientListParams as LockboxRecipientListParams,
256
+ };
257
+ }