increase 0.10.0 → 0.10.2

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 (166) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/_shims/fetch.d.ts +1 -0
  3. package/_shims/fetch.node.d.ts +1 -0
  4. package/core.d.ts +6 -3
  5. package/core.d.ts.map +1 -1
  6. package/core.js +14 -7
  7. package/core.js.map +1 -1
  8. package/core.mjs +14 -7
  9. package/core.mjs.map +1 -1
  10. package/index.d.mts +9 -4
  11. package/index.d.ts +9 -4
  12. package/index.d.ts.map +1 -1
  13. package/index.js +6 -3
  14. package/index.js.map +1 -1
  15. package/index.mjs +6 -3
  16. package/index.mjs.map +1 -1
  17. package/package.json +1 -1
  18. package/resources/account-transfers.d.ts +8 -1
  19. package/resources/account-transfers.d.ts.map +1 -1
  20. package/resources/account-transfers.js.map +1 -1
  21. package/resources/account-transfers.mjs.map +1 -1
  22. package/resources/ach-prenotifications.d.ts +2 -2
  23. package/resources/ach-transfers.d.ts +11 -4
  24. package/resources/ach-transfers.d.ts.map +1 -1
  25. package/resources/ach-transfers.js.map +1 -1
  26. package/resources/ach-transfers.mjs.map +1 -1
  27. package/resources/card-purchase-supplements.d.ts +1 -1
  28. package/resources/check-transfers.d.ts +6 -3
  29. package/resources/check-transfers.d.ts.map +1 -1
  30. package/resources/check-transfers.js.map +1 -1
  31. package/resources/check-transfers.mjs.map +1 -1
  32. package/resources/declined-transactions.d.ts +90 -16
  33. package/resources/declined-transactions.d.ts.map +1 -1
  34. package/resources/declined-transactions.js.map +1 -1
  35. package/resources/declined-transactions.mjs.map +1 -1
  36. package/resources/digital-wallet-tokens.d.ts +1 -1
  37. package/resources/entities/beneficial-owners.d.ts +24 -5
  38. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  39. package/resources/entities/beneficial-owners.js +8 -2
  40. package/resources/entities/beneficial-owners.js.map +1 -1
  41. package/resources/entities/beneficial-owners.mjs +8 -2
  42. package/resources/entities/beneficial-owners.mjs.map +1 -1
  43. package/resources/entities/entities.d.ts +19 -14
  44. package/resources/entities/entities.d.ts.map +1 -1
  45. package/resources/entities/entities.js.map +1 -1
  46. package/resources/entities/entities.mjs.map +1 -1
  47. package/resources/entities/index.d.ts +5 -1
  48. package/resources/entities/index.d.ts.map +1 -1
  49. package/resources/entities/index.js.map +1 -1
  50. package/resources/entities/index.mjs.map +1 -1
  51. package/resources/entities/supplemental-documents.d.ts +1 -1
  52. package/resources/entities/supplemental-documents.js +1 -1
  53. package/resources/entities/supplemental-documents.mjs +1 -1
  54. package/resources/event-subscriptions.d.ts +22 -10
  55. package/resources/event-subscriptions.d.ts.map +1 -1
  56. package/resources/event-subscriptions.js.map +1 -1
  57. package/resources/event-subscriptions.mjs.map +1 -1
  58. package/resources/events.d.ts +13 -5
  59. package/resources/events.d.ts.map +1 -1
  60. package/resources/events.js.map +1 -1
  61. package/resources/events.mjs.map +1 -1
  62. package/resources/external-accounts.d.ts +2 -2
  63. package/resources/inbound-ach-transfer-returns.d.ts +1 -47
  64. package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
  65. package/resources/inbound-ach-transfer-returns.js +0 -6
  66. package/resources/inbound-ach-transfer-returns.js.map +1 -1
  67. package/resources/inbound-ach-transfer-returns.mjs +0 -6
  68. package/resources/inbound-ach-transfer-returns.mjs.map +1 -1
  69. package/resources/inbound-ach-transfers.d.ts +303 -0
  70. package/resources/inbound-ach-transfers.d.ts.map +1 -0
  71. package/resources/inbound-ach-transfers.js +40 -0
  72. package/resources/inbound-ach-transfers.js.map +1 -0
  73. package/resources/inbound-ach-transfers.mjs +33 -0
  74. package/resources/inbound-ach-transfers.mjs.map +1 -0
  75. package/resources/index.d.ts +7 -2
  76. package/resources/index.d.ts.map +1 -1
  77. package/resources/index.js +16 -29
  78. package/resources/index.js.map +1 -1
  79. package/resources/index.mjs +1 -1
  80. package/resources/index.mjs.map +1 -1
  81. package/resources/pending-transactions.d.ts +50 -8
  82. package/resources/pending-transactions.d.ts.map +1 -1
  83. package/resources/pending-transactions.js.map +1 -1
  84. package/resources/pending-transactions.mjs.map +1 -1
  85. package/resources/real-time-decisions.d.ts +28 -4
  86. package/resources/real-time-decisions.d.ts.map +1 -1
  87. package/resources/real-time-decisions.js.map +1 -1
  88. package/resources/real-time-decisions.mjs.map +1 -1
  89. package/resources/real-time-payments-transfers.d.ts +49 -42
  90. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  91. package/resources/real-time-payments-transfers.js +2 -2
  92. package/resources/real-time-payments-transfers.js.map +1 -1
  93. package/resources/real-time-payments-transfers.mjs +2 -2
  94. package/resources/real-time-payments-transfers.mjs.map +1 -1
  95. package/resources/routing-numbers.d.ts +1 -1
  96. package/resources/simulations/ach-transfers.d.ts +91 -33
  97. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  98. package/resources/simulations/ach-transfers.js.map +1 -1
  99. package/resources/simulations/ach-transfers.mjs.map +1 -1
  100. package/resources/simulations/cards.d.ts +106 -23
  101. package/resources/simulations/cards.d.ts.map +1 -1
  102. package/resources/simulations/cards.js.map +1 -1
  103. package/resources/simulations/cards.mjs.map +1 -1
  104. package/resources/simulations/inbound-wire-drawdown-requests.d.ts +1 -1
  105. package/resources/simulations/inbound-wire-drawdown-requests.js +1 -1
  106. package/resources/simulations/inbound-wire-drawdown-requests.mjs +1 -1
  107. package/resources/simulations/interest-payments.d.ts +16 -16
  108. package/resources/simulations/interest-payments.d.ts.map +1 -1
  109. package/resources/simulations/real-time-payments-transfers.d.ts +122 -64
  110. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  111. package/resources/simulations/real-time-payments-transfers.js +2 -2
  112. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  113. package/resources/simulations/real-time-payments-transfers.mjs +2 -2
  114. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  115. package/resources/simulations/wire-transfers.d.ts +16 -16
  116. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  117. package/resources/transactions.d.ts +16 -16
  118. package/resources/transactions.d.ts.map +1 -1
  119. package/resources/wire-transfers.d.ts +9 -2
  120. package/resources/wire-transfers.d.ts.map +1 -1
  121. package/resources/wire-transfers.js.map +1 -1
  122. package/resources/wire-transfers.mjs.map +1 -1
  123. package/src/_shims/fetch.d.ts +1 -0
  124. package/src/_shims/fetch.node.d.ts +1 -0
  125. package/src/core.ts +19 -7
  126. package/src/index.ts +12 -6
  127. package/src/resources/account-transfers.ts +9 -1
  128. package/src/resources/ach-prenotifications.ts +2 -2
  129. package/src/resources/ach-transfers.ts +12 -4
  130. package/src/resources/card-purchase-supplements.ts +1 -1
  131. package/src/resources/check-transfers.ts +6 -3
  132. package/src/resources/declined-transactions.ts +94 -16
  133. package/src/resources/digital-wallet-tokens.ts +1 -1
  134. package/src/resources/entities/beneficial-owners.ts +31 -6
  135. package/src/resources/entities/entities.ts +20 -14
  136. package/src/resources/entities/index.ts +5 -1
  137. package/src/resources/entities/supplemental-documents.ts +1 -1
  138. package/src/resources/event-subscriptions.ts +22 -10
  139. package/src/resources/events.ts +13 -5
  140. package/src/resources/external-accounts.ts +2 -2
  141. package/src/resources/inbound-ach-transfer-returns.ts +1 -52
  142. package/src/resources/inbound-ach-transfers.ts +359 -0
  143. package/src/resources/index.ts +7 -2
  144. package/src/resources/pending-transactions.ts +52 -8
  145. package/src/resources/real-time-decisions.ts +28 -4
  146. package/src/resources/real-time-payments-transfers.ts +50 -42
  147. package/src/resources/routing-numbers.ts +1 -1
  148. package/src/resources/simulations/ach-transfers.ts +93 -33
  149. package/src/resources/simulations/cards.ts +108 -23
  150. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
  151. package/src/resources/simulations/interest-payments.ts +16 -16
  152. package/src/resources/simulations/real-time-payments-transfers.ts +124 -64
  153. package/src/resources/simulations/wire-transfers.ts +16 -16
  154. package/src/resources/transactions.ts +16 -16
  155. package/src/resources/wire-transfers.ts +10 -2
  156. package/src/version.ts +1 -1
  157. package/version.d.ts +1 -1
  158. package/version.js +1 -1
  159. package/version.mjs +1 -1
  160. package/resources/shared.d.ts +0 -31
  161. package/resources/shared.d.ts.map +0 -1
  162. package/resources/shared.js +0 -4
  163. package/resources/shared.js.map +0 -1
  164. package/resources/shared.mjs +0 -3
  165. package/resources/shared.mjs.map +0 -1
  166. package/src/resources/shared.ts +0 -32
