Sha256: 76a5296a8b2d4bd4cc67204350f4d8eb7677c57be32c3ece34a368d53beef5a3

Contents?: true

Size: 1016 Bytes

Versions: 2

Compression:

Stored size: 1016 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Channel::Product < Resource
    path '/channel/products'

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

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

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

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tickethub-0.3.86 lib/tickethub/channel/product.rb
tickethub-0.3.84 lib/tickethub/channel/product.rb