@duffel/components 2.7.20 → 3.0.0
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/.circleci/config.yml +67 -0
- package/.eslintrc.js +47 -0
- package/.github/renovate.json +16 -0
- package/.github/workflows/autoapprove.yml +18 -0
- package/.github/workflows/release.yml +89 -0
- package/.husky/post-commit +4 -0
- package/.husky/pre-commit +4 -0
- package/.nvmrc +1 -0
- package/.prettierignore +2 -0
- package/.storybook/Storyshots.test.js +3 -0
- package/.storybook/__snapshots__/Storyshots.test.js.snap +48318 -0
- package/.storybook/main.ts +33 -0
- package/.storybook/preview.tsx +28 -0
- package/.tool-versions +1 -0
- package/CONTRIBUTING.md +83 -0
- package/README.md +53 -15
- package/__mocks__/styleMock.js +6 -0
- package/babel.config.js +20 -0
- package/commitlint.config.js +4 -0
- package/config/esbuild.base.config.js +18 -0
- package/config/esbuild.cdn.config.js +51 -0
- package/config/esbuild.dev.config.js +46 -0
- package/config/esbuild.react.config.js +42 -0
- package/jest.config.ts +14 -0
- package/package.json +135 -193
- package/react-dist/components/DuffelAncillaries/Card.d.ts +14 -0
- package/react-dist/components/DuffelAncillaries/Counter.d.ts +10 -0
- package/react-dist/components/DuffelAncillaries/DuffelAncillaries.d.ts +3 -0
- package/react-dist/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +11 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +11 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +11 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +14 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +9 -0
- package/react-dist/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +7 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +10 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +11 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +7 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.d.ts +4 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +11 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.d.ts +2 -0
- package/react-dist/components/DuffelAncillaries/seats/Amenity.d.ts +6 -0
- package/react-dist/components/DuffelAncillaries/seats/DeckSelect.d.ts +15 -0
- package/react-dist/components/DuffelAncillaries/seats/Element.d.ts +15 -0
- package/react-dist/components/DuffelAncillaries/seats/EmptyElement.d.ts +2 -0
- package/react-dist/components/DuffelAncillaries/seats/ExitElement.d.ts +6 -0
- package/react-dist/components/DuffelAncillaries/seats/Legend.d.ts +12 -0
- package/react-dist/components/DuffelAncillaries/seats/Row.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/seats/RowSection.d.ts +17 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatElement.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatInfo.d.ts +7 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatMap.d.ts +12 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatMapUnavailable.d.ts +2 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatSelectionModalBody.d.ts +4 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +16 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +10 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +5 -0
- package/react-dist/components/DuffelPayments/DuffelPayments.d.ts +11 -0
- package/react-dist/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +14 -0
- package/react-dist/components/shared/AnimatedLoaderEllipsis.d.ts +2 -0
- package/react-dist/components/shared/Button.d.ts +23 -0
- package/react-dist/components/shared/ErrorBoundary.d.ts +13 -0
- package/react-dist/components/shared/FetchOfferErrorState.d.ts +5 -0
- package/react-dist/components/shared/Icon.d.ts +44 -0
- package/react-dist/components/shared/IconButton.d.ts +16 -0
- package/react-dist/components/shared/Modal.d.ts +11 -0
- package/react-dist/components/shared/NonIdealState.d.ts +4 -0
- package/react-dist/components/shared/Stamp.d.ts +7 -0
- package/react-dist/components/shared/Tabs.d.ts +16 -0
- package/react-dist/custom-elements.d.ts +6 -0
- package/react-dist/custom-elements.js +37 -0
- package/react-dist/custom-elements.js.map +7 -0
- package/react-dist/index.d.ts +7 -0
- package/react-dist/index.js +37 -0
- package/react-dist/index.js.map +7 -0
- package/react-dist/lib/captureErrorInSentry.d.ts +1 -0
- package/react-dist/lib/compileCreateOrderPayload.d.ts +14 -0
- package/react-dist/lib/createPriceFormatters.d.ts +12 -0
- package/react-dist/lib/fetchFromDuffelAPI.d.ts +8 -0
- package/react-dist/lib/fetchFromFixtures.d.ts +4 -0
- package/react-dist/lib/formatAvailableServices.d.ts +12 -0
- package/react-dist/lib/formatDate.d.ts +2 -0
- package/react-dist/lib/formatSeatMaps.d.ts +4 -0
- package/react-dist/lib/getBaggageServiceDescription.d.ts +2 -0
- package/react-dist/lib/getCabinsForSegmentAndDeck.d.ts +2 -0
- package/react-dist/lib/getCurrencyForSeatMaps.d.ts +10 -0
- package/react-dist/lib/getCurrencyForServices.d.ts +11 -0
- package/react-dist/lib/getFirstSeatElementMatchingCriteria.d.ts +3 -0
- package/react-dist/lib/getPassengerBySegmentList.d.ts +6 -0
- package/react-dist/lib/getPassengerInitials.d.ts +1 -0
- package/react-dist/lib/getPassengerMapById.d.ts +3 -0
- package/react-dist/lib/getPassengerName.d.ts +3 -0
- package/react-dist/lib/getRowNumber.d.ts +2 -0
- package/react-dist/lib/getSegmentList.d.ts +2 -0
- package/react-dist/lib/getServicePriceMapById.d.ts +3 -0
- package/react-dist/lib/getSymbols.d.ts +2 -0
- package/react-dist/lib/getTotalAmountForServices.d.ts +6 -0
- package/react-dist/lib/getTotalQuantity.d.ts +2 -0
- package/react-dist/lib/hasService.d.ts +2 -0
- package/react-dist/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +3 -0
- package/react-dist/lib/hasWings.d.ts +2 -0
- package/react-dist/lib/isBaggageService.d.ts +2 -0
- package/react-dist/lib/isCancelForAnyReasonService.d.ts +2 -0
- package/react-dist/lib/isFixtureOfferId.d.ts +2 -0
- package/react-dist/lib/isPayloadComplete.d.ts +2 -0
- package/react-dist/lib/isSeatElement.d.ts +2 -0
- package/react-dist/lib/logging.d.ts +46 -0
- package/react-dist/lib/moneyStringFormatter.d.ts +8 -0
- package/react-dist/lib/offerIsExpired.d.ts +2 -0
- package/react-dist/lib/retrieveOffer.d.ts +2 -0
- package/react-dist/lib/retrieveOfferFromDuffelAPI.d.ts +1 -0
- package/react-dist/lib/retrieveSeatMaps.d.ts +2 -0
- package/react-dist/lib/retrieveSeatMapsFromDuffelAPI.d.ts +1 -0
- package/react-dist/lib/setBodyScrollability.d.ts +1 -0
- package/react-dist/lib/validateProps.d.ts +7 -0
- package/react-dist/lib/withPlural.d.ts +1 -0
- package/react-dist/types/Aircraft.d.ts +14 -0
- package/react-dist/types/Airline.d.ts +14 -0
- package/react-dist/types/Airport.d.ts +44 -0
- package/react-dist/types/City.d.ts +18 -0
- package/react-dist/types/CreateOrderPayload.d.ts +72 -0
- package/react-dist/types/CurrencyConversion.d.ts +10 -0
- package/react-dist/types/DuffelAncillariesProps.d.ts +70 -0
- package/react-dist/types/Offer.d.ts +711 -0
- package/react-dist/types/Order.d.ts +8 -0
- package/react-dist/types/Place.d.ts +8 -0
- package/react-dist/types/SeatMap.d.ts +190 -0
- package/react-dist/types/index.d.ts +11 -0
- package/scripts/generate-fixture.ts +200 -0
- package/scripts/upload-to-cdn.sh +34 -0
- package/scripts.tsconfig.json +11 -0
- package/src/components/DuffelAncillaries/Card.tsx +126 -0
- package/src/components/DuffelAncillaries/Counter.tsx +40 -0
- package/src/components/DuffelAncillaries/DuffelAncillaries.tsx +344 -0
- package/src/components/DuffelAncillaries/DuffelAncillariesCustomElement.tsx +124 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionCard.tsx +96 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionController.tsx +88 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionModal.tsx +81 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionModalBody.tsx +60 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.tsx +122 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.tsx +81 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.tsx +76 -0
- package/src/components/DuffelAncillaries/bags/IncludedBaggageBanner.tsx +51 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.tsx +90 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.tsx +63 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.tsx +56 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.tsx +11 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.tsx +74 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.tsx +9 -0
- package/src/components/DuffelAncillaries/seats/Amenity.tsx +21 -0
- package/src/components/DuffelAncillaries/seats/DeckSelect.tsx +27 -0
- package/src/components/DuffelAncillaries/seats/Element.tsx +52 -0
- package/src/components/DuffelAncillaries/seats/EmptyElement.tsx +5 -0
- package/src/components/DuffelAncillaries/seats/ExitElement.tsx +17 -0
- package/src/components/DuffelAncillaries/seats/Legend.tsx +60 -0
- package/src/components/DuffelAncillaries/seats/Row.tsx +47 -0
- package/src/components/DuffelAncillaries/seats/RowSection.tsx +78 -0
- package/src/components/DuffelAncillaries/seats/SeatElement.tsx +120 -0
- package/src/components/DuffelAncillaries/seats/SeatInfo.tsx +32 -0
- package/src/components/DuffelAncillaries/seats/SeatMap.tsx +81 -0
- package/src/components/DuffelAncillaries/seats/SeatMapUnavailable.tsx +21 -0
- package/src/components/DuffelAncillaries/seats/SeatSelectionCard.tsx +103 -0
- package/src/components/DuffelAncillaries/seats/SeatSelectionModal.tsx +142 -0
- package/src/components/DuffelAncillaries/seats/SeatSelectionModalBody.tsx +13 -0
- package/src/components/DuffelAncillaries/seats/SeatSelectionModalFooter.tsx +82 -0
- package/src/components/DuffelAncillaries/seats/SeatSelectionModalHeader.tsx +87 -0
- package/src/components/DuffelAncillaries/seats/SeatUnavailable.tsx +14 -0
- package/src/components/DuffelPayments/DuffelPayments.tsx +218 -0
- package/src/components/DuffelPayments/DuffelPaymentsCustomElement.tsx +130 -0
- package/src/components/shared/AnimatedLoaderEllipsis.tsx +5 -0
- package/src/components/shared/Button.tsx +63 -0
- package/src/components/shared/ErrorBoundary.tsx +54 -0
- package/src/components/shared/FetchOfferErrorState.tsx +35 -0
- package/src/components/shared/Icon.tsx +152 -0
- package/src/components/shared/IconButton.tsx +42 -0
- package/src/components/shared/Modal.tsx +40 -0
- package/src/components/shared/NonIdealState.tsx +28 -0
- package/src/components/shared/Stamp.tsx +29 -0
- package/src/components/shared/Tabs.tsx +36 -0
- package/src/custom-elements.ts +13 -0
- package/src/examples/client-side/README.md +30 -0
- package/src/examples/client-side/index.html +57 -0
- package/src/examples/full-stack/README.md +34 -0
- package/src/examples/full-stack/index.html +48 -0
- package/src/examples/full-stack/server.mjs +158 -0
- package/src/examples/just-typescript/README.md +37 -0
- package/src/examples/just-typescript/package.json +16 -0
- package/src/examples/just-typescript/src/index.html +23 -0
- package/src/examples/just-typescript/src/index.ts +36 -0
- package/src/examples/just-typescript/yarn.lock +154 -0
- package/src/examples/payments-custom-element/README.md +17 -0
- package/src/examples/payments-custom-element/index.html +43 -0
- package/src/examples/payments-just-typescript/README.md +37 -0
- package/src/examples/payments-just-typescript/package.json +16 -0
- package/src/examples/payments-just-typescript/src/index.html +23 -0
- package/src/examples/payments-just-typescript/src/index.ts +18 -0
- package/src/examples/payments-just-typescript/yarn.lock +154 -0
- package/src/examples/react-app/README.md +37 -0
- package/src/examples/react-app/package.json +20 -0
- package/src/examples/react-app/src/index.html +19 -0
- package/src/examples/react-app/src/index.tsx +48 -0
- package/src/examples/react-app/yarn.lock +219 -0
- package/src/fixtures/offers/off_0000AUde3KwTztSRK1cznH.json +497 -0
- package/src/fixtures/offers/off_0000AVx4lUFFKW8PsPeQeQ.json +307 -0
- package/src/fixtures/offers/off_1.json +497 -0
- package/src/fixtures/passengers/mock_passengers.ts +26 -0
- package/src/fixtures/seat-maps/off_0000AUde3KwTztSRK1cznH.json +6852 -0
- package/src/fixtures/seat-maps/off_0000AVx4lUFFKW8PsPeQeQ.json +1 -0
- package/src/fixtures/seat-maps/off_1.json +6852 -0
- package/src/index.ts +7 -0
- package/src/lib/captureErrorInSentry.ts +42 -0
- package/src/lib/compileCreateOrderPayload.ts +63 -0
- package/src/lib/createPriceFormatters.ts +73 -0
- package/src/lib/fetchFromDuffelAPI.ts +54 -0
- package/src/lib/fetchFromFixtures.ts +18 -0
- package/src/lib/formatAvailableServices.ts +91 -0
- package/src/lib/formatDate.ts +20 -0
- package/src/lib/formatSeatMaps.ts +81 -0
- package/src/lib/getBaggageServiceDescription.ts +42 -0
- package/src/lib/getCabinsForSegmentAndDeck.ts +4 -0
- package/src/lib/getCurrencyForSeatMaps.ts +22 -0
- package/src/lib/getCurrencyForServices.ts +24 -0
- package/src/lib/getFirstSeatElementMatchingCriteria.ts +22 -0
- package/src/lib/getPassengerBySegmentList.ts +10 -0
- package/src/lib/getPassengerInitials.ts +6 -0
- package/src/lib/getPassengerMapById.ts +17 -0
- package/src/lib/getPassengerName.ts +37 -0
- package/src/lib/getRowNumber.ts +16 -0
- package/src/lib/getSegmentList.ts +7 -0
- package/src/lib/getServicePriceMapById.ts +20 -0
- package/src/lib/getSymbols.ts +22 -0
- package/src/lib/getTotalAmountForServices.ts +72 -0
- package/src/lib/getTotalQuantity.ts +5 -0
- package/src/lib/hasService.ts +24 -0
- package/src/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.ts +35 -0
- package/src/lib/hasWings.ts +8 -0
- package/src/lib/isBaggageService.ts +8 -0
- package/src/lib/isCancelForAnyReasonService.ts +9 -0
- package/src/lib/isFixtureOfferId.ts +4 -0
- package/src/lib/isPayloadComplete.ts +11 -0
- package/src/lib/isSeatElement.ts +10 -0
- package/src/lib/logging.ts +120 -0
- package/src/lib/moneyStringFormatter.ts +34 -0
- package/src/lib/offerIsExpired.ts +5 -0
- package/src/lib/retrieveOffer.ts +54 -0
- package/src/lib/retrieveOfferFromDuffelAPI.ts +13 -0
- package/src/lib/retrieveSeatMaps.ts +55 -0
- package/src/lib/retrieveSeatMapsFromDuffelAPI.ts +13 -0
- package/src/lib/setBodyScrollability.ts +7 -0
- package/src/lib/validateProps.ts +37 -0
- package/src/lib/withPlural.ts +8 -0
- package/src/stories/BaggageSelectionModalHeader.stories.tsx +21 -0
- package/src/stories/Button.stories.tsx +69 -0
- package/src/stories/DuffelAncillaries.stories.tsx +126 -0
- package/src/stories/DuffelPayments.stories.tsx +34 -0
- package/src/stories/Icon.stories.tsx +35 -0
- package/src/stories/IconButton.stories.tsx +25 -0
- package/src/styles/colors.css +22 -0
- package/src/styles/components/Amenity.css +23 -0
- package/src/styles/components/BaggageDisplay.css +25 -0
- package/src/styles/components/Button.css +161 -0
- package/src/styles/components/Card.css +52 -0
- package/src/styles/components/CfarSelectionModal.css +34 -0
- package/src/styles/components/Counter.css +18 -0
- package/src/styles/components/DuffelPayments.css +42 -0
- package/src/styles/components/IconButton.css +63 -0
- package/src/styles/components/Legend.css +58 -0
- package/src/styles/components/Loader.css +37 -0
- package/src/styles/components/LoadingState.css +81 -0
- package/src/styles/components/Modal.css +84 -0
- package/src/styles/components/PassengerSelect.css +93 -0
- package/src/styles/components/PassengersLayout.css +90 -0
- package/src/styles/components/Row.css +70 -0
- package/src/styles/components/Seat.css +57 -0
- package/src/styles/components/SeatInfo.css +61 -0
- package/src/styles/components/SeatMap.css +24 -0
- package/src/styles/components/SeatSelect.css +92 -0
- package/src/styles/components/Segment.css +17 -0
- package/src/styles/components/SelectionSegment.css +10 -0
- package/src/styles/components/Summary.css +70 -0
- package/src/styles/components/Tabs.css +49 -0
- package/src/styles/flex.css +5 -0
- package/src/styles/font-families.css +47 -0
- package/src/styles/global.css +51 -0
- package/src/styles/margin.css +3 -0
- package/src/styles/spacing.css +18 -0
- package/src/styles/transitions.css +3 -0
- package/src/styles/typography.css +13 -0
- package/src/tests/components/DuffelAncillaries.test.tsx +342 -0
- package/src/tests/lib/createPriceFormatters.test.tsx +152 -0
- package/src/tests/lib/formatAvailableServices.test.tsx +79 -0
- package/src/tests/lib/formatSeatMaps.test.tsx +49 -0
- package/src/tests/lib/getCurrencyForServices.test.tsx +44 -0
- package/src/tests/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.test.ts +86 -0
- package/src/tests/lib/logging.test.tsx +32 -0
- package/src/tests/lib/moneyStringFormatter.test.tsx +12 -0
- package/src/tests/lib/validateProps.test.tsx +57 -0
- package/src/types/Aircraft.ts +16 -0
- package/src/types/Airline.ts +16 -0
- package/src/types/Airport.ts +54 -0
- package/src/types/City.ts +21 -0
- package/src/types/CreateOrderPayload.ts +99 -0
- package/src/types/CurrencyConversion.ts +10 -0
- package/src/types/DuffelAncillariesProps.ts +108 -0
- package/src/types/Offer.ts +851 -0
- package/src/types/Order.ts +6 -0
- package/src/types/Place.ts +6 -0
- package/src/types/SeatMap.ts +231 -0
- package/src/types/index.ts +11 -0
- package/tsconfig.json +52 -0
- package/LICENSE +0 -21
- package/dist/AdditionalBaggage.esm.js +0 -1
- package/dist/AdditionalBaggage.js +0 -1
- package/dist/AdditionalBaggage.min.css +0 -408
- package/dist/AdditionalBaggage.umd.min.js +0 -2
- package/dist/AdditionalBaggage.umd.min.js.LICENSE.txt +0 -60
- package/dist/AdditionalBaggageSelection.esm.js +0 -1
- package/dist/AdditionalBaggageSelection.js +0 -1
- package/dist/AdditionalBaggageSelection.min.css +0 -744
- package/dist/AdditionalBaggageSelection.umd.min.js +0 -2
- package/dist/AdditionalBaggageSelection.umd.min.js.LICENSE.txt +0 -93
- package/dist/CardPayment.esm.js +0 -2
- package/dist/CardPayment.esm.js.LICENSE.txt +0 -6
- package/dist/CardPayment.js +0 -2
- package/dist/CardPayment.js.LICENSE.txt +0 -6
- package/dist/CardPayment.min.css +0 -233
- package/dist/CardPayment.umd.min.js +0 -2
- package/dist/CardPayment.umd.min.js.LICENSE.txt +0 -61
- package/dist/SeatSelection.esm.js +0 -1
- package/dist/SeatSelection.js +0 -1
- package/dist/SeatSelection.min.css +0 -1127
- package/dist/SeatSelection.umd.min.js +0 -2
- package/dist/SeatSelection.umd.min.js.LICENSE.txt +0 -60
- package/dist/duffel-components.d.ts +0 -1614
- package/dist/duffel-components.esm.js +0 -2
- package/dist/duffel-components.esm.js.LICENSE.txt +0 -6
- package/dist/duffel-components.js +0 -2
- package/dist/duffel-components.js.LICENSE.txt +0 -6
- package/dist/duffel-components.min.css +0 -1280
- package/dist/duffel-components.umd.min.js +0 -2
- package/dist/duffel-components.umd.min.js.LICENSE.txt +0 -102
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_description": "This fixture was generated by scripts/generate-fixture.ts. It includes an offer with 1 passenger and 1 slice: FCO,ORY. This is helpful for testing the scenario of having multiple baggage services of the same type (only one can selected per segment per passenger). ",
|
|
3
|
+
"updated_at": "2023-05-23T16:19:17.805341Z",
|
|
4
|
+
"total_emissions_kg": "28",
|
|
5
|
+
"total_currency": "GBP",
|
|
6
|
+
"total_amount": "29.59",
|
|
7
|
+
"tax_currency": "GBP",
|
|
8
|
+
"tax_amount": "26.97",
|
|
9
|
+
"slices": [
|
|
10
|
+
{
|
|
11
|
+
"segments": [
|
|
12
|
+
{
|
|
13
|
+
"stops": [],
|
|
14
|
+
"passengers": [
|
|
15
|
+
{
|
|
16
|
+
"passenger_id": "pas_0000AVx4lOnPaZtmydad4S",
|
|
17
|
+
"fare_basis_code": "PBATO",
|
|
18
|
+
"cabin_class_marketing_name": "Economy",
|
|
19
|
+
"cabin_class": "economy",
|
|
20
|
+
"baggages": [
|
|
21
|
+
{
|
|
22
|
+
"type": "checked",
|
|
23
|
+
"quantity": 0
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "carry_on",
|
|
27
|
+
"quantity": 1
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"origin_terminal": null,
|
|
33
|
+
"origin": {
|
|
34
|
+
"type": "airport",
|
|
35
|
+
"time_zone": "Europe/Rome",
|
|
36
|
+
"name": "Leonardo da Vinci-Fiumicino Airport",
|
|
37
|
+
"longitude": 12.242563,
|
|
38
|
+
"latitude": 41.800082,
|
|
39
|
+
"id": "arp_fco_it",
|
|
40
|
+
"icao_code": "LIRF",
|
|
41
|
+
"iata_country_code": "IT",
|
|
42
|
+
"iata_code": "FCO",
|
|
43
|
+
"iata_city_code": "ROM",
|
|
44
|
+
"city_name": "Rome",
|
|
45
|
+
"city": {
|
|
46
|
+
"type": "city",
|
|
47
|
+
"time_zone": null,
|
|
48
|
+
"name": "Rome",
|
|
49
|
+
"longitude": null,
|
|
50
|
+
"latitude": null,
|
|
51
|
+
"id": "cit_rom_it",
|
|
52
|
+
"icao_code": null,
|
|
53
|
+
"iata_country_code": "IT",
|
|
54
|
+
"iata_code": "ROM",
|
|
55
|
+
"iata_city_code": "ROM",
|
|
56
|
+
"city_name": null
|
|
57
|
+
},
|
|
58
|
+
"airports": null
|
|
59
|
+
},
|
|
60
|
+
"operating_carrier_flight_number": "3951",
|
|
61
|
+
"operating_carrier": {
|
|
62
|
+
"name": "Transavia France",
|
|
63
|
+
"logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/TO.svg",
|
|
64
|
+
"logo_lockup_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-lockup/TO.svg",
|
|
65
|
+
"id": "arl_00009VME7DEATorL0sX28D",
|
|
66
|
+
"iata_code": "TO",
|
|
67
|
+
"conditions_of_carriage_url": "https://www.transavia.com/en-UK/conditions/conditions-of-carriage/"
|
|
68
|
+
},
|
|
69
|
+
"marketing_carrier_flight_number": "3951",
|
|
70
|
+
"marketing_carrier": {
|
|
71
|
+
"name": "Transavia France",
|
|
72
|
+
"logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/TO.svg",
|
|
73
|
+
"logo_lockup_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-lockup/TO.svg",
|
|
74
|
+
"id": "arl_00009VME7DEATorL0sX28D",
|
|
75
|
+
"iata_code": "TO",
|
|
76
|
+
"conditions_of_carriage_url": "https://www.transavia.com/en-UK/conditions/conditions-of-carriage/"
|
|
77
|
+
},
|
|
78
|
+
"id": "seg_0000AVx4lUClTk9LkiURma",
|
|
79
|
+
"duration": "PT2H10M",
|
|
80
|
+
"distance": null,
|
|
81
|
+
"destination_terminal": null,
|
|
82
|
+
"destination": {
|
|
83
|
+
"type": "airport",
|
|
84
|
+
"time_zone": "Europe/Paris",
|
|
85
|
+
"name": "Paris-Orly Airport",
|
|
86
|
+
"longitude": 2.362898,
|
|
87
|
+
"latitude": 48.726427,
|
|
88
|
+
"id": "arp_ory_fr",
|
|
89
|
+
"icao_code": "LFPO",
|
|
90
|
+
"iata_country_code": "FR",
|
|
91
|
+
"iata_code": "ORY",
|
|
92
|
+
"iata_city_code": "PAR",
|
|
93
|
+
"city_name": "Paris",
|
|
94
|
+
"city": {
|
|
95
|
+
"type": "city",
|
|
96
|
+
"time_zone": null,
|
|
97
|
+
"name": "Paris",
|
|
98
|
+
"longitude": null,
|
|
99
|
+
"latitude": null,
|
|
100
|
+
"id": "cit_par_fr",
|
|
101
|
+
"icao_code": null,
|
|
102
|
+
"iata_country_code": "FR",
|
|
103
|
+
"iata_code": "PAR",
|
|
104
|
+
"iata_city_code": "PAR",
|
|
105
|
+
"city_name": null
|
|
106
|
+
},
|
|
107
|
+
"airports": null
|
|
108
|
+
},
|
|
109
|
+
"departing_at": "2023-05-30T06:30:00",
|
|
110
|
+
"arriving_at": "2023-05-30T08:40:00",
|
|
111
|
+
"aircraft": null
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"origin_type": "airport",
|
|
115
|
+
"origin": {
|
|
116
|
+
"type": "airport",
|
|
117
|
+
"time_zone": "Europe/Rome",
|
|
118
|
+
"name": "Leonardo da Vinci-Fiumicino Airport",
|
|
119
|
+
"longitude": 12.242563,
|
|
120
|
+
"latitude": 41.800082,
|
|
121
|
+
"id": "arp_fco_it",
|
|
122
|
+
"icao_code": "LIRF",
|
|
123
|
+
"iata_country_code": "IT",
|
|
124
|
+
"iata_code": "FCO",
|
|
125
|
+
"iata_city_code": "ROM",
|
|
126
|
+
"city_name": "Rome",
|
|
127
|
+
"city": {
|
|
128
|
+
"type": "city",
|
|
129
|
+
"time_zone": null,
|
|
130
|
+
"name": "Rome",
|
|
131
|
+
"longitude": null,
|
|
132
|
+
"latitude": null,
|
|
133
|
+
"id": "cit_rom_it",
|
|
134
|
+
"icao_code": null,
|
|
135
|
+
"iata_country_code": "IT",
|
|
136
|
+
"iata_code": "ROM",
|
|
137
|
+
"iata_city_code": "ROM",
|
|
138
|
+
"city_name": null
|
|
139
|
+
},
|
|
140
|
+
"airports": null
|
|
141
|
+
},
|
|
142
|
+
"id": "sli_0000AVx4lUEBOTHfp79Zzh",
|
|
143
|
+
"fare_brand_name": "Basic",
|
|
144
|
+
"duration": "PT2H10M",
|
|
145
|
+
"destination_type": "airport",
|
|
146
|
+
"destination": {
|
|
147
|
+
"type": "airport",
|
|
148
|
+
"time_zone": "Europe/Paris",
|
|
149
|
+
"name": "Paris-Orly Airport",
|
|
150
|
+
"longitude": 2.362898,
|
|
151
|
+
"latitude": 48.726427,
|
|
152
|
+
"id": "arp_ory_fr",
|
|
153
|
+
"icao_code": "LFPO",
|
|
154
|
+
"iata_country_code": "FR",
|
|
155
|
+
"iata_code": "ORY",
|
|
156
|
+
"iata_city_code": "PAR",
|
|
157
|
+
"city_name": "Paris",
|
|
158
|
+
"city": {
|
|
159
|
+
"type": "city",
|
|
160
|
+
"time_zone": null,
|
|
161
|
+
"name": "Paris",
|
|
162
|
+
"longitude": null,
|
|
163
|
+
"latitude": null,
|
|
164
|
+
"id": "cit_par_fr",
|
|
165
|
+
"icao_code": null,
|
|
166
|
+
"iata_country_code": "FR",
|
|
167
|
+
"iata_code": "PAR",
|
|
168
|
+
"iata_city_code": "PAR",
|
|
169
|
+
"city_name": null
|
|
170
|
+
},
|
|
171
|
+
"airports": null
|
|
172
|
+
},
|
|
173
|
+
"conditions": {
|
|
174
|
+
"change_before_departure": {
|
|
175
|
+
"penalty_currency": "EUR",
|
|
176
|
+
"penalty_amount": "50",
|
|
177
|
+
"allowed": true
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"private_fares": [],
|
|
183
|
+
"payment_requirements": {
|
|
184
|
+
"requires_instant_payment": true,
|
|
185
|
+
"price_guarantee_expires_at": null,
|
|
186
|
+
"payment_required_by": null
|
|
187
|
+
},
|
|
188
|
+
"passengers": [
|
|
189
|
+
{
|
|
190
|
+
"type": "adult",
|
|
191
|
+
"loyalty_programme_accounts": [],
|
|
192
|
+
"id": "pas_0000AVx4lOnPaZtmydad4S",
|
|
193
|
+
"given_name": null,
|
|
194
|
+
"family_name": null,
|
|
195
|
+
"age": null
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"passenger_identity_documents_required": false,
|
|
199
|
+
"partial": false,
|
|
200
|
+
"owner": {
|
|
201
|
+
"name": "Transavia France",
|
|
202
|
+
"logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/TO.svg",
|
|
203
|
+
"logo_lockup_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-lockup/TO.svg",
|
|
204
|
+
"id": "arl_00009VME7DEATorL0sX28D",
|
|
205
|
+
"iata_code": "TO",
|
|
206
|
+
"conditions_of_carriage_url": "https://www.transavia.com/en-UK/conditions/conditions-of-carriage/"
|
|
207
|
+
},
|
|
208
|
+
"live_mode": false,
|
|
209
|
+
"id": "off_0000AVx4lUFFKW8PsPeQeQ",
|
|
210
|
+
"expires_at": "2033-05-20T16:19:18.434Z",
|
|
211
|
+
"created_at": "2023-05-23T16:19:16.939347Z",
|
|
212
|
+
"conditions": {
|
|
213
|
+
"refund_before_departure": {
|
|
214
|
+
"penalty_currency": null,
|
|
215
|
+
"penalty_amount": null,
|
|
216
|
+
"allowed": false
|
|
217
|
+
},
|
|
218
|
+
"change_before_departure": {
|
|
219
|
+
"penalty_currency": "EUR",
|
|
220
|
+
"penalty_amount": "50",
|
|
221
|
+
"allowed": true
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"base_currency": "GBP",
|
|
225
|
+
"base_amount": "2.62",
|
|
226
|
+
"available_services": [
|
|
227
|
+
{
|
|
228
|
+
"type": "baggage",
|
|
229
|
+
"total_currency": "GBP",
|
|
230
|
+
"total_amount": "16.48",
|
|
231
|
+
"segment_ids": ["seg_0000AVx4lUClTk9LkiURma"],
|
|
232
|
+
"passenger_ids": ["pas_0000AVx4lOnPaZtmydad4S"],
|
|
233
|
+
"metadata": {
|
|
234
|
+
"type": "checked",
|
|
235
|
+
"maximum_weight_kg": 15,
|
|
236
|
+
"maximum_length_cm": null,
|
|
237
|
+
"maximum_height_cm": null,
|
|
238
|
+
"maximum_depth_cm": null
|
|
239
|
+
},
|
|
240
|
+
"maximum_quantity": 1,
|
|
241
|
+
"id": "ase_0000AVx4lcq3NYKYWsvw8G"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"type": "baggage",
|
|
245
|
+
"total_currency": "GBP",
|
|
246
|
+
"total_amount": "21.68",
|
|
247
|
+
"segment_ids": ["seg_0000AVx4lUClTk9LkiURma"],
|
|
248
|
+
"passenger_ids": ["pas_0000AVx4lOnPaZtmydad4S"],
|
|
249
|
+
"metadata": {
|
|
250
|
+
"type": "checked",
|
|
251
|
+
"maximum_weight_kg": 20,
|
|
252
|
+
"maximum_length_cm": null,
|
|
253
|
+
"maximum_height_cm": null,
|
|
254
|
+
"maximum_depth_cm": null
|
|
255
|
+
},
|
|
256
|
+
"maximum_quantity": 1,
|
|
257
|
+
"id": "ase_0000AVx4lcq3NYKYWsvw8H"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "baggage",
|
|
261
|
+
"total_currency": "GBP",
|
|
262
|
+
"total_amount": "21.68",
|
|
263
|
+
"segment_ids": ["seg_0000AVx4lUClTk9LkiURma"],
|
|
264
|
+
"passenger_ids": ["pas_0000AVx4lOnPaZtmydad4S"],
|
|
265
|
+
"metadata": {
|
|
266
|
+
"type": "checked",
|
|
267
|
+
"maximum_weight_kg": 25,
|
|
268
|
+
"maximum_length_cm": null,
|
|
269
|
+
"maximum_height_cm": null,
|
|
270
|
+
"maximum_depth_cm": null
|
|
271
|
+
},
|
|
272
|
+
"maximum_quantity": 1,
|
|
273
|
+
"id": "ase_0000AVx4lcq3NYKYWsvw8I"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"type": "baggage",
|
|
277
|
+
"total_currency": "GBP",
|
|
278
|
+
"total_amount": "32.08",
|
|
279
|
+
"segment_ids": ["seg_0000AVx4lUClTk9LkiURma"],
|
|
280
|
+
"passenger_ids": ["pas_0000AVx4lOnPaZtmydad4S"],
|
|
281
|
+
"metadata": {
|
|
282
|
+
"type": "checked",
|
|
283
|
+
"maximum_weight_kg": 30,
|
|
284
|
+
"maximum_length_cm": null,
|
|
285
|
+
"maximum_height_cm": null,
|
|
286
|
+
"maximum_depth_cm": null
|
|
287
|
+
},
|
|
288
|
+
"maximum_quantity": 1,
|
|
289
|
+
"id": "ase_0000AVx4lcq3NYKYWsvw8J"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"type": "cancel_for_any_reason",
|
|
293
|
+
"total_currency": "GBP",
|
|
294
|
+
"total_amount": "6.33",
|
|
295
|
+
"segment_ids": ["seg_0000AVx4lUClTk9LkiURma"],
|
|
296
|
+
"passenger_ids": ["pas_0000AVx4lOnPaZtmydad4S"],
|
|
297
|
+
"metadata": {
|
|
298
|
+
"terms_and_conditions_url": "https://duffel.com/cfar_terms_and_conditions",
|
|
299
|
+
"refund_amount": "22.19",
|
|
300
|
+
"merchant_copy": "Cancel for any reason - Provided in partnership with Duffel\nIf you purchase this product we can refund up to 75% of your base fare if you cancel 24 hours before your first scheduled departure. To cancel, please contact us using the details in your email confirmation.\n\nNote this is not insurance and may be purchased in addition to your travel insurance. See the CFAR terms and conditions here: https://duffel.com/cfar_terms_and_conditions.\n"
|
|
301
|
+
},
|
|
302
|
+
"maximum_quantity": 1,
|
|
303
|
+
"id": "cfa_0000AVx4lcvN3maGnNQBQ8"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"allowed_passenger_identity_document_types": []
|
|
307
|
+
}
|