lib/tickethub/reseller/booking.rb in tickethub-0.3.58 vs lib/tickethub/reseller/booking.rb in tickethub-0.3.59

- old
+ new

@@ -2,30 +2,32 @@ 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' + require_relative 'ticket' collection :answers, Reseller::Answer collection :purchases, Reseller::Purchase collection :fees, Reseller::Fee collection :tiers, Reseller::Tier + collection :tickets, Reseller::Ticket collection :discounts, Reseller::Discount association :order, Reseller::Order association :product, Reseller::Product association :variant, Reseller::Variant + + attribute :expires_on, type: :date + attribute :valid_from, type: :datetime attribute :amount, type: :money attribute :discount, type: :money attribute :tax, type: :money attribute :total, type: :money \ No newline at end of file