Sha256: b2a4371688969ea952c7e285bb76363b45f90d1b449521e1a19cf1d2660d0b5a

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

require_relative '../resource'

module Tickethub
  class Supplier::Booking < Resource
    path '/supplier/bookings'

    require_relative 'rate'
    require_relative 'order'
    require_relative 'ticket'
    require_relative 'answer'
    require_relative 'product'
    require_relative 'variant'
    require_relative 'message'
    require_relative 'fee'

    collection :tickets, Supplier::Ticket
    collection :answers, Supplier::Answer
    collection :messages, Supplier::Message
    collection :fees, Supplier::Fee

    association :order, Supplier::Order
    association :rate, Supplier::Rate
    association :coupon, Supplier::Coupon
    association :product, Supplier::Product
    association :variant, Supplier::Variant

    attribute :amount, type: :money
    attribute :tax, type: :money
    attribute :total, type: :money

    attribute :currency, type: :currency
    attribute :valid_from, type: :datetime
    attribute :expires_at, type: :datetime
    attribute :timeout_at, type: :datetime
    attribute :created_at, type: :datetime
    attribute :updated_at, type: :datetime
    attribute :cancelled_at, type: :datetime
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tickethub-0.0.3 lib/tickethub/supplier/booking.rb
tickethub-0.0.2 lib/tickethub/supplier/booking.rb
tickethub-0.0.1 lib/tickethub/supplier/booking.rb