pier-sdk-ruby 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +141 -0
 - data/docs/AuthToken.md +12 -0
 - data/docs/BodyAccessToken.md +10 -0
 - data/docs/CancelarCartaoResponse.md +11 -0
 - data/docs/CartaoApi.md +252 -0
 - data/docs/CartaoResponse.md +29 -0
 - data/docs/ConsultarCartaoResponse.md +10 -0
 - data/docs/ConsultarContaCartaoResponse.md +18 -0
 - data/docs/ConsultarContaResponse.md +11 -0
 - data/docs/ConsultarExtratoContaResponse.md +23 -0
 - data/docs/ConsultarSaldoLimitesResponse.md +23 -0
 - data/docs/ContaApi.md +238 -0
 - data/docs/ContaCartaoResponse.md +21 -0
 - data/docs/ContaResponse.md +41 -0
 - data/docs/DesbloquearCartaoResponse.md +9 -0
 - data/docs/ExtraInfo.md +8 -0
 - data/docs/ExtratoResponse.md +35 -0
 - data/docs/PessoaFisicaResponse.md +26 -0
 - data/docs/SaldoLimiteResponse.md +39 -0
 - data/docs/TokenApi.md +114 -0
 - data/git_push.sh +52 -0
 - data/lib/pier-sdk-ruby.rb +62 -0
 - data/lib/pier-sdk-ruby/api/cartao_api.rb +355 -0
 - data/lib/pier-sdk-ruby/api/conta_api.rb +324 -0
 - data/lib/pier-sdk-ruby/api/token_api.rb +157 -0
 - data/lib/pier-sdk-ruby/api_client.rb +368 -0
 - data/lib/pier-sdk-ruby/api_error.rb +40 -0
 - data/lib/pier-sdk-ruby/configuration.rb +177 -0
 - data/lib/pier-sdk-ruby/models/auth_token.rb +325 -0
 - data/lib/pier-sdk-ruby/models/body_access_token.rb +275 -0
 - data/lib/pier-sdk-ruby/models/cancelar_cartao_response.rb +286 -0
 - data/lib/pier-sdk-ruby/models/cartao_response.rb +736 -0
 - data/lib/pier-sdk-ruby/models/consultar_cartao_response.rb +263 -0
 - data/lib/pier-sdk-ruby/models/consultar_conta_cartao_response.rb +461 -0
 - data/lib/pier-sdk-ruby/models/consultar_conta_response.rb +288 -0
 - data/lib/pier-sdk-ruby/models/consultar_extrato_conta_response.rb +588 -0
 - data/lib/pier-sdk-ruby/models/consultar_saldo_limites_response.rb +586 -0
 - data/lib/pier-sdk-ruby/models/conta_cartao_response.rb +536 -0
 - data/lib/pier-sdk-ruby/models/conta_response.rb +1036 -0
 - data/lib/pier-sdk-ruby/models/desbloquear_cartao_response.rb +236 -0
 - data/lib/pier-sdk-ruby/models/extra_info.rb +211 -0
 - data/lib/pier-sdk-ruby/models/extrato_response.rb +886 -0
 - data/lib/pier-sdk-ruby/models/pessoa_fisica_response.rb +661 -0
 - data/lib/pier-sdk-ruby/models/saldo_limite_response.rb +986 -0
 - data/lib/pier-sdk-ruby/version.rb +19 -0
 - data/pier-sdk-ruby.gemspec +33 -0
 - data/spec/api/cartao_api_spec.rb +110 -0
 - data/spec/api/conta_api_spec.rb +107 -0
 - data/spec/api/token_api_spec.rb +71 -0
 - data/spec/models/auth_token_spec.rb +90 -0
 - data/spec/models/body_access_token_spec.rb +70 -0
 - data/spec/models/cancelar_cartao_response_spec.rb +80 -0
 - data/spec/models/cartao_response_spec.rb +260 -0
 - data/spec/models/consultar_cartao_response_spec.rb +70 -0
 - data/spec/models/consultar_conta_cartao_response_spec.rb +150 -0
 - data/spec/models/consultar_conta_response_spec.rb +80 -0
 - data/spec/models/consultar_extrato_conta_response_spec.rb +200 -0
 - data/spec/models/consultar_saldo_limites_response_spec.rb +200 -0
 - data/spec/models/conta_cartao_response_spec.rb +180 -0
 - data/spec/models/conta_response_spec.rb +380 -0
 - data/spec/models/desbloquear_cartao_response_spec.rb +60 -0
 - data/spec/models/extra_info_spec.rb +50 -0
 - data/spec/models/extrato_response_spec.rb +320 -0
 - data/spec/models/pessoa_fisica_response_spec.rb +230 -0
 - data/spec/models/saldo_limite_response_spec.rb +360 -0
 - metadata +310 -0
 
| 
         @@ -0,0 +1,324 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            =begin
         
     | 
| 
      
 2 
     | 
    
         
            +
            CaaS - Conductor as a Service
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            Gest\u00C3\u00A3o de pagamento eletr\u00C3\u00B4nicos como servi\u00C3\u00A7o
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            OpenAPI spec version: 0.0.1
         
     | 
| 
      
 7 
     | 
    
         
            +
            Contact: contato@conductor.com.br
         
     | 
| 
      
 8 
     | 
    
         
            +
            Generated by: https://github.com/swagger-api/swagger-codegen.git
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            License: Apache 2.0
         
     | 
| 
      
 11 
     | 
    
         
            +
            http://www.apache.org/licenses/LICENSE-2.0.html
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            Terms of Service: http://dev.conductor.com.br/terms/
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            =end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            require "uri"
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            module Pier
         
     | 
| 
      
 20 
     | 
    
         
            +
              class ContaApi
         
     | 
