increase 0.261.0 → 0.263.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 (68) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/index.d.mts +9 -0
  3. package/index.d.ts +9 -0
  4. package/index.d.ts.map +1 -1
  5. package/index.js +12 -0
  6. package/index.js.map +1 -1
  7. package/index.mjs +12 -0
  8. package/index.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/card-push-transfers.d.ts +633 -0
  11. package/resources/card-push-transfers.d.ts.map +1 -0
  12. package/resources/card-push-transfers.js +94 -0
  13. package/resources/card-push-transfers.js.map +1 -0
  14. package/resources/card-push-transfers.mjs +89 -0
  15. package/resources/card-push-transfers.mjs.map +1 -0
  16. package/resources/card-tokens.d.ts +154 -0
  17. package/resources/card-tokens.d.ts.map +1 -0
  18. package/resources/card-tokens.js +50 -0
  19. package/resources/card-tokens.js.map +1 -0
  20. package/resources/card-tokens.mjs +45 -0
  21. package/resources/card-tokens.mjs.map +1 -0
  22. package/resources/card-validations.d.ts +508 -0
  23. package/resources/card-validations.d.ts.map +1 -0
  24. package/resources/card-validations.js +54 -0
  25. package/resources/card-validations.js.map +1 -0
  26. package/resources/card-validations.mjs +49 -0
  27. package/resources/card-validations.mjs.map +1 -0
  28. package/resources/external-accounts.d.ts +6 -3
  29. package/resources/external-accounts.d.ts.map +1 -1
  30. package/resources/external-accounts.js.map +1 -1
  31. package/resources/external-accounts.mjs.map +1 -1
  32. package/resources/index.d.ts +3 -0
  33. package/resources/index.d.ts.map +1 -1
  34. package/resources/index.js +12 -2
  35. package/resources/index.js.map +1 -1
  36. package/resources/index.mjs +3 -0
  37. package/resources/index.mjs.map +1 -1
  38. package/resources/simulations/card-tokens.d.ts +66 -0
  39. package/resources/simulations/card-tokens.d.ts.map +1 -0
  40. package/resources/simulations/card-tokens.js +21 -0
  41. package/resources/simulations/card-tokens.js.map +1 -0
  42. package/resources/simulations/card-tokens.mjs +17 -0
  43. package/resources/simulations/card-tokens.mjs.map +1 -0
  44. package/resources/simulations/index.d.ts +1 -0
  45. package/resources/simulations/index.d.ts.map +1 -1
  46. package/resources/simulations/index.js +3 -1
  47. package/resources/simulations/index.js.map +1 -1
  48. package/resources/simulations/index.mjs +1 -0
  49. package/resources/simulations/index.mjs.map +1 -1
  50. package/resources/simulations/simulations.d.ts +4 -0
  51. package/resources/simulations/simulations.d.ts.map +1 -1
  52. package/resources/simulations/simulations.js +4 -0
  53. package/resources/simulations/simulations.js.map +1 -1
  54. package/resources/simulations/simulations.mjs +4 -0
  55. package/resources/simulations/simulations.mjs.map +1 -1
  56. package/src/index.ts +54 -0
  57. package/src/resources/card-push-transfers.ts +834 -0
  58. package/src/resources/card-tokens.ts +200 -0
  59. package/src/resources/card-validations.ts +643 -0
  60. package/src/resources/external-accounts.ts +6 -3
  61. package/src/resources/index.ts +21 -0
  62. package/src/resources/simulations/card-tokens.ts +82 -0
  63. package/src/resources/simulations/index.ts +1 -0
  64. package/src/resources/simulations/simulations.ts +6 -0
  65. package/src/version.ts +1 -1
  66. package/version.d.ts +1 -1
  67. package/version.js +1 -1
  68. package/version.mjs +1 -1
