increase 0.28.0 → 0.30.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 +40 -0
- package/README.md +2 -2
- package/core.d.ts.map +1 -1
- package/core.js +2 -1
- package/core.js.map +1 -1
- package/core.mjs +2 -1
- package/core.mjs.map +1 -1
- package/error.d.ts +5 -5
- package/error.d.ts.map +1 -1
- package/error.js +9 -9
- package/error.js.map +1 -1
- package/error.mjs +6 -6
- package/error.mjs.map +1 -1
- package/index.d.mts +21 -9
- package/index.d.ts +21 -9
- package/index.d.ts.map +1 -1
- package/index.js +10 -7
- package/index.js.map +1 -1
- package/index.mjs +9 -6
- package/index.mjs.map +1 -1
- package/package.json +4 -1
- package/resources/account-numbers.d.ts +33 -14
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-numbers.js.map +1 -1
- package/resources/account-numbers.mjs.map +1 -1
- package/resources/account-transfers.d.ts +11 -12
- package/resources/account-transfers.d.ts.map +1 -1
- package/resources/account-transfers.js.map +1 -1
- package/resources/account-transfers.mjs.map +1 -1
- package/resources/accounts.d.ts +13 -0
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/ach-prenotifications.d.ts +13 -0
- package/resources/ach-prenotifications.d.ts.map +1 -1
- package/resources/ach-prenotifications.js.map +1 -1
- package/resources/ach-prenotifications.mjs.map +1 -1
- package/resources/ach-transfers.d.ts +168 -12
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/ach-transfers.js.map +1 -1
- package/resources/ach-transfers.mjs.map +1 -1
- package/resources/bookkeeping-accounts.d.ts +13 -0
- package/resources/bookkeeping-accounts.d.ts.map +1 -1
- package/resources/bookkeeping-accounts.js.map +1 -1
- package/resources/bookkeeping-accounts.mjs.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts +13 -0
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.js.map +1 -1
- package/resources/bookkeeping-entry-sets.mjs.map +1 -1
- package/resources/card-disputes.d.ts +13 -0
- package/resources/card-disputes.d.ts.map +1 -1
- package/resources/card-disputes.js.map +1 -1
- package/resources/card-disputes.mjs.map +1 -1
- package/resources/cards.d.ts +17 -4
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/check-deposits.d.ts +16 -2
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-deposits.js.map +1 -1
- package/resources/check-deposits.mjs.map +1 -1
- package/resources/check-transfers.d.ts +11 -12
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +4 -1
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/digital-card-profiles.d.ts +268 -0
- package/resources/digital-card-profiles.d.ts.map +1 -0
- package/resources/digital-card-profiles.js +71 -0
- package/resources/digital-card-profiles.js.map +1 -0
- package/resources/digital-card-profiles.mjs +43 -0
- package/resources/digital-card-profiles.mjs.map +1 -0
- package/resources/entities/entities.d.ts +19 -0
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/supplemental-documents.d.ts +13 -0
- package/resources/entities/supplemental-documents.d.ts.map +1 -1
- package/resources/entities/supplemental-documents.js.map +1 -1
- package/resources/entities/supplemental-documents.mjs.map +1 -1
- package/resources/event-subscriptions.d.ts +13 -0
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/event-subscriptions.js.map +1 -1
- package/resources/event-subscriptions.mjs.map +1 -1
- package/resources/exports.d.ts +6 -0
- package/resources/exports.d.ts.map +1 -1
- package/resources/exports.js.map +1 -1
- package/resources/exports.mjs.map +1 -1
- package/resources/external-accounts.d.ts +36 -0
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/files.d.ts +13 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js.map +1 -1
- package/resources/files.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts +4 -0
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/inbound-wire-transfers.d.ts +4 -0
- package/resources/inbound-wire-transfers.d.ts.map +1 -1
- package/resources/inbound-wire-transfers.js.map +1 -1
- package/resources/inbound-wire-transfers.mjs.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/intrafi/account-enrollments.d.ts +13 -0
- package/resources/intrafi/account-enrollments.d.ts.map +1 -1
- package/resources/intrafi/account-enrollments.js.map +1 -1
- package/resources/intrafi/account-enrollments.mjs.map +1 -1
- package/resources/intrafi/exclusions.d.ts +13 -0
- package/resources/intrafi/exclusions.d.ts.map +1 -1
- package/resources/intrafi/exclusions.js.map +1 -1
- package/resources/intrafi/exclusions.mjs.map +1 -1
- package/resources/physical-card-profiles.d.ts +166 -0
- package/resources/physical-card-profiles.d.ts.map +1 -0
- package/resources/{card-profiles.js → physical-card-profiles.js} +27 -18
- package/resources/physical-card-profiles.js.map +1 -0
- package/resources/physical-card-profiles.mjs +46 -0
- package/resources/physical-card-profiles.mjs.map +1 -0
- package/resources/physical-cards.d.ts +19 -5
- package/resources/physical-cards.d.ts.map +1 -1
- package/resources/physical-cards.js.map +1 -1
- package/resources/physical-cards.mjs.map +1 -1
- package/resources/programs.d.ts +4 -0
- package/resources/programs.d.ts.map +1 -1
- package/resources/programs.js.map +1 -1
- package/resources/programs.mjs.map +1 -1
- package/resources/proof-of-authorization-request-submissions.d.ts +13 -0
- package/resources/proof-of-authorization-request-submissions.d.ts.map +1 -1
- package/resources/proof-of-authorization-request-submissions.js.map +1 -1
- package/resources/proof-of-authorization-request-submissions.mjs.map +1 -1
- package/resources/real-time-decisions.d.ts +6 -1
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/real-time-payments-request-for-payments.d.ts +13 -0
- package/resources/real-time-payments-request-for-payments.d.ts.map +1 -1
- package/resources/real-time-payments-request-for-payments.js.map +1 -1
- package/resources/real-time-payments-request-for-payments.mjs.map +1 -1
- package/resources/real-time-payments-transfers.d.ts +11 -12
- package/resources/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/real-time-payments-transfers.js.map +1 -1
- package/resources/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/cards.d.ts +4 -1
- package/resources/simulations/cards.d.ts.map +1 -1
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/index.d.ts +2 -3
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +1 -3
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +2 -3
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/interest-payments.d.ts +2 -2745
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +6 -2
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts +74 -4
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +30 -3
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +30 -3
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/transactions.d.ts +2 -1
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-drawdown-requests.d.ts +6 -0
- package/resources/wire-drawdown-requests.d.ts.map +1 -1
- package/resources/wire-drawdown-requests.js.map +1 -1
- package/resources/wire-drawdown-requests.mjs.map +1 -1
- package/resources/wire-transfers.d.ts +11 -12
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/core.ts +3 -1
- package/src/error.ts +11 -11
- package/src/index.ts +23 -10
- package/src/resources/account-numbers.ts +37 -17
- package/src/resources/account-transfers.ts +12 -14
- package/src/resources/accounts.ts +15 -0
- package/src/resources/ach-prenotifications.ts +15 -0
- package/src/resources/ach-transfers.ts +186 -13
- package/src/resources/bookkeeping-accounts.ts +16 -1
- package/src/resources/bookkeeping-entry-sets.ts +15 -0
- package/src/resources/card-disputes.ts +15 -0
- package/src/resources/cards.ts +20 -5
- package/src/resources/check-deposits.ts +18 -1
- package/src/resources/check-transfers.ts +12 -14
- package/src/resources/declined-transactions.ts +6 -1
- package/src/resources/digital-card-profiles.ts +348 -0
- package/src/resources/entities/entities.ts +22 -0
- package/src/resources/entities/supplemental-documents.ts +15 -0
- package/src/resources/event-subscriptions.ts +16 -1
- package/src/resources/exports.ts +7 -0
- package/src/resources/external-accounts.ts +41 -0
- package/src/resources/files.ts +15 -0
- package/src/resources/inbound-ach-transfers.ts +5 -0
- package/src/resources/inbound-wire-transfers.ts +5 -0
- package/src/resources/index.ts +23 -8
- package/src/resources/intrafi/account-enrollments.ts +15 -0
- package/src/resources/intrafi/exclusions.ts +15 -0
- package/src/resources/physical-card-profiles.ts +241 -0
- package/src/resources/physical-cards.ts +22 -6
- package/src/resources/programs.ts +5 -0
- package/src/resources/proof-of-authorization-request-submissions.ts +15 -0
- package/src/resources/real-time-decisions.ts +7 -1
- package/src/resources/real-time-payments-request-for-payments.ts +15 -0
- package/src/resources/real-time-payments-transfers.ts +12 -14
- package/src/resources/simulations/cards.ts +6 -1
- package/src/resources/simulations/index.ts +8 -7
- package/src/resources/simulations/interest-payments.ts +2 -3453
- package/src/resources/simulations/real-time-payments-transfers.ts +8 -1
- package/src/resources/simulations/simulations.ts +106 -4
- package/src/resources/transactions.ts +2 -0
- package/src/resources/wire-drawdown-requests.ts +7 -0
- package/src/resources/wire-transfers.ts +12 -14
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/card-profiles.d.ts +0 -287
- package/resources/card-profiles.d.ts.map +0 -1
- package/resources/card-profiles.js.map +0 -1
- package/resources/card-profiles.mjs +0 -37
- package/resources/card-profiles.mjs.map +0 -1
- package/resources/simulations/card-profiles.d.ts +0 -14
- package/resources/simulations/card-profiles.d.ts.map +0 -1
- package/resources/simulations/card-profiles.js +0 -19
- package/resources/simulations/card-profiles.js.map +0 -1
- package/resources/simulations/card-profiles.mjs +0 -15
- package/resources/simulations/card-profiles.mjs.map +0 -1
- package/src/resources/card-profiles.ts +0 -365
- package/src/resources/simulations/card-profiles.ts +0 -21
|
@@ -122,6 +122,13 @@ export interface AccountTransfer {
|
|
|
122
122
|
*/
|
|
123
123
|
destination_transaction_id: string | null;
|
|
124
124
|
|
|
125
|
+
/**
|
|
126
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
127
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
128
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
129
|
+
*/
|
|
130
|
+
idempotency_key: string | null;
|
|
131
|
+
|
|
125
132
|
/**
|
|
126
133
|
* The transfer's network.
|
|
127
134
|
*/
|
|
@@ -154,11 +161,6 @@ export interface AccountTransfer {
|
|
|
154
161
|
* `account_transfer`.
|
|
155
162
|
*/
|
|
156
163
|
type: 'account_transfer';
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* The unique identifier you chose for this object.
|
|
160
|
-
*/
|
|
161
|
-
unique_identifier: string | null;
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
export namespace AccountTransfer {
|
|
@@ -225,13 +227,6 @@ export interface AccountTransferCreateParams {
|
|
|
225
227
|
* Whether the transfer requires explicit approval via the dashboard or API.
|
|
226
228
|
*/
|
|
227
229
|
require_approval?: boolean;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* A unique identifier you choose for the object. Reusing this identifier for
|
|
231
|
-
* another object will result in an error. You can query for the object associated
|
|
232
|
-
* with this identifier using the List endpoint.
|
|
233
|
-
*/
|
|
234
|
-
unique_identifier?: string;
|
|
235
230
|
}
|
|
236
231
|
|
|
237
232
|
export interface AccountTransferListParams extends PageParams {
|
|
@@ -243,9 +238,12 @@ export interface AccountTransferListParams extends PageParams {
|
|
|
243
238
|
created_at?: AccountTransferListParams.CreatedAt;
|
|
244
239
|
|
|
245
240
|
/**
|
|
246
|
-
* Filter records to the one with the specified `
|
|
241
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
242
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
243
|
+
* request is only processed once. Learn more about
|
|
244
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
247
245
|
*/
|
|
248
|
-
|
|
246
|
+
idempotency_key?: string;
|
|
249
247
|
}
|
|
250
248
|
|
|
251
249
|
export namespace AccountTransferListParams {
|
|
@@ -119,6 +119,13 @@ export interface Account {
|
|
|
119
119
|
*/
|
|
120
120
|
entity_id: string | null;
|
|
121
121
|
|
|
122
|
+
/**
|
|
123
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
124
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
125
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
126
|
+
*/
|
|
127
|
+
idempotency_key: string | null;
|
|
128
|
+
|
|
122
129
|
/**
|
|
123
130
|
* The identifier of an Entity that, while not owning the Account, is associated
|
|
124
131
|
* with its activity.
|
|
@@ -232,6 +239,14 @@ export interface AccountListParams extends PageParams {
|
|
|
232
239
|
*/
|
|
233
240
|
entity_id?: string;
|
|
234
241
|
|
|
242
|
+
/**
|
|
243
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
244
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
245
|
+
* request is only processed once. Learn more about
|
|
246
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
247
|
+
*/
|
|
248
|
+
idempotency_key?: string;
|
|
249
|
+
|
|
235
250
|
/**
|
|
236
251
|
* Filter Accounts for those belonging to the specified Entity as informational.
|
|
237
252
|
*/
|
|
@@ -104,6 +104,13 @@ export interface ACHPrenotification {
|
|
|
104
104
|
*/
|
|
105
105
|
effective_date: string | null;
|
|
106
106
|
|
|
107
|
+
/**
|
|
108
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
109
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
110
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
111
|
+
*/
|
|
112
|
+
idempotency_key: string | null;
|
|
113
|
+
|
|
107
114
|
/**
|
|
108
115
|
* If the receiving bank notifies that future transfers should use different
|
|
109
116
|
* details, this will contain those details.
|
|
@@ -527,6 +534,14 @@ export interface ACHPrenotificationCreateParams {
|
|
|
527
534
|
|
|
528
535
|
export interface ACHPrenotificationListParams extends PageParams {
|
|
529
536
|
created_at?: ACHPrenotificationListParams.CreatedAt;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
540
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
541
|
+
* request is only processed once. Learn more about
|
|
542
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
543
|
+
*/
|
|
544
|
+
idempotency_key?: string;
|
|
530
545
|
}
|
|
531
546
|
|
|
532
547
|
export namespace ACHPrenotificationListParams {
|
|
@@ -86,7 +86,7 @@ export interface ACHTransfer {
|
|
|
86
86
|
/**
|
|
87
87
|
* Additional information that will be sent to the recipient.
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
addenda: ACHTransfer.Addenda | null;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* The transfer amount in USD cents. A positive amount indicates a credit transfer
|
|
@@ -146,6 +146,16 @@ export interface ACHTransfer {
|
|
|
146
146
|
*/
|
|
147
147
|
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
148
148
|
|
|
149
|
+
/**
|
|
150
|
+
* The type of entity that owns the account to which the ACH Transfer is being
|
|
151
|
+
* sent.
|
|
152
|
+
*
|
|
153
|
+
* - `business` - The External Account is owned by a business.
|
|
154
|
+
* - `individual` - The External Account is owned by an individual.
|
|
155
|
+
* - `unknown` - It's unknown what kind of entity owns the External Account.
|
|
156
|
+
*/
|
|
157
|
+
destination_account_holder: 'business' | 'individual' | 'unknown';
|
|
158
|
+
|
|
149
159
|
/**
|
|
150
160
|
* The transfer effective date in
|
|
151
161
|
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
@@ -165,6 +175,13 @@ export interface ACHTransfer {
|
|
|
165
175
|
*/
|
|
166
176
|
funding: 'checking' | 'savings';
|
|
167
177
|
|
|
178
|
+
/**
|
|
179
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
180
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
181
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
182
|
+
*/
|
|
183
|
+
idempotency_key: string | null;
|
|
184
|
+
|
|
168
185
|
/**
|
|
169
186
|
* Your identifier for the transfer recipient.
|
|
170
187
|
*/
|
|
@@ -265,11 +282,6 @@ export interface ACHTransfer {
|
|
|
265
282
|
* `ach_transfer`.
|
|
266
283
|
*/
|
|
267
284
|
type: 'ach_transfer';
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* The unique identifier you chose for this object.
|
|
271
|
-
*/
|
|
272
|
-
unique_identifier: string | null;
|
|
273
285
|
}
|
|
274
286
|
|
|
275
287
|
export namespace ACHTransfer {
|
|
@@ -286,6 +298,82 @@ export namespace ACHTransfer {
|
|
|
286
298
|
acknowledged_at: string;
|
|
287
299
|
}
|
|
288
300
|
|
|
301
|
+
/**
|
|
302
|
+
* Additional information that will be sent to the recipient.
|
|
303
|
+
*/
|
|
304
|
+
export interface Addenda {
|
|
305
|
+
/**
|
|
306
|
+
* The type of the resource. We may add additional possible values for this enum
|
|
307
|
+
* over time; your application should be able to handle such additions gracefully.
|
|
308
|
+
*
|
|
309
|
+
* - `freeform` - Unstructured `payment_related_information` passed through with
|
|
310
|
+
* the transfer.
|
|
311
|
+
* - `payment_order_remittance_advice` - Structured ASC X12 820 remittance advice
|
|
312
|
+
* records. Please reach out to
|
|
313
|
+
* [support@increase.com](mailto:support@increase.com) for more information.
|
|
314
|
+
* - `other` - Unknown addenda type.
|
|
315
|
+
*/
|
|
316
|
+
category: 'freeform' | 'payment_order_remittance_advice' | 'other';
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Unstructured `payment_related_information` passed through with the transfer.
|
|
320
|
+
*/
|
|
321
|
+
freeform: Addenda.Freeform | null;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Structured ASC X12 820 remittance advice records. Please reach out to
|
|
325
|
+
* [support@increase.com](mailto:support@increase.com) for more information.
|
|
326
|
+
*/
|
|
327
|
+
payment_order_remittance_advice: Addenda.PaymentOrderRemittanceAdvice | null;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export namespace Addenda {
|
|
331
|
+
/**
|
|
332
|
+
* Unstructured `payment_related_information` passed through with the transfer.
|
|
333
|
+
*/
|
|
334
|
+
export interface Freeform {
|
|
335
|
+
/**
|
|
336
|
+
* Each entry represents an addendum sent with the transfer.
|
|
337
|
+
*/
|
|
338
|
+
entries: Array<Freeform.Entry>;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export namespace Freeform {
|
|
342
|
+
export interface Entry {
|
|
343
|
+
/**
|
|
344
|
+
* The payment related information passed in the addendum.
|
|
345
|
+
*/
|
|
346
|
+
payment_related_information: string;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Structured ASC X12 820 remittance advice records. Please reach out to
|
|
352
|
+
* [support@increase.com](mailto:support@increase.com) for more information.
|
|
353
|
+
*/
|
|
354
|
+
export interface PaymentOrderRemittanceAdvice {
|
|
355
|
+
/**
|
|
356
|
+
* ASC X12 RMR records for this specific transfer.
|
|
357
|
+
*/
|
|
358
|
+
invoices: Array<PaymentOrderRemittanceAdvice.Invoice>;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export namespace PaymentOrderRemittanceAdvice {
|
|
362
|
+
export interface Invoice {
|
|
363
|
+
/**
|
|
364
|
+
* The invoice number for this reference, determined in advance with the receiver.
|
|
365
|
+
*/
|
|
366
|
+
invoice_number: string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* The amount that was paid for this invoice in the minor unit of its currency. For
|
|
370
|
+
* dollars, for example, this is cents.
|
|
371
|
+
*/
|
|
372
|
+
paid_amount: number;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
289
377
|
/**
|
|
290
378
|
* If your account requires approvals for transfers and the transfer was approved,
|
|
291
379
|
* this will contain details of the approval.
|
|
@@ -721,7 +809,7 @@ export interface ACHTransferCreateParams {
|
|
|
721
809
|
* Additional information that will be sent to the recipient. This is included in
|
|
722
810
|
* the transfer data sent to the receiving bank.
|
|
723
811
|
*/
|
|
724
|
-
|
|
812
|
+
addenda?: ACHTransferCreateParams.Addenda;
|
|
725
813
|
|
|
726
814
|
/**
|
|
727
815
|
* The description of the date of the transfer, usually in the format `YYMMDD`.
|
|
@@ -747,6 +835,16 @@ export interface ACHTransferCreateParams {
|
|
|
747
835
|
*/
|
|
748
836
|
company_name?: string;
|
|
749
837
|
|
|
838
|
+
/**
|
|
839
|
+
* The type of entity that owns the account to which the ACH Transfer is being
|
|
840
|
+
* sent.
|
|
841
|
+
*
|
|
842
|
+
* - `business` - The External Account is owned by a business.
|
|
843
|
+
* - `individual` - The External Account is owned by an individual.
|
|
844
|
+
* - `unknown` - It's unknown what kind of entity owns the External Account.
|
|
845
|
+
*/
|
|
846
|
+
destination_account_holder?: 'business' | 'individual' | 'unknown';
|
|
847
|
+
|
|
750
848
|
/**
|
|
751
849
|
* The transfer effective date in
|
|
752
850
|
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
@@ -800,13 +898,85 @@ export interface ACHTransferCreateParams {
|
|
|
800
898
|
| 'corporate_credit_or_debit'
|
|
801
899
|
| 'prearranged_payments_and_deposit'
|
|
802
900
|
| 'internet_initiated';
|
|
901
|
+
}
|
|
803
902
|
|
|
903
|
+
export namespace ACHTransferCreateParams {
|
|
804
904
|
/**
|
|
805
|
-
*
|
|
806
|
-
*
|
|
807
|
-
* with this identifier using the List endpoint.
|
|
905
|
+
* Additional information that will be sent to the recipient. This is included in
|
|
906
|
+
* the transfer data sent to the receiving bank.
|
|
808
907
|
*/
|
|
809
|
-
|
|
908
|
+
export interface Addenda {
|
|
909
|
+
/**
|
|
910
|
+
* The type of addenda to pass with the transfer.
|
|
911
|
+
*
|
|
912
|
+
* - `freeform` - Unstructured `payment_related_information` passed through with
|
|
913
|
+
* the transfer.
|
|
914
|
+
* - `payment_order_remittance_advice` - Structured ASC X12 820 remittance advice
|
|
915
|
+
* records. Please reach out to
|
|
916
|
+
* [support@increase.com](mailto:support@increase.com) for more information.
|
|
917
|
+
*/
|
|
918
|
+
category: 'freeform' | 'payment_order_remittance_advice';
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Unstructured `payment_related_information` passed through with the transfer.
|
|
922
|
+
*/
|
|
923
|
+
freeform?: Addenda.Freeform;
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Structured ASC X12 820 remittance advice records. Please reach out to
|
|
927
|
+
* [support@increase.com](mailto:support@increase.com) for more information.
|
|
928
|
+
*/
|
|
929
|
+
payment_order_remittance_advice?: Addenda.PaymentOrderRemittanceAdvice;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export namespace Addenda {
|
|
933
|
+
/**
|
|
934
|
+
* Unstructured `payment_related_information` passed through with the transfer.
|
|
935
|
+
*/
|
|
936
|
+
export interface Freeform {
|
|
937
|
+
/**
|
|
938
|
+
* Each entry represents an addendum sent with the transfer. Please reach out to
|
|
939
|
+
* [support@increase.com](mailto:support@increase.com) to send more than one
|
|
940
|
+
* addendum.
|
|
941
|
+
*/
|
|
942
|
+
entries: Array<Freeform.Entry>;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
export namespace Freeform {
|
|
946
|
+
export interface Entry {
|
|
947
|
+
/**
|
|
948
|
+
* The payment related information passed in the addendum.
|
|
949
|
+
*/
|
|
950
|
+
payment_related_information: string;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Structured ASC X12 820 remittance advice records. Please reach out to
|
|
956
|
+
* [support@increase.com](mailto:support@increase.com) for more information.
|
|
957
|
+
*/
|
|
958
|
+
export interface PaymentOrderRemittanceAdvice {
|
|
959
|
+
/**
|
|
960
|
+
* ASC X12 RMR records for this specific transfer.
|
|
961
|
+
*/
|
|
962
|
+
invoices: Array<PaymentOrderRemittanceAdvice.Invoice>;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
export namespace PaymentOrderRemittanceAdvice {
|
|
966
|
+
export interface Invoice {
|
|
967
|
+
/**
|
|
968
|
+
* The invoice number for this reference, determined in advance with the receiver.
|
|
969
|
+
*/
|
|
970
|
+
invoice_number: string;
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* The amount that was paid for this invoice in the minor unit of its currency. For
|
|
974
|
+
* dollars, for example, this is cents.
|
|
975
|
+
*/
|
|
976
|
+
paid_amount: number;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
810
980
|
}
|
|
811
981
|
|
|
812
982
|
export interface ACHTransferListParams extends PageParams {
|
|
@@ -823,9 +993,12 @@ export interface ACHTransferListParams extends PageParams {
|
|
|
823
993
|
external_account_id?: string;
|
|
824
994
|
|
|
825
995
|
/**
|
|
826
|
-
* Filter records to the one with the specified `
|
|
996
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
997
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
998
|
+
* request is only processed once. Learn more about
|
|
999
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
827
1000
|
*/
|
|
828
|
-
|
|
1001
|
+
idempotency_key?: string;
|
|
829
1002
|
}
|
|
830
1003
|
|
|
831
1004
|
export namespace ACHTransferListParams {
|
|
@@ -101,6 +101,13 @@ export interface BookkeepingAccount {
|
|
|
101
101
|
*/
|
|
102
102
|
entity_id: string | null;
|
|
103
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
|
+
|
|
104
111
|
/**
|
|
105
112
|
* The name you choose for the account.
|
|
106
113
|
*/
|
|
@@ -168,7 +175,15 @@ export interface BookkeepingAccountUpdateParams {
|
|
|
168
175
|
name: string;
|
|
169
176
|
}
|
|
170
177
|
|
|
171
|
-
export interface BookkeepingAccountListParams extends PageParams {
|
|
178
|
+
export interface BookkeepingAccountListParams extends PageParams {
|
|
179
|
+
/**
|
|
180
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
181
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
182
|
+
* request is only processed once. Learn more about
|
|
183
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
184
|
+
*/
|
|
185
|
+
idempotency_key?: string;
|
|
186
|
+
}
|
|
172
187
|
|
|
173
188
|
export interface BookkeepingAccountBalanceParams {
|
|
174
189
|
/**
|
|
@@ -78,6 +78,13 @@ export interface BookkeepingEntrySet {
|
|
|
78
78
|
*/
|
|
79
79
|
entries: Array<BookkeepingEntrySet.Entry>;
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
83
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
84
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
85
|
+
*/
|
|
86
|
+
idempotency_key: string | null;
|
|
87
|
+
|
|
81
88
|
/**
|
|
82
89
|
* The transaction identifier, if any.
|
|
83
90
|
*/
|
|
@@ -144,6 +151,14 @@ export namespace BookkeepingEntrySetCreateParams {
|
|
|
144
151
|
}
|
|
145
152
|
|
|
146
153
|
export interface BookkeepingEntrySetListParams extends PageParams {
|
|
154
|
+
/**
|
|
155
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
156
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
157
|
+
* request is only processed once. Learn more about
|
|
158
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
159
|
+
*/
|
|
160
|
+
idempotency_key?: string;
|
|
161
|
+
|
|
147
162
|
/**
|
|
148
163
|
* Filter to the Bookkeeping Entry Set that maps to this Transaction.
|
|
149
164
|
*/
|
|
@@ -74,6 +74,13 @@ export interface CardDispute {
|
|
|
74
74
|
*/
|
|
75
75
|
explanation: string;
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
79
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
80
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
81
|
+
*/
|
|
82
|
+
idempotency_key: string | null;
|
|
83
|
+
|
|
77
84
|
/**
|
|
78
85
|
* If the Card Dispute's status is `rejected`, this will contain details of the
|
|
79
86
|
* unsuccessful dispute.
|
|
@@ -160,6 +167,14 @@ export interface CardDisputeCreateParams {
|
|
|
160
167
|
export interface CardDisputeListParams extends PageParams {
|
|
161
168
|
created_at?: CardDisputeListParams.CreatedAt;
|
|
162
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
172
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
173
|
+
* request is only processed once. Learn more about
|
|
174
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
175
|
+
*/
|
|
176
|
+
idempotency_key?: string;
|
|
177
|
+
|
|
163
178
|
status?: CardDisputeListParams.Status;
|
|
164
179
|
}
|
|
165
180
|
|
package/src/resources/cards.ts
CHANGED
|
@@ -108,6 +108,13 @@ export interface Card {
|
|
|
108
108
|
*/
|
|
109
109
|
expiration_year: number;
|
|
110
110
|
|
|
111
|
+
/**
|
|
112
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
113
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
114
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
115
|
+
*/
|
|
116
|
+
idempotency_key: string | null;
|
|
117
|
+
|
|
111
118
|
/**
|
|
112
119
|
* The last 4 digits of the Card's Primary Account Number.
|
|
113
120
|
*/
|
|
@@ -295,11 +302,6 @@ export namespace CardCreateParams {
|
|
|
295
302
|
* `digital_wallet_authentication_requested`.
|
|
296
303
|
*/
|
|
297
304
|
export interface DigitalWallet {
|
|
298
|
-
/**
|
|
299
|
-
* The card profile assigned to this digital card.
|
|
300
|
-
*/
|
|
301
|
-
card_profile_id?: string;
|
|
302
|
-
|
|
303
305
|
/**
|
|
304
306
|
* The digital card profile assigned to this digital card.
|
|
305
307
|
*/
|
|
@@ -396,6 +398,11 @@ export namespace CardUpdateParams {
|
|
|
396
398
|
*/
|
|
397
399
|
card_profile_id?: string;
|
|
398
400
|
|
|
401
|
+
/**
|
|
402
|
+
* The digital card profile assigned to this digital card.
|
|
403
|
+
*/
|
|
404
|
+
digital_card_profile_id?: string;
|
|
405
|
+
|
|
399
406
|
/**
|
|
400
407
|
* An email address that can be used to verify the cardholder via one-time passcode
|
|
401
408
|
* over email.
|
|
@@ -417,6 +424,14 @@ export interface CardListParams extends PageParams {
|
|
|
417
424
|
account_id?: string;
|
|
418
425
|
|
|
419
426
|
created_at?: CardListParams.CreatedAt;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
430
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
431
|
+
* request is only processed once. Learn more about
|
|
432
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
433
|
+
*/
|
|
434
|
+
idempotency_key?: string;
|
|
420
435
|
}
|
|
421
436
|
|
|
422
437
|
export namespace CardListParams {
|
|
@@ -114,6 +114,13 @@ export interface CheckDeposit {
|
|
|
114
114
|
*/
|
|
115
115
|
front_image_file_id: string;
|
|
116
116
|
|
|
117
|
+
/**
|
|
118
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
119
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
120
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
121
|
+
*/
|
|
122
|
+
idempotency_key: string | null;
|
|
123
|
+
|
|
117
124
|
/**
|
|
118
125
|
* The status of the Check Deposit.
|
|
119
126
|
*
|
|
@@ -225,8 +232,9 @@ export namespace CheckDeposit {
|
|
|
225
232
|
* - `not_eligible_for_mobile_deposit` - This check was not eligible for mobile
|
|
226
233
|
* deposit.
|
|
227
234
|
* - `missing_required_data_elements` - This check is missing at least one required
|
|
228
|
-
* field
|
|
235
|
+
* field.
|
|
229
236
|
* - `suspected_fraud` - This check is suspected to be fraudulent.
|
|
237
|
+
* - `deposit_window_expired` - This check's deposit window has expired.
|
|
230
238
|
* - `unknown` - The check was rejected for an unknown reason.
|
|
231
239
|
*/
|
|
232
240
|
reason:
|
|
@@ -238,6 +246,7 @@ export namespace CheckDeposit {
|
|
|
238
246
|
| 'not_eligible_for_mobile_deposit'
|
|
239
247
|
| 'missing_required_data_elements'
|
|
240
248
|
| 'suspected_fraud'
|
|
249
|
+
| 'deposit_window_expired'
|
|
241
250
|
| 'unknown';
|
|
242
251
|
|
|
243
252
|
/**
|
|
@@ -400,6 +409,14 @@ export interface CheckDepositListParams extends PageParams {
|
|
|
400
409
|
account_id?: string;
|
|
401
410
|
|
|
402
411
|
created_at?: CheckDepositListParams.CreatedAt;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
415
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
416
|
+
* request is only processed once. Learn more about
|
|
417
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
418
|
+
*/
|
|
419
|
+
idempotency_key?: string;
|
|
403
420
|
}
|
|
404
421
|
|
|
405
422
|
export namespace CheckDepositListParams {
|
|
@@ -143,6 +143,13 @@ export interface CheckTransfer {
|
|
|
143
143
|
*/
|
|
144
144
|
fulfillment_method: 'physical_check' | 'third_party';
|
|
145
145
|
|
|
146
|
+
/**
|
|
147
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
148
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
149
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
150
|
+
*/
|
|
151
|
+
idempotency_key: string | null;
|
|
152
|
+
|
|
146
153
|
/**
|
|
147
154
|
* If the check has been mailed by Increase, this will contain details of the
|
|
148
155
|
* shipment.
|
|
@@ -219,11 +226,6 @@ export interface CheckTransfer {
|
|
|
219
226
|
* `check_transfer`.
|
|
220
227
|
*/
|
|
221
228
|
type: 'check_transfer';
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* The unique identifier you chose for this object.
|
|
225
|
-
*/
|
|
226
|
-
unique_identifier: string | null;
|
|
227
229
|
}
|
|
228
230
|
|
|
229
231
|
export namespace CheckTransfer {
|
|
@@ -511,13 +513,6 @@ export interface CheckTransferCreateParams {
|
|
|
511
513
|
* on the check.
|
|
512
514
|
*/
|
|
513
515
|
source_account_number_id?: string;
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* A unique identifier you choose for the transfer. Reusing this identifier for
|
|
517
|
-
* another transfer will result in an error. You can query for the transfer
|
|
518
|
-
* associated with this identifier using the List endpoint.
|
|
519
|
-
*/
|
|
520
|
-
unique_identifier?: string;
|
|
521
516
|
}
|
|
522
517
|
|
|
523
518
|
export namespace CheckTransferCreateParams {
|
|
@@ -638,9 +633,12 @@ export interface CheckTransferListParams extends PageParams {
|
|
|
638
633
|
created_at?: CheckTransferListParams.CreatedAt;
|
|
639
634
|
|
|
640
635
|
/**
|
|
641
|
-
* Filter records to the one with the specified `
|
|
636
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
637
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
638
|
+
* request is only processed once. Learn more about
|
|
639
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
642
640
|
*/
|
|
643
|
-
|
|
641
|
+
idempotency_key?: string;
|
|
644
642
|
}
|
|
645
643
|
|
|
646
644
|
export namespace CheckTransferListParams {
|
|
@@ -713,6 +713,9 @@ export namespace DeclinedTransaction {
|
|
|
713
713
|
* Increase.
|
|
714
714
|
* - `no_account_number_found` - The account number on the check does not exist at
|
|
715
715
|
* Increase.
|
|
716
|
+
* - `refer_to_image` - The check is not readable. Please refer to the image.
|
|
717
|
+
* - `unable_to_process` - The check cannot be processed. This is rare: please
|
|
718
|
+
* contact support.
|
|
716
719
|
*/
|
|
717
720
|
reason:
|
|
718
721
|
| 'ach_route_disabled'
|
|
@@ -726,7 +729,9 @@ export namespace DeclinedTransaction {
|
|
|
726
729
|
| 'not_authorized'
|
|
727
730
|
| 'amount_mismatch'
|
|
728
731
|
| 'not_our_item'
|
|
729
|
-
| 'no_account_number_found'
|
|
732
|
+
| 'no_account_number_found'
|
|
733
|
+
| 'refer_to_image'
|
|
734
|
+
| 'unable_to_process';
|
|
730
735
|
}
|
|
731
736
|
|
|
732
737
|
/**
|