| 
      
 21 
     | 
    
         
            +
                attr_accessor :api_client
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                def initialize(api_client = ApiClient.default)
         
     | 
| 
      
 24 
     | 
    
         
            +
                  @api_client = api_client
         
     | 
| 
      
 25 
     | 
    
         
            +
                end
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                # /contas/buscar
         
     | 
| 
      
 28 
     | 
    
         
            +
                # Consulte contas filtrando pelos campos id do emissor, n\u00C3\u00BAmero do cart\u00C3\u00A3o, nome ou CPF/CNPJ 
         
     | 
| 
      
 29 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 30 
     | 
    
         
            +
                # @option opts [String] :nome Nome
         
     | 
| 
      
 31 
     | 
    
         
            +
                # @option opts [String] :cpf CPF (opcional caso nao informe o n\u00C3\u00BAmero do cart\u00C3\u00A3o ou id da conta)
         
     | 
| 
      
 32 
     | 
    
         
            +
                # @option opts [String] :numero_cartao N\u00C3\u00BAmero do cart\u00C3\u00A3o (opcional caso n\u00C3\u00A3o informa o cpf ou id da conta)
         
     | 
| 
      
 33 
     | 
    
         
            +
                # @option opts [Integer] :id_conta ID da Conta (opcional caso n\u00C3\u00A3o informe o n\u00C3\u00BAmero do cart\u00C3\u00A3o ou cpf)
         
     | 
| 
      
 34 
     | 
    
         
            +
                # @return [ConsultarContaResponse]
         
     | 
| 
      
 35 
     | 
    
         
            +
                def buscar_conta_using_get(opts = {})
         
     | 
| 
      
 36 
     | 
    
         
            +
                  data, _status_code, _headers = buscar_conta_using_get_with_http_info(opts)
         
     | 
| 
      
 37 
     | 
    
         
            +
                  return data
         
     | 
| 
      
 38 
     | 
    
         
            +
                end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
                # /contas/buscar
         
     | 
| 
      
 41 
     | 
    
         
            +
                # Consulte contas filtrando pelos campos id do emissor, n\u00C3\u00BAmero do cart\u00C3\u00A3o, nome ou CPF/CNPJ 
         
     | 
| 
      
 42 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 43 
     | 
    
         
            +
                # @option opts [String] :nome Nome
         
     | 
| 
      
 44 
     | 
    
         
            +
                # @option opts [String] :cpf CPF (opcional caso nao informe o n\u00C3\u00BAmero do cart\u00C3\u00A3o ou id da conta)
         
     | 
| 
      
 45 
     | 
    
         
            +
                # @option opts [String] :numero_cartao N\u00C3\u00BAmero do cart\u00C3\u00A3o (opcional caso n\u00C3\u00A3o informa o cpf ou id da conta)
         
     | 
| 
      
 46 
     | 
    
         
            +
                # @option opts [Integer] :id_conta ID da Conta (opcional caso n\u00C3\u00A3o informe o n\u00C3\u00BAmero do cart\u00C3\u00A3o ou cpf)
         
     | 
| 
      
 47 
     | 
    
         
            +
                # @return [Array<(ConsultarContaResponse, Fixnum, Hash)>] ConsultarContaResponse data, response status code and response headers
         
     | 
| 
      
 48 
     | 
    
         
            +
                def buscar_conta_using_get_with_http_info(opts = {})
         
     | 
| 
      
 49 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 50 
     | 
    
         
            +
                    @api_client.config.logger.debug "Calling API: ContaApi.buscar_conta_using_get ..."
         
     | 
| 
      
 51 
     | 
    
         
            +
                  end
         
     | 
| 
      
 52 
     | 
    
         
            +
                  
         
     | 
| 
      
 53 
     | 
    
         
            +
                  
         
     | 
| 
      
 54 
     | 
    
         
            +
                  
         
     | 
| 
      
 55 
     | 
    
         
            +
                  
         
     | 
| 
      
 56 
     | 
    
         
            +
                  
         
     | 
| 
      
 57 
     | 
    
         
            +
                  
         
     | 
| 
      
 58 
     | 
    
         
            +
                  
         
     | 
| 
      
 59 
     | 
    
         
            +
                  
         
     | 
| 
      
 60 
     | 
    
         
            +
                  
         
     | 
| 
      
 61 
     | 
    
         
            +
                  
         
     | 
| 
      
 62 
     | 
    
         
            +
                  
         
     | 
| 
      
 63 
     | 
    
         
            +
                  
         
     | 
| 
      
 64 
     | 
    
         
            +
                  
         
     | 
| 
      
 65 
     | 
    
         
            +
                  
         
     | 
| 
      
 66 
     | 
    
         
            +
                  
         
     | 
| 
      
 67 
     | 
    
         
            +
                  
         
     | 
| 
      
 68 
     | 
    
         
            +
                  
         
     | 
| 
      
 69 
     | 
    
         
            +
                  
         
     | 
| 
      
 70 
     | 
    
         
            +
                  
         
     | 
| 
      
 71 
     | 
    
         
            +
                  
         
     | 
| 
      
 72 
     | 
    
         
            +
                  
         
     | 
| 
      
 73 
     | 
    
         
            +
                  
         
     | 
| 
      
 74 
     | 
    
         
            +
                  
         
     | 
| 
      
 75 
     | 
    
         
            +
                  
         
     | 
| 
      
 76 
     | 
    
         
            +
                  
         
     | 
| 
      
 77 
     | 
    
         
            +
                  # resource path
         
     | 
| 
      
 78 
     | 
    
         
            +
                  local_var_path = "/v1/contas/buscar".sub('{format}','json')
         
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
                  # query parameters
         
     | 
| 
      
 81 
     | 
    
         
            +
                  query_params = {}
         
     | 
