Sha256: 0813527b4d347586444f0da6fc9baf789277abc944adaff79ea885898c867273

Contents?: true

Size: 1010 Bytes

Versions: 29

Compression:

Stored size: 1010 Bytes

Contents

module Spree
  module Api
    module V2
      module Platform
        class OrderSerializer < BaseSerializer
          include ResourceSerializerConcern

          belongs_to :user
          belongs_to :created_by, serializer: Dependencies.platform_admin_user_serializer.constantize
          belongs_to :approver, serializer: Dependencies.platform_admin_user_serializer.constantize
          belongs_to :canceler, serializer: Dependencies.platform_admin_user_serializer.constantize

          belongs_to :bill_address, serializer: AddressSerializer
          belongs_to :ship_address, serializer: AddressSerializer

          has_many :line_items
          has_many :payments
          has_many :shipments

          has_many :state_changes
          has_many :return_authorizations
          has_many :reimbursements
          has_many :adjustments
          has_many :all_adjustments, serializer: :adjustments, type: :adjustment

          has_many :order_promotions
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
spree_api-4.10.1 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.10.0 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.9.0 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.8.3 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.8.2 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.7.3 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.6.6 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.5.5 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.4.1 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.5.4 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.6.5 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.7.2 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.7.1 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.6.4 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.7.0 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.6.3 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.6.2 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.6.1 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.6.0 app/serializers/spree/api/v2/platform/order_serializer.rb
spree_api-4.5.3 app/serializers/spree/api/v2/platform/order_serializer.rb