conductor-node 12.0.0-beta.18 → 12.0.0-beta.19

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,460 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ export declare class PriceLevels extends APIResource {
4
+ /**
5
+ * Creates a new price level.
6
+ */
7
+ create(params: PriceLevelCreateParams, options?: Core.RequestOptions): Core.APIPromise<PriceLevel>;
8
+ /**
9
+ * Retrieves a price level by ID.
10
+ */
11
+ retrieve(id: string, params: PriceLevelRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<PriceLevel>;
12
+ /**
13
+ * Updates an existing price level.
14
+ */
15
+ update(id: string, params: PriceLevelUpdateParams, options?: Core.RequestOptions): Core.APIPromise<PriceLevel>;
16
+ /**
17
+ * Returns a list of price levels. NOTE: QuickBooks Desktop does not support
18
+ * pagination for price levels; hence, there is no `cursor` parameter. Users
19
+ * typically have few price levels.
20
+ */
21
+ list(params: PriceLevelListParams, options?: Core.RequestOptions): Core.APIPromise<PriceLevelListResponse>;
22
+ }
23
+ export interface PriceLevel {
24
+ /**
25
+ * The unique identifier assigned by QuickBooks to this price level. This ID is
26
+ * unique across all price levels but not across different QuickBooks object types.
27
+ */
28
+ id: string;
29
+ /**
30
+ * The date and time when this price level was created, in ISO 8601 format
31
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
32
+ * in QuickBooks.
33
+ */
34
+ createdAt: string;
35
+ /**
36
+ * The price level's currency. For built-in currencies, the name and code are
37
+ * standard international values. For user-defined currencies, all values are
38
+ * editable.
39
+ */
40
+ currency: PriceLevel.Currency | null;
41
+ /**
42
+ * The fixed percentage adjustment applied to all items for this price level
43
+ * (instead of a per-item price level). Once you create the price level, you cannot
44
+ * change this.
45
+ *
46
+ * When this price level is applied to a customer, it automatically adjusts the
47
+ * `rate` and `amount` columns for applicable line items in sales orders and
48
+ * invoices for that customer. This value supports both positive and negative
49
+ * values - a value of "20" increases prices by 20%, while "-10" decreases prices
50
+ * by 10%.
51
+ */
52
+ fixedPercentage: string | null;
53
+ /**
54
+ * Indicates whether this price level is active. Inactive objects are typically
55
+ * hidden from views and reports in QuickBooks. Defaults to `true`.
56
+ */
57
+ isActive: boolean;
58
+ /**
59
+ * The case-insensitive unique name of this price level, unique across all price
60
+ * levels.
61
+ *
62
+ * **NOTE**: Price levels do not have a `fullName` field because they are not
63
+ * hierarchical objects, which is why `name` is unique for them but not for objects
64
+ * that have parents.
65
+ */
66
+ name: string;
67
+ /**
68
+ * The type of object. This value is always `"qbd_price_level"`.
69
+ */
70
+ objectType: 'qbd_price_level';
71
+ /**
72
+ * The per-item price level configurations for this price level.
73
+ */
74
+ perItemPriceLevels: Array<PriceLevel.PerItemPriceLevel>;
75
+ /**
76
+ * The price level's type.
77
+ */
78
+ priceLevelType: 'fixed_percentage' | 'per_item';
79
+ /**
80
+ * The current QuickBooks-assigned revision number of this price level object,
81
+ * which changes each time the object is modified. When updating this object, you
82
+ * must provide the most recent `revisionNumber` to ensure you're working with the
83
+ * latest data; otherwise, the update will return an error.
84
+ */
85
+ revisionNumber: string;
86
+ /**
87
+ * The date and time when this price level was last updated, in ISO 8601 format
88
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
89
+ * in QuickBooks.
90
+ */
91
+ updatedAt: string;
92
+ }
93
+ export declare namespace PriceLevel {
94
+ /**
95
+ * The price level's currency. For built-in currencies, the name and code are
96
+ * standard international values. For user-defined currencies, all values are
97
+ * editable.
98
+ */
99
+ interface Currency {
100
+ /**
101
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
102
+ * across all objects of the same type, but not across different QuickBooks object
103
+ * types.
104
+ */
105
+ id: string | null;
106
+ /**
107
+ * The fully-qualified unique name for this object, formed by combining the names
108
+ * of its parent objects with its own `name`, separated by colons. Not
109
+ * case-sensitive.
110
+ */
111
+ fullName: string | null;
112
+ }
113
+ interface PerItemPriceLevel {
114
+ /**
115
+ * The percentage adjustment for this per-item price level when using relative
116
+ * pricing. Specifies a percentage to modify pricing, using positive values (e.g.,
117
+ * "20") to increase prices by that percentage, or negative values (e.g., "-10") to
118
+ * apply a discount.
119
+ */
120
+ adjustPercentage: string;
121
+ /**
122
+ * The base value reference for this per-item price level's percentage adjustment.
123
+ * Specifies which price to use as the starting point for the adjustment
124
+ * calculation in the price level.
125
+ *
126
+ * **NOTE:** The price level must use either a fixed pricing approach
127
+ * (`customPrice` or `customPricePercent`) or a relative adjustment approach
128
+ * (`adjustPercentage` with `adjustRelativeTo`) when configuring per-item price
129
+ * levels.
130
+ */
131
+ adjustRelativeTo: 'cost' | 'current_custom_price' | 'standard_price';
132
+ /**
133
+ * The item associated with this per-item price level. This can refer to any good
134
+ * or service that the business buys or sells, including item types such as a
135
+ * service item, inventory item, or special calculation item like a discount item
136
+ * or sales-tax item.
137
+ */
138
+ item: PerItemPriceLevel.Item | null;
139
+ }
140
+ namespace PerItemPriceLevel {
141
+ /**
142
+ * The item associated with this per-item price level. This can refer to any good
143
+ * or service that the business buys or sells, including item types such as a
144
+ * service item, inventory item, or special calculation item like a discount item
145
+ * or sales-tax item.
146
+ */
147
+ interface Item {
148
+ /**
149
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
150
+ * across all objects of the same type, but not across different QuickBooks object
151
+ * types.
152
+ */
153
+ id: string | null;
154
+ /**
155
+ * The fully-qualified unique name for this object, formed by combining the names
156
+ * of its parent objects with its own `name`, separated by colons. Not
157
+ * case-sensitive.
158
+ */
159
+ fullName: string | null;
160
+ }
161
+ }
162
+ }
163
+ export interface PriceLevelListResponse {
164
+ /**
165
+ * The array of price levels.
166
+ */
167
+ data: Array<PriceLevel>;
168
+ /**
169
+ * The type of object. This value is always `"list"`.
170
+ */
171
+ objectType: 'list';
172
+ /**
173
+ * The endpoint URL where this list can be accessed.
174
+ */
175
+ url: string;
176
+ }
177
+ export interface PriceLevelCreateParams {
178
+ /**
179
+ * Body param: The case-insensitive unique name of this price level, unique across
180
+ * all price levels.
181
+ *
182
+ * **NOTE**: Price levels do not have a `fullName` field because they are not
183
+ * hierarchical objects, which is why `name` is unique for them but not for objects
184
+ * that have parents.
185
+ *
186
+ * Maximum length: 31 characters.
187
+ */
188
+ name: string;
189
+ /**
190
+ * Header param: The ID of the EndUser to receive this request (e.g.,
191
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
192
+ */
193
+ conductorEndUserId: string;
194
+ /**
195
+ * Body param: The price level's currency. For built-in currencies, the name and
196
+ * code are standard international values. For user-defined currencies, all values
197
+ * are editable.
198
+ */
199
+ currencyId?: string;
200
+ /**
201
+ * Body param: The fixed percentage adjustment applied to all items for this price
202
+ * level (instead of a per-item price level). Once you create the price level, you
203
+ * cannot change this.
204
+ *
205
+ * When this price level is applied to a customer, it automatically adjusts the
206
+ * `rate` and `amount` columns for applicable line items in sales orders and
207
+ * invoices for that customer. This value supports both positive and negative
208
+ * values - a value of "20" increases prices by 20%, while "-10" decreases prices
209
+ * by 10%.
210
+ */
211
+ fixedPercentage?: string;
212
+ /**
213
+ * Body param: Indicates whether this price level is active. Inactive objects are
214
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
215
+ */
216
+ isActive?: boolean;
217
+ /**
218
+ * Body param: The per-item price level configurations for this price level.
219
+ */
220
+ perItemPriceLevels?: Array<PriceLevelCreateParams.PerItemPriceLevel>;
221
+ }
222
+ export declare namespace PriceLevelCreateParams {
223
+ interface PerItemPriceLevel {
224
+ /**
225
+ * The percentage adjustment for this per-item price level when using relative
226
+ * pricing. Specifies a percentage to modify pricing, using positive values (e.g.,
227
+ * "20") to increase prices by that percentage, or negative values (e.g., "-10") to
228
+ * apply a discount.
229
+ */
230
+ adjustPercentage: string;
231
+ /**
232
+ * The base value reference for this per-item price level's percentage adjustment.
233
+ * Specifies which price to use as the starting point for the adjustment
234
+ * calculation in the price level.
235
+ *
236
+ * **NOTE:** The price level must use either a fixed pricing approach
237
+ * (`customPrice` or `customPricePercent`) or a relative adjustment approach
238
+ * (`adjustPercentage` with `adjustRelativeTo`) when configuring per-item price
239
+ * levels.
240
+ */
241
+ adjustRelativeTo: 'cost' | 'current_custom_price' | 'standard_price';
242
+ /**
243
+ * The fixed amount custom price for this per-item price level that overrides the
244
+ * standard price for the specified item. Used when setting an absolute price value
245
+ * for the item in this price level.
246
+ */
247
+ customPrice?: string;
248
+ /**
249
+ * The fixed discount percentage for this per-item price level that modifies the
250
+ * specified item's standard price. Used to create a fixed percentage markup or
251
+ * discount specific to this item within this price level.
252
+ */
253
+ customPricePercent?: string;
254
+ /**
255
+ * The item associated with this per-item price level. This can refer to any good
256
+ * or service that the business buys or sells, including item types such as a
257
+ * service item, inventory item, or special calculation item like a discount item
258
+ * or sales-tax item.
259
+ */
260
+ itemId?: string;
261
+ }
262
+ }
263
+ export interface PriceLevelRetrieveParams {
264
+ /**
265
+ * The ID of the EndUser to receive this request (e.g.,
266
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
267
+ */
268
+ conductorEndUserId: string;
269
+ }
270
+ export interface PriceLevelUpdateParams {
271
+ /**
272
+ * Body param: The current QuickBooks-assigned revision number of the price level
273
+ * object you are updating, which you can get by fetching the object first. Provide
274
+ * the most recent `revisionNumber` to ensure you're working with the latest data;
275
+ * otherwise, the update will return an error.
276
+ */
277
+ revisionNumber: string;
278
+ /**
279
+ * Header param: The ID of the EndUser to receive this request (e.g.,
280
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
281
+ */
282
+ conductorEndUserId: string;
283
+ /**
284
+ * Body param: The price level's currency. For built-in currencies, the name and
285
+ * code are standard international values. For user-defined currencies, all values
286
+ * are editable.
287
+ */
288
+ currencyId?: string;
289
+ /**
290
+ * Body param: The fixed percentage adjustment applied to all items for this price
291
+ * level (instead of a per-item price level). Once you create the price level, you
292
+ * cannot change this.
293
+ *
294
+ * When this price level is applied to a customer, it automatically adjusts the
295
+ * `rate` and `amount` columns for applicable line items in sales orders and
296
+ * invoices for that customer. This value supports both positive and negative
297
+ * values - a value of "20" increases prices by 20%, while "-10" decreases prices
298
+ * by 10%.
299
+ */
300
+ fixedPercentage?: string;
301
+ /**
302
+ * Body param: Indicates whether this price level is active. Inactive objects are
303
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
304
+ */
305
+ isActive?: boolean;
306
+ /**
307
+ * Body param: The case-insensitive unique name of this price level, unique across
308
+ * all price levels.
309
+ *
310
+ * **NOTE**: Price levels do not have a `fullName` field because they are not
311
+ * hierarchical objects, which is why `name` is unique for them but not for objects
312
+ * that have parents.
313
+ *
314
+ * Maximum length: 31 characters.
315
+ */
316
+ name?: string;
317
+ /**
318
+ * Body param: The per-item price level configurations for this price level.
319
+ */
320
+ perItemPriceLevels?: Array<PriceLevelUpdateParams.PerItemPriceLevel>;
321
+ }
322
+ export declare namespace PriceLevelUpdateParams {
323
+ interface PerItemPriceLevel {
324
+ /**
325
+ * The percentage adjustment for this per-item price level when using relative
326
+ * pricing. Specifies a percentage to modify pricing, using positive values (e.g.,
327
+ * "20") to increase prices by that percentage, or negative values (e.g., "-10") to
328
+ * apply a discount.
329
+ */
330
+ adjustPercentage: string;
331
+ /**
332
+ * The base value reference for this per-item price level's percentage adjustment.
333
+ * Specifies which price to use as the starting point for the adjustment
334
+ * calculation in the price level.
335
+ *
336
+ * **NOTE:** The price level must use either a fixed pricing approach
337
+ * (`customPrice` or `customPricePercent`) or a relative adjustment approach
338
+ * (`adjustPercentage` with `adjustRelativeTo`) when configuring per-item price
339
+ * levels.
340
+ */
341
+ adjustRelativeTo: 'cost' | 'current_custom_price' | 'standard_price';
342
+ /**
343
+ * The fixed amount custom price for this per-item price level that overrides the
344
+ * standard price for the specified item. Used when setting an absolute price value
345
+ * for the item in this price level.
346
+ */
347
+ customPrice?: string;
348
+ /**
349
+ * The fixed discount percentage for this per-item price level that modifies the
350
+ * specified item's standard price. Used to create a fixed percentage markup or
351
+ * discount specific to this item within this price level.
352
+ */
353
+ customPricePercent?: string;
354
+ /**
355
+ * The item associated with this per-item price level. This can refer to any good
356
+ * or service that the business buys or sells, including item types such as a
357
+ * service item, inventory item, or special calculation item like a discount item
358
+ * or sales-tax item.
359
+ */
360
+ itemId?: string;
361
+ }
362
+ }
363
+ export interface PriceLevelListParams {
364
+ /**
365
+ * Header param: The ID of the EndUser to receive this request (e.g.,
366
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
367
+ */
368
+ conductorEndUserId: string;
369
+ /**
370
+ * Query param: Filter for price levels in these currencies.
371
+ */
372
+ currencyIds?: Array<string>;
373
+ /**
374
+ * Query param: Filter for specific price levels by their QuickBooks-assigned
375
+ * unique identifier(s).
376
+ *
377
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
378
+ * query parameters for this request.
379
+ *
380
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
381
+ * request will return an error.
382
+ */
383
+ ids?: Array<string>;
384
+ /**
385
+ * Query param: Filter for price levels containing these items.
386
+ */
387
+ itemIds?: Array<string>;
388
+ /**
389
+ * Query param: The maximum number of objects to return.
390
+ *
391
+ * **IMPORTANT**: QuickBooks Desktop does not support cursor-based pagination for
392
+ * price levels. This parameter will limit the response size, but you cannot fetch
393
+ * subsequent results using a cursor. For pagination, use the name-range parameters
394
+ * instead (e.g., `nameFrom=A&nameTo=B`).
395
+ *
396
+ * When this parameter is omitted, the endpoint returns all price levels without
397
+ * limit, unlike paginated endpoints which default to 150 records. This is
398
+ * acceptable because price levels typically have low record counts.
399
+ */
400
+ limit?: number;
401
+ /**
402
+ * Query param: Filter for price levels whose `name` contains this substring,
403
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
404
+ * `nameStartsWith` or `nameEndsWith`.
405
+ */
406
+ nameContains?: string;
407
+ /**
408
+ * Query param: Filter for price levels whose `name` ends with this substring,
409
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
410
+ * `nameContains` or `nameStartsWith`.
411
+ */
412
+ nameEndsWith?: string;
413
+ /**
414
+ * Query param: Filter for price levels whose `name` is alphabetically greater than
415
+ * or equal to this value.
416
+ */
417
+ nameFrom?: string;
418
+ /**
419
+ * Query param: Filter for specific price levels by their name(s),
420
+ * case-insensitive. Like `id`, `name` is a unique identifier for a price level.
421
+ *
422
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
423
+ * query parameters for this request.
424
+ *
425
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
426
+ * request will return an error.
427
+ */
428
+ names?: Array<string>;
429
+ /**
430
+ * Query param: Filter for price levels whose `name` starts with this substring,
431
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
432
+ * `nameContains` or `nameEndsWith`.
433
+ */
434
+ nameStartsWith?: string;
435
+ /**
436
+ * Query param: Filter for price levels whose `name` is alphabetically less than or
437
+ * equal to this value.
438
+ */
439
+ nameTo?: string;
440
+ /**
441
+ * Query param: Filter for price levels that are active, inactive, or both.
442
+ */
443
+ status?: 'active' | 'all' | 'inactive';
444
+ /**
445
+ * Query param: Filter for price levels updated on or after this date and time, in
446
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
447
+ * the time is assumed to be 00:00:00 of that day.
448
+ */
449
+ updatedAfter?: string;
450
+ /**
451
+ * Query param: Filter for price levels updated on or before this date and time, in
452
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
453
+ * the time is assumed to be 23:59:59 of that day.
454
+ */
455
+ updatedBefore?: string;
456
+ }
457
+ export declare namespace PriceLevels {
458
+ export { type PriceLevel as PriceLevel, type PriceLevelListResponse as PriceLevelListResponse, type PriceLevelCreateParams as PriceLevelCreateParams, type PriceLevelRetrieveParams as PriceLevelRetrieveParams, type PriceLevelUpdateParams as PriceLevelUpdateParams, type PriceLevelListParams as PriceLevelListParams, };
459
+ }
460
+ //# sourceMappingURL=price-levels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-levels.d.ts","sourceRoot":"","sources":["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. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PriceLevels = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class PriceLevels extends resource_1.APIResource {
7
+ /**
8
+ * Creates a new price level.
9
+ */
10
+ create(params, options) {
11
+ const { conductorEndUserId, ...body } = params;
12
+ return this._client.post('/quickbooks-desktop/price-levels', {
13
+ body,
14
+ ...options,
15
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
16
+ });
17
+ }
18
+ /**
19
+ * Retrieves a price level by ID.
20
+ */
21
+ retrieve(id, params, options) {
22
+ const { conductorEndUserId } = params;
23
+ return this._client.get(`/quickbooks-desktop/price-levels/${id}`, {
24
+ ...options,
25
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
26
+ });
27
+ }
28
+ /**
29
+ * Updates an existing price level.
30
+ */
31
+ update(id, params, options) {
32
+ const { conductorEndUserId, ...body } = params;
33
+ return this._client.post(`/quickbooks-desktop/price-levels/${id}`, {
34
+ body,
35
+ ...options,
36
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
37
+ });
38
+ }
39
+ /**
40
+ * Returns a list of price levels. NOTE: QuickBooks Desktop does not support
41
+ * pagination for price levels; hence, there is no `cursor` parameter. Users
42
+ * typically have few price levels.
43
+ */
44
+ list(params, options) {
45
+ const { conductorEndUserId, ...query } = params;
46
+ return this._client.get('/quickbooks-desktop/price-levels', {
47
+ query,
48
+ ...options,
49
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
50
+ });
51
+ }
52
+ }
53
+ exports.PriceLevels = PriceLevels;
54
+ //# sourceMappingURL=price-levels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-levels.js","sourceRoot":"","sources":["../../src/resources/qbd/price-levels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH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B,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AAzDD,kCAyDC"}
@@ -0,0 +1,50 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class PriceLevels extends APIResource {
4
+ /**
5
+ * Creates a new price level.
6
+ */
7
+ create(params, options) {
8
+ const { conductorEndUserId, ...body } = params;
9
+ return this._client.post('/quickbooks-desktop/price-levels', {
10
+ body,
11
+ ...options,
12
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
13
+ });
14
+ }
15
+ /**
16
+ * Retrieves a price level by ID.
17
+ */
18
+ retrieve(id, params, options) {
19
+ const { conductorEndUserId } = params;
20
+ return this._client.get(`/quickbooks-desktop/price-levels/${id}`, {
21
+ ...options,
22
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
23
+ });
24
+ }
25
+ /**
26
+ * Updates an existing price level.
27
+ */
28
+ update(id, params, options) {
29
+ const { conductorEndUserId, ...body } = params;
30
+ return this._client.post(`/quickbooks-desktop/price-levels/${id}`, {
31
+ body,
32
+ ...options,
33
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
34
+ });
35
+ }
36
+ /**
37
+ * Returns a list of price levels. NOTE: QuickBooks Desktop does not support
38
+ * pagination for price levels; hence, there is no `cursor` parameter. Users
39
+ * typically have few price levels.
40
+ */
41
+ list(params, options) {
42
+ const { conductorEndUserId, ...query } = params;
43
+ return this._client.get('/quickbooks-desktop/price-levels', {
44
+ query,
45
+ ...options,
46
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
47
+ });
48
+ }
49
+ }
50
+ //# sourceMappingURL=price-levels.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-levels.mjs","sourceRoot":"","sources":["../../src/resources/qbd/price-levels.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE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1D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -48,6 +48,8 @@ import * as PayrollWageItemsAPI from "./payroll-wage-items.js";
48
48
  import { PayrollWageItem, PayrollWageItemCreateParams, PayrollWageItemListParams, PayrollWageItemRetrieveParams, PayrollWageItems, PayrollWageItemsCursorPage } from "./payroll-wage-items.js";
