Sha256: 91f7333f73bd475464938858e4ebc5fb6dd9fa71e332643dffa2720f1bcbf082
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true require 'gecko/record/base' module Gecko module Record class Invoice < Base belongs_to :order, writeable_on: :create belongs_to :shipping_address, class_name: 'Address' belongs_to :billing_address, class_name: 'Address' belongs_to :payment_term belongs_to :company, readonly: true belongs_to :currency, readonly: true has_many :invoice_line_items, embedded: true attribute :invoice_number, String attribute :order_number, String, readonly: true 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
5 entries across 5 versions & 1 rubygems