Purchases
Purchases are the core transactional object in the system. A purchase is linked to a specific user (customer). A purchase will have line items which represent the items being bought. Line items have different types, for example “booking”, “product”, “gift card”. A purchase also has “payments”. For a purchase to be “paid” its payments must be equal to the total of its line items.
Line Item Types
There are a few different types of line items that can be added to purchases. These are the main 4 you will interact with:
- Product
- Bay Booking
- Course Booking
- Top Up/Gift Card