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.37 lib/tickethub/supplier/voucher.rb
tickethub-0.3.36 lib/tickethub/supplier/voucher.rb
tickethub-0.3.35 lib/tickethub/supplier/voucher.rb
tickethub-0.3.34 lib/tickethub/supplier/voucher.rb
tickethub-0.3.33 lib/tickethub/supplier/voucher.rb
tickethub-0.3.32 lib/tickethub/supplier/voucher.rb
tickethub-0.3.31 lib/tickethub/supplier/voucher.rb
tickethub-0.3.30 lib/tickethub/supplier/voucher.rb
tickethub-0.3.29 lib/tickethub/supplier/voucher.rb
tickethub-0.3.28 lib/tickethub/supplier/voucher.rb
tickethub-0.3.27 lib/tickethub/supplier/voucher.rb
tickethub-0.3.26 lib/tickethub/supplier/voucher.rb
tickethub-0.3.25 lib/tickethub/supplier/voucher.rb
tickethub-0.3.24 lib/tickethub/supplier/voucher.rb
tickethub-0.3.23 lib/tickethub/supplier/voucher.rb
tickethub-0.3.22 lib/tickethub/supplier/voucher.rb
tickethub-0.3.21 lib/tickethub/supplier/voucher.rb
tickethub-0.3.20 lib/tickethub/supplier/voucher.rb
tickethub-0.3.18 lib/tickethub/supplier/voucher.rb
tickethub-0.3.17 lib/tickethub/supplier/voucher.rb