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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.33"
".": "0.0.34"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 180
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-51fb88de05d428f3ea78a4b7ba2d5c6e04ae039816961e810f99d9d5d29bc015.yml
openapi_spec_hash: d59179d7d9a835795741673012f20d79
config_hash: a9229678a4146beeb5be82ed0ae3d4f1
configured_endpoints: 181
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-b6e1387ac58f903f887eae989de30273824663a9a752e7834b82b1036950c3d2.yml
openapi_spec_hash: 0bea29a304f3d57c44cc186478bef054
config_hash: 7e9d4f2abf58b7918a0e103387d2a2e9
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.0.34 (2026-03-13)

Full Changelog: [v0.0.33...v0.0.34](https://github.com/whopio/whopsdk-ruby/compare/v0.0.33...v0.0.34)

### Features

* **api:** api update ([955ac05](https://github.com/whopio/whopsdk-ruby/commit/955ac05985d441c367414c55f55bb6e6a5a1d128))
* **api:** manual updates ([dae94e8](https://github.com/whopio/whopsdk-ruby/commit/dae94e887a9c370ae4e67335eec818e22bb60a0a))

## 0.0.33 (2026-03-12)

Full Changelog: [v0.0.32...v0.0.33](https://github.com/whopio/whopsdk-ruby/compare/v0.0.32...v0.0.33)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
whop_sdk (0.0.33)
whop_sdk (0.0.34)
cgi
connection_pool
standardwebhooks
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "whop_sdk", "~> 0.0.33"
gem "whop_sdk", "~> 0.0.34"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 2 additions & 0 deletions lib/whop_sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@
require_relative "whop_sdk/models/user"
require_relative "whop_sdk/models/user_check_access_params"
require_relative "whop_sdk/models/user_check_access_response"
require_relative "whop_sdk/models/user_list_params"
require_relative "whop_sdk/models/user_list_response"
require_relative "whop_sdk/models/user_retrieve_params"
require_relative "whop_sdk/models/user_update_profile_params"
require_relative "whop_sdk/models/verification_error_code"
Expand Down
2 changes: 2 additions & 0 deletions lib/whop_sdk/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,8 @@ module WhopSDK

UserCheckAccessParams = WhopSDK::Models::UserCheckAccessParams

UserListParams = WhopSDK::Models::UserListParams

UserRetrieveParams = WhopSDK::Models::UserRetrieveParams

UserUpdateProfileParams = WhopSDK::Models::UserUpdateProfileParams
Expand Down
32 changes: 24 additions & 8 deletions lib/whop_sdk/models/refund_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ class RefundListParams < WhopSDK::Internal::Type::BaseModel
extend WhopSDK::Internal::Type::RequestParameters::Converter
include WhopSDK::Internal::Type::RequestParameters

# @!attribute payment_id
# The unique identifier of the payment to list refunds for.
#
# @return [String]
required :payment_id, String

# @!attribute after
# Returns the elements in the list that come after the specified cursor.
#
Expand All @@ -25,6 +19,12 @@ class RefundListParams < WhopSDK::Internal::Type::BaseModel
# @return [String, nil]
optional :before, String, nil?: true

# @!attribute company_id
# Filter refunds to only those belonging to this company.
#
# @return [String, nil]
optional :company_id, String, nil?: true

# @!attribute created_after
# Only return refunds created after this timestamp.
#
Expand Down Expand Up @@ -55,13 +55,25 @@ class RefundListParams < WhopSDK::Internal::Type::BaseModel
# @return [Integer, nil]
optional :last, Integer, nil?: true

# @!method initialize(payment_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
# @param payment_id [String] The unique identifier of the payment to list refunds for.
# @!attribute payment_id
# Filter refunds to only those associated with this specific payment.
#
# @return [String, nil]
optional :payment_id, String, nil?: true

# @!attribute user_id
# Filter refunds to only those associated with this specific user.
#
# @return [String, nil]
optional :user_id, String, nil?: true

# @!method initialize(after: nil, before: nil, company_id: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, payment_id: nil, user_id: nil, request_options: {})
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
#
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
#
# @param company_id [String, nil] Filter refunds to only those belonging to this company.
#
# @param created_after [Time, nil] Only return refunds created after this timestamp.
#
# @param created_before [Time, nil] Only return refunds created before this timestamp.
Expand All @@ -72,6 +84,10 @@ class RefundListParams < WhopSDK::Internal::Type::BaseModel
#
# @param last [Integer, nil] Returns the last _n_ elements from the list.
#
# @param payment_id [String, nil] Filter refunds to only those associated with this specific payment.
#
# @param user_id [String, nil] Filter refunds to only those associated with this specific user.
#
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
end
end
Expand Down
54 changes: 54 additions & 0 deletions lib/whop_sdk/models/user_list_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# frozen_string_literal: true

module WhopSDK
module Models
# @see WhopSDK::Resources::Users#list
class UserListParams < WhopSDK::Internal::Type::BaseModel
extend WhopSDK::Internal::Type::RequestParameters::Converter
include WhopSDK::Internal::Type::RequestParameters

# @!attribute after
# Returns the elements in the list that come after the specified cursor.
#
# @return [String, nil]
optional :after, String, nil?: true

# @!attribute before
# Returns the elements in the list that come before the specified cursor.
#
# @return [String, nil]
optional :before, String, nil?: true

# @!attribute first
# Returns the first _n_ elements from the list.
#
# @return [Integer, nil]
optional :first, Integer, nil?: true

# @!attribute last
# Returns the last _n_ elements from the list.
#
# @return [Integer, nil]
optional :last, Integer, nil?: true

# @!attribute query
# Search term to filter by name or username.
#
# @return [String, nil]
optional :query, String, nil?: true

# @!method initialize(after: nil, before: nil, first: nil, last: nil, query: nil, request_options: {})
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
#
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
#
# @param first [Integer, nil] Returns the first _n_ elements from the list.
#
# @param last [Integer, nil] Returns the last _n_ elements from the list.
#
# @param query [String, nil] Search term to filter by name or username.
#
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
end
end
end
83 changes: 83 additions & 0 deletions lib/whop_sdk/models/user_list_response.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# frozen_string_literal: true

module WhopSDK
module Models
# @see WhopSDK::Resources::Users#list
class UserListResponse < WhopSDK::Internal::Type::BaseModel
# @!attribute id
# The unique identifier for the user.
#
# @return [String]
required :id, String

# @!attribute bio
# A short biography written by the user, displayed on their public profile.
#
# @return [String, nil]
required :bio, String, nil?: true

# @!attribute created_at
# The datetime the user was created.
#
# @return [Time]
required :created_at, Time

# @!attribute name
# The user's display name shown on their public profile.
#
# @return [String, nil]
required :name, String, nil?: true

# @!attribute profile_picture
# The user's profile picture attachment with URL, content type, and file metadata.
# Null if using a legacy profile picture.
#
# @return [WhopSDK::Models::UserListResponse::ProfilePicture, nil]
required :profile_picture, -> { WhopSDK::Models::UserListResponse::ProfilePicture }, nil?: true

# @!attribute username
# The user's unique username shown on their public profile.
#
# @return [String]
required :username, String

# @!method initialize(id:, bio:, created_at:, name:, profile_picture:, username:)
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::UserListResponse} for more details.
#
# A user account on Whop. Contains profile information, identity details, and
# social connections.
#
# @param id [String] The unique identifier for the user.
#
# @param bio [String, nil] A short biography written by the user, displayed on their public profile.
#
# @param created_at [Time] The datetime the user was created.
#
# @param name [String, nil] The user's display name shown on their public profile.
#
# @param profile_picture [WhopSDK::Models::UserListResponse::ProfilePicture, nil] The user's profile picture attachment with URL, content type, and file metadata.
#
# @param username [String] The user's unique username shown on their public profile.

# @see WhopSDK::Models::UserListResponse#profile_picture
class ProfilePicture < WhopSDK::Internal::Type::BaseModel
# @!attribute url
# A pre-optimized URL for rendering this attachment on the client. This should be
# used for displaying attachments in apps.
#
# @return [String, nil]
required :url, String, nil?: true

# @!method initialize(url:)
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::UserListResponse::ProfilePicture} for more details.
#
# The user's profile picture attachment with URL, content type, and file metadata.
# Null if using a legacy profile picture.
#
# @param url [String, nil] A pre-optimized URL for rendering this attachment on the client. This should be
end
end
end
end
16 changes: 10 additions & 6 deletions lib/whop_sdk/resources/refunds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ def retrieve(id, params = {})
)
end

# Returns a paginated list of refunds for a specific payment, with optional
# filtering by creation date.
# Returns a paginated list of refunds, with optional filtering by payment,
# company, user, and creation date.
#
# Required permissions:
#
# - `payment:basic:read`
#
# @overload list(payment_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
#
# @param payment_id [String] The unique identifier of the payment to list refunds for.
# @overload list(after: nil, before: nil, company_id: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, payment_id: nil, user_id: nil, request_options: {})
#
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
#
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
#
# @param company_id [String, nil] Filter refunds to only those belonging to this company.
#
# @param created_after [Time, nil] Only return refunds created after this timestamp.
#
# @param created_before [Time, nil] Only return refunds created before this timestamp.
Expand All @@ -56,12 +56,16 @@ def retrieve(id, params = {})
#
# @param last [Integer, nil] Returns the last _n_ elements from the list.
#
# @param payment_id [String, nil] Filter refunds to only those associated with this specific payment.
#
# @param user_id [String, nil] Filter refunds to only those associated with this specific user.
#
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::RefundListResponse>]
#
# @see WhopSDK::Models::RefundListParams
def list(params)
def list(params = {})
parsed, options = WhopSDK::RefundListParams.dump_request(params)
query = WhopSDK::Internal::Util.encode_query_params(parsed)
@client.request(
Expand Down
33 changes: 33 additions & 0 deletions lib/whop_sdk/resources/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,39 @@ def retrieve(id, params = {})
)
end

# Search for users by name or username, ranked by social proximity to the
# authenticated user.
#
# @overload list(after: nil, before: nil, first: nil, last: nil, query: nil, request_options: {})
#
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
#
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
#
# @param first [Integer, nil] Returns the first _n_ elements from the list.
#
# @param last [Integer, nil] Returns the last _n_ elements from the list.
#
# @param query [String, nil] Search term to filter by name or username.
#
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::UserListResponse>]
#
# @see WhopSDK::Models::UserListParams
def list(params = {})
parsed, options = WhopSDK::UserListParams.dump_request(params)
query = WhopSDK::Internal::Util.encode_query_params(parsed)
@client.request(
method: :get,
path: "users",
query: query,
page: WhopSDK::Internal::CursorPage,
model: WhopSDK::Models::UserListResponse,
options: options
)
end

# Some parameter documentations has been truncated, see
# {WhopSDK::Models::UserCheckAccessParams} for more details.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/whop_sdk/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module WhopSDK
VERSION = "0.0.33"
VERSION = "0.0.34"
end
2 changes: 2 additions & 0 deletions rbi/whop_sdk/models.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ module WhopSDK

UserCheckAccessParams = WhopSDK::Models::UserCheckAccessParams

UserListParams = WhopSDK::Models::UserListParams

UserRetrieveParams = WhopSDK::Models::UserRetrieveParams

UserUpdateProfileParams = WhopSDK::Models::UserUpdateProfileParams
Expand Down
Loading