@labdigital/commercetools-mock 2.24.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,20 @@ 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
+ }
3341
+ setExternalId(_context, resource, { externalId }) {
3342
+ resource.externalId = externalId;
3343
+ }
3330
3344
  setFirstName(_context, resource, { firstName }) {
3331
3345
  resource.firstName = firstName;
3332
3346
  }
@@ -3336,6 +3350,9 @@ var CustomerUpdateHandler = class extends AbstractUpdateHandler {
3336
3350
  setLastName(_context, resource, { lastName }) {
3337
3351
  resource.lastName = lastName;
3338
3352
  }
3353
+ setLocale(_context, resource, { locale }) {
3354
+ resource.locale = locale;
3355
+ }
3339
3356
  setSalutation(_context, resource, { salutation }) {
3340
3357
  resource.salutation = salutation;
3341
3358
  }