lib/velopayments/api/users_api.rb
def unregister_mfa_for_self_with_http_info(self_mfa_type_unregister_request, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: UsersApi.unregister_mfa_for_self ...'
      end
      # verify the required parameter 'self_mfa_type_unregister_request' is set
      if @api_client.config.client_side_validation && self_mfa_type_unregister_request.nil?
        fail ArgumentError, "Missing the required parameter 'self_mfa_type_unregister_request' when calling UsersApi.unregister_mfa_for_self"
      end
      # resource path
      local_var_path = '/v2/users/self/mfa/unregister'

      # query parameters
      query_params = opts[:query_params] || {}

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      # HTTP header 'Content-Type'
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?

      # form parameters
      form_params = opts[:form_params] || {}

      # http body (model)
      post_body = opts[:debug_body] || @api_client.object_to_http_body(self_mfa_type_unregister_request)

      # return_type
      return_type = opts[:debug_return_type]

      # auth_names
      auth_names = opts[:debug_auth_names] || ['OAuth2']

      new_options = opts.merge(
        :operation => :"UsersApi.unregister_mfa_for_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#unregister_mfa_for_self\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Unregister MFA for Self
# &lt;p&gt;Unregister the MFA device for the user &lt;/p&gt; &lt;p&gt;If the user does not require further verification then a register new MFA device token will be sent to them via their email address&lt;/p&gt; 
# @param self_mfa_type_unregister_request [SelfMFATypeUnregisterRequest] The MFA Type to unregister
# @param [Hash] opts the optional parameters
# @option opts [String] :authorization Bearer token authorization leg of validate
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Unregister MFA for Self
<p>Unregister the MFA device for the user </p> <p>If the user does not require further verification then a register new MFA device token will be sent to them via their email address</p>.
Unregister MFA for Self <p > Unregister the MFA device for the user < / p > <p > If the user does not require further verification then a register new MFA device token will be sent to them via their email address< / p > .
def unregister_mfa_for_self_with_http_info(self_mfa_type_unregister_request, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: UsersApi.unregister_mfa_for_self ...'
      end
      if @api_client.config.client_side_validation && self_mfa_type_unregister_request.nil?
        fail ArgumentError, "Missing the required parameter 'self_mfa_type_unregister_request' when calling UsersApi.unregister_mfa_for_self"
      end
      local_var_path = '/v2/users/self/mfa/unregister'
      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'])
      header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body] || @api_client.object_to_http_body(self_mfa_type_unregister_request)
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || ['OAuth2']
      new_options = opts.merge(
        :operation => :"UsersApi.unregister_mfa_for_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#unregister_mfa_for_self\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def unregister_mfa_for_self_with_http_info ( self_mfa_type_unregister_request , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: UsersApi.unregister_mfa_for_self ...' end if @api_client . config . client_side_validation && self_mfa_type_unregister_request . nil? fail ArgumentError , "Missing the required parameter 'self_mfa_type_unregister_request' when calling UsersApi.unregister_mfa_for_self" end local_var_path = '/v2/users/self/mfa/unregister' 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' ] ) header_params [ :' Authorization ' ] = opts [ :' authorization ' ] if ! opts [ :' authorization ' ] . nil? form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( self_mfa_type_unregister_request ) return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ 'OAuth2' ] new_options = opts . merge ( :operation => :" UsersApi.unregister_mfa_for_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#unregister_mfa_for_self\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Unregister MFA for Self
&lt;p&gt;Unregister the MFA device for the user &lt;/p&gt; &lt;p&gt;If the user does not require further verification then a register new MFA device token will be sent to them via their email address&lt;/p&gt;
Unregister MFA for Self &lt ; p&gt ; Unregister the MFA device for the user &lt ; / p&gt ; &lt ; p&gt ; If the user does not require further verification then a register new MFA device token will be sent to them via their email address&lt ; / p&gt ;
# verify the required parameter 'self_mfa_type_unregister_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
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Integer, Hash)>
self_mfa_type_unregister_request
The MFA Type to unregister
The MFA Type to unregister
opts
:authorization Bearer token authorization leg of validate
: authorization Bearer token authorization leg of validate
opts the optional parameters
opts the optional parameters