Skip to main content

Cart

The Cart service manages shopping cart functionality for the SureInk platform, handling product selection, quantity management, and the transition from browsing to order creation.

Functional Overview

  • Cart Management: Create, update, and manage shopping cart items
  • Product Selection: Add products and product plans to carts
  • Quantity Management: Adjust quantities and pricing calculations
  • Order Transition: Convert carts to orders when ready to purchase

Major Code Modules

  • Cart Entity: Core cart data model with items and metadata
  • CartItem Entity: Individual product entries within a cart
  • CartService: Business logic for cart operations
  • Cart Controller: REST API endpoints for cart management

Linkages and References

  • Products: References product catalog for pricing and availability
  • Orders: Carts are converted to orders during checkout
  • Customers: Each cart is associated with a customer or session
  • Pricing: Integrates with pricing engine for totals and discounts

Documentation