Sha256: c78f6f0a866274e977bb76b14181f0481c479e64f3fffb19d9123835ea08e72b

Contents?: true

Size: 328 Bytes

Versions: 57

Compression:

Stored size: 328 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Supplier::Discount < Resource
    path '/supplier/discounts'

    require_relative 'booking'

    association :booking, Supplier::Booking

    attribute :amount, type: :money

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

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
tickethub-0.3.100 lib/tickethub/supplier/discount.rb
tickethub-0.3.99 lib/tickethub/supplier/discount.rb
tickethub-0.3.98 lib/tickethub/supplier/discount.rb
tickethub-0.3.97 lib/tickethub/supplier/discount.rb
tickethub-0.3.96 lib/tickethub/supplier/discount.rb
tickethub-0.3.95 lib/tickethub/supplier/discount.rb
tickethub-0.3.94 lib/tickethub/supplier/discount.rb
tickethub-0.3.93 lib/tickethub/supplier/discount.rb
tickethub-0.3.92 lib/tickethub/supplier/discount.rb
tickethub-0.3.91 lib/tickethub/supplier/discount.rb
tickethub-0.3.90 lib/tickethub/supplier/discount.rb
tickethub-0.3.89 lib/tickethub/supplier/discount.rb
tickethub-0.3.88 lib/tickethub/supplier/discount.rb
tickethub-0.3.87 lib/tickethub/supplier/discount.rb
tickethub-0.3.86 lib/tickethub/supplier/discount.rb
tickethub-0.3.85 lib/tickethub/supplier/discount.rb
tickethub-0.3.84 lib/tickethub/supplier/discount.rb
tickethub-0.3.82 lib/tickethub/supplier/discount.rb
tickethub-0.3.81 lib/tickethub/supplier/discount.rb
tickethub-0.3.80 lib/tickethub/supplier/discount.rb