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.31"
".": "0.0.32"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 176
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-f49331e3fb23d1041f941c72c6ee9924dfa47634889ed5209244207c8ea0586e.yml
openapi_spec_hash: 93d6cef1312ed0cbe6b2b6616c535ebf
config_hash: 71004ac2f2a6283ca55db1065c47e5f6
configured_endpoints: 178
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-187882c4d823394e3577f9843c288f4187e4f9b38646105c40b88e4e83b27979.yml
openapi_spec_hash: 16eb1c84681dc3ad39c987b7abf1e191
config_hash: e9bda7cddca13f2b41d8f7521ad36cf5
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 0.0.32 (2026-03-11)

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

### Features

* **api:** api update ([6736597](https://github.com/whopio/whopsdk-ruby/commit/67365979c3472172bef736fc73574bb5719614e5))
* **api:** api update ([d6af2cc](https://github.com/whopio/whopsdk-ruby/commit/d6af2cc7ea14659053aff192953d4062ce31a293))
* **api:** api update ([e764995](https://github.com/whopio/whopsdk-ruby/commit/e764995aa75bd2b92fdc29592c81f75afd0abd49))
* **api:** manual updates ([3539993](https://github.com/whopio/whopsdk-ruby/commit/3539993a158657780bdc730aecb8c3cad3c16d12))
* **client:** add webhook support ([f1b05ca](https://github.com/whopio/whopsdk-ruby/commit/f1b05ca076a06579625ec9c3a78dc96b59d867fd))

## 0.0.31 (2026-03-10)

Full Changelog: [v0.0.30...v0.0.31](https://github.com/whopio/whopsdk-ruby/compare/v0.0.30...v0.0.31)
Expand Down
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ GIT
PATH
remote: .
specs:
whop_sdk (0.0.31)
whop_sdk (0.0.32)
cgi
connection_pool
standardwebhooks
jwt
openssl

Expand Down Expand Up @@ -148,6 +149,7 @@ GEM
rexml (>= 3.2.6)
sorbet-static-and-runtime (>= 0.5.10187)
thor (>= 0.19.2)
standardwebhooks (1.0.1)
steep (1.10.0)
activesupport (>= 5.1)
concurrent-ruby (>= 1.1.10)
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.31"
gem "whop_sdk", "~> 0.0.32"
```

<!-- x-release-please-end -->
Expand Down
14 changes: 12 additions & 2 deletions lib/whop_sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

# Gems.
require "connection_pool"
require "standardwebhooks"

# Package files.
require_relative "whop_sdk/version"
Expand Down Expand Up @@ -86,14 +87,13 @@
require_relative "whop_sdk/models/app_update_params"
require_relative "whop_sdk/models/app_view_type"
require_relative "whop_sdk/models/assessment_question_types"
require_relative "whop_sdk/models/authorized_user"
require_relative "whop_sdk/models/authorized_user_create_params"
require_relative "whop_sdk/models/authorized_user_create_response"
require_relative "whop_sdk/models/authorized_user_delete_params"
require_relative "whop_sdk/models/authorized_user_delete_response"
require_relative "whop_sdk/models/authorized_user_list_params"
require_relative "whop_sdk/models/authorized_user_list_response"
require_relative "whop_sdk/models/authorized_user_retrieve_params"
require_relative "whop_sdk/models/authorized_user_retrieve_response"
require_relative "whop_sdk/models/authorized_user_roles"
require_relative "whop_sdk/models/billing_reasons"
require_relative "whop_sdk/models/cancel_options"
Expand Down Expand Up @@ -375,6 +375,15 @@
require_relative "whop_sdk/models/refund_status"
require_relative "whop_sdk/models/refund_updated_webhook_event"
require_relative "whop_sdk/models/release_method"
require_relative "whop_sdk/models/resolution_center_case_customer_response"
require_relative "whop_sdk/models/resolution_center_case_issue_type"
require_relative "whop_sdk/models/resolution_center_case_list_params"
require_relative "whop_sdk/models/resolution_center_case_list_response"
require_relative "whop_sdk/models/resolution_center_case_merchant_response"
require_relative "whop_sdk/models/resolution_center_case_platform_response"
require_relative "whop_sdk/models/resolution_center_case_retrieve_params"
require_relative "whop_sdk/models/resolution_center_case_retrieve_response"
require_relative "whop_sdk/models/resolution_center_case_status"
require_relative "whop_sdk/models/review_list_params"
require_relative "whop_sdk/models/review_list_response"
require_relative "whop_sdk/models/review_retrieve_params"
Expand Down Expand Up @@ -490,6 +499,7 @@
require_relative "whop_sdk/resources/promo_codes"
require_relative "whop_sdk/resources/reactions"
require_relative "whop_sdk/resources/refunds"
require_relative "whop_sdk/resources/resolution_center_cases"
require_relative "whop_sdk/resources/reviews"
require_relative "whop_sdk/resources/setup_intents"
require_relative "whop_sdk/resources/shipments"
Expand Down
12 changes: 12 additions & 0 deletions lib/whop_sdk/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class Client < WhopSDK::Internal::Transport::BaseClient
# @return [String]
attr_reader :api_key

# @return [String, nil]
attr_reader :webhook_key

# When using the SDK in app mode pass this parameter to allow verifying user
# tokens
# @return [String, nil]
Expand Down Expand Up @@ -226,6 +229,10 @@ class Client < WhopSDK::Internal::Transport::BaseClient
# @return [WhopSDK::Resources::DisputeAlerts]
attr_reader :dispute_alerts

# Resolution center cases
# @return [WhopSDK::Resources::ResolutionCenterCases]
attr_reader :resolution_center_cases

# @api private
#
# @return [Hash{String=>String}]
Expand All @@ -241,6 +248,8 @@ class Client < WhopSDK::Internal::Transport::BaseClient
# must prepend your key/token with the word 'Bearer', which will look like
# `Bearer ***************************` Defaults to `ENV["WHOP_API_KEY"]`
#
# @param webhook_key [String, nil] Defaults to `ENV["WHOP_WEBHOOK_SECRET"]`
#
# @param app_id [String, nil] When using the SDK in app mode pass this parameter to allow verifying user
# tokens Defaults to `ENV["WHOP_APP_ID"]`
#
Expand All @@ -256,6 +265,7 @@ class Client < WhopSDK::Internal::Transport::BaseClient
# @param max_retry_delay [Float]
def initialize(
api_key: ENV["WHOP_API_KEY"],
webhook_key: ENV["WHOP_WEBHOOK_SECRET"],
app_id: ENV["WHOP_APP_ID"],
base_url: ENV["WHOP_BASE_URL"],
max_retries: self.class::DEFAULT_MAX_RETRIES,
Expand All @@ -274,6 +284,7 @@ def initialize(
}

@api_key = api_key.to_s
@webhook_key = webhook_key&.to_s

super(
base_url: base_url,
Expand Down Expand Up @@ -334,6 +345,7 @@ def initialize(
@ai_chats = WhopSDK::Resources::AIChats.new(client: self)
@dm_channels = WhopSDK::Resources::DmChannels.new(client: self)
@dispute_alerts = WhopSDK::Resources::DisputeAlerts.new(client: self)
@resolution_center_cases = WhopSDK::Resources::ResolutionCenterCases.new(client: self)
end

# Verifies a Whop user token
Expand Down
16 changes: 16 additions & 0 deletions lib/whop_sdk/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ module WhopSDK

AssessmentQuestionTypes = WhopSDK::Models::AssessmentQuestionTypes

AuthorizedUser = WhopSDK::Models::AuthorizedUser

AuthorizedUserCreateParams = WhopSDK::Models::AuthorizedUserCreateParams

AuthorizedUserDeleteParams = WhopSDK::Models::AuthorizedUserDeleteParams
Expand Down Expand Up @@ -551,6 +553,20 @@ module WhopSDK

ReleaseMethod = WhopSDK::Models::ReleaseMethod

ResolutionCenterCaseCustomerResponse = WhopSDK::Models::ResolutionCenterCaseCustomerResponse

ResolutionCenterCaseIssueType = WhopSDK::Models::ResolutionCenterCaseIssueType

ResolutionCenterCaseListParams = WhopSDK::Models::ResolutionCenterCaseListParams

ResolutionCenterCaseMerchantResponse = WhopSDK::Models::ResolutionCenterCaseMerchantResponse

ResolutionCenterCasePlatformResponse = WhopSDK::Models::ResolutionCenterCasePlatformResponse

ResolutionCenterCaseRetrieveParams = WhopSDK::Models::ResolutionCenterCaseRetrieveParams

ResolutionCenterCaseStatus = WhopSDK::Models::ResolutionCenterCaseStatus

ReviewListParams = WhopSDK::Models::ReviewListParams

ReviewRetrieveParams = WhopSDK::Models::ReviewRetrieveParams
Expand Down
10 changes: 9 additions & 1 deletion lib/whop_sdk/models/ai_chat_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ class AIChatListParams < WhopSDK::Internal::Type::BaseModel
# @return [Integer, nil]
optional :last, Integer, nil?: true

# @!method initialize(after: nil, before: nil, first: nil, last: nil, request_options: {})
# @!attribute only_active_crons
# When true, returns only chats with an active cron schedule
#
# @return [Boolean, nil]
optional :only_active_crons, WhopSDK::Internal::Type::Boolean, nil?: true

# @!method initialize(after: nil, before: nil, first: nil, last: nil, only_active_crons: 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.
Expand All @@ -40,6 +46,8 @@ class AIChatListParams < WhopSDK::Internal::Type::BaseModel
#
# @param last [Integer, nil] Returns the last _n_ elements from the list.
#
# @param only_active_crons [Boolean, nil] When true, returns only chats with an active cron schedule
#
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module WhopSDK
module Models
# @see WhopSDK::Resources::AuthorizedUsers#create
class AuthorizedUserCreateResponse < WhopSDK::Internal::Type::BaseModel
class AuthorizedUser < WhopSDK::Internal::Type::BaseModel
# @!attribute id
# The unique identifier for the authorized user.
#
Expand All @@ -13,8 +13,8 @@ class AuthorizedUserCreateResponse < WhopSDK::Internal::Type::BaseModel
# @!attribute company
# The company this authorized user has access to.
#
# @return [WhopSDK::Models::AuthorizedUserCreateResponse::Company]
required :company, -> { WhopSDK::Models::AuthorizedUserCreateResponse::Company }
# @return [WhopSDK::Models::AuthorizedUser::Company]
required :company, -> { WhopSDK::AuthorizedUser::Company }

# @!attribute role
# The permission role assigned to this authorized user within the company.
Expand All @@ -25,22 +25,22 @@ class AuthorizedUserCreateResponse < WhopSDK::Internal::Type::BaseModel
# @!attribute user
# The user account linked to this authorized user record.
#
# @return [WhopSDK::Models::AuthorizedUserCreateResponse::User]
required :user, -> { WhopSDK::Models::AuthorizedUserCreateResponse::User }
# @return [WhopSDK::Models::AuthorizedUser::User]
required :user, -> { WhopSDK::AuthorizedUser::User }

# @!method initialize(id:, company:, role:, user:)
# A user who has been granted administrative access to manage a company's
# dashboard and settings.
#
# @param id [String] The unique identifier for the authorized user.
#
# @param company [WhopSDK::Models::AuthorizedUserCreateResponse::Company] The company this authorized user has access to.
# @param company [WhopSDK::Models::AuthorizedUser::Company] The company this authorized user has access to.
#
# @param role [Symbol, WhopSDK::Models::AuthorizedUserRoles] The permission role assigned to this authorized user within the company.
#
# @param user [WhopSDK::Models::AuthorizedUserCreateResponse::User] The user account linked to this authorized user record.
# @param user [WhopSDK::Models::AuthorizedUser::User] The user account linked to this authorized user record.

# @see WhopSDK::Models::AuthorizedUserCreateResponse#company
# @see WhopSDK::Models::AuthorizedUser#company
class Company < WhopSDK::Internal::Type::BaseModel
# @!attribute id
# The unique identifier for the company.
Expand All @@ -62,7 +62,7 @@ class Company < WhopSDK::Internal::Type::BaseModel
# @param title [String] The display name of the company shown to customers.
end

# @see WhopSDK::Models::AuthorizedUserCreateResponse#user
# @see WhopSDK::Models::AuthorizedUser#user
class User < WhopSDK::Internal::Type::BaseModel
# @!attribute id
# The unique identifier for the user.
Expand Down Expand Up @@ -91,7 +91,7 @@ class User < WhopSDK::Internal::Type::BaseModel

# @!method initialize(id:, email:, name:, username:)
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::AuthorizedUserCreateResponse::User} for more details.
# {WhopSDK::Models::AuthorizedUser::User} for more details.
#
# The user account linked to this authorized user record.
#
Expand Down
108 changes: 0 additions & 108 deletions lib/whop_sdk/models/authorized_user_retrieve_response.rb

This file was deleted.

Loading