Sha256: be651215ee467abe527de2befd4fbd7ac8102d25316734a75eb724bda095b7d4

Contents?: true

Size: 970 Bytes

Versions: 6

Compression:

Stored size: 970 Bytes

Contents

require 'gecko/record/base'
require 'gecko/record/fulfillment_line_item'

module Gecko
  module Record
    class Fulfillment < Base
      belongs_to :order, writeable_on: :create
      belongs_to :shipping_address, class_name: 'Address'
      belongs_to :billing_address,  class_name: 'Address'
      belongs_to :stock_location,  class_name: 'Location'

      has_many :fulfillment_line_items

      attribute :status,           String
      attribute :exchange_rate,    String
      attribute :delivery_type,    String
      attribute :tracking_number,  String
      attribute :notes,            String
      attribute :tracking_url,     String
      attribute :tracking_company, String

      attribute :packed_at,        Date
      attribute :shipped_at,       DateTime
      attribute :received_at,      DateTime
      attribute :service,          String

      attribute :receipt,          Hash
    end

    class FulfillmentAdapter < BaseAdapter
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gecko-ruby-0.2.6 lib/gecko/record/fulfillment.rb
gecko-ruby-0.2.5 lib/gecko/record/fulfillment.rb
gecko-ruby-0.2.4 lib/gecko/record/fulfillment.rb
gecko-ruby-0.2.3 lib/gecko/record/fulfillment.rb
gecko-ruby-0.2.2 lib/gecko/record/fulfillment.rb
gecko-ruby-0.2.0 lib/gecko/record/fulfillment.rb