Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Pindora client to support seasonal booking and reservation series #1502

Open
wants to merge 2 commits into
base: refactor-reservations-api
Choose a base branch
from

Conversation

matti-lamppu
Copy link
Collaborator

🛠️ Changelog

  • Updates the Pindora client to support seasonal bookings and reservation series

🧪 Test plan

  • Automated tests

🚧 Dependencies

  • None

🎫 Tickets

  • None

@matti-lamppu matti-lamppu added the improvement Improves an existing feature label Jan 22, 2025
@matti-lamppu matti-lamppu self-assigned this Jan 22, 2025
@matti-lamppu matti-lamppu marked this pull request as ready for review January 22, 2025 12:34
@matti-lamppu matti-lamppu requested review from ranta and vergama January 22, 2025 12:34
Copy link

@vergama vergama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Series and seasonal creation and (more importantly) update should be limited to only their CONFIRMED reservations.



class PindoraReservationSeriesCreateData(TypedDict):
reservation_serie_id: str # uuid
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

serie

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct according to Pindora's API. I've asked them to change it since we don't use serie as the singular form of series.

tilavarauspalvelu/integrations/keyless_entry/client.py Outdated Show resolved Hide resolved
tilavarauspalvelu/integrations/keyless_entry/client.py Outdated Show resolved Hide resolved
@matti-lamppu matti-lamppu force-pushed the refactor-reservations-api branch from 28ff058 to 8aea484 Compare January 23, 2025 06:40
@matti-lamppu matti-lamppu force-pushed the update-pindora-client branch from b777f70 to 54223cf Compare January 23, 2025 06:40
@matti-lamppu matti-lamppu requested review from vergama and ranta January 23, 2025 07:26
- Only account for CONFIRMED reservations
- Add PindoraClientError to differentiate non-API errors
- Use `local_iso_format` to format datetimes
- Fix a couple of typos
@matti-lamppu matti-lamppu force-pushed the update-pindora-client branch from 98d9e86 to d0417b6 Compare January 23, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants