@labdigital/commercetools-mock 2.26.0 → 2.26.1

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.js CHANGED
@@ -3327,6 +3327,17 @@ var CustomerUpdateHandler = class extends AbstractUpdateHandler {
3327
3327
  }
3328
3328
  resource.custom.fields[name] = value;
3329
3329
  }
3330
+ setCustomType(context, resource, { type, fields }) {
3331
+ if (type) {
3332
+ resource.custom = createCustomFields(
3333
+ { type, fields },
3334
+ context.projectKey,
3335
+ this._storage
3336
+ );
3337
+ } else {
3338
+ resource.custom = void 0;
3339
+ }
3340
+ }
3330
3341
  setExternalId(_context, resource, { externalId }) {
3331
3342
  resource.externalId = externalId;
3332
3343
  }