@@ -15,7 +15,7 @@ import {
1515 cortegeOf ,
1616 isExactly ,
1717 isNull ,
18- isNumber ,
18+ isNumber , isShape ,
1919 isString ,
2020 isVoid ,
2121 oneOf ,
@@ -487,6 +487,13 @@ export const actions: ActionSchema<MethodList> = {
487487 ) ,
488488 expects : isVoid ,
489489 } ,
490+ 'changeItemDiscount' : {
491+ accepts : cortegeOf ( [ isNumber , isShape ( {
492+ amount : [ isNumber , false ] ,
493+ percent : [ isNumber , false ] ,
494+ } , '{ amount: number|undefined, percent: number|undefined }' ) ] , [ 'index' , 'discount' ] ) ,
495+ expects : isVoid ,
496+ } ,
490497 'changeItemQuantity' : {
491498 accepts : cortegeOf (
492499 [ isNumber , isNumber ] ,
@@ -516,6 +523,11 @@ export const actionsDescription: ObjectDescription<ActionSchema<MethodList>> = {
516523 'es-ES' : 'Cambia el valor del tipo de precio de un artículo, cambia el precio si el nuevo tipo de precio no está vacío' ,
517524 'ru-RU' : 'Изменяет значение типа цены товарной позиции, изменяет цену, если новый тип цены не пуст' ,
518525 } ,
526+ 'changeItemDiscount' : {
527+ 'en-GB' : 'Changes the discount value of an item' ,
528+ 'es-ES' : 'Cambia el valor del descuento de un artículo' ,
529+ 'ru-RU' : 'Изменяет значение скидки товарной позиции' ,
530+ } ,
519531 'changeItemQuantity' : {
520532 'en-GB' : 'Changes the quantity of an item' ,
521533 'es-ES' : 'Cambia la cantidad de un artículo' ,
0 commit comments