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.
- package/index.js +4 -3
- 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
|
-
|
|
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
|
},
|