Sha256: bbe848a1afc9b6640e91cbaf12a9520be86a9097514185045ad91f91ff187fc5

Contents?: true

Size: 915 Bytes

Versions: 2

Compression:

Stored size: 915 Bytes

Contents

module Xeroizer
  module Record

    class PrepaymentModel < BaseModel

      set_xml_root_name 'Prepayments'
      set_permissions :read

    end

    class Prepayment < Base
      set_primary_key :prepayment_id

      guid          :prepayment_id
      date          :date
      string        :status
      string        :line_amount_types
      decimal       :sub_total
      decimal       :total_tax
      decimal       :total
      datetime_utc  :updated_date_utc, :api_name => 'UpdatedDateUTC'
      string        :currency_code
      datetime_utc  :fully_paid_on_date
      string        :type
      string        :reference
      decimal       :currency_rate
      decimal       :remaining_credit
      boolean       :has_attachments

      belongs_to    :contact
      has_many      :line_items
      has_many      :payments

      def contact_id
        contact.id if contact
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xeroizer-2.18.1 lib/xeroizer/models/prepayment.rb
xeroizer-2.17.1 lib/xeroizer/models/prepayment.rb