Sha256: 42cb9c3cd116dff6aff767ccec7599e188a16bdc5e0746dbb0e0464d4e6c4714

Contents?: true

Size: 1.13 KB

Versions: 12

Compression:

Stored size: 1.13 KB

Contents

module Biro
  module Bvs
    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
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
biro-0.7.1 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.7.0 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.6.10 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.6.9 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.6.8 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.6.7 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.6.6 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.6.5 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.6.4 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.6.3 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.6.2 lib/biro/gateways/bvs/builders/score_request_builder.rb
biro-0.6.1 lib/biro/gateways/bvs/builders/score_request_builder.rb