Sha256: fcc86467fed4037aebf05c5d3c90291fb55d030d402c0b8130a4d2d3c17e1b87

Contents?: true

Size: 427 Bytes

Versions: 49

Compression:

Stored size: 427 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Channel::Purchase < Resource
    path '/channel/purchases'

    require_relative 'booking'
    require_relative 'extra'

    association :booking, Channel::Booking
    association :extra, Channel::Extra

    attribute :price, type: :money
    attribute :total, type: :money

    attribute :updated_at, type: :datetime
    attribute :created_at, type: :datetime
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
tickethub-0.3.100 lib/tickethub/channel/purchase.rb
tickethub-0.3.99 lib/tickethub/channel/purchase.rb
tickethub-0.3.98 lib/tickethub/channel/purchase.rb
tickethub-0.3.97 lib/tickethub/channel/purchase.rb
tickethub-0.3.96 lib/tickethub/channel/purchase.rb
tickethub-0.3.95 lib/tickethub/channel/purchase.rb
tickethub-0.3.94 lib/tickethub/channel/purchase.rb
tickethub-0.3.93 lib/tickethub/channel/purchase.rb
tickethub-0.3.92 lib/tickethub/channel/purchase.rb
tickethub-0.3.91 lib/tickethub/channel/purchase.rb
tickethub-0.3.90 lib/tickethub/channel/purchase.rb
tickethub-0.3.89 lib/tickethub/channel/purchase.rb
tickethub-0.3.88 lib/tickethub/channel/purchase.rb
tickethub-0.3.87 lib/tickethub/channel/purchase.rb
tickethub-0.3.86 lib/tickethub/channel/purchase.rb
tickethub-0.3.85 lib/tickethub/channel/purchase.rb
tickethub-0.3.84 lib/tickethub/channel/purchase.rb
tickethub-0.3.82 lib/tickethub/channel/purchase.rb
tickethub-0.3.81 lib/tickethub/channel/purchase.rb
tickethub-0.3.80 lib/tickethub/channel/purchase.rb