Class: Dodopayments::Resources::Payouts
- Inherits:
-
Object
- Object
- Dodopayments::Resources::Payouts
- Defined in:
- lib/dodopayments/resources/payouts.rb,
lib/dodopayments/resources/payouts/breakup.rb,
lib/dodopayments/resources/payouts/breakup/details.rb
Defined Under Namespace
Classes: Breakup
Instance Attribute Summary collapse
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.
40 41 42 43 |
# File 'lib/dodopayments/resources/payouts.rb', line 40 def initialize(client:) @client = client @breakup = Dodopayments::Resources::Payouts::Breakup.new(client: client) end |
Instance Attribute Details
#breakup ⇒ Dodopayments::Resources::Payouts::Breakup (readonly)
7 8 9 |
# File 'lib/dodopayments/resources/payouts.rb', line 7 def breakup @breakup 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>
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/dodopayments/resources/payouts.rb', line 24 def list(params = {}) parsed, = Dodopayments::PayoutListParams.dump_request(params) query = Dodopayments::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "payouts", query: query, page: Dodopayments::Internal::DefaultPageNumberPagination, model: Dodopayments::Models::PayoutListResponse, options: ) end |