@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.js
CHANGED
|
@@ -4221,23 +4221,37 @@ var OrderRepository = class extends AbstractResourceRepository {
|
|
|
4221
4221
|
}
|
|
4222
4222
|
const resource = {
|
|
4223
4223
|
...getBaseResourceProperties(),
|
|
4224
|
-
|
|
4224
|
+
anonymousId: cart.anonymousId,
|
|
4225
|
+
billingAddress: cart.billingAddress,
|
|
4225
4226
|
cart: cartReference,
|
|
4226
|
-
|
|
4227
|
-
|
|
4227
|
+
country: cart.country,
|
|
4228
|
+
custom: cart.custom,
|
|
4229
|
+
customerEmail: cart.customerEmail,
|
|
4230
|
+
customerGroup: cart.customerGroup,
|
|
4231
|
+
customerId: cart.customerId,
|
|
4228
4232
|
customLineItems: [],
|
|
4229
|
-
|
|
4230
|
-
|
|
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
|
-
|
|
4233
|
-
|
|
4242
|
+
paymentInfo: cart.paymentInfo,
|
|
4243
|
+
refusedGifts: [],
|
|
4234
4244
|
shipping: cart.shipping,
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
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
|
}
|