Class: WhopSDK::Resources::PayoutAccounts

Inherits:
Object
  • Object
show all
Defined in:
lib/whop_sdk/resources/payout_accounts.rb

Overview

Payout accounts

Instance Method Summary collapse

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.

Parameters:



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`

Parameters:

  • id (String)

    The unique identifier of the payout account to retrieve.

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

Returns:

See Also:



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