increase 0.378.0 → 0.380.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 (88) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/package.json +1 -1
  3. package/resources/card-payments.d.mts +547 -4
  4. package/resources/card-payments.d.mts.map +1 -1
  5. package/resources/card-payments.d.ts +547 -4
  6. package/resources/card-payments.d.ts.map +1 -1
  7. package/resources/check-transfers.d.mts +14 -3
  8. package/resources/check-transfers.d.mts.map +1 -1
  9. package/resources/check-transfers.d.ts +14 -3
  10. package/resources/check-transfers.d.ts.map +1 -1
  11. package/resources/declined-transactions.d.mts +3 -1
  12. package/resources/declined-transactions.d.mts.map +1 -1
  13. package/resources/declined-transactions.d.ts +3 -1
  14. package/resources/declined-transactions.d.ts.map +1 -1
  15. package/resources/entities.d.mts +20 -3
  16. package/resources/entities.d.mts.map +1 -1
  17. package/resources/entities.d.ts +20 -3
  18. package/resources/entities.d.ts.map +1 -1
  19. package/resources/event-subscriptions.d.mts +6 -2
  20. package/resources/event-subscriptions.d.mts.map +1 -1
  21. package/resources/event-subscriptions.d.ts +6 -2
  22. package/resources/event-subscriptions.d.ts.map +1 -1
  23. package/resources/events.d.mts +4 -2
  24. package/resources/events.d.mts.map +1 -1
  25. package/resources/events.d.ts +4 -2
  26. package/resources/events.d.ts.map +1 -1
  27. package/resources/pending-transactions.d.mts +7 -4
  28. package/resources/pending-transactions.d.mts.map +1 -1
  29. package/resources/pending-transactions.d.ts +7 -4
  30. package/resources/pending-transactions.d.ts.map +1 -1
  31. package/resources/pending-transactions.js +4 -3
  32. package/resources/pending-transactions.js.map +1 -1
  33. package/resources/pending-transactions.mjs +4 -3
  34. package/resources/pending-transactions.mjs.map +1 -1
  35. package/resources/real-time-decisions.d.mts +786 -185
  36. package/resources/real-time-decisions.d.mts.map +1 -1
  37. package/resources/real-time-decisions.d.ts +786 -185
  38. package/resources/real-time-decisions.d.ts.map +1 -1
  39. package/resources/simulations/card-authorizations.d.mts +3 -1
  40. package/resources/simulations/card-authorizations.d.mts.map +1 -1
  41. package/resources/simulations/card-authorizations.d.ts +3 -1
  42. package/resources/simulations/card-authorizations.d.ts.map +1 -1
  43. package/resources/simulations/card-balance-inquiries.d.mts +160 -0
  44. package/resources/simulations/card-balance-inquiries.d.mts.map +1 -0
  45. package/resources/simulations/card-balance-inquiries.d.ts +160 -0
  46. package/resources/simulations/card-balance-inquiries.d.ts.map +1 -0
  47. package/resources/simulations/card-balance-inquiries.js +21 -0
  48. package/resources/simulations/card-balance-inquiries.js.map +1 -0
  49. package/resources/simulations/card-balance-inquiries.mjs +17 -0
  50. package/resources/simulations/card-balance-inquiries.mjs.map +1 -0
  51. package/resources/simulations/index.d.mts +1 -0
  52. package/resources/simulations/index.d.mts.map +1 -1
  53. package/resources/simulations/index.d.ts +1 -0
  54. package/resources/simulations/index.d.ts.map +1 -1
  55. package/resources/simulations/index.js +3 -1
  56. package/resources/simulations/index.js.map +1 -1
  57. package/resources/simulations/index.mjs +1 -0
  58. package/resources/simulations/index.mjs.map +1 -1
  59. package/resources/simulations/simulations.d.mts +4 -0
  60. package/resources/simulations/simulations.d.mts.map +1 -1
  61. package/resources/simulations/simulations.d.ts +4 -0
  62. package/resources/simulations/simulations.d.ts.map +1 -1
  63. package/resources/simulations/simulations.js +4 -0
  64. package/resources/simulations/simulations.js.map +1 -1
  65. package/resources/simulations/simulations.mjs +4 -0
  66. package/resources/simulations/simulations.mjs.map +1 -1
  67. package/resources/transactions.d.mts +3 -1
  68. package/resources/transactions.d.mts.map +1 -1
  69. package/resources/transactions.d.ts +3 -1
  70. package/resources/transactions.d.ts.map +1 -1
  71. package/src/resources/card-payments.ts +652 -0
  72. package/src/resources/check-transfers.ts +16 -3
  73. package/src/resources/declined-transactions.ts +3 -0
  74. package/src/resources/entities.ts +23 -3
  75. package/src/resources/event-subscriptions.ts +6 -0
  76. package/src/resources/events.ts +4 -0
  77. package/src/resources/pending-transactions.ts +7 -3
  78. package/src/resources/real-time-decisions.ts +893 -177
  79. package/src/resources/simulations/card-authorizations.ts +4 -1
  80. package/src/resources/simulations/card-balance-inquiries.ts +212 -0
  81. package/src/resources/simulations/index.ts +1 -0
  82. package/src/resources/simulations/simulations.ts +10 -0
  83. package/src/resources/transactions.ts +3 -0
  84. package/src/version.ts +1 -1
  85. package/version.d.mts +1 -1
  86. package/version.d.ts +1 -1
  87. package/version.js +1 -1
  88. package/version.mjs +1 -1
