Class: Partners::ReservationSummaryPackage

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

Overview

Normalized package data for Partner API reservations. Stores essential package information for filtering and complete package_data JSON for serializer.

Examples:

Finding packages by type

Partners::ReservationSummaryPackage.by_type('HhPackage::Package::Ayce')

Finding packages by name

Partners::ReservationSummaryPackage.by_name('buffet')

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url