conductor-node 14.19.0 → 14.20.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 (148) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +1 -1
  3. package/resources/end-users.d.mts +15 -4
  4. package/resources/end-users.d.mts.map +1 -1
  5. package/resources/end-users.d.ts +15 -4
  6. package/resources/end-users.d.ts.map +1 -1
  7. package/resources/end-users.js +9 -2
  8. package/resources/end-users.js.map +1 -1
  9. package/resources/end-users.mjs +9 -2
  10. package/resources/end-users.mjs.map +1 -1
  11. package/resources/qbd/bill-check-payments.d.mts +1 -1
  12. package/resources/qbd/bill-check-payments.d.ts +1 -1
  13. package/resources/qbd/bill-check-payments.js +1 -1
  14. package/resources/qbd/bill-check-payments.mjs +1 -1
  15. package/resources/qbd/bill-credit-card-payments.d.mts +1 -1
  16. package/resources/qbd/bill-credit-card-payments.d.ts +1 -1
  17. package/resources/qbd/bill-credit-card-payments.js +1 -1
  18. package/resources/qbd/bill-credit-card-payments.mjs +1 -1
  19. package/resources/qbd/bills.d.mts +1 -1
  20. package/resources/qbd/bills.d.ts +1 -1
  21. package/resources/qbd/bills.js +1 -1
  22. package/resources/qbd/bills.mjs +1 -1
  23. package/resources/qbd/build-assemblies.d.mts +1 -1
  24. package/resources/qbd/build-assemblies.d.ts +1 -1
  25. package/resources/qbd/build-assemblies.js +1 -1
  26. package/resources/qbd/build-assemblies.mjs +1 -1
  27. package/resources/qbd/checks.d.mts +2 -2
  28. package/resources/qbd/checks.d.ts +2 -2
  29. package/resources/qbd/checks.js +2 -2
  30. package/resources/qbd/checks.mjs +2 -2
  31. package/resources/qbd/credit-card-charges.d.mts +1 -1
  32. package/resources/qbd/credit-card-charges.d.ts +1 -1
  33. package/resources/qbd/credit-card-charges.js +1 -1
  34. package/resources/qbd/credit-card-charges.mjs +1 -1
  35. package/resources/qbd/credit-card-credits.d.mts +1 -1
  36. package/resources/qbd/credit-card-credits.d.ts +1 -1
  37. package/resources/qbd/credit-card-credits.js +1 -1
  38. package/resources/qbd/credit-card-credits.mjs +1 -1
  39. package/resources/qbd/credit-card-refunds.d.mts +1 -1
  40. package/resources/qbd/credit-card-refunds.d.ts +1 -1
  41. package/resources/qbd/credit-card-refunds.js +1 -1
  42. package/resources/qbd/credit-card-refunds.mjs +1 -1
  43. package/resources/qbd/credit-memos.d.mts +2 -2
  44. package/resources/qbd/credit-memos.d.ts +2 -2
  45. package/resources/qbd/credit-memos.js +2 -2
  46. package/resources/qbd/credit-memos.mjs +2 -2
  47. package/resources/qbd/deposits.d.mts +1 -1
  48. package/resources/qbd/deposits.d.ts +1 -1
  49. package/resources/qbd/deposits.js +1 -1
  50. package/resources/qbd/deposits.mjs +1 -1
  51. package/resources/qbd/estimates.d.mts +1 -1
  52. package/resources/qbd/estimates.d.ts +1 -1
  53. package/resources/qbd/estimates.js +1 -1
  54. package/resources/qbd/estimates.mjs +1 -1
  55. package/resources/qbd/index.d.mts +1 -0
  56. package/resources/qbd/index.d.mts.map +1 -1
  57. package/resources/qbd/index.d.ts +1 -0
  58. package/resources/qbd/index.d.ts.map +1 -1
  59. package/resources/qbd/index.js +3 -1
  60. package/resources/qbd/index.js.map +1 -1
  61. package/resources/qbd/index.mjs +1 -0
  62. package/resources/qbd/index.mjs.map +1 -1
  63. package/resources/qbd/inventory-adjustments.d.mts +1 -1
  64. package/resources/qbd/inventory-adjustments.d.ts +1 -1
  65. package/resources/qbd/inventory-adjustments.js +1 -1
  66. package/resources/qbd/inventory-adjustments.mjs +1 -1
  67. package/resources/qbd/invoices.d.mts +1 -1
  68. package/resources/qbd/invoices.d.ts +1 -1
  69. package/resources/qbd/invoices.js +1 -1
  70. package/resources/qbd/invoices.mjs +1 -1
  71. package/resources/qbd/item-receipts.d.mts +2 -2
  72. package/resources/qbd/item-receipts.d.ts +2 -2
  73. package/resources/qbd/item-receipts.js +2 -2
  74. package/resources/qbd/item-receipts.mjs +2 -2
  75. package/resources/qbd/journal-entries.d.mts +2 -2
  76. package/resources/qbd/journal-entries.d.ts +2 -2
  77. package/resources/qbd/journal-entries.js +2 -2
  78. package/resources/qbd/journal-entries.mjs +2 -2
  79. package/resources/qbd/purchase-orders.d.mts +1 -1
  80. package/resources/qbd/purchase-orders.d.ts +1 -1
  81. package/resources/qbd/purchase-orders.js +1 -1
  82. package/resources/qbd/purchase-orders.mjs +1 -1
  83. package/resources/qbd/qbd.d.mts +4 -0
  84. package/resources/qbd/qbd.d.mts.map +1 -1
  85. package/resources/qbd/qbd.d.ts +4 -0
  86. package/resources/qbd/qbd.d.ts.map +1 -1
  87. package/resources/qbd/qbd.js +4 -0
  88. package/resources/qbd/qbd.js.map +1 -1
  89. package/resources/qbd/qbd.mjs +4 -0
  90. package/resources/qbd/qbd.mjs.map +1 -1
  91. package/resources/qbd/receive-payments.d.mts +1 -1
  92. package/resources/qbd/receive-payments.d.ts +1 -1
  93. package/resources/qbd/receive-payments.js +1 -1
  94. package/resources/qbd/receive-payments.mjs +1 -1
  95. package/resources/qbd/sales-orders.d.mts +2 -2
  96. package/resources/qbd/sales-orders.d.ts +2 -2
  97. package/resources/qbd/sales-orders.js +2 -2
  98. package/resources/qbd/sales-orders.mjs +2 -2
  99. package/resources/qbd/sales-receipts.d.mts +2 -2
  100. package/resources/qbd/sales-receipts.d.ts +2 -2
  101. package/resources/qbd/sales-receipts.js +2 -2
  102. package/resources/qbd/sales-receipts.mjs +2 -2
  103. package/resources/qbd/sales-tax-payment-checks.d.mts +809 -0
  104. package/resources/qbd/sales-tax-payment-checks.d.mts.map +1 -0
  105. package/resources/qbd/sales-tax-payment-checks.d.ts +809 -0
  106. package/resources/qbd/sales-tax-payment-checks.d.ts.map +1 -0
  107. package/resources/qbd/sales-tax-payment-checks.js +146 -0
  108. package/resources/qbd/sales-tax-payment-checks.js.map +1 -0
  109. package/resources/qbd/sales-tax-payment-checks.mjs +142 -0
  110. package/resources/qbd/sales-tax-payment-checks.mjs.map +1 -0
  111. package/resources/qbd/time-tracking-activities.d.mts +3 -3
  112. package/resources/qbd/time-tracking-activities.d.ts +3 -3
  113. package/resources/qbd/time-tracking-activities.js +3 -3
  114. package/resources/qbd/time-tracking-activities.mjs +3 -3
  115. package/resources/qbd/vendor-credits.d.mts +2 -2
  116. package/resources/qbd/vendor-credits.d.ts +2 -2
  117. package/resources/qbd/vendor-credits.js +2 -2
  118. package/resources/qbd/vendor-credits.mjs +2 -2
  119. package/src/resources/end-users.ts +15 -4
  120. package/src/resources/qbd/bill-check-payments.ts +1 -1
  121. package/src/resources/qbd/bill-credit-card-payments.ts +1 -1
  122. package/src/resources/qbd/bills.ts +1 -1
  123. package/src/resources/qbd/build-assemblies.ts +1 -1
  124. package/src/resources/qbd/checks.ts +2 -2
  125. package/src/resources/qbd/credit-card-charges.ts +1 -1
  126. package/src/resources/qbd/credit-card-credits.ts +1 -1
  127. package/src/resources/qbd/credit-card-refunds.ts +1 -1
  128. package/src/resources/qbd/credit-memos.ts +2 -2
  129. package/src/resources/qbd/deposits.ts +1 -1
  130. package/src/resources/qbd/estimates.ts +1 -1
  131. package/src/resources/qbd/index.ts +13 -0
  132. package/src/resources/qbd/inventory-adjustments.ts +1 -1
  133. package/src/resources/qbd/invoices.ts +1 -1
  134. package/src/resources/qbd/item-receipts.ts +2 -2
  135. package/src/resources/qbd/journal-entries.ts +2 -2
  136. package/src/resources/qbd/purchase-orders.ts +1 -1
  137. package/src/resources/qbd/qbd.ts +31 -0
  138. package/src/resources/qbd/receive-payments.ts +1 -1
  139. package/src/resources/qbd/sales-orders.ts +2 -2
  140. package/src/resources/qbd/sales-receipts.ts +2 -2
  141. package/src/resources/qbd/sales-tax-payment-checks.ts +1014 -0
  142. package/src/resources/qbd/time-tracking-activities.ts +3 -3
  143. package/src/resources/qbd/vendor-credits.ts +2 -2
  144. package/src/version.ts +1 -1
  145. package/version.d.mts +1 -1
  146. package/version.d.ts +1 -1
  147. package/version.js +1 -1
  148. package/version.mjs +1 -1