| 
      
 82 
     | 
    
         
            +
                  query_params[:'nome'] = opts[:'nome'] if opts[:'nome']
         
     | 
| 
      
 83 
     | 
    
         
            +
                  query_params[:'cpf'] = opts[:'cpf'] if opts[:'cpf']
         
     | 
| 
      
 84 
     | 
    
         
            +
                  query_params[:'numeroCartao'] = opts[:'numero_cartao'] if opts[:'numero_cartao']
         
     | 
| 
      
 85 
     | 
    
         
            +
                  query_params[:'idConta'] = opts[:'id_conta'] if opts[:'id_conta']
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
                  # header parameters
         
     | 
| 
      
 88 
     | 
    
         
            +
                  header_params = {}
         
     | 
| 
      
 89 
     | 
    
         
            +
             
     | 
| 
      
 90 
     | 
    
         
            +
                  # HTTP header 'Accept' (if needed)
         
     | 
| 
      
 91 
     | 
    
         
            +
                  local_header_accept = ['application/json']
         
     | 
| 
      
 92 
     | 
    
         
            +
                  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
         
     | 
| 
      
 93 
     | 
    
         
            +
             
     | 
| 
      
 94 
     | 
    
         
            +
                  # HTTP header 'Content-Type'
         
     | 
| 
      
 95 
     | 
    
         
            +
                  local_header_content_type = ['application/json']
         
     | 
| 
      
 96 
     | 
    
         
            +
                  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
                  # form parameters
         
     | 
| 
      
 99 
     | 
    
         
            +
                  form_params = {}
         
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
                  # http body (model)
         
     | 
| 
      
 102 
     | 
    
         
            +
                  post_body = nil
         
     | 
| 
      
 103 
     | 
    
         
            +
                  
         
     | 
| 
      
 104 
     | 
    
         
            +
                  auth_names = ['access_token']
         
     | 
| 
      
 105 
     | 
    
         
            +
                  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
         
     | 
| 
      
 106 
     | 
    
         
            +
                    :header_params => header_params,
         
     | 
| 
      
 107 
     | 
    
         
            +
                    :query_params => query_params,
         
     | 
| 
      
 108 
     | 
    
         
            +
                    :form_params => form_params,
         
     | 
| 
      
 109 
     | 
    
         
            +
                    :body => post_body,
         
     | 
| 
      
 110 
     | 
    
         
            +
                    :auth_names => auth_names,
         
     | 
| 
      
 111 
     | 
    
         
            +
                    :return_type => 'ConsultarContaResponse')
         
     | 
| 
      
 112 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 113 
     | 
    
         
            +
                    @api_client.config.logger.debug "API called: ContaApi#buscar_conta_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
         
     | 
| 
      
 114 
     | 
    
         
            +
                  end
         
     | 
| 
      
 115 
     | 
    
         
            +
                  return data, status_code, headers
         
     | 
| 
      
 116 
     | 
    
         
            +
                end
         
     | 
| 
      
 117 
     | 
    
         
            +
             
     | 
| 
      
 118 
     | 
    
         
            +
                # /contas/{idConta}
         
     | 
| 
      
 119 
     | 
    
         
            +
                # Consulte informa\u00C3\u00A7\u00C3\u00B5es de uma determinada conta
         
     | 
| 
      
 120 
     | 
    
         
            +
                # @param id_conta ID da Conta
         
     | 
| 
      
 121 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 122 
     | 
    
         
            +
                # @return [ContaResponse]
         
     | 
| 
      
 123 
     | 
    
         
            +
                def consultar_conta_using_get(id_conta, opts = {})
         
     | 
| 
      
 124 
     | 
    
         
            +
                  data, _status_code, _headers = consultar_conta_using_get_with_http_info(id_conta, opts)
         
     | 
| 
      
 125 
     | 
    
         
            +
                  return data
         
     | 
| 
      
 126 
     | 
    
         
            +
                end
         
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
      
 128 
     | 
    
         
            +
                # /contas/{idConta}
         
     | 
| 
      
 129 
     | 
    
         
            +
                # Consulte informa\u00C3\u00A7\u00C3\u00B5es de uma determinada conta
         
     | 
| 
      
 130 
     | 
    
         
            +
                # @param id_conta ID da Conta
         
     | 
| 
      
 131 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 132 
     | 
    
         
            +
                # @return [Array<(ContaResponse, Fixnum, Hash)>] ContaResponse data, response status code and response headers
         
     | 
| 
      
 133 
     | 
    
         
            +
                def consultar_conta_using_get_with_http_info(id_conta, opts = {})
         
     | 
| 
      
 134 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 135 
     | 
    
         
            +
                    @api_client.config.logger.debug "Calling API: ContaApi.consultar_conta_using_get ..."
         
     | 
| 
      
 136 
     | 
    
         
            +
                  end
         
     | 
| 
      
 137 
     | 
    
         
            +
                  
         
     | 
| 
      
 138 
     | 
    
         
            +
                  
         
     | 
| 
      
 139 
     | 
    
         
            +
                  # verify the required parameter 'id_conta' is set
         
     | 
| 
      
 140 
     | 
    
         
            +
                  fail ArgumentError, "Missing the required parameter 'id_conta' when calling ContaApi.consultar_conta_using_get" if id_conta.nil?
         
     | 
| 
      
 141 
     | 
    
         
            +
                  
         
     | 
| 
      
 142 
     | 
    
         
            +
                  
         
     | 
| 
      
 143 
     | 
    
         
            +
                  
         
     | 
| 
      
 144 
     | 
    
         
            +
                  
         
     | 
| 
      
 145 
     | 
    
         
            +
                  
         
     | 
| 
      
 146 
     | 
    
         
            +
                  # resource path
         
     | 
