increase 0.339.0 → 0.340.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 (56) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/index.d.mts +6 -0
  3. package/index.d.ts +6 -0
  4. package/index.d.ts.map +1 -1
  5. package/index.js +8 -0
  6. package/index.js.map +1 -1
  7. package/index.mjs +8 -0
  8. package/index.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/fednow-transfers.d.ts +479 -0
  11. package/resources/fednow-transfers.d.ts.map +1 -0
  12. package/resources/fednow-transfers.js +80 -0
  13. package/resources/fednow-transfers.js.map +1 -0
  14. package/resources/fednow-transfers.mjs +75 -0
  15. package/resources/fednow-transfers.mjs.map +1 -0
  16. package/resources/inbound-fednow-transfers.d.ts +192 -0
  17. package/resources/inbound-fednow-transfers.d.ts.map +1 -0
  18. package/resources/inbound-fednow-transfers.js +38 -0
  19. package/resources/inbound-fednow-transfers.js.map +1 -0
  20. package/resources/inbound-fednow-transfers.mjs +33 -0
  21. package/resources/inbound-fednow-transfers.mjs.map +1 -0
  22. package/resources/index.d.ts +2 -0
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js +8 -2
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs +2 -0
  27. package/resources/index.mjs.map +1 -1
  28. package/resources/simulations/inbound-fednow-transfers.d.ts +50 -0
  29. package/resources/simulations/inbound-fednow-transfers.d.ts.map +1 -0
  30. package/resources/simulations/inbound-fednow-transfers.js +26 -0
  31. package/resources/simulations/inbound-fednow-transfers.js.map +1 -0
  32. package/resources/simulations/inbound-fednow-transfers.mjs +22 -0
  33. package/resources/simulations/inbound-fednow-transfers.mjs.map +1 -0
  34. package/resources/simulations/index.d.ts +1 -0
  35. package/resources/simulations/index.d.ts.map +1 -1
  36. package/resources/simulations/index.js +3 -1
  37. package/resources/simulations/index.js.map +1 -1
  38. package/resources/simulations/index.mjs +1 -0
  39. package/resources/simulations/index.mjs.map +1 -1
  40. package/resources/simulations/simulations.d.ts +4 -0
  41. package/resources/simulations/simulations.d.ts.map +1 -1
  42. package/resources/simulations/simulations.js +4 -0
  43. package/resources/simulations/simulations.js.map +1 -1
  44. package/resources/simulations/simulations.mjs +4 -0
  45. package/resources/simulations/simulations.mjs.map +1 -1
  46. package/src/index.ts +34 -0
  47. package/src/resources/fednow-transfers.ts +613 -0
  48. package/src/resources/inbound-fednow-transfers.ts +255 -0
  49. package/src/resources/index.ts +13 -0
  50. package/src/resources/simulations/inbound-fednow-transfers.ts +64 -0
  51. package/src/resources/simulations/index.ts +1 -0
  52. package/src/resources/simulations/simulations.ts +10 -0
  53. package/src/version.ts +1 -1
  54. package/version.d.ts +1 -1
  55. package/version.js +1 -1
  56. package/version.mjs +1 -1
