Sha256: 91096f94e270537977d9c03de75f5d7484e74158a0d755e4af124447c14a69fc

Contents?: true

Size: 499 Bytes

Versions: 82

Compression:

Stored size: 499 Bytes

Contents

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

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
tickethub-0.3.58 lib/tickethub/supplier/voucher.rb
tickethub-0.3.57 lib/tickethub/supplier/voucher.rb
tickethub-0.3.56 lib/tickethub/supplier/voucher.rb
tickethub-0.3.55 lib/tickethub/supplier/voucher.rb
tickethub-0.3.54 lib/tickethub/supplier/voucher.rb
tickethub-0.3.53 lib/tickethub/supplier/voucher.rb
tickethub-0.3.52 lib/tickethub/supplier/voucher.rb
tickethub-0.3.51 lib/tickethub/supplier/voucher.rb
tickethub-0.3.50 lib/tickethub/supplier/voucher.rb
tickethub-0.3.49 lib/tickethub/supplier/voucher.rb
tickethub-0.3.47 lib/tickethub/supplier/voucher.rb
tickethub-0.3.46 lib/tickethub/supplier/voucher.rb
tickethub-0.3.45 lib/tickethub/supplier/voucher.rb
tickethub-0.3.44 lib/tickethub/supplier/voucher.rb
tickethub-0.3.43 lib/tickethub/supplier/voucher.rb
tickethub-0.3.42 lib/tickethub/supplier/voucher.rb
tickethub-0.3.41 lib/tickethub/supplier/voucher.rb
tickethub-0.3.40 lib/tickethub/supplier/voucher.rb
tickethub-0.3.39 lib/tickethub/supplier/voucher.rb
tickethub-0.3.38 lib/tickethub/supplier/voucher.rb