conductor-node 12.0.0-beta.8 → 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 (178) hide show
  1. package/CHANGELOG.md +194 -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 +12 -12
  22. package/resources/auth-sessions.js +3 -3
  23. package/resources/auth-sessions.mjs +3 -3
  24. package/resources/end-users.d.ts +20 -32
  25. package/resources/end-users.d.ts.map +1 -1
  26. package/resources/end-users.js +4 -12
  27. package/resources/end-users.js.map +1 -1
  28. package/resources/end-users.mjs +4 -12
  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 +14 -12
  105. package/resources/qbd/time-tracking-activities.d.ts.map +1 -1
  106. package/resources/qbd/time-tracking-activities.js.map +1 -1
  107. package/resources/qbd/time-tracking-activities.mjs.map +1 -1
  108. package/resources/qbd/transactions.d.ts +310 -0
  109. package/resources/qbd/transactions.d.ts.map +1 -0
  110. package/resources/qbd/transactions.js +40 -0
  111. package/resources/qbd/transactions.js.map +1 -0
  112. package/resources/qbd/transactions.mjs +35 -0
  113. package/resources/qbd/transactions.mjs.map +1 -0
  114. package/resources/qbd/transfers.d.ts +4 -4
  115. package/resources/qbd/vendor-credits.d.ts +4 -4
  116. package/resources/qbd/vendors.d.ts +6 -6
  117. package/resources/qbd/vendors.d.ts.map +1 -1
  118. package/resources/qbd.d.ts +2 -0
  119. package/resources/qbd.d.ts.map +1 -0
  120. package/resources/qbd.js +19 -0
  121. package/resources/qbd.js.map +1 -0
  122. package/resources/qbd.mjs +3 -0
  123. package/resources/qbd.mjs.map +1 -0
  124. package/resources.d.ts +2 -0
  125. package/resources.d.ts.map +1 -0
  126. package/resources.js +18 -0
  127. package/resources.js.map +1 -0
  128. package/resources.mjs +2 -0
  129. package/resources.mjs.map +1 -0
  130. package/src/_shims/index.d.ts +2 -0
  131. package/src/_shims/index.js +5 -1
  132. package/src/_shims/index.mjs +5 -1
  133. package/src/core.ts +9 -4
  134. package/src/index.ts +6 -4
  135. package/src/pagination.ts +1 -1
  136. package/src/resources/auth-sessions.ts +12 -12
  137. package/src/resources/end-users.ts +19 -40
  138. package/src/resources/index.ts +1 -2
  139. package/src/resources/qbd/account-tax-lines.ts +70 -0
  140. package/src/resources/qbd/accounts.ts +9 -3
  141. package/src/resources/qbd/bill-check-payments.ts +4 -4
  142. package/src/resources/qbd/bill-credit-card-payments.ts +4 -4
  143. package/src/resources/qbd/bills.ts +7 -8
  144. package/src/resources/qbd/checks.ts +4 -4
  145. package/src/resources/qbd/company.ts +466 -0
  146. package/src/resources/qbd/credit-card-charges.ts +4 -4
  147. package/src/resources/qbd/credit-card-credits.ts +4 -4
  148. package/src/resources/qbd/credit-memos.ts +4 -4
  149. package/src/resources/qbd/customers.ts +2 -2
  150. package/src/resources/qbd/employees.ts +18 -6
  151. package/src/resources/qbd/estimates.ts +4 -4
  152. package/src/resources/qbd/index.ts +36 -1
  153. package/src/resources/qbd/inventory-adjustments.ts +4 -4
  154. package/src/resources/qbd/invoices.ts +4 -4
  155. package/src/resources/qbd/item-receipts.ts +2783 -0
  156. package/src/resources/qbd/journal-entries.ts +4 -4
  157. package/src/resources/qbd/preferences.ts +684 -0
  158. package/src/resources/qbd/price-levels.ts +561 -0
  159. package/src/resources/qbd/purchase-orders.ts +4 -4
  160. package/src/resources/qbd/qbd.ts +144 -0
  161. package/src/resources/qbd/receive-payments.ts +4 -4
  162. package/src/resources/qbd/sales-orders.ts +4 -4
  163. package/src/resources/qbd/sales-receipts.ts +4 -4
  164. package/src/resources/qbd/sales-representatives.ts +4 -0
  165. package/src/resources/qbd/time-tracking-activities.ts +14 -12
  166. package/src/resources/qbd/transactions.ts +439 -0
  167. package/src/resources/qbd/transfers.ts +4 -4
  168. package/src/resources/qbd/vendor-credits.ts +4 -4
  169. package/src/resources/qbd/vendors.ts +6 -6
  170. package/src/resources/qbd.ts +3 -0
  171. package/src/resources.ts +1 -0
  172. package/src/version.ts +1 -1
  173. package/version.d.ts +1 -1
  174. package/version.d.ts.map +1 -1
  175. package/version.js +1 -1
  176. package/version.js.map +1 -1
  177. package/version.mjs +1 -1
  178. package/version.mjs.map +1 -1
