Sha256: b6aa649602313cccc7d92237fc79efc9c71c23b3e830f12e8686fef5463a9386

Contents?: true

Size: 1.03 KB

Versions: 17

Compression:

Stored size: 1.03 KB

Contents

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 :created_at, type: :datetime
    attribute :updated_at, type: :datetime
    attribute :cancelled_at, type: :datetime
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
tickethub-0.3.58 lib/tickethub/reseller/booking.rb
tickethub-0.3.57 lib/tickethub/reseller/booking.rb
tickethub-0.3.56 lib/tickethub/reseller/booking.rb
tickethub-0.3.55 lib/tickethub/reseller/booking.rb
tickethub-0.3.54 lib/tickethub/reseller/booking.rb
tickethub-0.3.53 lib/tickethub/reseller/booking.rb
tickethub-0.3.52 lib/tickethub/reseller/booking.rb
tickethub-0.3.51 lib/tickethub/reseller/booking.rb
tickethub-0.3.50 lib/tickethub/reseller/booking.rb
tickethub-0.3.49 lib/tickethub/reseller/booking.rb
tickethub-0.3.47 lib/tickethub/reseller/booking.rb
tickethub-0.3.46 lib/tickethub/reseller/booking.rb
tickethub-0.3.45 lib/tickethub/reseller/booking.rb
tickethub-0.3.44 lib/tickethub/reseller/booking.rb
tickethub-0.3.43 lib/tickethub/reseller/booking.rb
tickethub-0.3.42 lib/tickethub/reseller/booking.rb
tickethub-0.3.41 lib/tickethub/reseller/booking.rb