@labdigital/commercetools-mock 2.34.1 → 2.34.2

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
@@ -4221,23 +4221,37 @@ var OrderRepository = class extends AbstractResourceRepository {
4221
4221
  }
4222
4222
  const resource = {
4223
4223
  ...getBaseResourceProperties(),
4224
- orderNumber,
4224
+ anonymousId: cart.anonymousId,
4225
+ billingAddress: cart.billingAddress,
4225
4226
  cart: cartReference,
4226
- orderState: "Open",
4227
- lineItems: [],
4227
+ country: cart.country,
4228
+ custom: cart.custom,
4229
+ customerEmail: cart.customerEmail,
4230
+ customerGroup: cart.customerGroup,
4231
+ customerId: cart.customerId,
4228
4232
  customLineItems: [],
4229
- totalPrice: cart.totalPrice,
4230
- refusedGifts: [],
4233
+ directDiscounts: cart.directDiscounts,
4234
+ discountCodes: cart.discountCodes,
4235
+ discountOnTotalPrice: cart.discountOnTotalPrice,
4236
+ lastMessageSequenceNumber: 0,
4237
+ lineItems: cart.lineItems,
4238
+ locale: cart.locale,
4239
+ orderNumber: orderNumber ?? generateRandomString(10),
4240
+ orderState: "Open",
4231
4241
  origin: "Customer",
4232
- syncInfo: [],
4233
- shippingMode: cart.shippingMode,
4242
+ paymentInfo: cart.paymentInfo,
4243
+ refusedGifts: [],
4234
4244
  shipping: cart.shipping,
4235
- store: context.storeKey ? {
4236
- key: context.storeKey,
4237
- typeId: "store"
4238
- } : void 0,
4239
- custom: cart.custom,
4240
- lastMessageSequenceNumber: 0
4245
+ shippingAddress: cart.shippingAddress,
4246
+ shippingMode: cart.shippingMode,
4247
+ syncInfo: [],
4248
+ taxCalculationMode: cart.taxCalculationMode,
4249
+ taxedPrice: cart.taxedPrice,
4250
+ taxedShippingPrice: cart.taxedShippingPrice,
4251
+ taxMode: cart.taxMode,
4252
+ taxRoundingMode: cart.taxRoundingMode,
4253
+ totalPrice: cart.totalPrice,
4254
+ store: cart.store
4241
4255
  };
4242
4256
  return this.saveNew(context, resource);
4243
4257
  }