conductor-node 12.7.0 → 12.8.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 (106) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +4 -4
  3. package/package.json +1 -1
  4. package/resources/qbd/index.d.ts +2 -1
  5. package/resources/qbd/index.d.ts.map +1 -1
  6. package/resources/qbd/index.js +3 -2
  7. package/resources/qbd/index.js.map +1 -1
  8. package/resources/qbd/index.mjs +2 -1
  9. package/resources/qbd/index.mjs.map +1 -1
  10. package/resources/qbd/other-names.d.ts +690 -0
  11. package/resources/qbd/other-names.d.ts.map +1 -0
  12. package/resources/qbd/other-names.js +88 -0
  13. package/resources/qbd/other-names.js.map +1 -0
  14. package/resources/qbd/other-names.mjs +84 -0
  15. package/resources/qbd/other-names.mjs.map +1 -0
  16. package/resources/qbd/payment-methods.d.ts +35 -13
  17. package/resources/qbd/payment-methods.d.ts.map +1 -1
  18. package/resources/qbd/payment-methods.js +7 -14
  19. package/resources/qbd/payment-methods.js.map +1 -1
  20. package/resources/qbd/payment-methods.mjs +6 -12
  21. package/resources/qbd/payment-methods.mjs.map +1 -1
  22. package/resources/qbd/qbd.d.ts +6 -2
  23. package/resources/qbd/qbd.d.ts.map +1 -1
  24. package/resources/qbd/qbd.js +4 -1
  25. package/resources/qbd/qbd.js.map +1 -1
  26. package/resources/qbd/qbd.mjs +5 -2
  27. package/resources/qbd/qbd.mjs.map +1 -1
  28. package/src/_shims/auto/runtime-bun.ts +1 -1
  29. package/src/_shims/auto/runtime-node.ts +1 -1
  30. package/src/_shims/auto/runtime.ts +1 -1
  31. package/src/_shims/auto/types-node.ts +1 -1
  32. package/src/_shims/bun-runtime.ts +2 -2
  33. package/src/_shims/index.d.ts +3 -3
  34. package/src/_shims/index.mjs +1 -1
  35. package/src/_shims/node-runtime.ts +3 -3
  36. package/src/_shims/registry.ts +1 -1
  37. package/src/_shims/web-runtime.ts +3 -3
  38. package/src/core.ts +5 -5
  39. package/src/error.ts +1 -1
  40. package/src/index.ts +13 -13
  41. package/src/internal/qs/formats.ts +1 -1
  42. package/src/internal/qs/index.ts +3 -3
  43. package/src/internal/qs/stringify.ts +3 -3
  44. package/src/internal/qs/utils.ts +2 -2
  45. package/src/pagination.ts +1 -1
  46. package/src/resource.ts +1 -1
  47. package/src/resources/auth-sessions.ts +2 -2
  48. package/src/resources/end-users.ts +3 -3
  49. package/src/resources/index.ts +3 -3
  50. package/src/resources/qbd/account-tax-lines.ts +2 -2
  51. package/src/resources/qbd/accounts.ts +2 -2
  52. package/src/resources/qbd/bill-check-payments.ts +3 -3
  53. package/src/resources/qbd/bill-credit-card-payments.ts +3 -3
  54. package/src/resources/qbd/bills.ts +3 -3
  55. package/src/resources/qbd/checks.ts +3 -3
  56. package/src/resources/qbd/classes.ts +2 -2
  57. package/src/resources/qbd/company.ts +2 -2
  58. package/src/resources/qbd/credit-card-charges.ts +3 -3
  59. package/src/resources/qbd/credit-card-credits.ts +3 -3
  60. package/src/resources/qbd/credit-memos.ts +3 -3
  61. package/src/resources/qbd/customers.ts +3 -3
  62. package/src/resources/qbd/date-driven-terms.ts +2 -2
  63. package/src/resources/qbd/discount-items.ts +3 -3
  64. package/src/resources/qbd/employees.ts +3 -3
  65. package/src/resources/qbd/estimates.ts +3 -3
  66. package/src/resources/qbd/index.ts +56 -47
  67. package/src/resources/qbd/inventory-adjustments.ts +2 -2
  68. package/src/resources/qbd/inventory-assembly-items.ts +3 -3
  69. package/src/resources/qbd/inventory-items.ts +3 -3
  70. package/src/resources/qbd/inventory-sites.ts +2 -2
  71. package/src/resources/qbd/invoices.ts +3 -3
  72. package/src/resources/qbd/item-groups.ts +3 -3
  73. package/src/resources/qbd/item-receipts.ts +3 -3
  74. package/src/resources/qbd/item-sites.ts +3 -3
  75. package/src/resources/qbd/journal-entries.ts +3 -3
  76. package/src/resources/qbd/non-inventory-items.ts +3 -3
  77. package/src/resources/qbd/other-names.ts +855 -0
  78. package/src/resources/qbd/payment-methods.ts +42 -18
  79. package/src/resources/qbd/payroll-wage-items.ts +3 -3
  80. package/src/resources/qbd/preferences.ts +2 -2
  81. package/src/resources/qbd/price-levels.ts +2 -2
  82. package/src/resources/qbd/purchase-orders.ts +3 -3
  83. package/src/resources/qbd/qbd.ts +116 -95
  84. package/src/resources/qbd/receive-payments.ts +3 -3
  85. package/src/resources/qbd/sales-orders.ts +3 -3
  86. package/src/resources/qbd/sales-receipts.ts +3 -3
  87. package/src/resources/qbd/sales-representatives.ts +2 -2
  88. package/src/resources/qbd/sales-tax-codes.ts +2 -2
  89. package/src/resources/qbd/sales-tax-items.ts +3 -3
  90. package/src/resources/qbd/service-items.ts +3 -3
  91. package/src/resources/qbd/standard-terms.ts +2 -2
  92. package/src/resources/qbd/subtotal-items.ts +3 -3
  93. package/src/resources/qbd/time-tracking-activities.ts +3 -3
  94. package/src/resources/qbd/transactions.ts +3 -3
  95. package/src/resources/qbd/transfers.ts +3 -3
  96. package/src/resources/qbd/vendor-credits.ts +3 -3
  97. package/src/resources/qbd/vendors.ts +3 -3
  98. package/src/resources/qbd.ts +1 -1
  99. package/src/resources.ts +1 -1
  100. package/src/shims/node.ts +3 -3
  101. package/src/shims/web.ts +3 -3
  102. package/src/uploads.ts +4 -4
  103. package/src/version.ts +1 -1
  104. package/version.d.ts +1 -1
  105. package/version.js +1 -1
  106. package/version.mjs +1 -1
