Sha256: ddcc44e98279126691dcd558388545e80644d59582636797f4523af7af0e8fa7

Contents?: true

Size: 442 Bytes

Versions: 5

Compression:

Stored size: 442 Bytes

Contents

module Gateway
  class TrailerParser
    def Parse(elements)
      if elements.length < 5
        throw('The expected parameter count is 5')
      end

      trailer = Trailer.new
      trailer.OrderDataCount = elements[1]
      trailer.CreditCardTransactionDataCount = elements[2]
      trailer.BoletoTransactionDataCount = elements[3]
      trailer.OnlineDebitTransactionDataCount = elements[4].chomp

      return trailer
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mundipagg_sdk-1.4.1 lib/gateway/Parsers/trailer_parser.rb
stone_ecommerce-1.4.0 lib/gateway/Parsers/trailer_parser.rb
mundipagg_sdk-1.4.0 lib/gateway/Parsers/trailer_parser.rb
stone_ecommerce-1.3.0 lib/gateway/Parsers/trailer_parser.rb
stone_ecommerce-1.2.3 lib/gateway/Parsers/trailer_parser.rb