@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.cjs CHANGED
@@ -3364,6 +3364,17 @@ var CustomerUpdateHandler = class extends AbstractUpdateHandler {
3364
3364
  }
3365
3365
  resource.custom.fields[name] = value;
3366
3366
  }
3367
+ setCustomType(context, resource, { type, fields }) {
3368
+ if (type) {
3369
+ resource.custom = createCustomFields(
3370
+ { type, fields },
3371
+ context.projectKey,
3372
+ this._storage
3373
+ );
3374
+ } else {
3375
+ resource.custom = void 0;
3376
+ }
3377
+ }
3367
3378
  setExternalId(_context, resource, { externalId }) {
3368
3379
  resource.externalId = externalId;
3369
3380
  }