diff --git a/.fern/metadata.json b/.fern/metadata.json index 100eb5d9..983547ed 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -15,7 +15,7 @@ "standardwebhooks": ">=1.0.1,<2" } }, - "originGitCommit": "21a8ff91ef4f563de57850afb65bc394691c2f54", + "originGitCommit": "406822d36466aa13d580dab8d44f6b9f6ffb4acb", "originGitCommitIsDirty": false, "invokedBy": "ci", "requestedVersion": "2.2.0", diff --git a/.fern/replay.lock b/.fern/replay.lock index 3c117ae0..d19de820 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -2064,5 +2064,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.28.0 -current_generation: 03486d7f5c61daa518f34802e02aa38b103dc545 + - commit_sha: ca4c1bbc727238d0f24f1600d0c3af47837696db + tree_hash: 5a5f692ea54d8e59bce5613453802e9fe738255c + timestamp: 2026-10-08T04:13:12.196Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.28.0 +current_generation: ca4c1bbc727238d0f24f1600d0c3af47837696db patches: [] diff --git a/reference.md b/reference.md index 4d48c893..6f18757b 100644 --- a/reference.md +++ b/reference.md @@ -47277,7 +47277,7 @@ client.accounts.preferences.update(
-**economic_intelligence_auto_renew:** `typing.Optional[bool]` — `false` stops renewing: Economic Intelligence stays on until the end of the current week. `true` keeps it renewing again before then, or turns it on like the `weekly` offer. Can't be combined with `economic_intelligence_duration_key`. Requires the `company:update` scope on your API key. +**economic_intelligence_auto_renew:** `typing.Optional[bool]` — `false` stops renewing: Economic Intelligence stays on until the end of the current week, and stopping before the first renewal charges the rest of that week at the `7_days` offer's fee. `true` keeps it renewing again before then, or turns it on like the `weekly` offer. Can't be combined with `economic_intelligence_duration_key`. Requires the `company:update` scope on your API key.
diff --git a/src/whop_sdk/accounts/preferences/client.py b/src/whop_sdk/accounts/preferences/client.py index 96cbf0ca..3bfa91e1 100644 --- a/src/whop_sdk/accounts/preferences/client.py +++ b/src/whop_sdk/accounts/preferences/client.py @@ -140,7 +140,7 @@ def update( Whether Whop assembles and files the evidence response when this account's payments are disputed. Off by default; enabling it also opts the account into the success fee charged only on disputes it wins. Requires the `payment:dispute` scope on your API key. economic_intelligence_auto_renew : typing.Optional[bool] - `false` stops renewing: Economic Intelligence stays on until the end of the current week. `true` keeps it renewing again before then, or turns it on like the `weekly` offer. Can't be combined with `economic_intelligence_duration_key`. Requires the `company:update` scope on your API key. + `false` stops renewing: Economic Intelligence stays on until the end of the current week, and stopping before the first renewal charges the rest of that week at the `7_days` offer's fee. `true` keeps it renewing again before then, or turns it on like the `weekly` offer. Can't be combined with `economic_intelligence_duration_key`. Requires the `company:update` scope on your API key. economic_intelligence_duration_key : typing.Optional[UpdatePreferencesRequestEconomicIntelligenceDurationKey] Turns on Economic Intelligence with the offer that has this `key` in `economic_intelligence_offers`, at that offer's fee. A committed duration can't be changed or turned off until `economic_intelligence_ends_at`, except to upgrade to `weekly`, which switches to auto-renew right away. Requires the `company:update` scope on your API key. @@ -313,7 +313,7 @@ async def update( Whether Whop assembles and files the evidence response when this account's payments are disputed. Off by default; enabling it also opts the account into the success fee charged only on disputes it wins. Requires the `payment:dispute` scope on your API key. economic_intelligence_auto_renew : typing.Optional[bool] - `false` stops renewing: Economic Intelligence stays on until the end of the current week. `true` keeps it renewing again before then, or turns it on like the `weekly` offer. Can't be combined with `economic_intelligence_duration_key`. Requires the `company:update` scope on your API key. + `false` stops renewing: Economic Intelligence stays on until the end of the current week, and stopping before the first renewal charges the rest of that week at the `7_days` offer's fee. `true` keeps it renewing again before then, or turns it on like the `weekly` offer. Can't be combined with `economic_intelligence_duration_key`. Requires the `company:update` scope on your API key. economic_intelligence_duration_key : typing.Optional[UpdatePreferencesRequestEconomicIntelligenceDurationKey] Turns on Economic Intelligence with the offer that has this `key` in `economic_intelligence_offers`, at that offer's fee. A committed duration can't be changed or turned off until `economic_intelligence_ends_at`, except to upgrade to `weekly`, which switches to auto-renew right away. Requires the `company:update` scope on your API key. diff --git a/src/whop_sdk/accounts/preferences/raw_client.py b/src/whop_sdk/accounts/preferences/raw_client.py index 32b539d8..ca05bbdd 100644 --- a/src/whop_sdk/accounts/preferences/raw_client.py +++ b/src/whop_sdk/accounts/preferences/raw_client.py @@ -173,7 +173,7 @@ def update( Whether Whop assembles and files the evidence response when this account's payments are disputed. Off by default; enabling it also opts the account into the success fee charged only on disputes it wins. Requires the `payment:dispute` scope on your API key. economic_intelligence_auto_renew : typing.Optional[bool] - `false` stops renewing: Economic Intelligence stays on until the end of the current week. `true` keeps it renewing again before then, or turns it on like the `weekly` offer. Can't be combined with `economic_intelligence_duration_key`. Requires the `company:update` scope on your API key. + `false` stops renewing: Economic Intelligence stays on until the end of the current week, and stopping before the first renewal charges the rest of that week at the `7_days` offer's fee. `true` keeps it renewing again before then, or turns it on like the `weekly` offer. Can't be combined with `economic_intelligence_duration_key`. Requires the `company:update` scope on your API key. economic_intelligence_duration_key : typing.Optional[UpdatePreferencesRequestEconomicIntelligenceDurationKey] Turns on Economic Intelligence with the offer that has this `key` in `economic_intelligence_offers`, at that offer's fee. A committed duration can't be changed or turned off until `economic_intelligence_ends_at`, except to upgrade to `weekly`, which switches to auto-renew right away. Requires the `company:update` scope on your API key. @@ -435,7 +435,7 @@ async def update( Whether Whop assembles and files the evidence response when this account's payments are disputed. Off by default; enabling it also opts the account into the success fee charged only on disputes it wins. Requires the `payment:dispute` scope on your API key. economic_intelligence_auto_renew : typing.Optional[bool] - `false` stops renewing: Economic Intelligence stays on until the end of the current week. `true` keeps it renewing again before then, or turns it on like the `weekly` offer. Can't be combined with `economic_intelligence_duration_key`. Requires the `company:update` scope on your API key. + `false` stops renewing: Economic Intelligence stays on until the end of the current week, and stopping before the first renewal charges the rest of that week at the `7_days` offer's fee. `true` keeps it renewing again before then, or turns it on like the `weekly` offer. Can't be combined with `economic_intelligence_duration_key`. Requires the `company:update` scope on your API key. economic_intelligence_duration_key : typing.Optional[UpdatePreferencesRequestEconomicIntelligenceDurationKey] Turns on Economic Intelligence with the offer that has this `key` in `economic_intelligence_offers`, at that offer's fee. A committed duration can't be changed or turned off until `economic_intelligence_ends_at`, except to upgrade to `weekly`, which switches to auto-renew right away. Requires the `company:update` scope on your API key. diff --git a/src/whop_sdk/accounts/preferences/types/retrieve_preferences_response.py b/src/whop_sdk/accounts/preferences/types/retrieve_preferences_response.py index 2b682830..abe7e1c0 100644 --- a/src/whop_sdk/accounts/preferences/types/retrieve_preferences_response.py +++ b/src/whop_sdk/accounts/preferences/types/retrieve_preferences_response.py @@ -77,7 +77,7 @@ class RetrievePreferencesResponse(UniversalBaseModel): economic_intelligence_auto_renew: bool = pydantic.Field() """ - Whether Economic Intelligence renews itself every week, with no end date. Turn it on with the `weekly` offer. Set it to `false` to stop renewing, which keeps Economic Intelligence on until the end of the current week, shown in `economic_intelligence_ends_at`; set it back to `true` before then to keep renewing. + Whether Economic Intelligence renews itself every week, with no end date. Turn it on with the `weekly` offer. Set it to `false` to stop renewing, which keeps Economic Intelligence on until the end of the current week, shown in `economic_intelligence_ends_at`; stopping before the first renewal charges the rest of that week at the `7_days` offer's fee. Set it back to `true` before then to keep renewing at the weekly fee. """ economic_intelligence_ends_at: typing.Optional[str] = pydantic.Field(default=None) @@ -90,6 +90,11 @@ class RetrievePreferencesResponse(UniversalBaseModel): Percentage of volume charged while Economic Intelligence is on, such as `1.5` for 1.5%. `null` when Economic Intelligence is off. """ + economic_intelligence_first_renewal_at: typing.Optional[str] = pydantic.Field(default=None) + """ + When auto-renew first renews, as an ISO 8601 timestamp. Turning auto-renew off before then charges the rest of that week at the `7_days` offer's fee. `null` when auto-renew is off. + """ + economic_intelligence_offers: typing.List[RetrievePreferencesResponseEconomicIntelligenceOffersItem] = ( pydantic.Field() ) diff --git a/src/whop_sdk/accounts/preferences/types/update_preferences_response.py b/src/whop_sdk/accounts/preferences/types/update_preferences_response.py index 78e66c61..5a7177fc 100644 --- a/src/whop_sdk/accounts/preferences/types/update_preferences_response.py +++ b/src/whop_sdk/accounts/preferences/types/update_preferences_response.py @@ -75,7 +75,7 @@ class UpdatePreferencesResponse(UniversalBaseModel): economic_intelligence_auto_renew: bool = pydantic.Field() """ - Whether Economic Intelligence renews itself every week, with no end date. Turn it on with the `weekly` offer. Set it to `false` to stop renewing, which keeps Economic Intelligence on until the end of the current week, shown in `economic_intelligence_ends_at`; set it back to `true` before then to keep renewing. + Whether Economic Intelligence renews itself every week, with no end date. Turn it on with the `weekly` offer. Set it to `false` to stop renewing, which keeps Economic Intelligence on until the end of the current week, shown in `economic_intelligence_ends_at`; stopping before the first renewal charges the rest of that week at the `7_days` offer's fee. Set it back to `true` before then to keep renewing at the weekly fee. """ economic_intelligence_ends_at: typing.Optional[str] = pydantic.Field(default=None) @@ -88,6 +88,11 @@ class UpdatePreferencesResponse(UniversalBaseModel): Percentage of volume charged while Economic Intelligence is on, such as `1.5` for 1.5%. `null` when Economic Intelligence is off. """ + economic_intelligence_first_renewal_at: typing.Optional[str] = pydantic.Field(default=None) + """ + When auto-renew first renews, as an ISO 8601 timestamp. Turning auto-renew off before then charges the rest of that week at the `7_days` offer's fee. `null` when auto-renew is off. + """ + economic_intelligence_offers: typing.List[UpdatePreferencesResponseEconomicIntelligenceOffersItem] = ( pydantic.Field() ) diff --git a/src/whop_sdk/types/account_preferences.py b/src/whop_sdk/types/account_preferences.py index 53fba631..8fc97245 100644 --- a/src/whop_sdk/types/account_preferences.py +++ b/src/whop_sdk/types/account_preferences.py @@ -59,7 +59,7 @@ class AccountPreferences(UniversalBaseModel): economic_intelligence_auto_renew: bool = pydantic.Field() """ - Whether Economic Intelligence renews itself every week, with no end date. Turn it on with the `weekly` offer. Set it to `false` to stop renewing, which keeps Economic Intelligence on until the end of the current week, shown in `economic_intelligence_ends_at`; set it back to `true` before then to keep renewing. + Whether Economic Intelligence renews itself every week, with no end date. Turn it on with the `weekly` offer. Set it to `false` to stop renewing, which keeps Economic Intelligence on until the end of the current week, shown in `economic_intelligence_ends_at`; stopping before the first renewal charges the rest of that week at the `7_days` offer's fee. Set it back to `true` before then to keep renewing at the weekly fee. """ economic_intelligence_ends_at: typing.Optional[str] = pydantic.Field(default=None) @@ -72,6 +72,11 @@ class AccountPreferences(UniversalBaseModel): Percentage of volume charged while Economic Intelligence is on, such as `1.5` for 1.5%. `null` when Economic Intelligence is off. """ + economic_intelligence_first_renewal_at: typing.Optional[str] = pydantic.Field(default=None) + """ + When auto-renew first renews, as an ISO 8601 timestamp. Turning auto-renew off before then charges the rest of that week at the `7_days` offer's fee. `null` when auto-renew is off. + """ + economic_intelligence_offers: typing.List[AccountEconomicIntelligenceOffer] economic_intelligence_previous_period: typing.Optional[AccountEconomicIntelligencePreviousPeriod] = pydantic.Field( default=None