Sha256: 062aea223ed09bd2c0b84effdf65bfd1f4f8737a28aed9659fc930e3a13e2388

Contents?: true

Size: 970 Bytes

Versions: 13

Compression:

Stored size: 970 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 'card'

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

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

    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

13 entries across 13 versions & 1 rubygems

Version Path
tickethub-0.2.1 lib/tickethub/supplier/reseller.rb
tickethub-0.2.0 lib/tickethub/supplier/reseller.rb
tickethub-0.1.4 lib/tickethub/supplier/reseller.rb
tickethub-0.1.3 lib/tickethub/supplier/reseller.rb
tickethub-0.1.2 lib/tickethub/supplier/reseller.rb
tickethub-0.0.14 lib/tickethub/supplier/reseller.rb
tickethub-0.0.12 lib/tickethub/supplier/reseller.rb
tickethub-0.0.11 lib/tickethub/supplier/reseller.rb
tickethub-0.0.10 lib/tickethub/supplier/reseller.rb
tickethub-0.0.9 lib/tickethub/supplier/reseller.rb
tickethub-0.0.8 lib/tickethub/supplier/reseller.rb
tickethub-0.0.7 lib/tickethub/supplier/reseller.rb
tickethub-0.0.6 lib/tickethub/supplier/reseller.rb