@deliverart/sdk-js-menu 2.48.0 → 3.0.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +97 -63
- package/dist/index.d.ts +97 -63
- package/dist/index.js +4 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -244,3 +244,15 @@ const modifiers = await client.call(new GetMenuItemModifiersFromPointOfSale(posI
|
|
|
244
244
|
|
|
245
245
|
Use the POS-scoped requests in Hub and retain the active type/scope and other
|
|
246
246
|
filters when changing a search. Reset the page to 1 after changing filters.
|
|
247
|
+
|
|
248
|
+
### Contextual VAT on price overrides
|
|
249
|
+
|
|
250
|
+
Price override reads, nested native variants and `MenuPriceOverrideDto` expose
|
|
251
|
+
`taxRate: number | null`. `null` inherits the referenced menu item's VAT; an
|
|
252
|
+
explicit `0` is zero percent. Values range from 0 to 100. Missing fields on older
|
|
253
|
+
read payloads normalize to `null`.
|
|
254
|
+
|
|
255
|
+
Create and PATCH inputs may supply `taxRate`. Leave it omitted when editing only
|
|
256
|
+
a price: the API preserves an existing contextual rate. Send `null` only when
|
|
257
|
+
explicitly restoring inheritance. Updating an override does not change the
|
|
258
|
+
referenced menu item's global VAT.
|
package/dist/index.cjs
CHANGED
|
@@ -270,6 +270,7 @@ var menuItemVariantSchema = import_zod.z.lazy(
|
|
|
270
270
|
id: import_zod.z.string(),
|
|
271
271
|
type: import_zod.z.literal("ITEM"),
|
|
272
272
|
price: import_zod.z.string(),
|
|
273
|
+
taxRate: import_zod.z.number().min(0).max(100).nullable().default(null),
|
|
273
274
|
inModifier: menuItemModifierNullableIriSchema,
|
|
274
275
|
referenceItem: menuItemSchema,
|
|
275
276
|
suspended: import_zod.z.boolean(),
|
|
@@ -423,6 +424,7 @@ var menuItemPriceOverrideModifierSchema = import_zod.z.object({
|
|
|
423
424
|
var baseMenuItemPriceOverrideFields = import_zod.z.object({
|
|
424
425
|
id: import_zod.z.string(),
|
|
425
426
|
price: import_zod.z.string(),
|
|
427
|
+
taxRate: import_zod.z.number().min(0).max(100).nullable().default(null),
|
|
426
428
|
referenceItem: menuItemNullableIriSchema,
|
|
427
429
|
suspended: import_zod.z.boolean(),
|
|
428
430
|
salesPrices: import_zod.z.array(salesPriceDTOSchema).min(0),
|
|
@@ -445,6 +447,7 @@ var menuItemPriceOverrideWritableModifierSchema = import_zod.z.object({
|
|
|
445
447
|
});
|
|
446
448
|
var menuItemPriceOverrideWritableShared = import_zod.z.object({
|
|
447
449
|
price: import_zod.z.string(),
|
|
450
|
+
taxRate: import_zod.z.number().min(0).max(100).nullable().optional(),
|
|
448
451
|
referenceItem: menuItemIriSchema,
|
|
449
452
|
suspended: import_zod.z.boolean(),
|
|
450
453
|
salesPrices: import_zod.z.array(salesPriceDTOSchema).min(0)
|
|
@@ -556,6 +559,7 @@ var menuPriceDtoSchema = import_zod.z.object({
|
|
|
556
559
|
var menuPriceOverrideDtoSchema = import_zod.z.object({
|
|
557
560
|
id: import_zod.z.uuid(),
|
|
558
561
|
type: import_sdk_js_global_types2.menuItemPriceOverrideTypeSchema,
|
|
562
|
+
taxRate: import_zod.z.number().min(0).max(100).nullable().default(null),
|
|
559
563
|
prices: import_zod.z.array(menuPriceDtoSchema),
|
|
560
564
|
suspended: import_zod.z.boolean(),
|
|
561
565
|
referenceItem: import_zod.z.uuid()
|