Class: Partners::ReservationSummaryAddOn

Inherits:
ApplicationRecord show all
Defined in:
app/models/partners/reservation_summary_add_on.rb

Overview

Streamlined add-on data for Partner API reservations. Stores essential add-on information for filtering and complete add_on_data JSON for serializer. NO CALLBACKS OR BUSINESS LOGIC - data comes from sync process

Examples:

Finding add-ons by pricing type

Partners::ReservationSummaryAddOn.where(pricing_type: 'per_person')

Finding add-ons by name

Partners::ReservationSummaryAddOn.where('add_on_name ILIKE ?', '%dessert%')

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url