|
1
|
import { ChangeActionType } from "@medusajs/framework/utils" |
|
2
|
|
|
3
|
import { OrderChangeProcessing } from "../calculate-order-change" |
|
4
|
import { setActionReference } from "../set-action-reference" |
|
5
|
|
|
6
|
OrderChangeProcessing.registerActionType( |
|
7
|
ChangeActionType.UPDATE_ORDER_PROPERTIES, |
|
8
|
{ |
|
9
|
operation({ action, currentOrder, options }) { |
|
10
|
/** |
|
11
|
* NOOP: used as a reference for the change |
|
12
|
*/ |
|
13
|
|
|
14
|
setActionReference(currentOrder, action, options) |
|
15
|
}, |
|
16
|
validate({ action }) { |
|
17
|
/* noop */ |
|
18
|
}, |
|
19
|
} |
|
20
|
) |