Sha256: 5c83cf8ebc1030ac658426ad13a8fda61de4cb3b28730ea26e0d8b019a68132b

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Reseller::Purchase < Resource
    path '/reseller/purchases'

    require_relative 'booking'
    require_relative 'extra'

    association :booking, Reseller::Booking
    association :extra, Reseller::Extra

    attribute :price, type: :money
    attribute :charges, type: :money

    attribute :updated_at, type: :datetime
    attribute :created_at, type: :datetime
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tickethub-0.3.37 lib/tickethub/reseller/purchase.rb
tickethub-0.3.36 lib/tickethub/reseller/purchase.rb