@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.cjs CHANGED
@@ -1131,7 +1131,8 @@ var CartUpdateHandler = class extends AbstractUpdateHandler {
1131
1131
  sku,
1132
1132
  custom,
1133
1133
  quantity = 1,
1134
- addedAt
1134
+ addedAt,
1135
+ key
1135
1136
  }) {
1136
1137
  let product = null;
1137
1138
  if (productId && variantId) {
@@ -1196,6 +1197,7 @@ var CartUpdateHandler = class extends AbstractUpdateHandler {
1196
1197
  }
1197
1198
  resource.lineItems.push({
1198
1199
  id: (0, import_uuid5.v4)(),
1200
+ key,
1199
1201
  addedAt: addedAt ? addedAt : (/* @__PURE__ */ new Date()).toISOString(),
1200
1202
  productId: product.id,
1201
1203
  productKey: product.key,
@@ -3902,6 +3904,7 @@ var PaymentRepository = class extends AbstractResourceRepository {
3902
3904
  create(context, draft) {
3903
3905
  const resource = {
3904
3906
  ...getBaseResourceProperties(),
3907
+ key: draft.key,
3905
3908
  amountPlanned: createCentPrecisionMoney(draft.amountPlanned),
3906
3909
  paymentMethodInfo: draft.paymentMethodInfo,
3907
3910
  paymentStatus: draft.paymentStatus ? {
@@ -6996,7 +6999,8 @@ var ShoppingListUpdateHandler = class extends AbstractUpdateHandler {
6996
6999
  variantId,
6997
7000
  sku,
6998
7001
  quantity = 1,
6999
- addedAt
7002
+ addedAt,
7003
+ key
7000
7004
  }) {
7001
7005
  let product = null;
7002
7006
  if (productId) {
@@ -7040,6 +7044,7 @@ var ShoppingListUpdateHandler = class extends AbstractUpdateHandler {
7040
7044
  resource.lineItems.push({
7041
7045
  addedAt: addedAt ? addedAt : (/* @__PURE__ */ new Date()).toISOString(),
7042
7046
  id: (0, import_uuid11.v4)(),
7047
+ key,
7043
7048
  productId: product.id,
7044
7049
  productSlug: product.masterData.current.slug,
7045
7050
  productType: product.productType,