conductor-node 14.18.0 → 14.19.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.
@@ -0,0 +1,417 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js";
4
+ import { RequestOptions } from "../../internal/request-options.js";
5
+ export declare class SalesTaxGroupItems extends APIResource {
6
+ /**
7
+ * Creates a new sales-tax group item.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const salesTaxGroupItem =
12
+ * await conductor.qbd.salesTaxGroupItems.create({
13
+ * name: 'Standard Tax Group',
14
+ * salesTaxItemIds: ['80000001-1234567890'],
15
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
16
+ * });
17
+ * ```
18
+ */
19
+ create(params: SalesTaxGroupItemCreateParams, options?: RequestOptions): APIPromise<SalesTaxGroupItem>;
20
+ /**
21
+ * Retrieves a sales-tax group item by ID.
22
+ *
23
+ * **IMPORTANT:** If you need to fetch multiple specific sales-tax group items by
24
+ * ID, use the list endpoint instead with the `ids` parameter. It accepts an array
25
+ * of IDs so you can batch the request into a single call, which is significantly
26
+ * faster.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const salesTaxGroupItem =
31
+ * await conductor.qbd.salesTaxGroupItems.retrieve(
32
+ * '80000001-1234567890',
33
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
34
+ * );
35
+ * ```
36
+ */
37
+ retrieve(id: string, params: SalesTaxGroupItemRetrieveParams, options?: RequestOptions): APIPromise<SalesTaxGroupItem>;
38
+ /**
39
+ * Updates an existing sales-tax group item.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const salesTaxGroupItem =
44
+ * await conductor.qbd.salesTaxGroupItems.update(
45
+ * '80000001-1234567890',
46
+ * {
47
+ * revisionNumber: '1721172183',
48
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
49
+ * },
50
+ * );
51
+ * ```
52
+ */
53
+ update(id: string, params: SalesTaxGroupItemUpdateParams, options?: RequestOptions): APIPromise<SalesTaxGroupItem>;
54
+ /**
55
+ * Returns a list of sales-tax group items. Use the `cursor` parameter to paginate
56
+ * through the results.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * // Automatically fetches more pages as needed.
61
+ * for await (const salesTaxGroupItem of conductor.qbd.salesTaxGroupItems.list(
62
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
63
+ * )) {
64
+ * // ...
65
+ * }
66
+ * ```
67
+ */
68
+ list(params: SalesTaxGroupItemListParams, options?: RequestOptions): PagePromise<SalesTaxGroupItemsCursorPage, SalesTaxGroupItem>;
69
+ }
70
+ export type SalesTaxGroupItemsCursorPage = CursorPage<SalesTaxGroupItem>;
71
+ export interface SalesTaxGroupItem {
72
+ /**
73
+ * The unique identifier assigned by QuickBooks to this sales-tax group item. This
74
+ * ID is unique across all sales-tax group items but not across different
75
+ * QuickBooks object types.
76
+ */
77
+ id: string;
78
+ /**
79
+ * The sales-tax group item's barcode.
80
+ */
81
+ barcode: string | null;
82
+ /**
83
+ * The date and time when this sales-tax group item was created, in ISO 8601 format
84
+ * (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
85
+ * timezone of the end-user's computer.
86
+ */
87
+ createdAt: string;
88
+ /**
89
+ * The custom fields for the sales-tax group item object, added as user-defined
90
+ * data extensions, not included in the standard QuickBooks object.
91
+ */
92
+ customFields: Array<SalesTaxGroupItem.CustomField>;
93
+ /**
94
+ * The sales-tax group item's description that will appear on sales forms that
95
+ * include this item.
96
+ */
97
+ description: string | null;
98
+ /**
99
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
100
+ * this object in your external system. This field is immutable and can only be set
101
+ * during object creation.
102
+ */
103
+ externalId: string | null;
104
+ /**
105
+ * Indicates whether this sales-tax group item is active. Inactive objects are
106
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
107
+ */
108
+ isActive: boolean;
109
+ /**
110
+ * The case-insensitive unique name of this sales-tax group item, unique across all
111
+ * sales-tax group items.
112
+ *
113
+ * **NOTE**: Sales-tax group items do not have a `fullName` field because they are
114
+ * not hierarchical objects, which is why `name` is unique for them but not for
115
+ * objects that have parents.
116
+ */
117
+ name: string;
118
+ /**
119
+ * The type of object. This value is always `"qbd_sales_tax_group_item"`.
120
+ */
121
+ objectType: 'qbd_sales_tax_group_item';
122
+ /**
123
+ * The current QuickBooks-assigned revision number of this sales-tax group item
124
+ * object, which changes each time the object is modified. When updating this
125
+ * object, you must provide the most recent `revisionNumber` to ensure you're
126
+ * working with the latest data; otherwise, the update will return an error.
127
+ */
128
+ revisionNumber: string;
129
+ /**
130
+ * The sales-tax items that make up this sales-tax group item. QuickBooks Desktop
131
+ * applies these sales-tax items together as one tax selection while tracking each
132
+ * sales tax separately.
133
+ */
134
+ salesTaxItems: Array<SalesTaxGroupItem.SalesTaxItem>;
135
+ /**
136
+ * The date and time when this sales-tax group item was last updated, in ISO 8601
137
+ * format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the
138
+ * local timezone of the end-user's computer.
139
+ */
140
+ updatedAt: string;
141
+ }
142
+ export declare namespace SalesTaxGroupItem {
143
+ interface CustomField {
144
+ /**
145
+ * The name of the custom field, unique for the specified `ownerId`. For public
146
+ * custom fields, this name is visible as a label in the QuickBooks UI.
147
+ */
148
+ name: string;
149
+ /**
150
+ * The identifier of the owner of the custom field, which QuickBooks internally
151
+ * calls a "data extension". For public custom fields visible in the UI, such as
152
+ * those added by the QuickBooks user, this is always "0". For private custom
153
+ * fields that are only visible to the application that created them, this is a
154
+ * valid GUID identifying the owning application. Internally, Conductor always
155
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
156
+ * objects.
157
+ */
158
+ ownerId: string;
159
+ /**
160
+ * The data type of this custom field.
161
+ */
162
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
163
+ /**
164
+ * The value of this custom field. The maximum length depends on the field's data
165
+ * type.
166
+ */
167
+ value: string;
168
+ }
169
+ interface SalesTaxItem {
170
+ /**
171
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
172
+ * across all objects of the same type, but not across different QuickBooks object
173
+ * types.
174
+ */
175
+ id: string | null;
176
+ /**
177
+ * The fully-qualified unique name for this object, formed by combining the names
178
+ * of its parent objects with its own `name`, separated by colons. Not
179
+ * case-sensitive.
180
+ */
181
+ fullName: string | null;
182
+ }
183
+ }
184
+ export interface SalesTaxGroupItemCreateParams {
185
+ /**
186
+ * Body param: The case-insensitive unique name of this sales-tax group item,
187
+ * unique across all sales-tax group items.
188
+ *
189
+ * **NOTE**: Sales-tax group items do not have a `fullName` field because they are
190
+ * not hierarchical objects, which is why `name` is unique for them but not for
191
+ * objects that have parents.
192
+ *
193
+ * Maximum length: 31 characters.
194
+ */
195
+ name: string;
196
+ /**
197
+ * Body param: The sales-tax items that make up this sales-tax group item.
198
+ * QuickBooks Desktop applies these sales-tax items together as one tax selection
199
+ * while tracking each sales tax separately.
200
+ */
201
+ salesTaxItemIds: Array<string>;
202
+ /**
203
+ * Header param: The ID of the End-User to receive this request.
204
+ */
205
+ conductorEndUserId: string;
206
+ /**
207
+ * Body param: The sales-tax group item's barcode.
208
+ */
209
+ barcode?: SalesTaxGroupItemCreateParams.Barcode;
210
+ /**
211
+ * Body param: The sales-tax group item's description that will appear on sales
212
+ * forms that include this item.
213
+ */
214
+ description?: string;
215
+ /**
216
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
217
+ * for tracking this object in your external system. This field is immutable and
218
+ * can only be set during object creation.
219
+ *
220
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
221
+ * QuickBooks will return an error.
222
+ */
223
+ externalId?: string;
224
+ /**
225
+ * Body param: Indicates whether this sales-tax group item is active. Inactive
226
+ * objects are typically hidden from views and reports in QuickBooks. Defaults to
227
+ * `true`.
228
+ */
229
+ isActive?: boolean;
230
+ }
231
+ export declare namespace SalesTaxGroupItemCreateParams {
232
+ /**
233
+ * The sales-tax group item's barcode.
234
+ */
235
+ interface Barcode {
236
+ /**
237
+ * Indicates whether to allow the barcode to be overridden.
238
+ */
239
+ allowOverride?: boolean;
240
+ /**
241
+ * Indicates whether to assign the barcode even if it is already used.
242
+ */
243
+ assignEvenIfUsed?: boolean;
244
+ /**
245
+ * The item's barcode value.
246
+ */
247
+ value?: string;
248
+ }
249
+ }
250
+ export interface SalesTaxGroupItemRetrieveParams {
251
+ /**
252
+ * The ID of the End-User to receive this request.
253
+ */
254
+ conductorEndUserId: string;
255
+ }
256
+ export interface SalesTaxGroupItemUpdateParams {
257
+ /**
258
+ * Body param: The current QuickBooks-assigned revision number of the sales-tax
259
+ * group item object you are updating, which you can get by fetching the object
260
+ * first. Provide the most recent `revisionNumber` to ensure you're working with
261
+ * the latest data; otherwise, the update will return an error.
262
+ */
263
+ revisionNumber: string;
264
+ /**
265
+ * Header param: The ID of the End-User to receive this request.
266
+ */
267
+ conductorEndUserId: string;
268
+ /**
269
+ * Body param: The sales-tax group item's barcode.
270
+ */
271
+ barcode?: SalesTaxGroupItemUpdateParams.Barcode;
272
+ /**
273
+ * Body param: The sales-tax group item's description that will appear on sales
274
+ * forms that include this item.
275
+ */
276
+ description?: string;
277
+ /**
278
+ * Body param: Indicates whether this sales-tax group item is active. Inactive
279
+ * objects are typically hidden from views and reports in QuickBooks. Defaults to
280
+ * `true`.
281
+ */
282
+ isActive?: boolean;
283
+ /**
284
+ * Body param: The case-insensitive unique name of this sales-tax group item,
285
+ * unique across all sales-tax group items.
286
+ *
287
+ * **NOTE**: Sales-tax group items do not have a `fullName` field because they are
288
+ * not hierarchical objects, which is why `name` is unique for them but not for
289
+ * objects that have parents.
290
+ *
291
+ * Maximum length: 31 characters.
292
+ */
293
+ name?: string;
294
+ /**
295
+ * Body param: The sales-tax items that make up this sales-tax group item.
296
+ * QuickBooks Desktop applies these sales-tax items together as one tax selection
297
+ * while tracking each sales tax separately.
298
+ */
299
+ salesTaxItemIds?: Array<string>;
300
+ }
301
+ export declare namespace SalesTaxGroupItemUpdateParams {
302
+ /**
303
+ * The sales-tax group item's barcode.
304
+ */
305
+ interface Barcode {
306
+ /**
307
+ * Indicates whether to allow the barcode to be overridden.
308
+ */
309
+ allowOverride?: boolean;
310
+ /**
311
+ * Indicates whether to assign the barcode even if it is already used.
312
+ */
313
+ assignEvenIfUsed?: boolean;
314
+ /**
315
+ * The item's barcode value.
316
+ */
317
+ value?: string;
318
+ }
319
+ }
320
+ export interface SalesTaxGroupItemListParams extends CursorPageParams {
321
+ /**
322
+ * Header param: The ID of the End-User to receive this request.
323
+ */
324
+ conductorEndUserId: string;
325
+ /**
326
+ * Query param: Filter for specific sales-tax group items by their
327
+ * QuickBooks-assigned unique identifier(s).
328
+ *
329
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
330
+ * query parameters for this request.
331
+ *
332
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
333
+ * request will return an error.
334
+ */
335
+ ids?: Array<string>;
336
+ /**
337
+ * Query param: Filter for sales-tax group items whose `name` contains this
338
+ * substring, case-insensitive.
339
+ *
340
+ * **NOTE**: If you use this parameter, you cannot also use `nameStartsWith` or
341
+ * `nameEndsWith`.
342
+ */
343
+ nameContains?: string;
344
+ /**
345
+ * Query param: Filter for sales-tax group items whose `name` ends with this
346
+ * substring, case-insensitive.
347
+ *
348
+ * **NOTE**: If you use this parameter, you cannot also use `nameContains` or
349
+ * `nameStartsWith`.
350
+ */
351
+ nameEndsWith?: string;
352
+ /**
353
+ * Query param: Filter for sales-tax group items whose `name` is alphabetically
354
+ * greater than or equal to this value.
355
+ */
356
+ nameFrom?: string;
357
+ /**
358
+ * Query param: Filter for specific sales-tax group items by their name(s),
359
+ * case-insensitive. Like `id`, `name` is a unique identifier for a sales-tax group
360
+ * item.
361
+ *
362
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
363
+ * query parameters for this request.
364
+ *
365
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
366
+ * request will return an error.
367
+ */
368
+ names?: Array<string>;
369
+ /**
370
+ * Query param: Filter for sales-tax group items whose `name` starts with this
371
+ * substring, case-insensitive.
372
+ *
373
+ * **NOTE**: If you use this parameter, you cannot also use `nameContains` or
374
+ * `nameEndsWith`.
375
+ */
376
+ nameStartsWith?: string;
377
+ /**
378
+ * Query param: Filter for sales-tax group items whose `name` is alphabetically
379
+ * less than or equal to this value.
380
+ */
381
+ nameTo?: string;
382
+ /**
383
+ * Query param: Filter for sales-tax group items that are active, inactive, or
384
+ * both.
385
+ */
386
+ status?: 'active' | 'all' | 'inactive';
387
+ /**
388
+ * Query param: Filter for sales-tax group items updated on or after this
389
+ * date/time. Accepts the following ISO 8601 formats:
390
+ *
391
+ * - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
392
+ * **start of the specified day** in the local timezone of the end-user's
393
+ * computer (e.g., `2025-01-01` → `2025-01-01T00:00:00`).
394
+ * - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
395
+ * interprets the timestamp in the local timezone of the end-user's computer.
396
+ * - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
397
+ * interprets the timestamp using the specified timezone.
398
+ */
399
+ updatedAfter?: string;
400
+ /**
401
+ * Query param: Filter for sales-tax group items updated on or before this
402
+ * date/time. Accepts the following ISO 8601 formats:
403
+ *
404
+ * - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
405
+ * **end of the specified day** in the local timezone of the end-user's computer
406
+ * (e.g., `2025-01-01` → `2025-01-01T23:59:59`).
407
+ * - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
408
+ * interprets the timestamp in the local timezone of the end-user's computer.
409
+ * - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
410
+ * interprets the timestamp using the specified timezone.
411
+ */
412
+ updatedBefore?: string;
413
+ }
414
+ export declare namespace SalesTaxGroupItems {
415
+ export { type SalesTaxGroupItem as SalesTaxGroupItem, type SalesTaxGroupItemsCursorPage as SalesTaxGroupItemsCursorPage, type SalesTaxGroupItemCreateParams as SalesTaxGroupItemCreateParams, type SalesTaxGroupItemRetrieveParams as SalesTaxGroupItemRetrieveParams, type SalesTaxGroupItemUpdateParams as SalesTaxGroupItemUpdateParams, type SalesTaxGroupItemListParams as SalesTaxGroupItemListParams, };
416
+ }
417
+ //# sourceMappingURL=sales-tax-group-items.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sales-tax-group-items.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-group-items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,iCAA8B;AAEvF,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAM,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAStG;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAQhC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,6BAA6B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAShC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB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C,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAE3B;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;IACnE;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,UAAU,CAAC;IAEvC;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SalesTaxGroupItems = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const pagination_1 = require("../../core/pagination.js");
7
+ const headers_1 = require("../../internal/headers.js");
8
+ const path_1 = require("../../internal/utils/path.js");
9
+ class SalesTaxGroupItems extends resource_1.APIResource {
10
+ /**
11
+ * Creates a new sales-tax group item.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const salesTaxGroupItem =
16
+ * await conductor.qbd.salesTaxGroupItems.create({
17
+ * name: 'Standard Tax Group',
18
+ * salesTaxItemIds: ['80000001-1234567890'],
19
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
20
+ * });
21
+ * ```
22
+ */
23
+ create(params, options) {
24
+ const { conductorEndUserId, ...body } = params;
25
+ return this._client.post('/quickbooks-desktop/sales-tax-group-items', {
26
+ body,
27
+ ...options,
28
+ headers: (0, headers_1.buildHeaders)([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
29
+ });
30
+ }
31
+ /**
32
+ * Retrieves a sales-tax group item by ID.
33
+ *
34
+ * **IMPORTANT:** If you need to fetch multiple specific sales-tax group items by
35
+ * ID, use the list endpoint instead with the `ids` parameter. It accepts an array
36
+ * of IDs so you can batch the request into a single call, which is significantly
37
+ * faster.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const salesTaxGroupItem =
42
+ * await conductor.qbd.salesTaxGroupItems.retrieve(
43
+ * '80000001-1234567890',
44
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
45
+ * );
46
+ * ```
47
+ */
48
+ retrieve(id, params, options) {
49
+ const { conductorEndUserId } = params;
50
+ return this._client.get((0, path_1.path) `/quickbooks-desktop/sales-tax-group-items/${id}`, {
51
+ ...options,
52
+ headers: (0, headers_1.buildHeaders)([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
53
+ });
54
+ }
55
+ /**
56
+ * Updates an existing sales-tax group item.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const salesTaxGroupItem =
61
+ * await conductor.qbd.salesTaxGroupItems.update(
62
+ * '80000001-1234567890',
63
+ * {
64
+ * revisionNumber: '1721172183',
65
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
66
+ * },
67
+ * );
68
+ * ```
69
+ */
70
+ update(id, params, options) {
71
+ const { conductorEndUserId, ...body } = params;
72
+ return this._client.post((0, path_1.path) `/quickbooks-desktop/sales-tax-group-items/${id}`, {
73
+ body,
74
+ ...options,
75
+ headers: (0, headers_1.buildHeaders)([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
76
+ });
77
+ }
78
+ /**
79
+ * Returns a list of sales-tax group items. Use the `cursor` parameter to paginate
80
+ * through the results.
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * // Automatically fetches more pages as needed.
85
+ * for await (const salesTaxGroupItem of conductor.qbd.salesTaxGroupItems.list(
86
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
87
+ * )) {
88
+ * // ...
89
+ * }
90
+ * ```
91
+ */
92
+ list(params, options) {
93
+ const { conductorEndUserId, ...query } = params;
94
+ return this._client.getAPIList('/quickbooks-desktop/sales-tax-group-items', (pagination_1.CursorPage), {
95
+ query,
96
+ ...options,
97
+ headers: (0, headers_1.buildHeaders)([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
98
+ });
99
+ }
100
+ }
101
+ exports.SalesTaxGroupItems = SalesTaxGroupItems;
102
+ //# sourceMappingURL=sales-tax-group-items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sales-tax-group-items.js","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-group-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAuF;AACvF,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAqC,EAAE,OAAwB;QACpE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM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C,CAAA,uBAA6B,CAAA,EAC7B;YACE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC3F,CACF,CAAC;IACJ,CAAC;CACF;AA7GD,gDA6GC"}
@@ -0,0 +1,98 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { CursorPage } from "../../core/pagination.mjs";
4
+ import { buildHeaders } from "../../internal/headers.mjs";
5
+ import { path } from "../../internal/utils/path.mjs";
6
+ export class SalesTaxGroupItems extends APIResource {
7
+ /**
8
+ * Creates a new sales-tax group item.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const salesTaxGroupItem =
13
+ * await conductor.qbd.salesTaxGroupItems.create({
14
+ * name: 'Standard Tax Group',
15
+ * salesTaxItemIds: ['80000001-1234567890'],
16
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
17
+ * });
18
+ * ```
19
+ */
20
+ create(params, options) {
21
+ const { conductorEndUserId, ...body } = params;
22
+ return this._client.post('/quickbooks-desktop/sales-tax-group-items', {
23
+ body,
24
+ ...options,
25
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
26
+ });
27
+ }
28
+ /**
29
+ * Retrieves a sales-tax group item by ID.
30
+ *
31
+ * **IMPORTANT:** If you need to fetch multiple specific sales-tax group items by
32
+ * ID, use the list endpoint instead with the `ids` parameter. It accepts an array
33
+ * of IDs so you can batch the request into a single call, which is significantly
34
+ * faster.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const salesTaxGroupItem =
39
+ * await conductor.qbd.salesTaxGroupItems.retrieve(
40
+ * '80000001-1234567890',
41
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
42
+ * );
43
+ * ```
44
+ */
45
+ retrieve(id, params, options) {
46
+ const { conductorEndUserId } = params;
47
+ return this._client.get(path `/quickbooks-desktop/sales-tax-group-items/${id}`, {
48
+ ...options,
49
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
50
+ });
51
+ }
52
+ /**
53
+ * Updates an existing sales-tax group item.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const salesTaxGroupItem =
58
+ * await conductor.qbd.salesTaxGroupItems.update(
59
+ * '80000001-1234567890',
60
+ * {
61
+ * revisionNumber: '1721172183',
62
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
63
+ * },
64
+ * );
65
+ * ```
66
+ */
67
+ update(id, params, options) {
68
+ const { conductorEndUserId, ...body } = params;
69
+ return this._client.post(path `/quickbooks-desktop/sales-tax-group-items/${id}`, {
70
+ body,
71
+ ...options,
72
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
73
+ });
74
+ }
75
+ /**
76
+ * Returns a list of sales-tax group items. Use the `cursor` parameter to paginate
77
+ * through the results.
78
+ *
79
+ * @example
80
+ * ```ts
81
+ * // Automatically fetches more pages as needed.
82
+ * for await (const salesTaxGroupItem of conductor.qbd.salesTaxGroupItems.list(
83
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
84
+ * )) {
85
+ * // ...
86
+ * }
87
+ * ```
88
+ */
89
+ list(params, options) {
90
+ const { conductorEndUserId, ...query } = params;
91
+ return this._client.getAPIList('/quickbooks-desktop/sales-tax-group-items', (CursorPage), {
92
+ query,
93
+ ...options,
94
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
95
+ });
96
+ }
97
+ }
98
+ //# sourceMappingURL=sales-tax-group-items.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sales-tax-group-items.mjs","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-group-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAA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AAC,CAAC;SAC3F,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,2CAA2C,EAC3C,CAAA,UAA6B,CAAA,EAC7B;YACE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC3F,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -465,6 +465,15 @@ export {
465
465
  type SalesTaxCodeUpdateParams,
466
466
  type SalesTaxCodeListParams,
467
467
  } from './sales-tax-codes';
468
+ export {
469
+ SalesTaxGroupItems,
470
+ type SalesTaxGroupItem,
471
+ type SalesTaxGroupItemCreateParams,
472
+ type SalesTaxGroupItemRetrieveParams,
473
+ type SalesTaxGroupItemUpdateParams,
474
+ type SalesTaxGroupItemListParams,
475
+ type SalesTaxGroupItemsCursorPage,
476
+ } from './sales-tax-group-items';
468
477
  export {
469
478
  SalesTaxItems,
470
479
  type SalesTaxItem,