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.
Files changed (200) hide show
  1. package/CHANGELOG.md +193 -0
  2. package/LICENSE +1 -1
  3. package/README.md +14 -5
  4. package/client.d.mts +16 -6
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +16 -6
  7. package/client.d.ts.map +1 -1
  8. package/client.js +27 -3
  9. package/client.js.map +1 -1
  10. package/client.mjs +27 -3
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +5 -0
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +5 -0
  17. package/internal/parse.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/account-details.d.mts +4 -4
  20. package/resources/account-details.d.mts.map +1 -1
  21. package/resources/account-details.d.ts +4 -4
  22. package/resources/account-details.d.ts.map +1 -1
  23. package/resources/bulk-requests.d.mts +57 -4
  24. package/resources/bulk-requests.d.mts.map +1 -1
  25. package/resources/bulk-requests.d.ts +57 -4
  26. package/resources/bulk-requests.d.ts.map +1 -1
  27. package/resources/connection-legal-entities.d.mts +88 -21
  28. package/resources/connection-legal-entities.d.mts.map +1 -1
  29. package/resources/connection-legal-entities.d.ts +88 -21
  30. package/resources/connection-legal-entities.d.ts.map +1 -1
  31. package/resources/counterparties.d.mts +91 -20
  32. package/resources/counterparties.d.mts.map +1 -1
  33. package/resources/counterparties.d.ts +91 -20
  34. package/resources/counterparties.d.ts.map +1 -1
  35. package/resources/documents.d.mts +8 -8
  36. package/resources/documents.d.mts.map +1 -1
  37. package/resources/documents.d.ts +8 -8
  38. package/resources/documents.d.ts.map +1 -1
  39. package/resources/expected-payments.d.mts +60 -0
  40. package/resources/expected-payments.d.mts.map +1 -1
  41. package/resources/expected-payments.d.ts +60 -0
  42. package/resources/expected-payments.d.ts.map +1 -1
  43. package/resources/external-accounts.d.mts +1 -1
  44. package/resources/external-accounts.d.mts.map +1 -1
  45. package/resources/external-accounts.d.ts +1 -1
  46. package/resources/external-accounts.d.ts.map +1 -1
  47. package/resources/holds.d.mts +261 -0
  48. package/resources/holds.d.mts.map +1 -0
  49. package/resources/holds.d.ts +261 -0
  50. package/resources/holds.d.ts.map +1 -0
  51. package/resources/holds.js +35 -0
  52. package/resources/holds.js.map +1 -0
  53. package/resources/holds.mjs +31 -0
  54. package/resources/holds.mjs.map +1 -0
  55. package/resources/incoming-payment-details.d.mts +17 -4
  56. package/resources/incoming-payment-details.d.mts.map +1 -1
  57. package/resources/incoming-payment-details.d.ts +17 -4
  58. package/resources/incoming-payment-details.d.ts.map +1 -1
  59. package/resources/index.d.mts +4 -1
  60. package/resources/index.d.mts.map +1 -1
  61. package/resources/index.d.ts +4 -1
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/index.js +7 -1
  64. package/resources/index.js.map +1 -1
  65. package/resources/index.mjs +3 -0
  66. package/resources/index.mjs.map +1 -1
  67. package/resources/internal-accounts/internal-accounts.d.mts +35 -0
  68. package/resources/internal-accounts/internal-accounts.d.mts.map +1 -1
  69. package/resources/internal-accounts/internal-accounts.d.ts +35 -0
  70. package/resources/internal-accounts/internal-accounts.d.ts.map +1 -1
  71. package/resources/internal-accounts/internal-accounts.js +12 -0
  72. package/resources/internal-accounts/internal-accounts.js.map +1 -1
  73. package/resources/internal-accounts/internal-accounts.mjs +12 -0
  74. package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
  75. package/resources/invoices/invoices.d.mts +1 -21
  76. package/resources/invoices/invoices.d.mts.map +1 -1
  77. package/resources/invoices/invoices.d.ts +1 -21
  78. package/resources/invoices/invoices.d.ts.map +1 -1
  79. package/resources/invoices/invoices.js.map +1 -1
  80. package/resources/invoices/invoices.mjs.map +1 -1
  81. package/resources/journal-entries.d.mts +31 -0
  82. package/resources/journal-entries.d.mts.map +1 -0
  83. package/resources/journal-entries.d.ts +31 -0
  84. package/resources/journal-entries.d.ts.map +1 -0
  85. package/resources/journal-entries.js +30 -0
  86. package/resources/journal-entries.js.map +1 -0
  87. package/resources/journal-entries.mjs +26 -0
  88. package/resources/journal-entries.mjs.map +1 -0
  89. package/resources/journal-reports.d.mts +25 -0
  90. package/resources/journal-reports.d.mts.map +1 -0
  91. package/resources/journal-reports.d.ts +25 -0
  92. package/resources/journal-reports.d.ts.map +1 -0
  93. package/resources/journal-reports.js +39 -0
  94. package/resources/journal-reports.js.map +1 -0
  95. package/resources/journal-reports.mjs +35 -0
  96. package/resources/journal-reports.mjs.map +1 -0
  97. package/resources/ledger-account-categories.d.mts +9 -5
  98. package/resources/ledger-account-categories.d.mts.map +1 -1
  99. package/resources/ledger-account-categories.d.ts +9 -5
  100. package/resources/ledger-account-categories.d.ts.map +1 -1
  101. package/resources/ledger-accounts.d.mts +8 -0
  102. package/resources/ledger-accounts.d.mts.map +1 -1
  103. package/resources/ledger-accounts.d.ts +8 -0
  104. package/resources/ledger-accounts.d.ts.map +1 -1
  105. package/resources/ledger-entries.d.mts +6 -1
  106. package/resources/ledger-entries.d.mts.map +1 -1
  107. package/resources/ledger-entries.d.ts +6 -1
  108. package/resources/ledger-entries.d.ts.map +1 -1
  109. package/resources/ledger-transactions/ledger-transactions.d.mts +5 -0
  110. package/resources/ledger-transactions/ledger-transactions.d.mts.map +1 -1
  111. package/resources/ledger-transactions/ledger-transactions.d.ts +5 -0
  112. package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
  113. package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
  114. package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
  115. package/resources/ledger-transactions/versions.d.mts +5 -0
  116. package/resources/ledger-transactions/versions.d.mts.map +1 -1
  117. package/resources/ledger-transactions/versions.d.ts +5 -0
  118. package/resources/ledger-transactions/versions.d.ts.map +1 -1
  119. package/resources/legal-entities.d.mts +264 -29
  120. package/resources/legal-entities.d.mts.map +1 -1
  121. package/resources/legal-entities.d.ts +264 -29
  122. package/resources/legal-entities.d.ts.map +1 -1
  123. package/resources/legal-entities.js.map +1 -1
  124. package/resources/legal-entities.mjs.map +1 -1
  125. package/resources/legal-entity-associations.d.mts +314 -230
  126. package/resources/legal-entity-associations.d.mts.map +1 -1
  127. package/resources/legal-entity-associations.d.ts +314 -230
  128. package/resources/legal-entity-associations.d.ts.map +1 -1
  129. package/resources/legal-entity-associations.js.map +1 -1
  130. package/resources/legal-entity-associations.mjs.map +1 -1
  131. package/resources/payment-orders/payment-orders.d.mts +31 -14
  132. package/resources/payment-orders/payment-orders.d.mts.map +1 -1
  133. package/resources/payment-orders/payment-orders.d.ts +31 -14
  134. package/resources/payment-orders/payment-orders.d.ts.map +1 -1
  135. package/resources/payment-orders/payment-orders.js.map +1 -1
  136. package/resources/payment-orders/payment-orders.mjs.map +1 -1
  137. package/resources/payment-orders/reversals.d.mts +4 -0
  138. package/resources/payment-orders/reversals.d.mts.map +1 -1
  139. package/resources/payment-orders/reversals.d.ts +4 -0
  140. package/resources/payment-orders/reversals.d.ts.map +1 -1
  141. package/resources/payment-references.d.mts +1 -1
  142. package/resources/payment-references.d.mts.map +1 -1
  143. package/resources/payment-references.d.ts +1 -1
  144. package/resources/payment-references.d.ts.map +1 -1
  145. package/resources/returns.d.mts +3 -3
  146. package/resources/returns.d.mts.map +1 -1
  147. package/resources/returns.d.ts +3 -3
  148. package/resources/returns.d.ts.map +1 -1
  149. package/resources/routing-details.d.mts +2 -2
  150. package/resources/routing-details.d.ts +2 -2
  151. package/resources/shared.d.mts +112 -30
  152. package/resources/shared.d.mts.map +1 -1
  153. package/resources/shared.d.ts +112 -30
  154. package/resources/shared.d.ts.map +1 -1
  155. package/resources/transactions/transactions.d.mts +1 -1
  156. package/resources/transactions/transactions.d.mts.map +1 -1
  157. package/resources/transactions/transactions.d.ts +1 -1
  158. package/resources/transactions/transactions.d.ts.map +1 -1
  159. package/resources/transactions/transactions.js.map +1 -1
  160. package/resources/transactions/transactions.mjs.map +1 -1
  161. package/resources/virtual-accounts.d.mts +1 -1
  162. package/resources/virtual-accounts.d.mts.map +1 -1
  163. package/resources/virtual-accounts.d.ts +1 -1
  164. package/resources/virtual-accounts.d.ts.map +1 -1
  165. package/src/client.ts +65 -8
  166. package/src/internal/parse.ts +6 -0
  167. package/src/resources/account-details.ts +4 -2
  168. package/src/resources/bulk-requests.ts +68 -2
  169. package/src/resources/connection-legal-entities.ts +107 -21
  170. package/src/resources/counterparties.ts +111 -19
  171. package/src/resources/documents.ts +19 -15
  172. package/src/resources/expected-payments.ts +72 -0
  173. package/src/resources/external-accounts.ts +1 -0
  174. package/src/resources/holds.ts +336 -0
  175. package/src/resources/incoming-payment-details.ts +35 -3
  176. package/src/resources/index.ts +14 -0
  177. package/src/resources/internal-accounts/internal-accounts.ts +44 -0
  178. package/src/resources/invoices/invoices.ts +1 -25
  179. package/src/resources/journal-entries.ts +51 -0
  180. package/src/resources/journal-reports.ts +54 -0
  181. package/src/resources/ledger-account-categories.ts +11 -5
  182. package/src/resources/ledger-accounts.ts +10 -0
  183. package/src/resources/ledger-entries.ts +7 -1
  184. package/src/resources/ledger-transactions/ledger-transactions.ts +6 -0
  185. package/src/resources/ledger-transactions/versions.ts +6 -0
  186. package/src/resources/legal-entities.ts +332 -27
  187. package/src/resources/legal-entity-associations.ts +502 -390
  188. package/src/resources/payment-orders/payment-orders.ts +48 -19
  189. package/src/resources/payment-orders/reversals.ts +5 -0
  190. package/src/resources/payment-references.ts +8 -3
  191. package/src/resources/returns.ts +11 -5
  192. package/src/resources/routing-details.ts +2 -2
  193. package/src/resources/shared.ts +138 -36
  194. package/src/resources/transactions/transactions.ts +2 -1
  195. package/src/resources/virtual-accounts.ts +1 -0
  196. package/src/version.ts +1 -1
  197. package/version.d.mts +1 -1
  198. package/version.d.ts +1 -1
  199. package/version.js +1 -1
  200. 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?: Array<'pending' | 'posted' | 'archived'>;
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
  */