Sha256: 44941059aba21576a26d18cf12ba437e8bff7dd5084042d8338d89648855c63d

Contents?: true

Size: 422 Bytes

Versions: 10

Compression:

Stored size: 422 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Channel::Voucher < Resource
    path '/channel/vouchers'

    require_relative 'tier'
    require_relative 'booking'

    association :tier, Channel::Tier
    association :booking, Channel::Booking

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tickethub-0.3.58 lib/tickethub/channel/voucher.rb
tickethub-0.3.57 lib/tickethub/channel/voucher.rb
tickethub-0.3.55 lib/tickethub/channel/voucher.rb
tickethub-0.3.54 lib/tickethub/channel/voucher.rb
tickethub-0.3.53 lib/tickethub/channel/voucher.rb
tickethub-0.3.52 lib/tickethub/channel/voucher.rb
tickethub-0.3.51 lib/tickethub/channel/voucher.rb
tickethub-0.3.50 lib/tickethub/channel/voucher.rb
tickethub-0.3.49 lib/tickethub/channel/voucher.rb
tickethub-0.3.47 lib/tickethub/channel/voucher.rb