@@ -0,0 +1,855 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from "../../resource.js";
4
+ import * as Core from "../../core.js";
5
+
6
+ export class OtherNames extends APIResource {
7
+ /**
8
+ * Creates a new other-name.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const otherName = await client.qbd.otherNames.create({
13
+ * name: 'John Doe',
14
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
15
+ * });
16
+ * ```
17
+ */
18
+ create(params: OtherNameCreateParams, options?: Core.RequestOptions): Core.APIPromise<OtherName> {
19
+ const { conductorEndUserId, ...body } = params;
20
+ return this._client.post('/quickbooks-desktop/other-names', {
21
+ body,
22
+ ...options,
23
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
24
+ });
25
+ }
26
+
27
+ /**
28
+ * Retrieves an other-name by ID.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const otherName = await client.qbd.otherNames.retrieve(
33
+ * '80000001-1234567890',
34
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
35
+ * );
36
+ * ```
37
+ */
38
+ retrieve(
39
+ id: string,
40
+ params: OtherNameRetrieveParams,
41
+ options?: Core.RequestOptions,
42
+ ): Core.APIPromise<OtherName> {
43
+ const { conductorEndUserId } = params;
44
+ return this._client.get(`/quickbooks-desktop/other-names/${id}`, {
45
+ ...options,
46
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
47
+ });
48
+ }
49
+
50
+ /**
51
+ * Updates an existing other-name.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * const otherName = await client.qbd.otherNames.update(
56
+ * '80000001-1234567890',
57
+ * {
58
+ * revisionNumber: '1721172183',
59
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
60
+ * },
61
+ * );
62
+ * ```
63
+ */
64
+ update(
65
+ id: string,
66
+ params: OtherNameUpdateParams,
67
+ options?: Core.RequestOptions,
68
+ ): Core.APIPromise<OtherName> {
69
+ const { conductorEndUserId, ...body } = params;
70
+ return this._client.post(`/quickbooks-desktop/other-names/${id}`, {
71
+ body,
72
+ ...options,
73
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
74
+ });
75
+ }
76
+
77
+ /**
78
+ * Returns a list of other-names. NOTE: QuickBooks Desktop does not support
79
+ * pagination for other-names; hence, there is no `cursor` parameter. Users
80
+ * typically have few other-names.
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * const otherNames = await client.qbd.otherNames.list({
85
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
86
+ * });
87
+ * ```
88
+ */
89
+ list(params: OtherNameListParams, options?: Core.RequestOptions): Core.APIPromise<OtherNameListResponse> {
90
+ const { conductorEndUserId, ...query } = params;
91
+ return this._client.get('/quickbooks-desktop/other-names', {
92
+ query,
93
+ ...options,
94
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
95
+ });
96
+ }
97
+ }
98
+
99
+ export interface OtherName {
100
+ /**
101
+ * The unique identifier assigned by QuickBooks to this other-name. This ID is
102
+ * unique across all other-names but not across different QuickBooks object types.
103
+ */
104
+ id: string;
105
+
106
+ /**
107
+ * The other-name's account number, which appears in the QuickBooks chart of
108
+ * accounts, reports, and graphs.
109
+ *
110
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
111
+ * the account number may not be visible in the user interface, but it can still be
112
+ * set and retrieved through the API.
113
+ */
114
+ accountNumber: string | null;
115
+
116
+ /**
117
+ * The other-name's address.
118
+ */
119
+ address: OtherName.Address | null;
120
+
121
+ /**
122
+ * The name of a alternate contact person for this other-name.
123
+ */
124
+ alternateContact: string | null;
125
+
126
+ /**
127
+ * The other-name's alternate telephone number.
128
+ */
129
+ alternatePhone: string | null;
130
+
131
+ /**
132
+ * The name of the company associated with this other-name. This name is used on
133
+ * invoices, checks, and other forms.
134
+ */
135
+ companyName: string | null;
136
+
137
+ /**
138
+ * The name of the primary contact person for this other-name.
139
+ */
140
+ contact: string | null;
141
+
142
+ /**
143
+ * The date and time when this other-name was created, in ISO 8601 format
144
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
145
+ * in QuickBooks.
146
+ */
147
+ createdAt: string;
148
+
149
+ /**
150
+ * The custom fields for the other-name object, added as user-defined data
151
+ * extensions, not included in the standard QuickBooks object.
152
+ */
153
+ customFields: Array<OtherName.CustomField>;
154
+
155
+ /**
156
+ * The other-name's email address.
157
+ */
158
+ email: string | null;
159
+
160
+ /**
161
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
162
+ * this object in your external system. This field is immutable and can only be set
163
+ * during object creation.
164
+ */
165
+ externalId: string | null;
166
+
167
+ /**
168
+ * The other-name's fax number.
169
+ */
170
+ fax: string | null;
171
+
172
+ /**
173
+ * The first name of the contact person for this other-name.
174
+ */
175
+ firstName: string | null;
176
+
177
+ /**
178
+ * Indicates whether this other-name is active. Inactive objects are typically
179
+ * hidden from views and reports in QuickBooks. Defaults to `true`.
180
+ */
181
+ isActive: boolean;
182
+
183
+ /**
184
+ * The last name of the contact person for this other-name.
185
+ */
186
+ lastName: string | null;
187
+
188
+ /**
189
+ * The middle name of the contact person for this other-name.
190
+ */
191
+ middleName: string | null;
192
+
193
+ /**
194
+ * The case-insensitive unique name of this other-name, unique across all
195
+ * other-names.
196
+ *
197
+ * **NOTE**: Other-names do not have a `fullName` field because they are not
198
+ * hierarchical objects, which is why `name` is unique for them but not for objects
199
+ * that have parents.
200
+ */
201
+ name: string;
202
+
203
+ /**
204
+ * A note or comment about this other-name.
205
+ */
206
+ note: string | null;
207
+
208
+ /**
209
+ * The type of object. This value is always `"qbd_other_name"`.
210
+ */
211
+ objectType: 'qbd_other_name';
212
+
213
+ /**
214
+ * The other-name's primary telephone number.
215
+ */
216
+ phone: string | null;
217
+
218
+ /**
219
+ * The current QuickBooks-assigned revision number of this other-name object, which
220
+ * changes each time the object is modified. When updating this object, you must
221
+ * provide the most recent `revisionNumber` to ensure you're working with the
222
+ * latest data; otherwise, the update will return an error.
223
+ */
224
+ revisionNumber: string;
225
+
226
+ /**
227
+ * The formal salutation title that precedes the name of the contact person for
228
+ * this other-name, such as "Mr.", "Ms.", or "Dr.".
229
+ */
230
+ salutation: string | null;
231
+
232
+ /**
233
+ * The date and time when this other-name was last updated, in ISO 8601 format
234
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
235
+ * in QuickBooks.
236
+ */
237
+ updatedAt: string;
238
+ }
239
+
240
+ export namespace OtherName {
241
+ /**
242
+ * The other-name's address.
243
+ */
244
+ export interface Address {
245
+ /**
246
+ * The city, district, suburb, town, or village name of the address.
247
+ */
248
+ city: string | null;
249
+
250
+ /**
251
+ * The country name of the address.
252
+ */
253
+ country: string | null;
254
+
255
+ /**
256
+ * The first line of the address (e.g., street, PO Box, or company name).
257
+ */
258
+ line1: string | null;
259
+
260
+ /**
261
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
262
+ * building).
263
+ */
264
+ line2: string | null;
265
+
266
+ /**
267
+ * The third line of the address, if needed.
268
+ */
269
+ line3: string | null;
270
+
271
+ /**
272
+ * The fourth line of the address, if needed.
273
+ */
274
+ line4: string | null;
275
+
276
+ /**
277
+ * The fifth line of the address, if needed.
278
+ */
279
+ line5: string | null;
280
+
281
+ /**
282
+ * A note written at the bottom of the address in the form in which it appears,
283
+ * such as the invoice form.
284
+ */
285
+ note: string | null;
286
+
287
+ /**
288
+ * The postal code or ZIP code of the address.
289
+ */
290
+ postalCode: string | null;
291
+
292
+ /**
293
+ * The state, county, province, or region name of the address.
294
+ */
295
+ state: string | null;
296
+ }
297
+
298
+ export interface CustomField {
299
+ /**
300
+ * The name of the custom field, unique for the specified `ownerId`. For public
301
+ * custom fields, this name is visible as a label in the QuickBooks UI.
302
+ */
303
+ name: string;
304
+
305
+ /**
306
+ * The identifier of the owner of the custom field, which QuickBooks internally
307
+ * calls a "data extension". For public custom fields visible in the UI, such as
308
+ * those added by the QuickBooks user, this is always "0". For private custom
309
+ * fields that are only visible to the application that created them, this is a
310
+ * valid GUID identifying the owning application. Internally, Conductor always
311
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
312
+ * objects.
313
+ */
314
+ ownerId: string;
315
+
316
+ /**
317
+ * The data type of this custom field.
318
+ */
319
+ type:
320
+ | 'amount_type'
321
+ | 'date_time_type'
322
+ | 'integer_type'
323
+ | 'percent_type'
324
+ | 'price_type'
325
+ | 'quantity_type'
326
+ | 'string_1024_type'
327
+ | 'string_255_type';
328
+
329
+ /**
330
+ * The value of this custom field. The maximum length depends on the field's data
331
+ * type.
332
+ */
333
+ value: string;
334
+ }
335
+ }
336
+
337
+ export interface OtherNameListResponse {
338
+ /**
339
+ * The array of other-names.
340
+ */
341
+ data: Array<OtherName>;
342
+
343
+ /**
344
+ * The type of object. This value is always `"list"`.
345
+ */
346
+ objectType: 'list';
347
+
348
+ /**
349
+ * The endpoint URL where this list can be accessed.
350
+ */
351
+ url: string;
352
+ }
353
+
354
+ export interface OtherNameCreateParams {
355
+ /**
356
+ * Body param: The case-insensitive unique name of this other-name, unique across
357
+ * all other-names.
358
+ *
359
+ * **NOTE**: Other-names do not have a `fullName` field because they are not
360
+ * hierarchical objects, which is why `name` is unique for them but not for objects
361
+ * that have parents.
362
+ *
363
+ * Maximum length: 31 characters.
364
+ */
365
+ name: string;
366
+
367
+ /**
368
+ * Header param: The ID of the EndUser to receive this request (e.g.,
369
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
370
+ */
371
+ conductorEndUserId: string;
372
+
373
+ /**
374
+ * Body param: The other-name's account number, which appears in the QuickBooks
375
+ * chart of accounts, reports, and graphs.
376
+ *
377
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
378
+ * the account number may not be visible in the user interface, but it can still be
379
+ * set and retrieved through the API.
380
+ */
381
+ accountNumber?: string;
382
+
383
+ /**
384
+ * Body param: The other-name's address.
385
+ */
386
+ address?: OtherNameCreateParams.Address;
387
+
388
+ /**
389
+ * Body param: The name of a alternate contact person for this other-name.
390
+ */
391
+ alternateContact?: string;
392
+
393
+ /**
394
+ * Body param: The other-name's alternate telephone number.
395
+ */
396
+ alternatePhone?: string;
397
+
398
+ /**
399
+ * Body param: The name of the company associated with this other-name. This name
400
+ * is used on invoices, checks, and other forms.
401
+ */
402
+ companyName?: string;
403
+
404
+ /**
405
+ * Body param: The name of the primary contact person for this other-name.
406
+ */
407
+ contact?: string;
408
+
409
+ /**
410
+ * Body param: The other-name's email address.
411
+ */
412
+ email?: string;
413
+
414
+ /**
415
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
416
+ * for tracking this object in your external system. This field is immutable and
417
+ * can only be set during object creation.
418
+ *
419
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
420
+ * QuickBooks will return an error.
421
+ */
422
+ externalId?: string;
423
+
424
+ /**
425
+ * Body param: The other-name's fax number.
426
+ */
427
+ fax?: string;
428
+
429
+ /**
430
+ * Body param: The first name of the contact person for this other-name.
431
+ *
432
+ * Maximum length: 25 characters.
433
+ */
434
+ firstName?: string;
435
+
436
+ /**
437
+ * Body param: Indicates whether this other-name is active. Inactive objects are
438
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
439
+ */
440
+ isActive?: boolean;
441
+
442
+ /**
443
+ * Body param: The last name of the contact person for this other-name.
444
+ *
445
+ * Maximum length: 25 characters.
446
+ */
447
+ lastName?: string;
448
+
449
+ /**
450
+ * Body param: The middle name of the contact person for this other-name.
451
+ *
452
+ * Maximum length: 5 characters.
453
+ */
454
+ middleName?: string;
455
+
456
+ /**
457
+ * Body param: A note or comment about this other-name.
458
+ */
459
+ note?: string;
460
+
461
+ /**
462
+ * Body param: The other-name's primary telephone number.
463
+ */
464
+ phone?: string;
465
+
466
+ /**
467
+ * Body param: The formal salutation title that precedes the name of the contact
468
+ * person for this other-name, such as "Mr.", "Ms.", or "Dr.".
469
+ */
470
+ salutation?: string;
471
+ }
472
+
473
+ export namespace OtherNameCreateParams {
474
+ /**
475
+ * The other-name's address.
476
+ */
477
+ export interface Address {
478
+ /**
479
+ * The city, district, suburb, town, or village name of the address.
480
+ *
481
+ * Maximum length: 31 characters.
482
+ */
483
+ city?: string;
484
+
485
+ /**
486
+ * The country name of the address.
487
+ */
488
+ country?: string;
489
+
490
+ /**
491
+ * The first line of the address (e.g., street, PO Box, or company name).
492
+ *
493
+ * Maximum length: 41 characters.
494
+ */
495
+ line1?: string;
496
+
497
+ /**
498
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
499
+ * building).
500
+ *
501
+ * Maximum length: 41 characters.
502
+ */
503
+ line2?: string;
504
+
505
+ /**
506
+ * The third line of the address, if needed.
507
+ *
508
+ * Maximum length: 41 characters.
509
+ */
510
+ line3?: string;
511
+
512
+ /**
513
+ * The fourth line of the address, if needed.
514
+ *
515
+ * Maximum length: 41 characters.
516
+ */
517
+ line4?: string;
518
+
519
+ /**
520
+ * The fifth line of the address, if needed.
521
+ *
522
+ * Maximum length: 41 characters.
523
+ */
524
+ line5?: string;
525
+
526
+ /**
527
+ * A note written at the bottom of the address in the form in which it appears,
528
+ * such as the invoice form.
529
+ */
530
+ note?: string;
531
+
532
+ /**
533
+ * The postal code or ZIP code of the address.
534
+ *
535
+ * Maximum length: 13 characters.
536
+ */
537
+ postalCode?: string;
538
+
539
+ /**
540
+ * The state, county, province, or region name of the address.
541
+ *
542
+ * Maximum length: 21 characters.
543
+ */
544
+ state?: string;
545
+ }
546
+ }
547
+
548
+ export interface OtherNameRetrieveParams {
549
+ /**
550
+ * The ID of the EndUser to receive this request (e.g.,
551
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
552
+ */
553
+ conductorEndUserId: string;
554
+ }
555
+
556
+ export interface OtherNameUpdateParams {
557
+ /**
558
+ * Body param: The current QuickBooks-assigned revision number of the other-name
559
+ * object you are updating, which you can get by fetching the object first. Provide
560
+ * the most recent `revisionNumber` to ensure you're working with the latest data;
561
+ * otherwise, the update will return an error.
562
+ */
563
+ revisionNumber: string;
564
+
565
+ /**
566
+ * Header param: The ID of the EndUser to receive this request (e.g.,
567
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
568
+ */
569
+ conductorEndUserId: string;
570
+
571
+ /**
572
+ * Body param: The other-name's account number, which appears in the QuickBooks
573
+ * chart of accounts, reports, and graphs.
574
+ *
575
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
576
+ * the account number may not be visible in the user interface, but it can still be
577
+ * set and retrieved through the API.
578
+ */
579
+ accountNumber?: string;
580
+
581
+ /**
582
+ * Body param: The other-name's address.
583
+ */
584
+ address?: OtherNameUpdateParams.Address;
585
+
586
+ /**
587
+ * Body param: The name of a alternate contact person for this other-name.
588
+ */
589
+ alternateContact?: string;
590
+
591
+ /**
592
+ * Body param: The other-name's alternate telephone number.
593
+ */
594
+ alternatePhone?: string;
595
+
596
+ /**
597
+ * Body param: The name of the company associated with this other-name. This name
598
+ * is used on invoices, checks, and other forms.
599
+ */
600
+ companyName?: string;
601
+
602
+ /**
603
+ * Body param: The name of the primary contact person for this other-name.
604
+ */
605
+ contact?: string;
606
+
607
+ /**
608
+ * Body param: The other-name's email address.
609
+ */
610
+ email?: string;
611
+
612
+ /**
613
+ * Body param: The other-name's fax number.
614
+ */
615
+ fax?: string;
616
+
617
+ /**
618
+ * Body param: The first name of the contact person for this other-name.
619
+ *
620
+ * Maximum length: 25 characters.
621
+ */
622
+ firstName?: string;
623
+
624
+ /**
625
+ * Body param: Indicates whether this other-name is active. Inactive objects are
626
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
627
+ */
628
+ isActive?: boolean;
629
+
630
+ /**
631
+ * Body param: The last name of the contact person for this other-name.
632
+ *
633
+ * Maximum length: 25 characters.
634
+ */
635
+ lastName?: string;
636
+
637
+ /**
638
+ * Body param: The middle name of the contact person for this other-name.
639
+ *
640
+ * Maximum length: 5 characters.
641
+ */
642
+ middleName?: string;
643
+
644
+ /**
645
+ * Body param: The case-insensitive unique name of this other-name, unique across
646
+ * all other-names.
647
+ *
648
+ * **NOTE**: Other-names do not have a `fullName` field because they are not
649
+ * hierarchical objects, which is why `name` is unique for them but not for objects
650
+ * that have parents.
651
+ *
652
+ * Maximum length: 31 characters.
653
+ */
654
+ name?: string;
655
+
656
+ /**
657
+ * Body param: A note or comment about this other-name.
658
+ */
659
+ note?: string;
660
+
661
+ /**
662
+ * Body param: The other-name's primary telephone number.
663
+ */
664
+ phone?: string;
665
+
666
+ /**
667
+ * Body param: The formal salutation title that precedes the name of the contact
668
+ * person for this other-name, such as "Mr.", "Ms.", or "Dr.".
669
+ */
670
+ salutation?: string;
671
+ }
672
+
673
+ export namespace OtherNameUpdateParams {
674
+ /**
675
+ * The other-name's address.
676
+ */
677
+ export interface Address {
678
+ /**
679
+ * The city, district, suburb, town, or village name of the address.
680
+ *
681
+ * Maximum length: 31 characters.
682
+ */
683
+ city?: string;
684
+
685
+ /**
686
+ * The country name of the address.
687
+ */
688
+ country?: string;
689
+
690
+ /**
691
+ * The first line of the address (e.g., street, PO Box, or company name).
692
+ *
693
+ * Maximum length: 41 characters.
694
+ */
695
+ line1?: string;
696
+
697
+ /**
698
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
699
+ * building).
700
+ *
701
+ * Maximum length: 41 characters.
702
+ */
703
+ line2?: string;
704
+
705
+ /**
706
+ * The third line of the address, if needed.
707
+ *
708
+ * Maximum length: 41 characters.
709
+ */
710
+ line3?: string;
711
+
712
+ /**
713
+ * The fourth line of the address, if needed.
714
+ *
715
+ * Maximum length: 41 characters.
716
+ */
717
+ line4?: string;
718
+
719
+ /**
720
+ * The fifth line of the address, if needed.
721
+ *
722
+ * Maximum length: 41 characters.
723
+ */
724
+ line5?: string;
725
+
726
+ /**
727
+ * A note written at the bottom of the address in the form in which it appears,
728
+ * such as the invoice form.
729
+ */
730
+ note?: string;
731
+
732
+ /**
733
+ * The postal code or ZIP code of the address.
734
+ *
735
+ * Maximum length: 13 characters.
736
+ */
737
+ postalCode?: string;
738
+
739
+ /**
740
+ * The state, county, province, or region name of the address.
741
+ *
742
+ * Maximum length: 21 characters.
743
+ */
744
+ state?: string;
745
+ }
746
+ }
747
+
748
+ export interface OtherNameListParams {
749
+ /**
750
+ * Header param: The ID of the EndUser to receive this request (e.g.,
751
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
752
+ */
753
+ conductorEndUserId: string;
754
+
755
+ /**
756
+ * Query param: Filter for specific other-names by their QuickBooks-assigned unique
757
+ * identifier(s).
758
+ *
759
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
760
+ * query parameters for this request.
761
+ *
762
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
763
+ * request will return an error.
764
+ */
765
+ ids?: Array<string>;
766
+
767
+ /**
768
+ * Query param: The maximum number of objects to return.
769
+ *
770
+ * **IMPORTANT**: QuickBooks Desktop does not support cursor-based pagination for
771
+ * other-names. This parameter will limit the response size, but you cannot fetch
772
+ * subsequent results using a cursor. For pagination, use the name-range parameters
773
+ * instead (e.g., `nameFrom=A&nameTo=B`).
774
+ *
775
+ * When this parameter is omitted, the endpoint returns all other-names without
776
+ * limit, unlike paginated endpoints which default to 150 records. This is
777
+ * acceptable because other-names typically have low record counts.
778
+ */
779
+ limit?: number;
780
+
781
+ /**
782
+ * Query param: Filter for other-names whose `name` contains this substring,
783
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
784
+ * `nameStartsWith` or `nameEndsWith`.
785
+ */
786
+ nameContains?: string;
787
+
788
+ /**
789
+ * Query param: Filter for other-names whose `name` ends with this substring,
790
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
791
+ * `nameContains` or `nameStartsWith`.
792
+ */
793
+ nameEndsWith?: string;
794
+
795
+ /**
796
+ * Query param: Filter for other-names whose `name` is alphabetically greater than
797
+ * or equal to this value.
798
+ */
799
+ nameFrom?: string;
800
+
801
+ /**
802
+ * Query param: Filter for specific other-names by their name(s), case-insensitive.
803
+ * Like `id`, `name` is a unique identifier for an other-name.
804
+ *
805
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
806
+ * query parameters for this request.
807
+ *
808
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
809
+ * request will return an error.
810
+ */
811
+ names?: Array<string>;
812
+
813
+ /**
814
+ * Query param: Filter for other-names whose `name` starts with this substring,
815
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
816
+ * `nameContains` or `nameEndsWith`.
817
+ */
818
+ nameStartsWith?: string;
819
+
820
+ /**
821
+ * Query param: Filter for other-names whose `name` is alphabetically less than or
822
+ * equal to this value.
823
+ */
824
+ nameTo?: string;
825
+
826
+ /**
827
+ * Query param: Filter for other-names that are active, inactive, or both.
828
+ */
829
+ status?: 'active' | 'all' | 'inactive';
830
+
831
+ /**
832
+ * Query param: Filter for other-names updated on or after this date and time, in
833
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
834
+ * the time is assumed to be 00:00:00 of that day.
835
+ */
836
+ updatedAfter?: string;
837
+
838
+ /**
839
+ * Query param: Filter for other-names updated on or before this date and time, in
840
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
841
+ * the time is assumed to be 23:59:59 of that day.
842
+ */
843
+ updatedBefore?: string;
844
+ }
845
+
846
+ export declare namespace OtherNames {
847
+ export {
848
+ type OtherName as OtherName,
849
+ type OtherNameListResponse as OtherNameListResponse,
850
+ type OtherNameCreateParams as OtherNameCreateParams,
851
+ type OtherNameRetrieveParams as OtherNameRetrieveParams,
852
+ type OtherNameUpdateParams as OtherNameUpdateParams,
853
+ type OtherNameListParams as OtherNameListParams,
854
+ };
855
+ }