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.16 lib/tickethub/supplier/voucher.rb
tickethub-0.3.15 lib/tickethub/supplier/voucher.rb
tickethub-0.3.14 lib/tickethub/supplier/voucher.rb
tickethub-0.3.13 lib/tickethub/supplier/voucher.rb
tickethub-0.3.12 lib/tickethub/supplier/voucher.rb
tickethub-0.3.11 lib/tickethub/supplier/voucher.rb
tickethub-0.3.9 lib/tickethub/supplier/voucher.rb
tickethub-0.3.7 lib/tickethub/supplier/voucher.rb
tickethub-0.3.6 lib/tickethub/supplier/voucher.rb
tickethub-0.3.4 lib/tickethub/supplier/voucher.rb
tickethub-0.3.3 lib/tickethub/supplier/voucher.rb
tickethub-0.3.2 lib/tickethub/supplier/voucher.rb
tickethub-0.3.1 lib/tickethub/supplier/voucher.rb
tickethub-0.3.0 lib/tickethub/supplier/voucher.rb
tickethub-0.2.18 lib/tickethub/supplier/voucher.rb
tickethub-0.2.17 lib/tickethub/supplier/voucher.rb
tickethub-0.2.15 lib/tickethub/supplier/voucher.rb
tickethub-0.2.14 lib/tickethub/supplier/voucher.rb
tickethub-0.2.13 lib/tickethub/supplier/voucher.rb
tickethub-0.2.12 lib/tickethub/supplier/voucher.rb