Sha256: 6a5aec626f7604947059cb0344f4c76fae7f0dc617ded6b0b5f79503ede51d64
Contents?: true
Size: 800 Bytes
Versions: 7
Compression:
Stored size: 800 Bytes
Contents
require 'gecko/record/base' module Gecko module Record class Invoice < Base belongs_to :order, writeable_on: :create belongs_to :shipping_address belongs_to :billing_address belongs_to :payment_term has_many :invoice_line_items, embedded: true attribute :invoice_number, String attribute :invoiced_at, Date attribute :due_at, Date attribute :notes, String attribute :exchange_rate, BigDecimal attribute :status, String, readonly: true attribute :payment_status, String, readonly: true attribute :total, BigDecimal, readonly: true attribute :document_url, String, readonly: true end class InvoiceAdapter < BaseAdapter end end end
Version data entries
7 entries across 7 versions & 1 rubygems