Class: Increase::Resources::AccountStatements

Inherits:
Object
  • Object
show all
Defined in:
lib/increase/resources/account_statements.rb

Instance Method Summary collapse

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.

Parameters:



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

Parameters:

Returns:

See Also:



46
47
48
49
50
51
52
53
54
55
56
# File 'lib/increase/resources/account_statements.rb', line 46

def list(params = {})
  parsed, options = Increase::AccountStatementListParams.dump_request(params)
  @client.request(
    method: :get,
    path: "account_statements",
    query: parsed,
    page: Increase::Internal::Page,
    model: Increase::AccountStatement,
    options: options
  )
end

#retrieve(account_statement_id, request_options: {}) ⇒ Increase::Models::AccountStatement

Retrieve an Account Statement

Parameters:

  • account_statement_id (String)

    The identifier of the Account Statement to retrieve.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



17
18
19
20
21
22
23
24
# File 'lib/increase/resources/account_statements.rb', line 17

def retrieve(, params = {})
  @client.request(
    method: :get,
    path: ["account_statements/%1$s", ],
    model: Increase::AccountStatement,
    options: params[:request_options]
  )
end