@@ -560,6 +560,12 @@ export namespace CheckTransfer {
560
560
  */
561
561
  name: string | null;
562
562
 
563
+ /**
564
+ * The shipper's phone number to be used in case of delivery issues. Only used for
565
+ * FedEx overnight shipping.
566
+ */
567
+ phone: string | null;
568
+
563
569
  /**
564
570
  * The postal code of the check's destination.
565
571
  */
@@ -909,9 +915,9 @@ export namespace CheckTransferCreateParams {
909
915
  name?: string;
910
916
 
911
917
  /**
912
- * The phone number to associate with the check's destination address. The number
913
- * is only used when `shipping_method` is `fedex_overnight` and will be supplied to
914
- * FedEx to be used in case of delivery issues.
918
+ * The phone number to associate with the check's destination address. The phone
919
+ * number is only used when `shipping_method` is `fedex_overnight` and will be
920
+ * supplied to FedEx to be used in case of delivery issues.
915
921
  */
916
922
  phone?: string;
917
923
  }
@@ -958,6 +964,13 @@ export namespace CheckTransferCreateParams {
958
964
  * The second line of the return address.
959
965
  */
960
966
  line2?: string;
967
+
968
+ /**
969
+ * The phone number to associate with the shipper. The phone number is only used
970
+ * when `shipping_method` is `fedex_overnight` and will be supplied to FedEx to be
971
+ * used in case of delivery issues.
972
+ */
973
+ phone?: string;
961
974
  }
962
975
  }
963
976
 
