Class: Dodopayments::Resources::Payouts
- Inherits:
-
Object
- Object
- Dodopayments::Resources::Payouts
- Defined in:
- lib/dodopayments/resources/payouts.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Payouts
constructor
private
A new instance of Payouts.
- #list(created_at_gte: nil, created_at_lte: nil, page_number: nil, page_size: nil, request_options: {}) ⇒ Dodopayments::Internal::DefaultPageNumberPagination<Dodopayments::Models::PayoutListResponse>
Constructor Details
#initialize(client:) ⇒ Payouts
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Payouts.
36 37 38 |
# File 'lib/dodopayments/resources/payouts.rb', line 36 def initialize(client:) @client = client end |
Instance Method Details
#list(created_at_gte: nil, created_at_lte: nil, page_number: nil, page_size: nil, request_options: {}) ⇒ Dodopayments::Internal::DefaultPageNumberPagination<Dodopayments::Models::PayoutListResponse>
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/dodopayments/resources/payouts.rb', line 21 def list(params = {}) parsed, = Dodopayments::PayoutListParams.dump_request(params) @client.request( method: :get, path: "payouts", query: parsed, page: Dodopayments::Internal::DefaultPageNumberPagination, model: Dodopayments::Models::PayoutListResponse, options: ) end |