conductor-node 12.0.0-beta.9 → 12.0.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.
Files changed (175) hide show
  1. package/CHANGELOG.md +185 -0
  2. package/README.md +2 -4
  3. package/_shims/index.d.ts +2 -0
  4. package/_shims/index.js +5 -1
  5. package/_shims/index.mjs +5 -1
  6. package/core.d.ts.map +1 -1
  7. package/core.js +5 -2
  8. package/core.js.map +1 -1
  9. package/core.mjs +6 -3
  10. package/core.mjs.map +1 -1
  11. package/index.d.mts +4 -4
  12. package/index.d.ts +4 -4
  13. package/index.d.ts.map +1 -1
  14. package/index.js.map +1 -1
  15. package/index.mjs.map +1 -1
  16. package/package.json +8 -29
  17. package/pagination.js +1 -1
  18. package/pagination.js.map +1 -1
  19. package/pagination.mjs +1 -1
  20. package/pagination.mjs.map +1 -1
  21. package/resources/auth-sessions.d.ts +1 -1
  22. package/resources/auth-sessions.js +1 -1
  23. package/resources/auth-sessions.mjs +1 -1
  24. package/resources/end-users.d.ts +1 -13
  25. package/resources/end-users.d.ts.map +1 -1
  26. package/resources/end-users.js +0 -8
  27. package/resources/end-users.js.map +1 -1
  28. package/resources/end-users.mjs +0 -8
  29. package/resources/end-users.mjs.map +1 -1
  30. package/resources/index.d.ts +2 -2
  31. package/resources/index.d.ts.map +1 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs.map +1 -1
  34. package/resources/qbd/account-tax-lines.d.ts +48 -0
  35. package/resources/qbd/account-tax-lines.d.ts.map +1 -0
  36. package/resources/qbd/account-tax-lines.js +21 -0
  37. package/resources/qbd/account-tax-lines.js.map +1 -0
  38. package/resources/qbd/account-tax-lines.mjs +17 -0
  39. package/resources/qbd/account-tax-lines.mjs.map +1 -0
  40. package/resources/qbd/accounts.d.ts +9 -3
  41. package/resources/qbd/accounts.d.ts.map +1 -1
  42. package/resources/qbd/bill-check-payments.d.ts +4 -4
  43. package/resources/qbd/bill-credit-card-payments.d.ts +4 -4
  44. package/resources/qbd/bills.d.ts +7 -8
  45. package/resources/qbd/bills.d.ts.map +1 -1
  46. package/resources/qbd/bills.js.map +1 -1
  47. package/resources/qbd/bills.mjs.map +1 -1
  48. package/resources/qbd/checks.d.ts +4 -4
  49. package/resources/qbd/company.d.ts +354 -0
  50. package/resources/qbd/company.d.ts.map +1 -0
  51. package/resources/qbd/company.js +22 -0
  52. package/resources/qbd/company.js.map +1 -0
  53. package/resources/qbd/company.mjs +18 -0
  54. package/resources/qbd/company.mjs.map +1 -0
  55. package/resources/qbd/credit-card-charges.d.ts +4 -4
  56. package/resources/qbd/credit-card-credits.d.ts +4 -4
  57. package/resources/qbd/credit-memos.d.ts +4 -4
  58. package/resources/qbd/customers.d.ts +2 -2
  59. package/resources/qbd/customers.d.ts.map +1 -1
  60. package/resources/qbd/employees.d.ts +17 -6
  61. package/resources/qbd/employees.d.ts.map +1 -1
  62. package/resources/qbd/employees.js.map +1 -1
  63. package/resources/qbd/employees.mjs.map +1 -1
  64. package/resources/qbd/estimates.d.ts +4 -4
  65. package/resources/qbd/index.d.ts +7 -1
  66. package/resources/qbd/index.d.ts.map +1 -1
  67. package/resources/qbd/index.js +16 -2
  68. package/resources/qbd/index.js.map +1 -1
  69. package/resources/qbd/index.mjs +6 -0
  70. package/resources/qbd/index.mjs.map +1 -1
  71. package/resources/qbd/inventory-adjustments.d.ts +4 -4
  72. package/resources/qbd/invoices.d.ts +4 -4
  73. package/resources/qbd/item-receipts.d.ts +2336 -0
  74. package/resources/qbd/item-receipts.d.ts.map +1 -0
  75. package/resources/qbd/item-receipts.js +69 -0
  76. package/resources/qbd/item-receipts.js.map +1 -0
  77. package/resources/qbd/item-receipts.mjs +64 -0
  78. package/resources/qbd/item-receipts.mjs.map +1 -0
  79. package/resources/qbd/journal-entries.d.ts +4 -4
  80. package/resources/qbd/preferences.d.ts +591 -0
  81. package/resources/qbd/preferences.d.ts.map +1 -0
  82. package/resources/qbd/preferences.js +21 -0
  83. package/resources/qbd/preferences.js.map +1 -0
  84. package/resources/qbd/preferences.mjs +17 -0
  85. package/resources/qbd/preferences.mjs.map +1 -0
  86. package/resources/qbd/price-levels.d.ts +454 -0
  87. package/resources/qbd/price-levels.d.ts.map +1 -0
  88. package/resources/qbd/price-levels.js +54 -0
  89. package/resources/qbd/price-levels.js.map +1 -0
  90. package/resources/qbd/price-levels.mjs +50 -0
  91. package/resources/qbd/price-levels.mjs.map +1 -0
  92. package/resources/qbd/purchase-orders.d.ts +4 -4
  93. package/resources/qbd/qbd.d.ts +52 -0
  94. package/resources/qbd/qbd.d.ts.map +1 -1
  95. package/resources/qbd/qbd.js +39 -0
  96. package/resources/qbd/qbd.js.map +1 -1
  97. package/resources/qbd/qbd.mjs +39 -0
  98. package/resources/qbd/qbd.mjs.map +1 -1
  99. package/resources/qbd/receive-payments.d.ts +4 -4
  100. package/resources/qbd/sales-orders.d.ts +4 -4
  101. package/resources/qbd/sales-receipts.d.ts +4 -4
  102. package/resources/qbd/sales-representatives.d.ts +4 -0
  103. package/resources/qbd/sales-representatives.d.ts.map +1 -1
  104. package/resources/qbd/time-tracking-activities.d.ts +4 -4
  105. package/resources/qbd/transactions.d.ts +310 -0
  106. package/resources/qbd/transactions.d.ts.map +1 -0
  107. package/resources/qbd/transactions.js +40 -0
  108. package/resources/qbd/transactions.js.map +1 -0
  109. package/resources/qbd/transactions.mjs +35 -0
  110. package/resources/qbd/transactions.mjs.map +1 -0
  111. package/resources/qbd/transfers.d.ts +4 -4
  112. package/resources/qbd/vendor-credits.d.ts +4 -4
  113. package/resources/qbd/vendors.d.ts +6 -6
  114. package/resources/qbd/vendors.d.ts.map +1 -1
  115. package/resources/qbd.d.ts +2 -0
  116. package/resources/qbd.d.ts.map +1 -0
  117. package/resources/qbd.js +19 -0
  118. package/resources/qbd.js.map +1 -0
  119. package/resources/qbd.mjs +3 -0
  120. package/resources/qbd.mjs.map +1 -0
  121. package/resources.d.ts +2 -0
  122. package/resources.d.ts.map +1 -0
  123. package/resources.js +18 -0
  124. package/resources.js.map +1 -0
  125. package/resources.mjs +2 -0
  126. package/resources.mjs.map +1 -0
  127. package/src/_shims/index.d.ts +2 -0
  128. package/src/_shims/index.js +5 -1
  129. package/src/_shims/index.mjs +5 -1
  130. package/src/core.ts +9 -4
  131. package/src/index.ts +6 -4
  132. package/src/pagination.ts +1 -1
  133. package/src/resources/auth-sessions.ts +1 -1
  134. package/src/resources/end-users.ts +0 -21
  135. package/src/resources/index.ts +1 -2
  136. package/src/resources/qbd/account-tax-lines.ts +70 -0
  137. package/src/resources/qbd/accounts.ts +9 -3
  138. package/src/resources/qbd/bill-check-payments.ts +4 -4
  139. package/src/resources/qbd/bill-credit-card-payments.ts +4 -4
  140. package/src/resources/qbd/bills.ts +7 -8
  141. package/src/resources/qbd/checks.ts +4 -4
  142. package/src/resources/qbd/company.ts +466 -0
  143. package/src/resources/qbd/credit-card-charges.ts +4 -4
  144. package/src/resources/qbd/credit-card-credits.ts +4 -4
  145. package/src/resources/qbd/credit-memos.ts +4 -4
  146. package/src/resources/qbd/customers.ts +2 -2
  147. package/src/resources/qbd/employees.ts +18 -6
  148. package/src/resources/qbd/estimates.ts +4 -4
  149. package/src/resources/qbd/index.ts +36 -1
  150. package/src/resources/qbd/inventory-adjustments.ts +4 -4
  151. package/src/resources/qbd/invoices.ts +4 -4
  152. package/src/resources/qbd/item-receipts.ts +2783 -0
  153. package/src/resources/qbd/journal-entries.ts +4 -4
  154. package/src/resources/qbd/preferences.ts +684 -0
  155. package/src/resources/qbd/price-levels.ts +561 -0
  156. package/src/resources/qbd/purchase-orders.ts +4 -4
  157. package/src/resources/qbd/qbd.ts +144 -0
  158. package/src/resources/qbd/receive-payments.ts +4 -4
  159. package/src/resources/qbd/sales-orders.ts +4 -4
  160. package/src/resources/qbd/sales-receipts.ts +4 -4
  161. package/src/resources/qbd/sales-representatives.ts +4 -0
  162. package/src/resources/qbd/time-tracking-activities.ts +4 -4
  163. package/src/resources/qbd/transactions.ts +439 -0
  164. package/src/resources/qbd/transfers.ts +4 -4
  165. package/src/resources/qbd/vendor-credits.ts +4 -4
  166. package/src/resources/qbd/vendors.ts +6 -6
  167. package/src/resources/qbd.ts +3 -0
  168. package/src/resources.ts +1 -0
  169. package/src/version.ts +1 -1
  170. package/version.d.ts +1 -1
  171. package/version.d.ts.map +1 -1
  172. package/version.js +1 -1
  173. package/version.js.map +1 -1
  174. package/version.mjs +1 -1
  175. package/version.mjs.map +1 -1
