Sha256: 1fe80f08a40884f732d279412af401db11a811a4410b538162eaff7acaec9f0c

Contents?: true

Size: 919 Bytes

Versions: 7

Compression:

Stored size: 919 Bytes

Contents

module Xeroizer
  module Record

    class OverpaymentModel < BaseModel

      set_xml_root_name 'Overpayments'
      set_api_controller_name 'Overpayment'
      set_permissions :read

    end

    class Overpayment < Base
      set_primary_key :overpayment_id

      guid          :overpayment_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
      string        :type
      decimal       :remaining_credit
      boolean       :has_attachments

      belongs_to    :contact
      belongs_to    :invoice
      has_many      :allocations
      has_many      :line_items
      has_many      :payments

      def contact_id
        contact.id if contact
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
xeroizer-3.0.1 lib/xeroizer/models/overpayment.rb
xeroizer-3.0.0 lib/xeroizer/models/overpayment.rb
xeroizer-3-pre-beta-3.0.0.pre.beta lib/xeroizer/models/overpayment.rb
xeroizer-2.20.0 lib/xeroizer/models/overpayment.rb
xeroizer-2.19.0 lib/xeroizer/models/overpayment.rb
xeroizer-2.18.1 lib/xeroizer/models/overpayment.rb
xeroizer-2.17.1 lib/xeroizer/models/overpayment.rb