require_relative '../resource' module Tickethub class Reseller::Booking < Resource path '/reseller/bookings' require_relative 'booking/ticket' require_relative 'booking/voucher' require_relative 'order' require_relative 'answer' require_relative 'product' require_relative 'variant' require_relative 'purchase' require_relative 'discount' require_relative 'fee' require_relative 'tier' collection :answers, Reseller::Answer collection :purchases, Reseller::Purchase collection :fees, Reseller::Fee collection :tiers, Reseller::Tier collection :discounts, Reseller::Discount association :order, Reseller::Order association :product, Reseller::Product association :variant, Reseller::Variant attribute :amount, type: :money attribute :discount, type: :money attribute :tax, type: :money attribute :total, type: :money attribute :currency, type: :currency attribute :created_at, type: :datetime attribute :updated_at, type: :datetime attribute :cancelled_at, type: :datetime end end