Sha256: 079c60b8c9741b534b5362d9027518a4c8c54994bf4f02046e91d70ed96a51c5

Contents?: true

Size: 904 Bytes

Versions: 2

Compression:

Stored size: 904 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 '../contact'
    require_relative '../address'

    collection :invoices, Supplier::Invoice
    collection :products, Supplier::Product
    collection :messages, Supplier::Message
    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

2 entries across 2 versions & 1 rubygems

Version Path
tickethub-0.0.5 lib/tickethub/supplier/reseller.rb
tickethub-0.0.4 lib/tickethub/supplier/reseller.rb