@@ -0,0 +1,255 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../resource';
4
+ import { isRequestOptions } from '../core';
5
+ import * as Core from '../core';
6
+ import { Page, type PageParams } from '../pagination';
7
+
8
+ export class InboundFednowTransfers extends APIResource {
9
+ /**
10
+ * Retrieve an Inbound FedNow Transfer
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const inboundFednowTransfer =
15
+ * await client.inboundFednowTransfers.retrieve(
16
+ * 'inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20',
17
+ * );
18
+ * ```
19
+ */
20
+ retrieve(
21
+ inboundFednowTransferId: string,
22
+ options?: Core.RequestOptions,
23
+ ): Core.APIPromise<InboundFednowTransfer> {
24
+ return this._client.get(`/inbound_fednow_transfers/${inboundFednowTransferId}`, options);
25
+ }
26
+
27
+ /**
28
+ * List Inbound FedNow Transfers
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * // Automatically fetches more pages as needed.
33
+ * for await (const inboundFednowTransfer of client.inboundFednowTransfers.list()) {
34
+ * // ...
35
+ * }
36
+ * ```
37
+ */
38
+ list(
39
+ query?: InboundFednowTransferListParams,
40
+ options?: Core.RequestOptions,
41
+ ): Core.PagePromise<InboundFednowTransfersPage, InboundFednowTransfer>;
42
+ list(options?: Core.RequestOptions): Core.PagePromise<InboundFednowTransfersPage, InboundFednowTransfer>;
43
+ list(
44
+ query: InboundFednowTransferListParams | Core.RequestOptions = {},
45
+ options?: Core.RequestOptions,
46
+ ): Core.PagePromise<InboundFednowTransfersPage, InboundFednowTransfer> {
47
+ if (isRequestOptions(query)) {
48
+ return this.list({}, query);
49
+ }
50
+ return this._client.getAPIList('/inbound_fednow_transfers', InboundFednowTransfersPage, {
51
+ query,
52
+ ...options,
53
+ });
54
+ }
55
+ }
56
+
57
+ export class InboundFednowTransfersPage extends Page<InboundFednowTransfer> {}
58
+
59
+ /**
60
+ * An Inbound FedNow Transfer is a FedNow transfer initiated outside of Increase to
61
+ * your account.
62
+ */
63
+ export interface InboundFednowTransfer {
64
+ /**
65
+ * The inbound FedNow transfer's identifier.
66
+ */
67
+ id: string;
68
+
69
+ /**
70
+ * The Account to which the transfer was sent.
71
+ */
72
+ account_id: string;
73
+
74
+ /**
75
+ * The identifier of the Account Number to which this transfer was sent.
76
+ */
77
+ account_number_id: string;
78
+
79
+ /**
80
+ * The amount in USD cents.
81
+ */
82
+ amount: number;
83
+
84
+ /**
85
+ * If your transfer is confirmed, this will contain details of the confirmation.
86
+ */
87
+ confirmation: InboundFednowTransfer.Confirmation | null;
88
+
89
+ /**
90
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
91
+ * the transfer was created.
92
+ */
93
+ created_at: string;
94
+
95
+ /**
96
+ * The name the sender of the transfer specified as the recipient of the transfer.
97
+ */
98
+ creditor_name: string;
99
+
100
+ /**
101
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
102
+ * currency. This will always be "USD" for a FedNow transfer.
103
+ *
104
+ * - `CAD` - Canadian Dollar (CAD)
105
+ * - `CHF` - Swiss Franc (CHF)
106
+ * - `EUR` - Euro (EUR)
107
+ * - `GBP` - British Pound (GBP)
108
+ * - `JPY` - Japanese Yen (JPY)
109
+ * - `USD` - US Dollar (USD)
110
+ */
111
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
112
+
113
+ /**
114
+ * The account number of the account that sent the transfer.
115
+ */
116
+ debtor_account_number: string;
117
+
118
+ /**
119
+ * The name provided by the sender of the transfer.
120
+ */
121
+ debtor_name: string;
122
+
123
+ /**
124
+ * The routing number of the account that sent the transfer.
125
+ */
126
+ debtor_routing_number: string;
127
+
128
+ /**
129
+ * If your transfer is declined, this will contain details of the decline.
130
+ */
131
+ decline: InboundFednowTransfer.Decline | null;
132
+
133
+ /**
134
+ * The lifecycle status of the transfer.
135
+ *
136
+ * - `pending_confirming` - The transfer is pending confirmation.
137
+ * - `timed_out` - The transfer was not responded to in time.
138
+ * - `confirmed` - The transfer has been received successfully and is confirmed.
139
+ * - `declined` - The transfer has been declined.
140
+ * - `requires_attention` - The transfer requires attention from an Increase
141
+ * operator.
142
+ */
143
+ status: 'pending_confirming' | 'timed_out' | 'confirmed' | 'declined' | 'requires_attention';
144
+
145
+ /**
146
+ * The identifier of the Transaction object created when the transfer was
147
+ * confirmed.
148
+ */
149
+ transaction_id: string | null;
150
+
151
+ /**
152
+ * A constant representing the object's type. For this resource it will always be
153
+ * `inbound_fednow_transfer`.
154
+ */
155
+ type: 'inbound_fednow_transfer';
156
+
157
+ /**
158
+ * Additional information included with the transfer.
159
+ */
160
+ unstructured_remittance_information: string | null;
161
+ }
162
+
163
+ export namespace InboundFednowTransfer {
164
+ /**
165
+ * If your transfer is confirmed, this will contain details of the confirmation.
166
+ */
167
+ export interface Confirmation {
168
+ /**
169
+ * The identifier of the FedNow Transfer that led to this Transaction.
170
+ */
171
+ transfer_id: string;
172
+ }
173
+
174
+ /**
175
+ * If your transfer is declined, this will contain details of the decline.
176
+ */
177
+ export interface Decline {
178
+ /**
179
+ * Why the transfer was declined.
180
+ *
181
+ * - `account_number_canceled` - The account number is canceled.
182
+ * - `account_number_disabled` - The account number is disabled.
183
+ * - `account_restricted` - Your account is restricted.
184
+ * - `group_locked` - Your account is inactive.
185
+ * - `entity_not_active` - The account's entity is not active.
186
+ * - `fednow_not_enabled` - Your account is not enabled to receive FedNow
187
+ * transfers.
188
+ */
189
+ reason:
190
+ | 'account_number_canceled'
191
+ | 'account_number_disabled'
192
+ | 'account_restricted'
193
+ | 'group_locked'
194
+ | 'entity_not_active'
195
+ | 'fednow_not_enabled';
196
+
197
+ /**
198
+ * The identifier of the FedNow Transfer that led to this declined transaction.
199
+ */
200
+ transfer_id: string;
201
+ }
202
+ }
203
+
204
+ export interface InboundFednowTransferListParams extends PageParams {
205
+ /**
206
+ * Filter Inbound FedNow Transfers to those belonging to the specified Account.
207
+ */
208
+ account_id?: string;
209
+
210
+ /**
211
+ * Filter Inbound FedNow Transfers to ones belonging to the specified Account
212
+ * Number.
213
+ */
214
+ account_number_id?: string;
215
+
216
+ created_at?: InboundFednowTransferListParams.CreatedAt;
217
+ }
218
+
219
+ export namespace InboundFednowTransferListParams {
220
+ export interface CreatedAt {
221
+ /**
222
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
223
+ * timestamp.
224
+ */
225
+ after?: string;
226
+
227
+ /**
228
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
229
+ * timestamp.
230
+ */
231
+ before?: string;
232
+
233
+ /**
234
+ * Return results on or after this
235
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
236
+ */
237
+ on_or_after?: string;
238
+
239
+ /**
240
+ * Return results on or before this
241
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
242
+ */
243
+ on_or_before?: string;
244
+ }
245
+ }
246
+
247
+ InboundFednowTransfers.InboundFednowTransfersPage = InboundFednowTransfersPage;
248
+
249
+ export declare namespace InboundFednowTransfers {
250
+ export {
251
+ type InboundFednowTransfer as InboundFednowTransfer,
252
+ InboundFednowTransfersPage as InboundFednowTransfersPage,
253
+ type InboundFednowTransferListParams as InboundFednowTransferListParams,
254
+ };
255
+ }
@@ -202,6 +202,13 @@ export {
202
202
  type ExternalAccountUpdateParams,
203
203
  type ExternalAccountListParams,
204
204
  } from './external-accounts';
