Sha256: faa8c2e61ce21b8436ab7c5b368e8c7772fad9eac4577865268270ee8747ce2f

Contents?: true

Size: 791 Bytes

Versions: 8

Compression:

Stored size: 791 Bytes

Contents

require 'gecko/record/base'

module Gecko
  module Record
    class OrderLineItem < Base
      belongs_to :order
      belongs_to :variant
      belongs_to :tax_type

      has_many :fulfillment_line_items
      has_many :invoice_line_items

      attribute :label,     String
      attribute :line_type, String

      attribute :freeform,  Boolean
      attribute :shippable, Boolean, readonly: true

      attribute :discount,  BigDecimal
      attribute :quantity,  BigDecimal
      attribute :price,     BigDecimal
      attribute :tax_rate_override,  BigDecimal

      attribute :position,  Integer

      attribute :image_url, String,     readonly: true

      # DEPRECATED
      attribute :tax_rate,  BigDecimal
    end

    class OrderLineItemAdapter < BaseAdapter
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gecko-ruby-0.1.0 lib/gecko/record/order_line_item.rb
gecko-ruby-0.0.10 lib/gecko/record/order_line_item.rb
gecko-ruby-0.0.9 lib/gecko/record/order_line_item.rb
gecko-ruby-0.0.8 lib/gecko/record/order_line_item.rb
gecko-ruby-0.0.7 lib/gecko/record/order_line_item.rb
gecko-ruby-0.0.6 lib/gecko/record/order_line_item.rb
gecko-ruby-0.0.5 lib/gecko/record/order_line_item.rb
gecko-ruby-0.0.4 lib/gecko/record/order_line_item.rb