module Ripley
  class BatchGetPayoutType < Ripley::Base

    attributes :payout_types

    def self.call(user_ids)
      response = twirp_client.batch_get_payout_type(channel_ids: user_ids)
      raise response.error.msg if response.error
      self.from_twirp_object(response.data).payout_types
    end

  end
end
