Class: WhopSDK::Resources::FinancialActivity
- Inherits:
-
Object
- Object
- WhopSDK::Resources::FinancialActivity
- Defined in:
- lib/whop_sdk/resources/financial_activity.rb,
sig/whop_sdk/resources/financial_activity.rbs
Overview
A Ledger Activity row is a single financial event on an account's ledger — a
payment, withdrawal, refund, transfer, on-chain deposit, swap, or card
transaction. Each row is derived from the underlying ledger lines and carries a
typed resource and source so you can present and link the event without
extra lookups.
Use Ledger Activity to build a statement or transaction feed for an account or
user. Reconcile against your own records with amount (signed, in the
currency's smallest precision units) and posted_at, and use available_at to
know when inflows became withdrawable.
Instance Method Summary collapse
-
#initialize(client:) ⇒ FinancialActivity
constructor
private
A new instance of FinancialActivity.
-
#list(account_id: nil, available_after: nil, available_before: nil, currency: nil, cursor: nil, include_owned_accounts: nil, limit: nil, line_types: nil, posted_after: nil, posted_before: nil, user_id: nil, request_options: {}) ⇒ WhopSDK::Models::FinancialActivityListResponse
Some parameter documentations has been truncated, see Models::FinancialActivityListParams for more details.
Constructor Details
#initialize(client:) ⇒ FinancialActivity
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 FinancialActivity.
71 72 73 |
# File 'lib/whop_sdk/resources/financial_activity.rb', line 71 def initialize(client:) @client = client end |
Instance Method Details
#list(account_id: nil, available_after: nil, available_before: nil, currency: nil, cursor: nil, include_owned_accounts: nil, limit: nil, line_types: nil, posted_after: nil, posted_before: nil, user_id: nil, request_options: {}) ⇒ WhopSDK::Models::FinancialActivityListResponse
Some parameter documentations has been truncated, see Models::FinancialActivityListParams for more details.
Returns a paginated activity feed for one account or user, derived from ledger
lines with typed resource and source objects for presentation. Pass exactly one
of account_id (a biz_ identifier) or user_id (a user_ identifier).
Filter by line type, currency, posted timestamp, or settlement date to reconcile
a specific window. Pass include_owned_accounts=true with your own user_id to
aggregate your personal ledger and the businesses you own into one feed; each
row then carries the owning account.
56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/whop_sdk/resources/financial_activity.rb', line 56 def list(params = {}) parsed, = WhopSDK::FinancialActivityListParams.dump_request(params) query = WhopSDK::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "financial-activity", query: query, model: WhopSDK::Models::FinancialActivityListResponse, options: ) end |