Class: ModernTreasury::Resources::LedgerAccountStatements
- Inherits:
-
Object
- Object
- ModernTreasury::Resources::LedgerAccountStatements
- Defined in:
- lib/modern_treasury/resources/ledger_account_statements.rb
Instance Method Summary collapse
-
#create(effective_at_lower_bound: , effective_at_upper_bound: , ledger_account_id: , description: nil, metadata: nil, request_options: {}) ⇒ ModernTreasury::Models::LedgerAccountStatementCreateResponse
Some parameter documentations has been truncated, see Models::LedgerAccountStatementCreateParams for more details.
-
#initialize(client:) ⇒ LedgerAccountStatements
constructor
private
A new instance of LedgerAccountStatements.
-
#retrieve(id, request_options: {}) ⇒ ModernTreasury::Models::LedgerAccountStatementRetrieveResponse
Get details on a single ledger account statement.
Constructor Details
#initialize(client:) ⇒ LedgerAccountStatements
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 LedgerAccountStatements.
62 63 64 |
# File 'lib/modern_treasury/resources/ledger_account_statements.rb', line 62 def initialize(client:) @client = client end |
Instance Method Details
#create(effective_at_lower_bound: , effective_at_upper_bound: , ledger_account_id: , description: nil, metadata: nil, request_options: {}) ⇒ ModernTreasury::Models::LedgerAccountStatementCreateResponse
Some parameter documentations has been truncated, see Models::LedgerAccountStatementCreateParams for more details.
Create a ledger account statement.
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/modern_treasury/resources/ledger_account_statements.rb', line 28 def create(params) parsed, = ModernTreasury::LedgerAccountStatementCreateParams.dump_request(params) @client.request( method: :post, path: "api/ledger_account_statements", body: parsed, model: ModernTreasury::Models::LedgerAccountStatementCreateResponse, options: ) end |
#retrieve(id, request_options: {}) ⇒ ModernTreasury::Models::LedgerAccountStatementRetrieveResponse
Get details on a single ledger account statement.
50 51 52 53 54 55 56 57 |
# File 'lib/modern_treasury/resources/ledger_account_statements.rb', line 50 def retrieve(id, params = {}) @client.request( method: :get, path: ["api/ledger_account_statements/%1$s", id], model: ModernTreasury::Models::LedgerAccountStatementRetrieveResponse, options: params[:request_options] ) end |