Sha256: 0d20f8117082c55bfabc41671fbda5b1e9a2222959f6522fa137a5c4480465d3

Contents?: true

Size: 986 Bytes

Versions: 7

Compression:

Stored size: 986 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, embedded: true

      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

7 entries across 7 versions & 1 rubygems

Version Path
gecko-ruby-0.9.1 lib/gecko/record/fulfillment.rb
gecko-ruby-0.9.0 lib/gecko/record/fulfillment.rb
gecko-ruby-0.8.0 lib/gecko/record/fulfillment.rb
gecko-ruby-0.7.1 lib/gecko/record/fulfillment.rb
gecko-ruby-0.7.0 lib/gecko/record/fulfillment.rb
gecko-ruby-0.6.0 lib/gecko/record/fulfillment.rb
gecko-ruby-0.5.0 lib/gecko/record/fulfillment.rb