205
+ export {
206
+ FednowTransfersPage,
207
+ FednowTransfers,
208
+ type FednowTransfer,
209
+ type FednowTransferCreateParams,
210
+ type FednowTransferListParams,
211
+ } from './fednow-transfers';
205
212
  export { FileLinks, type FileLink, type FileLinkCreateParams } from './file-links';
206
213
  export { FilesPage, Files, type File, type FileCreateParams, type FileListParams } from './files';
207
214
  export { Groups, type Group } from './groups';
@@ -221,6 +228,12 @@ export {
221
228
  type InboundCheckDepositListParams,
222
229
  type InboundCheckDepositReturnParams,
223
230
  } from './inbound-check-deposits';
231
+ export {
232
+ InboundFednowTransfersPage,
233
+ InboundFednowTransfers,
234
+ type InboundFednowTransfer,
235
+ type InboundFednowTransferListParams,
236
+ } from './inbound-fednow-transfers';
224
237
  export {
225
238
  InboundMailItemsPage,
226
239
  InboundMailItems,
@@ -0,0 +1,64 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
+ import * as InboundFednowTransfersAPI from '../inbound-fednow-transfers';
6
+
7
+ export class InboundFednowTransfers extends APIResource {
8
+ /**
9
+ * Simulates an [Inbound FedNow Transfer](#inbound-fednow-transfers) to your
10
+ * account.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const inboundFednowTransfer =
15
+ * await client.simulations.inboundFednowTransfers.create({
16
+ * account_number_id:
17
+ * 'account_number_v18nkfqm6afpsrvy82b2',
18
+ * amount: 1000,
19
+ * });
20
+ * ```
21
+ */
22
+ create(
23
+ body: InboundFednowTransferCreateParams,
24
+ options?: Core.RequestOptions,
25
+ ): Core.APIPromise<InboundFednowTransfersAPI.InboundFednowTransfer> {
26
+ return this._client.post('/simulations/inbound_fednow_transfers', { body, ...options });
27
+ }
28
+ }
29
+
30
+ export interface InboundFednowTransferCreateParams {
31
+ /**
32
+ * The identifier of the Account Number the inbound FedNow Transfer is for.
33
+ */
34
+ account_number_id: string;
35
+
36
+ /**
37
+ * The transfer amount in USD cents. Must be positive.
38
+ */
39
+ amount: number;
40
+
41
+ /**
42
+ * The account number of the account that sent the transfer.
43
+ */
44
+ debtor_account_number?: string;
45
+
46
+ /**
47
+ * The name provided by the sender of the transfer.
48
+ */
49
+ debtor_name?: string;
50
+
51
+ /**
52
+ * The routing number of the account that sent the transfer.
53
+ */
54
+ debtor_routing_number?: string;
55
+
56
+ /**
57
+ * Additional information included with the transfer.
58
+ */
59
+ unstructured_remittance_information?: string;
60
+ }
61
+
62
+ export declare namespace InboundFednowTransfers {
63
+ export { type InboundFednowTransferCreateParams as InboundFednowTransferCreateParams };
64
+ }
@@ -34,6 +34,7 @@ export {
34
34
  export { Documents, type DocumentCreateParams } from './documents';
35
35
  export { InboundACHTransfers, type InboundACHTransferCreateParams } from './inbound-ach-transfers';
36
36
  export { InboundCheckDeposits, type InboundCheckDepositCreateParams } from './inbound-check-deposits';
37
+ export { InboundFednowTransfers, type InboundFednowTransferCreateParams } from './inbound-fednow-transfers';
37
38
  export { InboundMailItems, type InboundMailItemCreateParams } from './inbound-mail-items';
38
39
  export {
39
40
  InboundRealTimePaymentsTransfers,
@@ -53,6 +53,8 @@ import * as InboundACHTransfersAPI from './inbound-ach-transfers';
53
53
  import { InboundACHTransferCreateParams, InboundACHTransfers } from './inbound-ach-transfers';
54
54
  import * as InboundCheckDepositsAPI from './inbound-check-deposits';
55
55
  import { InboundCheckDepositCreateParams, InboundCheckDeposits } from './inbound-check-deposits';
56
+ import * as InboundFednowTransfersAPI from './inbound-fednow-transfers';
57
+ import { InboundFednowTransferCreateParams, InboundFednowTransfers } from './inbound-fednow-transfers';
56
58
  import * as InboundMailItemsAPI from './inbound-mail-items';
57
59
  import { InboundMailItemCreateParams, InboundMailItems } from './inbound-mail-items';
58
60
  import * as InboundRealTimePaymentsTransfersAPI from './inbound-real-time-payments-transfers';
@@ -126,6 +128,8 @@ export class Simulations extends APIResource {
126
128
  new RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers(this._client);
127
129
  inboundRealTimePaymentsTransfers: InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransfers =
128
130
  new InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransfers(this._client);
131
+ inboundFednowTransfers: InboundFednowTransfersAPI.InboundFednowTransfers =
132
+ new InboundFednowTransfersAPI.InboundFednowTransfers(this._client);
129
133
  checkDeposits: CheckDepositsAPI.CheckDeposits = new CheckDepositsAPI.CheckDeposits(this._client);
130
134
  inboundMailItems: InboundMailItemsAPI.InboundMailItems = new InboundMailItemsAPI.InboundMailItems(
131
135
  this._client,
@@ -161,6 +165,7 @@ Simulations.CheckTransfers = CheckTransfers;
161
165
  Simulations.InboundCheckDeposits = InboundCheckDeposits;
162
166
  Simulations.RealTimePaymentsTransfers = RealTimePaymentsTransfers;
163
167
  Simulations.InboundRealTimePaymentsTransfers = InboundRealTimePaymentsTransfers;
168
+ Simulations.InboundFednowTransfers = InboundFednowTransfers;
164
169
  Simulations.CheckDeposits = CheckDeposits;
165
170
  Simulations.InboundMailItems = InboundMailItems;
166
171
  Simulations.Programs = Programs;
@@ -262,6 +267,11 @@ export declare namespace Simulations {
262
267
  type InboundRealTimePaymentsTransferCreateParams as InboundRealTimePaymentsTransferCreateParams,
263
268
  };
264
269
 
270
+ export {
271
+ InboundFednowTransfers as InboundFednowTransfers,
272
+ type InboundFednowTransferCreateParams as InboundFednowTransferCreateParams,
273
+ };
274
+
265
275
  export { CheckDeposits as CheckDeposits };
266
276
 
267
277
  export {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.339.0'; // x-release-please-version
1
+ export const VERSION = '0.340.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.339.0";
1
+ export declare const VERSION = "0.340.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.339.0'; // x-release-please-version
4
+ exports.VERSION = '0.340.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.339.0'; // x-release-please-version
1
+ export const VERSION = '0.340.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map