@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.cjs
CHANGED
|
@@ -3804,6 +3804,9 @@ var OrderUpdateHandler = class extends AbstractUpdateHandler {
|
|
|
3804
3804
|
setCustomerEmail(context, resource, { email }) {
|
|
3805
3805
|
resource.customerEmail = email;
|
|
3806
3806
|
}
|
|
3807
|
+
setCustomerId(context, resource, { customerId }) {
|
|
3808
|
+
resource.customerId = customerId;
|
|
3809
|
+
}
|
|
3807
3810
|
setCustomField(context, resource, { name, value }) {
|
|
3808
3811
|
if (!resource.custom) {
|
|
3809
3812
|
throw new Error("Resource has no custom field");
|