Sha256: 1b4abaf2195dcd2979b67f366de52dcb0bc592de2a8c15f014580083a37b0fca

Contents?: true

Size: 1.02 KB

Versions: 16

Compression:

Stored size: 1.02 KB

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 '../token'
    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 :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

16 entries across 16 versions & 1 rubygems

Version Path
tickethub-0.2.18 lib/tickethub/supplier/reseller.rb
tickethub-0.2.17 lib/tickethub/supplier/reseller.rb
tickethub-0.2.15 lib/tickethub/supplier/reseller.rb
tickethub-0.2.14 lib/tickethub/supplier/reseller.rb
tickethub-0.2.13 lib/tickethub/supplier/reseller.rb
tickethub-0.2.12 lib/tickethub/supplier/reseller.rb
tickethub-0.2.11 lib/tickethub/supplier/reseller.rb
tickethub-0.2.10 lib/tickethub/supplier/reseller.rb
tickethub-0.2.9 lib/tickethub/supplier/reseller.rb
tickethub-0.2.8 lib/tickethub/supplier/reseller.rb
tickethub-0.2.7 lib/tickethub/supplier/reseller.rb
tickethub-0.2.6 lib/tickethub/supplier/reseller.rb
tickethub-0.2.5 lib/tickethub/supplier/reseller.rb
tickethub-0.2.4 lib/tickethub/supplier/reseller.rb
tickethub-0.2.3 lib/tickethub/supplier/reseller.rb
tickethub-0.2.2 lib/tickethub/supplier/reseller.rb