Sha256: e1abbfd98c4111f24ac8e0278b5bb299bb3e20ae6655ae181a7e23733a62459e

Contents?: true

Size: 433 Bytes

Versions: 21

Compression:

Stored size: 433 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Supplier::Purchase < Resource
    path '/supplier/purchases'

    require_relative 'booking'
    require_relative 'extra'

    association :booking, Supplier::Booking
    association :extra, Supplier::Extra

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

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
tickethub-0.3.37 lib/tickethub/supplier/purchase.rb
tickethub-0.3.36 lib/tickethub/supplier/purchase.rb
tickethub-0.3.35 lib/tickethub/supplier/purchase.rb
tickethub-0.3.34 lib/tickethub/supplier/purchase.rb
tickethub-0.3.33 lib/tickethub/supplier/purchase.rb
tickethub-0.3.32 lib/tickethub/supplier/purchase.rb
tickethub-0.3.31 lib/tickethub/supplier/purchase.rb
tickethub-0.3.30 lib/tickethub/supplier/purchase.rb
tickethub-0.3.29 lib/tickethub/supplier/purchase.rb
tickethub-0.3.28 lib/tickethub/supplier/purchase.rb
tickethub-0.3.27 lib/tickethub/supplier/purchase.rb
tickethub-0.3.26 lib/tickethub/supplier/purchase.rb
tickethub-0.3.25 lib/tickethub/supplier/purchase.rb
tickethub-0.3.24 lib/tickethub/supplier/purchase.rb
tickethub-0.3.23 lib/tickethub/supplier/purchase.rb
tickethub-0.3.22 lib/tickethub/supplier/purchase.rb
tickethub-0.3.21 lib/tickethub/supplier/purchase.rb
tickethub-0.3.20 lib/tickethub/supplier/purchase.rb
tickethub-0.3.18 lib/tickethub/supplier/purchase.rb
tickethub-0.3.17 lib/tickethub/supplier/purchase.rb