@@ -381,7 +381,9 @@ export namespace Account {
381
381
  */
382
382
  export interface TaxLineDetails {
383
383
  /**
384
- * The identifier of the tax line associated with this account.
384
+ * The identifier of the tax line associated with this account. You can see a list
385
+ * of all available values for this field by calling the endpoint for account tax
386
+ * lines.
385
387
  */
386
388
  taxLineId: number;
387
389
 
@@ -521,7 +523,9 @@ export interface AccountCreateParams {
521
523
  salesTaxCodeId?: string;
522
524
 
523
525
  /**
524
- * Body param: The identifier of the tax line associated with this account.
526
+ * Body param: The identifier of the tax line associated with this account. You can
527
+ * see a list of all available values for this field by calling the endpoint for
528
+ * account tax lines.
525
529
  */
526
530
  taxLineId?: number;
527
531
  }
@@ -653,7 +657,9 @@ export interface AccountUpdateParams {
653
657
  salesTaxCodeId?: string;
654
658
 
655
659
  /**
656
- * Body param: The identifier of the tax line associated with this account.
660
+ * Body param: The identifier of the tax line associated with this account. You can
661
+ * see a list of all available values for this field by calling the endpoint for
662
+ * account tax lines.
657
663
  */
658
664
  taxLineId?: number;
659
665
  }
@@ -1030,14 +1030,14 @@ export interface BillCheckPaymentListParams extends CursorPageParams {
1030
1030
  refNumberTo?: string;
1031
1031
 
1032
1032
  /**
1033
- * Query param: Filter for bill check payments created on or after this date, in
1034
- * ISO 8601 format (YYYY-MM-DD).
1033
+ * Query param: Filter for bill check payments whose `date` field is on or after
1034
+ * this date, in ISO 8601 format (YYYY-MM-DD).
1035
1035
  */
1036
1036
  transactionDateFrom?: string;
1037
1037
 
1038
1038
  /**
1039
- * Query param: Filter for bill check payments created on or before this date, in
1040
- * ISO 8601 format (YYYY-MM-DD).
1039
+ * Query param: Filter for bill check payments whose `date` field is on or before
1040
+ * this date, in ISO 8601 format (YYYY-MM-DD).
1041
1041
  */
1042
1042
  transactionDateTo?: string;
1043
1043
 
@@ -796,14 +796,14 @@ export interface BillCreditCardPaymentListParams extends CursorPageParams {
796
796
  refNumberTo?: string;
797
797
 
798
798
  /**
799
- * Query param: Filter for bill credit card payments created on or after this date,
800
- * in ISO 8601 format (YYYY-MM-DD).
799
+ * Query param: Filter for bill credit card payments whose `date` field is on or
800
+ * after this date, in ISO 8601 format (YYYY-MM-DD).
801
801
  */
802
802
  transactionDateFrom?: string;
803
803
 
804
804
  /**
805
- * Query param: Filter for bill credit card payments created on or before this
806
- * date, in ISO 8601 format (YYYY-MM-DD).
805
+ * Query param: Filter for bill credit card payments whose `date` field is on or
806
+ * before this date, in ISO 8601 format (YYYY-MM-DD).
807
807
  */
808
808
  transactionDateTo?: string;
809
809
 
@@ -1705,10 +1705,9 @@ export interface BillCreateParams {
1705
1705
  itemLines?: Array<BillCreateParams.ItemLine>;
1706
1706
 
1707
1707
  /**
1708
- * Body param: IDs of existing transactions that you wish to link to this bill,
1709
- * such as payments applied, credits used, or associated purchase orders. Note that
1710
- * this links entire transactions, not individual transaction lines. If you want to
1711
- * link individual lines in a transaction, instead use the field
1708
+ * Body param: IDs of existing purchase orders that you wish to link to this bill.
1709
+ * Note that this links entire transactions, not individual transaction lines. If
1710
+ * you want to link individual lines in a transaction, instead use the field
1712
1711
  * `linkToTransactionLine` on this bill's lines, if available.
1713
1712
  *
1714
1713
  * Transactions can only be linked when creating this bill and cannot be unlinked
@@ -2984,14 +2983,14 @@ export interface BillListParams extends CursorPageParams {
2984
2983
  refNumberTo?: string;
2985
2984
 
2986
2985
  /**
2987
- * Query param: Filter for bills created on or after this date, in ISO 8601 format
2988
- * (YYYY-MM-DD).
2986
+ * Query param: Filter for bills whose `date` field is on or after this date, in
2987
+ * ISO 8601 format (YYYY-MM-DD).
2989
2988
  */
2990
2989
  transactionDateFrom?: string;
2991
2990
 
2992
2991
  /**
2993
- * Query param: Filter for bills created on or before this date, in ISO 8601 format
2994
- * (YYYY-MM-DD).
2992
+ * Query param: Filter for bills whose `date` field is on or before this date, in
2993
+ * ISO 8601 format (YYYY-MM-DD).
2995
2994
  */
2996
2995
  transactionDateTo?: string;
2997
2996
 
@@ -2953,14 +2953,14 @@ export interface CheckListParams extends CursorPageParams {
2953
2953
  refNumberTo?: string;
2954
2954
 
2955
2955
  /**
2956
- * Query param: Filter for checks created on or after this date, in ISO 8601 format
2957
- * (YYYY-MM-DD).
2956
+ * Query param: Filter for checks whose `date` field is on or after this date, in
2957
+ * ISO 8601 format (YYYY-MM-DD).
2958
2958
  */
2959
2959
  transactionDateFrom?: string;
2960
2960
 
2961
2961
  /**
2962
- * Query param: Filter for checks created on or before this date, in ISO 8601
2963
- * format (YYYY-MM-DD).
2962
+ * Query param: Filter for checks whose `date` field is on or before this date, in
2963
+ * ISO 8601 format (YYYY-MM-DD).
2964
2964
  */
2965
2965
  transactionDateTo?: string;
2966
2966
 
@@ -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 {