module Vtex
  class SalesChannelResource < ResourceKit::Resource
    resources do
      action :sales_channel_list, 'GET /api/catalog_system/pvt/saleschannel/list' do
        handler(200) { |response| SaleChannelMapping.extract_collection(response.body, :read) }
      end

      action :sales_channel_by_id, 'GET /api/catalog_system/pub/saleschannel/:sales_channel_id' do
        handler(200) { |response| SaleChannelMapping.extract_single(response.body, :read) }
      end
    end
  end
end

module Vtex
  class SalesChannelResource < ResourceKit::Resource
    resources do
      action :sales_channel_list, 'GET /api/catalog_system/pvt/saleschannel/list' do
        handler(200) { |response| SaleChannelMapping.extract_collection(response.body, :read) }
      end
    end
  end
end

Revert "Sales Channel By Id"
Revert "Sales Channel By Id"

This reverts commit 7a0c194d52279a0565b5238c01c9aa51c28bb447.
