lib/velopayments/api/payors_api.rb
# Create Application
# Create an application for the given Payor ID. Applications are programatic users which can be assigned unique keys.
# @param payor_id [String] The Payor Id
# @param payor_create_application_request [PayorCreateApplicationRequest] Details of application to create
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Create Application
Create an application for the given Payor ID. Applications are programatic users which can be assigned unique keys.
Create Application Create an application for the given Payor ID . Applications are programatic users which can be assigned unique keys .
def payor_create_application_request_with_http_info(payor_id, payor_create_application_request, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: PayorsApi.payor_create_application_request ...'
      end
      if @api_client.config.client_side_validation && payor_id.nil?
        fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayorsApi.payor_create_application_request"
      end
      if @api_client.config.client_side_validation && payor_create_application_request.nil?
        fail ArgumentError, "Missing the required parameter 'payor_create_application_request' when calling PayorsApi.payor_create_application_request"
      end
      local_var_path = '/v1/payors/{payorId}/applications'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s))
      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(payor_create_application_request)
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || ['OAuth2']
      new_options = opts.merge(
        :operation => :"PayorsApi.payor_create_application_request",
        :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: PayorsApi#payor_create_application_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def payor_create_application_request_with_http_info ( payor_id , payor_create_application_request , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: PayorsApi.payor_create_application_request ...' end if @api_client . config . client_side_validation && payor_id . nil? fail ArgumentError , "Missing the required parameter 'payor_id' when calling PayorsApi.payor_create_application_request" end if @api_client . config . client_side_validation && payor_create_application_request . nil? fail ArgumentError , "Missing the required parameter 'payor_create_application_request' when calling PayorsApi.payor_create_application_request" end local_var_path = '/v1/payors/{payorId}/applications' . sub ( '{' + 'payorId' + '}' , CGI . escape ( payor_id . to_s ) ) 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 ( payor_create_application_request ) return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ 'OAuth2' ] new_options = opts . merge ( :operation => :" PayorsApi.payor_create_application_request " , :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: PayorsApi#payor_create_application_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Create Application
Create an application for the given Payor ID.
Create Application Create an application for the given Payor ID .
# verify the required parameter 'payor_id' is set # verify the required parameter 'payor_create_application_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)>
payor_id
The Payor Id
The Payor Id
payor_create_application_request
Details of application to create
Details of application to create
opts
<not_specific>
<not_specific>
opts the optional parameters
opts the optional parameters