module Comee module Core class ClientSerializer < ActiveModel::Serializer attributes :id, :code, :name, :match_code, :address, :locale, :user_id, :user_name, :parent_id, :consignees, :shipment_addresses, :tax_code, :vat_number, :currency, :print_details belongs_to :parent belongs_to :country has_many :agents has_many :contacts has_many :client_warehouses end end end