lib/velopayments/api/payment_audit_service_api.rb
# List Payment Changes
# Get a paginated response listing payment changes.
# @param payor_id [String] The Payor ID to find associated Payments
# @param updated_since [Time] The updatedSince filter in the format YYYY-MM-DDThh:mm:ss+hh:mm
# @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<(PaymentDeltaResponse, Integer, Hash)>] PaymentDeltaResponse data, response status code and response headers
List Payment Changes
Get a paginated response listing payment changes.
List Payment Changes Get a paginated response listing payment changes .
def list_payment_changes_v4_with_http_info(payor_id, updated_since, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: PaymentAuditServiceApi.list_payment_changes_v4 ...'
      end
      if @api_client.config.client_side_validation && payor_id.nil?
        fail ArgumentError, "Missing the required parameter 'payor_id' when calling PaymentAuditServiceApi.list_payment_changes_v4"
      end
      if @api_client.config.client_side_validation && updated_since.nil?
        fail ArgumentError, "Missing the required parameter 'updated_since' when calling PaymentAuditServiceApi.list_payment_changes_v4"
      end
      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PaymentAuditServiceApi.list_payment_changes_v4, must be smaller than or equal to 1000.'
      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 PaymentAuditServiceApi.list_payment_changes_v4, must be greater than or equal to 1.'
      end
      local_var_path = '/v4/payments/deltas'
      query_params = opts[:query_params] || {}
      query_params[:'payorId'] = payor_id
      query_params[:'updatedSince'] = updated_since
      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] || 'PaymentDeltaResponse'
      auth_names = opts[:debug_auth_names] || ['OAuth2']
      new_options = opts.merge(
        :operation => :"PaymentAuditServiceApi.list_payment_changes_v4",
        :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: PaymentAuditServiceApi#list_payment_changes_v4\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_payment_changes_v4_with_http_info ( payor_id , updated_since , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: PaymentAuditServiceApi.list_payment_changes_v4 ...' end if @api_client . config . client_side_validation && payor_id . nil? fail ArgumentError , "Missing the required parameter 'payor_id' when calling PaymentAuditServiceApi.list_payment_changes_v4" end if @api_client . config . client_side_validation && updated_since . nil? fail ArgumentError , "Missing the required parameter 'updated_since' when calling PaymentAuditServiceApi.list_payment_changes_v4" end if @api_client . config . client_side_validation && ! opts [ :' page_size ' ] . nil? && opts [ :' page_size ' ] > 1000 fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling PaymentAuditServiceApi.list_payment_changes_v4, must be smaller than or equal to 1000.' 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 PaymentAuditServiceApi.list_payment_changes_v4, must be greater than or equal to 1.' end local_var_path = '/v4/payments/deltas' query_params = opts [ :query_params ] || { } query_params [ :' payorId ' ] = payor_id query_params [ :' updatedSince ' ] = updated_since 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 ] || 'PaymentDeltaResponse' auth_names = opts [ :debug_auth_names ] || [ 'OAuth2' ] new_options = opts . merge ( :operation => :" PaymentAuditServiceApi.list_payment_changes_v4 " , :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: PaymentAuditServiceApi#list_payment_changes_v4\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
List Payment Changes
Get a paginated response listing payment changes.
List Payment Changes Get a paginated response listing payment changes .
# verify the required parameter 'payor_id' is set # verify the required parameter 'updated_since' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
PaymentDeltaResponse data, response status code and response headers
PaymentDeltaResponse data response status code and response headers
Array<(PaymentDeltaResponse, Integer, Hash)>
payor_id
The Payor ID to find associated Payments
The Payor ID to find associated Payments
updated_since
The updatedSince filter in the format YYYY-MM-DDThh:mm:ss+hh:mm
The updatedSince filter in the format YYYY - MM - DDThh : mm : ss + hh : mm
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