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.0.8 lib/tickethub/supplier/voucher.rb
tickethub-0.0.7 lib/tickethub/supplier/voucher.rb