lib/plaid/api/plaid_api.rb
# List payments
# The &#x60;/payment_initiation/payment/list&#x60; endpoint can be used to retrieve all created payments. By default, the 10 most recent payments are returned. You can request more payments and paginate through the results using the optional &#x60;count&#x60; and &#x60;cursor&#x60; parameters.
# @param payment_initiation_payment_list_request [PaymentInitiationPaymentListRequest] 
# @param [Hash] opts the optional parameters
# @return [Array<(PaymentInitiationPaymentListResponse, Integer, Hash)>] PaymentInitiationPaymentListResponse data, response status code and response headers
List payments
The `/payment_initiation/payment/list` endpoint can be used to retrieve all created payments. By default, the 10 most recent payments are returned. You can request more payments and paginate through the results using the optional `count` and `cursor` parameters.
List payments The ` / payment_initiation / payment / list ` endpoint can be used to retrieve all created payments . By default the 10 most recent payments are returned . You can request more payments and paginate through the results using the optional ` count ` and ` cursor ` parameters .
def payment_initiation_payment_list_with_http_info(payment_initiation_payment_list_request, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: PlaidApi.payment_initiation_payment_list ...'
      end
      if @api_client.config.client_side_validation && payment_initiation_payment_list_request.nil?
        fail ArgumentError, "Missing the required parameter 'payment_initiation_payment_list_request' when calling PlaidApi.payment_initiation_payment_list"
      end
      local_var_path = '/payment_initiation/payment/list'
      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(payment_initiation_payment_list_request)
      return_type = opts[:debug_return_type] || 'PaymentInitiationPaymentListResponse'
      auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret']
      new_options = opts.merge(
        :operation => :"PlaidApi.payment_initiation_payment_list",
        :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: PlaidApi#payment_initiation_payment_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def payment_initiation_payment_list_with_http_info ( payment_initiation_payment_list_request , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: PlaidApi.payment_initiation_payment_list ...' end if @api_client . config . client_side_validation && payment_initiation_payment_list_request . nil? fail ArgumentError , "Missing the required parameter 'payment_initiation_payment_list_request' when calling PlaidApi.payment_initiation_payment_list" end local_var_path = '/payment_initiation/payment/list' 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 ( payment_initiation_payment_list_request ) return_type = opts [ :debug_return_type ] || 'PaymentInitiationPaymentListResponse' auth_names = opts [ :debug_auth_names ] || [ 'clientId' , 'plaidVersion' , 'secret' ] new_options = opts . merge ( :operation => :" PlaidApi.payment_initiation_payment_list " , :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: PlaidApi#payment_initiation_payment_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
List payments
The &#x60;/payment_initiation/payment/list&#x60; endpoint can be used to retrieve all created payments.
List payments The &#x60 ; / payment_initiation / payment / list&#x60 ; endpoint can be used to retrieve all created payments .
# verify the required parameter 'payment_initiation_payment_list_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
PaymentInitiationPaymentListResponse data, response status code and response headers
PaymentInitiationPaymentListResponse data response status code and response headers
Array<(PaymentInitiationPaymentListResponse, Integer, Hash)>
payment_initiation_payment_list_request
opts
None
opts the optional parameters
opts the optional parameters