increase 0.25.0 → 0.27.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 (111) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/core.d.ts +5 -0
  3. package/core.d.ts.map +1 -1
  4. package/core.js +10 -1
  5. package/core.js.map +1 -1
  6. package/core.mjs +8 -0
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +2 -0
  9. package/index.d.ts +2 -0
  10. package/index.d.ts.map +1 -1
  11. package/index.js +1 -0
  12. package/index.js.map +1 -1
  13. package/index.mjs +1 -0
  14. package/index.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resources/account-numbers.d.ts +14 -0
  17. package/resources/account-numbers.d.ts.map +1 -1
  18. package/resources/account-numbers.js.map +1 -1
  19. package/resources/account-numbers.mjs.map +1 -1
  20. package/resources/declined-transactions.d.ts +2 -70
  21. package/resources/declined-transactions.d.ts.map +1 -1
  22. package/resources/declined-transactions.js.map +1 -1
  23. package/resources/declined-transactions.mjs.map +1 -1
  24. package/resources/event-subscriptions.d.ts +10 -2
  25. package/resources/event-subscriptions.d.ts.map +1 -1
  26. package/resources/event-subscriptions.js.map +1 -1
  27. package/resources/event-subscriptions.mjs.map +1 -1
  28. package/resources/events.d.ts +6 -2
  29. package/resources/events.d.ts.map +1 -1
  30. package/resources/events.js.map +1 -1
  31. package/resources/events.mjs.map +1 -1
  32. package/resources/inbound-ach-transfers.d.ts +4 -0
  33. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  34. package/resources/inbound-ach-transfers.js.map +1 -1
  35. package/resources/inbound-ach-transfers.mjs.map +1 -1
  36. package/resources/inbound-wire-transfers.d.ts +67 -2
  37. package/resources/inbound-wire-transfers.d.ts.map +1 -1
  38. package/resources/inbound-wire-transfers.js +40 -1
  39. package/resources/inbound-wire-transfers.js.map +1 -1
  40. package/resources/inbound-wire-transfers.mjs +15 -0
  41. package/resources/inbound-wire-transfers.mjs.map +1 -1
  42. package/resources/index.d.ts +1 -1
  43. package/resources/index.d.ts.map +1 -1
  44. package/resources/index.js +2 -1
  45. package/resources/index.js.map +1 -1
  46. package/resources/index.mjs +1 -1
  47. package/resources/index.mjs.map +1 -1
  48. package/resources/oauth-tokens.d.ts +2 -1
  49. package/resources/oauth-tokens.d.ts.map +1 -1
  50. package/resources/oauth-tokens.js.map +1 -1
  51. package/resources/oauth-tokens.mjs.map +1 -1
  52. package/resources/real-time-decisions.d.ts +3 -1
  53. package/resources/real-time-decisions.d.ts.map +1 -1
  54. package/resources/real-time-decisions.js.map +1 -1
  55. package/resources/real-time-decisions.mjs.map +1 -1
  56. package/resources/simulations/ach-transfers.d.ts +2 -3926
  57. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  58. package/resources/simulations/ach-transfers.js.map +1 -1
  59. package/resources/simulations/ach-transfers.mjs.map +1 -1
  60. package/resources/simulations/cards.d.ts +2 -70
  61. package/resources/simulations/cards.d.ts.map +1 -1
  62. package/resources/simulations/cards.js.map +1 -1
  63. package/resources/simulations/cards.mjs.map +1 -1
  64. package/resources/simulations/index.d.ts +2 -2
  65. package/resources/simulations/index.d.ts.map +1 -1
  66. package/resources/simulations/index.js.map +1 -1
  67. package/resources/simulations/index.mjs +1 -1
  68. package/resources/simulations/index.mjs.map +1 -1
  69. package/resources/simulations/interest-payments.d.ts +9 -16
  70. package/resources/simulations/interest-payments.d.ts.map +1 -1
  71. package/resources/simulations/interest-payments.js.map +1 -1
  72. package/resources/simulations/interest-payments.mjs.map +1 -1
  73. package/resources/simulations/real-time-payments-transfers.d.ts +11 -86
  74. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  75. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  76. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  77. package/resources/simulations/simulations.d.ts +0 -2
  78. package/resources/simulations/simulations.d.ts.map +1 -1
  79. package/resources/simulations/simulations.js.map +1 -1
  80. package/resources/simulations/simulations.mjs.map +1 -1
  81. package/resources/simulations/wire-transfers.d.ts +2 -2754
  82. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  83. package/resources/simulations/wire-transfers.js.map +1 -1
  84. package/resources/simulations/wire-transfers.mjs.map +1 -1
  85. package/resources/transactions.d.ts +10 -17
  86. package/resources/transactions.d.ts.map +1 -1
  87. package/resources/transactions.js.map +1 -1
  88. package/resources/transactions.mjs.map +1 -1
  89. package/src/core.ts +11 -0
  90. package/src/index.ts +2 -0
  91. package/src/resources/account-numbers.ts +17 -0
  92. package/src/resources/declined-transactions.ts +2 -86
  93. package/src/resources/event-subscriptions.ts +12 -0
  94. package/src/resources/events.ts +8 -0
  95. package/src/resources/inbound-ach-transfers.ts +5 -0
  96. package/src/resources/inbound-wire-transfers.ts +93 -2
  97. package/src/resources/index.ts +6 -1
  98. package/src/resources/oauth-tokens.ts +2 -1
  99. package/src/resources/real-time-decisions.ts +3 -1
  100. package/src/resources/simulations/ach-transfers.ts +2 -4944
  101. package/src/resources/simulations/cards.ts +2 -86
  102. package/src/resources/simulations/index.ts +2 -7
  103. package/src/resources/simulations/interest-payments.ts +9 -17
  104. package/src/resources/simulations/real-time-payments-transfers.ts +11 -103
  105. package/src/resources/simulations/simulations.ts +0 -2
  106. package/src/resources/simulations/wire-transfers.ts +2 -3463
  107. package/src/resources/transactions.ts +10 -17
  108. package/src/version.ts +1 -1
  109. package/version.d.ts +1 -1
  110. package/version.js +1 -1
  111. package/version.mjs +1 -1
@@ -1123,93 +1123,9 @@ export namespace CardAuthorizationSimulation {
1123
1123
  */
1124
1124
  export interface WireDecline {
1125
1125
  /**
1126
- * The declined amount in the minor unit of the destination account currency. For
1127
- * dollars, for example, this is cents.
1128
- */
1129
- amount: number;
1130
-
1131
- /**
1132
- * A free-form address field set by the sender.
1133
- */
1134
- beneficiary_address_line1: string | null;
1135
-
1136
- /**
1137
- * A free-form address field set by the sender.
1138
- */
1139
- beneficiary_address_line2: string | null;
1140
-
1141
- /**
1142
- * A free-form address field set by the sender.
1143
- */
1144
- beneficiary_address_line3: string | null;
1145
-
1146
- /**
1147
- * A name set by the sender.
1148
- */
1149
- beneficiary_name: string | null;
1150
-
1151
- /**
1152
- * A free-form reference string set by the sender, to help identify the transfer.
1153
- */
1154
- beneficiary_reference: string | null;
1155
-
1156
- /**
1157
- * An Increase-constructed description of the declined transaction.
1158
- */
1159
- description: string;
1160
-
1161
- /**
1162
- * A unique identifier available to the originating and receiving banks, commonly
1163
- * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
1164
- * service and is helpful when debugging wires with the originating bank.
1165
- */
1166
- input_message_accountability_data: string | null;
1167
-
1168
- /**
1169
- * The address of the wire originator, set by the sending bank.
1170
- */
1171
- originator_address_line1: string | null;
1172
-
1173
- /**
1174
- * The address of the wire originator, set by the sending bank.
1175
- */
1176
- originator_address_line2: string | null;
1177
-
1178
- /**
1179
- * The address of the wire originator, set by the sending bank.
1180
- */
1181
- originator_address_line3: string | null;
1182
-
1183
- /**
1184
- * The originator of the wire, set by the sending bank.
1185
- */
1186
- originator_name: string | null;
1187
-
1188
- /**
1189
- * The American Banking Association (ABA) routing number of the bank originating
1190
- * the transfer.
1191
- */
1192
- originator_routing_number: string | null;
1193
-
1194
- /**
1195
- * A free-form message set by the wire originator.
1196
- */
1197
- originator_to_beneficiary_information_line1: string | null;
1198
-
1199
- /**
1200
- * A free-form message set by the wire originator.
1201
- */
1202
- originator_to_beneficiary_information_line2: string | null;
1203
-
1204
- /**
1205
- * A free-form message set by the wire originator.
1206
- */
1207
- originator_to_beneficiary_information_line3: string | null;
1208
-
1209
- /**
1210
- * A free-form message set by the wire originator.
1126
+ * The identifier of the Inbound Wire Transfer that was declined.
1211
1127
  */
1212
- originator_to_beneficiary_information_line4: string | null;
1128
+ inbound_wire_transfer_id: string;
1213
1129
 
1214
1130
  /**
1215
1131
  * Why the wire transfer was declined.
@@ -1,11 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- export {
4
- ACHTransferSimulation,
5
- ACHTransferCreateInboundParams,
6
- ACHTransferReturnParams,
7
- ACHTransfers,
8
- } from './ach-transfers';
3
+ export { ACHTransferCreateInboundParams, ACHTransferReturnParams, ACHTransfers } from './ach-transfers';
9
4
  export { AccountStatementCreateParams, AccountStatements } from './account-statements';
10
5
  export { AccountTransfers } from './account-transfers';
11
6
  export { CardAuthorizationSimulation, CardAuthorizeParams, CardSettlementParams, Cards } from './cards';
@@ -39,4 +34,4 @@ export {
39
34
  export { PhysicalCardShipmentAdvanceParams, PhysicalCards } from './physical-cards';
40
35
  export { ProgramCreateParams, Programs } from './programs';
41
36
  export { Simulations } from './simulations';
42
- export { WireTransferSimulation, WireTransferCreateInboundParams, WireTransfers } from './wire-transfers';
37
+ export { WireTransferCreateInboundParams, WireTransfers } from './wire-transfers';
@@ -217,8 +217,10 @@ export namespace InterestPaymentSimulationResult {
217
217
  * be under the `inbound_wire_drawdown_payment` object.
218
218
  * - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
219
219
  * `inbound_wire_reversal` object.
220
- * - `inbound_wire_transfer` - Inbound Wire Transfer: details will be under the
221
- * `inbound_wire_transfer` object.
220
+ * - `inbound_wire_transfer` - Inbound Wire Transfer Intention: details will be
221
+ * under the `inbound_wire_transfer` object.
222
+ * - `inbound_wire_transfer_reversal` - Inbound Wire Transfer Reversal Intention:
223
+ * details will be under the `inbound_wire_transfer_reversal` object.
222
224
  * - `interest_payment` - Interest Payment: details will be under the
223
225
  * `interest_payment` object.
224
226
  * - `internal_source` - Internal Source: details will be under the
@@ -258,6 +260,7 @@ export namespace InterestPaymentSimulationResult {
258
260
  | 'inbound_wire_drawdown_payment'
259
261
  | 'inbound_wire_reversal'
260
262
  | 'inbound_wire_transfer'
263
+ | 'inbound_wire_transfer_reversal'
261
264
  | 'interest_payment'
262
265
  | 'internal_source'
263
266
  | 'real_time_payments_transfer_acknowledgement'
@@ -349,8 +352,8 @@ export namespace InterestPaymentSimulationResult {
349
352
  inbound_wire_reversal: Source.InboundWireReversal | null;
350
353
 
351
354
  /**
352
- * An Inbound Wire Transfer object. This field will be present in the JSON response
353
- * if and only if `category` is equal to `inbound_wire_transfer`.
355
+ * An Inbound Wire Transfer Intention object. This field will be present in the
356
+ * JSON response if and only if `category` is equal to `inbound_wire_transfer`.
354
357
  */
355
358
  inbound_wire_transfer: Source.InboundWireTransfer | null;
356
359
 
@@ -3176,15 +3179,10 @@ export namespace InterestPaymentSimulationResult {
3176
3179
  }
3177
3180
 
3178
3181
  /**
3179
- * An Inbound Wire Transfer object. This field will be present in the JSON response
3180
- * if and only if `category` is equal to `inbound_wire_transfer`.
3182
+ * An Inbound Wire Transfer Intention object. This field will be present in the
3183
+ * JSON response if and only if `category` is equal to `inbound_wire_transfer`.
3181
3184
  */
3182
3185
  export interface InboundWireTransfer {
3183
- /**
3184
- * The inbound wire transfer's identifier.
3185
- */
3186
- id: string;
3187
-
3188
3186
  /**
3189
3187
  * The amount in USD cents.
3190
3188
  */
@@ -3282,12 +3280,6 @@ export namespace InterestPaymentSimulationResult {
3282
3280
  * The ID of the Inbound Wire Transfer object that resulted in this Transaction.
3283
3281
  */
3284
3282
  transfer_id: string;
3285
-
3286
- /**
3287
- * A constant representing the object's type. For this resource it will always be
3288
- * `inbound_wire_transfer`.
3289
- */
3290
- type: 'inbound_wire_transfer';
3291
3283
  }
3292
3284
 
3293
3285
  /**
@@ -1122,93 +1122,9 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1122
1122
  */
1123
1123
  export interface WireDecline {
1124
1124
  /**
1125
- * The declined amount in the minor unit of the destination account currency. For
1126
- * dollars, for example, this is cents.
1127
- */
1128
- amount: number;
1129
-
1130
- /**
1131
- * A free-form address field set by the sender.
1132
- */
1133
- beneficiary_address_line1: string | null;
1134
-
1135
- /**
1136
- * A free-form address field set by the sender.
1125
+ * The identifier of the Inbound Wire Transfer that was declined.
1137
1126
  */
1138
- beneficiary_address_line2: string | null;
1139
-
1140
- /**
1141
- * A free-form address field set by the sender.
1142
- */
1143
- beneficiary_address_line3: string | null;
1144
-
1145
- /**
1146
- * A name set by the sender.
1147
- */
1148
- beneficiary_name: string | null;
1149
-
1150
- /**
1151
- * A free-form reference string set by the sender, to help identify the transfer.
1152
- */
1153
- beneficiary_reference: string | null;
1154
-
1155
- /**
1156
- * An Increase-constructed description of the declined transaction.
1157
- */
1158
- description: string;
1159
-
1160
- /**
1161
- * A unique identifier available to the originating and receiving banks, commonly
1162
- * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
1163
- * service and is helpful when debugging wires with the originating bank.
1164
- */
1165
- input_message_accountability_data: string | null;
1166
-
1167
- /**
1168
- * The address of the wire originator, set by the sending bank.
1169
- */
1170
- originator_address_line1: string | null;
1171
-
1172
- /**
1173
- * The address of the wire originator, set by the sending bank.
1174
- */
1175
- originator_address_line2: string | null;
1176
-
1177
- /**
1178
- * The address of the wire originator, set by the sending bank.
1179
- */
1180
- originator_address_line3: string | null;
1181
-
1182
- /**
1183
- * The originator of the wire, set by the sending bank.
1184
- */
1185
- originator_name: string | null;
1186
-
1187
- /**
1188
- * The American Banking Association (ABA) routing number of the bank originating
1189
- * the transfer.
1190
- */
1191
- originator_routing_number: string | null;
1192
-
1193
- /**
1194
- * A free-form message set by the wire originator.
1195
- */
1196
- originator_to_beneficiary_information_line1: string | null;
1197
-
1198
- /**
1199
- * A free-form message set by the wire originator.
1200
- */
1201
- originator_to_beneficiary_information_line2: string | null;
1202
-
1203
- /**
1204
- * A free-form message set by the wire originator.
1205
- */
1206
- originator_to_beneficiary_information_line3: string | null;
1207
-
1208
- /**
1209
- * A free-form message set by the wire originator.
1210
- */
1211
- originator_to_beneficiary_information_line4: string | null;
1127
+ inbound_wire_transfer_id: string;
1212
1128
 
1213
1129
  /**
1214
1130
  * Why the wire transfer was declined.
@@ -1415,8 +1331,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1415
1331
  * be under the `inbound_wire_drawdown_payment` object.
1416
1332
  * - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
1417
1333
  * `inbound_wire_reversal` object.
1418
- * - `inbound_wire_transfer` - Inbound Wire Transfer: details will be under the
1419
- * `inbound_wire_transfer` object.
1334
+ * - `inbound_wire_transfer` - Inbound Wire Transfer Intention: details will be
1335
+ * under the `inbound_wire_transfer` object.
1336
+ * - `inbound_wire_transfer_reversal` - Inbound Wire Transfer Reversal Intention:
1337
+ * details will be under the `inbound_wire_transfer_reversal` object.
1420
1338
  * - `interest_payment` - Interest Payment: details will be under the
1421
1339
  * `interest_payment` object.
1422
1340
  * - `internal_source` - Internal Source: details will be under the
@@ -1456,6 +1374,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1456
1374
  | 'inbound_wire_drawdown_payment'
1457
1375
  | 'inbound_wire_reversal'
1458
1376
  | 'inbound_wire_transfer'
1377
+ | 'inbound_wire_transfer_reversal'
1459
1378
  | 'interest_payment'
1460
1379
  | 'internal_source'
1461
1380
  | 'real_time_payments_transfer_acknowledgement'
@@ -1547,8 +1466,8 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1547
1466
  inbound_wire_reversal: Source.InboundWireReversal | null;
1548
1467
 
1549
1468
  /**
1550
- * An Inbound Wire Transfer object. This field will be present in the JSON response
1551
- * if and only if `category` is equal to `inbound_wire_transfer`.
1469
+ * An Inbound Wire Transfer Intention object. This field will be present in the
1470
+ * JSON response if and only if `category` is equal to `inbound_wire_transfer`.
1552
1471
  */
1553
1472
  inbound_wire_transfer: Source.InboundWireTransfer | null;
1554
1473
 
@@ -4374,15 +4293,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
4374
4293
  }
4375
4294
 
4376
4295
  /**
4377
- * An Inbound Wire Transfer object. This field will be present in the JSON response
4378
- * if and only if `category` is equal to `inbound_wire_transfer`.
4296
+ * An Inbound Wire Transfer Intention object. This field will be present in the
4297
+ * JSON response if and only if `category` is equal to `inbound_wire_transfer`.
4379
4298
  */
4380
4299
  export interface InboundWireTransfer {
4381
- /**
4382
- * The inbound wire transfer's identifier.
4383
- */
4384
- id: string;
4385
-
4386
4300
  /**
4387
4301
  * The amount in USD cents.
4388
4302
  */
@@ -4480,12 +4394,6 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
4480
4394
  * The ID of the Inbound Wire Transfer object that resulted in this Transaction.
4481
4395
  */
4482
4396
  transfer_id: string;
4483
-
4484
- /**
4485
- * A constant representing the object's type. For this resource it will always be
4486
- * `inbound_wire_transfer`.
4487
- */
4488
- type: 'inbound_wire_transfer';
4489
4397
  }
4490
4398
 
4491
4399
  /**
@@ -57,7 +57,6 @@ export namespace Simulations {
57
57
  export import AccountStatements = AccountStatementsAPI.AccountStatements;
58
58
  export import AccountStatementCreateParams = AccountStatementsAPI.AccountStatementCreateParams;
59
59
  export import ACHTransfers = ACHTransfersAPI.ACHTransfers;
60
- export import ACHTransferSimulation = ACHTransfersAPI.ACHTransferSimulation;
61
60
  export import ACHTransferCreateInboundParams = ACHTransfersAPI.ACHTransferCreateInboundParams;
62
61
  export import ACHTransferReturnParams = ACHTransfersAPI.ACHTransferReturnParams;
63
62
  export import CardDisputes = CardDisputesAPI.CardDisputes;
@@ -82,7 +81,6 @@ export namespace Simulations {
82
81
  export import InterestPaymentSimulationResult = InterestPaymentsAPI.InterestPaymentSimulationResult;
83
82
  export import InterestPaymentCreateParams = InterestPaymentsAPI.InterestPaymentCreateParams;
84
83
  export import WireTransfers = WireTransfersAPI.WireTransfers;
85
- export import WireTransferSimulation = WireTransfersAPI.WireTransferSimulation;
86
84
  export import WireTransferCreateInboundParams = WireTransfersAPI.WireTransferCreateInboundParams;
87
85
  export import Cards = CardsAPI.Cards;
88
86
  export import CardAuthorizationSimulation = CardsAPI.CardAuthorizationSimulation;