@@ -0,0 +1,643 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../resource';
4
+ import { isRequestOptions } from '../core';
5
+ import * as Core from '../core';
6
+ import { Page, type PageParams } from '../pagination';
7
+
8
+ export class CardValidations extends APIResource {
9
+ /**
10
+ * Create a Card Validation
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const cardValidation = await client.cardValidations.create({
15
+ * account_id: 'account_in71c4amph0vgo2qllky',
16
+ * card_token_id: 'outbound_card_token_zlt0ml6youq3q7vcdlg0',
17
+ * merchant_category_code: '1234',
18
+ * merchant_city_name: 'New York',
19
+ * merchant_name: 'Acme Corp',
20
+ * merchant_postal_code: '10045',
21
+ * merchant_state: 'NY',
22
+ * });
23
+ * ```
24
+ */
25
+ create(body: CardValidationCreateParams, options?: Core.RequestOptions): Core.APIPromise<CardValidation> {
26
+ return this._client.post('/card_validations', { body, ...options });
27
+ }
28
+
29
+ /**
30
+ * Retrieve a Card Validation
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const cardValidation =
35
+ * await client.cardValidations.retrieve(
36
+ * 'outbound_card_validation_qqlzagpc6v1x2gcdhe24',
37
+ * );
38
+ * ```
39
+ */
40
+ retrieve(cardValidationId: string, options?: Core.RequestOptions): Core.APIPromise<CardValidation> {
41
+ return this._client.get(`/card_validations/${cardValidationId}`, options);
42
+ }
43
+
44
+ /**
45
+ * List Card Validations
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * // Automatically fetches more pages as needed.
50
+ * for await (const cardValidation of client.cardValidations.list()) {
51
+ * // ...
52
+ * }
53
+ * ```
54
+ */
55
+ list(
56
+ query?: CardValidationListParams,
57
+ options?: Core.RequestOptions,
58
+ ): Core.PagePromise<CardValidationsPage, CardValidation>;
59
+ list(options?: Core.RequestOptions): Core.PagePromise<CardValidationsPage, CardValidation>;
60
+ list(
61
+ query: CardValidationListParams | Core.RequestOptions = {},
62
+ options?: Core.RequestOptions,
63
+ ): Core.PagePromise<CardValidationsPage, CardValidation> {
64
+ if (isRequestOptions(query)) {
65
+ return this.list({}, query);
66
+ }
67
+ return this._client.getAPIList('/card_validations', CardValidationsPage, { query, ...options });
68
+ }
69
+ }
70
+
71
+ export class CardValidationsPage extends Page<CardValidation> {}
72
+
73
+ /**
74
+ * Card Validations are used to validate a card and its cardholder before sending
75
+ * funds to or pulling funds from a card.
76
+ */
77
+ export interface CardValidation {
78
+ /**
79
+ * The Card Validation's identifier.
80
+ */
81
+ id: string;
82
+
83
+ /**
84
+ * If the validation is accepted by the recipient bank, this will contain
85
+ * supplemental details.
86
+ */
87
+ acceptance: CardValidation.Acceptance | null;
88
+
89
+ /**
90
+ * The identifier of the Account from which to send the validation.
91
+ */
92
+ account_id: string;
93
+
94
+ /**
95
+ * The cardholder's first name.
96
+ */
97
+ cardholder_first_name: string | null;
98
+
99
+ /**
100
+ * The cardholder's last name.
101
+ */
102
+ cardholder_last_name: string | null;
103
+
104
+ /**
105
+ * The cardholder's middle name.
106
+ */
107
+ cardholder_middle_name: string | null;
108
+
109
+ /**
110
+ * The postal code of the cardholder's address.
111
+ */
112
+ cardholder_postal_code: string | null;
113
+
114
+ /**
115
+ * The cardholder's street address.
116
+ */
117
+ cardholder_street_address: string | null;
118
+
119
+ /**
120
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
121
+ * the validation was created.
122
+ */
123
+ created_at: string;
124
+
125
+ /**
126
+ * What object created the validation, either via the API or the dashboard.
127
+ */
128
+ created_by: CardValidation.CreatedBy | null;
129
+
130
+ /**
131
+ * If the validation is rejected by the card network or the destination financial
132
+ * institution, this will contain supplemental details.
133
+ */
134
+ decline: CardValidation.Decline | null;
135
+
136
+ /**
137
+ * The idempotency key you chose for this object. This value is unique across
138
+ * Increase and is used to ensure that a request is only processed once. Learn more
139
+ * about [idempotency](https://increase.com/documentation/idempotency-keys).
140
+ */
141
+ idempotency_key: string | null;
142
+
143
+ /**
144
+ * A four-digit code (MCC) identifying the type of business or service provided by
145
+ * the merchant.
146
+ */
147
+ merchant_category_code: string;
148
+
149
+ /**
150
+ * The city where the merchant (typically your business) is located.
151
+ */
152
+ merchant_city_name: string;
153
+
154
+ /**
155
+ * The merchant name that will appear in the cardholder’s statement descriptor.
156
+ * Typically your business name.
157
+ */
158
+ merchant_name: string;
159
+
160
+ /**
161
+ * The postal code for the merchant’s (typically your business’s) location.
162
+ */
163
+ merchant_postal_code: string;
164
+
165
+ /**
166
+ * The U.S. state where the merchant (typically your business) is located.
167
+ */
168
+ merchant_state: string;
169
+
170
+ /**
171
+ * The lifecycle status of the validation.
172
+ *
173
+ * - `requires_attention` - The validation requires attention from an Increase
174
+ * operator.
175
+ * - `pending_submission` - The validation is queued to be submitted to the card
176
+ * network.
177
+ * - `submitted` - The validation has been submitted and is pending a response from
178
+ * the card network.
179
+ * - `complete` - The validation has been sent successfully and is complete.
180
+ * - `declined` - The validation was declined by the network or the recipient's
181
+ * bank.
182
+ */
183
+ status: 'requires_attention' | 'pending_submission' | 'submitted' | 'complete' | 'declined';
184
+
185
+ /**
186
+ * After the validation is submitted to the card network, this will contain
187
+ * supplemental details.
188
+ */
189
+ submission: CardValidation.Submission | null;
190
+
191
+ /**
192
+ * A constant representing the object's type. For this resource it will always be
193
+ * `card_validation`.
194
+ */
195
+ type: 'card_validation';
196
+ }
197
+
198
+ export namespace CardValidation {
199
+ /**
200
+ * If the validation is accepted by the recipient bank, this will contain
201
+ * supplemental details.
202
+ */
203
+ export interface Acceptance {
204
+ /**
205
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
206
+ * the validation was accepted by the issuing bank.
207
+ */
208
+ accepted_at: string;
209
+
210
+ /**
211
+ * The authorization identification response from the issuing bank.
212
+ */
213
+ authorization_identification_response: string;
214
+
215
+ /**
216
+ * The result of the Card Verification Value 2 match.
217
+ *
218
+ * - `match` - The Card Verification Value 2 (CVV2) matches the expected value.
219
+ * - `no_match` - The Card Verification Value 2 (CVV2) does not match the expected
220
+ * value.
221
+ */
222
+ card_verification_value2_result: 'match' | 'no_match' | null;
223
+
224
+ /**
225
+ * The result of the cardholder first name match.
226
+ *
227
+ * - `match` - The cardholder name component matches the expected value.
228
+ * - `no_match` - The cardholder name component does not match the expected value.
229
+ * - `partial_match` - The cardholder name component partially matches the expected
230
+ * value.
231
+ */
232
+ cardholder_first_name_result: 'match' | 'no_match' | 'partial_match' | null;
233
+
234
+ /**
235
+ * The result of the cardholder full name match.
236
+ *
237
+ * - `match` - The cardholder name component matches the expected value.
238
+ * - `no_match` - The cardholder name component does not match the expected value.
239
+ * - `partial_match` - The cardholder name component partially matches the expected
240
+ * value.
241
+ */
242
+ cardholder_full_name_result: 'match' | 'no_match' | 'partial_match' | null;
243
+
244
+ /**
245
+ * The result of the cardholder last name match.
246
+ *
247
+ * - `match` - The cardholder name component matches the expected value.
248
+ * - `no_match` - The cardholder name component does not match the expected value.
249
+ * - `partial_match` - The cardholder name component partially matches the expected
250
+ * value.
251
+ */
252
+ cardholder_last_name_result: 'match' | 'no_match' | 'partial_match' | null;
253
+
254
+ /**
255
+ * The result of the cardholder middle name match.
256
+ *
257
+ * - `match` - The cardholder name component matches the expected value.
258
+ * - `no_match` - The cardholder name component does not match the expected value.
259
+ * - `partial_match` - The cardholder name component partially matches the expected
260
+ * value.
261
+ */
262
+ cardholder_middle_name_result: 'match' | 'no_match' | 'partial_match' | null;
263
+
264
+ /**
265
+ * The result of the cardholder postal code match.
266
+ *
267
+ * - `match` - The cardholder address component matches the expected value.
268
+ * - `no_match` - The cardholder address component does not match the expected
269
+ * value.
270
+ */
271
+ cardholder_postal_code_result: 'match' | 'no_match' | null;
272
+
273
+ /**
274
+ * The result of the cardholder street address match.
275
+ *
276
+ * - `match` - The cardholder address component matches the expected value.
277
+ * - `no_match` - The cardholder address component does not match the expected
278
+ * value.
279
+ */
280
+ cardholder_street_address_result: 'match' | 'no_match' | null;
281
+
282
+ /**
283
+ * A unique identifier for the transaction on the card network.
284
+ */
285
+ network_transaction_identifier: string | null;
286
+ }
287
+
288
+ /**
289
+ * What object created the validation, either via the API or the dashboard.
290
+ */
291
+ export interface CreatedBy {
292
+ /**
293
+ * If present, details about the API key that created the transfer.
294
+ */
295
+ api_key: CreatedBy.APIKey | null;
296
+
297
+ /**
298
+ * The type of object that created this transfer.
299
+ *
300
+ * - `api_key` - An API key. Details will be under the `api_key` object.
301
+ * - `oauth_application` - An OAuth application you connected to Increase. Details
302
+ * will be under the `oauth_application` object.
303
+ * - `user` - A User in the Increase dashboard. Details will be under the `user`
304
+ * object.
305
+ */
306
+ category: 'api_key' | 'oauth_application' | 'user';
307
+
308
+ /**
309
+ * If present, details about the OAuth Application that created the transfer.
310
+ */
311
+ oauth_application: CreatedBy.OAuthApplication | null;
312
+
313
+ /**
314
+ * If present, details about the User that created the transfer.
315
+ */
316
+ user: CreatedBy.User | null;
317
+ }
318
+
319
+ export namespace CreatedBy {
320
+ /**
321
+ * If present, details about the API key that created the transfer.
322
+ */
323
+ export interface APIKey {
324
+ /**
325
+ * The description set for the API key when it was created.
326
+ */
327
+ description: string | null;
328
+ }
329
+
330
+ /**
331
+ * If present, details about the OAuth Application that created the transfer.
332
+ */
333
+ export interface OAuthApplication {
334
+ /**
335
+ * The name of the OAuth Application.
336
+ */
337
+ name: string;
338
+ }
339
+
340
+ /**
341
+ * If present, details about the User that created the transfer.
342
+ */
343
+ export interface User {
344
+ /**
345
+ * The email address of the User.
346
+ */
347
+ email: string;
348
+ }
349
+ }
350
+
351
+ /**
352
+ * If the validation is rejected by the card network or the destination financial
353
+ * institution, this will contain supplemental details.
354
+ */
355
+ export interface Decline {
356
+ /**
357
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
358
+ * the validation was declined.
359
+ */
360
+ declined_at: string;
361
+
362
+ /**
363
+ * A unique identifier for the transaction on the card network.
364
+ */
365
+ network_transaction_identifier: string | null;
366
+
367
+ /**
368
+ * The reason why the validation was declined.
369
+ *
370
+ * - `do_not_honor` - The card issuer has declined the transaction without
371
+ * providing a specific reason.
372
+ * - `activity_count_limit_exceeded` - The number of transactions for the card has
373
+ * exceeded the limit set by the issuer.
374
+ * - `refer_to_card_issuer` - The card issuer requires the cardholder to contact
375
+ * them for further information regarding the transaction.
376
+ * - `refer_to_card_issuer_special_condition` - The card issuer requires the
377
+ * cardholder to contact them due to a special condition related to the
378
+ * transaction.
379
+ * - `invalid_merchant` - The merchant is not valid for this transaction.
380
+ * - `pick_up_card` - The card should be retained by the terminal.
381
+ * - `error` - An error occurred during processing of the transaction.
382
+ * - `pick_up_card_special` - The card should be retained by the terminal due to a
383
+ * special condition.
384
+ * - `invalid_transaction` - The transaction is invalid and cannot be processed.
385
+ * - `invalid_amount` - The amount of the transaction is invalid.
386
+ * - `invalid_account_number` - The account number provided is invalid.
387
+ * - `no_such_issuer` - The issuer of the card could not be found.
388
+ * - `re_enter_transaction` - The transaction should be re-entered for processing.
389
+ * - `no_credit_account` - There is no credit account associated with the card.
390
+ * - `pick_up_card_lost` - The card should be retained by the terminal because it
391
+ * has been reported lost.
392
+ * - `pick_up_card_stolen` - The card should be retained by the terminal because it
393
+ * has been reported stolen.
394
+ * - `closed_account` - The account associated with the card has been closed.
395
+ * - `insufficient_funds` - There are insufficient funds in the account to complete
396
+ * the transaction.
397
+ * - `no_checking_account` - There is no checking account associated with the card.
398
+ * - `no_savings_account` - There is no savings account associated with the card.
399
+ * - `expired_card` - The card has expired and cannot be used for transactions.
400
+ * - `transaction_not_permitted_to_cardholder` - The transaction is not permitted
401
+ * for this cardholder.
402
+ * - `transaction_not_allowed_at_terminal` - The transaction is not allowed at this
403
+ * terminal.
404
+ * - `suspected_fraud` - The transaction has been flagged as suspected fraud and
405
+ * cannot be processed.
406
+ * - `activity_amount_limit_exceeded` - The amount of activity on the card has
407
+ * exceeded the limit set by the issuer.
408
+ * - `restricted_card` - The card has restrictions that prevent it from being used
409
+ * for this transaction.
410
+ * - `security_violation` - A security violation has occurred, preventing the
411
+ * transaction from being processed.
412
+ * - `transaction_does_not_fulfill_anti_money_laundering_requirement` - The
413
+ * transaction does not meet the anti-money laundering requirements set by the
414
+ * issuer.
415
+ * - `blocked_first_use` - The first use of the card has been blocked by the
416
+ * issuer.
417
+ * - `credit_issuer_unavailable` - The credit issuer is currently unavailable to
418
+ * process the transaction.
419
+ * - `negative_card_verification_value_results` - The card verification value (CVV)
420
+ * results were negative, indicating a potential issue with the card.
421
+ * - `issuer_unavailable` - The issuer of the card is currently unavailable to
422
+ * process the transaction.
423
+ * - `financial_institution_cannot_be_found` - The financial institution associated
424
+ * with the card could not be found.
425
+ * - `transaction_cannot_be_completed` - The transaction cannot be completed due to
426
+ * an unspecified reason.
427
+ * - `duplicate_transaction` - The transaction is a duplicate of a previous
428
+ * transaction and cannot be processed again.
429
+ * - `system_malfunction` - A system malfunction occurred, preventing the
430
+ * transaction from being processed.
431
+ * - `additional_customer_authentication_required` - Additional customer
432
+ * authentication is required to complete the transaction.
433
+ * - `surcharge_amount_not_permitted` - The surcharge amount applied to the
434
+ * transaction is not permitted by the issuer.
435
+ * - `decline_for_cvv2_failure` - The transaction was declined due to a failure in
436
+ * verifying the CVV2 code.
437
+ * - `stop_payment_order` - A stop payment order has been placed on this
438
+ * transaction.
439
+ * - `revocation_of_authorization_order` - An order has been placed to revoke
440
+ * authorization for this transaction.
441
+ * - `revocation_of_all_authorizations_order` - An order has been placed to revoke
442
+ * all authorizations for this cardholder.
443
+ */
444
+ reason:
445
+ | 'do_not_honor'
446
+ | 'activity_count_limit_exceeded'
447
+ | 'refer_to_card_issuer'
448
+ | 'refer_to_card_issuer_special_condition'
449
+ | 'invalid_merchant'
450
+ | 'pick_up_card'
451
+ | 'error'
452
+ | 'pick_up_card_special'
453
+ | 'invalid_transaction'
454
+ | 'invalid_amount'
455
+ | 'invalid_account_number'
456
+ | 'no_such_issuer'
457
+ | 're_enter_transaction'
458
+ | 'no_credit_account'
459
+ | 'pick_up_card_lost'
460
+ | 'pick_up_card_stolen'
461
+ | 'closed_account'
462
+ | 'insufficient_funds'
463
+ | 'no_checking_account'
464
+ | 'no_savings_account'
465
+ | 'expired_card'
466
+ | 'transaction_not_permitted_to_cardholder'
467
+ | 'transaction_not_allowed_at_terminal'
468
+ | 'suspected_fraud'
469
+ | 'activity_amount_limit_exceeded'
470
+ | 'restricted_card'
471
+ | 'security_violation'
472
+ | 'transaction_does_not_fulfill_anti_money_laundering_requirement'
473
+ | 'blocked_first_use'
474
+ | 'credit_issuer_unavailable'
475
+ | 'negative_card_verification_value_results'
476
+ | 'issuer_unavailable'
477
+ | 'financial_institution_cannot_be_found'
478
+ | 'transaction_cannot_be_completed'
479
+ | 'duplicate_transaction'
480
+ | 'system_malfunction'
481
+ | 'additional_customer_authentication_required'
482
+ | 'surcharge_amount_not_permitted'
483
+ | 'decline_for_cvv2_failure'
484
+ | 'stop_payment_order'
485
+ | 'revocation_of_authorization_order'
486
+ | 'revocation_of_all_authorizations_order';
487
+ }
488
+
489
+ /**
490
+ * After the validation is submitted to the card network, this will contain
491
+ * supplemental details.
492
+ */
493
+ export interface Submission {
494
+ /**
495
+ * A 12-digit retrieval reference number that identifies the validation. Usually a
496
+ * combination of a timestamp and the trace number.
497
+ */
498
+ retrieval_reference_number: string;
499
+
500
+ /**
501
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
502
+ * the validation was submitted to the card network.
503
+ */
504
+ submitted_at: string;
505
+
506
+ /**
507
+ * A 6-digit trace number that identifies the validation within a short time
508
+ * window.
509
+ */
510
+ trace_number: string;
511
+ }
512
+ }
513
+
514
+ export interface CardValidationCreateParams {
515
+ /**
516
+ * The identifier of the Account from which to send the validation.
517
+ */
518
+ account_id: string;
519
+
520
+ /**
521
+ * The Increase identifier for the Card Token that represents the card number
522
+ * you're validating.
523
+ */
524
+ card_token_id: string;
525
+
526
+ /**
527
+ * A four-digit code (MCC) identifying the type of business or service provided by
528
+ * the merchant.
529
+ */
530
+ merchant_category_code: string;
531
+
532
+ /**
533
+ * The city where the merchant (typically your business) is located.
534
+ */
535
+ merchant_city_name: string;
536
+
537
+ /**
538
+ * The merchant name that will appear in the cardholder’s statement descriptor.
539
+ * Typically your business name.
540
+ */
541
+ merchant_name: string;
542
+
543
+ /**
544
+ * The postal code for the merchant’s (typically your business’s) location.
545
+ */
546
+ merchant_postal_code: string;
547
+
548
+ /**
549
+ * The U.S. state where the merchant (typically your business) is located.
550
+ */
551
+ merchant_state: string;
552
+
553
+ /**
554
+ * The cardholder's first name.
555
+ */
556
+ cardholder_first_name?: string;
557
+
558
+ /**
559
+ * The cardholder's last name.
560
+ */
561
+ cardholder_last_name?: string;
562
+
563
+ /**
564
+ * The cardholder's middle name.
565
+ */
566
+ cardholder_middle_name?: string;
567
+
568
+ /**
569
+ * The postal code of the cardholder's address.
570
+ */
571
+ cardholder_postal_code?: string;
572
+
573
+ /**
574
+ * The cardholder's street address.
575
+ */
576
+ cardholder_street_address?: string;
577
+ }
578
+
579
+ export interface CardValidationListParams extends PageParams {
580
+ /**
581
+ * Filter Card Validations to ones belonging to the specified Account.
582
+ */
583
+ account_id?: string;
584
+
585
+ created_at?: CardValidationListParams.CreatedAt;
586
+
587
+ /**
588
+ * Filter records to the one with the specified `idempotency_key` you chose for
589
+ * that object. This value is unique across Increase and is used to ensure that a
590
+ * request is only processed once. Learn more about
591
+ * [idempotency](https://increase.com/documentation/idempotency-keys).
592
+ */
593
+ idempotency_key?: string;
594
+
595
+ status?: CardValidationListParams.Status;
596
+ }
597
+
598
+ export namespace CardValidationListParams {
599
+ export interface CreatedAt {
600
+ /**
601
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
602
+ * timestamp.
603
+ */
604
+ after?: string;
605
+
606
+ /**
607
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
608
+ * timestamp.
609
+ */
610
+ before?: string;
611
+
612
+ /**
613
+ * Return results on or after this
614
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
615
+ */
616
+ on_or_after?: string;
617
+
618
+ /**
619
+ * Return results on or before this
620
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
621
+ */
622
+ on_or_before?: string;
623
+ }
624
+
625
+ export interface Status {
626
+ /**
627
+ * Filter Card Validations by status. For GET requests, this should be encoded as a
628
+ * comma-delimited string, such as `?in=one,two,three`.
629
+ */
630
+ in?: Array<'requires_attention' | 'pending_submission' | 'submitted' | 'complete' | 'declined'>;
631
+ }
632
+ }
633
+
634
+ CardValidations.CardValidationsPage = CardValidationsPage;
635
+
636
+ export declare namespace CardValidations {
637
+ export {
638
+ type CardValidation as CardValidation,
639
+ CardValidationsPage as CardValidationsPage,
640
+ type CardValidationCreateParams as CardValidationCreateParams,
641
+ type CardValidationListParams as CardValidationListParams,
642
+ };
643
+ }
@@ -126,9 +126,10 @@ export interface ExternalAccount {
126
126
  *
127
127
  * - `checking` - A checking account.
128
128
  * - `savings` - A savings account.
129
+ * - `general_ledger` - A general ledger account.
129
130
  * - `other` - A different type of account.
130
131
  */
131
- funding: 'checking' | 'savings' | 'other';
132
+ funding: 'checking' | 'savings' | 'general_ledger' | 'other';
132
133
 
133
134
  /**
134
135
  * The idempotency key you chose for this object. This value is unique across
@@ -189,9 +190,10 @@ export interface ExternalAccountCreateParams {
189
190
  *
190
191
  * - `checking` - A checking account.
191
192
  * - `savings` - A savings account.
193
+ * - `general_ledger` - A general ledger account.
192
194
  * - `other` - A different type of account.
193
195
  */
194
- funding?: 'checking' | 'savings' | 'other';
196
+ funding?: 'checking' | 'savings' | 'general_ledger' | 'other';
195
197
  }
