Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.idea/
.ignore
.prism.log
.stdy.log
.ruby-lsp/
.yardoc/
bin/tapioca
Expand Down
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.35"
".": "0.0.36"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 191
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-97e920db587b07c064bef1bf31de5e110a3750ddfddc8fca26642e79e6b827f8.yml
openapi_spec_hash: 97ca16cc55271602443a4329d1e02895
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-47d955d6b9631b4ad43668426ff3867e9d7566926680ea2b4c4bd16869ccaff5.yml
openapi_spec_hash: d8f3bb32c233225f85b20b69318dada9
config_hash: 1a836d20bb988f001cc66d1526f71306
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 0.0.36 (2026-03-23)

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

### Features

* **api:** api update ([eaacc3d](https://github.com/whopio/whopsdk-ruby/commit/eaacc3d5f6a85e8fa2a13d4b9cb57eb390801b90))
* **api:** api update ([c1ce4e0](https://github.com/whopio/whopsdk-ruby/commit/c1ce4e08b7a1c33b6e43da9c81d00a4cba547067))
* **api:** api update ([bc8226e](https://github.com/whopio/whopsdk-ruby/commit/bc8226e36a365d09cd1503725ca24106f45633a6))


### Chores

* **internal:** update gitignore ([70a6981](https://github.com/whopio/whopsdk-ruby/commit/70a69813a7a9afdeebf401362aa020f851cc4ac8))

## 0.0.35 (2026-03-18)

Full Changelog: [v0.0.34...v0.0.35](https://github.com/whopio/whopsdk-ruby/compare/v0.0.34...v0.0.35)
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.35)
whop_sdk (0.0.36)
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.35"
gem "whop_sdk", "~> 0.0.36"
```

<!-- x-release-please-end -->
Expand Down
29 changes: 18 additions & 11 deletions lib/whop_sdk/models/affiliate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,20 @@ class Affiliate < WhopSDK::Internal::Type::BaseModel
required :created_at, Time

# @!attribute customer_retention_rate
# How many referrals have remained since they joined as members
# The percentage of referred customers who are still active members
#
# @return [String]
required :customer_retention_rate, String

# @!attribute customer_retention_rate_ninety_days
# A rolling 90-day retention rate for this affiliate
# The percentage of referred customers who remained active over the last 90 days
#
# @return [String]
required :customer_retention_rate_ninety_days, String

# @!attribute monthly_recurring_revenue_usd
# The total MRR of the affiliate
# The monthly recurring revenue generated by this affiliate's referrals, formatted
# as a USD currency string
#
# @return [String]
required :monthly_recurring_revenue_usd, String
Expand All @@ -59,7 +60,8 @@ class Affiliate < WhopSDK::Internal::Type::BaseModel
required :total_overrides_count, Integer

# @!attribute total_referral_earnings_usd
# The total earnings of the affiliate from the users they referred
# The total commission earnings paid to this affiliate, formatted as a USD
# currency string
#
# @return [String]
required :total_referral_earnings_usd, String
Expand All @@ -71,7 +73,8 @@ class Affiliate < WhopSDK::Internal::Type::BaseModel
required :total_referrals_count, Integer

# @!attribute total_revenue_usd
# The total revenue of the affiliate from their referrals
# The total revenue generated from this affiliate's referrals, formatted as a USD
# currency string
#
# @return [String]
required :total_revenue_usd, String
Expand All @@ -89,7 +92,11 @@ class Affiliate < WhopSDK::Internal::Type::BaseModel
required :user, -> { WhopSDK::Affiliate::User }

# @!method initialize(id:, active_members_count:, company:, created_at:, customer_retention_rate:, customer_retention_rate_ninety_days:, monthly_recurring_revenue_usd:, status:, total_overrides_count:, total_referral_earnings_usd:, total_referrals_count:, total_revenue_usd:, updated_at:, user:)
# An affiliate of a company or a global affiliate
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::Affiliate} for more details.
#
# An affiliate tracks a user's referral performance and commission earnings for a
# company, including retention rates, revenue metrics, and payout configurations.
#
# @param id [String] The unique identifier for the affiliate.
#
Expand All @@ -99,21 +106,21 @@ class Affiliate < WhopSDK::Internal::Type::BaseModel
#
# @param created_at [Time] The datetime the affiliate was created.
#
# @param customer_retention_rate [String] How many referrals have remained since they joined as members
# @param customer_retention_rate [String] The percentage of referred customers who are still active members
#
# @param customer_retention_rate_ninety_days [String] A rolling 90-day retention rate for this affiliate
# @param customer_retention_rate_ninety_days [String] The percentage of referred customers who remained active over the last 90 days
#
# @param monthly_recurring_revenue_usd [String] The total MRR of the affiliate
# @param monthly_recurring_revenue_usd [String] The monthly recurring revenue generated by this affiliate's referrals, formatted
#
# @param status [Symbol, WhopSDK::Models::Status, nil] Statuses for resources
#
# @param total_overrides_count [Integer] The total count of all overrides for this affiliate
#
# @param total_referral_earnings_usd [String] The total earnings of the affiliate from the users they referred
# @param total_referral_earnings_usd [String] The total commission earnings paid to this affiliate, formatted as a USD currenc
#
# @param total_referrals_count [Integer] The total referrals of the affiliate
#
# @param total_revenue_usd [String] The total revenue of the affiliate from their referrals
# @param total_revenue_usd [String] The total revenue generated from this affiliate's referrals, formatted as a USD
#
# @param updated_at [Time] The datetime the affiliate was last updated.
#
Expand Down
29 changes: 18 additions & 11 deletions lib/whop_sdk/models/affiliate_list_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,20 @@ class AffiliateListResponse < WhopSDK::Internal::Type::BaseModel
required :created_at, Time

# @!attribute customer_retention_rate
# How many referrals have remained since they joined as members
# The percentage of referred customers who are still active members
#
# @return [String]
required :customer_retention_rate, String

# @!attribute customer_retention_rate_ninety_days
# A rolling 90-day retention rate for this affiliate
# The percentage of referred customers who remained active over the last 90 days
#
# @return [String]
required :customer_retention_rate_ninety_days, String

# @!attribute monthly_recurring_revenue_usd
# The total MRR of the affiliate
# The monthly recurring revenue generated by this affiliate's referrals, formatted
# as a USD currency string
#
# @return [String]
required :monthly_recurring_revenue_usd, String
Expand All @@ -59,7 +60,8 @@ class AffiliateListResponse < WhopSDK::Internal::Type::BaseModel
required :total_overrides_count, Integer

# @!attribute total_referral_earnings_usd
# The total earnings of the affiliate from the users they referred
# The total commission earnings paid to this affiliate, formatted as a USD
# currency string
#
# @return [String]
required :total_referral_earnings_usd, String
Expand All @@ -71,7 +73,8 @@ class AffiliateListResponse < WhopSDK::Internal::Type::BaseModel
required :total_referrals_count, Integer

# @!attribute total_revenue_usd
# The total revenue of the affiliate from their referrals
# The total revenue generated from this affiliate's referrals, formatted as a USD
# currency string
#
# @return [String]
required :total_revenue_usd, String
Expand All @@ -89,7 +92,11 @@ class AffiliateListResponse < WhopSDK::Internal::Type::BaseModel
required :user, -> { WhopSDK::Models::AffiliateListResponse::User }

# @!method initialize(id:, active_members_count:, company:, created_at:, customer_retention_rate:, customer_retention_rate_ninety_days:, monthly_recurring_revenue_usd:, status:, total_overrides_count:, total_referral_earnings_usd:, total_referrals_count:, total_revenue_usd:, updated_at:, user:)
# An affiliate of a company or a global affiliate
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::AffiliateListResponse} for more details.
#
# An affiliate tracks a user's referral performance and commission earnings for a
# company, including retention rates, revenue metrics, and payout configurations.
#
# @param id [String] The unique identifier for the affiliate.
#
Expand All @@ -99,21 +106,21 @@ class AffiliateListResponse < WhopSDK::Internal::Type::BaseModel
#
# @param created_at [Time] The datetime the affiliate was created.
#
# @param customer_retention_rate [String] How many referrals have remained since they joined as members
# @param customer_retention_rate [String] The percentage of referred customers who are still active members
#
# @param customer_retention_rate_ninety_days [String] A rolling 90-day retention rate for this affiliate
# @param customer_retention_rate_ninety_days [String] The percentage of referred customers who remained active over the last 90 days
#
# @param monthly_recurring_revenue_usd [String] The total MRR of the affiliate
# @param monthly_recurring_revenue_usd [String] The monthly recurring revenue generated by this affiliate's referrals, formatted
#
# @param status [Symbol, WhopSDK::Models::Status, nil] Statuses for resources
#
# @param total_overrides_count [Integer] The total count of all overrides for this affiliate
#
# @param total_referral_earnings_usd [String] The total earnings of the affiliate from the users they referred
# @param total_referral_earnings_usd [String] The total commission earnings paid to this affiliate, formatted as a USD currenc
#
# @param total_referrals_count [Integer] The total referrals of the affiliate
#
# @param total_revenue_usd [String] The total revenue of the affiliate from their referrals
# @param total_revenue_usd [String] The total revenue generated from this affiliate's referrals, formatted as a USD
#
# @param updated_at [Time] The datetime the affiliate was last updated.
#
Expand Down
8 changes: 5 additions & 3 deletions lib/whop_sdk/models/affiliates/override_create_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class OverrideCreateResponse < WhopSDK::Internal::Type::BaseModel
required :commission_type, enum: -> { WhopSDK::Affiliates::AffiliatePayoutTypes }

# @!attribute commission_value
# The commission value (percentage 1-100 or flat fee in dollars).
# The commission amount. A percentage (1-100) when commission_type is percentage,
# or a dollar amount when flat_fee.
#
# @return [Float]
required :commission_value, Float
Expand Down Expand Up @@ -90,7 +91,8 @@ class OverrideCreateResponse < WhopSDK::Internal::Type::BaseModel
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::Affiliates::OverrideCreateResponse} for more details.
#
# An object storing information about the affiliate
# A commission configuration for an affiliate, defining payout terms for a
# specific plan or revenue share
#
# @param id [String] The unique identifier for the affiliate override.
#
Expand All @@ -102,7 +104,7 @@ class OverrideCreateResponse < WhopSDK::Internal::Type::BaseModel
#
# @param commission_type [Symbol, WhopSDK::Models::Affiliates::AffiliatePayoutTypes] The type of commission (percentage or flat_fee).
#
# @param commission_value [Float] The commission value (percentage 1-100 or flat fee in dollars).
# @param commission_value [Float] The commission amount. A percentage (1-100) when commission_type is percentage,
#
# @param override_type [Symbol, WhopSDK::Models::Affiliates::AffiliateOverrideRoles] The type of override (standard or rev_share).
#
Expand Down
8 changes: 5 additions & 3 deletions lib/whop_sdk/models/affiliates/override_list_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class OverrideListResponse < WhopSDK::Internal::Type::BaseModel
required :commission_type, enum: -> { WhopSDK::Affiliates::AffiliatePayoutTypes }

# @!attribute commission_value
# The commission value (percentage 1-100 or flat fee in dollars).
# The commission amount. A percentage (1-100) when commission_type is percentage,
# or a dollar amount when flat_fee.
#
# @return [Float]
required :commission_value, Float
Expand Down Expand Up @@ -90,7 +91,8 @@ class OverrideListResponse < WhopSDK::Internal::Type::BaseModel
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::Affiliates::OverrideListResponse} for more details.
#
# An object storing information about the affiliate
# A commission configuration for an affiliate, defining payout terms for a
# specific plan or revenue share
#
# @param id [String] The unique identifier for the affiliate override.
#
Expand All @@ -102,7 +104,7 @@ class OverrideListResponse < WhopSDK::Internal::Type::BaseModel
#
# @param commission_type [Symbol, WhopSDK::Models::Affiliates::AffiliatePayoutTypes] The type of commission (percentage or flat_fee).
#
# @param commission_value [Float] The commission value (percentage 1-100 or flat fee in dollars).
# @param commission_value [Float] The commission amount. A percentage (1-100) when commission_type is percentage,
#
# @param override_type [Symbol, WhopSDK::Models::Affiliates::AffiliateOverrideRoles] The type of override (standard or rev_share).
#
Expand Down
8 changes: 5 additions & 3 deletions lib/whop_sdk/models/affiliates/override_retrieve_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class OverrideRetrieveResponse < WhopSDK::Internal::Type::BaseModel
required :commission_type, enum: -> { WhopSDK::Affiliates::AffiliatePayoutTypes }

# @!attribute commission_value
# The commission value (percentage 1-100 or flat fee in dollars).
# The commission amount. A percentage (1-100) when commission_type is percentage,
# or a dollar amount when flat_fee.
#
# @return [Float]
required :commission_value, Float
Expand Down Expand Up @@ -90,7 +91,8 @@ class OverrideRetrieveResponse < WhopSDK::Internal::Type::BaseModel
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::Affiliates::OverrideRetrieveResponse} for more details.
#
# An object storing information about the affiliate
# A commission configuration for an affiliate, defining payout terms for a
# specific plan or revenue share
#
# @param id [String] The unique identifier for the affiliate override.
#
Expand All @@ -102,7 +104,7 @@ class OverrideRetrieveResponse < WhopSDK::Internal::Type::BaseModel
#
# @param commission_type [Symbol, WhopSDK::Models::Affiliates::AffiliatePayoutTypes] The type of commission (percentage or flat_fee).
#
# @param commission_value [Float] The commission value (percentage 1-100 or flat fee in dollars).
# @param commission_value [Float] The commission amount. A percentage (1-100) when commission_type is percentage,
#
# @param override_type [Symbol, WhopSDK::Models::Affiliates::AffiliateOverrideRoles] The type of override (standard or rev_share).
#
Expand Down
8 changes: 5 additions & 3 deletions lib/whop_sdk/models/affiliates/override_update_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class OverrideUpdateResponse < WhopSDK::Internal::Type::BaseModel
required :commission_type, enum: -> { WhopSDK::Affiliates::AffiliatePayoutTypes }

# @!attribute commission_value
# The commission value (percentage 1-100 or flat fee in dollars).
# The commission amount. A percentage (1-100) when commission_type is percentage,
# or a dollar amount when flat_fee.
#
# @return [Float]
required :commission_value, Float
Expand Down Expand Up @@ -90,7 +91,8 @@ class OverrideUpdateResponse < WhopSDK::Internal::Type::BaseModel
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::Affiliates::OverrideUpdateResponse} for more details.
#
# An object storing information about the affiliate
# A commission configuration for an affiliate, defining payout terms for a
# specific plan or revenue share
#
# @param id [String] The unique identifier for the affiliate override.
#
Expand All @@ -102,7 +104,7 @@ class OverrideUpdateResponse < WhopSDK::Internal::Type::BaseModel
#
# @param commission_type [Symbol, WhopSDK::Models::Affiliates::AffiliatePayoutTypes] The type of commission (percentage or flat_fee).
#
# @param commission_value [Float] The commission value (percentage 1-100 or flat fee in dollars).
# @param commission_value [Float] The commission amount. A percentage (1-100) when commission_type is percentage,
#
# @param override_type [Symbol, WhopSDK::Models::Affiliates::AffiliateOverrideRoles] The type of override (standard or rev_share).
#
Expand Down
Loading