49
49
  import * as PreferencesAPI from "./preferences.js";
50
50
  import { PreferenceRetrieveParams, Preferences } from "./preferences.js";
51
+ import * as PriceLevelsAPI from "./price-levels.js";
52
+ import { PriceLevel, PriceLevelCreateParams, PriceLevelListParams, PriceLevelListResponse, PriceLevelRetrieveParams, PriceLevelUpdateParams, PriceLevels } from "./price-levels.js";
51
53
  import * as PurchaseOrdersAPI from "./purchase-orders.js";
52
54
  import { PurchaseOrder, PurchaseOrderCreateParams, PurchaseOrderDeleteParams, PurchaseOrderDeleteResponse, PurchaseOrderListParams, PurchaseOrderRetrieveParams, PurchaseOrderUpdateParams, PurchaseOrders, PurchaseOrdersCursorPage } from "./purchase-orders.js";
53
55
  import * as ReceivePaymentsAPI from "./receive-payments.js";
@@ -103,6 +105,7 @@ export declare class Qbd extends APIResource {
103
105
  nonInventoryItems: NonInventoryItemsAPI.NonInventoryItems;
104
106
  payrollWageItems: PayrollWageItemsAPI.PayrollWageItems;
105
107
  preferences: PreferencesAPI.Preferences;
108
+ priceLevels: PriceLevelsAPI.PriceLevels;
106
109
  purchaseOrders: PurchaseOrdersAPI.PurchaseOrders;
107
110
  receivePayments: ReceivePaymentsAPI.ReceivePayments;
108
111
  salesOrders: SalesOrdersAPI.SalesOrders;
@@ -171,6 +174,7 @@ export declare namespace Qbd {
171
174
  export { NonInventoryItems as NonInventoryItems, type NonInventoryItem as NonInventoryItem, NonInventoryItemsCursorPage as NonInventoryItemsCursorPage, type NonInventoryItemCreateParams as NonInventoryItemCreateParams, type NonInventoryItemRetrieveParams as NonInventoryItemRetrieveParams, type NonInventoryItemUpdateParams as NonInventoryItemUpdateParams, type NonInventoryItemListParams as NonInventoryItemListParams, };
172
175
  export { PayrollWageItems as PayrollWageItems, type PayrollWageItem as PayrollWageItem, PayrollWageItemsCursorPage as PayrollWageItemsCursorPage, type PayrollWageItemCreateParams as PayrollWageItemCreateParams, type PayrollWageItemRetrieveParams as PayrollWageItemRetrieveParams, type PayrollWageItemListParams as PayrollWageItemListParams, };
173
176
  export { type Preferences as Preferences, type PreferenceRetrieveParams as PreferenceRetrieveParams };
177
+ export { PriceLevels as PriceLevels, type PriceLevel as PriceLevel, type PriceLevelListResponse as PriceLevelListResponse, type PriceLevelCreateParams as PriceLevelCreateParams, type PriceLevelRetrieveParams as PriceLevelRetrieveParams, type PriceLevelUpdateParams as PriceLevelUpdateParams, type PriceLevelListParams as PriceLevelListParams, };
174
178
  export { PurchaseOrders as PurchaseOrders, type PurchaseOrder as PurchaseOrder, type PurchaseOrderDeleteResponse as PurchaseOrderDeleteResponse, PurchaseOrdersCursorPage as PurchaseOrdersCursorPage, type PurchaseOrderCreateParams as PurchaseOrderCreateParams, type PurchaseOrderRetrieveParams as PurchaseOrderRetrieveParams, type PurchaseOrderUpdateParams as PurchaseOrderUpdateParams, type PurchaseOrderListParams as PurchaseOrderListParams, type PurchaseOrderDeleteParams as PurchaseOrderDeleteParams, };
175
179
  export { ReceivePayments as ReceivePayments, type ReceivePayment as ReceivePayment, type ReceivePaymentDeleteResponse as ReceivePaymentDeleteResponse, ReceivePaymentsCursorPage as ReceivePaymentsCursorPage, type ReceivePaymentCreateParams as ReceivePaymentCreateParams, type ReceivePaymentRetrieveParams as ReceivePaymentRetrieveParams, type ReceivePaymentUpdateParams as ReceivePaymentUpdateParams, type ReceivePaymentListParams as ReceivePaymentListParams, type ReceivePaymentDeleteParams as ReceivePaymentDeleteParams, };
176
180
  export { SalesOrders as SalesOrders, type SalesOrder as SalesOrder, type SalesOrderDeleteResponse as SalesOrderDeleteResponse, SalesOrdersCursorPage as SalesOrdersCursorPage, type SalesOrderCreateParams as SalesOrderCreateParams, type SalesOrderRetrieveParams as SalesOrderRetrieveParams, type SalesOrderUpdateParams as SalesOrderUpdateParams, type SalesOrderListParams as SalesOrderListParams, type SalesOrderDeleteParams as SalesOrderDeleteParams, };