Class: WhopSDK::Resources::PayoutAccounts
- Inherits:
-
Object
- Object
- WhopSDK::Resources::PayoutAccounts
- Defined in:
- lib/whop_sdk/resources/payout_accounts.rb
Overview
Payout accounts
Instance Method Summary collapse
-
#initialize(client:) ⇒ PayoutAccounts
constructor
private
A new instance of PayoutAccounts.
-
#retrieve(id, request_options: {}) ⇒ WhopSDK::Models::PayoutAccountRetrieveResponse
Retrieves the details of an existing payout account.
Constructor Details
#initialize(client:) ⇒ PayoutAccounts
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 PayoutAccounts.
34 35 36 |
# File 'lib/whop_sdk/resources/payout_accounts.rb', line 34 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(id, request_options: {}) ⇒ WhopSDK::Models::PayoutAccountRetrieveResponse
Retrieves the details of an existing payout account.
Required permissions:
-
‘payout:account:read`
22 23 24 25 26 27 28 29 |
# File 'lib/whop_sdk/resources/payout_accounts.rb', line 22 def retrieve(id, params = {}) @client.request( method: :get, path: ["payout_accounts/%1$s", id], model: WhopSDK::Models::PayoutAccountRetrieveResponse, options: params[:request_options] ) end |