increase 0.26.0 → 0.28.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/account-transfers.d.ts +5 -5
  21. package/resources/ach-transfers.d.ts +5 -5
  22. package/resources/check-transfers.d.ts +2 -2
  23. package/resources/event-subscriptions.d.ts +10 -2
  24. package/resources/event-subscriptions.d.ts.map +1 -1
  25. package/resources/event-subscriptions.js.map +1 -1
  26. package/resources/event-subscriptions.mjs.map +1 -1
  27. package/resources/events.d.ts +6 -2
  28. package/resources/events.d.ts.map +1 -1
  29. package/resources/events.js.map +1 -1
  30. package/resources/events.mjs.map +1 -1
  31. package/resources/inbound-ach-transfers.d.ts +4 -0
  32. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  33. package/resources/inbound-ach-transfers.js.map +1 -1
  34. package/resources/inbound-ach-transfers.mjs.map +1 -1
  35. package/resources/inbound-wire-transfers.d.ts +69 -0
  36. package/resources/inbound-wire-transfers.d.ts.map +1 -1
  37. package/resources/inbound-wire-transfers.js +40 -1
  38. package/resources/inbound-wire-transfers.js.map +1 -1
  39. package/resources/inbound-wire-transfers.mjs +15 -0
  40. package/resources/inbound-wire-transfers.mjs.map +1 -1
  41. package/resources/index.d.ts +1 -1
  42. package/resources/index.d.ts.map +1 -1
  43. package/resources/index.js +2 -1
  44. package/resources/index.js.map +1 -1
  45. package/resources/index.mjs +1 -1
  46. package/resources/index.mjs.map +1 -1
  47. package/resources/oauth-tokens.d.ts +2 -1
  48. package/resources/oauth-tokens.d.ts.map +1 -1
  49. package/resources/oauth-tokens.js.map +1 -1
  50. package/resources/oauth-tokens.mjs.map +1 -1
  51. package/resources/real-time-decisions.d.ts +3 -1
  52. package/resources/real-time-decisions.d.ts.map +1 -1
  53. package/resources/real-time-decisions.js.map +1 -1
  54. package/resources/real-time-decisions.mjs.map +1 -1
  55. package/resources/real-time-payments-transfers.d.ts +2 -2
  56. package/resources/simulations/ach-transfers.d.ts +2 -3849
  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/index.d.ts +2 -2
  61. package/resources/simulations/index.d.ts.map +1 -1
  62. package/resources/simulations/index.js.map +1 -1
  63. package/resources/simulations/index.mjs +1 -1
  64. package/resources/simulations/index.mjs.map +1 -1
  65. package/resources/simulations/interest-payments.d.ts +3 -1
  66. package/resources/simulations/interest-payments.d.ts.map +1 -1
  67. package/resources/simulations/interest-payments.js.map +1 -1
  68. package/resources/simulations/interest-payments.mjs.map +1 -1
  69. package/resources/simulations/real-time-payments-transfers.d.ts +3 -1
  70. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  71. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  72. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  73. package/resources/simulations/simulations.d.ts +0 -2
  74. package/resources/simulations/simulations.d.ts.map +1 -1
  75. package/resources/simulations/simulations.js.map +1 -1
  76. package/resources/simulations/simulations.mjs.map +1 -1
  77. package/resources/simulations/wire-transfers.d.ts +2 -2745
  78. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  79. package/resources/simulations/wire-transfers.js.map +1 -1
  80. package/resources/simulations/wire-transfers.mjs.map +1 -1
  81. package/resources/transactions.d.ts +4 -2
  82. package/resources/transactions.d.ts.map +1 -1
  83. package/resources/transactions.js.map +1 -1
  84. package/resources/transactions.mjs.map +1 -1
  85. package/resources/wire-transfers.d.ts +2 -2
  86. package/src/core.ts +11 -0
  87. package/src/index.ts +2 -0
  88. package/src/resources/account-numbers.ts +17 -0
  89. package/src/resources/account-transfers.ts +5 -5
  90. package/src/resources/ach-transfers.ts +5 -5
  91. package/src/resources/check-transfers.ts +2 -2
  92. package/src/resources/event-subscriptions.ts +12 -0
  93. package/src/resources/events.ts +8 -0
  94. package/src/resources/inbound-ach-transfers.ts +5 -0
  95. package/src/resources/inbound-wire-transfers.ts +96 -0
  96. package/src/resources/index.ts +6 -1
  97. package/src/resources/oauth-tokens.ts +2 -1
  98. package/src/resources/real-time-decisions.ts +3 -1
  99. package/src/resources/real-time-payments-transfers.ts +2 -2
  100. package/src/resources/simulations/ach-transfers.ts +2 -4849
  101. package/src/resources/simulations/index.ts +2 -7
  102. package/src/resources/simulations/interest-payments.ts +3 -0
  103. package/src/resources/simulations/real-time-payments-transfers.ts +3 -0
  104. package/src/resources/simulations/simulations.ts +0 -2
  105. package/src/resources/simulations/wire-transfers.ts +2 -3452
  106. package/src/resources/transactions.ts +4 -0
  107. package/src/resources/wire-transfers.ts +2 -2
  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