| 
      
 147 
     | 
    
         
            +
                  local_var_path = "/v1/contas/{idConta}".sub('{format}','json').sub('{' + 'idConta' + '}', id_conta.to_s)
         
     | 
| 
      
 148 
     | 
    
         
            +
             
     | 
| 
      
 149 
     | 
    
         
            +
                  # query parameters
         
     | 
| 
      
 150 
     | 
    
         
            +
                  query_params = {}
         
     | 
| 
      
 151 
     | 
    
         
            +
             
     | 
| 
      
 152 
     | 
    
         
            +
                  # header parameters
         
     | 
| 
      
 153 
     | 
    
         
            +
                  header_params = {}
         
     | 
| 
      
 154 
     | 
    
         
            +
             
     | 
| 
      
 155 
     | 
    
         
            +
                  # HTTP header 'Accept' (if needed)
         
     | 
| 
      
 156 
     | 
    
         
            +
                  local_header_accept = ['application/json']
         
     | 
| 
      
 157 
     | 
    
         
            +
                  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
         
     | 
| 
      
 158 
     | 
    
         
            +
             
     | 
| 
      
 159 
     | 
    
         
            +
                  # HTTP header 'Content-Type'
         
     | 
| 
      
 160 
     | 
    
         
            +
                  local_header_content_type = ['application/json']
         
     | 
| 
      
 161 
     | 
    
         
            +
                  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
         
     | 
| 
      
 162 
     | 
    
         
            +
             
     | 
| 
      
 163 
     | 
    
         
            +
                  # form parameters
         
     | 
| 
      
 164 
     | 
    
         
            +
                  form_params = {}
         
     | 
| 
      
 165 
     | 
    
         
            +
             
     | 
| 
      
 166 
     | 
    
         
            +
                  # http body (model)
         
     | 
| 
      
 167 
     | 
    
         
            +
                  post_body = nil
         
     | 
| 
      
 168 
     | 
    
         
            +
                  
         
     | 
| 
      
 169 
     | 
    
         
            +
                  auth_names = ['access_token']
         
     | 
| 
      
 170 
     | 
    
         
            +
                  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
         
     | 
| 
      
 171 
     | 
    
         
            +
                    :header_params => header_params,
         
     | 
| 
      
 172 
     | 
    
         
            +
                    :query_params => query_params,
         
     | 
| 
      
 173 
     | 
    
         
            +
                    :form_params => form_params,
         
     | 
| 
      
 174 
     | 
    
         
            +
                    :body => post_body,
         
     | 
| 
      
 175 
     | 
    
         
            +
                    :auth_names => auth_names,
         
     | 
| 
      
 176 
     | 
    
         
            +
                    :return_type => 'ContaResponse')
         
     | 
| 
      
 177 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 178 
     | 
    
         
            +
                    @api_client.config.logger.debug "API called: ContaApi#consultar_conta_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
         
     | 
| 
      
 179 
     | 
    
         
            +
                  end
         
     | 
| 
      
 180 
     | 
    
         
            +
                  return data, status_code, headers
         
     | 
| 
      
 181 
     | 
    
         
            +
                end
         
     | 
| 
      
 182 
     | 
    
         
            +
             
     | 
| 
      
 183 
     | 
    
         
            +
                # /contas/{idConta}/faturas
         
     | 
| 
      
 184 
     | 
    
         
            +
                # Consulte os extratos/faturas de uma determinada conta
         
     | 
| 
      
 185 
     | 
    
         
            +
                # @param id_conta ID da Conta
         
     | 
| 
      
 186 
     | 
    
         
            +
                # @param data_vencimento Data limite para o vencimento das transa\u00C3\u00A7\u00C3\u00B5es
         
     | 
| 
      
 187 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 188 
     | 
    
         
            +
                # @return [ConsultarExtratoContaResponse]
         
     | 
| 
      
 189 
     | 
    
         
            +
                def consultar_extrato_faturas_using_get(id_conta, data_vencimento, opts = {})
         
     | 
| 
      
 190 
     | 
    
         
            +
                  data, _status_code, _headers = consultar_extrato_faturas_using_get_with_http_info(id_conta, data_vencimento, opts)
         
     | 
| 
      
 191 
     | 
    
         
            +
                  return data
         
     | 
| 
      
 192 
     | 
    
         
            +
                end
         
     | 
| 
      
 193 
     | 
    
         
            +
             
     | 
| 
      
 194 
     | 
    
         
            +
                # /contas/{idConta}/faturas
         
     | 
| 
      
 195 
     | 
    
         
            +
                # Consulte os extratos/faturas de uma determinada conta
         
     | 
| 
      
 196 
     | 
    
         
            +
                # @param id_conta ID da Conta
         
     | 
| 
      
 197 
     | 
    
         
            +
                # @param data_vencimento Data limite para o vencimento das transa\u00C3\u00A7\u00C3\u00B5es
         
     | 
| 
      
 198 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 199 
     | 
    
         
            +
                # @return [Array<(ConsultarExtratoContaResponse, Fixnum, Hash)>] ConsultarExtratoContaResponse data, response status code and response headers
         
     | 
| 
      
 200 
     | 
    
         
            +
                def consultar_extrato_faturas_using_get_with_http_info(id_conta, data_vencimento, opts = {})
         
     | 
| 
      
 201 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 202 
     | 
    
         
            +
                    @api_client.config.logger.debug "Calling API: ContaApi.consultar_extrato_faturas_using_get ..."
         
     | 
| 
      
 203 
     | 
    
         
            +
                  end
         
     | 
| 
      
 204 
     | 
    
         
            +
                  
         
     | 
| 
      
 205 
     | 
    
         
            +
                  
         
     | 
| 
      
 206 
     | 
    
         
            +
                  # verify the required parameter 'id_conta' is set
         
     | 
