lib/velopayments/api/payout_service_api.rb
# Instruct Payout
# Instruct a payout to be made for the specified payoutId.
# @param payout_id [String] Id of the payout
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Instruct Payout
Instruct a payout to be made for the specified payoutId.
Instruct Payout Instruct a payout to be made for the specified payoutId .
def instruct_payout_v3_with_http_info(payout_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: PayoutServiceApi.instruct_payout_v3 ...'
      end
      if @api_client.config.client_side_validation && payout_id.nil?
        fail ArgumentError, "Missing the required parameter 'payout_id' when calling PayoutServiceApi.instruct_payout_v3"
      end
      local_var_path = '/v3/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || ['OAuth2']
      new_options = opts.merge(
        :operation => :"PayoutServiceApi.instruct_payout_v3",
        :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: PayoutServiceApi#instruct_payout_v3\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def instruct_payout_v3_with_http_info ( payout_id , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: PayoutServiceApi.instruct_payout_v3 ...' end if @api_client . config . client_side_validation && payout_id . nil? fail ArgumentError , "Missing the required parameter 'payout_id' when calling PayoutServiceApi.instruct_payout_v3" end local_var_path = '/v3/payouts/{payoutId}' . sub ( '{' + 'payoutId' + '}' , CGI . escape ( payout_id . to_s ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ 'OAuth2' ] new_options = opts . merge ( :operation => :" PayoutServiceApi.instruct_payout_v3 " , :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: PayoutServiceApi#instruct_payout_v3\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Instruct Payout
Instruct a payout to be made for the specified payoutId.
Instruct Payout Instruct a payout to be made for the specified payoutId .
# verify the required parameter 'payout_id' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # 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)>
payout_id
Id of the payout
Id of the payout
opts
<not_specific>
<not_specific>
opts the optional parameters
opts the optional parameters