@@ -495,6 +495,8 @@ export namespace DeclinedTransaction {
495
495
  * voucher authorization, where funds are credited to the cardholder.
496
496
  * - `cash_disbursement` - Cash disbursement transactions are used to withdraw cash
497
497
  * from an ATM or a point of sale.
498
+ * - `balance_inquiry` - A balance inquiry transaction is used to check the balance
499
+ * of an account associated with a card.
498
500
  * - `unknown` - The processing category is unknown.
499
501
  */
500
502
  processing_category:
@@ -506,6 +508,7 @@ export namespace DeclinedTransaction {
506
508
  | 'quasi_cash'
507
509
  | 'refund'
508
510
  | 'cash_disbursement'
511
+ | 'balance_inquiry'
509
512
  | 'unknown';
510
513
 
511
514
  /**
@@ -363,6 +363,11 @@ export namespace Entity {
363
363
  */
364
364
  beneficial_owners: Array<Corporation.BeneficialOwner>;
365
365
 
366
+ /**
367
+ * An email address for the business.
368
+ */
369
+ email: string | null;
370
+
366
371
  /**
367
372
  * The two-letter United States Postal Service (USPS) abbreviation for the
368
373
  * corporation's state of incorporation.
@@ -861,8 +866,9 @@ export namespace Entity {
861
866
  * - `alloy` - Alloy. See https://alloy.com for more information.
862
867
  * - `middesk` - Middesk. See https://middesk.com for more information.
863
868
  * - `oscilar` - Oscilar. See https://oscilar.com for more information.
869
+ * - `persona` - Persona. See https://withpersona.com for more information.
864
870
  */
865
- vendor: 'alloy' | 'middesk' | 'oscilar';
871
+ vendor: 'alloy' | 'middesk' | 'oscilar' | 'persona';
866
872
  }
867
873
 
868
874
  /**
@@ -1260,6 +1266,12 @@ export namespace EntityCreateParams {
1260
1266
  | 'public_entity'
1261
1267
  | 'other';
1262
1268
 
1269
+ /**
1270
+ * An email address for the business. Not every program requires an email for
1271
+ * submitted Entities.
1272
+ */
1273
+ email?: string;
1274
+
1263
1275
  /**
1264
1276
  * The two-letter United States Postal Service (USPS) abbreviation for the
1265
1277
  * corporation's state of incorporation.
@@ -2080,8 +2092,9 @@ export namespace EntityCreateParams {
2080
2092
  * - `alloy` - Alloy. See https://alloy.com for more information.
2081
2093
  * - `middesk` - Middesk. See https://middesk.com for more information.
2082
2094
  * - `oscilar` - Oscilar. See https://oscilar.com for more information.
2095
+ * - `persona` - Persona. See https://withpersona.com for more information.
2083
2096
  */
2084
- vendor: 'alloy' | 'middesk' | 'oscilar';
2097
+ vendor: 'alloy' | 'middesk' | 'oscilar' | 'persona';
2085
2098
  }
2086
2099
 
2087
2100
  /**
@@ -2647,6 +2660,12 @@ export namespace EntityUpdateParams {
2647
2660
  */
2648
2661
  address?: Corporation.Address;
2649
2662
 
2663
+ /**
2664
+ * An email address for the business. Not every program requires an email for
2665
+ * submitted Entities.
2666
+ */
2667
+ email?: string;
2668
+
2650
2669
  /**
2651
2670
  * The North American Industry Classification System (NAICS) code for the
2652
2671
  * corporation's primary line of business. This is a number, like `5132` for
@@ -2835,8 +2854,9 @@ export namespace EntityUpdateParams {
2835
2854
  * - `alloy` - Alloy. See https://alloy.com for more information.
2836
2855
  * - `middesk` - Middesk. See https://middesk.com for more information.
2837
2856
  * - `oscilar` - Oscilar. See https://oscilar.com for more information.
2857
+ * - `persona` - Persona. See https://withpersona.com for more information.
2838
2858
  */
2839
- vendor: 'alloy' | 'middesk' | 'oscilar';
2859
+ vendor: 'alloy' | 'middesk' | 'oscilar' | 'persona';
2840
2860
  }
2841
2861
 
