@apideck/unify 0.23.0 → 0.23.1

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 (93) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/note.d.ts +5 -0
  5. package/models/components/note.d.ts.map +1 -1
  6. package/models/components/note.js +4 -0
  7. package/models/components/note.js.map +1 -1
  8. package/models/components/noteinput.d.ts +5 -0
  9. package/models/components/noteinput.d.ts.map +1 -1
  10. package/models/components/noteinput.js +4 -0
  11. package/models/components/noteinput.js.map +1 -1
  12. package/package.json +5 -1
  13. package/src/__tests__/activities.test.ts +783 -0
  14. package/src/__tests__/agedcreditors.test.ts +279 -0
  15. package/src/__tests__/ageddebtors.test.ts +279 -0
  16. package/src/__tests__/apideckcompanies.test.ts +712 -0
  17. package/src/__tests__/apideckcustomers.test.ts +360 -0
  18. package/src/__tests__/apideckdepartments.test.ts +319 -0
  19. package/src/__tests__/apiresources.test.ts +61 -0
  20. package/src/__tests__/apis.test.ts +214 -0
  21. package/src/__tests__/applicants.test.ts +976 -0
  22. package/src/__tests__/applications.test.ts +329 -0
  23. package/src/__tests__/assertions.ts +13 -0
  24. package/src/__tests__/attachments.test.ts +363 -0
  25. package/src/__tests__/balancesheet.test.ts +451 -0
  26. package/src/__tests__/billpayments.test.ts +666 -0
  27. package/src/__tests__/bills.test.ts +1133 -0
  28. package/src/__tests__/collections.test.ts +115 -0
  29. package/src/__tests__/collectiontags.test.ts +66 -0
  30. package/src/__tests__/collectionticketcomments.test.ts +318 -0
  31. package/src/__tests__/collectiontickets.test.ts +436 -0
  32. package/src/__tests__/collectionusers.test.ts +122 -0
  33. package/src/__tests__/companies.test.ts +1059 -0
  34. package/src/__tests__/companyinfo.test.ts +218 -0
  35. package/src/__tests__/connectioncustommappings.test.ts +67 -0
  36. package/src/__tests__/connections.test.ts +1713 -0
  37. package/src/__tests__/connectionsettings.test.ts +280 -0
  38. package/src/__tests__/connectordocs.test.ts +28 -0
  39. package/src/__tests__/connectors.test.ts +751 -0
  40. package/src/__tests__/consumerrequestcounts.test.ts +41 -0
  41. package/src/__tests__/consumers.test.ts +517 -0
  42. package/src/__tests__/contacts.test.ts +957 -0
  43. package/src/__tests__/createcallback.test.ts +34 -0
  44. package/src/__tests__/creditnotes.test.ts +1362 -0
  45. package/src/__tests__/customers.test.ts +1089 -0
  46. package/src/__tests__/customfields.test.ts +50 -0
  47. package/src/__tests__/custommappings.test.ts +63 -0
  48. package/src/__tests__/departments.test.ts +359 -0
  49. package/src/__tests__/drivegroups.test.ts +318 -0
  50. package/src/__tests__/drives.test.ts +311 -0
  51. package/src/__tests__/employeepayrolls.test.ts +487 -0
  52. package/src/__tests__/employees.test.ts +1682 -0
  53. package/src/__tests__/employeeschedules.test.ts +456 -0
  54. package/src/__tests__/eventlogs.test.ts +157 -0
  55. package/src/__tests__/expenses.test.ts +566 -0
  56. package/src/__tests__/files.test.ts +392 -0
  57. package/src/__tests__/files.ts +56 -0
  58. package/src/__tests__/folders.test.ts +103 -0
  59. package/src/__tests__/invoiceitems.test.ts +586 -0
  60. package/src/__tests__/invoices.test.ts +1561 -0
  61. package/src/__tests__/jobs.test.ts +837 -0
  62. package/src/__tests__/journalentries.test.ts +1053 -0
  63. package/src/__tests__/leads.test.ts +897 -0
  64. package/src/__tests__/ledgeraccounts.test.ts +594 -0
  65. package/src/__tests__/locations.test.ts +561 -0
  66. package/src/__tests__/logs.test.ts +135 -0
  67. package/src/__tests__/messages.test.ts +396 -0
  68. package/src/__tests__/mockserver/README.md +52 -0
  69. package/src/__tests__/notes.test.ts +335 -0
  70. package/src/__tests__/opportunities.test.ts +503 -0
  71. package/src/__tests__/orders.test.ts +849 -0
  72. package/src/__tests__/payments.test.ts +557 -0
  73. package/src/__tests__/payrolls.test.ts +481 -0
  74. package/src/__tests__/pipelines.test.ts +383 -0
  75. package/src/__tests__/products.test.ts +505 -0
  76. package/src/__tests__/profitandloss.test.ts +221 -0
  77. package/src/__tests__/purchaseorders.test.ts +1464 -0
  78. package/src/__tests__/sessions.test.ts +70 -0
  79. package/src/__tests__/sharedlinks.test.ts +331 -0
  80. package/src/__tests__/stores.test.ts +39 -0
  81. package/src/__tests__/subsidiaries.test.ts +316 -0
  82. package/src/__tests__/suppliers.test.ts +1071 -0
  83. package/src/__tests__/taxrates.test.ts +472 -0
  84. package/src/__tests__/testclient.ts +48 -0
  85. package/src/__tests__/timeoffrequests.test.ts +381 -0
  86. package/src/__tests__/trackingcategories.test.ts +329 -0
  87. package/src/__tests__/uploadsessions.test.ts +142 -0
  88. package/src/__tests__/users.test.ts +667 -0
  89. package/src/__tests__/validateconnection.test.ts +32 -0
  90. package/src/__tests__/webhooks.test.ts +248 -0
  91. package/src/lib/config.ts +3 -3
  92. package/src/models/components/note.ts +9 -0
  93. package/src/models/components/noteinput.ts +9 -0
