@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.cjs CHANGED
@@ -4258,23 +4258,37 @@ var OrderRepository = class extends AbstractResourceRepository {
4258
4258
  }
4259
4259
  const resource = {
4260
4260
  ...getBaseResourceProperties(),
4261
- orderNumber,
4261
+ anonymousId: cart.anonymousId,
4262
+ billingAddress: cart.billingAddress,
4262
4263
  cart: cartReference,
4263
- orderState: "Open",
4264
- lineItems: [],
4264
+ country: cart.country,
4265
+ custom: cart.custom,
4266
+ customerEmail: cart.customerEmail,
4267
+ customerGroup: cart.customerGroup,
4268
+ customerId: cart.customerId,
4265
4269
  customLineItems: [],
4266
- totalPrice: cart.totalPrice,
4267
- refusedGifts: [],
4270
+ directDiscounts: cart.directDiscounts,
4271
+ discountCodes: cart.discountCodes,
4272
+ discountOnTotalPrice: cart.discountOnTotalPrice,
4273
+ lastMessageSequenceNumber: 0,
4274
+ lineItems: cart.lineItems,
4275
+ locale: cart.locale,
4276
+ orderNumber: orderNumber ?? generateRandomString(10),
4277
+ orderState: "Open",
4268
4278
  origin: "Customer",
4269
- syncInfo: [],
4270
- shippingMode: cart.shippingMode,
4279
+ paymentInfo: cart.paymentInfo,
4280
+ refusedGifts: [],
4271
4281
  shipping: cart.shipping,
4272
- store: context.storeKey ? {
4273
- key: context.storeKey,
4274
- typeId: "store"
4275
- } : void 0,
4276
- custom: cart.custom,
4277
- lastMessageSequenceNumber: 0
4282
+ shippingAddress: cart.shippingAddress,
4283
+ shippingMode: cart.shippingMode,
4284
+ syncInfo: [],
4285
+ taxCalculationMode: cart.taxCalculationMode,
4286
+ taxedPrice: cart.taxedPrice,
4287
+ taxedShippingPrice: cart.taxedShippingPrice,
4288
+ taxMode: cart.taxMode,
4289
+ taxRoundingMode: cart.taxRoundingMode,
4290
+ totalPrice: cart.totalPrice,
4291
+ store: cart.store
4278
4292
  };
4279
4293
  return this.saveNew(context, resource);
4280
4294
  }