lib/velopayments/api/users_api.rb
# Validate the proposed password
# validate the password and return a score 
# @param password_request [PasswordRequest] The password
# @param [Hash] opts the optional parameters
# @return [Array<(ValidatePasswordResponse, Integer, Hash)>] ValidatePasswordResponse data, response status code and response headers
Validate the proposed password
validate the password and return a score
Validate the proposed password validate the password and return a score
def validate_password_self_with_http_info(password_request, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: UsersApi.validate_password_self ...'
      end
      if @api_client.config.client_side_validation && password_request.nil?
        fail ArgumentError, "Missing the required parameter 'password_request' when calling UsersApi.validate_password_self"
      end
      local_var_path = '/v2/users/self/password/validate'
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body] || @api_client.object_to_http_body(password_request)
      return_type = opts[:debug_return_type] || 'ValidatePasswordResponse'
      auth_names = opts[:debug_auth_names] || ['OAuth2']
      new_options = opts.merge(
        :operation => :"UsersApi.validate_password_self",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: UsersApi#validate_password_self\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def validate_password_self_with_http_info ( password_request , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: UsersApi.validate_password_self ...' end if @api_client . config . client_side_validation && password_request . nil? fail ArgumentError , "Missing the required parameter 'password_request' when calling UsersApi.validate_password_self" end local_var_path = '/v2/users/self/password/validate' query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( password_request ) return_type = opts [ :debug_return_type ] || 'ValidatePasswordResponse' auth_names = opts [ :debug_auth_names ] || [ 'OAuth2' ] new_options = opts . merge ( :operation => :" UsersApi.validate_password_self " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: UsersApi#validate_password_self\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Validate the proposed password
validate the password and return a score
Validate the proposed password validate the password and return a score
# verify the required parameter 'password_request' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
ValidatePasswordResponse data, response status code and response headers
ValidatePasswordResponse data response status code and response headers
Array<(ValidatePasswordResponse, Integer, Hash)>
password_request
None
opts
<not_specific>
<not_specific>
opts the optional parameters
opts the optional parameters