| 
      
 207 
     | 
    
         
            +
                  fail ArgumentError, "Missing the required parameter 'id_conta' when calling ContaApi.consultar_extrato_faturas_using_get" if id_conta.nil?
         
     | 
| 
      
 208 
     | 
    
         
            +
                  
         
     | 
| 
      
 209 
     | 
    
         
            +
                  
         
     | 
| 
      
 210 
     | 
    
         
            +
                  
         
     | 
| 
      
 211 
     | 
    
         
            +
                  
         
     | 
| 
      
 212 
     | 
    
         
            +
                  
         
     | 
| 
      
 213 
     | 
    
         
            +
                  
         
     | 
| 
      
 214 
     | 
    
         
            +
                  # verify the required parameter 'data_vencimento' is set
         
     | 
| 
      
 215 
     | 
    
         
            +
                  fail ArgumentError, "Missing the required parameter 'data_vencimento' when calling ContaApi.consultar_extrato_faturas_using_get" if data_vencimento.nil?
         
     | 
| 
      
 216 
     | 
    
         
            +
                  
         
     | 
| 
      
 217 
     | 
    
         
            +
                  
         
     | 
| 
      
 218 
     | 
    
         
            +
                  
         
     | 
| 
      
 219 
     | 
    
         
            +
                  
         
     | 
| 
      
 220 
     | 
    
         
            +
                  
         
     | 
| 
      
 221 
     | 
    
         
            +
                  # resource path
         
     | 
| 
      
 222 
     | 
    
         
            +
                  local_var_path = "/v1/contas/{idConta}/faturas".sub('{format}','json').sub('{' + 'idConta' + '}', id_conta.to_s)
         
     | 
| 
      
 223 
     | 
    
         
            +
             
     | 
| 
      
 224 
     | 
    
         
            +
                  # query parameters
         
     | 
| 
      
 225 
     | 
    
         
            +
                  query_params = {}
         
     | 
| 
      
 226 
     | 
    
         
            +
                  query_params[:'dataVencimento'] = data_vencimento
         
     | 
| 
      
 227 
     | 
    
         
            +
             
     | 
| 
      
 228 
     | 
    
         
            +
                  # header parameters
         
     | 
| 
      
 229 
     | 
    
         
            +
                  header_params = {}
         
     | 
| 
      
 230 
     | 
    
         
            +
             
     | 
| 
      
 231 
     | 
    
         
            +
                  # HTTP header 'Accept' (if needed)
         
     | 
| 
      
 232 
     | 
    
         
            +
                  local_header_accept = ['application/json']
         
     | 
| 
      
 233 
     | 
    
         
            +
                  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
         
     | 
| 
      
 234 
     | 
    
         
            +
             
     | 
| 
      
 235 
     | 
    
         
            +
                  # HTTP header 'Content-Type'
         
     | 
| 
      
 236 
     | 
    
         
            +
                  local_header_content_type = ['application/json']
         
     | 
| 
      
 237 
     | 
    
         
            +
                  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
         
     | 
| 
      
 238 
     | 
    
         
            +
             
     | 
| 
      
 239 
     | 
    
         
            +
                  # form parameters
         
     | 
| 
      
 240 
     | 
    
         
            +
                  form_params = {}
         
     | 
| 
      
 241 
     | 
    
         
            +
             
     | 
| 
      
 242 
     | 
    
         
            +
                  # http body (model)
         
     | 
| 
      
 243 
     | 
    
         
            +
                  post_body = nil
         
     | 
| 
      
 244 
     | 
    
         
            +
                  
         
     | 
| 
      
 245 
     | 
    
         
            +
                  auth_names = ['access_token']
         
     | 
| 
      
 246 
     | 
    
         
            +
                  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
         
     | 
| 
      
 247 
     | 
    
         
            +
                    :header_params => header_params,
         
     | 
| 
      
 248 
     | 
    
         
            +
                    :query_params => query_params,
         
     | 
| 
      
 249 
     | 
    
         
            +
                    :form_params => form_params,
         
     | 
| 
      
 250 
     | 
    
         
            +
                    :body => post_body,
         
     | 
| 
      
 251 
     | 
    
         
            +
                    :auth_names => auth_names,
         
     | 
| 
      
 252 
     | 
    
         
            +
                    :return_type => 'ConsultarExtratoContaResponse')
         
     | 
| 
      
 253 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 254 
     | 
    
         
            +
                    @api_client.config.logger.debug "API called: ContaApi#consultar_extrato_faturas_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
         
     | 
| 
      
 255 
     | 
    
         
            +
                  end
         
     | 
| 
      
 256 
     | 
    
         
            +
                  return data, status_code, headers
         
     | 
| 
      
 257 
     | 
    
         
            +
                end
         
     | 
| 
      
 258 
     | 
    
         
            +
             
     | 
| 
      
 259 
     | 
    
         
            +
                # /contas/{idConta}/limites
         
     | 
| 
      
 260 
     | 
    
         
            +
                # Consulte os limites de uma determinada conta
         
     | 
| 
      
 261 
     | 
    
         
            +
                # @param id_conta ID da Conta
         
     | 
| 
      
 262 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 263 
     | 
    
         
            +
                # @return [ConsultarSaldoLimitesResponse]
         
     | 
| 
      
 264 
     | 
    
         
            +
                def consultar_saldos_limites_using_get(id_conta, opts = {})
         
     | 
| 
      
 265 
     | 
    
         
            +
                  data, _status_code, _headers = consultar_saldos_limites_using_get_with_http_info(id_conta, opts)
         
     | 
| 
      
 266 
     | 
    
         
            +
                  return data
         
     | 
| 
      
 267 
     | 
    
         
            +
                end
         
     | 
