Feat/SW-1281 ancillaries add flow
* feat(SW-1546): update design
* feat(SW-1546): show points only if logged in
* feat(SW-1546): always show points
* feat(SW-1281): ancillary add flow initial
* feat(SW-1546): add api call
* feat(SW-1281): refactor naming and break out components
* feat(SW-1281): handle back button
* feat(SW-1281): make mobile cards clickable
* feat(SW-1281): refactor spread ancillaries
* feat(SW-1281): add deliverytimes
* feat(SW-1281): rebase master
* feat(SW-1281): add design for logged in or not
* feat(SW-1281): add design
* feat(SW-1281): add mobile design
* feat(SW-1281): fix carousel
* feat(SW-1281): show deliverytime only if ancillary has not been added
* feat(SW-1281): add design
* feat(SW-1281): add translations
* feat(SW-1281): add translations
* feat(SW-1281): add translations
* feat(SW-1281): base dates on check in date only
* feat(SW-1281): fix show correct toast when no valid data
* feat(SW-1281): hande logic if deliverytime is not required
* feat(SW-1281): fix max width for mobile
* feat(SW-1281): refactor after pr comment
Approved-by: Niclas Edenvin
Approved-by: Linus Flood
Fix: Use session.token.access_token if session exists in booking confirmation, else use serviceToken
* Fix: Added service token to safeProtectedProcedure
* fix: use of safeProtectedServiceProcedure
Approved-by: Michael Zetterberg
Feat/SW-1546 list ancillaries my stay
* feat(SW-1546): foundation for listing ancillaries
* feat(SW-1546): foundation for listing ancillaries
* feat(SW-1546): refactor type
* feat(SW-1546): fix date format
* feat(SW-1546): refactor usestate
* feat(SW-1546): refactor typing
* feat(SW-1546): refactor types
* feat(SW-1546): responsive width on modal
* feat(SW-1546): update design
* feat(SW-1546): rebase master
* feat(SW-1546): show points only if logged in
* feat(SW-1546): always show points
* feat(SW-1546): small fix
* feat(SW-1546): remove spread object
* feat(SW-1546): fix import order
Approved-by: Simon.Emanuelsson
feat: initial display of linkedReservations on confirmation page
* feat: initial display of linkedReservations on confirmation page
* refactor: move notFound
Approved-by: Tobias Johansson
fix(SW-1640): adjust linkedReservationsSchema to align with api response
* fix(SW-1640): adjust linkedReservationsSchema to align with api response
Approved-by: Michael Zetterberg
Approved-by: Simon.Emanuelsson
feat(SW-1551): Update schema for booking
* feat(SW-1551): Update schema for booking
* feat(SW-1551): Non breaking changes
Approved-by: Michael Zetterberg
BREAKING CHANGE: should be released to prod together with commit: 999aa376fb and requires Booking API to be released
fix(SW-1342)!: update booking schema to allow nullable and optional fields for confirmationNumber and description
* fix!: update booking schema to allow nullable and optional fields for confirmationNumber and description
Approved-by: Arvid Norlin
fix: update booking status schema and affected code
* fix: update booking api schema and affected code
* fix: update meta prop in booking response schema
Approved-by: Arvid Norlin
Feat/SW-755 price change non happy
* fix(SW-755): dont show field error if checkbox has no children
* feat(SW-755): Price change route + dialog WIP
* fix(SW-755): minor refactoring
* fix(SW-755): added logging to price change route
* fix(SW-755): remove redundant search param logic
* fix(SW-755): moved enum cast to zod instead
* fix(SW-755): move prop type to types folder
* fix(SW-755): Added suspense to Payment and refactored payment options hook
* fix(SW-755): seperated terms and conditions copy from the checkbox label
* fix(SW-755): add currency format and fixed wrong translation
* fix(SW-755): change from undefined to null
* fix(SW-755): added extra type safety to payment options
Approved-by: Christian Andolf
Approved-by: Simon.Emanuelsson
Feat/SW-618 payment non happy path
* feat(SW-618): filter out expired saved cards
* feat(SW-618): Added payment error codes and way of showing messages based on code
* feat(SW-618): show error message if max retries has been reached and remove search param after showing toast
* fix(SW-618): move fallback error codes
* fix(SW-618): remove ref from stopping useEffect to run twice
* fix(SW-618): refactored logic for toast message and minor fixes
* fix(SW-618): remove error message enum due to static analysis problems
Approved-by: Christian Andolf
Approved-by: Arvid Norlin
This implements the actual call to the API to create a booking. That’s the only thing it does, it doesn’t handle the response in any way.
This PR is just to get it there and the new booking sub team will handle it further, with payment etc.
Approved-by: Michael Zetterberg
Approved-by: Fredrik Thorsson
Approved-by: Simon.Emanuelsson