@@ -0,0 +1,279 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { expect, test } from "vitest";
6
+ import { Apideck } from "../index.js";
7
+ import { RFCDate } from "../types/index.js";
8
+ import { createTestHTTPClient } from "./testclient.js";
9
+
10
+ test("Agedcreditors Accounting Aged Creditors One", async () => {
11
+ const testHttpClient = createTestHTTPClient("accounting.agedCreditorsOne");
12
+
13
+ const apideck = new Apideck({
14
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
15
+ httpClient: testHttpClient,
16
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
17
+ });
18
+
19
+ const result = await apideck.accounting.agedCreditors.get({
20
+ serviceId: "salesforce",
21
+ filter: {
22
+ customerId: "123abc",
23
+ supplierId: "123abc",
24
+ reportAsOfDate: "2024-01-01",
25
+ periodCount: 3,
26
+ periodLength: 30,
27
+ },
28
+ passThrough: {
29
+ "search": "San Francisco",
30
+ },
31
+ fields: "id,updated_at",
32
+ });
33
+ expect(result.httpMeta.response.status).toBe(200);
34
+ expect(result.getAgedCreditorsResponse).toBeDefined();
35
+ expect(result.getAgedCreditorsResponse).toEqual({
36
+ statusCode: 200,
37
+ status: "OK",
38
+ service: "quickbooks",
39
+ resource: "AgedCreditors",
40
+ operation: "one",
41
+ data: {
42
+ reportGeneratedAt: new Date("2024-11-14T12:00:00.000Z"),
43
+ reportAsOfDate: new RFCDate("2024-11-13"),
44
+ periodCount: 4,
45
+ periodLength: 30,
46
+ outstandingBalances: [
47
+ {
48
+ supplierId: "123",
49
+ supplierName: "Super Store",
50
+ outstandingBalancesByCurrency: [
51
+ {
52
+ currency: "USD",
53
+ balancesByPeriod: [
54
+ {
55
+ startDate: new RFCDate("2024-01-01"),
56
+ endDate: new RFCDate("2024-01-30"),
57
+ totalAmount: 1500,
58
+ balancesByTransaction: [
59
+ {
60
+ transactionId: "INV-1001",
61
+ transactionDate: new RFCDate("2024-01-15"),
62
+ transactionType: "invoice",
63
+ dueDate: new RFCDate("2024-02-15"),
64
+ originalAmount: 1000,
65
+ outstandingBalance: 800,
66
+ transactionNumber: "INV-1001",
67
+ },
68
+ {
69
+ transactionId: "INV-1001",
70
+ transactionDate: new RFCDate("2024-01-15"),
71
+ transactionType: "invoice",
72
+ dueDate: new RFCDate("2024-02-15"),
73
+ originalAmount: 1000,
74
+ outstandingBalance: 800,
75
+ transactionNumber: "INV-1001",
76
+ },
77
+ ],
78
+ },
79
+ {
80
+ startDate: new RFCDate("2024-01-01"),
81
+ endDate: new RFCDate("2024-01-30"),
82
+ totalAmount: 1500,
83
+ balancesByTransaction: [
84
+ {
85
+ transactionId: "INV-1001",
86
+ transactionDate: new RFCDate("2024-01-15"),
87
+ transactionType: "invoice",
88
+ dueDate: new RFCDate("2024-02-15"),
89
+ originalAmount: 1000,
90
+ outstandingBalance: 800,
91
+ transactionNumber: "INV-1001",
92
+ },
93
+ {
94
+ transactionId: "INV-1001",
95
+ transactionDate: new RFCDate("2024-01-15"),
96
+ transactionType: "invoice",
97
+ dueDate: new RFCDate("2024-02-15"),
98
+ originalAmount: 1000,
99
+ outstandingBalance: 800,
100
+ transactionNumber: "INV-1001",
101
+ },
102
+ {
103
+ transactionId: "INV-1001",
104
+ transactionDate: new RFCDate("2024-01-15"),
105
+ transactionType: "invoice",
106
+ dueDate: new RFCDate("2024-02-15"),
107
+ originalAmount: 1000,
108
+ outstandingBalance: 800,
109
+ transactionNumber: "INV-1001",
110
+ },
111
+ ],
112
+ },
113
+ ],
114
+ },
115
+ {
116
+ currency: "USD",
117
+ balancesByPeriod: [
118
+ {
119
+ startDate: new RFCDate("2024-01-01"),
120
+ endDate: new RFCDate("2024-01-30"),
121
+ totalAmount: 1500,
122
+ balancesByTransaction: [
123
+ {
124
+ transactionId: "INV-1001",
125
+ transactionDate: new RFCDate("2024-01-15"),
126
+ transactionType: "invoice",
127
+ dueDate: new RFCDate("2024-02-15"),
128
+ originalAmount: 1000,
129
+ outstandingBalance: 800,
130
+ transactionNumber: "INV-1001",
131
+ },
132
+ {
133
+ transactionId: "INV-1001",
134
+ transactionDate: new RFCDate("2024-01-15"),
135
+ transactionType: "invoice",
136
+ dueDate: new RFCDate("2024-02-15"),
137
+ originalAmount: 1000,
138
+ outstandingBalance: 800,
139
+ transactionNumber: "INV-1001",
140
+ },
141
+ ],
142
+ },
143
+ {
144
+ startDate: new RFCDate("2024-01-01"),
145
+ endDate: new RFCDate("2024-01-30"),
146
+ totalAmount: 1500,
147
+ balancesByTransaction: [
148
+ {
149
+ transactionId: "INV-1001",
150
+ transactionDate: new RFCDate("2024-01-15"),
151
+ transactionType: "invoice",
152
+ dueDate: new RFCDate("2024-02-15"),
153
+ originalAmount: 1000,
154
+ outstandingBalance: 800,
155
+ transactionNumber: "INV-1001",
156
+ },
157
+ ],
158
+ },
159
+ ],
160
+ },
161
+ ],
162
+ },
163
+ {
164
+ supplierId: "123",
165
+ supplierName: "Super Store",
166
+ outstandingBalancesByCurrency: [
167
+ {
168
+ currency: "USD",
169
+ balancesByPeriod: [
170
+ {
171
+ startDate: new RFCDate("2024-01-01"),
172
+ endDate: new RFCDate("2024-01-30"),
173
+ totalAmount: 1500,
174
+ balancesByTransaction: [
175
+ {
176
+ transactionId: "INV-1001",
177
+ transactionDate: new RFCDate("2024-01-15"),
178
+ transactionType: "invoice",
179
+ dueDate: new RFCDate("2024-02-15"),
180
+ originalAmount: 1000,
181
+ outstandingBalance: 800,
182
+ transactionNumber: "INV-1001",
183
+ },
184
+ {
185
+ transactionId: "INV-1001",
186
+ transactionDate: new RFCDate("2024-01-15"),
187
+ transactionType: "invoice",
188
+ dueDate: new RFCDate("2024-02-15"),
189
+ originalAmount: 1000,
190
+ outstandingBalance: 800,
191
+ transactionNumber: "INV-1001",
192
+ },
193
+ ],
194
+ },
195
+ {
196
+ startDate: new RFCDate("2024-01-01"),
197
+ endDate: new RFCDate("2024-01-30"),
198
+ totalAmount: 1500,
199
+ balancesByTransaction: [
200
+ {
201
+ transactionId: "INV-1001",
202
+ transactionDate: new RFCDate("2024-01-15"),
203
+ transactionType: "invoice",
204
+ dueDate: new RFCDate("2024-02-15"),
205
+ originalAmount: 1000,
206
+ outstandingBalance: 800,
207
+ transactionNumber: "INV-1001",
208
+ },
209
+ {
210
+ transactionId: "INV-1001",
211
+ transactionDate: new RFCDate("2024-01-15"),
212
+ transactionType: "invoice",
213
+ dueDate: new RFCDate("2024-02-15"),
214
+ originalAmount: 1000,
215
+ outstandingBalance: 800,
216
+ transactionNumber: "INV-1001",
217
+ },
218
+ {
219
+ transactionId: "INV-1001",
220
+ transactionDate: new RFCDate("2024-01-15"),
221
+ transactionType: "invoice",
222
+ dueDate: new RFCDate("2024-02-15"),
223
+ originalAmount: 1000,
224
+ outstandingBalance: 800,
225
+ transactionNumber: "INV-1001",
226
+ },
227
+ ],
228
+ },
229
+ {
230
+ startDate: new RFCDate("2024-01-01"),
231
+ endDate: new RFCDate("2024-01-30"),
232
+ totalAmount: 1500,
233
+ balancesByTransaction: [
234
+ {
235
+ transactionId: "INV-1001",
236
+ transactionDate: new RFCDate("2024-01-15"),
237
+ transactionType: "invoice",
238
+ dueDate: new RFCDate("2024-02-15"),
239
+ originalAmount: 1000,
240
+ outstandingBalance: 800,
241
+ transactionNumber: "INV-1001",
242
+ },
243
+ ],
244
+ },
245
+ ],
246
+ },
247
+ ],
248
+ },
249
+ {
250
+ supplierId: "123",
251
+ supplierName: "Super Store",
252
+ outstandingBalancesByCurrency: [
253
+ {
254
+ currency: "USD",
255
+ balancesByPeriod: [
256
+ {
257
+ startDate: new RFCDate("2024-01-01"),
258
+ endDate: new RFCDate("2024-01-30"),
259
+ totalAmount: 1500,
260
+ balancesByTransaction: [
261
+ {
262
+ transactionId: "INV-1001",
263
+ transactionDate: new RFCDate("2024-01-15"),
264
+ transactionType: "invoice",
265
+ dueDate: new RFCDate("2024-02-15"),
266
+ originalAmount: 1000,
267
+ outstandingBalance: 800,
268
+ transactionNumber: "INV-1001",
269
+ },
270
+ ],
271
+ },
272
+ ],
273
+ },
274
+ ],
275
+ },
276
+ ],
277
+ },
278
+ });
279
+ });
@@ -0,0 +1,279 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { expect, test } from "vitest";
6
+ import { Apideck } from "../index.js";
7
+ import { RFCDate } from "../types/index.js";
8
+ import { createTestHTTPClient } from "./testclient.js";
9
+
10
+ test("Ageddebtors Accounting Aged Debtors One", async () => {
11
+ const testHttpClient = createTestHTTPClient("accounting.agedDebtorsOne");
12
+
13
+ const apideck = new Apideck({
14
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
15
+ httpClient: testHttpClient,
16
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
17
+ });
18
+
19
+ const result = await apideck.accounting.agedDebtors.get({
20
+ serviceId: "salesforce",
21
+ filter: {
22
+ customerId: "123abc",
23
+ supplierId: "123abc",
24
+ reportAsOfDate: "2024-01-01",
25
+ periodCount: 3,
26
+ periodLength: 30,
27
+ },
28
+ passThrough: {
29
+ "search": "San Francisco",
30
+ },
31
+ fields: "id,updated_at",
32
+ });
33
+ expect(result.httpMeta.response.status).toBe(200);
34
+ expect(result.getAgedDebtorsResponse).toBeDefined();
35
+ expect(result.getAgedDebtorsResponse).toEqual({
36
+ statusCode: 200,
37
+ status: "OK",
38
+ service: "quickbooks",
39
+ resource: "AgedDebtors",
40
+ operation: "one",
41
+ data: {
42
+ reportGeneratedAt: new Date("2024-11-14T12:00:00.000Z"),
43
+ reportAsOfDate: new RFCDate("2024-11-13"),
44
+ periodCount: 4,
45
+ periodLength: 30,
46
+ outstandingBalances: [
47
+ {
48
+ customerId: "123",
49
+ customerName: "Super Store",
50
+ outstandingBalancesByCurrency: [
51
+ {
52
+ currency: "USD",
53
+ balancesByPeriod: [
54
+ {
55
+ startDate: new RFCDate("2024-01-01"),
56
+ endDate: new RFCDate("2024-01-30"),
57
+ totalAmount: 1500,
58
+ balancesByTransaction: [
59
+ {
60
+ transactionId: "INV-1001",
61
+ transactionDate: new RFCDate("2024-01-15"),
62
+ transactionType: "invoice",
63
+ dueDate: new RFCDate("2024-02-15"),
64
+ originalAmount: 1000,
65
+ outstandingBalance: 800,
66
+ transactionNumber: "INV-1001",
67
+ },
68
+ {
69
+ transactionId: "INV-1001",
70
+ transactionDate: new RFCDate("2024-01-15"),
71
+ transactionType: "invoice",
72
+ dueDate: new RFCDate("2024-02-15"),
73
+ originalAmount: 1000,
74
+ outstandingBalance: 800,
75
+ transactionNumber: "INV-1001",
76
+ },
77
+ ],
78
+ },
79
+ {
80
+ startDate: new RFCDate("2024-01-01"),
81
+ endDate: new RFCDate("2024-01-30"),
82
+ totalAmount: 1500,
83
+ balancesByTransaction: [
84
+ {
85
+ transactionId: "INV-1001",
86
+ transactionDate: new RFCDate("2024-01-15"),
87
+ transactionType: "invoice",
88
+ dueDate: new RFCDate("2024-02-15"),
89
+ originalAmount: 1000,
90
+ outstandingBalance: 800,
91
+ transactionNumber: "INV-1001",
92
+ },
93
+ {
94
+ transactionId: "INV-1001",
95
+ transactionDate: new RFCDate("2024-01-15"),
96
+ transactionType: "invoice",
97
+ dueDate: new RFCDate("2024-02-15"),
98
+ originalAmount: 1000,
99
+ outstandingBalance: 800,
100
+ transactionNumber: "INV-1001",
101
+ },
102
+ {
103
+ transactionId: "INV-1001",
104
+ transactionDate: new RFCDate("2024-01-15"),
105
+ transactionType: "invoice",
106
+ dueDate: new RFCDate("2024-02-15"),
107
+ originalAmount: 1000,
108
+ outstandingBalance: 800,
109
+ transactionNumber: "INV-1001",
110
+ },
111
+ ],
112
+ },
113
+ ],
114
+ },
115
+ {
116
+ currency: "USD",
117
+ balancesByPeriod: [
118
+ {
119
+ startDate: new RFCDate("2024-01-01"),
120
+ endDate: new RFCDate("2024-01-30"),
121
+ totalAmount: 1500,
122
+ balancesByTransaction: [
123
+ {
124
+ transactionId: "INV-1001",
125
+ transactionDate: new RFCDate("2024-01-15"),
126
+ transactionType: "invoice",
127
+ dueDate: new RFCDate("2024-02-15"),
128
+ originalAmount: 1000,
129
+ outstandingBalance: 800,
130
+ transactionNumber: "INV-1001",
131
+ },
132
+ {
133
+ transactionId: "INV-1001",
134
+ transactionDate: new RFCDate("2024-01-15"),
135
+ transactionType: "invoice",
136
+ dueDate: new RFCDate("2024-02-15"),
137
+ originalAmount: 1000,
138
+ outstandingBalance: 800,
139
+ transactionNumber: "INV-1001",
140
+ },
141
+ ],
142
+ },
143
+ {
144
+ startDate: new RFCDate("2024-01-01"),
145
+ endDate: new RFCDate("2024-01-30"),
146
+ totalAmount: 1500,
147
+ balancesByTransaction: [
148
+ {
149
+ transactionId: "INV-1001",
150
+ transactionDate: new RFCDate("2024-01-15"),
151
+ transactionType: "invoice",
152
+ dueDate: new RFCDate("2024-02-15"),
153
+ originalAmount: 1000,
154
+ outstandingBalance: 800,
155
+ transactionNumber: "INV-1001",
156
+ },
157
+ ],
158
+ },
159
+ ],
160
+ },
161
+ ],
162
+ },
163
+ {
164
+ customerId: "123",
165
+ customerName: "Super Store",
166
+ outstandingBalancesByCurrency: [
167
+ {
168
+ currency: "USD",
169
+ balancesByPeriod: [
170
+ {
171
+ startDate: new RFCDate("2024-01-01"),
172
+ endDate: new RFCDate("2024-01-30"),
173
+ totalAmount: 1500,
174
+ balancesByTransaction: [
175
+ {
176
+ transactionId: "INV-1001",
177
+ transactionDate: new RFCDate("2024-01-15"),
178
+ transactionType: "invoice",
179
+ dueDate: new RFCDate("2024-02-15"),
180
+ originalAmount: 1000,
181
+ outstandingBalance: 800,
182
+ transactionNumber: "INV-1001",
183
+ },
184
+ {
185
+ transactionId: "INV-1001",
186
+ transactionDate: new RFCDate("2024-01-15"),
187
+ transactionType: "invoice",
188
+ dueDate: new RFCDate("2024-02-15"),
189
+ originalAmount: 1000,
190
+ outstandingBalance: 800,
191
+ transactionNumber: "INV-1001",
192
+ },
193
+ ],
194
+ },
195
+ {
196
+ startDate: new RFCDate("2024-01-01"),
197
+ endDate: new RFCDate("2024-01-30"),
198
+ totalAmount: 1500,
199
+ balancesByTransaction: [
200
+ {
201
+ transactionId: "INV-1001",
202
+ transactionDate: new RFCDate("2024-01-15"),
203
+ transactionType: "invoice",
204
+ dueDate: new RFCDate("2024-02-15"),
205
+ originalAmount: 1000,
206
+ outstandingBalance: 800,
207
+ transactionNumber: "INV-1001",
208
+ },
209
+ {
210
+ transactionId: "INV-1001",
211
+ transactionDate: new RFCDate("2024-01-15"),
212
+ transactionType: "invoice",
213
+ dueDate: new RFCDate("2024-02-15"),
214
+ originalAmount: 1000,
215
+ outstandingBalance: 800,
216
+ transactionNumber: "INV-1001",
217
+ },
218
+ {
219
+ transactionId: "INV-1001",
220
+ transactionDate: new RFCDate("2024-01-15"),
221
+ transactionType: "invoice",
222
+ dueDate: new RFCDate("2024-02-15"),
223
+ originalAmount: 1000,
224
+ outstandingBalance: 800,
225
+ transactionNumber: "INV-1001",
226
+ },
227
+ ],
228
+ },
229
+ {
230
+ startDate: new RFCDate("2024-01-01"),
231
+ endDate: new RFCDate("2024-01-30"),
232
+ totalAmount: 1500,
233
+ balancesByTransaction: [
234
+ {
235
+ transactionId: "INV-1001",
236
+ transactionDate: new RFCDate("2024-01-15"),
237
+ transactionType: "invoice",
238
+ dueDate: new RFCDate("2024-02-15"),
239
+ originalAmount: 1000,
240
+ outstandingBalance: 800,
241
+ transactionNumber: "INV-1001",
242
+ },
243
+ ],
244
+ },
245
+ ],
246
+ },
247
+ ],
248
+ },
249
+ {
250
+ customerId: "123",
251
+ customerName: "Super Store",
252
+ outstandingBalancesByCurrency: [
253
+ {
254
+ currency: "USD",
255
+ balancesByPeriod: [
256
+ {
257
+ startDate: new RFCDate("2024-01-01"),
258
+ endDate: new RFCDate("2024-01-30"),
259
+ totalAmount: 1500,
260
+ balancesByTransaction: [
261
+ {
262
+ transactionId: "INV-1001",
263
+ transactionDate: new RFCDate("2024-01-15"),
264
+ transactionType: "invoice",
265
+ dueDate: new RFCDate("2024-02-15"),
266
+ originalAmount: 1000,
267
+ outstandingBalance: 800,
268
+ transactionNumber: "INV-1001",
269
+ },
270
+ ],
271
+ },
272
+ ],
273
+ },
274
+ ],
275
+ },
276
+ ],
277
+ },
278
+ });
279
+ });