@duffel/components 3.1.3 → 3.1.4

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.
Files changed (330) hide show
  1. package/components/DuffelAncillaries/Card.d.ts +14 -0
  2. package/components/DuffelAncillaries/Counter.d.ts +10 -0
  3. package/components/DuffelAncillaries/DuffelAncillaries.d.ts +3 -0
  4. package/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +12 -0
  5. package/components/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +11 -0
  6. package/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +13 -0
  7. package/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +11 -0
  8. package/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +11 -0
  9. package/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +13 -0
  10. package/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +14 -0
  11. package/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +9 -0
  12. package/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +7 -0
  13. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +10 -0
  14. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +11 -0
  15. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +7 -0
  16. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.d.ts +4 -0
  17. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +11 -0
  18. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.d.ts +2 -0
  19. package/components/DuffelAncillaries/seats/Amenity.d.ts +6 -0
  20. package/components/DuffelAncillaries/seats/DeckSelect.d.ts +15 -0
  21. package/components/DuffelAncillaries/seats/Element.d.ts +15 -0
  22. package/components/DuffelAncillaries/seats/EmptyElement.d.ts +2 -0
  23. package/components/DuffelAncillaries/seats/ExitElement.d.ts +6 -0
  24. package/components/DuffelAncillaries/seats/Legend.d.ts +12 -0
  25. package/components/DuffelAncillaries/seats/Row.d.ts +13 -0
  26. package/components/DuffelAncillaries/seats/RowSection.d.ts +17 -0
  27. package/components/DuffelAncillaries/seats/SeatElement.d.ts +13 -0
  28. package/components/DuffelAncillaries/seats/SeatInfo.d.ts +7 -0
  29. package/components/DuffelAncillaries/seats/SeatMap.d.ts +12 -0
  30. package/components/DuffelAncillaries/seats/SeatMapUnavailable.d.ts +2 -0
  31. package/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +13 -0
  32. package/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +13 -0
  33. package/components/DuffelAncillaries/seats/SeatSelectionModalBody.d.ts +4 -0
  34. package/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +16 -0
  35. package/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +10 -0
  36. package/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +5 -0
  37. package/components/DuffelPayments/DuffelPayments.d.ts +11 -0
  38. package/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +13 -0
  39. package/components/PlacesLookup/PlacesLookup.d.ts +20 -0
  40. package/components/shared/AnimatedLoaderEllipsis.d.ts +2 -0
  41. package/components/shared/Button.d.ts +23 -0
  42. package/components/shared/ErrorBoundary.d.ts +13 -0
  43. package/components/shared/FetchOfferErrorState.d.ts +5 -0
  44. package/components/shared/Icon.d.ts +46 -0
  45. package/components/shared/IconButton.d.ts +16 -0
  46. package/components/shared/Modal.d.ts +11 -0
  47. package/components/shared/NonIdealState.d.ts +4 -0
  48. package/components/shared/Stamp.d.ts +7 -0
  49. package/components/shared/Tabs.d.ts +16 -0
  50. package/custom-elements.d.ts +6 -0
  51. package/custom-elements.js +40 -0
  52. package/custom-elements.js.map +7 -0
  53. package/index.js +40 -0
  54. package/index.js.map +7 -0
  55. package/lib/captureErrorInSentry.d.ts +1 -0
  56. package/lib/compileCreateOrderPayload.d.ts +14 -0
  57. package/lib/createPriceFormatters.d.ts +12 -0
  58. package/lib/fetchFromDuffelAPI.d.ts +8 -0
  59. package/lib/fetchFromFixtures.d.ts +4 -0
  60. package/lib/formatAvailableServices.d.ts +12 -0
  61. package/lib/formatDate.d.ts +2 -0
  62. package/lib/formatSeatMaps.d.ts +4 -0
  63. package/lib/getBaggageServiceDescription.d.ts +2 -0
  64. package/lib/getCabinsForSegmentAndDeck.d.ts +2 -0
  65. package/lib/getCurrencyForSeatMaps.d.ts +10 -0
  66. package/lib/getCurrencyForServices.d.ts +11 -0
  67. package/lib/getFirstSeatElementMatchingCriteria.d.ts +3 -0
  68. package/lib/getPassengerBySegmentList.d.ts +6 -0
  69. package/lib/getPassengerInitials.d.ts +1 -0
  70. package/lib/getPassengerMapById.d.ts +3 -0
  71. package/lib/getPassengerName.d.ts +3 -0
  72. package/lib/getRowNumber.d.ts +2 -0
  73. package/lib/getSegmentList.d.ts +2 -0
  74. package/lib/getServicePriceMapById.d.ts +3 -0
  75. package/lib/getSymbols.d.ts +2 -0
  76. package/lib/getTotalAmountForServices.d.ts +6 -0
  77. package/lib/getTotalQuantity.d.ts +2 -0
  78. package/lib/hasHighLuminance.d.ts +1 -0
  79. package/lib/hasService.d.ts +2 -0
  80. package/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +3 -0
  81. package/lib/hasWings.d.ts +2 -0
  82. package/lib/isBaggageService.d.ts +2 -0
  83. package/lib/isCancelForAnyReasonService.d.ts +2 -0
  84. package/lib/isFixtureOfferId.d.ts +2 -0
  85. package/lib/isPayloadComplete.d.ts +2 -0
  86. package/lib/isSeatElement.d.ts +2 -0
  87. package/lib/logging.d.ts +46 -0
  88. package/lib/moneyStringFormatter.d.ts +8 -0
  89. package/lib/offerIsExpired.d.ts +2 -0
  90. package/lib/retrieveOffer.d.ts +2 -0
  91. package/lib/retrieveOfferFromDuffelAPI.d.ts +1 -0
  92. package/lib/retrieveSeatMaps.d.ts +2 -0
  93. package/lib/retrieveSeatMapsFromDuffelAPI.d.ts +1 -0
  94. package/lib/setBodyScrollability.d.ts +1 -0
  95. package/lib/validateProps.d.ts +7 -0
  96. package/lib/withPlural.d.ts +1 -0
  97. package/package.json +84 -134
  98. package/tsconfig.tsbuildinfo +1 -0
  99. package/types/Aircraft.d.ts +14 -0
  100. package/types/Airline.d.ts +14 -0
  101. package/types/Airport.d.ts +44 -0
  102. package/types/City.d.ts +18 -0
  103. package/types/CreateOrderPayload.d.ts +72 -0
  104. package/types/CurrencyConversion.d.ts +10 -0
  105. package/types/DuffelAncillariesProps.d.ts +70 -0
  106. package/types/Offer.d.ts +711 -0
  107. package/types/Order.d.ts +8 -0
  108. package/types/Place.d.ts +8 -0
  109. package/types/SeatMap.d.ts +190 -0
  110. package/.circleci/config.yml +0 -67
  111. package/.eslintrc.js +0 -47
  112. package/.github/CODEOWNERS +0 -4
  113. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -29
  114. package/.github/renovate.json +0 -12
  115. package/.github/workflows/autoapprove.yml +0 -18
  116. package/.github/workflows/release.yml +0 -89
  117. package/.husky/post-commit +0 -4
  118. package/.husky/pre-commit +0 -4
  119. package/.nvmrc +0 -1
  120. package/.prettierignore +0 -2
  121. package/.storybook/Storyshots.test.js +0 -3
  122. package/.storybook/__snapshots__/Storyshots.test.js.snap +0 -67984
  123. package/.storybook/main.ts +0 -33
  124. package/.storybook/preview.tsx +0 -28
  125. package/.tool-versions +0 -1
  126. package/CONTRIBUTING.md +0 -83
  127. package/README.md +0 -68
  128. package/__mocks__/styleMock.js +0 -6
  129. package/babel.config.js +0 -20
  130. package/commitlint.config.js +0 -4
  131. package/config/esbuild.base.config.js +0 -18
  132. package/config/esbuild.cdn.config.js +0 -51
  133. package/config/esbuild.dev.config.js +0 -46
  134. package/config/esbuild.react.config.js +0 -42
  135. package/data/airports.csv +0 -9084
  136. package/data/cities.csv +0 -256
  137. package/jest.config.ts +0 -14
  138. package/react-dist/index.js +0 -37
  139. package/scripts/generate-fixture.ts +0 -200
  140. package/scripts/setup-suggestion-data.ts +0 -100
  141. package/scripts/upload-to-cdn.sh +0 -34
  142. package/scripts.tsconfig.json +0 -11
  143. package/src/components/DuffelAncillaries/Card.tsx +0 -126
  144. package/src/components/DuffelAncillaries/Counter.tsx +0 -40
  145. package/src/components/DuffelAncillaries/DuffelAncillaries.tsx +0 -350
  146. package/src/components/DuffelAncillaries/DuffelAncillariesCustomElement.tsx +0 -124
  147. package/src/components/DuffelAncillaries/bags/BaggageSelectionCard.tsx +0 -101
  148. package/src/components/DuffelAncillaries/bags/BaggageSelectionController.tsx +0 -88
  149. package/src/components/DuffelAncillaries/bags/BaggageSelectionModal.tsx +0 -81
  150. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalBody.tsx +0 -60
  151. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.tsx +0 -122
  152. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.tsx +0 -88
  153. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.tsx +0 -82
  154. package/src/components/DuffelAncillaries/bags/IncludedBaggageBanner.tsx +0 -51
  155. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.tsx +0 -90
  156. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.tsx +0 -63
  157. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.tsx +0 -56
  158. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.tsx +0 -11
  159. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.tsx +0 -74
  160. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.tsx +0 -9
  161. package/src/components/DuffelAncillaries/seats/Amenity.tsx +0 -21
  162. package/src/components/DuffelAncillaries/seats/DeckSelect.tsx +0 -27
  163. package/src/components/DuffelAncillaries/seats/Element.tsx +0 -52
  164. package/src/components/DuffelAncillaries/seats/EmptyElement.tsx +0 -5
  165. package/src/components/DuffelAncillaries/seats/ExitElement.tsx +0 -17
  166. package/src/components/DuffelAncillaries/seats/Legend.tsx +0 -60
  167. package/src/components/DuffelAncillaries/seats/Row.tsx +0 -47
  168. package/src/components/DuffelAncillaries/seats/RowSection.tsx +0 -78
  169. package/src/components/DuffelAncillaries/seats/SeatElement.tsx +0 -120
  170. package/src/components/DuffelAncillaries/seats/SeatInfo.tsx +0 -32
  171. package/src/components/DuffelAncillaries/seats/SeatMap.tsx +0 -85
  172. package/src/components/DuffelAncillaries/seats/SeatMapUnavailable.tsx +0 -21
  173. package/src/components/DuffelAncillaries/seats/SeatSelectionCard.tsx +0 -103
  174. package/src/components/DuffelAncillaries/seats/SeatSelectionModal.tsx +0 -142
  175. package/src/components/DuffelAncillaries/seats/SeatSelectionModalBody.tsx +0 -13
  176. package/src/components/DuffelAncillaries/seats/SeatSelectionModalFooter.tsx +0 -89
  177. package/src/components/DuffelAncillaries/seats/SeatSelectionModalHeader.tsx +0 -97
  178. package/src/components/DuffelAncillaries/seats/SeatUnavailable.tsx +0 -14
  179. package/src/components/DuffelPayments/DuffelPayments.tsx +0 -224
  180. package/src/components/DuffelPayments/DuffelPaymentsCustomElement.tsx +0 -130
  181. package/src/components/PlacesLookup/PlacesLookup.tsx +0 -123
  182. package/src/components/shared/AnimatedLoaderEllipsis.tsx +0 -5
  183. package/src/components/shared/Button.tsx +0 -63
  184. package/src/components/shared/ErrorBoundary.tsx +0 -54
  185. package/src/components/shared/FetchOfferErrorState.tsx +0 -35
  186. package/src/components/shared/Icon.tsx +0 -151
  187. package/src/components/shared/IconButton.tsx +0 -42
  188. package/src/components/shared/Modal.tsx +0 -40
  189. package/src/components/shared/NonIdealState.tsx +0 -28
  190. package/src/components/shared/Stamp.tsx +0 -29
  191. package/src/components/shared/Tabs.tsx +0 -36
  192. package/src/custom-elements.ts +0 -13
  193. package/src/examples/client-side/README.md +0 -30
  194. package/src/examples/client-side/index.html +0 -57
  195. package/src/examples/full-stack/README.md +0 -34
  196. package/src/examples/full-stack/index.html +0 -48
  197. package/src/examples/full-stack/server.mjs +0 -158
  198. package/src/examples/just-typescript/README.md +0 -37
  199. package/src/examples/just-typescript/package.json +0 -16
  200. package/src/examples/just-typescript/src/index.html +0 -23
  201. package/src/examples/just-typescript/src/index.ts +0 -36
  202. package/src/examples/next/README.md +0 -28
  203. package/src/examples/next/next-env.d.ts +0 -5
  204. package/src/examples/next/next.config.js +0 -4
  205. package/src/examples/next/package.json +0 -24
  206. package/src/examples/next/src/app/DuffelComponents.tsx +0 -40
  207. package/src/examples/next/src/app/layout.tsx +0 -18
  208. package/src/examples/next/src/app/page.tsx +0 -9
  209. package/src/examples/next/tsconfig.json +0 -27
  210. package/src/examples/payments-custom-element/README.md +0 -17
  211. package/src/examples/payments-custom-element/index.html +0 -43
  212. package/src/examples/payments-just-typescript/README.md +0 -37
  213. package/src/examples/payments-just-typescript/package.json +0 -16
  214. package/src/examples/payments-just-typescript/src/index.html +0 -23
  215. package/src/examples/payments-just-typescript/src/index.ts +0 -18
  216. package/src/examples/react-app/README.md +0 -37
  217. package/src/examples/react-app/package.json +0 -20
  218. package/src/examples/react-app/src/index.html +0 -19
  219. package/src/examples/react-app/src/index.tsx +0 -48
  220. package/src/fixtures/offers/off_0000AUde3KwTztSRK1cznH.json +0 -497
  221. package/src/fixtures/offers/off_0000AVx4lUFFKW8PsPeQeQ.json +0 -307
  222. package/src/fixtures/offers/off_1.json +0 -488
  223. package/src/fixtures/passengers/mock_passengers.ts +0 -26
  224. package/src/fixtures/seat-maps/off_0000AUde3KwTztSRK1cznH.json +0 -6852
  225. package/src/fixtures/seat-maps/off_0000AVx4lUFFKW8PsPeQeQ.json +0 -1
  226. package/src/fixtures/seat-maps/off_1.json +0 -6852
  227. package/src/lib/captureErrorInSentry.ts +0 -42
  228. package/src/lib/compileCreateOrderPayload.ts +0 -63
  229. package/src/lib/createPriceFormatters.ts +0 -73
  230. package/src/lib/fetchFromDuffelAPI.ts +0 -54
  231. package/src/lib/fetchFromFixtures.ts +0 -18
  232. package/src/lib/formatAvailableServices.ts +0 -91
  233. package/src/lib/formatDate.ts +0 -20
  234. package/src/lib/formatSeatMaps.ts +0 -81
  235. package/src/lib/getBaggageServiceDescription.ts +0 -39
  236. package/src/lib/getCabinsForSegmentAndDeck.ts +0 -4
  237. package/src/lib/getCurrencyForSeatMaps.ts +0 -22
  238. package/src/lib/getCurrencyForServices.ts +0 -24
  239. package/src/lib/getFirstSeatElementMatchingCriteria.ts +0 -22
  240. package/src/lib/getPassengerBySegmentList.ts +0 -10
  241. package/src/lib/getPassengerInitials.ts +0 -6
  242. package/src/lib/getPassengerMapById.ts +0 -17
  243. package/src/lib/getPassengerName.ts +0 -41
  244. package/src/lib/getRowNumber.ts +0 -16
  245. package/src/lib/getSegmentList.ts +0 -7
  246. package/src/lib/getServicePriceMapById.ts +0 -20
  247. package/src/lib/getSymbols.ts +0 -22
  248. package/src/lib/getTotalAmountForServices.ts +0 -72
  249. package/src/lib/getTotalQuantity.ts +0 -5
  250. package/src/lib/hasHighLuminance.ts +0 -9
  251. package/src/lib/hasService.ts +0 -24
  252. package/src/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.ts +0 -35
  253. package/src/lib/hasWings.ts +0 -8
  254. package/src/lib/isBaggageService.ts +0 -8
  255. package/src/lib/isCancelForAnyReasonService.ts +0 -9
  256. package/src/lib/isFixtureOfferId.ts +0 -4
  257. package/src/lib/isPayloadComplete.ts +0 -11
  258. package/src/lib/isSeatElement.ts +0 -10
  259. package/src/lib/logging.ts +0 -120
  260. package/src/lib/moneyStringFormatter.ts +0 -34
  261. package/src/lib/offerIsExpired.ts +0 -5
  262. package/src/lib/retrieveOffer.ts +0 -56
  263. package/src/lib/retrieveOfferFromDuffelAPI.ts +0 -13
  264. package/src/lib/retrieveSeatMaps.ts +0 -55
  265. package/src/lib/retrieveSeatMapsFromDuffelAPI.ts +0 -13
  266. package/src/lib/setBodyScrollability.ts +0 -7
  267. package/src/lib/validateProps.ts +0 -37
  268. package/src/lib/withPlural.ts +0 -8
  269. package/src/stories/BaggageSelectionModalHeader.stories.tsx +0 -21
  270. package/src/stories/Button.stories.tsx +0 -91
  271. package/src/stories/DuffelAncillaries.stories.tsx +0 -166
  272. package/src/stories/DuffelPayments.stories.tsx +0 -34
  273. package/src/stories/Icon.stories.tsx +0 -35
  274. package/src/stories/IconButton.stories.tsx +0 -25
  275. package/src/stories/PlacesLookup.stories.tsx +0 -22
  276. package/src/styles/colors.css +0 -22
  277. package/src/styles/components/Amenity.css +0 -23
  278. package/src/styles/components/BaggageDisplay.css +0 -25
  279. package/src/styles/components/Button.css +0 -169
  280. package/src/styles/components/Card.css +0 -52
  281. package/src/styles/components/CfarSelectionModal.css +0 -34
  282. package/src/styles/components/Counter.css +0 -18
  283. package/src/styles/components/DuffelPayments.css +0 -42
  284. package/src/styles/components/IconButton.css +0 -63
  285. package/src/styles/components/Legend.css +0 -62
  286. package/src/styles/components/Loader.css +0 -37
  287. package/src/styles/components/LoadingState.css +0 -87
  288. package/src/styles/components/Modal.css +0 -84
  289. package/src/styles/components/PassengerSelect.css +0 -99
  290. package/src/styles/components/PassengersLayout.css +0 -90
  291. package/src/styles/components/PlacesLookup.css +0 -36
  292. package/src/styles/components/Row.css +0 -70
  293. package/src/styles/components/Seat.css +0 -59
  294. package/src/styles/components/SeatInfo.css +0 -61
  295. package/src/styles/components/SeatMap.css +0 -24
  296. package/src/styles/components/SeatSelect.css +0 -92
  297. package/src/styles/components/Segment.css +0 -17
  298. package/src/styles/components/SelectionSegment.css +0 -10
  299. package/src/styles/components/Summary.css +0 -70
  300. package/src/styles/components/Tabs.css +0 -52
  301. package/src/styles/flex.css +0 -5
  302. package/src/styles/font-families.css +0 -47
  303. package/src/styles/global.css +0 -52
  304. package/src/styles/margin.css +0 -3
  305. package/src/styles/spacing.css +0 -18
  306. package/src/styles/transitions.css +0 -3
  307. package/src/styles/typography.css +0 -13
  308. package/src/tests/components/DuffelAncillaries.test.tsx +0 -342
  309. package/src/tests/lib/createPriceFormatters.test.tsx +0 -152
  310. package/src/tests/lib/formatAvailableServices.test.tsx +0 -79
  311. package/src/tests/lib/formatSeatMaps.test.tsx +0 -49
  312. package/src/tests/lib/getCurrencyForServices.test.tsx +0 -44
  313. package/src/tests/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.test.ts +0 -86
  314. package/src/tests/lib/logging.test.tsx +0 -32
  315. package/src/tests/lib/moneyStringFormatter.test.tsx +0 -12
  316. package/src/tests/lib/validateProps.test.tsx +0 -57
  317. package/src/types/Aircraft.ts +0 -16
  318. package/src/types/Airline.ts +0 -16
  319. package/src/types/Airport.ts +0 -54
  320. package/src/types/City.ts +0 -21
  321. package/src/types/CreateOrderPayload.ts +0 -99
  322. package/src/types/CurrencyConversion.ts +0 -10
  323. package/src/types/DuffelAncillariesProps.ts +0 -108
  324. package/src/types/Offer.ts +0 -851
  325. package/src/types/Order.ts +0 -6
  326. package/src/types/Place.ts +0 -6
  327. package/src/types/SeatMap.ts +0 -231
  328. package/tsconfig.json +0 -52
  329. /package/{src/index.ts → index.d.ts} +0 -0
  330. /package/{src/types/index.ts → types/index.d.ts} +0 -0