@@ -0,0 +1,466 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
+
6
+ export class CompanyResource extends APIResource {
7
+ /**
8
+ * Returns detailed information about the connected QuickBooks company file,
9
+ * including company address, legal name, preferences, and subscribed services.
10
+ * Note that company information cannot be modified through the API, only through
11
+ * the QuickBooks Desktop user interface.
12
+ */
13
+ retrieve(params: CompanyRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Company> {
14
+ const { conductorEndUserId } = params;
15
+ return this._client.get('/quickbooks-desktop/company', {
16
+ ...options,
17
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
18
+ });
19
+ }
20
+ }
21
+
22
+ export interface Company {
23
+ /**
24
+ * Information about the accountant's copy for this company file. An accountant's
25
+ * copy allows an accountant to make changes while the business continues normal
26
+ * operations. It includes a dividing date that defines the fiscal period the
27
+ * accountant can work on, with restrictions on transactions and accounts within
28
+ * that period. While an accountant copy exists, users cannot modify transactions
29
+ * dated on or before the dividing date, cannot add subaccounts to existing
30
+ * accounts, and cannot edit, merge, or make existing accounts inactive.
31
+ */
32
+ accountantCopy: Company.AccountantCopy | null;
33
+
34
+ /**
35
+ * The company's address, used on its invoices, checks, and other forms (along with
36
+ * `companyName`). This is different from the company's legal address used on tax
37
+ * forms and pay stubs (along with `legalCompanyName`).
38
+ */
39
+ address: Company.Address | null;
40
+
41
+ /**
42
+ * The address where this company receives mail from its customers.
43
+ */
44
+ addressForCustomer: Company.AddressForCustomer | null;
45
+
46
+ /**
47
+ * The name of the QuickBooks user's business associated with this company. This
48
+ * name is used on invoices, checks, and other forms, while `legalCompanyName` is
49
+ * used on tax forms and pay stubs.
50
+ */
51
+ companyName: string | null;
52
+
53
+ /**
54
+ * The company type, which the QuickBooks user selected from a list when creating
55
+ * the company file.
56
+ */
57
+ companyType: string | null;
58
+
59
+ /**
60
+ * The custom fields for the company object, added as user-defined data extensions,
61
+ * not included in the standard QuickBooks object.
62
+ */
63
+ customFields: Array<Company.CustomField>;
64
+
65
+ /**
66
+ * The company's Employer Identification Number.
67
+ */
68
+ ein: string | null;
69
+
70
+ /**
71
+ * The company's email address.
72
+ */
73
+ email: string | null;
74
+
75
+ /**
76
+ * The company's fax number.
77
+ */
78
+ fax: string | null;
79
+
80
+ /**
81
+ * The first month of this company's fiscal year, which determines the default date
82
+ * range for financial reports.
83
+ */
84
+ fiscalYearStartMonth:
85
+ | 'january'
86
+ | 'february'
87
+ | 'march'
88
+ | 'april'
89
+ | 'may'
90
+ | 'june'
91
+ | 'july'
92
+ | 'august'
93
+ | 'september'
94
+ | 'october'
95
+ | 'november'
96
+ | 'december'
97
+ | null;
98
+
99
+ /**
100
+ * The first month of this company's income tax year, which determines the default
101
+ * date range for financial reports.
102
+ */
103
+ incomeTaxYearStartMonth:
104
+ | 'january'
105
+ | 'february'
106
+ | 'march'
107
+ | 'april'
108
+ | 'may'
109
+ | 'june'
110
+ | 'july'
111
+ | 'august'
112
+ | 'september'
113
+ | 'october'
114
+ | 'november'
115
+ | 'december'
116
+ | null;
117
+
118
+ /**
119
+ * Indicates whether the connected QuickBooks company file is a "sample file",
120
+ * which is a mock company file used for testing.
121
+ */
122
+ isSampleCompanyFile: boolean;
123
+
124
+ /**
125
+ * The company's legal address used on its tax forms and pay stubs (along with
126
+ * `legalCompanyName`). This is different from the company's `address` used on
127
+ * invoices, checks, and other forms (along with `companyName`).
128
+ */
129
+ legalAddress: Company.LegalAddress | null;
130
+
131
+ /**
132
+ * The legal name of this company's business, as specified in QuickBooks. This
133
+ * value is used on tax forms and pay stubs, while `companyName` is used on
134
+ * invoices, checks, and other forms.
135
+ */
136
+ legalCompanyName: string | null;
137
+
138
+ /**
139
+ * The company's primary telephone number.
140
+ */
141
+ phone: string | null;
142
+
143
+ /**
144
+ * The company's Social Security Number. The value can be with or without dashes.
145
+ *
146
+ * **NOTE**: This field cannot be changed after the company is created.
147
+ */
148
+ ssn: string | null;
149
+
150
+ /**
151
+ * The Intuit services that this company is or has been subscribed to, such as
152
+ * Intuit Payroll.
153
+ */
154
+ subscribedServices: Company.SubscribedServices | null;
155
+
156
+ /**
157
+ * The tax form that the QuickBooks user expects to file for this company's taxes.
158
+ * When a specific tax form is selected (any value other than `other_or_none`),
159
+ * QuickBooks allows associating each account with a specific tax form line. This
160
+ * association appears in account query responses.
161
+ */
162
+ taxForm:
163
+ | 'form_1040'
164
+ | 'form_1065'
165
+ | 'form_1120'
166
+ | 'form_1120s'
167
+ | 'form_990'
168
+ | 'form_990pf'
169
+ | 'form_990t'
170
+ | 'other_or_none'
171
+ | null;
172
+
173
+ /**
174
+ * The company's public website.
175
+ */
176
+ website: string | null;
177
+ }
178
+
179
+ export namespace Company {
180
+ /**
181
+ * Information about the accountant's copy for this company file. An accountant's
182
+ * copy allows an accountant to make changes while the business continues normal
183
+ * operations. It includes a dividing date that defines the fiscal period the
184
+ * accountant can work on, with restrictions on transactions and accounts within
185
+ * that period. While an accountant copy exists, users cannot modify transactions
186
+ * dated on or before the dividing date, cannot add subaccounts to existing
187
+ * accounts, and cannot edit, merge, or make existing accounts inactive.
188
+ */
189
+ export interface AccountantCopy {
190
+ /**
191
+ * Indicates whether an accountant copy has been made for this company file. An
192
+ * accountant copy allows an accountant to work on the books while the business
193
+ * continues daily operations.
194
+ */
195
+ accountantCopyExists: boolean;
196
+
197
+ /**
198
+ * The fiscal period dividing date for accountant work, in ISO 8601 format
199
+ * (YYYY-MM-DD). While an accountant copy exists, transactions within this period
200
+ * cannot be modified or created. New accounts can be added, but existing accounts
201
+ * cannot have new subaccounts, be edited, merged, or made inactive. List items
202
+ * cannot be deleted or merged.
203
+ */
204
+ dividingDate: string | null;
205
+ }
206
+
207
+ /**
208
+ * The company's address, used on its invoices, checks, and other forms (along with
209
+ * `companyName`). This is different from the company's legal address used on tax
210
+ * forms and pay stubs (along with `legalCompanyName`).
211
+ */
212
+ export interface Address {
213
+ /**
214
+ * The city, district, suburb, town, or village name of the address.
215
+ */
216
+ city: string | null;
217
+
218
+ /**
219
+ * The country name of the address.
220
+ */
221
+ country: string | null;
222
+
223
+ /**
224
+ * The first line of the address (e.g., street, PO Box, or company name).
225
+ */
226
+ line1: string | null;
227
+
228
+ /**
229
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
230
+ * building).
231
+ */
232
+ line2: string | null;
233
+
234
+ /**
235
+ * The third line of the address, if needed.
236
+ */
237
+ line3: string | null;
238
+
239
+ /**
240
+ * The fourth line of the address, if needed.
241
+ */
242
+ line4: string | null;
243
+
244
+ /**
245
+ * The fifth line of the address, if needed.
246
+ */
247
+ line5: string | null;
248
+
249
+ /**
250
+ * A note written at the bottom of the address in the form in which it appears,
251
+ * such as the invoice form.
252
+ */
253
+ note: string | null;
254
+
255
+ /**
256
+ * The postal code or ZIP code of the address.
257
+ */
258
+ postalCode: string | null;
259
+
260
+ /**
261
+ * The state, county, province, or region name of the address.
262
+ */
263
+ state: string | null;
264
+ }
265
+
266
+ /**
267
+ * The address where this company receives mail from its customers.
268
+ */
269
+ export interface AddressForCustomer {
270
+ /**
271
+ * The city, district, suburb, town, or village name of the address.
272
+ */
273
+ city: string | null;
274
+
275
+ /**
276
+ * The country name of the address.
277
+ */
278
+ country: string | null;
279
+
280
+ /**
281
+ * The first line of the address (e.g., street, PO Box, or company name).
282
+ */
283
+ line1: string | null;
284
+
285
+ /**
286
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
287
+ * building).
288
+ */
289
+ line2: string | null;
290
+
291
+ /**
292
+ * The third line of the address, if needed.
293
+ */
294
+ line3: string | null;
295
+
296
+ /**
297
+ * The fourth line of the address, if needed.
298
+ */
299
+ line4: string | null;
300
+
301
+ /**
302
+ * The fifth line of the address, if needed.
303
+ */
304
+ line5: string | null;
305
+
306
+ /**
307
+ * A note written at the bottom of the address in the form in which it appears,
308
+ * such as the invoice form.
309
+ */
310
+ note: string | null;
311
+
312
+ /**
313
+ * The postal code or ZIP code of the address.
314
+ */
315
+ postalCode: string | null;
316
+
317
+ /**
318
+ * The state, county, province, or region name of the address.
319
+ */
320
+ state: string | null;
321
+ }
322
+
323
+ export interface CustomField {
324
+ /**
325
+ * The name of the custom field, unique for the specified `ownerId`. For public
326
+ * custom fields, this name is visible as a label in the QuickBooks UI.
327
+ */
328
+ name: string;
329
+
330
+ /**
331
+ * The identifier of the owner of the custom field, which QuickBooks internally
332
+ * calls a "data extension". For public custom fields visible in the UI, such as
333
+ * those added by the QuickBooks user, this is always "0". For private custom
334
+ * fields that are only visible to the application that created them, this is a
335
+ * valid GUID identifying the owning application. Internally, Conductor always
336
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
337
+ * objects.
338
+ */
339
+ ownerId: string;
340
+
341
+ /**
342
+ * The data type of this custom field.
343
+ */
344
+ type:
345
+ | 'amount_type'
346
+ | 'date_time_type'
347
+ | 'integer_type'
348
+ | 'percent_type'
349
+ | 'price_type'
350
+ | 'quantity_type'
351
+ | 'string_1024_type'
352
+ | 'string_255_type';
353
+
354
+ /**
355
+ * The value of this custom field. The maximum length depends on the field's data
356
+ * type.
357
+ */
358
+ value: string;
359
+ }
360
+
361
+ /**
362
+ * The company's legal address used on its tax forms and pay stubs (along with
363
+ * `legalCompanyName`). This is different from the company's `address` used on
364
+ * invoices, checks, and other forms (along with `companyName`).
365
+ */
366
+ export interface LegalAddress {
367
+ /**
368
+ * The city, district, suburb, town, or village name of the address.
369
+ */
370
+ city: string | null;
371
+
372
+ /**
373
+ * The country name of the address.
374
+ */
375
+ country: string | null;
376
+
377
+ /**
378
+ * The first line of the address (e.g., street, PO Box, or company name).
379
+ */
380
+ line1: string | null;
381
+
382
+ /**
383
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
384
+ * building).
385
+ */
386
+ line2: string | null;
387
+
388
+ /**
389
+ * The third line of the address, if needed.
390
+ */
391
+ line3: string | null;
392
+
393
+ /**
394
+ * The fourth line of the address, if needed.
395
+ */
396
+ line4: string | null;
397
+
398
+ /**
399
+ * The fifth line of the address, if needed.
400
+ */
401
+ line5: string | null;
402
+
403
+ /**
404
+ * A note written at the bottom of the address in the form in which it appears,
405
+ * such as the invoice form.
406
+ */
407
+ note: string | null;
408
+
409
+ /**
410
+ * The postal code or ZIP code of the address.
411
+ */
412
+ postalCode: string | null;
413
+
414
+ /**
415
+ * The state, county, province, or region name of the address.
416
+ */
417
+ state: string | null;
418
+ }
419
+
420
+ /**
421
+ * The Intuit services that this company is or has been subscribed to, such as
422
+ * Intuit Payroll.
423
+ */
424
+ export interface SubscribedServices {
425
+ /**
426
+ * The list of Intuit services that this company is or has been subscribed to, for
427
+ * example, Intuit Payroll, QBMS.
428
+ */
429
+ services: Array<SubscribedServices.Service>;
430
+ }
431
+
432
+ export namespace SubscribedServices {
433
+ export interface Service {
434
+ /**
435
+ * The domain of this subscribed service
436
+ */
437
+ domain: string | null;
438
+
439
+ /**
440
+ * The case-insensitive unique name of this service, unique across all services.
441
+ *
442
+ * **NOTE**: Services do not have a `fullName` field because they are not
443
+ * hierarchical objects, which is why `name` is unique for them but not for objects
444
+ * that have parents.
445
+ */
446
+ name: string;
447
+
448
+ /**
449
+ * The status of this service's subscription.
450
+ */
451
+ serviceStatus: 'active' | 'expired' | 'never' | 'pending' | 'suspended' | 'terminated' | 'trial' | null;
452
+ }
453
+ }
454
+ }
455
+
456
+ export interface CompanyRetrieveParams {
457
+ /**
458
+ * The ID of the EndUser to receive this request (e.g.,
459
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
460
+ */
461
+ conductorEndUserId: string;
462
+ }
463
+
464
+ export declare namespace CompanyResource {
465
+ export { type Company as Company, type CompanyRetrieveParams as CompanyRetrieveParams };
466
+ }
@@ -2596,14 +2596,14 @@ export interface CreditCardChargeListParams extends CursorPageParams {
2596
2596
  refNumberTo?: string;
2597
2597
 
2598
2598
  /**
2599
- * Query param: Filter for credit card charges created on or after this date, in
2600
- * ISO 8601 format (YYYY-MM-DD).
2599
+ * Query param: Filter for credit card charges whose `date` field is on or after
2600
+ * this date, in ISO 8601 format (YYYY-MM-DD).
2601
2601
  */
2602
2602
  transactionDateFrom?: string;
2603
2603
 
2604
2604
  /**
2605
- * Query param: Filter for credit card charges created on or before this date, in
2606
- * ISO 8601 format (YYYY-MM-DD).
2605
+ * Query param: Filter for credit card charges whose `date` field is on or before
2606
+ * this date, in ISO 8601 format (YYYY-MM-DD).
2607
2607
  */
2608
2608
  transactionDateTo?: string;
2609
2609
 
@@ -2593,14 +2593,14 @@ export interface CreditCardCreditListParams extends CursorPageParams {
2593
2593
  refNumberTo?: string;
2594
2594
 
2595
2595
  /**
2596
- * Query param: Filter for credit card credits created on or after this date, in
2597
- * ISO 8601 format (YYYY-MM-DD).
2596
+ * Query param: Filter for credit card credits whose `date` field is on or after
2597
+ * this date, in ISO 8601 format (YYYY-MM-DD).
2598
2598
  */
2599
2599
  transactionDateFrom?: string;
2600
2600
 
2601
2601
  /**
2602
- * Query param: Filter for credit card credits created on or before this date, in
2603
- * ISO 8601 format (YYYY-MM-DD).
2602
+ * Query param: Filter for credit card credits whose `date` field is on or before
2603
+ * this date, in ISO 8601 format (YYYY-MM-DD).
2604
2604
  */
2605
2605
  transactionDateTo?: string;
2606
2606
 
@@ -3107,14 +3107,14 @@ export interface CreditMemoListParams extends CursorPageParams {
3107
3107
  refNumberTo?: string;
3108
3108
 
3109
3109
  /**
3110
- * Query param: Filter for credit memos created on or after this date, in ISO 8601
3111
- * format (YYYY-MM-DD).
3110
+ * Query param: Filter for credit memos whose `date` field is on or after this
3111
+ * date, in ISO 8601 format (YYYY-MM-DD).
3112
3112
  */
3113
3113
  transactionDateFrom?: string;
3114
3114
 
3115
3115
  /**
3116
- * Query param: Filter for credit memos created on or before this date, in ISO 8601
3117
- * format (YYYY-MM-DD).
3116
+ * Query param: Filter for credit memos whose `date` field is on or before this
3117
+ * date, in ISO 8601 format (YYYY-MM-DD).
3118
3118
  */
3119
3119
  transactionDateTo?: string;
3120
3120
 
@@ -522,7 +522,7 @@ export namespace Customer {
522
522
  /**
523
523
  * The date this note was last updated, in ISO 8601 format (YYYY-MM-DD).
524
524
  */
525
- date: string;
525
+ date: string | null;
526
526
 
527
527
  /**
528
528
  * The text of this note.
@@ -2085,7 +2085,7 @@ export namespace CustomerUpdateParams {
2085
2085
  /**
2086
2086
  * The text of this note.
2087
2087
  */
2088
- note?: string;
2088
+ note: string;
2089
2089
  }
2090
2090
 
2091
2091
  export interface AlternateShippingAddress {
@@ -108,7 +108,7 @@ export interface Employee {
108
108
 
109
109
  /**
110
110
  * The employee's billing rate, used to override service item rates in time
111
- * tracking transactions.
111
+ * tracking activities.
112
112
  */
113
113
  billingRate: Employee.BillingRate | null;
114
114
 
@@ -393,7 +393,7 @@ export namespace Employee {
393
393
  /**
394
394
  * The date this note was last updated, in ISO 8601 format (YYYY-MM-DD).
395
395
  */
396
- date: string;
396
+ date: string | null;
397
397
 
398
398
  /**
399
399
  * The text of this note.
@@ -513,7 +513,7 @@ export namespace Employee {
513
513
 
514
514
  /**
515
515
  * The employee's billing rate, used to override service item rates in time
516
- * tracking transactions.
516
+ * tracking activities.
517
517
  */
518
518
  export interface BillingRate {
519
519
  /**
@@ -931,7 +931,7 @@ export interface EmployeeCreateParams {
931
931
 
932
932
  /**
933
933
  * Body param: The employee's billing rate, used to override service item rates in
934
- * time tracking transactions.
934
+ * time tracking activities.
935
935
  */
936
936
  billingRateId?: string;
937
937
 
@@ -1610,7 +1610,7 @@ export interface EmployeeUpdateParams {
1610
1610
 
1611
1611
  /**
1612
1612
  * Body param: The employee's billing rate, used to override service item rates in
1613
- * time tracking transactions.
1613
+ * time tracking activities.
1614
1614
  */
1615
1615
  billingRateId?: string;
1616
1616
 
@@ -1834,7 +1834,7 @@ export namespace EmployeeUpdateParams {
1834
1834
  /**
1835
1835
  * The text of this note.
1836
1836
  */
1837
- note?: string;
1837
+ note: string;
1838
1838
  }
1839
1839
 
1840
1840
  /**
@@ -2058,8 +2058,20 @@ export namespace EmployeeUpdateParams {
2058
2058
  */
2059
2059
  classId?: string;
2060
2060
 
2061
+ /**
2062
+ * When `true`, deletes all earnings records for this employee.
2063
+ */
2064
+ deleteAllEarnings?: boolean;
2065
+
2061
2066
  /**
2062
2067
  * The employee's earnings.
2068
+ *
2069
+ * **IMPORTANT**: When updating employees, if you include any earnings records in
2070
+ * your update request, QuickBooks will delete all existing earnings records for
2071
+ * this employee and replace them with the new records you provide. If you do not
2072
+ * include any earnings records, the existing earnings records will remain
2073
+ * unchanged. To delete all earnings records without adding new ones, set the
2074
+ * `deleteAllEarnings` field to `true`.
2063
2075
  */
2064
2076
  earnings?: Array<EmployeePayroll.Earning>;
2065
2077
 
@@ -2925,14 +2925,14 @@ export interface EstimateListParams extends CursorPageParams {
2925
2925
  refNumberTo?: string;
2926
2926
 
2927
2927
  /**
2928
- * Query param: Filter for estimates created on or after this date, in ISO 8601
2929
- * format (YYYY-MM-DD).
2928
+ * Query param: Filter for estimates whose `date` field is on or after this date,
2929
+ * in ISO 8601 format (YYYY-MM-DD).
2930
2930
  */
2931
2931
  transactionDateFrom?: string;
2932
2932
 
2933
2933
  /**
2934
- * Query param: Filter for estimates created on or before this date, in ISO 8601
2935
- * format (YYYY-MM-DD).
2934
+ * Query param: Filter for estimates whose `date` field is on or before this date,
2935
+ * in ISO 8601 format (YYYY-MM-DD).
2936
2936
  */
2937
2937
  transactionDateTo?: string;
2938
2938