2842
2862
  /**
@@ -238,6 +238,8 @@ export interface EventSubscription {
238
238
  * Authorization Request is updated.
239
239
  * - `real_time_decision.card_authorization_requested` - Occurs whenever a
240
240
  * Real-Time Decision is created in response to a card authorization.
241
+ * - `real_time_decision.card_balance_inquiry_requested` - Occurs whenever a
242
+ * Real-Time Decision is created in response to a card balance inquiry.
241
243
  * - `real_time_decision.digital_wallet_token_requested` - Occurs whenever a
242
244
  * Real-Time Decision is created in response to a digital wallet provisioning
243
245
  * attempt.
@@ -352,6 +354,7 @@ export interface EventSubscription {
352
354
  | 'proof_of_authorization_request.created'
353
355
  | 'proof_of_authorization_request.updated'
354
356
  | 'real_time_decision.card_authorization_requested'
357
+ | 'real_time_decision.card_balance_inquiry_requested'
355
358
  | 'real_time_decision.digital_wallet_token_requested'
356
359
  | 'real_time_decision.digital_wallet_authentication_requested'
357
360
  | 'real_time_decision.card_authentication_requested'
@@ -535,6 +538,8 @@ export interface EventSubscriptionCreateParams {
535
538
  * Authorization Request is updated.
536
539
  * - `real_time_decision.card_authorization_requested` - Occurs whenever a
537
540
  * Real-Time Decision is created in response to a card authorization.
541
+ * - `real_time_decision.card_balance_inquiry_requested` - Occurs whenever a
542
+ * Real-Time Decision is created in response to a card balance inquiry.
538
543
  * - `real_time_decision.digital_wallet_token_requested` - Occurs whenever a
539
544
  * Real-Time Decision is created in response to a digital wallet provisioning
540
545
  * attempt.
@@ -649,6 +654,7 @@ export interface EventSubscriptionCreateParams {
649
654
  | 'proof_of_authorization_request.created'
650
655
  | 'proof_of_authorization_request.updated'
651
656
  | 'real_time_decision.card_authorization_requested'
657
+ | 'real_time_decision.card_balance_inquiry_requested'
652
658
  | 'real_time_decision.digital_wallet_token_requested'
653
659
  | 'real_time_decision.digital_wallet_authentication_requested'
654
660
  | 'real_time_decision.card_authentication_requested'
@@ -193,6 +193,8 @@ export interface Event {
193
193
  * Authorization Request is updated.
194
194
  * - `real_time_decision.card_authorization_requested` - Occurs whenever a
195
195
  * Real-Time Decision is created in response to a card authorization.
196
+ * - `real_time_decision.card_balance_inquiry_requested` - Occurs whenever a
197
+ * Real-Time Decision is created in response to a card balance inquiry.
196
198
  * - `real_time_decision.digital_wallet_token_requested` - Occurs whenever a
197
199
  * Real-Time Decision is created in response to a digital wallet provisioning
198
200
  * attempt.
@@ -307,6 +309,7 @@ export interface Event {
307
309
  | 'proof_of_authorization_request.created'
308
310
  | 'proof_of_authorization_request.updated'
309
311
  | 'real_time_decision.card_authorization_requested'
312
+ | 'real_time_decision.card_balance_inquiry_requested'
310
313
  | 'real_time_decision.digital_wallet_token_requested'
311
314
  | 'real_time_decision.digital_wallet_authentication_requested'
312
315
  | 'real_time_decision.card_authentication_requested'
@@ -439,6 +442,7 @@ export namespace EventListParams {
439
442
  | 'proof_of_authorization_request.created'
440
443
  | 'proof_of_authorization_request.updated'
441
444
  | 'real_time_decision.card_authorization_requested'
445
+ | 'real_time_decision.card_balance_inquiry_requested'
442
446
  | 'real_time_decision.digital_wallet_token_requested'
443
447
  | 'real_time_decision.digital_wallet_authentication_requested'
444
448
  | 'real_time_decision.card_authentication_requested'
@@ -9,9 +9,10 @@ import { path } from '../internal/utils/path';
9
9
  export class PendingTransactions extends APIResource {
10
10
  /**
11
11
  * Creates a pending transaction on an account. This can be useful to hold funds
12
- * for an external payment or known future transaction outside of Increase. The
13
- * resulting Pending Transaction will have a `category` of `user_initiated_hold`
14
- * and can be released via the API to unlock the held funds.
12
+ * for an external payment or known future transaction outside of Increase (only
13
+ * negative amounts are supported). The resulting Pending Transaction will have a
14
+ * `category` of `user_initiated_hold` and can be released via the API to unlock
15
+ * the held funds.
15
16
  *
16
17
  * @example
17
18
  * ```ts
@@ -547,6 +548,8 @@ export namespace PendingTransaction {
547
548
  * voucher authorization, where funds are credited to the cardholder.
548
549
  * - `cash_disbursement` - Cash disbursement transactions are used to withdraw cash
549
550
  * from an ATM or a point of sale.
551
+ * - `balance_inquiry` - A balance inquiry transaction is used to check the balance
552
+ * of an account associated with a card.
550
553
  * - `unknown` - The processing category is unknown.
551
554
  */
552
555
  processing_category:
@@ -558,6 +561,7 @@ export namespace PendingTransaction {
558
561
  | 'quasi_cash'
559
562
  | 'refund'
560
563
  | 'cash_disbursement'
564
+ | 'balance_inquiry'
561
565
  | 'unknown';
562
566
 
563
567
  /**