Sha256: 59860ec3723ba3ee38b80b450ddde84b3a4331b008e8fd4c379124b48d2c88f1
Contents?: true
Size: 669 Bytes
Versions: 6
Compression:
Stored size: 669 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, :considered_risky, :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
6 entries across 6 versions & 2 rubygems