Class: Increase::Resources::AccountStatements
- Inherits:
-
Object
- Object
- Increase::Resources::AccountStatements
- Defined in:
- lib/increase/resources/account_statements.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ AccountStatements
constructor
private
A new instance of AccountStatements.
-
#list(account_id: nil, cursor: nil, limit: nil, statement_period_start: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::AccountStatement>
Some parameter documentations has been truncated, see Models::AccountStatementListParams for more details.
-
#retrieve(account_statement_id, request_options: {}) ⇒ Increase::Models::AccountStatement
Retrieve an Account Statement.
Constructor Details
#initialize(client:) ⇒ AccountStatements
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 AccountStatements.
61 62 63 |
# File 'lib/increase/resources/account_statements.rb', line 61 def initialize(client:) @client = client end |
Instance Method Details
#list(account_id: nil, cursor: nil, limit: nil, statement_period_start: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::AccountStatement>
Some parameter documentations has been truncated, see Models::AccountStatementListParams for more details.
List Account Statements
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/increase/resources/account_statements.rb', line 46 def list(params = {}) parsed, = Increase::AccountStatementListParams.dump_request(params) @client.request( method: :get, path: "account_statements", query: parsed, page: Increase::Internal::Page, model: Increase::AccountStatement, options: ) end |
#retrieve(account_statement_id, request_options: {}) ⇒ Increase::Models::AccountStatement
Retrieve an Account Statement
17 18 19 20 21 22 23 24 |
# File 'lib/increase/resources/account_statements.rb', line 17 def retrieve(account_statement_id, params = {}) @client.request( method: :get, path: ["account_statements/%1$s", account_statement_id], model: Increase::AccountStatement, options: params[:request_options] ) end |