modern-treasury 3.2.0 → 3.3.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 +32 -0
- package/bin/cli +12 -5
- package/package.json +1 -1
- package/resources/counterparties.d.mts +16 -23
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +16 -23
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +2 -7
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +2 -7
- package/resources/counterparties.mjs.map +1 -1
- package/resources/external-accounts.d.mts +16 -36
- package/resources/external-accounts.d.mts.map +1 -1
- package/resources/external-accounts.d.ts +16 -36
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js +2 -7
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs +2 -7
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/payment-orders/payment-orders.d.mts +1 -1
- package/resources/payment-orders/payment-orders.d.mts.map +1 -1
- package/resources/payment-orders/payment-orders.d.ts +1 -1
- package/resources/payment-orders/payment-orders.d.ts.map +1 -1
- package/resources/payment-orders/payment-orders.js.map +1 -1
- package/resources/payment-orders/payment-orders.mjs.map +1 -1
- package/src/resources/counterparties.ts +17 -30
- package/src/resources/external-accounts.ts +17 -43
- package/src/resources/payment-orders/payment-orders.ts +1 -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
|
@@ -23,13 +23,8 @@ export class ExternalAccounts extends APIResource {
|
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
create(
|
|
27
|
-
|
|
28
|
-
return this._client.post('/api/external_accounts', {
|
|
29
|
-
query: { external_id: query_external_id },
|
|
30
|
-
body,
|
|
31
|
-
...options,
|
|
32
|
-
});
|
|
26
|
+
create(body: ExternalAccountCreateParams, options?: RequestOptions): APIPromise<ExternalAccount> {
|
|
27
|
+
return this._client.post('/api/external_accounts', { body, ...options });
|
|
33
28
|
}
|
|
34
29
|
|
|
35
30
|
/**
|
|
@@ -314,87 +309,66 @@ export namespace ExternalAccountVerifyResponse {
|
|
|
314
309
|
}
|
|
315
310
|
|
|
316
311
|
export interface ExternalAccountCreateParams {
|
|
317
|
-
/**
|
|
318
|
-
* Body param:
|
|
319
|
-
*/
|
|
320
312
|
counterparty_id: string | null;
|
|
321
313
|
|
|
322
|
-
/**
|
|
323
|
-
* Query param: An optional user-defined 180 character unique identifier.
|
|
324
|
-
*/
|
|
325
|
-
query_external_id?: string;
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Body param:
|
|
329
|
-
*/
|
|
330
314
|
account_details?: Array<ExternalAccountCreateParams.AccountDetail>;
|
|
331
315
|
|
|
332
316
|
/**
|
|
333
|
-
*
|
|
317
|
+
* Can be `checking`, `savings` or `other`.
|
|
334
318
|
*/
|
|
335
319
|
account_type?: ExternalAccountType;
|
|
336
320
|
|
|
337
|
-
/**
|
|
338
|
-
* Body param:
|
|
339
|
-
*/
|
|
340
321
|
contact_details?: Array<PaymentOrdersAPI.ContactDetailCreateRequest>;
|
|
341
322
|
|
|
342
323
|
/**
|
|
343
|
-
*
|
|
324
|
+
* An optional user-defined 180 character unique identifier.
|
|
344
325
|
*/
|
|
345
|
-
|
|
326
|
+
external_id?: string | null;
|
|
346
327
|
|
|
347
328
|
/**
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*
|
|
329
|
+
* Specifies a ledger account object that will be created with the external
|
|
330
|
+
* account. The resulting ledger account is linked to the external account for
|
|
331
|
+
* auto-ledgering Payment objects. See
|
|
351
332
|
* https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
|
352
333
|
* for more details.
|
|
353
334
|
*/
|
|
354
335
|
ledger_account?: Shared.LedgerAccountCreateRequest;
|
|
355
336
|
|
|
356
337
|
/**
|
|
357
|
-
*
|
|
358
|
-
*
|
|
338
|
+
* Additional data represented as key-value pairs. Both the key and value must be
|
|
339
|
+
* strings.
|
|
359
340
|
*/
|
|
360
341
|
metadata?: { [key: string]: string };
|
|
361
342
|
|
|
362
343
|
/**
|
|
363
|
-
*
|
|
364
|
-
*
|
|
344
|
+
* A nickname for the external account. This is only for internal usage and won't
|
|
345
|
+
* affect any payments
|
|
365
346
|
*/
|
|
366
347
|
name?: string | null;
|
|
367
348
|
|
|
368
349
|
/**
|
|
369
|
-
*
|
|
350
|
+
* Required if receiving wire payments.
|
|
370
351
|
*/
|
|
371
352
|
party_address?: Shared.AddressRequest;
|
|
372
353
|
|
|
373
|
-
/**
|
|
374
|
-
* Body param:
|
|
375
|
-
*/
|
|
376
354
|
party_identifier?: string;
|
|
377
355
|
|
|
378
356
|
/**
|
|
379
|
-
*
|
|
380
|
-
* counterparty's name.
|
|
357
|
+
* If this value isn't provided, it will be inherited from the counterparty's name.
|
|
381
358
|
*/
|
|
382
359
|
party_name?: string;
|
|
383
360
|
|
|
384
361
|
/**
|
|
385
|
-
*
|
|
362
|
+
* Either `individual` or `business`.
|
|
386
363
|
*/
|
|
387
364
|
party_type?: 'business' | 'individual' | null;
|
|
388
365
|
|
|
389
366
|
/**
|
|
390
|
-
*
|
|
391
|
-
*
|
|
367
|
+
* If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
|
368
|
+
* you can pass the processor token in this field.
|
|
392
369
|
*/
|
|
393
370
|
plaid_processor_token?: string;
|
|
394
371
|
|
|
395
|
-
/**
|
|
396
|
-
* Body param:
|
|
397
|
-
*/
|
|
398
372
|
routing_details?: Array<ExternalAccountCreateParams.RoutingDetail>;
|
|
399
373
|
}
|
|
400
374
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.3.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.3.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|