increase 0.539.0 → 0.541.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 +22 -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/card-push-transfers.d.mts +2 -1
- package/resources/card-push-transfers.d.mts.map +1 -1
- package/resources/card-push-transfers.d.ts +2 -1
- package/resources/card-push-transfers.d.ts.map +1 -1
- package/resources/card-tokens.d.mts +2 -1
- package/resources/card-tokens.d.mts.map +1 -1
- package/resources/card-tokens.d.ts +2 -1
- package/resources/card-tokens.d.ts.map +1 -1
- package/resources/card-validations.d.mts +2 -1
- package/resources/card-validations.d.mts.map +1 -1
- package/resources/card-validations.d.ts +2 -1
- package/resources/card-validations.d.ts.map +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/card-tokens.d.mts +2 -1
- package/resources/simulations/card-tokens.d.mts.map +1 -1
- package/resources/simulations/card-tokens.d.ts +2 -1
- package/resources/simulations/card-tokens.d.ts.map +1 -1
- 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/card-push-transfers.ts +2 -1
- package/src/resources/card-tokens.ts +2 -1
- package/src/resources/card-validations.ts +2 -1
- 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/card-tokens.ts +2 -1
- 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
|
@@ -12,7 +12,6 @@ export declare class InboundMailItems extends APIResource {
|
|
|
12
12
|
* const inboundMailItem =
|
|
13
13
|
* await client.simulations.inboundMailItems.create({
|
|
14
14
|
* amount: 1000,
|
|
15
|
-
* lockbox_id: 'lockbox_3xt21ok13q19advds4t5',
|
|
16
15
|
* });
|
|
17
16
|
* ```
|
|
18
17
|
*/
|
|
@@ -23,15 +22,20 @@ export interface InboundMailItemCreateParams {
|
|
|
23
22
|
* The amount of the check to be simulated, in cents.
|
|
24
23
|
*/
|
|
25
24
|
amount: number;
|
|
26
|
-
/**
|
|
27
|
-
* The identifier of the Lockbox to simulate inbound mail to.
|
|
28
|
-
*/
|
|
29
|
-
lockbox_id: string;
|
|
30
25
|
/**
|
|
31
26
|
* The file containing the PDF contents. If not present, a default check image file
|
|
32
27
|
* will be used.
|
|
33
28
|
*/
|
|
34
29
|
contents_file_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The identifier of the Lockbox Address to simulate inbound mail to.
|
|
32
|
+
*/
|
|
33
|
+
lockbox_address_id?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The identifier of the Lockbox Recipient to simulate inbound mail to.
|
|
36
|
+
*/
|
|
37
|
+
lockbox_recipient_id?: string;
|
|
38
|
+
[k: string]: unknown;
|
|
35
39
|
}
|
|
36
40
|
export declare namespace InboundMailItems {
|
|
37
41
|
export { type InboundMailItemCreateParams as InboundMailItemCreateParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-mail-items.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"inbound-mail-items.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC,eAAe,CAAC;CAGnD;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -12,7 +12,6 @@ export declare class InboundMailItems extends APIResource {
|
|
|
12
12
|
* const inboundMailItem =
|
|
13
13
|
* await client.simulations.inboundMailItems.create({
|
|
14
14
|
* amount: 1000,
|
|
15
|
-
* lockbox_id: 'lockbox_3xt21ok13q19advds4t5',
|
|
16
15
|
* });
|
|
17
16
|
* ```
|
|
18
17
|
*/
|
|
@@ -23,15 +22,20 @@ export interface InboundMailItemCreateParams {
|
|
|
23
22
|
* The amount of the check to be simulated, in cents.
|
|
24
23
|
*/
|
|
25
24
|
amount: number;
|
|
26
|
-
/**
|
|
27
|
-
* The identifier of the Lockbox to simulate inbound mail to.
|
|
28
|
-
*/
|
|
29
|
-
lockbox_id: string;
|
|
30
25
|
/**
|
|
31
26
|
* The file containing the PDF contents. If not present, a default check image file
|
|
32
27
|
* will be used.
|
|
33
28
|
*/
|
|
34
29
|
contents_file_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The identifier of the Lockbox Address to simulate inbound mail to.
|
|
32
|
+
*/
|
|
33
|
+
lockbox_address_id?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The identifier of the Lockbox Recipient to simulate inbound mail to.
|
|
36
|
+
*/
|
|
37
|
+
lockbox_recipient_id?: string;
|
|
38
|
+
[k: string]: unknown;
|
|
35
39
|
}
|
|
36
40
|
export declare namespace InboundMailItems {
|
|
37
41
|
export { type InboundMailItemCreateParams as InboundMailItemCreateParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-mail-items.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"inbound-mail-items.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC,eAAe,CAAC;CAGnD;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-mail-items.js","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"inbound-mail-items.js","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAnBD,4CAmBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-mail-items.mjs","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"inbound-mail-items.mjs","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -268,13 +268,21 @@ import {
|
|
|
268
268
|
IntrafiExclusionsPage,
|
|
269
269
|
} from './resources/intrafi-exclusions';
|
|
270
270
|
import {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
} from './resources/
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
1500
|
-
type
|
|
1501
|
-
type
|
|
1502
|
-
type
|
|
1503
|
-
type
|
|
1504
|
-
type
|
|
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 {
|
|
@@ -258,8 +258,9 @@ export interface CardPushTransfer {
|
|
|
258
258
|
*
|
|
259
259
|
* - `visa` - Visa and Interlink
|
|
260
260
|
* - `mastercard` - Mastercard and Maestro
|
|
261
|
+
* - `pulse` - Pulse
|
|
261
262
|
*/
|
|
262
|
-
route: 'visa' | 'mastercard';
|
|
263
|
+
route: 'visa' | 'mastercard' | 'pulse';
|
|
263
264
|
|
|
264
265
|
/**
|
|
265
266
|
* The city of the sender.
|
|
@@ -149,8 +149,9 @@ export namespace CardTokenCapabilities {
|
|
|
149
149
|
*
|
|
150
150
|
* - `visa` - Visa and Interlink
|
|
151
151
|
* - `mastercard` - Mastercard and Maestro
|
|
152
|
+
* - `pulse` - Pulse
|
|
152
153
|
*/
|
|
153
|
-
route: 'visa' | 'mastercard';
|
|
154
|
+
route: 'visa' | 'mastercard' | 'pulse';
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
|
|
@@ -170,8 +170,9 @@ export interface CardValidation {
|
|
|
170
170
|
*
|
|
171
171
|
* - `visa` - Visa and Interlink
|
|
172
172
|
* - `mastercard` - Mastercard and Maestro
|
|
173
|
+
* - `pulse` - Pulse
|
|
173
174
|
*/
|
|
174
|
-
route: 'visa' | 'mastercard';
|
|
175
|
+
route: 'visa' | 'mastercard' | 'pulse';
|
|
175
176
|
|
|
176
177
|
/**
|
|
177
178
|
* The lifecycle status of the validation.
|
|
@@ -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
|
|
153
|
-
* the identifier of the Lockbox that
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
193
|
+
lockbox_recipient_id?: string;
|
|
174
194
|
}
|
|
175
195
|
|
|
176
196
|
export namespace InboundMailItemListParams {
|
package/src/resources/index.ts
CHANGED
|
@@ -255,13 +255,21 @@ export {
|
|
|
255
255
|
type IntrafiExclusionsPage,
|
|
256
256
|
} from './intrafi-exclusions';
|
|
257
257
|
export {
|
|
258
|
-
|
|
259
|
-
type
|
|
260
|
-
type
|
|
261
|
-
type
|
|
262
|
-
type
|
|
263
|
-
type
|
|
264
|
-
} from './
|
|
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
|
+
}
|