Class: Lithic::Resources::Reports::Settlement::NetworkTotals
- Inherits:
-
Object
- Object
- Lithic::Resources::Reports::Settlement::NetworkTotals
- Defined in:
- lib/lithic/resources/reports/settlement/network_totals.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ NetworkTotals
constructor
private
A new instance of NetworkTotals.
-
#list(begin_: nil, end_: nil, ending_before: nil, institution_id: nil, network: nil, page_size: nil, report_date: nil, report_date_begin: nil, report_date_end: nil, settlement_institution_id: nil, starting_after: nil, request_options: {}) ⇒ Lithic::Internal::CursorPage<Lithic::Models::NetworkTotal>
Some parameter documentations has been truncated, see Models::Reports::Settlement::NetworkTotalListParams for more details.
-
#retrieve(token, request_options: {}) ⇒ Lithic::Models::NetworkTotal
Retrieve a specific network total record by token.
Constructor Details
#initialize(client:) ⇒ NetworkTotals
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 NetworkTotals.
77 78 79 |
# File 'lib/lithic/resources/reports/settlement/network_totals.rb', line 77 def initialize(client:) @client = client end |
Instance Method Details
#list(begin_: nil, end_: nil, ending_before: nil, institution_id: nil, network: nil, page_size: nil, report_date: nil, report_date_begin: nil, report_date_end: nil, settlement_institution_id: nil, starting_after: nil, request_options: {}) ⇒ Lithic::Internal::CursorPage<Lithic::Models::NetworkTotal>
Some parameter documentations has been truncated, see Models::Reports::Settlement::NetworkTotalListParams for more details.
List network total records with optional filters. Not available in sandbox.
62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/lithic/resources/reports/settlement/network_totals.rb', line 62 def list(params = {}) parsed, = Lithic::Reports::Settlement::NetworkTotalListParams.dump_request(params) @client.request( method: :get, path: "v1/reports/settlement/network_totals", query: parsed.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::NetworkTotal, options: ) end |
#retrieve(token, request_options: {}) ⇒ Lithic::Models::NetworkTotal
Retrieve a specific network total record by token. Not available in sandbox.
19 20 21 22 23 24 25 26 |
# File 'lib/lithic/resources/reports/settlement/network_totals.rb', line 19 def retrieve(token, params = {}) @client.request( method: :get, path: ["v1/reports/settlement/network_totals/%1$s", token], model: Lithic::NetworkTotal, options: params[:request_options] ) end |