@@ -1,488 +0,0 @@
1
- {
2
- "_description": "This fixture was generated by scripts/generate-fixture.ts. It includes an offer with 2 passengers and 2 slices: JFK,LAX ⇢ LAX,JFK",
3
- "updated_at": "2023-04-14T09:28:21.569186Z",
4
- "total_emissions_kg": "806",
5
- "total_currency": "GBP",
6
- "total_amount": "652.64",
7
- "tax_currency": "GBP",
8
- "tax_amount": "99.56",
9
- "slices": [
10
- {
11
- "segments": [
12
- {
13
- "stops": [],
14
- "passengers": [
15
- {
16
- "passenger_id": "pas_0000AUde3KY1SptM6ABSfT",
17
- "fare_basis_code": "Y20LGTN2",
18
- "cabin_class_marketing_name": "Economy",
19
- "cabin_class": "economy",
20
- "baggages": [
21
- {
22
- "type": "checked",
23
- "quantity": 1
24
- },
25
- {
26
- "type": "carry_on",
27
- "quantity": 1
28
- }
29
- ]
30
- },
31
- {
32
- "passenger_id": "pas_0000AUde3KY1SptM6ABSfU",
33
- "fare_basis_code": "Y20LGTN2",
34
- "cabin_class_marketing_name": "Economy",
35
- "cabin_class": "economy",
36
- "baggages": []
37
- }
38
- ],
39
- "origin_terminal": "2",
40
- "origin": {
41
- "type": "airport",
42
- "time_zone": "America/New_York",
43
- "name": "John F. Kennedy International Airport",
44
- "longitude": -73.778519,
45
- "latitude": 40.640556,
46
- "id": "arp_jfk_us",
47
- "icao_code": "KJFK",
48
- "iata_country_code": "US",
49
- "iata_code": "JFK",
50
- "iata_city_code": "NYC",
51
- "city_name": "New York",
52
- "city": {
53
- "type": "city",
54
- "time_zone": null,
55
- "name": "New York",
56
- "longitude": null,
57
- "latitude": null,
58
- "id": "cit_nyc_us",
59
- "icao_code": null,
60
- "iata_country_code": "US",
61
- "iata_code": "NYC",
62
- "iata_city_code": "NYC",
63
- "city_name": null
64
- },
65
- "airports": null
66
- },
67
- "operating_carrier_flight_number": "9902",
68
- "operating_carrier": {
69
- "name": "Duffel Airways",
70
- "logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg",
71
- "logo_lockup_url": null,
72
- "id": "arl_00009VME7D6ivUu8dn35WK",
73
- "iata_code": "ZZ",
74
- "conditions_of_carriage_url": null
75
- },
76
- "marketing_carrier_flight_number": "9902",
77
- "marketing_carrier": {
78
- "name": "Duffel Airways",
79
- "logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg",
80
- "logo_lockup_url": null,
81
- "id": "arl_00009VME7D6ivUu8dn35WK",
82
- "iata_code": "ZZ",
83
- "conditions_of_carriage_url": null
84
- },
85
- "id": "seg_0000AUde3Kw81DArIvSiF0",
86
- "duration": "PT6H1M",
87
- "distance": "4075.389138263169",
88
- "destination_terminal": "1",
89
- "destination": {
90
- "type": "airport",
91
- "time_zone": "America/Los_Angeles",
92
- "name": "Los Angeles International Airport",
93
- "longitude": -118.408263,
94
- "latitude": 33.942045,
95
- "id": "arp_lax_us",
96
- "icao_code": "KLAX",
97
- "iata_country_code": "US",
98
- "iata_code": "LAX",
99
- "iata_city_code": "LAX",
100
- "city_name": "Los Angeles",
101
- "city": {
102
- "type": "city",
103
- "time_zone": null,
104
- "name": "Los Angeles",
105
- "longitude": null,
106
- "latitude": null,
107
- "id": "cit_lax_us",
108
- "icao_code": null,
109
- "iata_country_code": "US",
110
- "iata_code": "LAX",
111
- "iata_city_code": "LAX",
112
- "city_name": null
113
- },
114
- "airports": null
115
- },
116
- "departing_at": "2023-04-21T15:29:00",
117
- "arriving_at": "2023-04-21T18:30:00",
118
- "aircraft": {
119
- "name": "Boeing 777-300",
120
- "id": "arc_00009VMF8AhXSSRnQDI6HE",
121
- "iata_code": "773"
122
- }
123
- }
124
- ],
125
- "origin_type": "airport",
126
- "origin": {
127
- "type": "airport",
128
- "time_zone": "America/New_York",
129
- "name": "John F. Kennedy International Airport",
130
- "longitude": -73.778519,
131
- "latitude": 40.640556,
132
- "id": "arp_jfk_us",
133
- "icao_code": "KJFK",
134
- "iata_country_code": "US",
135
- "iata_code": "JFK",
136
- "iata_city_code": "NYC",
137
- "city_name": "New York",
138
- "city": {
139
- "type": "city",
140
- "time_zone": null,
141
- "name": "New York",
142
- "longitude": null,
143
- "latitude": null,
144
- "id": "cit_nyc_us",
145
- "icao_code": null,
146
- "iata_country_code": "US",
147
- "iata_code": "NYC",
148
- "iata_city_code": "NYC",
149
- "city_name": null
150
- },
151
- "airports": null
152
- },
153
- "id": "sli_0000AUde3KwTztSRK1cznE",
154
- "fare_brand_name": "Basic",
155
- "duration": "PT6H1M",
156
- "destination_type": "airport",
157
- "destination": {
158
- "type": "airport",
159
- "time_zone": "America/Los_Angeles",
160
- "name": "Los Angeles International Airport",
161
- "longitude": -118.408263,
162
- "latitude": 33.942045,
163
- "id": "arp_lax_us",
164
- "icao_code": "KLAX",
165
- "iata_country_code": "US",
166
- "iata_code": "LAX",
167
- "iata_city_code": "LAX",
168
- "city_name": "Los Angeles",
169
- "city": {
170
- "type": "city",
171
- "time_zone": null,
172
- "name": "Los Angeles",
173
- "longitude": null,
174
- "latitude": null,
175
- "id": "cit_lax_us",
176
- "icao_code": null,
177
- "iata_country_code": "US",
178
- "iata_code": "LAX",
179
- "iata_city_code": "LAX",
180
- "city_name": null
181
- },
182
- "airports": null
183
- },
184
- "conditions": {
185
- "change_before_departure": {
186
- "penalty_currency": null,
187
- "penalty_amount": null,
188
- "allowed": false
189
- }
190
- }
191
- },
192
- {
193
- "segments": [
194
- {
195
- "stops": [],
196
- "passengers": [
197
- {
198
- "passenger_id": "pas_0000AUde3KY1SptM6ABSfT",
199
- "fare_basis_code": "Y20LGTN2",
200
- "cabin_class_marketing_name": "Economy",
201
- "cabin_class": "economy",
202
- "baggages": [
203
- {
204
- "type": "checked",
205
- "quantity": 1
206
- },
207
- {
208
- "type": "carry_on",
209
- "quantity": 1
210
- }
211
- ]
212
- },
213
- {
214
- "passenger_id": "pas_0000AUde3KY1SptM6ABSfU",
215
- "fare_basis_code": "Y20LGTN2",
216
- "cabin_class_marketing_name": "Economy",
217
- "cabin_class": "economy",
218
- "baggages": [
219
- {
220
- "type": "checked",
221
- "quantity": 1
222
- },
223
- {
224
- "type": "carry_on",
225
- "quantity": 1
226
- }
227
- ]
228
- }
229
- ],
230
- "origin_terminal": "2",
231
- "origin": {
232
- "type": "airport",
233
- "time_zone": "America/Los_Angeles",
234
- "name": "Los Angeles International Airport",
235
- "longitude": -118.408263,
236
- "latitude": 33.942045,
237
- "id": "arp_lax_us",
238
- "icao_code": "KLAX",
239
- "iata_country_code": "US",
240
- "iata_code": "LAX",
241
- "iata_city_code": "LAX",
242
- "city_name": "Los Angeles",
243
- "city": {
244
- "type": "city",
245
- "time_zone": null,
246
- "name": "Los Angeles",
247
- "longitude": null,
248
- "latitude": null,
249
- "id": "cit_lax_us",
250
- "icao_code": null,
251
- "iata_country_code": "US",
252
- "iata_code": "LAX",
253
- "iata_city_code": "LAX",
254
- "city_name": null
255
- },
256
- "airports": null
257
- },
258
- "operating_carrier_flight_number": "9902",
259
- "operating_carrier": {
260
- "name": "Duffel Airways",
261
- "logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg",
262
- "logo_lockup_url": null,
263
- "id": "arl_00009VME7D6ivUu8dn35WK",
264
- "iata_code": "ZZ",
265
- "conditions_of_carriage_url": null
266
- },
267
- "marketing_carrier_flight_number": "9902",
268
- "marketing_carrier": {
269
- "name": "Duffel Airways",
270
- "logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg",
271
- "logo_lockup_url": null,
272
- "id": "arl_00009VME7D6ivUu8dn35WK",
273
- "iata_code": "ZZ",
274
- "conditions_of_carriage_url": null
275
- },
276
- "id": "seg_0000AUde3KwTztSRK1cznF",
277
- "duration": "PT6H1M",
278
- "distance": "4075.389138263169",
279
- "destination_terminal": "1",
280
- "destination": {
281
- "type": "airport",
282
- "time_zone": "America/New_York",
283
- "name": "John F. Kennedy International Airport",
284
- "longitude": -73.778519,
285
- "latitude": 40.640556,
286
- "id": "arp_jfk_us",
287
- "icao_code": "KJFK",
288
- "iata_country_code": "US",
289
- "iata_code": "JFK",
290
- "iata_city_code": "NYC",
291
- "city_name": "New York",
292
- "city": {
293
- "type": "city",
294
- "time_zone": null,
295
- "name": "New York",
296
- "longitude": null,
297
- "latitude": null,
298
- "id": "cit_nyc_us",
299
- "icao_code": null,
300
- "iata_country_code": "US",
301
- "iata_code": "NYC",
302
- "iata_city_code": "NYC",
303
- "city_name": null
304
- },
305
- "airports": null
306
- },
307
- "departing_at": "2023-04-28T20:54:00",
308
- "arriving_at": "2023-04-29T05:55:00",
309
- "aircraft": {
310
- "name": "Boeing 777-300",
311
- "id": "arc_00009VMF8AhXSSRnQDI6HE",
312
- "iata_code": "773"
313
- }
314
- }
315
- ],
316
- "origin_type": "airport",
317
- "origin": {
318
- "type": "airport",
319
- "time_zone": "America/Los_Angeles",
320
- "name": "Los Angeles International Airport",
321
- "longitude": -118.408263,
322
- "latitude": 33.942045,
323
- "id": "arp_lax_us",
324
- "icao_code": "KLAX",
325
- "iata_country_code": "US",
326
- "iata_code": "LAX",
327
- "iata_city_code": "LAX",
328
- "city_name": "Los Angeles",
329
- "city": {
330
- "type": "city",
331
- "time_zone": null,
332
- "name": "Los Angeles",
333
- "longitude": null,
334
- "latitude": null,
335
- "id": "cit_lax_us",
336
- "icao_code": null,
337
- "iata_country_code": "US",
338
- "iata_code": "LAX",
339
- "iata_city_code": "LAX",
340
- "city_name": null
341
- },
342
- "airports": null
343
- },
344
- "id": "sli_0000AUde3KwTztSRK1cznG",
345
- "fare_brand_name": "Basic",
346
- "duration": "PT6H1M",
347
- "destination_type": "airport",
348
- "destination": {
349
- "type": "airport",
350
- "time_zone": "America/New_York",
351
- "name": "John F. Kennedy International Airport",
352
- "longitude": -73.778519,
353
- "latitude": 40.640556,
354
- "id": "arp_jfk_us",
355
- "icao_code": "KJFK",
356
- "iata_country_code": "US",
357
- "iata_code": "JFK",
358
- "iata_city_code": "NYC",
359
- "city_name": "New York",
360
- "city": {
361
- "type": "city",
362
- "time_zone": null,
363
- "name": "New York",
364
- "longitude": null,
365
- "latitude": null,
366
- "id": "cit_nyc_us",
367
- "icao_code": null,
368
- "iata_country_code": "US",
369
- "iata_code": "NYC",
370
- "iata_city_code": "NYC",
371
- "city_name": null
372
- },
373
- "airports": null
374
- },
375
- "conditions": {
376
- "change_before_departure": {
377
- "penalty_currency": null,
378
- "penalty_amount": null,
379
- "allowed": false
380
- }
381
- }
382
- }
383
- ],
384
- "private_fares": [],
385
- "payment_requirements": {
386
- "requires_instant_payment": false,
387
- "price_guarantee_expires_at": "2023-04-16T09:28:21Z",
388
- "payment_required_by": "2023-04-17T09:28:21Z"
389
- },
390
- "passengers": [
391
- {
392
- "type": "adult",
393
- "loyalty_programme_accounts": [],
394
- "id": "pas_0000AUde3KY1SptM6ABSfT",
395
- "given_name": null,
396
- "family_name": null,
397
- "age": null
398
- },
399
- {
400
- "type": "adult",
401
- "loyalty_programme_accounts": [],
402
- "id": "pas_0000AUde3KY1SptM6ABSfU",
403
- "given_name": null,
404
- "family_name": null,
405
- "age": null
406
- }
407
- ],
408
- "passenger_identity_documents_required": false,
409
- "partial": false,
410
- "owner": {
411
- "name": "Duffel Airways",
412
- "logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg",
413
- "logo_lockup_url": null,
414
- "id": "arl_00009VME7D6ivUu8dn35WK",
415
- "iata_code": "ZZ",
416
- "conditions_of_carriage_url": null
417
- },
418
- "live_mode": false,
419
- "id": "off_1",
420
- "expires_at": "2043-04-14T09:58:21.400481Z",
421
- "created_at": "2023-04-14T09:28:21.405707Z",
422
- "conditions": {
423
- "refund_before_departure": {
424
- "penalty_currency": "GBP",
425
- "penalty_amount": "110.00",
426
- "allowed": true
427
- },
428
- "change_before_departure": {
429
- "penalty_currency": null,
430
- "penalty_amount": null,
431
- "allowed": false
432
- }
433
- },
434
- "base_currency": "GBP",
435
- "base_amount": "553.08",
436
- "available_services": [
437
- {
438
- "type": "baggage",
439
- "total_currency": "GBP",
440
- "total_amount": "20.00",
441
- "segment_ids": ["seg_0000AUde3KwTztSRK1cznF"],
442
- "passenger_ids": ["pas_0000AUde3KY1SptM6ABSfT"],
443
- "metadata": {
444
- "type": "checked",
445
- "maximum_weight_kg": 23,
446
- "maximum_length_cm": null,
447
- "maximum_height_cm": null,
448
- "maximum_depth_cm": null
449
- },
450
- "maximum_quantity": 1,
451
- "id": "ase_0000AUde3M2LtBE9WNJZYW"
452
- },
453
- {
454
- "type": "baggage",
455
- "total_currency": "GBP",
456
- "total_amount": "20.00",
457
- "segment_ids": ["seg_0000AUde3KwTztSRK1cznF"],
458
- "passenger_ids": ["pas_0000AUde3KY1SptM6ABSfU"],
459
- "metadata": {
460
- "type": "checked",
461
- "maximum_weight_kg": 23,
462
- "maximum_length_cm": null,
463
- "maximum_height_cm": null,
464
- "maximum_depth_cm": null
465
- },
466
- "maximum_quantity": 1,
467
- "id": "ase_0000AUde3M2LtBE9WNJZYZ"
468
- },
469
- {
470
- "type": "cancel_for_any_reason",
471
- "total_currency": "GBP",
472
- "total_amount": "97.45",
473
- "segment_ids": ["seg_0000AUde3KwTztSRK1cznF"],
474
- "passenger_ids": [
475
- "pas_0000AUde3KY1SptM6ABSfT",
476
- "pas_0000AUde3KY1SptM6ABSfU"
477
- ],
478
- "metadata": {
479
- "terms_and_conditions_url": "https://duffel.com/cfar_terms_and_conditions",
480
- "refund_amount": "489.48",
481
- "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"
482
- },
483
- "maximum_quantity": 1,
484
- "id": "cfa_0000AUde3MAVOrkVvf85GT"
485
- }
486
- ],
487
- "allowed_passenger_identity_document_types": []
488
- }
@@ -1,26 +0,0 @@
1
- import { CreateOrderPayload } from "../../types/CreateOrderPayload";
2
-
3
- const mockPassengers: CreateOrderPayload["passengers"] = [
4
- {
5
- id: "pas_0000AUde3KY1SptM6ABSfU",
6
- given_name: "Mae",
7
- family_name: "Jemison",
8
- gender: "F",
9
- title: "dr",
10
- born_on: "1956-10-17",
11
- email: "m.jemison@nasa.gov",
12
- phone_number: "+16177562626",
13
- },
14
- {
15
- id: "pas_0000AUde3KY1SptM6ABSfT",
16
- given_name: "Dorothy",
17
- family_name: "Green",
18
- gender: "F",
19
- title: "dr",
20
- born_on: "1942-10-17",
21
- email: "m.jemison@nasa.gov",
22
- phone_number: "+16177562626",
23
- },
24
- ];
25
-
26
- export default mockPassengers;