increase 0.538.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 (99) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/bin/cli +5 -12
  3. package/client.d.mts +6 -12
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -12
  6. package/client.d.ts.map +1 -1
  7. package/client.js +6 -12
  8. package/client.js.map +1 -1
  9. package/client.mjs +6 -12
  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 -4
  21. package/resources/index.d.mts.map +1 -1
  22. package/resources/index.d.ts +2 -4
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js +6 -10
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs +2 -4
  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 -70
  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 -30
  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/bookkeeping-accounts.d.mts +0 -164
  65. package/resources/bookkeeping-accounts.d.mts.map +0 -1
  66. package/resources/bookkeeping-accounts.d.ts +0 -164
  67. package/resources/bookkeeping-accounts.d.ts.map +0 -1
  68. package/resources/bookkeeping-accounts.js +0 -71
  69. package/resources/bookkeeping-accounts.js.map +0 -1
  70. package/resources/bookkeeping-accounts.mjs +0 -67
  71. package/resources/bookkeeping-accounts.mjs.map +0 -1
  72. package/resources/bookkeeping-entries.d.mts +0 -74
  73. package/resources/bookkeeping-entries.d.mts.map +0 -1
  74. package/resources/bookkeeping-entries.d.ts +0 -74
  75. package/resources/bookkeeping-entries.d.ts.map +0 -1
  76. package/resources/bookkeeping-entries.js +0 -39
  77. package/resources/bookkeeping-entries.js.map +0 -1
  78. package/resources/bookkeeping-entries.mjs +0 -35
  79. package/resources/bookkeeping-entries.mjs.map +0 -1
  80. package/resources/bookkeeping-entry-sets.d.mts +0 -156
  81. package/resources/bookkeeping-entry-sets.d.mts.map +0 -1
  82. package/resources/bookkeeping-entry-sets.d.ts +0 -156
  83. package/resources/bookkeeping-entry-sets.d.ts.map +0 -1
  84. package/resources/bookkeeping-entry-sets.js +0 -67
  85. package/resources/bookkeeping-entry-sets.js.map +0 -1
  86. package/resources/bookkeeping-entry-sets.mjs +0 -63
  87. package/resources/bookkeeping-entry-sets.mjs.map +0 -1
  88. package/resources/lockboxes.d.mts +0 -217
  89. package/resources/lockboxes.d.mts.map +0 -1
  90. package/resources/lockboxes.d.ts +0 -217
  91. package/resources/lockboxes.d.ts.map +0 -1
  92. package/resources/lockboxes.js +0 -64
  93. package/resources/lockboxes.js.map +0 -1
  94. package/resources/lockboxes.mjs +0 -60
  95. package/resources/lockboxes.mjs.map +0 -1
  96. package/src/resources/bookkeeping-accounts.ts +0 -220
  97. package/src/resources/bookkeeping-entries.ts +0 -98
  98. package/src/resources/bookkeeping-entry-sets.ts +0 -198
  99. package/src/resources/lockboxes.ts +0 -273
package/src/client.ts CHANGED
@@ -72,29 +72,6 @@ import {
72
72
  EntityBeneficialOwner,
73
73
  EntityBeneficialOwnersPage,
74
74
  } from './resources/beneficial-owners';
