Sha256: 0dd96184718d37f734d79ece5dc299b958ed8e858d255d807cfde41fb7041fdb

Contents?: true

Size: 753 Bytes

Versions: 7

Compression:

Stored size: 753 Bytes

Contents

require 'gecko/record/base'

module Gecko
  module Record
    class Invoice < Base
      belongs_to :order
      belongs_to :shipping_address
      belongs_to :billing_address
      belongs_to :payment_term

      has_many :invoice_line_items

      attribute :invoice_number,  String
      attribute :invoiced_at,     Date
      attribute :due_at,          Date
      attribute :notes,           String
      attribute :exchange_rate,   BigDecimal

      attribute :destination_url, String,   readonly: true
      attribute :document_url,    String,   readonly: true
      attribute :created_at,      DateTime, readonly: true
      attribute :updated_at,      DateTime, readonly: true
    end

    class InvoiceAdapter < BaseAdapter

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gecko-ruby-0.0.10 lib/gecko/record/invoice.rb
gecko-ruby-0.0.9 lib/gecko/record/invoice.rb
gecko-ruby-0.0.8 lib/gecko/record/invoice.rb
gecko-ruby-0.0.7 lib/gecko/record/invoice.rb
gecko-ruby-0.0.6 lib/gecko/record/invoice.rb
gecko-ruby-0.0.5 lib/gecko/record/invoice.rb
gecko-ruby-0.0.4 lib/gecko/record/invoice.rb