class APIEntreprise::AttestationSocialeAdapter < APIEntreprise::Adapter
  def initialize(siret, procedure_id)
    @siret = siret
    @procedure_id = procedure_id
  end

  private

  def get_resource
    APIEntreprise::API.attestation_sociale(siren, @procedure_id)
  end

  def process_params
    if data_source[:url].present?
      {
        entreprise_attestation_sociale_url: data_source[:url]
      }
    else
      {}
    end
  end
end
