Sha256: 139d71f803984f16e90d8777b430846dc0027f3f2242bcbe9a5e9571dbc5c9e7

Contents?: true

Size: 456 Bytes

Versions: 9

Compression:

Stored size: 456 Bytes

Contents

require "net/http"
require "uri"

module Maxipago
  module RequestBuilder
    class RapiRequest < Maxipago::RequestBuilder::Request
      URL = ENV['MP_URL_RAPI'] || "https://testapi.maxipago.net/ReportsAPI/servlet/ReportsAPI"

      private

      def set_uri
        @uri = URI.parse(opts)
      end

      def build_xml(opts)
        Maxipago::XmlBuilder::BuilderRapi.new(@maxipagoId, @apiKey, @apiVersion, opts).get_xml_data
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
maxipago-0.1.15 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.14 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.13 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.12 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.11 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.10 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.9 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.8 lib/maxipago/request_builder/rapi_request.rb
maxipago-0.1.7 lib/maxipago/request_builder/rapi_request.rb