Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"standardwebhooks": ">= 1.0"
}
},
"originGitCommit": "4df7ff1679788ad86d1a195fd5c787ddc7ad7bfe",
"originGitCommit": "989401f96ee4f7c72542fe16c8104c04017de158",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.7.0",
Expand Down
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions lib/whop_sdk/partners/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,22 @@ def referred_users(request_options: {}, **params)
# @option request_options [Hash{String => Object}] :additional_body_parameters
# @option request_options [Integer] :timeout_in_seconds
# @option params [String] :id
# @option params [String, nil] :account_id
#
# @example
# client.partners.retrieve(id: "me")
#
# @return [Whop_sdk::Types::Partner]
def retrieve(request_options: {}, **params)
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
query_params = {}
query_params["account_id"] = params[:account_id] if params.key?(:account_id)

request = Whop_sdk::Internal::JSON::Request.new(
base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
method: "GET",
path: "partners/#{URI.encode_uri_component(params[:id].to_s)}",
query: query_params,
request_options: request_options
)
begin
Expand Down
2 changes: 2 additions & 0 deletions lib/whop_sdk/partners/types/retrieve_partners_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ module Partners
module Types
class RetrievePartnersRequest < Internal::Types::Model
field :id, -> { String }, optional: false, nullable: false

field :account_id, -> { String }, optional: true, nullable: false
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/whop_sdk/types/partner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
module Whop_sdk
module Types
class Partner < Internal::Types::Model
field :account_id, -> { String }, optional: false, nullable: true

field :certification_complete, -> { Internal::Types::Boolean }, optional: false, nullable: false

field :joined_at, -> { String }, optional: false, nullable: true
Expand Down
310 changes: 155 additions & 155 deletions lib/whop_sdk/types/permission_action.rb

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -28742,6 +28742,14 @@ client.partners.retrieve(id: "me")
<dl>
<dd>

**account_id:** `String` — Return `payout_rates` for this business, prefixed `biz_`, instead of the caller's own: the business's rate rows, else the platform defaults. Requires company:basic:read on that business, which every team member holds. The rest of the profile stays the caller's.

</dd>
</dl>

<dl>
<dd>

**request_options:** `Whop_sdk::Partners::RequestOptions`

</dd>
Expand Down
Loading