Class: StraddlePay::Resources::Payments

Inherits:
Base
  • Object
show all
Defined in:
lib/straddle_pay/resources/payments.rb

Overview

Query unified payment records (charges and payouts).

Constant Summary

Constants inherited from Base

Base::HEADER_KEYS

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from StraddlePay::Resources::Base

Instance Method Details

#list(**options) ⇒ Hash

List payments with optional filters.

Parameters:

  • options (Hash)

    filter/pagination params

Returns:

  • (Hash)

    paginated payment list



11
12
13
14
# File 'lib/straddle_pay/resources/payments.rb', line 11

def list(**options)
  headers = extract_headers(options)
  @client.get("v1/payments", params: options, headers: headers)
end