@labdigital/commercetools-mock 2.43.3 → 2.45.0

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
@@ -1094,7 +1094,8 @@ var CartUpdateHandler = class extends AbstractUpdateHandler {
1094
1094
  sku,
1095
1095
  custom,
1096
1096
  quantity = 1,
1097
- addedAt
1097
+ addedAt,
1098
+ key
1098
1099
  }) {
1099
1100
  let product = null;
1100
1101
  if (productId && variantId) {
@@ -1159,6 +1160,7 @@ var CartUpdateHandler = class extends AbstractUpdateHandler {
1159
1160
  }
1160
1161
  resource.lineItems.push({
1161
1162
  id: uuidv45(),
1163
+ key,
1162
1164
  addedAt: addedAt ? addedAt : (/* @__PURE__ */ new Date()).toISOString(),
1163
1165
  productId: product.id,
1164
1166
  productKey: product.key,
@@ -3865,6 +3867,7 @@ var PaymentRepository = class extends AbstractResourceRepository {
3865
3867
  create(context, draft) {
3866
3868
  const resource = {
3867
3869
  ...getBaseResourceProperties(),
3870
+ key: draft.key,
3868
3871
  amountPlanned: createCentPrecisionMoney(draft.amountPlanned),
3869
3872
  paymentMethodInfo: draft.paymentMethodInfo,
3870
3873
  paymentStatus: draft.paymentStatus ? {
@@ -6959,7 +6962,8 @@ var ShoppingListUpdateHandler = class extends AbstractUpdateHandler {
6959
6962
  variantId,
6960
6963
  sku,
6961
6964
  quantity = 1,
6962
- addedAt
6965
+ addedAt,
6966
+ key
6963
6967
  }) {
6964
6968
  let product = null;
6965
6969
  if (productId) {
@@ -7003,6 +7007,7 @@ var ShoppingListUpdateHandler = class extends AbstractUpdateHandler {
7003
7007
  resource.lineItems.push({
7004
7008
  addedAt: addedAt ? addedAt : (/* @__PURE__ */ new Date()).toISOString(),
7005
7009
  id: uuidv411(),
7010
+ key,
7006
7011
  productId: product.id,
7007
7012
  productSlug: product.masterData.current.slug,
7008
7013
  productType: product.productType,