mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 06:56:35 +00:00
feat(extract): capture seat, class, platform, price + event venue contact
Request and map root-level seat/class/platform and a total price/currency into reservation metadata (shown on the card; price reuses the existing label). Read both the root and reservationFor and tolerate common field-name aliases (priceAmount, priceCurrencyISO4217Code, fareClass, ...) since models name these inconsistently. Also capture event/attraction venue telephone + url onto the auto-created place, matching lodging/restaurant.
This commit is contained in:
@@ -71,6 +71,11 @@ export const KI_RESERVATION_JSON_SCHEMA = {
|
||||
reservationFor: { type: 'object', additionalProperties: true },
|
||||
pickupLocation: { type: 'object', additionalProperties: true },
|
||||
dropoffLocation: { type: 'object', additionalProperties: true },
|
||||
seat: { type: 'string' },
|
||||
class: { type: 'string' },
|
||||
platform: { type: 'string' },
|
||||
price: { type: ['number', 'string'] },
|
||||
priceCurrency: { type: 'string' },
|
||||
},
|
||||
required: ['@type'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user