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.2.11 lib/tickethub/supplier/voucher.rb
tickethub-0.2.10 lib/tickethub/supplier/voucher.rb
tickethub-0.2.9 lib/tickethub/supplier/voucher.rb
tickethub-0.2.8 lib/tickethub/supplier/voucher.rb
tickethub-0.2.7 lib/tickethub/supplier/voucher.rb
tickethub-0.2.6 lib/tickethub/supplier/voucher.rb
tickethub-0.2.5 lib/tickethub/supplier/voucher.rb
tickethub-0.2.4 lib/tickethub/supplier/voucher.rb
tickethub-0.2.3 lib/tickethub/supplier/voucher.rb
tickethub-0.2.2 lib/tickethub/supplier/voucher.rb
tickethub-0.2.1 lib/tickethub/supplier/voucher.rb
tickethub-0.2.0 lib/tickethub/supplier/voucher.rb
tickethub-0.1.4 lib/tickethub/supplier/voucher.rb
tickethub-0.1.3 lib/tickethub/supplier/voucher.rb
tickethub-0.1.2 lib/tickethub/supplier/voucher.rb
tickethub-0.0.14 lib/tickethub/supplier/voucher.rb
tickethub-0.0.12 lib/tickethub/supplier/voucher.rb
tickethub-0.0.11 lib/tickethub/supplier/voucher.rb
tickethub-0.0.10 lib/tickethub/supplier/voucher.rb
tickethub-0.0.9 lib/tickethub/supplier/voucher.rb