@@ -2,7 +2,9 @@
2
2
 
3
3
  import * as Core from "../core";
4
4
  import { APIResource } from "../resource";
5
+ import { isRequestOptions } from "../core";
5
6
  import * as InboundWireTransfersAPI from "./inbound-wire-transfers";
7
+ import { Page, type PageParams } from "../pagination";
6
8
 
7
9
  export class InboundWireTransfers extends APIResource {
8
10
  /**
@@ -14,8 +16,31 @@ export class InboundWireTransfers extends APIResource {
14
16
  ): Core.APIPromise<InboundWireTransfer> {
15
17
  return this._client.get(`/inbound_wire_transfers/${inboundWireTransferId}`, options);
16
18
  }
19
+
20
+ /**
21
+ * List Inbound Wire Transfers
22
+ */
23
+ list(
24
+ query?: InboundWireTransferListParams,
25
+ options?: Core.RequestOptions,
26
+ ): Core.PagePromise<InboundWireTransfersPage, InboundWireTransfer>;
27
+ list(options?: Core.RequestOptions): Core.PagePromise<InboundWireTransfersPage, InboundWireTransfer>;
28
+ list(
29
+ query: InboundWireTransferListParams | Core.RequestOptions = {},
30
+ options?: Core.RequestOptions,
31
+ ): Core.PagePromise<InboundWireTransfersPage, InboundWireTransfer> {
32
+ if (isRequestOptions(query)) {
33
+ return this.list({}, query);
34
+ }
35
+ return this._client.getAPIList('/inbound_wire_transfers', InboundWireTransfersPage, {
36
+ query,
37
+ ...options,
38
+ });
39
+ }
17
40
  }
18
41
 
42
+ export class InboundWireTransfersPage extends Page<InboundWireTransfer> {}
43
+
19
44
  /**
20
45
  * An Inbound Wire Transfer is a wire transfer initiated outside of Increase to
21
46
  * your account.
@@ -26,6 +51,16 @@ export interface InboundWireTransfer {
26
51
  */
27
52
  id: string;
28
53
 
54
+ /**
55
+ * The Account to which the transfer belongs.
56
+ */
57
+ account_id: string;
58
+
59
+ /**
60
+ * The identifier of the Account Number to which this transfer was sent.
61
+ */
62
+ account_number_id: string;
63
+
29
64
  /**
30
65
  * The amount in USD cents.
31
66
  */
