@labdigital/commercetools-mock 2.29.0 → 2.29.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
@@ -6159,6 +6159,14 @@ var ProjectUpdateHandler = class extends AbstractUpdateHandler {
6159
6159
  resource.messages.enabled = messagesConfiguration.enabled;
6160
6160
  resource.messages.deleteDaysAfterCreation = messagesConfiguration.deleteDaysAfterCreation;
6161
6161
  }
6162
+ changeMyBusinessUnitStatusOnCreation(context, resource, { status }) {
6163
+ if (resource.businessUnits === void 0) {
6164
+ resource.businessUnits = {
6165
+ myBusinessUnitStatusOnCreation: "Inactive"
6166
+ };
6167
+ }
6168
+ resource.businessUnits.myBusinessUnitStatusOnCreation = status;
6169
+ }
6162
6170
  changeName(context, resource, { name }) {
6163
6171
  resource.name = name;
6164
6172
  }
@@ -6179,6 +6187,18 @@ var ProjectUpdateHandler = class extends AbstractUpdateHandler {
6179
6187
  setExternalOAuth(context, resource, { externalOAuth }) {
6180
6188
  resource.externalOAuth = externalOAuth;
6181
6189
  }
6190
+ setMyBusinessUnitAssociateRoleOnCreation(context, resource, { associateRole }) {
6191
+ if (resource.businessUnits === void 0) {
6192
+ resource.businessUnits = {
6193
+ //Default status, so we set it here also
6194
+ myBusinessUnitStatusOnCreation: "Inactive"
6195
+ };
6196
+ }
6197
+ resource.businessUnits.myBusinessUnitAssociateRoleOnCreation = {
6198
+ typeId: associateRole.typeId,
6199
+ key: associateRole.key ?? "unknown"
6200
+ };
6201
+ }
6182
6202
  setShippingRateInputType(context, resource, { shippingRateInputType }) {
6183
6203
  resource.shippingRateInputType = shippingRateInputType;
6184
6204
  }