increase 0.396.0 → 0.398.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.
- package/CHANGELOG.md +16 -0
- package/bin/cli +12 -5
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/swift-transfers.d.mts +492 -0
- package/resources/swift-transfers.d.mts.map +1 -0
- package/resources/swift-transfers.d.ts +492 -0
- package/resources/swift-transfers.d.ts.map +1 -0
- package/resources/swift-transfers.js +96 -0
- package/resources/swift-transfers.js.map +1 -0
- package/resources/swift-transfers.mjs +92 -0
- package/resources/swift-transfers.mjs.map +1 -0
- package/src/client.ts +17 -0
- package/src/resources/index.ts +7 -0
- package/src/resources/swift-transfers.ts +612 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { Page, type PageParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class SwiftTransfers extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a Swift Transfer
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const swiftTransfer = await client.swiftTransfers.create({
|
|
12
|
+
* account_id: 'account_in71c4amph0vgo2qllky',
|
|
13
|
+
* account_number: '987654321',
|
|
14
|
+
* bank_identification_code: 'ECBFDEFFTPP',
|
|
15
|
+
* creditor_address: {
|
|
16
|
+
* city: 'Frankfurt',
|
|
17
|
+
* country: 'DE',
|
|
18
|
+
* line1: 'Sonnemannstrasse 20',
|
|
19
|
+
* },
|
|
20
|
+
* creditor_name: 'Ian Crease',
|
|
21
|
+
* debtor_address: {
|
|
22
|
+
* city: 'New York',
|
|
23
|
+
* country: 'US',
|
|
24
|
+
* line1: '33 Liberty Street',
|
|
25
|
+
* },
|
|
26
|
+
* debtor_name: 'National Phonograph Company',
|
|
27
|
+
* instructed_amount: 100,
|
|
28
|
+
* instructed_currency: 'USD',
|
|
29
|
+
* source_account_number_id:
|
|
30
|
+
* 'account_number_v18nkfqm6afpsrvy82b2',
|
|
31
|
+
* unstructured_remittance_information: 'New Swift transfer',
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
create(body: SwiftTransferCreateParams, options?: RequestOptions): APIPromise<SwiftTransfer>;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieve a Swift Transfer
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const swiftTransfer = await client.swiftTransfers.retrieve(
|
|
42
|
+
* 'swift_transfer_29h21xkng03788zwd3fh',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
retrieve(swiftTransferID: string, options?: RequestOptions): APIPromise<SwiftTransfer>;
|
|
47
|
+
/**
|
|
48
|
+
* List Swift Transfers
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* // Automatically fetches more pages as needed.
|
|
53
|
+
* for await (const swiftTransfer of client.swiftTransfers.list()) {
|
|
54
|
+
* // ...
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
list(query?: SwiftTransferListParams | null | undefined, options?: RequestOptions): PagePromise<SwiftTransfersPage, SwiftTransfer>;
|
|
59
|
+
/**
|
|
60
|
+
* Approve a Swift Transfer
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const swiftTransfer = await client.swiftTransfers.approve(
|
|
65
|
+
* 'swift_transfer_29h21xkng03788zwd3fh',
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
approve(swiftTransferID: string, options?: RequestOptions): APIPromise<SwiftTransfer>;
|
|
70
|
+
/**
|
|
71
|
+
* Cancel a pending Swift Transfer
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const swiftTransfer = await client.swiftTransfers.cancel(
|
|
76
|
+
* 'swift_transfer_29h21xkng03788zwd3fh',
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
cancel(swiftTransferID: string, options?: RequestOptions): APIPromise<SwiftTransfer>;
|
|
81
|
+
}
|
|
82
|
+
export type SwiftTransfersPage = Page<SwiftTransfer>;
|
|
83
|
+
/**
|
|
84
|
+
* Swift Transfers send funds internationally.
|
|
85
|
+
*/
|
|
86
|
+
export interface SwiftTransfer {
|
|
87
|
+
/**
|
|
88
|
+
* The Swift transfer's identifier.
|
|
89
|
+
*/
|
|
90
|
+
id: string;
|
|
91
|
+
/**
|
|
92
|
+
* The Account to which the transfer belongs.
|
|
93
|
+
*/
|
|
94
|
+
account_id: string;
|
|
95
|
+
/**
|
|
96
|
+
* The creditor's account number.
|
|
97
|
+
*/
|
|
98
|
+
account_number: string;
|
|
99
|
+
/**
|
|
100
|
+
* The transfer amount in USD cents.
|
|
101
|
+
*/
|
|
102
|
+
amount: number;
|
|
103
|
+
/**
|
|
104
|
+
* The bank identification code (BIC) of the creditor.
|
|
105
|
+
*/
|
|
106
|
+
bank_identification_code: string;
|
|
107
|
+
/**
|
|
108
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
109
|
+
* the transfer was created.
|
|
110
|
+
*/
|
|
111
|
+
created_at: string;
|
|
112
|
+
/**
|
|
113
|
+
* What object created the transfer, either via the API or the dashboard.
|
|
114
|
+
*/
|
|
115
|
+
created_by: SwiftTransfer.CreatedBy;
|
|
116
|
+
/**
|
|
117
|
+
* The creditor's address.
|
|
118
|
+
*/
|
|
119
|
+
creditor_address: SwiftTransfer.CreditorAddress;
|
|
120
|
+
/**
|
|
121
|
+
* The creditor's name.
|
|
122
|
+
*/
|
|
123
|
+
creditor_name: string;
|
|
124
|
+
/**
|
|
125
|
+
* The debtor's address.
|
|
126
|
+
*/
|
|
127
|
+
debtor_address: SwiftTransfer.DebtorAddress;
|
|
128
|
+
/**
|
|
129
|
+
* The debtor's name.
|
|
130
|
+
*/
|
|
131
|
+
debtor_name: string;
|
|
132
|
+
/**
|
|
133
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
134
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
135
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
136
|
+
*/
|
|
137
|
+
idempotency_key: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* The amount that was instructed to be transferred in minor units of the
|
|
140
|
+
* `instructed_currency`.
|
|
141
|
+
*/
|
|
142
|
+
instructed_amount: number;
|
|
143
|
+
/**
|
|
144
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
|
|
145
|
+
* instructed amount.
|
|
146
|
+
*
|
|
147
|
+
* - `USD` - United States Dollar
|
|
148
|
+
*/
|
|
149
|
+
instructed_currency: 'USD';
|
|
150
|
+
/**
|
|
151
|
+
* The ID for the pending transaction representing the transfer.
|
|
152
|
+
*/
|
|
153
|
+
pending_transaction_id: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* The creditor's bank account routing or transit number. Required in certain
|
|
156
|
+
* countries.
|
|
157
|
+
*/
|
|
158
|
+
routing_number: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* The Account Number included in the transfer as the debtor's account number.
|
|
161
|
+
*/
|
|
162
|
+
source_account_number_id: string;
|
|
163
|
+
/**
|
|
164
|
+
* The lifecycle status of the transfer.
|
|
165
|
+
*
|
|
166
|
+
* - `pending_approval` - The transfer is pending approval.
|
|
167
|
+
* - `canceled` - The transfer has been canceled.
|
|
168
|
+
* - `pending_reviewing` - The transfer is pending review by Increase.
|
|
169
|
+
* - `requires_attention` - The transfer requires attention from an Increase
|
|
170
|
+
* operator.
|
|
171
|
+
* - `pending_initiating` - The transfer is pending initiation.
|
|
172
|
+
* - `initiated` - The transfer has been initiated.
|
|
173
|
+
* - `rejected` - The transfer has been rejected by Increase.
|
|
174
|
+
* - `returned` - The transfer has been returned.
|
|
175
|
+
*/
|
|
176
|
+
status: 'pending_approval' | 'canceled' | 'pending_reviewing' | 'requires_attention' | 'pending_initiating' | 'initiated' | 'rejected' | 'returned';
|
|
177
|
+
/**
|
|
178
|
+
* The ID for the transaction funding the transfer. This will be populated after
|
|
179
|
+
* the transfer is initiated.
|
|
180
|
+
*/
|
|
181
|
+
transaction_id: string | null;
|
|
182
|
+
/**
|
|
183
|
+
* A constant representing the object's type. For this resource it will always be
|
|
184
|
+
* `swift_transfer`.
|
|
185
|
+
*/
|
|
186
|
+
type: 'swift_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
|
+
* for the transfer.
|
|
191
|
+
*/
|
|
192
|
+
unique_end_to_end_transaction_reference: string;
|
|
193
|
+
/**
|
|
194
|
+
* The unstructured remittance information that was included with the transfer.
|
|
195
|
+
*/
|
|
196
|
+
unstructured_remittance_information: string;
|
|
197
|
+
}
|
|
198
|
+
export declare namespace SwiftTransfer {
|
|
199
|
+
/**
|
|
200
|
+
* What object created the transfer, either via the API or the dashboard.
|
|
201
|
+
*/
|
|
202
|
+
interface CreatedBy {
|
|
203
|
+
/**
|
|
204
|
+
* If present, details about the API key that created the transfer.
|
|
205
|
+
*/
|
|
206
|
+
api_key: CreatedBy.APIKey | null;
|
|
207
|
+
/**
|
|
208
|
+
* The type of object that created this transfer.
|
|
209
|
+
*
|
|
210
|
+
* - `api_key` - An API key. Details will be under the `api_key` object.
|
|
211
|
+
* - `oauth_application` - An OAuth application you connected to Increase. Details
|
|
212
|
+
* will be under the `oauth_application` object.
|
|
213
|
+
* - `user` - A User in the Increase dashboard. Details will be under the `user`
|
|
214
|
+
* object.
|
|
215
|
+
*/
|
|
216
|
+
category: 'api_key' | 'oauth_application' | 'user';
|
|
217
|
+
/**
|
|
218
|
+
* If present, details about the OAuth Application that created the transfer.
|
|
219
|
+
*/
|
|
220
|
+
oauth_application: CreatedBy.OAuthApplication | null;
|
|
221
|
+
/**
|
|
222
|
+
* If present, details about the User that created the transfer.
|
|
223
|
+
*/
|
|
224
|
+
user: CreatedBy.User | null;
|
|
225
|
+
}
|
|
226
|
+
namespace CreatedBy {
|
|
227
|
+
/**
|
|
228
|
+
* If present, details about the API key that created the transfer.
|
|
229
|
+
*/
|
|
230
|
+
interface APIKey {
|
|
231
|
+
/**
|
|
232
|
+
* The description set for the API key when it was created.
|
|
233
|
+
*/
|
|
234
|
+
description: string | null;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* If present, details about the OAuth Application that created the transfer.
|
|
238
|
+
*/
|
|
239
|
+
interface OAuthApplication {
|
|
240
|
+
/**
|
|
241
|
+
* The name of the OAuth Application.
|
|
242
|
+
*/
|
|
243
|
+
name: string;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* If present, details about the User that created the transfer.
|
|
247
|
+
*/
|
|
248
|
+
interface User {
|
|
249
|
+
/**
|
|
250
|
+
* The email address of the User.
|
|
251
|
+
*/
|
|
252
|
+
email: string;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* The creditor's address.
|
|
257
|
+
*/
|
|
258
|
+
interface CreditorAddress {
|
|
259
|
+
/**
|
|
260
|
+
* The city, district, town, or village of the address.
|
|
261
|
+
*/
|
|
262
|
+
city: string | null;
|
|
263
|
+
/**
|
|
264
|
+
* The two-letter
|
|
265
|
+
* [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
|
|
266
|
+
* the country of the address.
|
|
267
|
+
*/
|
|
268
|
+
country: string;
|
|
269
|
+
/**
|
|
270
|
+
* The first line of the address.
|
|
271
|
+
*/
|
|
272
|
+
line1: string;
|
|
273
|
+
/**
|
|
274
|
+
* The second line of the address.
|
|
275
|
+
*/
|
|
276
|
+
line2: string | null;
|
|
277
|
+
/**
|
|
278
|
+
* The ZIP or postal code of the address.
|
|
279
|
+
*/
|
|
280
|
+
postal_code: string | null;
|
|
281
|
+
/**
|
|
282
|
+
* The state, province, or region of the address. Required in certain countries.
|
|
283
|
+
*/
|
|
284
|
+
state: string | null;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* The debtor's address.
|
|
288
|
+
*/
|
|
289
|
+
interface DebtorAddress {
|
|
290
|
+
/**
|
|
291
|
+
* The city, district, town, or village of the address.
|
|
292
|
+
*/
|
|
293
|
+
city: string | null;
|
|
294
|
+
/**
|
|
295
|
+
* The two-letter
|
|
296
|
+
* [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
|
|
297
|
+
* the country of the address.
|
|
298
|
+
*/
|
|
299
|
+
country: string;
|
|
300
|
+
/**
|
|
301
|
+
* The first line of the address.
|
|
302
|
+
*/
|
|
303
|
+
line1: string;
|
|
304
|
+
/**
|
|
305
|
+
* The second line of the address.
|
|
306
|
+
*/
|
|
307
|
+
line2: string | null;
|
|
308
|
+
/**
|
|
309
|
+
* The ZIP or postal code of the address.
|
|
310
|
+
*/
|
|
311
|
+
postal_code: string | null;
|
|
312
|
+
/**
|
|
313
|
+
* The state, province, or region of the address. Required in certain countries.
|
|
314
|
+
*/
|
|
315
|
+
state: string | null;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
export interface SwiftTransferCreateParams {
|
|
319
|
+
/**
|
|
320
|
+
* The identifier for the account that will send the transfer.
|
|
321
|
+
*/
|
|
322
|
+
account_id: string;
|
|
323
|
+
/**
|
|
324
|
+
* The creditor's account number.
|
|
325
|
+
*/
|
|
326
|
+
account_number: string;
|
|
327
|
+
/**
|
|
328
|
+
* The bank identification code (BIC) of the creditor. If it ends with the
|
|
329
|
+
* three-character branch code, this must be 11 characters long. Otherwise this
|
|
330
|
+
* must be 8 characters and the branch code will be assumed to be `XXX`.
|
|
331
|
+
*/
|
|
332
|
+
bank_identification_code: string;
|
|
333
|
+
/**
|
|
334
|
+
* The creditor's address.
|
|
335
|
+
*/
|
|
336
|
+
creditor_address: SwiftTransferCreateParams.CreditorAddress;
|
|
337
|
+
/**
|
|
338
|
+
* The creditor's name.
|
|
339
|
+
*/
|
|
340
|
+
creditor_name: string;
|
|
341
|
+
/**
|
|
342
|
+
* The debtor's address.
|
|
343
|
+
*/
|
|
344
|
+
debtor_address: SwiftTransferCreateParams.DebtorAddress;
|
|
345
|
+
/**
|
|
346
|
+
* The debtor's name.
|
|
347
|
+
*/
|
|
348
|
+
debtor_name: string;
|
|
349
|
+
/**
|
|
350
|
+
* The amount, in minor units of `instructed_currency`, to send to the creditor.
|
|
351
|
+
*/
|
|
352
|
+
instructed_amount: number;
|
|
353
|
+
/**
|
|
354
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
|
|
355
|
+
* instructed amount.
|
|
356
|
+
*
|
|
357
|
+
* - `USD` - United States Dollar
|
|
358
|
+
*/
|
|
359
|
+
instructed_currency: 'USD';
|
|
360
|
+
/**
|
|
361
|
+
* The Account Number to include in the transfer as the debtor's account number.
|
|
362
|
+
*/
|
|
363
|
+
source_account_number_id: string;
|
|
364
|
+
/**
|
|
365
|
+
* Unstructured remittance information to include in the transfer.
|
|
366
|
+
*/
|
|
367
|
+
unstructured_remittance_information: string;
|
|
368
|
+
/**
|
|
369
|
+
* Whether the transfer requires explicit approval via the dashboard or API.
|
|
370
|
+
*/
|
|
371
|
+
require_approval?: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* The creditor's bank account routing or transit number. Required in certain
|
|
374
|
+
* countries.
|
|
375
|
+
*/
|
|
376
|
+
routing_number?: string;
|
|
377
|
+
[k: string]: unknown;
|
|
378
|
+
}
|
|
379
|
+
export declare namespace SwiftTransferCreateParams {
|
|
380
|
+
/**
|
|
381
|
+
* The creditor's address.
|
|
382
|
+
*/
|
|
383
|
+
interface CreditorAddress {
|
|
384
|
+
/**
|
|
385
|
+
* The city, district, town, or village of the address.
|
|
386
|
+
*/
|
|
387
|
+
city: string;
|
|
388
|
+
/**
|
|
389
|
+
* The two-letter
|
|
390
|
+
* [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
|
|
391
|
+
* the country of the address.
|
|
392
|
+
*/
|
|
393
|
+
country: string;
|
|
394
|
+
/**
|
|
395
|
+
* The first line of the address. This is usually the street number and street.
|
|
396
|
+
*/
|
|
397
|
+
line1: string;
|
|
398
|
+
/**
|
|
399
|
+
* The second line of the address. This might be the floor or room number.
|
|
400
|
+
*/
|
|
401
|
+
line2?: string;
|
|
402
|
+
/**
|
|
403
|
+
* The ZIP or postal code of the address. Required in certain countries.
|
|
404
|
+
*/
|
|
405
|
+
postal_code?: string;
|
|
406
|
+
/**
|
|
407
|
+
* The state, province, or region of the address. Required in certain countries.
|
|
408
|
+
*/
|
|
409
|
+
state?: string;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* The debtor's address.
|
|
413
|
+
*/
|
|
414
|
+
interface DebtorAddress {
|
|
415
|
+
/**
|
|
416
|
+
* The city, district, town, or village of the address.
|
|
417
|
+
*/
|
|
418
|
+
city: string;
|
|
419
|
+
/**
|
|
420
|
+
* The two-letter
|
|
421
|
+
* [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
|
|
422
|
+
* the country of the address.
|
|
423
|
+
*/
|
|
424
|
+
country: string;
|
|
425
|
+
/**
|
|
426
|
+
* The first line of the address. This is usually the street number and street.
|
|
427
|
+
*/
|
|
428
|
+
line1: string;
|
|
429
|
+
/**
|
|
430
|
+
* The second line of the address. This might be the floor or room number.
|
|
431
|
+
*/
|
|
432
|
+
line2?: string;
|
|
433
|
+
/**
|
|
434
|
+
* The ZIP or postal code of the address. Required in certain countries.
|
|
435
|
+
*/
|
|
436
|
+
postal_code?: string;
|
|
437
|
+
/**
|
|
438
|
+
* The state, province, or region of the address. Required in certain countries.
|
|
439
|
+
*/
|
|
440
|
+
state?: string;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
export interface SwiftTransferListParams extends PageParams {
|
|
444
|
+
/**
|
|
445
|
+
* Filter Swift Transfers to those that originated from the specified Account.
|
|
446
|
+
*/
|
|
447
|
+
account_id?: string;
|
|
448
|
+
created_at?: SwiftTransferListParams.CreatedAt;
|
|
449
|
+
/**
|
|
450
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
451
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
452
|
+
* request is only processed once. Learn more about
|
|
453
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
454
|
+
*/
|
|
455
|
+
idempotency_key?: string;
|
|
456
|
+
status?: SwiftTransferListParams.Status;
|
|
457
|
+
}
|
|
458
|
+
export declare namespace SwiftTransferListParams {
|
|
459
|
+
interface CreatedAt {
|
|
460
|
+
/**
|
|
461
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
462
|
+
* timestamp.
|
|
463
|
+
*/
|
|
464
|
+
after?: string;
|
|
465
|
+
/**
|
|
466
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
467
|
+
* timestamp.
|
|
468
|
+
*/
|
|
469
|
+
before?: string;
|
|
470
|
+
/**
|
|
471
|
+
* Return results on or after this
|
|
472
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
473
|
+
*/
|
|
474
|
+
on_or_after?: string;
|
|
475
|
+
/**
|
|
476
|
+
* Return results on or before this
|
|
477
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
478
|
+
*/
|
|
479
|
+
on_or_before?: string;
|
|
480
|
+
}
|
|
481
|
+
interface Status {
|
|
482
|
+
/**
|
|
483
|
+
* Return results whose value is in the provided list. For GET requests, this
|
|
484
|
+
* should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
485
|
+
*/
|
|
486
|
+
in?: Array<'pending_approval' | 'canceled' | 'pending_reviewing' | 'requires_attention' | 'pending_initiating' | 'initiated' | 'rejected' | 'returned'>;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
export declare namespace SwiftTransfers {
|
|
490
|
+
export { type SwiftTransfer as SwiftTransfer, type SwiftTransfersPage as SwiftTransfersPage, type SwiftTransferCreateParams as SwiftTransferCreateParams, type SwiftTransferListParams as SwiftTransferListParams, };
|
|
491
|
+
}
|
|
492
|
+
//# sourceMappingURL=swift-transfers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swift-transfers.d.ts","sourceRoot":"","sources":["../src/resources/swift-transfers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE;OACtC,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAI5F;;;;;;;;;OASG;IACH,QAAQ,CAAC,eAAe,EAAE,MAA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B,MAAM;QACrB;;;WAGG;QACH,EAAE,CAAC,EAAE,KAAK,CACN,kBAAkB,GAClB,UAAU,GACV,mBAAmB,GACnB,oBAAoB,GACpB,oBAAoB,GACpB,WAAW,GACX,UAAU,GACV,UAAU,CACb,CAAC;KACH;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SwiftTransfers = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class SwiftTransfers extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a Swift Transfer
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const swiftTransfer = await client.swiftTransfers.create({
|
|
15
|
+
* account_id: 'account_in71c4amph0vgo2qllky',
|
|
16
|
+
* account_number: '987654321',
|
|
17
|
+
* bank_identification_code: 'ECBFDEFFTPP',
|
|
18
|
+
* creditor_address: {
|
|
19
|
+
* city: 'Frankfurt',
|
|
20
|
+
* country: 'DE',
|
|
21
|
+
* line1: 'Sonnemannstrasse 20',
|
|
22
|
+
* },
|
|
23
|
+
* creditor_name: 'Ian Crease',
|
|
24
|
+
* debtor_address: {
|
|
25
|
+
* city: 'New York',
|
|
26
|
+
* country: 'US',
|
|
27
|
+
* line1: '33 Liberty Street',
|
|
28
|
+
* },
|
|
29
|
+
* debtor_name: 'National Phonograph Company',
|
|
30
|
+
* instructed_amount: 100,
|
|
31
|
+
* instructed_currency: 'USD',
|
|
32
|
+
* source_account_number_id:
|
|
33
|
+
* 'account_number_v18nkfqm6afpsrvy82b2',
|
|
34
|
+
* unstructured_remittance_information: 'New Swift transfer',
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
create(body, options) {
|
|
39
|
+
return this._client.post('/swift_transfers', { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Retrieve a Swift Transfer
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const swiftTransfer = await client.swiftTransfers.retrieve(
|
|
47
|
+
* 'swift_transfer_29h21xkng03788zwd3fh',
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
retrieve(swiftTransferID, options) {
|
|
52
|
+
return this._client.get((0, path_1.path) `/swift_transfers/${swiftTransferID}`, options);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* List Swift Transfers
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* // Automatically fetches more pages as needed.
|
|
60
|
+
* for await (const swiftTransfer of client.swiftTransfers.list()) {
|
|
61
|
+
* // ...
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
list(query = {}, options) {
|
|
66
|
+
return this._client.getAPIList('/swift_transfers', (pagination_1.Page), { query, ...options });
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Approve a Swift Transfer
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const swiftTransfer = await client.swiftTransfers.approve(
|
|
74
|
+
* 'swift_transfer_29h21xkng03788zwd3fh',
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
approve(swiftTransferID, options) {
|
|
79
|
+
return this._client.post((0, path_1.path) `/swift_transfers/${swiftTransferID}/approve`, options);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Cancel a pending Swift Transfer
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const swiftTransfer = await client.swiftTransfers.cancel(
|
|
87
|
+
* 'swift_transfer_29h21xkng03788zwd3fh',
|
|
88
|
+
* );
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
cancel(swiftTransferID, options) {
|
|
92
|
+
return this._client.post((0, path_1.path) `/swift_transfers/${swiftTransferID}/cancel`, options);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.SwiftTransfers = SwiftTransfers;
|
|
96
|
+
//# sourceMappingURL=swift-transfers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swift-transfers.js","sourceRoot":"","sources":["../src/resources/swift-transfers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAwE;AAExE,oDAA8C;AAE9C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,eAAuB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,iBAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,eAAuB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,eAAe,UAAU,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,eAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,eAAe,SAAS,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AA7FD,wCA6FC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { Page } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class SwiftTransfers extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a Swift Transfer
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const swiftTransfer = await client.swiftTransfers.create({
|
|
12
|
+
* account_id: 'account_in71c4amph0vgo2qllky',
|
|
13
|
+
* account_number: '987654321',
|
|
14
|
+
* bank_identification_code: 'ECBFDEFFTPP',
|
|
15
|
+
* creditor_address: {
|
|
16
|
+
* city: 'Frankfurt',
|
|
17
|
+
* country: 'DE',
|
|
18
|
+
* line1: 'Sonnemannstrasse 20',
|
|
19
|
+
* },
|
|
20
|
+
* creditor_name: 'Ian Crease',
|
|
21
|
+
* debtor_address: {
|
|
22
|
+
* city: 'New York',
|
|
23
|
+
* country: 'US',
|
|
24
|
+
* line1: '33 Liberty Street',
|
|
25
|
+
* },
|
|
26
|
+
* debtor_name: 'National Phonograph Company',
|
|
27
|
+
* instructed_amount: 100,
|
|
28
|
+
* instructed_currency: 'USD',
|
|
29
|
+
* source_account_number_id:
|
|
30
|
+
* 'account_number_v18nkfqm6afpsrvy82b2',
|
|
31
|
+
* unstructured_remittance_information: 'New Swift transfer',
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
create(body, options) {
|
|
36
|
+
return this._client.post('/swift_transfers', { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Retrieve a Swift Transfer
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const swiftTransfer = await client.swiftTransfers.retrieve(
|
|
44
|
+
* 'swift_transfer_29h21xkng03788zwd3fh',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
retrieve(swiftTransferID, options) {
|
|
49
|
+
return this._client.get(path `/swift_transfers/${swiftTransferID}`, options);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* List Swift Transfers
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* // Automatically fetches more pages as needed.
|
|
57
|
+
* for await (const swiftTransfer of client.swiftTransfers.list()) {
|
|
58
|
+
* // ...
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
list(query = {}, options) {
|
|
63
|
+
return this._client.getAPIList('/swift_transfers', (Page), { query, ...options });
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Approve a Swift Transfer
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const swiftTransfer = await client.swiftTransfers.approve(
|
|
71
|
+
* 'swift_transfer_29h21xkng03788zwd3fh',
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
approve(swiftTransferID, options) {
|
|
76
|
+
return this._client.post(path `/swift_transfers/${swiftTransferID}/approve`, options);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Cancel a pending Swift Transfer
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const swiftTransfer = await client.swiftTransfers.cancel(
|
|
84
|
+
* 'swift_transfer_29h21xkng03788zwd3fh',
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
cancel(swiftTransferID, options) {
|
|
89
|
+
return this._client.post(path `/swift_transfers/${swiftTransferID}/cancel`, options);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=swift-transfers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swift-transfers.mjs","sourceRoot":"","sources":["../src/resources/swift-transfers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,IAAI,EAAgC;OAEtC,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,eAAuB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,IAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,eAAuB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,eAAe,UAAU,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,eAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,eAAe,SAAS,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF"}
|