Skip to content

Conversation

@kubapoke
Copy link
Member

This pull request contains implementation of the shopping cart for buying new tickets. This is a huge PR, so I'll give a brief description of what it contains and what remains to be added.
The PR contains:

  • Implementation of the shopping cart class for buying tickets.
  • The full functionality of the cart, supported by API endpoints (adding tickets to cart, removing them, retrieving items in cart, calculating due amount, and finally - checking out).
  • Adding new tickets to the database via checkout.
  • A dynamic reservation counter maintained in Redis - counts tickets in carts and is synced manually every few minutes by a background service.

Note that for the functionality to work you need to connect to both Redis and the Payment gateway. One new migration has been also added.

The functionality that needs to be added to the shopping cart:

  • Buying tickets resold by other users.
  • Implement the ability to set seats/name on ticket parameters for new tickets.
  • The unit tests are not present for now, I will try to add them ASAP.

kubapoke added 30 commits April 27, 2025 00:20
# Conflicts:
#	TickAPI/TickAPI/Program.cs
# Conflicts:
#	TickAPI/TickAPI/Program.cs
# Conflicts:
#	TickAPI/TickAPI/Program.cs
@kubapoke kubapoke requested review from kTrzcinskii and staszkiet May 23, 2025 21:35
@kubapoke kubapoke linked an issue May 23, 2025 that may be closed by this pull request
Copy link
Member

@kTrzcinskii kTrzcinskii left a comment

Choose a reason for hiding this comment

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

Great work 🥳 and thanks for fixing ToObjectResult

@kTrzcinskii kTrzcinskii merged commit fa1dd72 into develop May 25, 2025
1 check passed
@kTrzcinskii kTrzcinskii deleted the feat/shopping-cart branch May 25, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup cart

3 participants