increase 0.228.2 → 0.229.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 (59) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/core.d.ts +5 -2
  3. package/core.d.ts.map +1 -1
  4. package/core.js +11 -6
  5. package/core.js.map +1 -1
  6. package/core.mjs +11 -6
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +1 -0
  9. package/index.d.ts +1 -0
  10. package/index.d.ts.map +1 -1
  11. package/index.js +6 -2
  12. package/index.js.map +1 -1
  13. package/index.mjs +6 -2
  14. package/index.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resources/card-payments.d.ts +11 -11
  17. package/resources/card-payments.d.ts.map +1 -1
  18. package/resources/check-transfers.d.ts +24 -1
  19. package/resources/check-transfers.d.ts.map +1 -1
  20. package/resources/check-transfers.js.map +1 -1
  21. package/resources/check-transfers.mjs.map +1 -1
  22. package/resources/event-subscriptions.d.ts +34 -18
  23. package/resources/event-subscriptions.d.ts.map +1 -1
  24. package/resources/event-subscriptions.js.map +1 -1
  25. package/resources/event-subscriptions.mjs.map +1 -1
  26. package/resources/events.d.ts +18 -10
  27. package/resources/events.d.ts.map +1 -1
  28. package/resources/events.js.map +1 -1
  29. package/resources/events.mjs.map +1 -1
  30. package/resources/inbound-ach-transfers.d.ts +23 -7
  31. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  32. package/resources/inbound-ach-transfers.js.map +1 -1
  33. package/resources/inbound-ach-transfers.mjs.map +1 -1
  34. package/resources/inbound-mail-items.d.ts +23 -0
  35. package/resources/inbound-mail-items.d.ts.map +1 -1
  36. package/resources/inbound-mail-items.js.map +1 -1
  37. package/resources/inbound-mail-items.mjs.map +1 -1
  38. package/resources/pending-transactions.d.ts +23 -27
  39. package/resources/pending-transactions.d.ts.map +1 -1
  40. package/resources/pending-transactions.js.map +1 -1
  41. package/resources/pending-transactions.mjs.map +1 -1
  42. package/resources/transactions.d.ts +27 -30
  43. package/resources/transactions.d.ts.map +1 -1
  44. package/resources/transactions.js.map +1 -1
  45. package/resources/transactions.mjs.map +1 -1
  46. package/src/core.ts +11 -4
  47. package/src/index.ts +8 -0
  48. package/src/resources/card-payments.ts +11 -11
  49. package/src/resources/check-transfers.ts +28 -1
  50. package/src/resources/event-subscriptions.ts +44 -16
  51. package/src/resources/events.ts +28 -8
  52. package/src/resources/inbound-ach-transfers.ts +26 -8
  53. package/src/resources/inbound-mail-items.ts +27 -0
  54. package/src/resources/pending-transactions.ts +26 -30
  55. package/src/resources/transactions.ts +30 -33
  56. package/src/version.ts +1 -1
  57. package/version.d.ts +1 -1
  58. package/version.js +1 -1
  59. package/version.mjs +1 -1