@@ -7,16 +7,6 @@ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class InboundACHTransferReturns extends APIResource {
10
- /**
11
- * Create an ACH Return
12
- */
13
- create(
14
- body: InboundACHTransferReturnCreateParams,
15
- options?: Core.RequestOptions,
16
- ): Core.APIPromise<InboundACHTransferReturn> {
17
- return this.post('/inbound_ach_transfer_returns', { body, ...options });
18
- }
19
-
20
10
  /**
21
11
  * Retrieve an Inbound ACH Transfer Return
22
12
  */
@@ -120,7 +110,7 @@ export interface InboundACHTransferReturn {
120
110
  /**
121
111
  * The ID for the transaction refunding the transfer.
122
112
  */
123
- transaction_id: string | null;
113
+ transaction_id: string;
124
114
 
125
115
  /**
126
116
  * A constant representing the object's type. For this resource it will always be
@@ -146,51 +136,10 @@ export namespace InboundACHTransferReturn {
146
136
  }
147
137
  }
148
138
 
149
- export interface InboundACHTransferReturnCreateParams {
150
- /**
151
- * The reason why this transfer will be returned. The most usual return codes are
152
- * `payment_stopped` for debits and `credit_entry_refused_by_receiver` for credits.
153
- *
154
- * - `authorization_revoked_by_customer` - The customer no longer authorizes this
155
- * transaction. The Nacha return code is R07.
156
- * - `payment_stopped` - The customer asked for the payment to be stopped. This
157
- * reason is only allowed for debits. The Nacha return code is R08.
158
- * - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - The
159
- * customer advises that the debit was unauthorized. The Nacha return code is
160
- * R10.
161
- * - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - The
162
- * payee is deceased. The Nacha return code is R14.
163
- * - `beneficiary_or_account_holder_deceased` - The account holder is deceased. The
164
- * Nacha return code is R15.
165
- * - `credit_entry_refused_by_receiver` - The customer refused a credit entry. This
166
- * reason is only allowed for credits. The Nacha return code is R23.
167
- * - `duplicate_entry` - The account holder identified this transaction as a
168
- * duplicate. The Nacha return code is R24.
169
- * - `corporate_customer_advised_not_authorized` - The corporate customer no longer
170
- * authorizes this transaction. The Nacha return code is R29.
171
- */
172
- reason:
173
- | 'authorization_revoked_by_customer'
174
- | 'payment_stopped'
175
- | 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
176
- | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
177
- | 'beneficiary_or_account_holder_deceased'
178
- | 'credit_entry_refused_by_receiver'
179
- | 'duplicate_entry'
180
- | 'corporate_customer_advised_not_authorized';
181
-
182
- /**
183
- * The transaction identifier of the Inbound ACH Transfer to return to the
184
- * originating financial institution.
185
- */
186
- transaction_id: string;
187
- }
188
-
189
139
  export interface InboundACHTransferReturnListParams extends PageParams {}
190
140
 
191
141
  export namespace InboundACHTransferReturns {
192
142
  export import InboundACHTransferReturn = API.InboundACHTransferReturn;
193
143
  export type InboundACHTransferReturnsPage = _InboundACHTransferReturnsPage;
194
- export import InboundACHTransferReturnCreateParams = API.InboundACHTransferReturnCreateParams;
195
144
  export import InboundACHTransferReturnListParams = API.InboundACHTransferReturnListParams;
196
145
  }
@@ -0,0 +1,359 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import * as Core from '../core';
4
+ import { APIResource } from '../resource';
5
+ import { isRequestOptions } from '../core';
6
+ import * as API from './index';
7
+ import { Page, PageParams } from '../pagination';
8
+
9
+ export class InboundACHTransfers extends APIResource {
10
+ /**
11
+ * Retrieve an Inbound ACH Transfer
12
+ */
13
+ retrieve(inboundACHTransferId: string, options?: Core.RequestOptions): Core.APIPromise<InboundACHTransfer> {
14
+ return this.get(`/inbound_ach_transfers/${inboundACHTransferId}`, options);
15
+ }
16
+
17
+ /**
18
+ * List Inbound ACH Transfers
19
+ */
20
+ list(
21
+ query?: InboundACHTransferListParams,
22
+ options?: Core.RequestOptions,
23
+ ): Core.PagePromise<InboundACHTransfersPage, InboundACHTransfer>;
24
+ list(options?: Core.RequestOptions): Core.PagePromise<InboundACHTransfersPage, InboundACHTransfer>;
25
+ list(
26
+ query: InboundACHTransferListParams | Core.RequestOptions = {},
27
+ options?: Core.RequestOptions,
28
+ ): Core.PagePromise<InboundACHTransfersPage, InboundACHTransfer> {
29
+ if (isRequestOptions(query)) {
30
+ return this.list({}, query);
31
+ }
32
+ return this.getAPIList('/inbound_ach_transfers', InboundACHTransfersPage, { query, ...options });
33
+ }
34
+
35
+ /**
36
+ * Decline an Inbound ACH Transfer
37
+ */
38
+ decline(inboundACHTransferId: string, options?: Core.RequestOptions): Core.APIPromise<InboundACHTransfer> {
39
+ return this.post(`/inbound_ach_transfers/${inboundACHTransferId}/decline`, options);
40
+ }
41
+
42
+ /**
43
+ * Create an ACH Return
44
+ */
45
+ transferReturn(
46
+ inboundACHTransferId: string,
47
+ body: InboundACHTransferTransferReturnParams,
48
+ options?: Core.RequestOptions,
49
+ ): Core.APIPromise<InboundACHTransfer> {
50
+ return this.post(`/inbound_ach_transfer/${inboundACHTransferId}/transfer_returns`, { body, ...options });
51
+ }
52
+ }
53
+
54
+ export class InboundACHTransfersPage extends Page<InboundACHTransfer> {}
55
+ // alias so we can export it in the namespace
56
+ type _InboundACHTransfersPage = InboundACHTransfersPage;
57
+
58
+ /**
59
+ * An Inbound ACH Transfer is an ACH transfer initiated outside of Increase to your
60
+ * account.
61
+ */
62
+ export interface InboundACHTransfer {
63
+ /**
64
+ * The inbound ach transfer's identifier.
65
+ */
66
+ id: string;
67
+
68
+ /**
69
+ * If your transfer is accepted, this will contain details of the acceptance.
70
+ */
71
+ acceptance: InboundACHTransfer.Acceptance | null;
72
+
73
+ /**
74
+ * The transfer amount in USD cents.
75
+ */
76
+ amount: number;
77
+
78
+ /**
79
+ * The time at which the transfer will be automatically resolved.
80
+ */
81
+ automatically_resolves_at: string;
82
+
83
+ /**
84
+ * If your transfer is declined, this will contain details of the decline.
85
+ */
86
+ decline: InboundACHTransfer.Decline | null;
87
+
88
+ /**
89
+ * The direction of the transfer.
90
+ *
91
+ * - `credit` - Credit
92
+ * - `debit` - Debit
93
+ */
94
+ direction: 'credit' | 'debit';
95
+
96
+ /**
97
+ * The descriptive date of the transfer.
98
+ */
99
+ originator_company_descriptive_date: string | null;
100
+
101
+ /**
102
+ * The additional information included with the transfer.
103
+ */
104
+ originator_company_discretionary_data: string | null;
105
+
106
+ /**
107
+ * The description of the transfer.
108
+ */
109
+ originator_company_entry_description: string;
110
+
111
+ /**
112
+ * The id of the company that initiated the transfer.
113
+ */
114
+ originator_company_id: string;
115
+
116
+ /**
117
+ * The name of the company that initiated the transfer.
118
+ */
119
+ originator_company_name: string;
120
+
121
+ /**
122
+ * The id of the receiver of the transfer.
123
+ */
124
+ receiver_id_number: string | null;
125
+
126
+ /**
127
+ * The name of the receiver of the transfer.
128
+ */
129
+ receiver_name: string | null;
130
+
131
+ /**
132
+ * The status of the transfer.
133
+ *
134
+ * - `pending` - The Inbound ACH Transfer is awaiting action, will transition
135
+ * automatically if no action is taken.
136
+ * - `declined` - The Inbound ACH Transfer has been declined.
137
+ * - `accepted` - The Inbound ACH Transfer is accepted.
138
+ * - `returned` - The Inbound ACH Transfer has been returned.
139
+ */
140
+ status: 'pending' | 'declined' | 'accepted' | 'returned';
141
+
142
+ /**
143
+ * The trace number of the transfer.
144
+ */
145
+ trace_number: string;
146
+
147
+ /**
148
+ * If your transfer is returned, this will contain details of the return.
149
+ */
150
+ transfer_return: InboundACHTransfer.TransferReturn | null;
151
+
152
+ /**
153
+ * A constant representing the object's type. For this resource it will always be
154
+ * `inbound_ach_transfer`.
155
+ */
156
+ type: 'inbound_ach_transfer';
157
+ }
158
+
159
+ export namespace InboundACHTransfer {
160
+ /**
161
+ * If your transfer is accepted, this will contain details of the acceptance.
162
+ */
163
+ export interface Acceptance {
164
+ /**
165
+ * The time at which the transfer was accepted.
166
+ */
167
+ accepted_at: string;
168
+
169
+ /**
170
+ * The id of the transaction for the accepted transfer.
171
+ */
172
+ transaction_id: string;
173
+ }
174
+
175
+ /**
176
+ * If your transfer is declined, this will contain details of the decline.
177
+ */
178
+ export interface Decline {
179
+ /**
180
+ * The time at which the transfer was declined.
181
+ */
182
+ declined_at: string;
183
+
184
+ /**
185
+ * The id of the transaction for the declined transfer.
186
+ */
187
+ declined_transaction_id: string;
188
+
189
+ /**
190
+ * The reason for the transfer decline
191
+ *
192
+ * - `ach_route_canceled` - The account number is canceled.
193
+ * - `ach_route_disabled` - The account number is disabled.
194
+ * - `breaches_limit` - The transaction would cause a limit to be exceeded.
195
+ * - `credit_entry_refused_by_receiver` - A credit was refused.
196
+ * - `duplicate_return` - Other.
197
+ * - `entity_not_active` - The account's entity is not active.
198
+ * - `group_locked` - Your account is inactive.
199
+ * - `insufficient_funds` - Your account contains insufficient funds.
200
+ * - `misrouted_return` - Other.
201
+ * - `return_of_erroneous_or_reversing_debit` - Other.
202
+ * - `no_ach_route` - The account number that was debited does not exist.
203
+ * - `originator_request` - Other.
204
+ * - `transaction_not_allowed` - The transaction is not allowed per Increase's
205
+ * terms.
206
+ * - `user_initiated` - The user initiated the decline.
207
+ */
208
+ reason:
209
+ | 'ach_route_canceled'
210
+ | 'ach_route_disabled'
211
+ | 'breaches_limit'
212
+ | 'credit_entry_refused_by_receiver'
213
+ | 'duplicate_return'
214
+ | 'entity_not_active'
215
+ | 'group_locked'
216
+ | 'insufficient_funds'
217
+ | 'misrouted_return'
218
+ | 'return_of_erroneous_or_reversing_debit'
219
+ | 'no_ach_route'
220
+ | 'originator_request'
221
+ | 'transaction_not_allowed'
222
+ | 'user_initiated';
223
+ }
224
+
225
+ /**
226
+ * If your transfer is returned, this will contain details of the return.
227
+ */
228
+ export interface TransferReturn {
229
+ /**
230
+ * The reason for the transfer return
231
+ *
232
+ * - `authorization_revoked_by_customer` - The customer no longer authorizes this
233
+ * transaction. The Nacha return code is R07.
234
+ * - `payment_stopped` - The customer asked for the payment to be stopped. This
235
+ * reason is only allowed for debits. The Nacha return code is R08.
236
+ * - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - The
237
+ * customer advises that the debit was unauthorized. The Nacha return code is
238
+ * R10.
239
+ * - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - The
240
+ * payee is deceased. The Nacha return code is R14.
241
+ * - `beneficiary_or_account_holder_deceased` - The account holder is deceased. The
242
+ * Nacha return code is R15.
243
+ * - `credit_entry_refused_by_receiver` - The customer refused a credit entry. This
244
+ * reason is only allowed for credits. The Nacha return code is R23.
245
+ * - `duplicate_entry` - The account holder identified this transaction as a
246
+ * duplicate. The Nacha return code is R24.
247
+ * - `corporate_customer_advised_not_authorized` - The corporate customer no longer
248
+ * authorizes this transaction. The Nacha return code is R29.
249
+ */
250
+ reason:
251
+ | 'authorization_revoked_by_customer'
252
+ | 'payment_stopped'
253
+ | 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
254
+ | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
255
+ | 'beneficiary_or_account_holder_deceased'
256
+ | 'credit_entry_refused_by_receiver'
257
+ | 'duplicate_entry'
258
+ | 'corporate_customer_advised_not_authorized';
259
+
260
+ /**
261
+ * The time at which the transfer was returned.
262
+ */
263
+ returned_at: string;
264
+
265
+ /**
266
+ * The id of the transaction for the returned transfer.
267
+ */
268
+ transaction_id: string;
269
+ }
270
+ }
271
+
272
+ export interface InboundACHTransferListParams extends PageParams {
273
+ /**
274
+ * Filter Inbound ACH Tranfers to ones belonging to the specified Account.
275
+ */
276
+ account_id?: string;
277
+
278
+ created_at?: InboundACHTransferListParams.CreatedAt;
279
+
280
+ /**
281
+ * Filter Inbound ACH Transfers to those with the specified status.
282
+ *
283
+ * - `pending` - The Inbound ACH Transfer is awaiting action, will transition
284
+ * automatically if no action is taken.
285
+ * - `declined` - The Inbound ACH Transfer has been declined.
286
+ * - `accepted` - The Inbound ACH Transfer is accepted.
287
+ * - `returned` - The Inbound ACH Transfer has been returned.
288
+ */
289
+ status?: 'pending' | 'declined' | 'accepted' | 'returned';
290
+ }
291
+
292
+ export namespace InboundACHTransferListParams {
293
+ export interface CreatedAt {
294
+ /**
295
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
296
+ * timestamp.
297
+ */
298
+ after?: string;
299
+
300
+ /**
301
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
302
+ * timestamp.
303
+ */
304
+ before?: string;
305
+
306
+ /**
307
+ * Return results on or after this
308
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
309
+ */
310
+ on_or_after?: string;
311
+
312
+ /**
313
+ * Return results on or before this
314
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
315
+ */
316
+ on_or_before?: string;
317
+ }
318
+ }
319
+
320
+ export interface InboundACHTransferTransferReturnParams {
321
+ /**
322
+ * The reason why this transfer will be returned. The most usual return codes are
323
+ * `payment_stopped` for debits and `credit_entry_refused_by_receiver` for credits.
324
+ *
325
+ * - `authorization_revoked_by_customer` - The customer no longer authorizes this
326
+ * transaction. The Nacha return code is R07.
327
+ * - `payment_stopped` - The customer asked for the payment to be stopped. This
328
+ * reason is only allowed for debits. The Nacha return code is R08.
329
+ * - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - The
330
+ * customer advises that the debit was unauthorized. The Nacha return code is
331
+ * R10.
332
+ * - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - The
333
+ * payee is deceased. The Nacha return code is R14.
334
+ * - `beneficiary_or_account_holder_deceased` - The account holder is deceased. The
335
+ * Nacha return code is R15.
336
+ * - `credit_entry_refused_by_receiver` - The customer refused a credit entry. This
337
+ * reason is only allowed for credits. The Nacha return code is R23.
338
+ * - `duplicate_entry` - The account holder identified this transaction as a
339
+ * duplicate. The Nacha return code is R24.
340
+ * - `corporate_customer_advised_not_authorized` - The corporate customer no longer
341
+ * authorizes this transaction. The Nacha return code is R29.
342
+ */
343
+ reason:
344
+ | 'authorization_revoked_by_customer'
345
+ | 'payment_stopped'
346
+ | 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
347
+ | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
348
+ | 'beneficiary_or_account_holder_deceased'
349
+ | 'credit_entry_refused_by_receiver'
350
+ | 'duplicate_entry'
351
+ | 'corporate_customer_advised_not_authorized';
352
+ }
353
+
354
+ export namespace InboundACHTransfers {
355
+ export import InboundACHTransfer = API.InboundACHTransfer;
356
+ export type InboundACHTransfersPage = _InboundACHTransfersPage;
357
+ export import InboundACHTransferListParams = API.InboundACHTransferListParams;
358
+ export import InboundACHTransferTransferReturnParams = API.InboundACHTransferTransferReturnParams;
359
+ }
@@ -1,6 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- export * from './shared';
4
3
  export {
5
4
  ACHPrenotification,
6
5
  ACHPrenotificationCreateParams,
@@ -141,9 +140,15 @@ export {
141
140
  } from './external-accounts';
142
141
  export { File, FileCreateParams, FileListParams, FilesPage, Files } from './files';
143
142
  export { Group, Groups } from './groups';
143
+ export {
144
+ InboundACHTransfer,
145
+ InboundACHTransferListParams,
146
+ InboundACHTransferTransferReturnParams,
147
+ InboundACHTransfersPage,
148
+ InboundACHTransfers,
149
+ } from './inbound-ach-transfers';
144
150
  export {
145
151
  InboundACHTransferReturn,
146
- InboundACHTransferReturnCreateParams,
147
152
  InboundACHTransferReturnListParams,
148
153
  InboundACHTransferReturnsPage,
149
154
  InboundACHTransferReturns,
@@ -3,7 +3,6 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as Shared from './shared';
7
6
  import * as API from './index';
8
7
  import { Page, PageParams } from '../pagination';
9
8
 
@@ -67,14 +66,14 @@ export interface PendingTransaction {
67
66
 
68
67
  /**
69
68
  * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
70
- * Transaction occured.
69
+ * Transaction occurred.
71
70
  */
72
71
  created_at: string;
73
72
 
74
73
  /**
75
74
  * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending
76
75
  * Transaction's currency. This will match the currency on the Pending
77
- * Transcation's Account.
76
+ * Transaction's Account.
78
77
  *
79
78
  * - `CAD` - Canadian Dollar (CAD)
80
79
  * - `CHF` - Swiss Franc (CHF)
@@ -172,7 +171,7 @@ export namespace PendingTransaction {
172
171
  * under the `check_transfer_instruction` object.
173
172
  * - `inbound_funds_hold` - Inbound Funds Hold: details will be under the
174
173
  * `inbound_funds_hold` object.
175
- * - `real_time_payments_transfer_instruction` - Real Time Payments Transfer
174
+ * - `real_time_payments_transfer_instruction` - Real-Time Payments Transfer
176
175
  * Instruction: details will be under the
177
176
  * `real_time_payments_transfer_instruction` object.
178
177
  * - `wire_transfer_instruction` - Wire Transfer Instruction: details will be under
@@ -210,7 +209,7 @@ export namespace PendingTransaction {
210
209
  inbound_funds_hold: Source.InboundFundsHold | null;
211
210
 
212
211
  /**
213
- * A Real Time Payments Transfer Instruction object. This field will be present in
212
+ * A Real-Time Payments Transfer Instruction object. This field will be present in
214
213
  * the JSON response if and only if `category` is equal to
215
214
  * `real_time_payments_transfer_instruction`.
216
215
  */
@@ -440,8 +439,33 @@ export namespace PendingTransaction {
440
439
  /**
441
440
  * The method used to enter the cardholder's primary account number and card
442
441
  * expiration date
442
+ *
443
+ * - `unknown` - Unknown
444
+ * - `manual` - Manual key entry
445
+ * - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
446
+ * value
447
+ * - `optical_code` - Optical code
448
+ * - `integrated_circuit_card` - Contact chip card
449
+ * - `contactless` - Contactless read of chip card
450
+ * - `credential_on_file` - Transaction initiated using a credential that has
451
+ * previously been stored on file
452
+ * - `magnetic_stripe` - Magnetic stripe read
453
+ * - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
454
+ * - `integrated_circuit_card_no_cvv` - Contact chip card, without card
455
+ * verification value
443
456
  */
444
- point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
457
+ point_of_service_entry_mode:
458
+ | 'unknown'
459
+ | 'manual'
460
+ | 'magnetic_stripe_no_cvv'
461
+ | 'optical_code'
462
+ | 'integrated_circuit_card'
463
+ | 'contactless'
464
+ | 'credential_on_file'
465
+ | 'magnetic_stripe'
466
+ | 'contactless_magnetic_stripe'
467
+ | 'integrated_circuit_card_no_cvv'
468
+ | null;
445
469
  }
446
470
  }
447
471
  }
@@ -590,7 +614,7 @@ export namespace PendingTransaction {
590
614
  }
591
615
 
592
616
  /**
593
- * A Real Time Payments Transfer Instruction object. This field will be present in
617
+ * A Real-Time Payments Transfer Instruction object. This field will be present in
594
618
  * the JSON response if and only if `category` is equal to
595
619
  * `real_time_payments_transfer_instruction`.
596
620
  */
@@ -602,7 +626,7 @@ export namespace PendingTransaction {
602
626
  amount: number;
603
627
 
604
628
  /**
605
- * The identifier of the Real Time Payments Transfer that led to this Pending
629
+ * The identifier of the Real-Time Payments Transfer that led to this Pending
606
630
  * Transaction.
607
631
  */
608
632
  transfer_id: string;
@@ -636,6 +660,8 @@ export interface PendingTransactionListParams extends PageParams {
636
660
  */
637
661
  account_id?: string;
638
662
 
663
+ category?: PendingTransactionListParams.Category;
664
+
639
665
  created_at?: PendingTransactionListParams.CreatedAt;
640
666
 
641
667
  /**
@@ -652,6 +678,24 @@ export interface PendingTransactionListParams extends PageParams {
652
678
  }
653
679
 
654
680
  export namespace PendingTransactionListParams {
681
+ export interface Category {
682
+ /**
683
+ * Return results whose value is in the provided list. For GET requests, this
684
+ * should be encoded as a comma-delimited string, such as `?in=one,two,three`.
685
+ */
686
+ in?: Array<
687
+ | 'account_transfer_instruction'
688
+ | 'ach_transfer_instruction'
689
+ | 'card_authorization'
690
+ | 'check_deposit_instruction'
691
+ | 'check_transfer_instruction'
692
+ | 'inbound_funds_hold'
693
+ | 'real_time_payments_transfer_instruction'
694
+ | 'wire_transfer_instruction'
695
+ | 'other'
696
+ >;
697
+ }
698
+
655
699
  export interface CreatedAt {
656
700
  /**
657
701
  * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
@@ -2,7 +2,6 @@
2
2
 
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
- import * as Shared from './shared';
6
5
  import * as API from './index';
7
6
 
8
7
  export class RealTimeDecisions extends APIResource {
@@ -258,8 +257,33 @@ export namespace RealTimeDecision {
258
257
  /**
259
258
  * The method used to enter the cardholder's primary account number and card
260
259
  * expiration date
260
+ *
261
+ * - `unknown` - Unknown
262
+ * - `manual` - Manual key entry
263
+ * - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
264
+ * value
265
+ * - `optical_code` - Optical code
266
+ * - `integrated_circuit_card` - Contact chip card
267
+ * - `contactless` - Contactless read of chip card
268
+ * - `credential_on_file` - Transaction initiated using a credential that has
269
+ * previously been stored on file
270
+ * - `magnetic_stripe` - Magnetic stripe read
271
+ * - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
272
+ * - `integrated_circuit_card_no_cvv` - Contact chip card, without card
273
+ * verification value
261
274
  */
262
- point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
275
+ point_of_service_entry_mode:
276
+ | 'unknown'
277
+ | 'manual'
278
+ | 'magnetic_stripe_no_cvv'
279
+ | 'optical_code'
280
+ | 'integrated_circuit_card'
281
+ | 'contactless'
282
+ | 'credential_on_file'
283
+ | 'magnetic_stripe'
284
+ | 'contactless_magnetic_stripe'
285
+ | 'integrated_circuit_card_no_cvv'
286
+ | null;
263
287
  }
264
288
  }
265
289
 
@@ -278,7 +302,7 @@ export namespace RealTimeDecision {
278
302
  category: 'initial_authorization' | 'incremental_authorization';
279
303
 
280
304
  /**
281
- * Fields specific to the categorty `incremental_authorization`.
305
+ * Fields specific to the category `incremental_authorization`.
282
306
  */
283
307
  incremental_authorization: RequestDetails.IncrementalAuthorization | null;
284
308
 
@@ -290,7 +314,7 @@ export namespace RealTimeDecision {
290
314
 
291
315
  export namespace RequestDetails {
292
316
  /**
293
- * Fields specific to the categorty `incremental_authorization`.
317
+ * Fields specific to the category `incremental_authorization`.
294
318
  */
295
319
  export interface IncrementalAuthorization {
296
320
  /**