@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 +27 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/repositories/order/index.test.ts +127 -45
- package/src/repositories/order/index.ts +28 -16
package/dist/index.cjs
CHANGED
|
@@ -4258,23 +4258,37 @@ var OrderRepository = class extends AbstractResourceRepository {
|
|
|
4258
4258
|
}
|
|
4259
4259
|
const resource = {
|
|
4260
4260
|
...getBaseResourceProperties(),
|
|
4261
|
-
|
|
4261
|
+
anonymousId: cart.anonymousId,
|
|
4262
|
+
billingAddress: cart.billingAddress,
|
|
4262
4263
|
cart: cartReference,
|
|
4263
|
-
|
|
4264
|
-
|
|
4264
|
+
country: cart.country,
|
|
4265
|
+
custom: cart.custom,
|
|
4266
|
+
customerEmail: cart.customerEmail,
|
|
4267
|
+
customerGroup: cart.customerGroup,
|
|
4268
|
+
customerId: cart.customerId,
|
|
4265
4269
|
customLineItems: [],
|
|
4266
|
-
|
|
4267
|
-
|
|
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
|
-
|
|
4270
|
-
|
|
4279
|
+
paymentInfo: cart.paymentInfo,
|
|
4280
|
+
refusedGifts: [],
|
|
4271
4281
|
shipping: cart.shipping,
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
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
|
}
|