Class: WhopSDK::Resources::AccountLinks
- Inherits:
-
Object
- Object
- WhopSDK::Resources::AccountLinks
- Defined in:
- lib/whop_sdk/resources/account_links.rb,
sig/whop_sdk/resources/account_links.rbs
Instance Method Summary collapse
-
#create(company_id:, refresh_url:, return_url:, use_case:, request_options: {}) ⇒ WhopSDK::Models::AccountLinkCreateResponse
Some parameter documentations has been truncated, see Models::AccountLinkCreateParams for more details.
-
#initialize(client:) ⇒ AccountLinks
constructor
private
A new instance of AccountLinks.
Constructor Details
#initialize(client:) ⇒ AccountLinks
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 AccountLinks.
41 42 43 |
# File 'lib/whop_sdk/resources/account_links.rb', line 41 def initialize(client:) @client = client end |
Instance Method Details
#create(company_id:, refresh_url:, return_url:, use_case:, request_options: {}) ⇒ WhopSDK::Models::AccountLinkCreateResponse
Some parameter documentations has been truncated, see Models::AccountLinkCreateParams for more details.
Generate a URL that directs a sub-merchant to their account portal, such as the hosted payouts dashboard or the KYC onboarding flow.
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/whop_sdk/resources/account_links.rb', line 27 def create(params) parsed, = WhopSDK::AccountLinkCreateParams.dump_request(params) @client.request( method: :post, path: "account_links", body: parsed, model: WhopSDK::Models::AccountLinkCreateResponse, options: ) end |