ti2-ventrata 1.0.39 → 1.0.40

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.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -435,18 +435,19 @@ class Plugin {
435
435
  ), unitItemCFV);
436
436
  }
437
437
  }
438
-
438
+ const { settlementMethods } = dataForCreateBooking;
439
439
  const settlementMethod = Plugin.getSettlementMethod(
440
440
  reference,
441
- dataForCreateBooking.settlementMethods,
441
+ settlementMethods,
442
442
  );
443
+
443
444
  let booking = R.path(['data'], await axios({
444
445
  method: rebookingId ? 'patch' : 'post',
445
446
  url: `${endpoint || this.endpoint}/bookings${rebookingId ? `/${rebookingId}` : ''}`,
446
447
  data: {
447
448
  orderId,
448
449
  settlementMethod,
449
- ...dataForCreateBooking,
450
+ ...R.omit(['settlementMethods'], dataForCreateBooking),
450
451
  notes,
451
452
  ...(pickupPoint ? { pickupRequested: true, pickupPointId: pickupPoint } : {}),
452
453
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-ventrata",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "Ventrata's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {