Sha256: b610b60dd749b0fdb8f936afc65631ceca38bb5497430609576e43b0a6b98d1c

Contents?: true

Size: 977 Bytes

Versions: 7

Compression:

Stored size: 977 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Supplier::Reseller < Resource
    path '/supplier/resellers'

    require_relative 'invoice'
    require_relative 'product'
    require_relative 'message'
    require_relative 'rate'

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

    collection :invoices, Supplier::Invoice
    collection :products, Supplier::Product
    collection :messages, Supplier::Message
    collection :rates, Supplier::Rate

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

    attribute :period, type: :duration
    attribute :notice, type: :duration
    attribute :currency, type: :currency

    attribute :limit, type: :money
    attribute :balance, type: :money
    attribute :overdue, type: :money

    attribute :next_invoice_date, type: :date
    attribute :first_invoice_date, type: :date
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tickethub-0.3.7 lib/tickethub/supplier/reseller.rb
tickethub-0.3.6 lib/tickethub/supplier/reseller.rb
tickethub-0.3.4 lib/tickethub/supplier/reseller.rb
tickethub-0.3.3 lib/tickethub/supplier/reseller.rb
tickethub-0.3.2 lib/tickethub/supplier/reseller.rb
tickethub-0.3.1 lib/tickethub/supplier/reseller.rb
tickethub-0.3.0 lib/tickethub/supplier/reseller.rb