| 
      
 268 
     | 
    
         
            +
             
     | 
| 
      
 269 
     | 
    
         
            +
                # /contas/{idConta}/limites
         
     | 
| 
      
 270 
     | 
    
         
            +
                # Consulte os limites de uma determinada conta
         
     | 
| 
      
 271 
     | 
    
         
            +
                # @param id_conta ID da Conta
         
     | 
| 
      
 272 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 273 
     | 
    
         
            +
                # @return [Array<(ConsultarSaldoLimitesResponse, Fixnum, Hash)>] ConsultarSaldoLimitesResponse data, response status code and response headers
         
     | 
| 
      
 274 
     | 
    
         
            +
                def consultar_saldos_limites_using_get_with_http_info(id_conta, opts = {})
         
     | 
| 
      
 275 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 276 
     | 
    
         
            +
                    @api_client.config.logger.debug "Calling API: ContaApi.consultar_saldos_limites_using_get ..."
         
     | 
| 
      
 277 
     | 
    
         
            +
                  end
         
     | 
| 
      
 278 
     | 
    
         
            +
                  
         
     | 
| 
      
 279 
     | 
    
         
            +
                  
         
     | 
| 
      
 280 
     | 
    
         
            +
                  # verify the required parameter 'id_conta' is set
         
     | 
| 
      
 281 
     | 
    
         
            +
                  fail ArgumentError, "Missing the required parameter 'id_conta' when calling ContaApi.consultar_saldos_limites_using_get" if id_conta.nil?
         
     | 
| 
      
 282 
     | 
    
         
            +
                  
         
     | 
| 
      
 283 
     | 
    
         
            +
                  
         
     | 
| 
      
 284 
     | 
    
         
            +
                  
         
     | 
| 
      
 285 
     | 
    
         
            +
                  
         
     | 
| 
      
 286 
     | 
    
         
            +
                  
         
     | 
| 
      
 287 
     | 
    
         
            +
                  # resource path
         
     | 
| 
      
 288 
     | 
    
         
            +
                  local_var_path = "/v1/contas/{idConta}/limites".sub('{format}','json').sub('{' + 'idConta' + '}', id_conta.to_s)
         
     | 
| 
      
 289 
     | 
    
         
            +
             
     | 
| 
      
 290 
     | 
    
         
            +
                  # query parameters
         
     | 
| 
      
 291 
     | 
    
         
            +
                  query_params = {}
         
     | 
| 
      
 292 
     | 
    
         
            +
             
     | 
| 
      
 293 
     | 
    
         
            +
                  # header parameters
         
     | 
| 
      
 294 
     | 
    
         
            +
                  header_params = {}
         
     | 
| 
      
 295 
     | 
    
         
            +
             
     | 
| 
      
 296 
     | 
    
         
            +
                  # HTTP header 'Accept' (if needed)
         
     | 
| 
      
 297 
     | 
    
         
            +
                  local_header_accept = ['application/json']
         
     | 
| 
      
 298 
     | 
    
         
            +
                  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
         
     | 
| 
      
 299 
     | 
    
         
            +
             
     | 
| 
      
 300 
     | 
    
         
            +
                  # HTTP header 'Content-Type'
         
     | 
| 
      
 301 
     | 
    
         
            +
                  local_header_content_type = ['application/json']
         
     | 
| 
      
 302 
     | 
    
         
            +
                  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
         
     | 
| 
      
 303 
     | 
    
         
            +
             
     | 
| 
      
 304 
     | 
    
         
            +
                  # form parameters
         
     | 
| 
      
 305 
     | 
    
         
            +
                  form_params = {}
         
     | 
| 
      
 306 
     | 
    
         
            +
             
     | 
| 
      
 307 
     | 
    
         
            +
                  # http body (model)
         
     | 
| 
      
 308 
     | 
    
         
            +
                  post_body = nil
         
     | 
| 
      
 309 
     | 
    
         
            +
                  
         
     | 
| 
      
 310 
     | 
    
         
            +
                  auth_names = ['access_token']
         
     | 
| 
      
 311 
     | 
    
         
            +
                  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
         
     | 
| 
      
 312 
     | 
    
         
            +
                    :header_params => header_params,
         
     | 
| 
      
 313 
     | 
    
         
            +
                    :query_params => query_params,
         
     | 
| 
      
 314 
     | 
    
         
            +
                    :form_params => form_params,
         
     | 
| 
      
 315 
     | 
    
         
            +
                    :body => post_body,
         
     | 
| 
      
 316 
     | 
    
         
            +
                    :auth_names => auth_names,
         
     | 
| 
      
 317 
     | 
    
         
            +
                    :return_type => 'ConsultarSaldoLimitesResponse')
         
     | 
| 
      
 318 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 319 
     | 
    
         
            +
                    @api_client.config.logger.debug "API called: ContaApi#consultar_saldos_limites_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
         
     | 
| 
      
 320 
     | 
    
         
            +
                  end
         
     | 
| 
      
 321 
     | 
    
         
            +
                  return data, status_code, headers
         
     | 
| 
      
 322 
     | 
    
         
            +
                end
         
     | 
| 
      
 323 
     | 
    
         
            +
              end
         
     | 
| 
      
 324 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,157 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            =begin
         
     | 
| 
      
 2 
     | 
    
         
            +
            CaaS - Conductor as a Service
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            Gest\u00C3\u00A3o de pagamento eletr\u00C3\u00B4nicos como servi\u00C3\u00A7o
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            OpenAPI spec version: 0.0.1
         
     | 
| 
      
 7 
     | 
    
         
            +
            Contact: contato@conductor.com.br
         
     | 
| 
      
 8 
     | 
    
         
            +
            Generated by: https://github.com/swagger-api/swagger-codegen.git
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            License: Apache 2.0
         
     | 
