Sha256: e897e2ef143171ffe7a41660ca6ae43ce83ded8b5d9f59389e78895e3fe90478

Contents?: true

Size: 957 Bytes

Versions: 31

Compression:

Stored size: 957 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Reseller::Product < Resource
    path '/reseller/products'

    require_relative 'booking'
    require_relative 'extra'
    require_relative 'option'
    require_relative 'tier'
    require_relative 'variant'
    require_relative 'question'
    require_relative 'tax'

    require_relative '../contact'
    require_relative '../address'

    association :contact, Tickethub::Contact
    association :address, Tickethub::Address

    collection :bookings, Reseller::Booking
    collection :extras, Reseller::Extra
    collection :options, Reseller::Option
    collection :tiers, Reseller::Tier
    collection :variants, Reseller::Variant
    collection :questions, Reseller::Question
    collection :taxes, Reseller::Tax

    attribute :time_zone, type: :timezone
    attribute :currency, type: :currency

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
tickethub-0.3.67 lib/tickethub/reseller/product.rb
tickethub-0.3.66 lib/tickethub/reseller/product.rb
tickethub-0.3.65 lib/tickethub/reseller/product.rb
tickethub-0.3.64 lib/tickethub/reseller/product.rb
tickethub-0.3.63 lib/tickethub/reseller/product.rb
tickethub-0.3.62 lib/tickethub/reseller/product.rb
tickethub-0.3.61 lib/tickethub/reseller/product.rb
tickethub-0.3.60 lib/tickethub/reseller/product.rb
tickethub-0.3.59 lib/tickethub/reseller/product.rb
tickethub-0.3.58 lib/tickethub/reseller/product.rb
tickethub-0.3.57 lib/tickethub/reseller/product.rb
tickethub-0.3.56 lib/tickethub/reseller/product.rb
tickethub-0.3.55 lib/tickethub/reseller/product.rb
tickethub-0.3.54 lib/tickethub/reseller/product.rb
tickethub-0.3.53 lib/tickethub/reseller/product.rb
tickethub-0.3.52 lib/tickethub/reseller/product.rb
tickethub-0.3.51 lib/tickethub/reseller/product.rb
tickethub-0.3.50 lib/tickethub/reseller/product.rb
tickethub-0.3.49 lib/tickethub/reseller/product.rb
tickethub-0.3.47 lib/tickethub/reseller/product.rb