Class: WhopSDK::Resources::LedgerAccounts
- Inherits:
-
Object
- Object
- WhopSDK::Resources::LedgerAccounts
- Defined in:
- lib/whop_sdk/resources/ledger_accounts.rb
Overview
Ledger accounts
Instance Method Summary collapse
-
#initialize(client:) ⇒ LedgerAccounts
constructor
private
A new instance of LedgerAccounts.
-
#retrieve(id, request_options: {}) ⇒ WhopSDK::Models::LedgerAccountRetrieveResponse
Some parameter documentations has been truncated, see Models::LedgerAccountRetrieveParams for more details.
Constructor Details
#initialize(client:) ⇒ LedgerAccounts
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 LedgerAccounts.
38 39 40 |
# File 'lib/whop_sdk/resources/ledger_accounts.rb', line 38 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(id, request_options: {}) ⇒ WhopSDK::Models::LedgerAccountRetrieveResponse
Some parameter documentations has been truncated, see Models::LedgerAccountRetrieveParams for more details.
Retrieves the details of an existing ledger account.
Required permissions:
-
‘company:balance:read`
-
‘payout:account:read`
26 27 28 29 30 31 32 33 |
# File 'lib/whop_sdk/resources/ledger_accounts.rb', line 26 def retrieve(id, params = {}) @client.request( method: :get, path: ["ledger_accounts/%1$s", id], model: WhopSDK::Models::LedgerAccountRetrieveResponse, options: params[:request_options] ) end |