| 
      
 11 
     | 
    
         
            +
            http://www.apache.org/licenses/LICENSE-2.0.html
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            Terms of Service: http://dev.conductor.com.br/terms/
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            =end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            require "uri"
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            module Pier
         
     | 
| 
      
 20 
     | 
    
         
            +
              class TokenApi
         
     | 
| 
      
 21 
     | 
    
         
            +
                attr_accessor :api_client
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                def initialize(api_client = ApiClient.default)
         
     | 
| 
      
 24 
     | 
    
         
            +
                  @api_client = api_client
         
     | 
| 
      
 25 
     | 
    
         
            +
                end
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                # /tokens/callback
         
     | 
| 
      
 28 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29 
     | 
    
         
            +
                # @param body_access_token bodyAccessToken
         
     | 
| 
      
 30 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 31 
     | 
    
         
            +
                # @return [BodyAccessToken]
         
     | 
| 
      
 32 
     | 
    
         
            +
                def callback_using_post(body_access_token, opts = {})
         
     | 
| 
      
 33 
     | 
    
         
            +
                  data, _status_code, _headers = callback_using_post_with_http_info(body_access_token, opts)
         
     | 
| 
      
 34 
     | 
    
         
            +
                  return data
         
     | 
| 
      
 35 
     | 
    
         
            +
                end
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
                # /tokens/callback
         
     | 
| 
      
 38 
     | 
    
         
            +
                # 
         
     | 
| 
      
 39 
     | 
    
         
            +
                # @param body_access_token bodyAccessToken
         
     | 
| 
      
 40 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 41 
     | 
    
         
            +
                # @return [Array<(BodyAccessToken, Fixnum, Hash)>] BodyAccessToken data, response status code and response headers
         
     | 
| 
      
 42 
     | 
    
         
            +
                def callback_using_post_with_http_info(body_access_token, opts = {})
         
     | 
| 
      
 43 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 44 
     | 
    
         
            +
                    @api_client.config.logger.debug "Calling API: TokenApi.callback_using_post ..."
         
     | 
| 
      
 45 
     | 
    
         
            +
                  end
         
     | 
| 
      
 46 
     | 
    
         
            +
                  
         
     | 
| 
      
 47 
     | 
    
         
            +
                  
         
     | 
| 
      
 48 
     | 
    
         
            +
                  # verify the required parameter 'body_access_token' is set
         
     | 
| 
      
 49 
     | 
    
         
            +
                  fail ArgumentError, "Missing the required parameter 'body_access_token' when calling TokenApi.callback_using_post" if body_access_token.nil?
         
     | 
| 
      
 50 
     | 
    
         
            +
                  
         
     | 
| 
      
 51 
     | 
    
         
            +
                  
         
     | 
| 
      
 52 
     | 
    
         
            +
                  
         
     | 
| 
      
 53 
     | 
    
         
            +
                  
         
     | 
| 
      
 54 
     | 
    
         
            +
                  
         
     | 
| 
      
 55 
     | 
    
         
            +
                  # resource path
         
     | 
| 
      
 56 
     | 
    
         
            +
                  local_var_path = "/v1/tokens/callback".sub('{format}','json')
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
                  # query parameters
         
     | 
| 
      
 59 
     | 
    
         
            +
                  query_params = {}
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
      
 61 
     | 
    
         
            +
                  # header parameters
         
     | 
| 
      
 62 
     | 
    
         
            +
                  header_params = {}
         
     | 
| 
      
 63 
     | 
    
         
            +
             
     | 
| 
      
 64 
     | 
    
         
            +
                  # HTTP header 'Accept' (if needed)
         
     | 
| 
      
 65 
     | 
    
         
            +
                  local_header_accept = ['application/json']
         
     | 
| 
      
 66 
     | 
    
         
            +
                  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
         
     | 
| 
      
 67 
     | 
    
         
            +
             
     | 
| 
      
 68 
     | 
    
         
            +
                  # HTTP header 'Content-Type'
         
     | 
| 
      
 69 
     | 
    
         
            +
                  local_header_content_type = ['application/json']
         
     | 
| 
      
 70 
     | 
    
         
            +
                  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
         
     | 
| 
      
 71 
     | 
    
         
            +
             
     | 
| 
      
 72 
     | 
    
         
            +
                  # form parameters
         
     | 
| 
      
 73 
     | 
    
         
            +
                  form_params = {}
         
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
                  # http body (model)
         
     | 
| 
      
 76 
     | 
    
         
            +
                  post_body = @api_client.object_to_http_body(body_access_token)
         
     | 
| 
      
 77 
     | 
    
         
            +
                  
         
     | 
| 
      
 78 
     | 
    
         
            +
                  auth_names = ['access_token']
         
     | 
| 
      
 79 
     | 
    
         
            +
                  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
         
     | 
| 
      
 80 
     | 
    
         
            +
                    :header_params => header_params,
         
     | 
| 
      
 81 
     | 
    
         
            +
                    :query_params => query_params,
         
     | 
| 
      
 82 
     | 
    
         
            +
                    :form_params => form_params,
         
     | 
| 
      
 83 
     | 
    
         
            +
                    :body => post_body,
         
     | 
| 
      
 84 
     | 
    
         
            +
                    :auth_names => auth_names,
         
     | 
| 
      
 85 
     | 
    
         
            +
                    :return_type => 'BodyAccessToken')
         
     | 
| 
      
 86 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 87 
     | 
    
         
            +
                    @api_client.config.logger.debug "API called: TokenApi#callback_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
         
     | 
| 
      
 88 
     | 
    
         
            +
                  end
         
     | 
| 
      
 89 
     | 
    
         
            +
                  return data, status_code, headers
         
     | 
| 
      
 90 
     | 
    
         
            +
                end
         
     | 
