ti2-ventrata 1.0.19 → 1.0.20
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 -2
- package/package.json +1 -1
- package/resolvers/availability.js +2 -2
- package/resolvers/booking.js +1 -1
package/index.js
CHANGED
|
@@ -35,8 +35,8 @@ const getHeaders = ({
|
|
|
35
35
|
...acceptLanguage ? { 'Accept-Language': acceptLanguage } : {},
|
|
36
36
|
'Content-Type': 'application/json',
|
|
37
37
|
...resellerId ? { Referer: resellerId } : {},
|
|
38
|
-
|
|
39
|
-
'Octo-Capabilities': 'octo/pricing',
|
|
38
|
+
'Octo-Capabilities': 'octo/pricing,octo/pickups',
|
|
39
|
+
// 'Octo-Capabilities': 'octo/pricing',
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
class Plugin {
|
|
@@ -342,6 +342,7 @@ class Plugin {
|
|
|
342
342
|
notes,
|
|
343
343
|
reference,
|
|
344
344
|
settlementMethod,
|
|
345
|
+
pickupPoint,
|
|
345
346
|
},
|
|
346
347
|
typeDefsAndQueries: {
|
|
347
348
|
bookingTypeDefs,
|
|
@@ -366,6 +367,7 @@ class Plugin {
|
|
|
366
367
|
settlementMethod,
|
|
367
368
|
...dataForCreateBooking,
|
|
368
369
|
notes,
|
|
370
|
+
...(pickupPoint ? { pickupRequested: true, pickupPointId: pickupPoint } : {}),
|
|
369
371
|
},
|
|
370
372
|
headers,
|
|
371
373
|
}));
|
package/package.json
CHANGED
|
@@ -30,8 +30,8 @@ const resolvers = {
|
|
|
30
30
|
vacancies: R.prop('vacancies'),
|
|
31
31
|
available: root => root.status !== 'SOLD_OUT',
|
|
32
32
|
// get the starting price
|
|
33
|
-
pricing: R.prop('pricingFrom'),
|
|
34
|
-
unitPricing: R.prop('unitPricingFrom'),
|
|
33
|
+
pricing: root => R.prop('pricingFrom', root) || R.prop('pricing', root),
|
|
34
|
+
unitPricing: root => R.prop('unitPricingFrom', root) || R.prop('unitPricing', root),
|
|
35
35
|
pickupAvailable: R.prop('pickupAvailable'),
|
|
36
36
|
pickupRequired: R.prop('pickupRequired'),
|
|
37
37
|
pickupPoints: root => R.pathOr([], ['pickupPoints'], root)
|
package/resolvers/booking.js
CHANGED
|
@@ -11,7 +11,7 @@ const resolvers = {
|
|
|
11
11
|
Query: {
|
|
12
12
|
id: R.path(['id']),
|
|
13
13
|
orderId: R.path(['orderReference']),
|
|
14
|
-
bookingId: R.path(['
|
|
14
|
+
bookingId: R.path(['id']),
|
|
15
15
|
supplierBookingId: R.path(['supplierReference']),
|
|
16
16
|
status: e => capitalize(R.path(['status'], e)),
|
|
17
17
|
productId: R.path(['product', 'id']),
|