increase 0.338.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 (61) hide show
  1. package/CHANGELOG.md +16 -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/check-transfers.d.ts +3 -2
  11. package/resources/check-transfers.d.ts.map +1 -1
  12. package/resources/check-transfers.js.map +1 -1
  13. package/resources/check-transfers.mjs.map +1 -1
  14. package/resources/fednow-transfers.d.ts +479 -0
  15. package/resources/fednow-transfers.d.ts.map +1 -0
  16. package/resources/fednow-transfers.js +80 -0
  17. package/resources/fednow-transfers.js.map +1 -0
  18. package/resources/fednow-transfers.mjs +75 -0
  19. package/resources/fednow-transfers.mjs.map +1 -0
  20. package/resources/inbound-fednow-transfers.d.ts +192 -0
  21. package/resources/inbound-fednow-transfers.d.ts.map +1 -0
  22. package/resources/inbound-fednow-transfers.js +38 -0
  23. package/resources/inbound-fednow-transfers.js.map +1 -0
  24. package/resources/inbound-fednow-transfers.mjs +33 -0
  25. package/resources/inbound-fednow-transfers.mjs.map +1 -0
  26. package/resources/index.d.ts +2 -0
  27. package/resources/index.d.ts.map +1 -1
  28. package/resources/index.js +8 -2
  29. package/resources/index.js.map +1 -1
  30. package/resources/index.mjs +2 -0
  31. package/resources/index.mjs.map +1 -1
  32. package/resources/simulations/inbound-fednow-transfers.d.ts +50 -0
  33. package/resources/simulations/inbound-fednow-transfers.d.ts.map +1 -0
  34. package/resources/simulations/inbound-fednow-transfers.js +26 -0
  35. package/resources/simulations/inbound-fednow-transfers.js.map +1 -0
  36. package/resources/simulations/inbound-fednow-transfers.mjs +22 -0
  37. package/resources/simulations/inbound-fednow-transfers.mjs.map +1 -0
  38. package/resources/simulations/index.d.ts +1 -0
  39. package/resources/simulations/index.d.ts.map +1 -1
  40. package/resources/simulations/index.js +3 -1
  41. package/resources/simulations/index.js.map +1 -1
  42. package/resources/simulations/index.mjs +1 -0
  43. package/resources/simulations/index.mjs.map +1 -1
  44. package/resources/simulations/simulations.d.ts +4 -0
  45. package/resources/simulations/simulations.d.ts.map +1 -1
  46. package/resources/simulations/simulations.js +4 -0
  47. package/resources/simulations/simulations.js.map +1 -1
  48. package/resources/simulations/simulations.mjs +4 -0
  49. package/resources/simulations/simulations.mjs.map +1 -1
  50. package/src/index.ts +34 -0
  51. package/src/resources/check-transfers.ts +3 -2
  52. package/src/resources/fednow-transfers.ts +613 -0
  53. package/src/resources/inbound-fednow-transfers.ts +255 -0
  54. package/src/resources/index.ts +13 -0
  55. package/src/resources/simulations/inbound-fednow-transfers.ts +64 -0
  56. package/src/resources/simulations/index.ts +1 -0
  57. package/src/resources/simulations/simulations.ts +10 -0
  58. package/src/version.ts +1 -1
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
  61. package/version.mjs +1 -1
