modern-treasury 3.3.0 → 4.4.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.
- package/CHANGELOG.md +193 -0
- package/LICENSE +1 -1
- package/README.md +14 -5
- package/client.d.mts +16 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -6
- package/client.d.ts.map +1 -1
- package/client.js +27 -3
- package/client.js.map +1 -1
- package/client.mjs +27 -3
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-details.d.mts +4 -4
- package/resources/account-details.d.mts.map +1 -1
- package/resources/account-details.d.ts +4 -4
- package/resources/account-details.d.ts.map +1 -1
- package/resources/bulk-requests.d.mts +57 -4
- package/resources/bulk-requests.d.mts.map +1 -1
- package/resources/bulk-requests.d.ts +57 -4
- package/resources/bulk-requests.d.ts.map +1 -1
- package/resources/connection-legal-entities.d.mts +88 -21
- package/resources/connection-legal-entities.d.mts.map +1 -1
- package/resources/connection-legal-entities.d.ts +88 -21
- package/resources/connection-legal-entities.d.ts.map +1 -1
- package/resources/counterparties.d.mts +91 -20
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +91 -20
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/documents.d.mts +8 -8
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts +8 -8
- package/resources/documents.d.ts.map +1 -1
- package/resources/expected-payments.d.mts +60 -0
- package/resources/expected-payments.d.mts.map +1 -1
- package/resources/expected-payments.d.ts +60 -0
- package/resources/expected-payments.d.ts.map +1 -1
- package/resources/external-accounts.d.mts +1 -1
- package/resources/external-accounts.d.mts.map +1 -1
- package/resources/external-accounts.d.ts +1 -1
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/holds.d.mts +261 -0
- package/resources/holds.d.mts.map +1 -0
- package/resources/holds.d.ts +261 -0
- package/resources/holds.d.ts.map +1 -0
- package/resources/holds.js +35 -0
- package/resources/holds.js.map +1 -0
- package/resources/holds.mjs +31 -0
- package/resources/holds.mjs.map +1 -0
- package/resources/incoming-payment-details.d.mts +17 -4
- package/resources/incoming-payment-details.d.mts.map +1 -1
- package/resources/incoming-payment-details.d.ts +17 -4
- package/resources/incoming-payment-details.d.ts.map +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/internal-accounts/internal-accounts.d.mts +35 -0
- package/resources/internal-accounts/internal-accounts.d.mts.map +1 -1
- package/resources/internal-accounts/internal-accounts.d.ts +35 -0
- package/resources/internal-accounts/internal-accounts.d.ts.map +1 -1
- package/resources/internal-accounts/internal-accounts.js +12 -0
- package/resources/internal-accounts/internal-accounts.js.map +1 -1
- package/resources/internal-accounts/internal-accounts.mjs +12 -0
- package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
- package/resources/invoices/invoices.d.mts +1 -21
- package/resources/invoices/invoices.d.mts.map +1 -1
- package/resources/invoices/invoices.d.ts +1 -21
- package/resources/invoices/invoices.d.ts.map +1 -1
- package/resources/invoices/invoices.js.map +1 -1
- package/resources/invoices/invoices.mjs.map +1 -1
- package/resources/journal-entries.d.mts +31 -0
- package/resources/journal-entries.d.mts.map +1 -0
- package/resources/journal-entries.d.ts +31 -0
- package/resources/journal-entries.d.ts.map +1 -0
- package/resources/journal-entries.js +30 -0
- package/resources/journal-entries.js.map +1 -0
- package/resources/journal-entries.mjs +26 -0
- package/resources/journal-entries.mjs.map +1 -0
- package/resources/journal-reports.d.mts +25 -0
- package/resources/journal-reports.d.mts.map +1 -0
- package/resources/journal-reports.d.ts +25 -0
- package/resources/journal-reports.d.ts.map +1 -0
- package/resources/journal-reports.js +39 -0
- package/resources/journal-reports.js.map +1 -0
- package/resources/journal-reports.mjs +35 -0
- package/resources/journal-reports.mjs.map +1 -0
- package/resources/ledger-account-categories.d.mts +9 -5
- package/resources/ledger-account-categories.d.mts.map +1 -1
- package/resources/ledger-account-categories.d.ts +9 -5
- package/resources/ledger-account-categories.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +8 -0
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +8 -0
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-entries.d.mts +6 -1
- package/resources/ledger-entries.d.mts.map +1 -1
- package/resources/ledger-entries.d.ts +6 -1
- package/resources/ledger-entries.d.ts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.d.mts +5 -0
- package/resources/ledger-transactions/ledger-transactions.d.mts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.d.ts +5 -0
- package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
- package/resources/ledger-transactions/versions.d.mts +5 -0
- package/resources/ledger-transactions/versions.d.mts.map +1 -1
- package/resources/ledger-transactions/versions.d.ts +5 -0
- package/resources/ledger-transactions/versions.d.ts.map +1 -1
- package/resources/legal-entities.d.mts +264 -29
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +264 -29
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/legal-entities.js.map +1 -1
- package/resources/legal-entities.mjs.map +1 -1
- package/resources/legal-entity-associations.d.mts +314 -230
- package/resources/legal-entity-associations.d.mts.map +1 -1
- package/resources/legal-entity-associations.d.ts +314 -230
- package/resources/legal-entity-associations.d.ts.map +1 -1
- package/resources/legal-entity-associations.js.map +1 -1
- package/resources/legal-entity-associations.mjs.map +1 -1
- package/resources/payment-orders/payment-orders.d.mts +31 -14
- package/resources/payment-orders/payment-orders.d.mts.map +1 -1
- package/resources/payment-orders/payment-orders.d.ts +31 -14
- 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/resources/payment-orders/reversals.d.mts +4 -0
- package/resources/payment-orders/reversals.d.mts.map +1 -1
- package/resources/payment-orders/reversals.d.ts +4 -0
- package/resources/payment-orders/reversals.d.ts.map +1 -1
- package/resources/payment-references.d.mts +1 -1
- package/resources/payment-references.d.mts.map +1 -1
- package/resources/payment-references.d.ts +1 -1
- package/resources/payment-references.d.ts.map +1 -1
- package/resources/returns.d.mts +3 -3
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +3 -3
- package/resources/returns.d.ts.map +1 -1
- package/resources/routing-details.d.mts +2 -2
- package/resources/routing-details.d.ts +2 -2
- package/resources/shared.d.mts +112 -30
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +112 -30
- package/resources/shared.d.ts.map +1 -1
- package/resources/transactions/transactions.d.mts +1 -1
- package/resources/transactions/transactions.d.mts.map +1 -1
- package/resources/transactions/transactions.d.ts +1 -1
- package/resources/transactions/transactions.d.ts.map +1 -1
- package/resources/transactions/transactions.js.map +1 -1
- package/resources/transactions/transactions.mjs.map +1 -1
- package/resources/virtual-accounts.d.mts +1 -1
- package/resources/virtual-accounts.d.mts.map +1 -1
- package/resources/virtual-accounts.d.ts +1 -1
- package/resources/virtual-accounts.d.ts.map +1 -1
- package/src/client.ts +65 -8
- package/src/internal/parse.ts +6 -0
- package/src/resources/account-details.ts +4 -2
- package/src/resources/bulk-requests.ts +68 -2
- package/src/resources/connection-legal-entities.ts +107 -21
- package/src/resources/counterparties.ts +111 -19
- package/src/resources/documents.ts +19 -15
- package/src/resources/expected-payments.ts +72 -0
- package/src/resources/external-accounts.ts +1 -0
- package/src/resources/holds.ts +336 -0
- package/src/resources/incoming-payment-details.ts +35 -3
- package/src/resources/index.ts +14 -0
- package/src/resources/internal-accounts/internal-accounts.ts +44 -0
- package/src/resources/invoices/invoices.ts +1 -25
- package/src/resources/journal-entries.ts +51 -0
- package/src/resources/journal-reports.ts +54 -0
- package/src/resources/ledger-account-categories.ts +11 -5
- package/src/resources/ledger-accounts.ts +10 -0
- package/src/resources/ledger-entries.ts +7 -1
- package/src/resources/ledger-transactions/ledger-transactions.ts +6 -0
- package/src/resources/ledger-transactions/versions.ts +6 -0
- package/src/resources/legal-entities.ts +332 -27
- package/src/resources/legal-entity-associations.ts +502 -390
- package/src/resources/payment-orders/payment-orders.ts +48 -19
- package/src/resources/payment-orders/reversals.ts +5 -0
- package/src/resources/payment-references.ts +8 -3
- package/src/resources/returns.ts +11 -5
- package/src/resources/routing-details.ts +2 -2
- package/src/resources/shared.ts +138 -36
- package/src/resources/transactions/transactions.ts +2 -1
- package/src/resources/virtual-accounts.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
|
@@ -89,6 +89,19 @@ export class InternalAccounts extends APIResource {
|
|
|
89
89
|
return this._client.getAPIList('/api/internal_accounts', Page<InternalAccount>, { query, ...options });
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* request closure of internal account
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* const internalAccount =
|
|
98
|
+
* await client.internalAccounts.requestClosure('id');
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
requestClosure(id: string, options?: RequestOptions): APIPromise<InternalAccount> {
|
|
102
|
+
return this._client.post(path`/api/internal_accounts/${id}/request_closure`, options);
|
|
103
|
+
}
|
|
104
|
+
|
|
92
105
|
/**
|
|
93
106
|
* update account_capability
|
|
94
107
|
*
|
|
@@ -157,6 +170,12 @@ export interface InternalAccount {
|
|
|
157
170
|
*/
|
|
158
171
|
connection: ConnectionsAPI.Connection;
|
|
159
172
|
|
|
173
|
+
/**
|
|
174
|
+
* If the internal account links to a contra ledger account in Modern Treasury, the
|
|
175
|
+
* id of the contra ledger account will be populated here.
|
|
176
|
+
*/
|
|
177
|
+
contra_ledger_account_id: string | null;
|
|
178
|
+
|
|
160
179
|
/**
|
|
161
180
|
* The Counterparty associated to this account.
|
|
162
181
|
*/
|
|
@@ -169,6 +188,11 @@ export interface InternalAccount {
|
|
|
169
188
|
*/
|
|
170
189
|
currency: Shared.Currency;
|
|
171
190
|
|
|
191
|
+
/**
|
|
192
|
+
* An optional user-defined 180 character unique identifier.
|
|
193
|
+
*/
|
|
194
|
+
external_id: string | null;
|
|
195
|
+
|
|
172
196
|
/**
|
|
173
197
|
* If the internal account links to a ledger account in Modern Treasury, the id of
|
|
174
198
|
* the ledger account will be populated here.
|
|
@@ -437,6 +461,11 @@ export interface InternalAccountCreateParams {
|
|
|
437
461
|
*/
|
|
438
462
|
counterparty_id?: string;
|
|
439
463
|
|
|
464
|
+
/**
|
|
465
|
+
* An optional user-defined 180 character unique identifier.
|
|
466
|
+
*/
|
|
467
|
+
external_id?: string | null;
|
|
468
|
+
|
|
440
469
|
/**
|
|
441
470
|
* The LegalEntity associated to this account.
|
|
442
471
|
*/
|
|
@@ -564,11 +593,21 @@ export namespace InternalAccountCreateParams {
|
|
|
564
593
|
}
|
|
565
594
|
|
|
566
595
|
export interface InternalAccountUpdateParams {
|
|
596
|
+
/**
|
|
597
|
+
* The Contra Ledger Account associated to this account.
|
|
598
|
+
*/
|
|
599
|
+
contra_ledger_account_id?: string;
|
|
600
|
+
|
|
567
601
|
/**
|
|
568
602
|
* The Counterparty associated to this account.
|
|
569
603
|
*/
|
|
570
604
|
counterparty_id?: string;
|
|
571
605
|
|
|
606
|
+
/**
|
|
607
|
+
* An optional user-defined 180 character unique identifier.
|
|
608
|
+
*/
|
|
609
|
+
external_id?: string | null;
|
|
610
|
+
|
|
572
611
|
/**
|
|
573
612
|
* The Ledger Account associated to this account.
|
|
574
613
|
*/
|
|
@@ -602,6 +641,11 @@ export interface InternalAccountListParams extends PageParams {
|
|
|
602
641
|
*/
|
|
603
642
|
currency?: Shared.Currency;
|
|
604
643
|
|
|
644
|
+
/**
|
|
645
|
+
* An optional user-defined 180 character unique identifier.
|
|
646
|
+
*/
|
|
647
|
+
external_id?: string;
|
|
648
|
+
|
|
605
649
|
/**
|
|
606
650
|
* Only return internal accounts associated with this legal entity.
|
|
607
651
|
*/
|
|
@@ -191,7 +191,7 @@ export interface Invoice {
|
|
|
191
191
|
invoicer_name: string | null;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
* The ledger account settlement object linked to the invoice.
|
|
194
|
+
* @deprecated The ledger account settlement object linked to the invoice.
|
|
195
195
|
*/
|
|
196
196
|
ledger_account_settlement_id: string | null;
|
|
197
197
|
|
|
@@ -451,13 +451,6 @@ export interface InvoiceCreateParams {
|
|
|
451
451
|
*/
|
|
452
452
|
fallback_payment_method?: string | null;
|
|
453
453
|
|
|
454
|
-
/**
|
|
455
|
-
* Whether to ingest the ledger_entries to populate the invoice line items. If this
|
|
456
|
-
* is false, then a line item must be provided. If this is true, line_items must be
|
|
457
|
-
* empty. Ignored if ledger_account_settlement_id is empty.
|
|
458
|
-
*/
|
|
459
|
-
ingest_ledger_entries?: boolean | null;
|
|
460
|
-
|
|
461
454
|
/**
|
|
462
455
|
* An array of invoice line items. The API supports a maximum of 50 invoice line
|
|
463
456
|
* items per invoice. If a greater number of invoice line items is required, please
|
|
@@ -470,11 +463,6 @@ export interface InvoiceCreateParams {
|
|
|
470
463
|
*/
|
|
471
464
|
invoicer_address?: InvoiceCreateParams.InvoicerAddress | null;
|
|
472
465
|
|
|
473
|
-
/**
|
|
474
|
-
* The ID of the virtual account the invoice should be paid to.
|
|
475
|
-
*/
|
|
476
|
-
ledger_account_settlement_id?: string | null;
|
|
477
|
-
|
|
478
466
|
/**
|
|
479
467
|
* Additional data represented as key-value pairs. Both the key and value must be
|
|
480
468
|
* strings.
|
|
@@ -722,13 +710,6 @@ export interface InvoiceUpdateParams {
|
|
|
722
710
|
*/
|
|
723
711
|
fallback_payment_method?: string | null;
|
|
724
712
|
|
|
725
|
-
/**
|
|
726
|
-
* Whether to ingest the ledger_entries to populate the invoice line items. If this
|
|
727
|
-
* is false, then a line item must be provided. If this is true, line_items must be
|
|
728
|
-
* empty. Ignored if ledger_account_settlement_id is empty.
|
|
729
|
-
*/
|
|
730
|
-
ingest_ledger_entries?: boolean | null;
|
|
731
|
-
|
|
732
713
|
/**
|
|
733
714
|
* An array of invoice line items. The API supports a maximum of 50 invoice line
|
|
734
715
|
* items per invoice. If a greater number of invoice line items is required, please
|
|
@@ -741,11 +722,6 @@ export interface InvoiceUpdateParams {
|
|
|
741
722
|
*/
|
|
742
723
|
invoicer_address?: InvoiceUpdateParams.InvoicerAddress | null;
|
|
743
724
|
|
|
744
|
-
/**
|
|
745
|
-
* The ID of the virtual account the invoice should be paid to.
|
|
746
|
-
*/
|
|
747
|
-
ledger_account_settlement_id?: string | null;
|
|
748
|
-
|
|
749
725
|
/**
|
|
750
726
|
* Additional data represented as key-value pairs. Both the key and value must be
|
|
751
727
|
* strings.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class JournalEntries extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a specific journal entry
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<void> {
|
|
14
|
+
return this._client.get(path`/api/journal_entries/${id}`, {
|
|
15
|
+
...options,
|
|
16
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve a list of journal entries
|
|
22
|
+
*/
|
|
23
|
+
list(query: JournalEntryListParams, options?: RequestOptions): APIPromise<void> {
|
|
24
|
+
return this._client.get('/api/journal_entries', {
|
|
25
|
+
query,
|
|
26
|
+
...options,
|
|
27
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface JournalEntryListParams {
|
|
33
|
+
/**
|
|
34
|
+
* The ID of the journal report
|
|
35
|
+
*/
|
|
36
|
+
journal_report_id: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Page number for pagination
|
|
40
|
+
*/
|
|
41
|
+
page?: number;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Number of items per page
|
|
45
|
+
*/
|
|
46
|
+
per_page?: number;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export declare namespace JournalEntries {
|
|
50
|
+
export { type JournalEntryListParams as JournalEntryListParams };
|
|
51
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class JournalReports extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a specific journal report
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<void> {
|
|
14
|
+
return this._client.get(path`/api/journal_reports/${id}`, {
|
|
15
|
+
...options,
|
|
16
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Update a journal report
|
|
22
|
+
*/
|
|
23
|
+
update(
|
|
24
|
+
id: string,
|
|
25
|
+
body: JournalReportUpdateParams | null | undefined = {},
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): APIPromise<void> {
|
|
28
|
+
return this._client.patch(path`/api/journal_reports/${id}`, {
|
|
29
|
+
body,
|
|
30
|
+
...options,
|
|
31
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve a list of journal reports
|
|
37
|
+
*/
|
|
38
|
+
list(options?: RequestOptions): APIPromise<void> {
|
|
39
|
+
return this._client.get('/api/journal_reports', {
|
|
40
|
+
...options,
|
|
41
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface JournalReportUpdateParams {
|
|
47
|
+
metadata?: unknown;
|
|
48
|
+
|
|
49
|
+
status?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export declare namespace JournalReports {
|
|
53
|
+
export { type JournalReportUpdateParams as JournalReportUpdateParams };
|
|
54
|
+
}
|
|
@@ -282,6 +282,11 @@ export interface LedgerAccountCategoryCreateParams {
|
|
|
282
282
|
*/
|
|
283
283
|
description?: string | null;
|
|
284
284
|
|
|
285
|
+
/**
|
|
286
|
+
* An optional user-defined 180 character unique identifier.
|
|
287
|
+
*/
|
|
288
|
+
external_id?: string | null;
|
|
289
|
+
|
|
285
290
|
/**
|
|
286
291
|
* The array of ledger account category ids that this ledger account category
|
|
287
292
|
* should be a child of.
|
|
@@ -325,6 +330,11 @@ export interface LedgerAccountCategoryUpdateParams {
|
|
|
325
330
|
*/
|
|
326
331
|
description?: string | null;
|
|
327
332
|
|
|
333
|
+
/**
|
|
334
|
+
* An optional user-defined 180 character unique identifier.
|
|
335
|
+
*/
|
|
336
|
+
external_id?: string | null;
|
|
337
|
+
|
|
328
338
|
/**
|
|
329
339
|
* Additional data represented as key-value pairs. Both the key and value must be
|
|
330
340
|
* strings.
|
|
@@ -371,11 +381,7 @@ export interface LedgerAccountCategoryListParams extends PageParams {
|
|
|
371
381
|
*/
|
|
372
382
|
metadata?: { [key: string]: string };
|
|
373
383
|
|
|
374
|
-
|
|
375
|
-
* If you have specific names to retrieve in bulk, you can pass them as query
|
|
376
|
-
* parameters delimited with `name[]=`, for example `?name[]=123&name[]=abc`.
|
|
377
|
-
*/
|
|
378
|
-
name?: Array<string>;
|
|
384
|
+
name?: string;
|
|
379
385
|
|
|
380
386
|
/**
|
|
381
387
|
* Query categories that are nested underneath a parent category
|
|
@@ -244,6 +244,11 @@ export interface LedgerAccountCreateParams {
|
|
|
244
244
|
*/
|
|
245
245
|
description?: string | null;
|
|
246
246
|
|
|
247
|
+
/**
|
|
248
|
+
* An optional user-defined 180 character unique identifier.
|
|
249
|
+
*/
|
|
250
|
+
external_id?: string | null;
|
|
251
|
+
|
|
247
252
|
/**
|
|
248
253
|
* The array of ledger account category ids that this ledger account should be a
|
|
249
254
|
* child of.
|
|
@@ -310,6 +315,11 @@ export interface LedgerAccountUpdateParams {
|
|
|
310
315
|
*/
|
|
311
316
|
description?: string | null;
|
|
312
317
|
|
|
318
|
+
/**
|
|
319
|
+
* An optional user-defined 180 character unique identifier.
|
|
320
|
+
*/
|
|
321
|
+
external_id?: string | null;
|
|
322
|
+
|
|
313
323
|
/**
|
|
314
324
|
* Additional data represented as key-value pairs. Both the key and value must be
|
|
315
325
|
* strings.
|
|
@@ -84,6 +84,12 @@ export interface LedgerEntry {
|
|
|
84
84
|
|
|
85
85
|
discarded_at: string | null;
|
|
86
86
|
|
|
87
|
+
/**
|
|
88
|
+
* The timestamp (ISO8601 format) at which the ledger transaction happened for
|
|
89
|
+
* reporting purposes.
|
|
90
|
+
*/
|
|
91
|
+
effective_at: string;
|
|
92
|
+
|
|
87
93
|
/**
|
|
88
94
|
* The currency of the ledger account.
|
|
89
95
|
*/
|
|
@@ -258,7 +264,7 @@ export interface LedgerEntryListParams extends PageParams {
|
|
|
258
264
|
* `posted`, or `archived`. For multiple statuses, use
|
|
259
265
|
* `status[]=pending&status[]=posted`.
|
|
260
266
|
*/
|
|
261
|
-
status?:
|
|
267
|
+
status?: 'pending' | 'posted' | 'archived';
|
|
262
268
|
|
|
263
269
|
/**
|
|
264
270
|
* Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the
|
|
@@ -311,6 +311,12 @@ export interface LedgerTransactionUpdateParams {
|
|
|
311
311
|
*/
|
|
312
312
|
effective_at?: string;
|
|
313
313
|
|
|
314
|
+
/**
|
|
315
|
+
* A unique string to represent the ledger transaction. Only one pending or posted
|
|
316
|
+
* ledger transaction may have this ID in the ledger.
|
|
317
|
+
*/
|
|
318
|
+
external_id?: string | null;
|
|
319
|
+
|
|
314
320
|
/**
|
|
315
321
|
* An array of ledger entry objects.
|
|
316
322
|
*/
|
|
@@ -167,6 +167,12 @@ export namespace LedgerTransactionVersion {
|
|
|
167
167
|
*/
|
|
168
168
|
direction: Shared.TransactionDirection;
|
|
169
169
|
|
|
170
|
+
/**
|
|
171
|
+
* The timestamp (ISO8601 format) at which the ledger transaction happened for
|
|
172
|
+
* reporting purposes.
|
|
173
|
+
*/
|
|
174
|
+
effective_at: string;
|
|
175
|
+
|
|
170
176
|
/**
|
|
171
177
|
* The currency of the ledger account.
|
|
172
178
|
*/
|