require_relative '../resource' module Tickethub class Supplier::Voucher < Resource path '/supplier/vouchers' require_relative 'tier' require_relative 'ticket' require_relative 'booking' association :tier, Supplier::Tier association :booking, Supplier::Booking collection :tickets, Supplier::Ticket attribute :price, type: :money attribute :total, type: :money attribute :created_at, type: :datetime attribute :updated_at, type: :datetime end end