@@ -0,0 +1,479 @@
1
+ import { APIResource } from "../resource.js";
2
+ import * as Core from "../core.js";
3
+ import { Page, type PageParams } from "../pagination.js";
4
+ export declare class FednowTransfers extends APIResource {
5
+ /**
6
+ * Create a FedNow Transfer
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const fednowTransfer = await client.fednowTransfers.create({
11
+ * account_id: 'account_in71c4amph0vgo2qllky',
12
+ * amount: 100,
13
+ * creditor_name: 'Ian Crease',
14
+ * debtor_name: 'National Phonograph Company',
15
+ * source_account_number_id:
16
+ * 'account_number_v18nkfqm6afpsrvy82b2',
17
+ * unstructured_remittance_information: 'Invoice 29582',
18
+ * });
19
+ * ```
20
+ */
21
+ create(body: FednowTransferCreateParams, options?: Core.RequestOptions): Core.APIPromise<FednowTransfer>;
22
+ /**
23
+ * Retrieve a FedNow Transfer
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const fednowTransfer =
28
+ * await client.fednowTransfers.retrieve(
29
+ * 'fednow_transfer_4i0mptrdu1mueg1196bg',
30
+ * );
31
+ * ```
32
+ */
33
+ retrieve(fednowTransferId: string, options?: Core.RequestOptions): Core.APIPromise<FednowTransfer>;
34
+ /**
35
+ * List FedNow Transfers
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * // Automatically fetches more pages as needed.
40
+ * for await (const fednowTransfer of client.fednowTransfers.list()) {
41
+ * // ...
42
+ * }
43
+ * ```
44
+ */
45
+ list(query?: FednowTransferListParams, options?: Core.RequestOptions): Core.PagePromise<FednowTransfersPage, FednowTransfer>;
46
+ list(options?: Core.RequestOptions): Core.PagePromise<FednowTransfersPage, FednowTransfer>;
47
+ /**
48
+ * Approve a FedNow Transfer
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * const fednowTransfer = await client.fednowTransfers.approve(
53
+ * 'fednow_transfer_4i0mptrdu1mueg1196bg',
54
+ * );
55
+ * ```
56
+ */
57
+ approve(fednowTransferId: string, options?: Core.RequestOptions): Core.APIPromise<FednowTransfer>;
58
+ /**
59
+ * Cancel a pending FedNow Transfer
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const fednowTransfer = await client.fednowTransfers.cancel(
64
+ * 'fednow_transfer_4i0mptrdu1mueg1196bg',
65
+ * );
66
+ * ```
67
+ */
68
+ cancel(fednowTransferId: string, options?: Core.RequestOptions): Core.APIPromise<FednowTransfer>;
69
+ }
70
+ export declare class FednowTransfersPage extends Page<FednowTransfer> {
71
+ }
72
+ /**
73
+ * FedNow transfers move funds, within seconds, between your Increase account and
74
+ * any other account supporting FedNow.
75
+ */
76
+ export interface FednowTransfer {
77
+ /**
78
+ * The FedNow Transfer's identifier.
79
+ */
80
+ id: string;
81
+ /**
82
+ * The Account from which the transfer was sent.
83
+ */
84
+ account_id: string;
85
+ /**
86
+ * The destination account number.
87
+ */
88
+ account_number: string;
89
+ /**
90
+ * If the transfer is acknowledged by the recipient bank, this will contain
91
+ * supplemental details.
92
+ */
93
+ acknowledgement: FednowTransfer.Acknowledgement | null;
94
+ /**
95
+ * The transfer amount in USD cents.
96
+ */
97
+ amount: number;
98
+ /**
99
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
100
+ * the transfer was created.
101
+ */
102
+ created_at: string;
103
+ /**
104
+ * What object created the transfer, either via the API or the dashboard.
105
+ */
106
+ created_by: FednowTransfer.CreatedBy | null;
107
+ /**
108
+ * The name of the transfer's recipient. This is set by the sender when creating
109
+ * the transfer.
110
+ */
111
+ creditor_name: string;
112
+ /**
113
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
114
+ * currency. For FedNow transfers this is always equal to `USD`.
115
+ *
116
+ * - `CAD` - Canadian Dollar (CAD)
117
+ * - `CHF` - Swiss Franc (CHF)
118
+ * - `EUR` - Euro (EUR)
119
+ * - `GBP` - British Pound (GBP)
120
+ * - `JPY` - Japanese Yen (JPY)
121
+ * - `USD` - US Dollar (USD)
122
+ */
123
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
124
+ /**
125
+ * The name of the transfer's sender. If not provided, defaults to the name of the
126
+ * account's entity.
127
+ */
128
+ debtor_name: string;
129
+ /**
130
+ * The identifier of the External Account the transfer was made to, if any.
131
+ */
132
+ external_account_id: string | null;
133
+ /**
134
+ * The idempotency key you chose for this object. This value is unique across
135
+ * Increase and is used to ensure that a request is only processed once. Learn more
136
+ * about [idempotency](https://increase.com/documentation/idempotency-keys).
137
+ */
138
+ idempotency_key: string | null;
139
+ /**
140
+ * The ID for the pending transaction representing the transfer.
141
+ */
142
+ pending_transaction_id: string | null;
143
+ /**
144
+ * If the transfer is rejected by FedNow or the destination financial institution,
145
+ * this will contain supplemental details.
146
+ */
147
+ rejection: FednowTransfer.Rejection | null;
148
+ /**
149
+ * The destination American Bankers' Association (ABA) Routing Transit Number
150
+ * (RTN).
151
+ */
152
+ routing_number: string;
153
+ /**
154
+ * The Account Number the recipient will see as having sent the transfer.
155
+ */
156
+ source_account_number_id: string;
157
+ /**
158
+ * The lifecycle status of the transfer.
159
+ *
160
+ * - `pending_reviewing` - The transfer is pending review by Increase.
161
+ * - `canceled` - The transfer has been canceled.
162
+ * - `reviewing_rejected` - The transfer has been rejected by Increase.
163
+ * - `requires_attention` - The transfer requires attention from an Increase
164
+ * operator.
165
+ * - `pending_approval` - The transfer is pending approval.
166
+ * - `pending_submitting` - The transfer is queued to be submitted to FedNow.
167
+ * - `pending_response` - The transfer has been submitted and is pending a response
168
+ * from FedNow.
169
+ * - `complete` - The transfer has been sent successfully and is complete.
170
+ * - `rejected` - The transfer was rejected by the network or the recipient's bank.
171
+ */
172
+ status: 'pending_reviewing' | 'canceled' | 'reviewing_rejected' | 'requires_attention' | 'pending_approval' | 'pending_submitting' | 'pending_response' | 'complete' | 'rejected';
173
+ /**
174
+ * After the transfer is submitted to FedNow, this will contain supplemental
175
+ * details.
176
+ */
177
+ submission: FednowTransfer.Submission | null;
178
+ /**
179
+ * The Transaction funding the transfer once it is complete.
180
+ */
181
+ transaction_id: string | null;
182
+ /**
183
+ * A constant representing the object's type. For this resource it will always be
184
+ * `fednow_transfer`.
185
+ */
186
+ type: 'fednow_transfer';
187
+ /**
188
+ * The Unique End-to-end Transaction Reference
189
+ * ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr))
190
+ * of the transfer.
191
+ */
192
+ unique_end_to_end_transaction_reference: string;
193
+ /**
194
+ * Unstructured information that will show on the recipient's bank statement.
195
+ */
196
+ unstructured_remittance_information: string;
197
+ }
198
+ export declare namespace FednowTransfer {
199
+ /**
200
+ * If the transfer is acknowledged by the recipient bank, this will contain
201
+ * supplemental details.
202
+ */
203
+ interface Acknowledgement {
204
+ /**
205
+ * When the transfer was acknowledged.
206
+ */
207
+ acknowledged_at: string;
208
+ }
209
+ /**
210
+ * What object created the transfer, either via the API or the dashboard.
211
+ */
212
+ interface CreatedBy {
213
+ /**
214
+ * If present, details about the API key that created the transfer.
215
+ */
216
+ api_key: CreatedBy.APIKey | null;
217
+ /**
218
+ * The type of object that created this transfer.
219
+ *
220
+ * - `api_key` - An API key. Details will be under the `api_key` object.
221
+ * - `oauth_application` - An OAuth application you connected to Increase. Details
222
+ * will be under the `oauth_application` object.
223
+ * - `user` - A User in the Increase dashboard. Details will be under the `user`
224
+ * object.
225
+ */
226
+ category: 'api_key' | 'oauth_application' | 'user';
227
+ /**
228
+ * If present, details about the OAuth Application that created the transfer.
229
+ */
230
+ oauth_application: CreatedBy.OAuthApplication | null;
231
+ /**
232
+ * If present, details about the User that created the transfer.
233
+ */
234
+ user: CreatedBy.User | null;
235
+ }
236
+ namespace CreatedBy {
237
+ /**
238
+ * If present, details about the API key that created the transfer.
239
+ */
240
+ interface APIKey {
241
+ /**
242
+ * The description set for the API key when it was created.
243
+ */
244
+ description: string | null;
245
+ }
246
+ /**
247
+ * If present, details about the OAuth Application that created the transfer.
248
+ */
249
+ interface OAuthApplication {
250
+ /**
251
+ * The name of the OAuth Application.
252
+ */
253
+ name: string;
254
+ }
255
+ /**
256
+ * If present, details about the User that created the transfer.
257
+ */
258
+ interface User {
259
+ /**
260
+ * The email address of the User.
261
+ */
262
+ email: string;
263
+ }
264
+ }
265
+ /**
266
+ * If the transfer is rejected by FedNow or the destination financial institution,
267
+ * this will contain supplemental details.
268
+ */
269
+ interface Rejection {
270
+ /**
271
+ * Additional information about the rejection provided by the recipient bank.
272
+ */
273
+ reject_reason_additional_information: string | null;
274
+ /**
275
+ * The reason the transfer was rejected as provided by the recipient bank or the
276
+ * FedNow network.
277
+ *
278
+ * - `account_closed` - The destination account is closed. Corresponds to the
279
+ * FedNow reason code `AC04`.
280
+ * - `account_blocked` - The destination account is currently blocked from
281
+ * receiving transactions. Corresponds to the FedNow reason code `AC06`.
282
+ * - `invalid_creditor_account_type` - The destination account is ineligible to
283
+ * receive FedNow transfers. Corresponds to the FedNow reason code `AC14`.
284
+ * - `invalid_creditor_account_number` - The destination account does not exist.
285
+ * Corresponds to the FedNow reason code `AC03`.
286
+ * - `invalid_creditor_financial_institution_identifier` - The destination routing
287
+ * number is invalid. Corresponds to the FedNow reason code `RC04`.
288
+ * - `end_customer_deceased` - The destination account holder is deceased.
289
+ * Corresponds to the FedNow reason code `MD07`.
290
+ * - `narrative` - The reason is provided as narrative information in the
291
+ * additional information field. Corresponds to the FedNow reason code `NARR`.
292
+ * - `transaction_forbidden` - FedNow transfers are not allowed to the destination
293
+ * account. Corresponds to the FedNow reason code `AG01`.
294
+ * - `transaction_type_not_supported` - FedNow transfers are not enabled for the
295
+ * destination account. Corresponds to the FedNow reason code `AG03`.
296
+ * - `amount_exceeds_bank_limits` - The amount is higher than the recipient is
297
+ * authorized to send or receive. Corresponds to the FedNow reason code `E990`.
298
+ * - `invalid_creditor_address` - The creditor's address is required, but missing
299
+ * or invalid. Corresponds to the FedNow reason code `BE04`.
300
+ * - `invalid_debtor_address` - The debtor's address is required, but missing or
301
+ * invalid. Corresponds to the FedNow reason code `BE07`.
302
+ * - `timeout` - There was a timeout processing the transfer. Corresponds to the
303
+ * FedNow reason code `E997`.
304
+ * - `processing_error` - The transfer was rejected due to an internal Increase
305
+ * issue. We have been notified.
306
+ * - `other` - Some other error or issue has occurred.
307
+ */
308
+ reject_reason_code: 'account_closed' | 'account_blocked' | 'invalid_creditor_account_type' | 'invalid_creditor_account_number' | 'invalid_creditor_financial_institution_identifier' | 'end_customer_deceased' | 'narrative' | 'transaction_forbidden' | 'transaction_type_not_supported' | 'amount_exceeds_bank_limits' | 'invalid_creditor_address' | 'invalid_debtor_address' | 'timeout' | 'processing_error' | 'other';
309
+ /**
310
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
311
+ * the transfer was rejected.
312
+ */
313
+ rejected_at: string | null;
314
+ }
315
+ /**
316
+ * After the transfer is submitted to FedNow, this will contain supplemental
317
+ * details.
318
+ */
319
+ interface Submission {
320
+ /**
321
+ * The FedNow network identification of the message submitted.
322
+ */
323
+ message_identification: string;
324
+ /**
325
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
326
+ * the transfer was submitted to FedNow.
327
+ */
328
+ submitted_at: string | null;
329
+ }
330
+ }
331
+ export interface FednowTransferCreateParams {
332
+ /**
333
+ * The identifier for the account that will send the transfer.
334
+ */
335
+ account_id: string;
336
+ /**
337
+ * The amount, in minor units, to send to the creditor.
338
+ */
339
+ amount: number;
340
+ /**
341
+ * The creditor's name.
342
+ */
343
+ creditor_name: string;
344
+ /**
345
+ * The debtor's name.
346
+ */
347
+ debtor_name: string;
348
+ /**
349
+ * The Account Number to include in the transfer as the debtor's account number.
350
+ */
351
+ source_account_number_id: string;
352
+ /**
353
+ * Unstructured remittance information to include in the transfer.
354
+ */
355
+ unstructured_remittance_information: string;
356
+ /**
357
+ * The creditor's account number.
358
+ */
359
+ account_number?: string;
360
+ /**
361
+ * The creditor's address.
362
+ */
363
+ creditor_address?: FednowTransferCreateParams.CreditorAddress;
364
+ /**
365
+ * The debtor's address.
366
+ */
367
+ debtor_address?: FednowTransferCreateParams.DebtorAddress;
368
+ /**
369
+ * The ID of an External Account to initiate a transfer to. If this parameter is
370
+ * provided, `account_number` and `routing_number` must be absent.
371
+ */
372
+ external_account_id?: string;
373
+ /**
374
+ * Whether the transfer requires explicit approval via the dashboard or API.
375
+ */
376
+ require_approval?: boolean;
377
+ /**
378
+ * The creditor's bank account routing number.
379
+ */
380
+ routing_number?: string;
381
+ }
382
+ export declare namespace FednowTransferCreateParams {
383
+ /**
384
+ * The creditor's address.
385
+ */
386
+ interface CreditorAddress {
387
+ /**
388
+ * The city, district, town, or village of the address.
389
+ */
390
+ city: string;
391
+ /**
392
+ * The postal code component of the address.
393
+ */
394
+ postal_code: string;
395
+ /**
396
+ * The US state component of the address.
397
+ */
398
+ state: string;
399
+ /**
400
+ * The first line of the address. This is usually the street number and street.
401
+ */
402
+ line1?: string;
403
+ }
404
+ /**
405
+ * The debtor's address.
406
+ */
407
+ interface DebtorAddress {
408
+ /**
409
+ * The city, district, town, or village of the address.
410
+ */
411
+ city: string;
412
+ /**
413
+ * The postal code component of the address.
414
+ */
415
+ postal_code: string;
416
+ /**
417
+ * The US state component of the address.
418
+ */
419
+ state: string;
420
+ /**
421
+ * The first line of the address. This is usually the street number and street.
422
+ */
423
+ line1?: string;
424
+ }
425
+ }
426
+ export interface FednowTransferListParams extends PageParams {
427
+ /**
428
+ * Filter FedNow Transfers to those that originated from the specified Account.
429
+ */
430
+ account_id?: string;
431
+ created_at?: FednowTransferListParams.CreatedAt;
432
+ /**
433
+ * Filter FedNow Transfers to those made to the specified External Account.
434
+ */
435
+ external_account_id?: string;
436
+ /**
437
+ * Filter records to the one with the specified `idempotency_key` you chose for
438
+ * that object. This value is unique across Increase and is used to ensure that a
439
+ * request is only processed once. Learn more about
440
+ * [idempotency](https://increase.com/documentation/idempotency-keys).
441
+ */
442
+ idempotency_key?: string;
443
+ status?: FednowTransferListParams.Status;
444
+ }
445
+ export declare namespace FednowTransferListParams {
446
+ interface CreatedAt {
447
+ /**
448
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
449
+ * timestamp.
450
+ */
451
+ after?: string;
452
+ /**
453
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
454
+ * timestamp.
455
+ */
456
+ before?: string;
457
+ /**
458
+ * Return results on or after this
459
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
460
+ */
461
+ on_or_after?: string;
462
+ /**
463
+ * Return results on or before this
464
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
465
+ */
466
+ on_or_before?: string;
467
+ }
468
+ interface Status {
469
+ /**
470
+ * Return results whose value is in the provided list. For GET requests, this
471
+ * should be encoded as a comma-delimited string, such as `?in=one,two,three`.
472
+ */
473
+ in?: Array<'pending_reviewing' | 'canceled' | 'reviewing_rejected' | 'requires_attention' | 'pending_approval' | 'pending_submitting' | 'pending_response' | 'complete' | 'rejected'>;
474
+ }
475
+ }
476
+ export declare namespace FednowTransfers {
477
+ export { type FednowTransfer as FednowTransfer, FednowTransfersPage as FednowTransfersPage, type FednowTransferCreateParams as FednowTransferCreateParams, type FednowTransferListParams as FednowTransferListParams, };
478
+ }
479
+ //# sourceMappingURL=fednow-transfers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fednow-transfers.d.ts","sourceRoot":"","sources":["../src/resources/fednow-transfers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtD,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;IAIxG;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;IAIlG;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,cAAc,CAAC;IACxD,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,cAAc,CAAC;IAW1F;;;;;;;;;OASG;IACH,OAAO,CAAC,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;IAIjG;;;;;;;;;OASG;IACH,MAAM,CAAC,gBAAgB,E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3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FednowTransfersPage = exports.FednowTransfers = void 0;
5
+ const resource_1 = require("../resource.js");
6
+ const core_1 = require("../core.js");
7
+ const pagination_1 = require("../pagination.js");
8
+ class FednowTransfers extends resource_1.APIResource {
9
+ /**
10
+ * Create a FedNow Transfer
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const fednowTransfer = await client.fednowTransfers.create({
15
+ * account_id: 'account_in71c4amph0vgo2qllky',
16
+ * amount: 100,
17
+ * creditor_name: 'Ian Crease',
18
+ * debtor_name: 'National Phonograph Company',
19
+ * source_account_number_id:
20
+ * 'account_number_v18nkfqm6afpsrvy82b2',
21
+ * unstructured_remittance_information: 'Invoice 29582',
22
+ * });
23
+ * ```
24
+ */
25
+ create(body, options) {
26
+ return this._client.post('/fednow_transfers', { body, ...options });
27
+ }
28
+ /**
29
+ * Retrieve a FedNow Transfer
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const fednowTransfer =
34
+ * await client.fednowTransfers.retrieve(
35
+ * 'fednow_transfer_4i0mptrdu1mueg1196bg',
36
+ * );
37
+ * ```
38
+ */
39
+ retrieve(fednowTransferId, options) {
40
+ return this._client.get(`/fednow_transfers/${fednowTransferId}`, options);
41
+ }
42
+ list(query = {}, options) {
43
+ if ((0, core_1.isRequestOptions)(query)) {
44
+ return this.list({}, query);
45
+ }
46
+ return this._client.getAPIList('/fednow_transfers', FednowTransfersPage, { query, ...options });
47
+ }
48
+ /**
49
+ * Approve a FedNow Transfer
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const fednowTransfer = await client.fednowTransfers.approve(
54
+ * 'fednow_transfer_4i0mptrdu1mueg1196bg',
55
+ * );
56
+ * ```
57
+ */
58
+ approve(fednowTransferId, options) {
59
+ return this._client.post(`/fednow_transfers/${fednowTransferId}/approve`, options);
60
+ }
61
+ /**
62
+ * Cancel a pending FedNow Transfer
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * const fednowTransfer = await client.fednowTransfers.cancel(
67
+ * 'fednow_transfer_4i0mptrdu1mueg1196bg',
68
+ * );
69
+ * ```
70
+ */
71
+ cancel(fednowTransferId, options) {
72
+ return this._client.post(`/fednow_transfers/${fednowTransferId}/cancel`, options);
73
+ }
74
+ }
75
+ exports.FednowTransfers = FednowTransfers;
76
+ class FednowTransfersPage extends pagination_1.Page {
77
+ }
78
+ exports.FednowTransfersPage = FednowTransfersPage;
79
+ FednowTransfers.FednowTransfersPage = FednowTransfersPage;
80
+ //# sourceMappingURL=fednow-transfers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fednow-transfers.js","sourceRoot":"","sources":["../src/resources/fednow-transfers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAE3C,iDAAsD;AAEtD,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAgC,EAAE,OAA6B;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,gBAAwB,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,gBAAgB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAkBD,IAAI,CACF,QAAwD,EAAE,EAC1D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,gBAAwB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,gBAAgB,UAAU,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,gBAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,gBAAgB,SAAS,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAzFD,0CAyFC;AAED,MAAa,mBAAoB,SAAQ,iBAAoB;CAAG;AAAhE,kDAAgE;AAyfhE,eAAe,CAAC,mBAAmB,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,75 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../resource.mjs";
3
+ import { isRequestOptions } from "../core.mjs";
4
+ import { Page } from "../pagination.mjs";
5
+ export class FednowTransfers extends APIResource {
6
+ /**
7
+ * Create a FedNow Transfer
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const fednowTransfer = await client.fednowTransfers.create({
12
+ * account_id: 'account_in71c4amph0vgo2qllky',
13
+ * amount: 100,
14
+ * creditor_name: 'Ian Crease',
15
+ * debtor_name: 'National Phonograph Company',
16
+ * source_account_number_id:
17
+ * 'account_number_v18nkfqm6afpsrvy82b2',
18
+ * unstructured_remittance_information: 'Invoice 29582',
19
+ * });
20
+ * ```
21
+ */
22
+ create(body, options) {
23
+ return this._client.post('/fednow_transfers', { body, ...options });
24
+ }
25
+ /**
26
+ * Retrieve a FedNow Transfer
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const fednowTransfer =
31
+ * await client.fednowTransfers.retrieve(
32
+ * 'fednow_transfer_4i0mptrdu1mueg1196bg',
33
+ * );
34
+ * ```
35
+ */
36
+ retrieve(fednowTransferId, options) {
37
+ return this._client.get(`/fednow_transfers/${fednowTransferId}`, options);
38
+ }
39
+ list(query = {}, options) {
40
+ if (isRequestOptions(query)) {
41
+ return this.list({}, query);
42
+ }
43
+ return this._client.getAPIList('/fednow_transfers', FednowTransfersPage, { query, ...options });
44
+ }
45
+ /**
46
+ * Approve a FedNow Transfer
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const fednowTransfer = await client.fednowTransfers.approve(
51
+ * 'fednow_transfer_4i0mptrdu1mueg1196bg',
52
+ * );
53
+ * ```
54
+ */
55
+ approve(fednowTransferId, options) {
56
+ return this._client.post(`/fednow_transfers/${fednowTransferId}/approve`, options);
57
+ }
58
+ /**
59
+ * Cancel a pending FedNow Transfer
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const fednowTransfer = await client.fednowTransfers.cancel(
64
+ * 'fednow_transfer_4i0mptrdu1mueg1196bg',
65
+ * );
66
+ * ```
67
+ */
68
+ cancel(fednowTransferId, options) {
69
+ return this._client.post(`/fednow_transfers/${fednowTransferId}/cancel`, options);
70
+ }
71
+ }
72
+ export class FednowTransfersPage extends Page {
73
+ }
74
+ FednowTransfers.FednowTransfersPage = FednowTransfersPage;
75
+ //# sourceMappingURL=fednow-transfers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fednow-transfers.mjs","sourceRoot":"","sources":["../src/resources/fednow-transfers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAgC,EAAE,OAA6B;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,gBAAwB,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,gB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