Sha256: 4238cfbd372c23f18a93c28e28768d9e6704d67460b8a3d5797db5eb1c9d8bc9

Contents?: true

Size: 1.28 KB

Versions: 2

Compression:

Stored size: 1.28 KB

Contents

module Lenddo
  class ScoreService
    def application_score(application_id, partnerscript_id)
      signed_request(
        method: "GET",
        host: Lenddo.configuration.score_service,
        path: "/ClientScore/#{application_id}",
        params: {
          partner_script_id: partnerscript_id
        }
      )
    end

    def application_multiple_scores(application_id, partnerscript_id)
      signed_request(
        method: "GET",
        host: Lenddo.configuration.score_service,
        path: "/ApplicationMultipleScores/#{application_id}",
        params: {
          partner_script_id: partnerscript_id
        }
      )
    end

    def application_verification(application_id, partnerscript_id)
      signed_request(
        method: "GET",
        host: Lenddo.configuration.score_service,
        path: "/ClientVerification/#{application_id}",
        params: {
          partner_script_id: partnerscript_id
        }
      )
    end

    def application_decision(application_id, partnerscript_id)
      signed_request(
        method: "GET",
        host: Lenddo.configuration.score_service,
        path: "/ApplicationDecision/#{application_id}",
        params: {
          partner_script_id: partnerscript_id
        }
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lenddo-2.1.0 lib/lenddo/score_service/self.rb
lenddo-2.0.0 lib/lenddo/score_service/self.rb