class Suppliers::SupplierSerializer
  include Qwaiter::SupplierBaseSerializer
  attributes :open, :name, :email, :lat, :lng, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
    :facebook_promotion_url, :iens_profile, :week_starts_on_monday, :orders_in_process_count, :orders_placed_count, :user_message

  has_many :sections, serializer: Suppliers::SectionSerializer
  has_many :product_categories, serializer: Suppliers::ProductCategorySerializer
  has_many :employees, serializer: Suppliers::EmployeeSerializer
end