@@ -163,14 +163,20 @@ export interface Event {
163
163
  * - `oauth_connection.created` - Occurs whenever an OAuth Connection is created.
164
164
  * - `oauth_connection.deactivated` - Occurs whenever an OAuth Connection is
165
165
  * deactivated.
166
- * - `outbound_card_push_transfer.created` - Occurs whenever an Outbound Card Push
167
- * Transfer is created.
168
- * - `outbound_card_push_transfer.updated` - Occurs whenever an Outbound Card Push
169
- * Transfer is updated.
170
- * - `outbound_card_validation.created` - Occurs whenever an Outbound Card
171
- * Validation is created.
172
- * - `outbound_card_validation.updated` - Occurs whenever an Outbound Card
173
- * Validation is updated.
166
+ * - `outbound_card_push_transfer.created` - Occurs whenever a Card Push Transfer
167
+ * is created.
168
+ * - `outbound_card_push_transfer.updated` - Occurs whenever a Card Push Transfer
169
+ * is updated.
170
+ * - `outbound_card_validation.created` - Occurs whenever a Card Validation is
171
+ * created.
172
+ * - `outbound_card_validation.updated` - Occurs whenever a Card Validation is
173
+ * updated.
174
+ * - `card_push_transfer.created` - Occurs whenever a Card Push Transfer is
175
+ * created.
176
+ * - `card_push_transfer.updated` - Occurs whenever a Card Push Transfer is
177
+ * updated.
178
+ * - `card_validation.created` - Occurs whenever a Card Validation is created.
179
+ * - `card_validation.updated` - Occurs whenever a Card Validation is updated.
174
180
  * - `pending_transaction.created` - Occurs whenever a Pending Transaction is
175
181
  * created.
176
182
  * - `pending_transaction.updated` - Occurs whenever a Pending Transaction is
@@ -205,6 +211,8 @@ export interface Event {
205
211
  * Payments Request for Payment is created.
206
212
  * - `real_time_payments_request_for_payment.updated` - Occurs whenever a Real-Time
207
213
  * Payments Request for Payment is updated.
214
+ * - `swift_transfer.created` - Occurs whenever a Swift Transfer is created.
215
+ * - `swift_transfer.updated` - Occurs whenever a Swift Transfer is updated.
208
216
  * - `transaction.created` - Occurs whenever a Transaction is created.
209
217
  * - `wire_drawdown_request.created` - Occurs whenever a Wire Drawdown Request is
210
218
  * created.
@@ -282,6 +290,10 @@ export interface Event {
282
290
  | 'outbound_card_push_transfer.updated'
283
291
  | 'outbound_card_validation.created'
284
292
  | 'outbound_card_validation.updated'
293
+ | 'card_push_transfer.created'
294
+ | 'card_push_transfer.updated'
295
+ | 'card_validation.created'
296
+ | 'card_validation.updated'
285
297
  | 'pending_transaction.created'
286
298
  | 'pending_transaction.updated'
287
299
  | 'physical_card.created'
@@ -299,6 +311,8 @@ export interface Event {
299
311
  | 'real_time_payments_transfer.updated'
300
312
  | 'real_time_payments_request_for_payment.created'
301
313
  | 'real_time_payments_request_for_payment.updated'
314
+ | 'swift_transfer.created'
315
+ | 'swift_transfer.updated'
302
316
  | 'transaction.created'
303
317
  | 'wire_drawdown_request.created'
304
318
  | 'wire_drawdown_request.updated'
@@ -404,6 +418,10 @@ export namespace EventListParams {
404
418
  | 'outbound_card_push_transfer.updated'
405
419
  | 'outbound_card_validation.created'
406
420
  | 'outbound_card_validation.updated'
421
+ | 'card_push_transfer.created'
422
+ | 'card_push_transfer.updated'
423
+ | 'card_validation.created'
424
+ | 'card_validation.updated'
407
425
  | 'pending_transaction.created'
408
426
  | 'pending_transaction.updated'
409
427
  | 'physical_card.created'
@@ -421,6 +439,8 @@ export namespace EventListParams {
421
439
  | 'real_time_payments_transfer.updated'
422
440
  | 'real_time_payments_request_for_payment.created'
423
441
  | 'real_time_payments_request_for_payment.updated'
442
+ | 'swift_transfer.created'
443
+ | 'swift_transfer.updated'
424
444
  | 'transaction.created'
425
445
  | 'wire_drawdown_request.created'
426
446
  | 'wire_drawdown_request.updated'
@@ -179,14 +179,6 @@ export interface InboundACHTransfer {
179
179
  */
180
180
  effective_date: string;
181
181
 
182
- /**
183
- * The settlement schedule the transfer is expected to follow.
184
- *
185
- * - `same_day` - The transfer is expected to settle same-day.
186
- * - `future_dated` - The transfer is expected to settle on a future date.
187
- */
188
- expected_settlement_schedule: 'same_day' | 'future_dated';
189
-
190
182
  /**
191
183
  * If the Inbound ACH Transfer has a Standard Entry Class Code of IAT, this will
192
184
  * contain fields pertaining to the International ACH Transaction.
@@ -240,6 +232,12 @@ export interface InboundACHTransfer {
240
232
  */
241
233
  receiver_name: string | null;
242
234
 
235
+ /**
236
+ * A subhash containing information about when and how the transfer settled at the
237
+ * Federal Reserve.
238
+ */
239
+ settlement: InboundACHTransfer.Settlement;
240
+
243
241
  /**
244
242
  * The Standard Entry Class (SEC) code of the transfer.
245
243
  *
@@ -710,6 +708,26 @@ export namespace InboundACHTransfer {
710
708
  updated_routing_number: string | null;
711
709
  }
712
710
 
711
+ /**
712
+ * A subhash containing information about when and how the transfer settled at the
713
+ * Federal Reserve.
714
+ */
715
+ export interface Settlement {
716
+ /**
717
+ * When the funds for this transfer settle at the recipient bank at the Federal
718
+ * Reserve.
719
+ */
720
+ settled_at: string;
721
+
722
+ /**
723
+ * The settlement schedule this transfer follows.
724
+ *
725
+ * - `same_day` - The transfer is expected to settle same-day.
726
+ * - `future_dated` - The transfer is expected to settle on a future date.
727
+ */
728
+ settlement_schedule: 'same_day' | 'future_dated';
729
+ }
730
+
713
731
  /**
714
732
  * If your transfer is returned, this will contain details of the return.
715
733
  */
@@ -59,6 +59,11 @@ export interface InboundMailItem {
59
59
  */
60
60
  id: string;
61
61
 
62
+ /**
63
+ * The checks in the mail item.
64
+ */
65
+ checks: Array<InboundMailItem.Check>;
66
+
62
67
  /**
63
68
  * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Inbound
64
69
  * Mail Item was created.
@@ -106,6 +111,28 @@ export interface InboundMailItem {
106
111
  type: 'inbound_mail_item';
107
112
  }
108
113
 
114
+ export namespace InboundMailItem {
115
+ /**
116
+ * Inbound Mail Item Checks represent the checks in an Inbound Mail Item.
117
+ */
118
+ export interface Check {
119
+ /**
120
+ * The amount of the check.
121
+ */
122
+ amount: number;
123
+
124
+ /**
125
+ * The identifier for the File containing the back of the check.
126
+ */
127
+ back_file_id: string | null;
128
+
129
+ /**
130
+ * The identifier for the File containing the front of the check.
131
+ */
132
+ front_file_id: string | null;
133
+ }
134
+ }
135
+
109
136
  export interface InboundMailItemListParams extends PageParams {
110
137
  created_at?: InboundMailItemListParams.CreatedAt;
111
138
 
@@ -222,6 +222,12 @@ export namespace PendingTransaction {
222
222
  */
223
223
  card_authorization: Source.CardAuthorization | null;
224
224
 
225
+ /**
226
+ * A Card Push Transfer Instruction object. This field will be present in the JSON
227
+ * response if and only if `category` is equal to `card_push_transfer_instruction`.
228
+ */
229
+ card_push_transfer_instruction: Source.CardPushTransferInstruction | null;
230
+
225
231
  /**
226
232
  * The type of the resource. We may add additional possible values for this enum
227
233
  * over time; your application should be able to handle such additions gracefully.
@@ -249,9 +255,8 @@ export namespace PendingTransaction {
249
255
  * will be under the `inbound_wire_transfer_reversal` object.
250
256
  * - `swift_transfer_instruction` - Swift Transfer Instruction: details will be
251
257
  * under the `swift_transfer_instruction` object.
252
- * - `outbound_card_push_transfer_instruction` - Outbound Card Push Transfer
253
- * Instruction: details will be under the
254
- * `outbound_card_push_transfer_instruction` object.
258
+ * - `card_push_transfer_instruction` - Card Push Transfer Instruction: details
259
+ * will be under the `card_push_transfer_instruction` object.
255
260
  * - `other` - The Pending Transaction was made for an undocumented or deprecated
256
261
  * reason.
257
262
  */
@@ -267,7 +272,7 @@ export namespace PendingTransaction {
267
272
  | 'wire_transfer_instruction'
268
273
  | 'inbound_wire_transfer_reversal'
269
274
  | 'swift_transfer_instruction'
270
- | 'outbound_card_push_transfer_instruction'
275
+ | 'card_push_transfer_instruction'
271
276
  | 'other';
272
277
 
273
278
  /**
@@ -304,13 +309,6 @@ export namespace PendingTransaction {
304
309
  */
305
310
  other: unknown | null;
306
311
 
307
- /**
308
- * An Outbound Card Push Transfer Instruction object. This field will be present in
309
- * the JSON response if and only if `category` is equal to
310
- * `outbound_card_push_transfer_instruction`.
311
- */
312
- outbound_card_push_transfer_instruction: Source.OutboundCardPushTransferInstruction | null;
313
-
314
312
  /**
315
313
  * A Real-Time Payments Transfer Instruction object. This field will be present in
316
314
  * the JSON response if and only if `category` is equal to
@@ -825,6 +823,22 @@ export namespace PendingTransaction {
825
823
  }
826
824
  }
827
825
 
826
+ /**
827
+ * A Card Push Transfer Instruction object. This field will be present in the JSON
828
+ * response if and only if `category` is equal to `card_push_transfer_instruction`.
829
+ */
830
+ export interface CardPushTransferInstruction {
831
+ /**
832
+ * The transfer amount in USD cents.
833
+ */
834
+ amount: number;
835
+
836
+ /**
837
+ * The identifier of the Card Push Transfer that led to this Pending Transaction.
838
+ */
839
+ transfer_id: string;
840
+ }
841
+
828
842
  /**
829
843
  * A Check Deposit Instruction object. This field will be present in the JSON
830
844
  * response if and only if `category` is equal to `check_deposit_instruction`.
@@ -981,24 +995,6 @@ export namespace PendingTransaction {
981
995
  inbound_wire_transfer_id: string;
982
996
  }
983
997
 
984
- /**
985
- * An Outbound Card Push Transfer Instruction object. This field will be present in
986
- * the JSON response if and only if `category` is equal to
987
- * `outbound_card_push_transfer_instruction`.
988
- */
989
- export interface OutboundCardPushTransferInstruction {
990
- /**
991
- * The transfer amount in USD cents.
992
- */
993
- amount: number;
994
-
995
- /**
996
- * The identifier of the Outbound Card Push Transfer that led to this Pending
997
- * Transaction.
998
- */
999
- transfer_id: string;
1000
- }
1001
-
1002
998
  /**
1003
999
  * A Real-Time Payments Transfer Instruction object. This field will be present in
1004
1000
  * the JSON response if and only if `category` is equal to
@@ -1117,7 +1113,7 @@ export namespace PendingTransactionListParams {
1117
1113
  | 'wire_transfer_instruction'
1118
1114
  | 'inbound_wire_transfer_reversal'
1119
1115
  | 'swift_transfer_instruction'
1120
- | 'outbound_card_push_transfer_instruction'
1116
+ | 'card_push_transfer_instruction'
1121
1117
  | 'other'
1122
1118
  >;
1123
1119
  }
@@ -183,6 +183,14 @@ export namespace Transaction {
183
183
  */
184
184
  card_dispute_loss: Source.CardDisputeLoss | null;
185
185
 
186
+ /**
187
+ * A Card Push Transfer Acceptance object. This field will be present in the JSON
188
+ * response if and only if `category` is equal to `card_push_transfer_acceptance`.
189
+ * A Card Push Transfer Acceptance is created when an Outbound Card Push Transfer
190
+ * sent from Increase is accepted by the receiving bank.
191
+ */
192
+ card_push_transfer_acceptance: Source.CardPushTransferAcceptance | null;
193
+
186
194
  /**
187
195
  * A Card Refund object. This field will be present in the JSON response if and
188
196
  * only if `category` is equal to `card_refund`. Card Refunds move money back to
@@ -281,9 +289,8 @@ export namespace Transaction {
281
289
  * `wire_transfer_intention` object.
282
290
  * - `swift_transfer_intention` - Swift Transfer Intention: details will be under
283
291
  * the `swift_transfer_intention` object.
284
- * - `outbound_card_push_transfer_acceptance` - Outbound Card Push Transfer
285
- * Acceptance: details will be under the `outbound_card_push_transfer_acceptance`
286
- * object.
292
+ * - `card_push_transfer_acceptance` - Card Push Transfer Acceptance: details will
293
+ * be under the `card_push_transfer_acceptance` object.
287
294
  * - `other` - The Transaction was made for an undocumented or deprecated reason.
288
295
  */
289
296
  category:
@@ -316,7 +323,7 @@ export namespace Transaction {
316
323
  | 'sample_funds'
317
324
  | 'wire_transfer_intention'
318
325
  | 'swift_transfer_intention'
319
- | 'outbound_card_push_transfer_acceptance'
326
+ | 'card_push_transfer_acceptance'
320
327
  | 'other';
321
328
 
322
329
  /**
@@ -450,15 +457,6 @@ export namespace Transaction {
450
457
  */
451
458
  other: unknown | null;
452
459
 
453
- /**
454
- * An Outbound Card Push Transfer Acceptance object. This field will be present in
455
- * the JSON response if and only if `category` is equal to
456
- * `outbound_card_push_transfer_acceptance`. An Outbound Card Push Transfer
457
- * Acceptance is created when an Outbound Card Push Transfer sent from Increase is
458
- * accepted by the receiving bank.
459
- */
460
- outbound_card_push_transfer_acceptance: Source.OutboundCardPushTransferAcceptance | null;
461
-
462
460
  /**
463
461
  * A Real-Time Payments Transfer Acknowledgement object. This field will be present
464
462
  * in the JSON response if and only if `category` is equal to
@@ -902,6 +900,24 @@ export namespace Transaction {
902
900
  transaction_id: string;
903
901
  }
904
902
 
903
+ /**
904
+ * A Card Push Transfer Acceptance object. This field will be present in the JSON
905
+ * response if and only if `category` is equal to `card_push_transfer_acceptance`.
906
+ * A Card Push Transfer Acceptance is created when an Outbound Card Push Transfer
907
+ * sent from Increase is accepted by the receiving bank.
908
+ */
909
+ export interface CardPushTransferAcceptance {
910
+ /**
911
+ * The transfer amount in USD cents.
912
+ */
913
+ amount: number;
914
+
915
+ /**
916
+ * The identifier of the Card Push Transfer that led to this Transaction.
917
+ */
918
+ transfer_id: string;
919
+ }
920
+
905
921
  /**
906
922
  * A Card Refund object. This field will be present in the JSON response if and
907
923
  * only if `category` is equal to `card_refund`. Card Refunds move money back to
@@ -3352,25 +3368,6 @@ export namespace Transaction {
3352
3368
  | 'sample_funds_return';
3353
3369
  }
3354
3370
 
3355
- /**
3356
- * An Outbound Card Push Transfer Acceptance object. This field will be present in
3357
- * the JSON response if and only if `category` is equal to
3358
- * `outbound_card_push_transfer_acceptance`. An Outbound Card Push Transfer
3359
- * Acceptance is created when an Outbound Card Push Transfer sent from Increase is
3360
- * accepted by the receiving bank.
3361
- */
3362
- export interface OutboundCardPushTransferAcceptance {
3363
- /**
3364
- * The transfer amount in USD cents.
3365
- */
3366
- amount: number;
3367
-
3368
- /**
3369
- * The identifier of the Outbound Card Push Transfer that led to this Transaction.
3370
- */
3371
- transfer_id: string;
3372
- }
3373
-
3374
3371
  /**
3375
3372
  * A Real-Time Payments Transfer Acknowledgement object. This field will be present
3376
3373
  * in the JSON response if and only if `category` is equal to
@@ -3516,7 +3513,7 @@ export namespace TransactionListParams {
3516
3513
  | 'sample_funds'
3517
3514
  | 'wire_transfer_intention'
3518
3515
  | 'swift_transfer_intention'
3519
- | 'outbound_card_push_transfer_acceptance'
3516
+ | 'card_push_transfer_acceptance'
3520
3517
  | 'other'
3521
3518
  >;
3522
3519
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.228.2'; // x-release-please-version
1
+ export const VERSION = '0.229.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.228.2";
1
+ export declare const VERSION = "0.229.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.228.2'; // x-release-please-version
4
+ exports.VERSION = '0.229.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.228.2'; // x-release-please-version
1
+ export const VERSION = '0.229.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map