chore(order): item update quantity (#8513)

This commit is contained in:
Carlos R. L. Rodrigues
2024-08-08 14:12:16 -03:00
committed by GitHub
parent 6efdfbc9a6
commit 91f07e1a59
6 changed files with 239 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ export enum ChangeActionType {
CANCEL_ITEM_FULFILLMENT = "CANCEL_ITEM_FULFILLMENT",
ITEM_ADD = "ITEM_ADD",
ITEM_REMOVE = "ITEM_REMOVE",
ITEM_UPDATE = "ITEM_UPDATE",
RECEIVE_DAMAGED_RETURN_ITEM = "RECEIVE_DAMAGED_RETURN_ITEM",
RECEIVE_RETURN_ITEM = "RECEIVE_RETURN_ITEM",
RETURN_ITEM = "RETURN_ITEM",

View File

@@ -121,4 +121,12 @@ export class BigNumber implements IBigNumber {
valueOf(): number {
return this.numeric_
}
[Symbol.toPrimitive](hint) {
if (hint === "string") {
return this.raw?.value
}
return this.numeric_
}
}