@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.cjs CHANGED
@@ -3364,6 +3364,20 @@ 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
+ }
3378
+ setExternalId(_context, resource, { externalId }) {
3379
+ resource.externalId = externalId;
3380
+ }
3367
3381
  setFirstName(_context, resource, { firstName }) {
3368
3382
  resource.firstName = firstName;
3369
3383
  }
@@ -3373,6 +3387,9 @@ var CustomerUpdateHandler = class extends AbstractUpdateHandler {
3373
3387
  setLastName(_context, resource, { lastName }) {
3374
3388
  resource.lastName = lastName;
3375
3389
  }
3390
+ setLocale(_context, resource, { locale }) {
3391
+ resource.locale = locale;
3392
+ }
3376
3393
  setSalutation(_context, resource, { salutation }) {
3377
3394
  resource.salutation = salutation;
3378
3395
  }