@@ -0,0 +1,1014 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
6
+ import { buildHeaders } from '../../internal/headers';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { path } from '../../internal/utils/path';
9
+
10
+ export class SalesTaxPaymentChecks extends APIResource {
11
+ /**
12
+ * Creates a new sales-tax payment check.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const salesTaxPaymentCheck =
17
+ * await conductor.qbd.salesTaxPaymentChecks.create({
18
+ * bankAccountId: '80000001-1234567890',
19
+ * lines: [{ amount: '1000.00' }],
20
+ * transactionDate: '2024-10-01',
21
+ * vendorId: '80000001-1234567890',
22
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
23
+ * });
24
+ * ```
25
+ */
26
+ create(
27
+ params: SalesTaxPaymentCheckCreateParams,
28
+ options?: RequestOptions,
29
+ ): APIPromise<SalesTaxPaymentCheck> {
30
+ const { conductorEndUserId, ...body } = params;
31
+ return this._client.post('/quickbooks-desktop/sales-tax-payment-checks', {
32
+ body,
33
+ ...options,
34
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
35
+ });
36
+ }
37
+
38
+ /**
39
+ * Retrieves a sales-tax payment check by ID.
40
+ *
41
+ * **IMPORTANT:** If you need to fetch multiple specific sales-tax payment checks
42
+ * by ID, use the list endpoint instead with the `ids` parameter. It accepts an
43
+ * array of IDs so you can batch the request into a single call, which is
44
+ * significantly faster.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const salesTaxPaymentCheck =
49
+ * await conductor.qbd.salesTaxPaymentChecks.retrieve(
50
+ * '123ABC-1234567890',
51
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
52
+ * );
53
+ * ```
54
+ */
55
+ retrieve(
56
+ id: string,
57
+ params: SalesTaxPaymentCheckRetrieveParams,
58
+ options?: RequestOptions,
59
+ ): APIPromise<SalesTaxPaymentCheck> {
60
+ const { conductorEndUserId } = params;
61
+ return this._client.get(path`/quickbooks-desktop/sales-tax-payment-checks/${id}`, {
62
+ ...options,
63
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
64
+ });
65
+ }
66
+
67
+ /**
68
+ * Updates an existing sales-tax payment check.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const salesTaxPaymentCheck =
73
+ * await conductor.qbd.salesTaxPaymentChecks.update(
74
+ * '123ABC-1234567890',
75
+ * {
76
+ * revisionNumber: '1721172183',
77
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
78
+ * },
79
+ * );
80
+ * ```
81
+ */
82
+ update(
83
+ id: string,
84
+ params: SalesTaxPaymentCheckUpdateParams,
85
+ options?: RequestOptions,
86
+ ): APIPromise<SalesTaxPaymentCheck> {
87
+ const { conductorEndUserId, ...body } = params;
88
+ return this._client.post(path`/quickbooks-desktop/sales-tax-payment-checks/${id}`, {
89
+ body,
90
+ ...options,
91
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
92
+ });
93
+ }
94
+
95
+ /**
96
+ * Returns a list of sales-tax payment checks. Use the `cursor` parameter to
97
+ * paginate through the results.
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * // Automatically fetches more pages as needed.
102
+ * for await (const salesTaxPaymentCheck of conductor.qbd.salesTaxPaymentChecks.list(
103
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
104
+ * )) {
105
+ * // ...
106
+ * }
107
+ * ```
108
+ */
109
+ list(
110
+ params: SalesTaxPaymentCheckListParams,
111
+ options?: RequestOptions,
112
+ ): PagePromise<SalesTaxPaymentChecksCursorPage, SalesTaxPaymentCheck> {
113
+ const { conductorEndUserId, ...query } = params;
114
+ return this._client.getAPIList(
115
+ '/quickbooks-desktop/sales-tax-payment-checks',
116
+ CursorPage<SalesTaxPaymentCheck>,
117
+ {
118
+ query,
119
+ ...options,
120
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
121
+ },
122
+ );
123
+ }
124
+
125
+ /**
126
+ * Permanently deletes a sales-tax payment check. The deletion will fail if the
127
+ * sales-tax payment check is currently in use or has any linked transactions that
128
+ * are in use.
129
+ *
130
+ * @example
131
+ * ```ts
132
+ * const salesTaxPaymentCheck =
133
+ * await conductor.qbd.salesTaxPaymentChecks.delete(
134
+ * '123ABC-1234567890',
135
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
136
+ * );
137
+ * ```
138
+ */
139
+ delete(
140
+ id: string,
141
+ params: SalesTaxPaymentCheckDeleteParams,
142
+ options?: RequestOptions,
143
+ ): APIPromise<SalesTaxPaymentCheckDeleteResponse> {
144
+ const { conductorEndUserId } = params;
145
+ return this._client.delete(path`/quickbooks-desktop/sales-tax-payment-checks/${id}`, {
146
+ ...options,
147
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
148
+ });
149
+ }
150
+
151
+ /**
152
+ * Voids a sales-tax payment check by setting its amount to zero while keeping a
153
+ * record of it in QuickBooks. The void will fail if the sales-tax payment check is
154
+ * currently in use or has any linked transactions that are in use.
155
+ *
156
+ * @example
157
+ * ```ts
158
+ * const response =
159
+ * await conductor.qbd.salesTaxPaymentChecks.void(
160
+ * '123ABC-1234567890',
161
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
162
+ * );
163
+ * ```
164
+ */
165
+ void(
166
+ id: string,
167
+ params: SalesTaxPaymentCheckVoidParams,
168
+ options?: RequestOptions,
169
+ ): APIPromise<SalesTaxPaymentCheckVoidResponse> {
170
+ const { conductorEndUserId } = params;
171
+ return this._client.post(path`/quickbooks-desktop/sales-tax-payment-checks/${id}/void`, {
172
+ ...options,
173
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
174
+ });
175
+ }
176
+ }
177
+
178
+ export type SalesTaxPaymentChecksCursorPage = CursorPage<SalesTaxPaymentCheck>;
179
+
180
+ export interface SalesTaxPaymentCheck {
181
+ /**
182
+ * The unique identifier assigned by QuickBooks to this sales-tax payment check.
183
+ * This ID is unique across all transaction types.
184
+ */
185
+ id: string;
186
+
187
+ /**
188
+ * The address that is printed on the sales-tax payment check.
189
+ */
190
+ address: SalesTaxPaymentCheck.Address | null;
191
+
192
+ /**
193
+ * The total monetary amount of this sales-tax payment check, represented as a
194
+ * decimal string. This equals the sum of the amounts in the sales-tax payment
195
+ * check lines.
196
+ */
197
+ amount: string;
198
+
199
+ /**
200
+ * The bank account from which the funds are being drawn for this sales-tax payment
201
+ * check; e.g., Checking or Savings. This sales-tax payment check will decrease the
202
+ * balance of this account.
203
+ */
204
+ bankAccount: SalesTaxPaymentCheck.BankAccount;
205
+
206
+ /**
207
+ * The date and time when this sales-tax payment check was created, in ISO 8601
208
+ * format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the
209
+ * local timezone of the end-user's computer.
210
+ */
211
+ createdAt: string;
212
+
213
+ /**
214
+ * The custom fields for the sales-tax payment check object, added as user-defined
215
+ * data extensions, not included in the standard QuickBooks object.
216
+ */
217
+ customFields: Array<SalesTaxPaymentCheck.CustomField>;
218
+
219
+ /**
220
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
221
+ * this object in your external system. This field is immutable and can only be set
222
+ * during object creation.
223
+ */
224
+ externalId: string | null;
225
+
226
+ /**
227
+ * Indicates whether this sales-tax payment check is included in the queue of
228
+ * documents for QuickBooks to print.
229
+ */
230
+ isQueuedForPrint: boolean | null;
231
+
232
+ /**
233
+ * The payment lines in this sales-tax payment check, each recording an amount paid
234
+ * toward a sales-tax item.
235
+ */
236
+ lines: Array<SalesTaxPaymentCheck.Line>;
237
+
238
+ /**
239
+ * A memo or note for this sales-tax payment check.
240
+ */
241
+ memo: string | null;
242
+
243
+ /**
244
+ * The type of object. This value is always `"qbd_sales_tax_payment_check"`.
245
+ */
246
+ objectType: 'qbd_sales_tax_payment_check';
247
+
248
+ /**
249
+ * The case-sensitive user-defined reference number for this sales-tax payment
250
+ * check, which can be used to identify the transaction in QuickBooks. This value
251
+ * is not required to be unique and can be arbitrarily changed by the QuickBooks
252
+ * user.
253
+ *
254
+ * **IMPORTANT**: For checks, this field is the check number.
255
+ */
256
+ refNumber: string | null;
257
+
258
+ /**
259
+ * The current QuickBooks-assigned revision number of this sales-tax payment check
260
+ * object, which changes each time the object is modified. When updating this
261
+ * object, you must provide the most recent `revisionNumber` to ensure you're
262
+ * working with the latest data; otherwise, the update will return an error.
263
+ */
264
+ revisionNumber: string;
265
+
266
+ /**
267
+ * The date of this sales-tax payment check, in ISO 8601 format (YYYY-MM-DD).
268
+ */
269
+ transactionDate: string;
270
+
271
+ /**
272
+ * The date and time when this sales-tax payment check was last updated, in ISO
273
+ * 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in
274
+ * the local timezone of the end-user's computer.
275
+ */
276
+ updatedAt: string;
277
+
278
+ /**
279
+ * The sales-tax agency, represented as a QuickBooks vendor, receiving this
280
+ * sales-tax payment check. This must match the tax vendor associated with the
281
+ * sales-tax items in the payment lines.
282
+ */
283
+ vendor: SalesTaxPaymentCheck.Vendor | null;
284
+ }
285
+
286
+ export namespace SalesTaxPaymentCheck {
287
+ /**
288
+ * The address that is printed on the sales-tax payment check.
289
+ */
290
+ export interface Address {
291
+ /**
292
+ * The city, district, suburb, town, or village name of the address.
293
+ */
294
+ city: string | null;
295
+
296
+ /**
297
+ * The country name of the address.
298
+ */
299
+ country: string | null;
300
+
301
+ /**
302
+ * The first line of the address (e.g., street, PO Box, or company name).
303
+ */
304
+ line1: string | null;
305
+
306
+ /**
307
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
308
+ * building).
309
+ */
310
+ line2: string | null;
311
+
312
+ /**
313
+ * The third line of the address, if needed.
314
+ */
315
+ line3: string | null;
316
+
317
+ /**
318
+ * The fourth line of the address, if needed.
319
+ */
320
+ line4: string | null;
321
+
322
+ /**
323
+ * The fifth line of the address, if needed.
324
+ */
325
+ line5: string | null;
326
+
327
+ /**
328
+ * A note written at the bottom of the address in the form in which it appears,
329
+ * such as the invoice form.
330
+ */
331
+ note: string | null;
332
+
333
+ /**
334
+ * The postal code or ZIP code of the address.
335
+ */
336
+ postalCode: string | null;
337
+
338
+ /**
339
+ * The state, county, province, or region name of the address.
340
+ */
341
+ state: string | null;
342
+ }
343
+
344
+ /**
345
+ * The bank account from which the funds are being drawn for this sales-tax payment
346
+ * check; e.g., Checking or Savings. This sales-tax payment check will decrease the
347
+ * balance of this account.
348
+ */
349
+ export interface BankAccount {
350
+ /**
351
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
352
+ * across all objects of the same type, but not across different QuickBooks object
353
+ * types.
354
+ */
355
+ id: string | null;
356
+
357
+ /**
358
+ * The fully-qualified unique name for this object, formed by combining the names
359
+ * of its parent objects with its own `name`, separated by colons. Not
360
+ * case-sensitive.
361
+ */
362
+ fullName: string | null;
363
+ }
364
+
365
+ export interface CustomField {
366
+ /**
367
+ * The name of the custom field, unique for the specified `ownerId`. For public
368
+ * custom fields, this name is visible as a label in the QuickBooks UI.
369
+ */
370
+ name: string;
371
+
372
+ /**
373
+ * The identifier of the owner of the custom field, which QuickBooks internally
374
+ * calls a "data extension". For public custom fields visible in the UI, such as
375
+ * those added by the QuickBooks user, this is always "0". For private custom
376
+ * fields that are only visible to the application that created them, this is a
377
+ * valid GUID identifying the owning application. Internally, Conductor always
378
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
379
+ * objects.
380
+ */
381
+ ownerId: string;
382
+
383
+ /**
384
+ * The data type of this custom field.
385
+ */
386
+ type:
387
+ | 'amount_type'
388
+ | 'date_time_type'
389
+ | 'integer_type'
390
+ | 'percent_type'
391
+ | 'price_type'
392
+ | 'quantity_type'
393
+ | 'string_1024_type'
394
+ | 'string_255_type';
395
+
396
+ /**
397
+ * The value of this custom field. The maximum length depends on the field's data
398
+ * type.
399
+ */
400
+ value: string;
401
+ }
402
+
403
+ export interface Line {
404
+ /**
405
+ * The unique identifier assigned by QuickBooks to this sales-tax payment check
406
+ * line. This ID is unique across all transaction line types.
407
+ */
408
+ id: string;
409
+
410
+ /**
411
+ * The sales-tax payment amount paid toward this line's sales-tax item, represented
412
+ * as a decimal string.
413
+ */
414
+ amount: string | null;
415
+
416
+ /**
417
+ * The type of object. This value is always `"qbd_sales_tax_payment_check_line"`.
418
+ */
419
+ objectType: 'qbd_sales_tax_payment_check_line';
420
+
421
+ /**
422
+ * The sales-tax item whose payable balance this sales-tax payment check line is
423
+ * paying.
424
+ */
425
+ salesTaxItem: Line.SalesTaxItem | null;
426
+
427
+ /**
428
+ * The sales-tax amount due on this sales-tax payment check line, represented as a
429
+ * decimal string. QuickBooks Desktop returns this field only for Australian
430
+ * company files.
431
+ */
432
+ taxAmount: string | null;
433
+ }
434
+
435
+ export namespace Line {
436
+ /**
437
+ * The sales-tax item whose payable balance this sales-tax payment check line is
438
+ * paying.
439
+ */
440
+ export interface SalesTaxItem {
441
+ /**
442
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
443
+ * across all objects of the same type, but not across different QuickBooks object
444
+ * types.
445
+ */
446
+ id: string | null;
447
+
448
+ /**
449
+ * The fully-qualified unique name for this object, formed by combining the names
450
+ * of its parent objects with its own `name`, separated by colons. Not
451
+ * case-sensitive.
452
+ */
453
+ fullName: string | null;
454
+ }
455
+ }
456
+
457
+ /**
458
+ * The sales-tax agency, represented as a QuickBooks vendor, receiving this
459
+ * sales-tax payment check. This must match the tax vendor associated with the
460
+ * sales-tax items in the payment lines.
461
+ */
462
+ export interface Vendor {
463
+ /**
464
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
465
+ * across all objects of the same type, but not across different QuickBooks object
466
+ * types.
467
+ */
468
+ id: string | null;
469
+
470
+ /**
471
+ * The fully-qualified unique name for this object, formed by combining the names
472
+ * of its parent objects with its own `name`, separated by colons. Not
473
+ * case-sensitive.
474
+ */
475
+ fullName: string | null;
476
+ }
477
+ }
478
+
479
+ export interface SalesTaxPaymentCheckDeleteResponse {
480
+ /**
481
+ * The QuickBooks-assigned unique identifier of the deleted sales-tax payment
482
+ * check.
483
+ */
484
+ id: string;
485
+
486
+ /**
487
+ * Indicates whether the sales-tax payment check was deleted.
488
+ */
489
+ deleted: boolean;
490
+
491
+ /**
492
+ * The type of object. This value is always `"qbd_sales_tax_payment_check"`.
493
+ */
494
+ objectType: 'qbd_sales_tax_payment_check';
495
+
496
+ /**
497
+ * The case-sensitive user-defined reference number of the deleted sales-tax
498
+ * payment check.
499
+ */
500
+ refNumber: string | null;
501
+ }
502
+
503
+ export interface SalesTaxPaymentCheckVoidResponse {
504
+ /**
505
+ * The QuickBooks-assigned unique identifier of the voided sales-tax payment check.
506
+ */
507
+ id: string;
508
+
509
+ /**
510
+ * The date and time when this sales-tax payment check was created, in ISO 8601
511
+ * format (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the
512
+ * local timezone of the end-user's computer.
513
+ */
514
+ createdAt: string | null;
515
+
516
+ /**
517
+ * The type of object. This value is always `"qbd_sales_tax_payment_check"`.
518
+ */
519
+ objectType: 'qbd_sales_tax_payment_check';
520
+
521
+ /**
522
+ * The case-sensitive user-defined reference number of the voided sales-tax payment
523
+ * check.
524
+ */
525
+ refNumber: string | null;
526
+
527
+ /**
528
+ * The date and time when this sales-tax payment check was last updated, in ISO
529
+ * 8601 format (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in
530
+ * the local timezone of the end-user's computer.
531
+ */
532
+ updatedAt: string | null;
533
+
534
+ /**
535
+ * Indicates whether the sales-tax payment check was voided.
536
+ */
537
+ voided: boolean;
538
+ }
539
+
540
+ export interface SalesTaxPaymentCheckCreateParams {
541
+ /**
542
+ * Body param: The bank account from which the funds are being drawn for this
543
+ * sales-tax payment check; e.g., Checking or Savings. This sales-tax payment check
544
+ * will decrease the balance of this account.
545
+ */
546
+ bankAccountId: string;
547
+
548
+ /**
549
+ * Body param: The payment lines in this sales-tax payment check, each recording an
550
+ * amount paid toward a sales-tax item.
551
+ */
552
+ lines: Array<SalesTaxPaymentCheckCreateParams.Line>;
553
+
554
+ /**
555
+ * Body param: The date of this sales-tax payment check, in ISO 8601 format
556
+ * (YYYY-MM-DD).
557
+ */
558
+ transactionDate: string;
559
+
560
+ /**
561
+ * Body param: The sales-tax agency, represented as a QuickBooks vendor, receiving
562
+ * this sales-tax payment check. This must match the tax vendor associated with the
563
+ * sales-tax items in the payment lines.
564
+ */
565
+ vendorId: string;
566
+
567
+ /**
568
+ * Header param: The ID of the End-User to receive this request.
569
+ */
570
+ conductorEndUserId: string;
571
+
572
+ /**
573
+ * Body param: The address that is printed on the sales-tax payment check.
574
+ */
575
+ address?: SalesTaxPaymentCheckCreateParams.Address;
576
+
577
+ /**
578
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
579
+ * for tracking this object in your external system. This field is immutable and
580
+ * can only be set during object creation.
581
+ *
582
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
583
+ * QuickBooks will return an error.
584
+ */
585
+ externalId?: string;
586
+
587
+ /**
588
+ * Body param: Indicates whether this sales-tax payment check is included in the
589
+ * queue of documents for QuickBooks to print.
590
+ */
591
+ isQueuedForPrint?: boolean;
592
+
593
+ /**
594
+ * Body param: A memo or note for this sales-tax payment check.
595
+ */
596
+ memo?: string;
597
+
598
+ /**
599
+ * Body param: The case-sensitive user-defined reference number for this sales-tax
600
+ * payment check, which can be used to identify the transaction in QuickBooks. This
601
+ * value is not required to be unique and can be arbitrarily changed by the
602
+ * QuickBooks user. When left blank in this create request, this field will be left
603
+ * blank in QuickBooks (i.e., it does _not_ auto-increment).
604
+ *
605
+ * **IMPORTANT**: For checks, this field is the check number.
606
+ *
607
+ * Maximum length: 11 characters.
608
+ */
609
+ refNumber?: string;
610
+ }
611
+
612
+ export namespace SalesTaxPaymentCheckCreateParams {
613
+ export interface Line {
614
+ /**
615
+ * The sales-tax payment amount paid toward this line's sales-tax item, represented
616
+ * as a decimal string.
617
+ *
618
+ * Decimal string format: exactly 2 decimal places when cents are included and up
619
+ * to 13 digits before the decimal point (for example, "123.45").
620
+ */
621
+ amount: string;
622
+
623
+ /**
624
+ * The sales-tax item whose payable balance this sales-tax payment check line is
625
+ * paying.
626
+ */
627
+ salesTaxItemId?: string;
628
+ }
629
+
630
+ /**
631
+ * The address that is printed on the sales-tax payment check.
632
+ */
633
+ export interface Address {
634
+ /**
635
+ * The city, district, suburb, town, or village name of the address.
636
+ *
637
+ * Maximum length: 31 characters.
638
+ */
639
+ city?: string;
640
+
641
+ /**
642
+ * The country name of the address.
643
+ */
644
+ country?: string;
645
+
646
+ /**
647
+ * The first line of the address (e.g., street, PO Box, or company name).
648
+ *
649
+ * Maximum length: 41 characters.
650
+ */
651
+ line1?: string;
652
+
653
+ /**
654
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
655
+ * building).
656
+ *
657
+ * Maximum length: 41 characters.
658
+ */
659
+ line2?: string;
660
+
661
+ /**
662
+ * The third line of the address, if needed.
663
+ *
664
+ * Maximum length: 41 characters.
665
+ */
666
+ line3?: string;
667
+
668
+ /**
669
+ * The fourth line of the address, if needed.
670
+ *
671
+ * Maximum length: 41 characters.
672
+ */
673
+ line4?: string;
674
+
675
+ /**
676
+ * The fifth line of the address, if needed.
677
+ *
678
+ * Maximum length: 41 characters.
679
+ */
680
+ line5?: string;
681
+
682
+ /**
683
+ * A note written at the bottom of the address in the form in which it appears,
684
+ * such as the invoice form.
685
+ */
686
+ note?: string;
687
+
688
+ /**
689
+ * The postal code or ZIP code of the address.
690
+ *
691
+ * Maximum length: 13 characters.
692
+ */
693
+ postalCode?: string;
694
+
695
+ /**
696
+ * The state, county, province, or region name of the address.
697
+ *
698
+ * Maximum length: 21 characters.
699
+ */
700
+ state?: string;
701
+ }
702
+ }
703
+
704
+ export interface SalesTaxPaymentCheckRetrieveParams {
705
+ /**
706
+ * The ID of the End-User to receive this request.
707
+ */
708
+ conductorEndUserId: string;
709
+ }
710
+
711
+ export interface SalesTaxPaymentCheckUpdateParams {
712
+ /**
713
+ * Body param: The current QuickBooks-assigned revision number of the sales-tax
714
+ * payment check object you are updating, which you can get by fetching the object
715
+ * first. Provide the most recent `revisionNumber` to ensure you're working with
716
+ * the latest data; otherwise, the update will return an error.
717
+ */
718
+ revisionNumber: string;
719
+
720
+ /**
721
+ * Header param: The ID of the End-User to receive this request.
722
+ */
723
+ conductorEndUserId: string;
724
+
725
+ /**
726
+ * Body param: The address that is printed on the sales-tax payment check.
727
+ */
728
+ address?: SalesTaxPaymentCheckUpdateParams.Address;
729
+
730
+ /**
731
+ * Body param: The bank account from which the funds are being drawn for this
732
+ * sales-tax payment check; e.g., Checking or Savings. This sales-tax payment check
733
+ * will decrease the balance of this account.
734
+ */
735
+ bankAccountId?: string;
736
+
737
+ /**
738
+ * Body param: Indicates whether this sales-tax payment check is included in the
739
+ * queue of documents for QuickBooks to print.
740
+ */
741
+ isQueuedForPrint?: boolean;
742
+
743
+ /**
744
+ * Body param: A memo or note for this sales-tax payment check.
745
+ */
746
+ memo?: string;
747
+
748
+ /**
749
+ * Body param: The case-sensitive user-defined reference number for this sales-tax
750
+ * payment check, which can be used to identify the transaction in QuickBooks. This
751
+ * value is not required to be unique and can be arbitrarily changed by the
752
+ * QuickBooks user.
753
+ *
754
+ * **IMPORTANT**: For checks, this field is the check number.
755
+ *
756
+ * Maximum length: 11 characters.
757
+ */
758
+ refNumber?: string;
759
+
760
+ /**
761
+ * Body param: The date of this sales-tax payment check, in ISO 8601 format
762
+ * (YYYY-MM-DD).
763
+ */
764
+ transactionDate?: string;
765
+ }
766
+
767
+ export namespace SalesTaxPaymentCheckUpdateParams {
768
+ /**
769
+ * The address that is printed on the sales-tax payment check.
770
+ */
771
+ export interface Address {
772
+ /**
773
+ * The city, district, suburb, town, or village name of the address.
774
+ *
775
+ * Maximum length: 31 characters.
776
+ */
777
+ city?: string;
778
+
779
+ /**
780
+ * The country name of the address.
781
+ */
782
+ country?: string;
783
+
784
+ /**
785
+ * The first line of the address (e.g., street, PO Box, or company name).
786
+ *
787
+ * Maximum length: 41 characters.
788
+ */
789
+ line1?: string;
790
+
791
+ /**
792
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
793
+ * building).
794
+ *
795
+ * Maximum length: 41 characters.
796
+ */
797
+ line2?: string;
798
+
799
+ /**
800
+ * The third line of the address, if needed.
801
+ *
802
+ * Maximum length: 41 characters.
803
+ */
804
+ line3?: string;
805
+
806
+ /**
807
+ * The fourth line of the address, if needed.
808
+ *
809
+ * Maximum length: 41 characters.
810
+ */
811
+ line4?: string;
812
+
813
+ /**
814
+ * The fifth line of the address, if needed.
815
+ *
816
+ * Maximum length: 41 characters.
817
+ */
818
+ line5?: string;
819
+
820
+ /**
821
+ * A note written at the bottom of the address in the form in which it appears,
822
+ * such as the invoice form.
823
+ */
824
+ note?: string;
825
+
826
+ /**
827
+ * The postal code or ZIP code of the address.
828
+ *
829
+ * Maximum length: 13 characters.
830
+ */
831
+ postalCode?: string;
832
+
833
+ /**
834
+ * The state, county, province, or region name of the address.
835
+ *
836
+ * Maximum length: 21 characters.
837
+ */
838
+ state?: string;
839
+ }
840
+ }
841
+
842
+ export interface SalesTaxPaymentCheckListParams extends CursorPageParams {
843
+ /**
844
+ * Header param: The ID of the End-User to receive this request.
845
+ */
846
+ conductorEndUserId: string;
847
+
848
+ /**
849
+ * Query param: Filter for sales-tax payment checks associated with these accounts.
850
+ */
851
+ accountIds?: Array<string>;
852
+
853
+ /**
854
+ * Query param: Filter for specific sales-tax payment checks by their
855
+ * QuickBooks-assigned unique identifier(s).
856
+ *
857
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
858
+ * query parameters for this request.
859
+ *
860
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
861
+ * request will return an error.
862
+ */
863
+ ids?: Array<string>;
864
+
865
+ /**
866
+ * Query param: Whether to include line items in the response. Defaults to `true`.
867
+ */
868
+ includeLineItems?: boolean;
869
+
870
+ /**
871
+ * Query param: Filter for sales-tax payment checks containing these items.
872
+ */
873
+ itemIds?: Array<string>;
874
+
875
+ /**
876
+ * Query param: Filter for sales-tax payment checks whose `refNumber` contains this
877
+ * substring.
878
+ *
879
+ * **NOTE**: If you use this parameter, you cannot also use `refNumberStartsWith`
880
+ * or `refNumberEndsWith`.
881
+ */
882
+ refNumberContains?: string;
883
+
884
+ /**
885
+ * Query param: Filter for sales-tax payment checks whose `refNumber` ends with
886
+ * this substring.
887
+ *
888
+ * **NOTE**: If you use this parameter, you cannot also use `refNumberContains` or
889
+ * `refNumberStartsWith`.
890
+ */
891
+ refNumberEndsWith?: string;
892
+
893
+ /**
894
+ * Query param: Filter for sales-tax payment checks whose `refNumber` is greater
895
+ * than or equal to this value. If omitted, the range will begin with the first
896
+ * number of the list. Uses a numerical comparison for values that contain only
897
+ * digits; otherwise, uses a lexicographical comparison.
898
+ */
899
+ refNumberFrom?: string;
900
+
901
+ /**
902
+ * Query param: Filter for specific sales-tax payment checks by their
903
+ * ref-number(s), case-sensitive. In QuickBooks, ref-numbers are not required to be
904
+ * unique and can be arbitrarily changed by the QuickBooks user.
905
+ *
906
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
907
+ * query parameters for this request.
908
+ *
909
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
910
+ * request will return an error.
911
+ */
912
+ refNumbers?: Array<string>;
913
+
914
+ /**
915
+ * Query param: Filter for sales-tax payment checks whose `refNumber` starts with
916
+ * this substring.
917
+ *
918
+ * **NOTE**: If you use this parameter, you cannot also use `refNumberContains` or
919
+ * `refNumberEndsWith`.
920
+ */
921
+ refNumberStartsWith?: string;
922
+
923
+ /**
924
+ * Query param: Filter for sales-tax payment checks whose `refNumber` is less than
925
+ * or equal to this value. If omitted, the range will end with the last number of
926
+ * the list. Uses a numerical comparison for values that contain only digits;
927
+ * otherwise, uses a lexicographical comparison.
928
+ */
929
+ refNumberTo?: string;
930
+
931
+ /**
932
+ * Query param: Filter for sales-tax payment checks whose `date` field is on or
933
+ * after this date, in ISO 8601 format (YYYY-MM-DD).
934
+ *
935
+ * **NOTE:** QuickBooks Desktop interprets this date as the **start of the
936
+ * specified day** in the local timezone of the end-user's computer (e.g.,
937
+ * `2025-01-01` → `2025-01-01T00:00:00`).
938
+ */
939
+ transactionDateFrom?: string;
940
+
941
+ /**
942
+ * Query param: Filter for sales-tax payment checks whose `date` field is on or
943
+ * before this date, in ISO 8601 format (YYYY-MM-DD).
944
+ *
945
+ * **NOTE:** QuickBooks Desktop interprets this date as the **end of the specified
946
+ * day** in the local timezone of the end-user's computer (e.g., `2025-01-01` →
947
+ * `2025-01-01T23:59:59`).
948
+ */
949
+ transactionDateTo?: string;
950
+
951
+ /**
952
+ * Query param: Filter for sales-tax payment checks updated on or after this
953
+ * date/time. Accepts the following ISO 8601 formats:
954
+ *
955
+ * - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
956
+ * **start of the specified day** in the local timezone of the end-user's
957
+ * computer (e.g., `2025-01-01` → `2025-01-01T00:00:00`).
958
+ * - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
959
+ * interprets the timestamp in the local timezone of the end-user's computer.
960
+ * - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
961
+ * interprets the timestamp using the specified timezone.
962
+ */
963
+ updatedAfter?: string;
964
+
965
+ /**
966
+ * Query param: Filter for sales-tax payment checks updated on or before this
967
+ * date/time. Accepts the following ISO 8601 formats:
968
+ *
969
+ * - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
970
+ * **end of the specified day** in the local timezone of the end-user's computer
971
+ * (e.g., `2025-01-01` → `2025-01-01T23:59:59`).
972
+ * - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
973
+ * interprets the timestamp in the local timezone of the end-user's computer.
974
+ * - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
975
+ * interprets the timestamp using the specified timezone.
976
+ */
977
+ updatedBefore?: string;
978
+
979
+ /**
980
+ * Query param: Filter for sales-tax payment checks paid to these vendors. These
981
+ * are the sales-tax agencies, represented as QuickBooks vendors, paid by these
982
+ * checks.
983
+ */
984
+ vendorIds?: Array<string>;
985
+ }
986
+
987
+ export interface SalesTaxPaymentCheckDeleteParams {
988
+ /**
989
+ * The ID of the End-User to receive this request.
990
+ */
991
+ conductorEndUserId: string;
992
+ }
993
+
994
+ export interface SalesTaxPaymentCheckVoidParams {
995
+ /**
996
+ * The ID of the End-User to receive this request.
997
+ */
998
+ conductorEndUserId: string;
999
+ }
1000
+
1001
+ export declare namespace SalesTaxPaymentChecks {
1002
+ export {
1003
+ type SalesTaxPaymentCheck as SalesTaxPaymentCheck,
1004
+ type SalesTaxPaymentCheckDeleteResponse as SalesTaxPaymentCheckDeleteResponse,
1005
+ type SalesTaxPaymentCheckVoidResponse as SalesTaxPaymentCheckVoidResponse,
1006
+ type SalesTaxPaymentChecksCursorPage as SalesTaxPaymentChecksCursorPage,
1007
+ type SalesTaxPaymentCheckCreateParams as SalesTaxPaymentCheckCreateParams,
1008
+ type SalesTaxPaymentCheckRetrieveParams as SalesTaxPaymentCheckRetrieveParams,
1009
+ type SalesTaxPaymentCheckUpdateParams as SalesTaxPaymentCheckUpdateParams,
1010
+ type SalesTaxPaymentCheckListParams as SalesTaxPaymentCheckListParams,
1011
+ type SalesTaxPaymentCheckDeleteParams as SalesTaxPaymentCheckDeleteParams,
1012
+ type SalesTaxPaymentCheckVoidParams as SalesTaxPaymentCheckVoidParams,
1013
+ };
1014
+ }