75
- import {
76
- BookkeepingAccount,
77
- BookkeepingAccountBalanceParams,
78
- BookkeepingAccountCreateParams,
79
- BookkeepingAccountListParams,
80
- BookkeepingAccountUpdateParams,
81
- BookkeepingAccounts,
82
- BookkeepingAccountsPage,
83
- BookkeepingBalanceLookup,
84
- } from './resources/bookkeeping-accounts';
85
- import {
86
- BookkeepingEntries,
87
- BookkeepingEntriesPage,
88
- BookkeepingEntry,
89
- BookkeepingEntryListParams,
90
- } from './resources/bookkeeping-entries';
91
- import {
92
- BookkeepingEntrySet,
93
- BookkeepingEntrySetCreateParams,
94
- BookkeepingEntrySetListParams,
95
- BookkeepingEntrySets,
96
- BookkeepingEntrySetsPage,
97
- } from './resources/bookkeeping-entry-sets';
98
75
  import {
99
76
  CardDispute,
100
77
  CardDisputeCreateParams,
@@ -291,13 +268,21 @@ import {
291
268
  IntrafiExclusionsPage,
292
269
  } from './resources/intrafi-exclusions';
293
270
  import {
294
- Lockbox,
295
- LockboxCreateParams,
296
- LockboxListParams,
297
- LockboxUpdateParams,
298
- Lockboxes,
299
- LockboxesPage,
300
- } 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';
301
286
  import {
302
287
  OAuthApplication,
303
288
  OAuthApplicationListParams,
@@ -1185,7 +1170,8 @@ export class Increase {
1185
1170
  inboundFednowTransfers: API.InboundFednowTransfers = new API.InboundFednowTransfers(this);
1186
1171
  swiftTransfers: API.SwiftTransfers = new API.SwiftTransfers(this);
1187
1172
  checkDeposits: API.CheckDeposits = new API.CheckDeposits(this);
1188
- lockboxes: API.Lockboxes = new API.Lockboxes(this);
1173
+ lockboxAddresses: API.LockboxAddresses = new API.LockboxAddresses(this);
1174
+ lockboxRecipients: API.LockboxRecipients = new API.LockboxRecipients(this);
1189
1175
  inboundMailItems: API.InboundMailItems = new API.InboundMailItems(this);
1190
1176
  routingNumbers: API.RoutingNumbers = new API.RoutingNumbers(this);
1191
1177
  externalAccounts: API.ExternalAccounts = new API.ExternalAccounts(this);
@@ -1201,9 +1187,6 @@ export class Increase {
1201
1187
  events: API.Events = new API.Events(this);
1202
1188
  eventSubscriptions: API.EventSubscriptions = new API.EventSubscriptions(this);
1203
1189
  realTimeDecisions: API.RealTimeDecisions = new API.RealTimeDecisions(this);
1204
- bookkeepingAccounts: API.BookkeepingAccounts = new API.BookkeepingAccounts(this);
1205
- bookkeepingEntrySets: API.BookkeepingEntrySets = new API.BookkeepingEntrySets(this);
1206
- bookkeepingEntries: API.BookkeepingEntries = new API.BookkeepingEntries(this);
1207
1190
  groups: API.Groups = new API.Groups(this);
1208
1191
  oauthApplications: API.OAuthApplications = new API.OAuthApplications(this);
1209
1192
  oauthConnections: API.OAuthConnections = new API.OAuthConnections(this);
@@ -1246,7 +1229,8 @@ Increase.FednowTransfers = FednowTransfers;
1246
1229
  Increase.InboundFednowTransfers = InboundFednowTransfers;
1247
1230
  Increase.SwiftTransfers = SwiftTransfers;
1248
1231
  Increase.CheckDeposits = CheckDeposits;
1249
- Increase.Lockboxes = Lockboxes;
1232
+ Increase.LockboxAddresses = LockboxAddresses;
1233
+ Increase.LockboxRecipients = LockboxRecipients;
1250
1234
  Increase.InboundMailItems = InboundMailItems;
1251
1235
  Increase.RoutingNumbers = RoutingNumbers;
1252
1236
  Increase.ExternalAccounts = ExternalAccounts;
@@ -1262,9 +1246,6 @@ Increase.Exports = Exports;
1262
1246
  Increase.Events = Events;
1263
1247
  Increase.EventSubscriptions = EventSubscriptions;
1264
1248
  Increase.RealTimeDecisions = RealTimeDecisions;
1265
- Increase.BookkeepingAccounts = BookkeepingAccounts;
1266
- Increase.BookkeepingEntrySets = BookkeepingEntrySets;
1267
- Increase.BookkeepingEntries = BookkeepingEntries;
1268
1249
  Increase.Groups = Groups;
1269
1250
  Increase.OAuthApplications = OAuthApplications;
1270
1251
  Increase.OAuthConnections = OAuthConnections;
@@ -1525,12 +1506,21 @@ export declare namespace Increase {
1525
1506
  };
1526
1507
 
1527
1508
  export {
1528
- Lockboxes as Lockboxes,
1529
- type Lockbox as Lockbox,
1530
- type LockboxesPage as LockboxesPage,
1531
- type LockboxCreateParams as LockboxCreateParams,
1532
- type LockboxUpdateParams as LockboxUpdateParams,
1533
- 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,
1534
1524
  };
1535
1525
 
1536
1526
  export {
@@ -1650,32 +1640,6 @@ export declare namespace Increase {
1650
1640
  type RealTimeDecisionActionParams as RealTimeDecisionActionParams,
1651
1641
  };
1652
1642
 
1653
- export {
1654
- BookkeepingAccounts as BookkeepingAccounts,
1655
- type BookkeepingAccount as BookkeepingAccount,
1656
- type BookkeepingBalanceLookup as BookkeepingBalanceLookup,
1657
- type BookkeepingAccountsPage as BookkeepingAccountsPage,
1658
- type BookkeepingAccountCreateParams as BookkeepingAccountCreateParams,
1659
- type BookkeepingAccountUpdateParams as BookkeepingAccountUpdateParams,
1660
- type BookkeepingAccountListParams as BookkeepingAccountListParams,
1661
- type BookkeepingAccountBalanceParams as BookkeepingAccountBalanceParams,
1662
- };
1663
-
1664
- export {
1665
- BookkeepingEntrySets as BookkeepingEntrySets,
1666
- type BookkeepingEntrySet as BookkeepingEntrySet,
1667
- type BookkeepingEntrySetsPage as BookkeepingEntrySetsPage,
1668
- type BookkeepingEntrySetCreateParams as BookkeepingEntrySetCreateParams,
1669
- type BookkeepingEntrySetListParams as BookkeepingEntrySetListParams,
1670
- };
1671
-
1672
- export {
1673
- BookkeepingEntries as BookkeepingEntries,
1674
- type BookkeepingEntry as BookkeepingEntry,
1675
- type BookkeepingEntriesPage as BookkeepingEntriesPage,
1676
- type BookkeepingEntryListParams as BookkeepingEntryListParams,
1677
- };
1678
-
1679
1643
  export { Groups as Groups, type Group as Group };
1680
1644
 
1681
1645
  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 {
@@ -53,29 +53,6 @@ export {
53
53
  type BeneficialOwnerListParams,
54
54
  type EntityBeneficialOwnersPage,
55
55
  } from './beneficial-owners';
56
- export {
57
- BookkeepingAccounts,
58
- type BookkeepingAccount,
59
- type BookkeepingBalanceLookup,
60
- type BookkeepingAccountCreateParams,
61
- type BookkeepingAccountUpdateParams,
62
- type BookkeepingAccountListParams,
63
- type BookkeepingAccountBalanceParams,
64
- type BookkeepingAccountsPage,
65
- } from './bookkeeping-accounts';
66
- export {
67
- BookkeepingEntries,
68
- type BookkeepingEntry,
69
- type BookkeepingEntryListParams,
70
- type BookkeepingEntriesPage,
71
- } from './bookkeeping-entries';
72
- export {
73
- BookkeepingEntrySets,
74
- type BookkeepingEntrySet,
75
- type BookkeepingEntrySetCreateParams,
76
- type BookkeepingEntrySetListParams,
77
- type BookkeepingEntrySetsPage,
78
- } from './bookkeeping-entry-sets';
79
56
  export {
80
57
  CardDisputes,
81
58
  type CardDispute,
@@ -278,13 +255,21 @@ export {
278
255
  type IntrafiExclusionsPage,
279
256
  } from './intrafi-exclusions';
280
257
  export {
281
- Lockboxes,
282
- type Lockbox,
283
- type LockboxCreateParams,
284
- type LockboxUpdateParams,
285
- type LockboxListParams,
286
- type LockboxesPage,
287
- } 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';
288
273
  export {
289
274
  OAuthApplications,
290
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
+ }