@labdigital/commercetools-mock 2.19.0 → 2.20.0
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/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/repositories/order/actions.ts +9 -0
- package/src/services/order.test.ts +35 -0
package/dist/index.js
CHANGED
|
@@ -3767,6 +3767,9 @@ var OrderUpdateHandler = class extends AbstractUpdateHandler {
|
|
|
3767
3767
|
setCustomerEmail(context, resource, { email }) {
|
|
3768
3768
|
resource.customerEmail = email;
|
|
3769
3769
|
}
|
|
3770
|
+
setCustomerId(context, resource, { customerId }) {
|
|
3771
|
+
resource.customerId = customerId;
|
|
3772
|
+
}
|
|
3770
3773
|
setCustomField(context, resource, { name, value }) {
|
|
3771
3774
|
if (!resource.custom) {
|
|
3772
3775
|
throw new Error("Resource has no custom field");
|