@@ -119,6 +154,17 @@ export interface InboundWireTransfer {
119
154
  */
120
155
  originator_to_beneficiary_information_line4: string | null;
121
156
 
157
+ /**
158
+ * The status of the transfer.
159
+ *
160
+ * - `pending` - The Inbound Wire Transfer is awaiting action, will transition
161
+ * automatically if no action is taken.
162
+ * - `accepted` - The Inbound Wire Transfer is accepted.
163
+ * - `declined` - The Inbound Wire Transfer was declined.
164
+ * - `reversed` - The Inbound Wire Transfer was reversed.
165
+ */
166
+ status: 'pending' | 'accepted' | 'declined' | 'reversed';
167
+
122
168
  /**
123
169
  * A constant representing the object's type. For this resource it will always be
124
170
  * `inbound_wire_transfer`.
@@ -126,6 +172,56 @@ export interface InboundWireTransfer {
126
172
  type: 'inbound_wire_transfer';
127
173
  }
128
174
 
175
+ export interface InboundWireTransferListParams extends PageParams {
176
+ /**
177
+ * Filter Inbound Wire Tranfers to ones belonging to the specified Account.
178
+ */
179
+ account_id?: string;
180
+
181
+ created_at?: InboundWireTransferListParams.CreatedAt;
182
+
183
+ /**
184
+ * Filter Inbound Wire Transfers to those with the specified status.
185
+ *
186
+ * - `pending` - The Inbound Wire Transfer is awaiting action, will transition
187
+ * automatically if no action is taken.
188
+ * - `accepted` - The Inbound Wire Transfer is accepted.
189
+ * - `declined` - The Inbound Wire Transfer was declined.
190
+ * - `reversed` - The Inbound Wire Transfer was reversed.
191
+ */
192
+ status?: 'pending' | 'accepted' | 'declined' | 'reversed';
193
+ }
194
+
195
+ export namespace InboundWireTransferListParams {
196
+ export interface CreatedAt {
197
+ /**
198
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
199
+ * timestamp.
200
+ */
201
+ after?: string;
202
+
203
+ /**
204
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
205
+ * timestamp.
206
+ */
207
+ before?: string;
208
+
209
+ /**
210
+ * Return results on or after this
211
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
212
+ */
213
+ on_or_after?: string;
214
+
215
+ /**
216
+ * Return results on or before this
217
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
218
+ */
219
+ on_or_before?: string;
220
+ }
221
+ }
222
+
129
223
  export namespace InboundWireTransfers {
130
224
  export import InboundWireTransfer = InboundWireTransfersAPI.InboundWireTransfer;
225
+ export import InboundWireTransfersPage = InboundWireTransfersAPI.InboundWireTransfersPage;
226
+ export import InboundWireTransferListParams = InboundWireTransfersAPI.InboundWireTransferListParams;
131
227
  }
@@ -168,7 +168,12 @@ export {
168
168
  InboundWireDrawdownRequestsPage,
169
169
  InboundWireDrawdownRequests,
170
170
  } from './inbound-wire-drawdown-requests';
171
- export { InboundWireTransfer, InboundWireTransfers } from './inbound-wire-transfers';
171
+ export {
172
+ InboundWireTransfer,
173
+ InboundWireTransferListParams,
174
+ InboundWireTransfersPage,
175
+ InboundWireTransfers,
176
+ } from './inbound-wire-transfers';
172
177
  export { Intrafi } from './intrafi/intrafi';
173
178
  export {
174
179
  OAuthConnection,
@@ -39,7 +39,8 @@ export interface OAuthToken {
39
39
 
40
40
  export interface OAuthTokenCreateParams {
41
41
  /**
42
- * The credential you request in exchange for the code.
42
+ * The credential you request in exchange for the code. In Production, this is
43
+ * always `authorization_code`. In Sandbox, you can pass either enum value.
43
44
  *
44
45
  * - `authorization_code` - An OAuth authorization code.
45
46
  * - `production_token` - An OAuth production token.
@@ -26,7 +26,9 @@ export class RealTimeDecisions extends APIResource {
26
26
 
27
27
  /**
28
28
  * Real Time Decisions are created when your application needs to take action in
29
- * real-time to some event such as a card authorization.
29
+ * real-time to some event such as a card authorization. For more information, see
30
+ * our
31
+ * [Real-Time Decisions guide](https://increase.com/documentation/real-time-decisions).
30
32
  */
31
33
  export interface RealTimeDecision {
32
34
  /**
@@ -206,7 +206,7 @@ export interface RealTimePaymentsTransfer {
206
206
  ultimate_debtor_name: string | null;
207
207
 
208
208
  /**
209
- * The unique identifier you chose for this transfer.
209
+ * The unique identifier you chose for this object.
210
210
  */
211
211
  unique_identifier: string | null;
212
212
  }
@@ -444,7 +444,7 @@ export interface RealTimePaymentsTransferListParams extends PageParams {
444
444
  external_account_id?: string;
445
445
 
446
446
  /**
447
- * Filter ACH Transfers to the one with the specified unique identifier.
447
+ * Filter records to the one with the specified `unique_identifier`.
448
448
  */
449
449
  unique_identifier?: string;
450
450
  }