Sha256: b307713afde108952cc69a69bd8bfad7b892f8dac80b1384079f9f7373268166
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
module Spree class OrderSerializer < Spree::BaseSerializer attributes :email, :number, :state, :completed_at, :shipment_state, :payment_state, :special_instructions, :currency, :channel, :item_count, :approved_at, :confirmation_delivered, :canceled_at, :payment_total, :total, :display_total %w( item adjustment shipment promo additional_tax included_tax ).each do |money_method| attributes "#{money_method}_total", "display_#{money_method}_total" end has_one :user has_one :bill_address has_one :ship_address has_many :line_items end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_json_api-0.3.1 | app/serializers/spree/order_serializer.rb |
solidus_json_api-0.3.0 | app/serializers/spree/order_serializer.rb |