Sha256: 1d01affca313835336be7327d197ec68ef1fedd9bca0af2eade56b58d8add88d
Contents?: true
Size: 1.94 KB
Versions: 3
Compression:
Stored size: 1.94 KB
Contents
require 'gecko/record/base' module Gecko module Record class Order < Base has_many :fulfillments has_many :invoices has_many :order_line_items belongs_to :company belongs_to :shipping_address, class_name: 'Address' belongs_to :billing_address, class_name: 'Address' belongs_to :contact, class_name: 'Contact' belongs_to :user, readonly: true belongs_to :assignee, class_name: 'User' belongs_to :stock_location, class_name: 'Location' belongs_to :currency # belongs_to :default_price_list, class_name: 'PriceList' attribute :order_number, String attribute :phone_number, String attribute :email, String attribute :notes, String attribute :reference_number, String attribute :status, String attribute :packed_status, String, readonly: true attribute :fulfillment_status, String, readonly: true attribute :invoice_status, String, readonly: true attribute :payment_status, String attribute :tax_type, String attribute :issued_at, Date attribute :ship_at, Date attribute :tax_override, String, readonly: true attribute :tax_label, String, readonly: true attribute :source_url, String attribute :document_url, String, readonly: true attribute :total, BigDecimal, readonly: true attribute :source_id, String, readonly: true ## DEPRECATED attribute :tracking_number, String, readonly: true # attribute :source, String # attribute :invoice_numbers, Hash[Integer => String], readonly: true end class OrderAdapter < BaseAdapter end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gecko-ruby-0.0.6 | lib/gecko/record/order.rb |
gecko-ruby-0.0.5 | lib/gecko/record/order.rb |
gecko-ruby-0.0.4 | lib/gecko/record/order.rb |