| 
      
 91 
     | 
    
         
            +
             
     | 
| 
      
 92 
     | 
    
         
            +
                # /tokens/validar
         
     | 
| 
      
 93 
     | 
    
         
            +
                # 
         
     | 
| 
      
 94 
     | 
    
         
            +
                # @param body_access_token bodyAccessToken
         
     | 
| 
      
 95 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 96 
     | 
    
         
            +
                # @return [Object]
         
     | 
| 
      
 97 
     | 
    
         
            +
                def validar_using_post(body_access_token, opts = {})
         
     | 
| 
      
 98 
     | 
    
         
            +
                  data, _status_code, _headers = validar_using_post_with_http_info(body_access_token, opts)
         
     | 
| 
      
 99 
     | 
    
         
            +
                  return data
         
     | 
| 
      
 100 
     | 
    
         
            +
                end
         
     | 
| 
      
 101 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
                # /tokens/validar
         
     | 
| 
      
 103 
     | 
    
         
            +
                # 
         
     | 
| 
      
 104 
     | 
    
         
            +
                # @param body_access_token bodyAccessToken
         
     | 
| 
      
 105 
     | 
    
         
            +
                # @param [Hash] opts the optional parameters
         
     | 
| 
      
 106 
     | 
    
         
            +
                # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
         
     | 
| 
      
 107 
     | 
    
         
            +
                def validar_using_post_with_http_info(body_access_token, opts = {})
         
     | 
| 
      
 108 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 109 
     | 
    
         
            +
                    @api_client.config.logger.debug "Calling API: TokenApi.validar_using_post ..."
         
     | 
| 
      
 110 
     | 
    
         
            +
                  end
         
     | 
| 
      
 111 
     | 
    
         
            +
                  
         
     | 
| 
      
 112 
     | 
    
         
            +
                  
         
     | 
| 
      
 113 
     | 
    
         
            +
                  # verify the required parameter 'body_access_token' is set
         
     | 
| 
      
 114 
     | 
    
         
            +
                  fail ArgumentError, "Missing the required parameter 'body_access_token' when calling TokenApi.validar_using_post" if body_access_token.nil?
         
     | 
| 
      
 115 
     | 
    
         
            +
                  
         
     | 
| 
      
 116 
     | 
    
         
            +
                  
         
     | 
| 
      
 117 
     | 
    
         
            +
                  
         
     | 
| 
      
 118 
     | 
    
         
            +
                  
         
     | 
| 
      
 119 
     | 
    
         
            +
                  
         
     | 
| 
      
 120 
     | 
    
         
            +
                  # resource path
         
     | 
| 
      
 121 
     | 
    
         
            +
                  local_var_path = "/v1/tokens/validar".sub('{format}','json')
         
     | 
| 
      
 122 
     | 
    
         
            +
             
     | 
| 
      
 123 
     | 
    
         
            +
                  # query parameters
         
     | 
| 
      
 124 
     | 
    
         
            +
                  query_params = {}
         
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
      
 126 
     | 
    
         
            +
                  # header parameters
         
     | 
| 
      
 127 
     | 
    
         
            +
                  header_params = {}
         
     | 
| 
      
 128 
     | 
    
         
            +
             
     | 
| 
      
 129 
     | 
    
         
            +
                  # HTTP header 'Accept' (if needed)
         
     | 
| 
      
 130 
     | 
    
         
            +
                  local_header_accept = ['application/json']
         
     | 
| 
      
 131 
     | 
    
         
            +
                  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
         
     | 
| 
      
 132 
     | 
    
         
            +
             
     | 
| 
      
 133 
     | 
    
         
            +
                  # HTTP header 'Content-Type'
         
     | 
| 
      
 134 
     | 
    
         
            +
                  local_header_content_type = ['application/json']
         
     | 
| 
      
 135 
     | 
    
         
            +
                  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
         
     | 
| 
      
 136 
     | 
    
         
            +
             
     | 
| 
      
 137 
     | 
    
         
            +
                  # form parameters
         
     | 
| 
      
 138 
     | 
    
         
            +
                  form_params = {}
         
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
      
 140 
     | 
    
         
            +
                  # http body (model)
         
     | 
| 
      
 141 
     | 
    
         
            +
                  post_body = @api_client.object_to_http_body(body_access_token)
         
     | 
| 
      
 142 
     | 
    
         
            +
                  
         
     | 
| 
      
 143 
     | 
    
         
            +
                  auth_names = ['access_token']
         
     | 
| 
      
 144 
     | 
    
         
            +
                  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
         
     | 
| 
      
 145 
     | 
    
         
            +
                    :header_params => header_params,
         
     | 
| 
      
 146 
     | 
    
         
            +
                    :query_params => query_params,
         
     | 
| 
      
 147 
     | 
    
         
            +
                    :form_params => form_params,
         
     | 
| 
      
 148 
     | 
    
         
            +
                    :body => post_body,
         
     | 
| 
      
 149 
     | 
    
         
            +
                    :auth_names => auth_names,
         
     | 
| 
      
 150 
     | 
    
         
            +
                    :return_type => 'Object')
         
     | 
| 
      
 151 
     | 
    
         
            +
                  if @api_client.config.debugging
         
     | 
| 
      
 152 
     | 
    
         
            +
                    @api_client.config.logger.debug "API called: TokenApi#validar_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
         
     | 
| 
      
 153 
     | 
    
         
            +
                  end
         
     | 
| 
      
 154 
     | 
    
         
            +
                  return data, status_code, headers
         
     | 
| 
      
 155 
     | 
    
         
            +
                end
         
     | 
| 
      
 156 
     | 
    
         
            +
              end
         
     | 
| 
      
 157 
     | 
    
         
            +
            end
         
     |