lib/velopayments/api/webhooks_api.rb
# List the details about the webhooks for the given payor.
# List the details about the webhooks for the given payor.
# @param payor_id [String] The Payor ID
# @param [Hash] opts the optional parameters
# @option opts [Integer] :page Page number. Default is 1.
# @option opts [Integer] :page_size The number of results to return in a page
# @return [Array<(WebhooksResponse, Integer, Hash)>] WebhooksResponse data, response status code and response headers
List the details about the webhooks for the given payor.
List the details about the webhooks for the given payor.
List the details about the webhooks for the given payor . List the details about the webhooks for the given payor .
def list_webhooks_v1_with_http_info(payor_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: WebhooksApi.list_webhooks_v1 ...'
      end
      if @api_client.config.client_side_validation && payor_id.nil?
        fail ArgumentError, "Missing the required parameter 'payor_id' when calling WebhooksApi.list_webhooks_v1"
      end
      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling WebhooksApi.list_webhooks_v1, must be smaller than or equal to 100.'
      end
      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling WebhooksApi.list_webhooks_v1, must be greater than or equal to 1.'
      end
      local_var_path = '/v1/webhooks'
      query_params = opts[:query_params] || {}
      query_params[:'payorId'] = payor_id
      query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
      query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
      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] || 'WebhooksResponse'
      auth_names = opts[:debug_auth_names] || ['OAuth2']
      new_options = opts.merge(
        :operation => :"WebhooksApi.list_webhooks_v1",
        :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(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: WebhooksApi#list_webhooks_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_webhooks_v1_with_http_info ( payor_id , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: WebhooksApi.list_webhooks_v1 ...' end if @api_client . config . client_side_validation && payor_id . nil? fail ArgumentError , "Missing the required parameter 'payor_id' when calling WebhooksApi.list_webhooks_v1" end if @api_client . config . client_side_validation && ! opts [ :' page_size ' ] . nil? && opts [ :' page_size ' ] > 100 fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling WebhooksApi.list_webhooks_v1, must be smaller than or equal to 100.' end if @api_client . config . client_side_validation && ! opts [ :' page_size ' ] . nil? && opts [ :' page_size ' ] < 1 fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling WebhooksApi.list_webhooks_v1, must be greater than or equal to 1.' end local_var_path = '/v1/webhooks' query_params = opts [ :query_params ] || { } query_params [ :' payorId ' ] = payor_id query_params [ :' page ' ] = opts [ :' page ' ] if ! opts [ :' page ' ] . nil? query_params [ :' pageSize ' ] = opts [ :' page_size ' ] if ! opts [ :' page_size ' ] . nil? 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 ] || 'WebhooksResponse' auth_names = opts [ :debug_auth_names ] || [ 'OAuth2' ] new_options = opts . merge ( :operation => :" WebhooksApi.list_webhooks_v1 " , :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 ( :GET , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: WebhooksApi#list_webhooks_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
List the details about the webhooks for the given payor.
List the details about the webhooks for the given payor .
# verify the required parameter 'payor_id' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
WebhooksResponse data, response status code and response headers
WebhooksResponse data response status code and response headers
Array<(WebhooksResponse, Integer, Hash)>
payor_id
The Payor ID
The Payor ID
opts
:page_size The number of results to return in a page
: page_size The number of results to return in a page
<not_specific>
opts the optional parameters
opts the optional parameters