196
198
 
197
199
  export interface ExternalAccountUpdateParams {
@@ -213,9 +215,10 @@ export interface ExternalAccountUpdateParams {
213
215
  *
214
216
  * - `checking` - A checking account.
215
217
  * - `savings` - A savings account.
218
+ * - `general_ledger` - A general ledger account.
216
219
  * - `other` - A different type of account.
217
220
  */
218
- funding?: 'checking' | 'savings' | 'other';
221
+ funding?: 'checking' | 'savings' | 'general_ledger' | 'other';
219
222
 
220
223
  /**
221
224
  * The status of the External Account.
@@ -87,6 +87,27 @@ export {
87
87
  type CardPurchaseSupplement,
88
88
  type CardPurchaseSupplementListParams,
89
89
  } from './card-purchase-supplements';
90
+ export {
91
+ CardPushTransfersPage,
92
+ CardPushTransfers,
93
+ type CardPushTransfer,
94
+ type CardPushTransferCreateParams,
95
+ type CardPushTransferListParams,
96
+ } from './card-push-transfers';
97
+ export {
98
+ CardTokensPage,
99
+ CardTokens,
100
+ type CardToken,
101
+ type CardTokenCapabilities,
102
+ type CardTokenListParams,
103
+ } from './card-tokens';
104
+ export {
105
+ CardValidationsPage,
106
+ CardValidations,
107
+ type CardValidation,
108
+ type CardValidationCreateParams,
109
+ type CardValidationListParams,
110
+ } from './card-validations';
90
111
  export {
91
112
  CardsPage,
92
113
  Cards,