ti2-ventrata 1.0.29 → 1.0.31
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 +2 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -340,7 +340,6 @@ class Plugin {
|
|
|
340
340
|
holder,
|
|
341
341
|
notes,
|
|
342
342
|
reference,
|
|
343
|
-
settlementMethod,
|
|
344
343
|
pickupPoint,
|
|
345
344
|
},
|
|
346
345
|
typeDefsAndQueries: {
|
|
@@ -363,7 +362,7 @@ class Plugin {
|
|
|
363
362
|
method: rebookingId ? 'patch' : 'post',
|
|
364
363
|
url: `${endpoint || this.endpoint}/bookings${rebookingId ? `/${rebookingId}` : ''}`,
|
|
365
364
|
data: {
|
|
366
|
-
settlementMethod,
|
|
365
|
+
settlementMethod: 'DEFERRED',
|
|
367
366
|
...dataForCreateBooking,
|
|
368
367
|
notes,
|
|
369
368
|
...(pickupPoint ? { pickupRequested: true, pickupPointId: pickupPoint } : {}),
|
|
@@ -382,7 +381,7 @@ class Plugin {
|
|
|
382
381
|
},
|
|
383
382
|
notes,
|
|
384
383
|
resellerReference: reference,
|
|
385
|
-
settlementMethod,
|
|
384
|
+
settlementMethod: reference && octoEnv !== 'test' ? 'VOUCHER' : 'DEFERRED',
|
|
386
385
|
};
|
|
387
386
|
booking = R.path(['data'], await axios({
|
|
388
387
|
method: 'post',
|