{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "itinerary-price-metric", "description": "price metric", "type": "object", "properties": { "type": { "type": "string", "description": "ressource type - always price-metrics" }, "origin": { "type": "object", "description": "Description of a particular point or place in physical space", "properties": { "iataCode": { "type": "string", "description": "IATA location code" } } }, "destination": { "type": "object", "description": "Description of a particular point or place in physical space", "properties": { "iataCode": { "type": "string", "description": "IATA location code" } } }, "departureDate": { "type": "string", "description": "The date on which the traveler will depart from the origin to go to the destination. \n\nDates are specified in the[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-DD format." }, "transportType": { "type": "string", "description": "transportation type", "enum": [ "FLIGHT" ] }, "currencyCode": { "type": "string", "description": "currency of the prices.\n\nCurrency is specified in the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format, e.g. EUR for Euro" }, "oneWay": { "type": "boolean", "description": "true for a one way trip,\nfalse for a round trip" }, "priceMetrics": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "description": "Defines the monetary value with decimal position. It can be in cash or miles." }, "quartileRanking": { "type": "string", "enum": [ "MINIMUM", "FIRST", "MEDIUM", "THIRD", "MAXIMUM" ] } } } } } }