Sha256: 62f68496aefd2c18418b6ff76db2b381a4ba4a62bbfff1bf522785fc4446a796

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

Contents

class ScoreRequestBuilder < BaseBuilder
  def build
    @parameters = {
      transaction: { size: 8, type: "T", value: "CSR60" },
      version:  { size: 2, type: "T", value: "01" },
      reserved_applicant: { size: 10, type: "T", value: "" },
      reserved_bvs: { size: 20, type: "T", value: "" },
      service_code: { size: 8, type: "N", value: @username },
      password: { size: 8, type: "T", value: @password },
      search_type: { size: 8, type: "T", value: "SCORE" },
      search_version: { size: 2, type: "T", value: "04" },
      response_type: { size: 1, type: "T", value: "2" },
      response_trans_type: { size: 1, type: "T", value: "C" },
      document_type: { size: 1, type: "T", value: "1" },
      document: { size: 14, type: "N", value: @document },
      score_model: { size: 2, type: "T", value: "63" },
      source_cep: { size: 8, type: "N", value: "" },
      facilitator_code: { size: 8, type: "N", value: "" },
      finish_marker: { size: 1, type: "T", value: "X" }
    }

    build_string
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
biro-0.5.1 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.4.1 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.4.0 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.3.0 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.2.0 lib/biro/gateways/bvs/builders/score_request_builder.rb