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
Implement API call to link SAS account
* Add endpoint to actually link SAS account linking
* add logging of error
* Refactor tocDate to getCurrentDateWithoutTime
Approved-by: Joakim Jäderberg
Merged in feat/sw-397-alternative-hotels (pull request #1211)
Feat/sw 397 alternative hotels
* fix(SW-397): create alternative hotels page
* update types
* Adapt to new changes for fetching data
* Make bookingcode optional
* Code review fixes
Approved-by: Simon.Emanuelsson
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
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
Feat/SW-104 add card
* feat: add api endpoints for adding and removing credit card
* feat(SW-104): Added Sonner toast lib
* feat(SW-104): Add route handlers for add card flow
* feat(SW-104): Added link to route handler and trigger toast when query params from callback is set
* feat(SW-104): Added translations for add card success toast
* feat(SW-104): Refactored to use client request for initiate save card
* fix(SW-104): Return proper status codes when initiating save card fails
* fix(SW-104): remove delete card endpoint because it was added in SW-245
* fix(SW-104): remove console.log
* fix(SW-104): Use api.post for save card request
* fix(SW-104): move function declaration above export
* fix(SW-104): handle response of save card and use Lang enum
* fix(SW-104): added comment for why setTimeout is needed for toast and also removed lang prop
* fix(SW-104): added type for AddCreditCardButton props
* feat: add toasts
* fix(SW-104): start using toasts from ToastHandler and fix problem with duplicate toasts
* fix(SW-104): remove unnecessary wrapping div
Approved-by: Michael Zetterberg