whop_sdk 2.8.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -3
  3. data/.fern/replay.lock +157 -1
  4. data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups.rb +2 -0
  5. data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_crypto_swaps.rb +1 -1
  6. data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_deposits_value.rb +1 -1
  7. data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_payment_methods_value.rb +17 -0
  8. data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_payments.rb +1 -1
  9. data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_payouts_value.rb +1 -1
  10. data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_transfers.rb +1 -1
  11. data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups.rb +2 -0
  12. data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_crypto_swaps.rb +1 -1
  13. data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_deposits_value.rb +1 -1
  14. data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_payment_methods_value.rb +17 -0
  15. data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_payments.rb +1 -1
  16. data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_payouts_value.rb +1 -1
  17. data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_transfers.rb +1 -1
  18. data/lib/whop_sdk/accounts/preferences/client.rb +2 -1
  19. data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response.rb +6 -0
  20. data/lib/whop_sdk/accounts/preferences/types/update_preferences_request.rb +6 -0
  21. data/lib/whop_sdk/accounts/preferences/types/update_preferences_response.rb +6 -0
  22. data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +4 -0
  23. data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +4 -0
  24. data/lib/whop_sdk/apps/client.rb +5 -4
  25. data/lib/whop_sdk/apps/types/list_apps_request.rb +2 -0
  26. data/lib/whop_sdk/apps/types/list_apps_response_page_info.rb +4 -0
  27. data/lib/whop_sdk/automations/client.rb +5 -5
  28. data/lib/whop_sdk/client.rb +1 -6
  29. data/lib/whop_sdk/economic_intelligence/client.rb +10 -11
  30. data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_response_rows_item_line_category.rb +14 -0
  31. data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
  32. data/lib/whop_sdk/invoices/client.rb +41 -0
  33. data/lib/whop_sdk/{leads/types/retrieve_leads_request.rb → invoices/types/delete_invoices_request.rb} +2 -2
  34. data/lib/whop_sdk/invoices/types/delete_invoices_response.rb +13 -0
  35. data/lib/whop_sdk/members/client.rb +39 -4
  36. data/lib/whop_sdk/members/types/create_members_request.rb +15 -0
  37. data/lib/whop_sdk/members/types/update_members_request.rb +2 -0
  38. data/lib/whop_sdk/members/types/update_members_request_metadata_value.rb +17 -0
  39. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_request_income_source_item.rb +1 -0
  40. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_income_source.rb +1 -0
  41. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_resource.rb +6 -3
  42. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_resource_created_at.rb +21 -0
  43. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_resource_created_at_income_source.rb +26 -0
  44. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_resource_created_at_object.rb +17 -0
  45. data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response.rb +2 -0
  46. data/lib/whop_sdk/partners/client.rb +2 -1
  47. data/lib/whop_sdk/team_members/client.rb +12 -7
  48. data/lib/whop_sdk/team_members/types/list_team_members_request.rb +3 -1
  49. data/lib/whop_sdk/transfers/types/create_transfers_request_body_claim_link.rb +2 -0
  50. data/lib/whop_sdk/transfers/types/create_transfers_request_body_claim_link_currency.rb +96 -0
  51. data/lib/whop_sdk/types/account_fee_markups.rb +2 -0
  52. data/lib/whop_sdk/types/account_preferences.rb +6 -0
  53. data/lib/whop_sdk/types/api_key_api_version_date.rb +4 -0
  54. data/lib/whop_sdk/types/app.rb +8 -0
  55. data/lib/whop_sdk/types/app_list_item.rb +6 -0
  56. data/lib/whop_sdk/types/invoice.rb +4 -0
  57. data/lib/whop_sdk/types/ledger_activity_line_type.rb +14 -0
  58. data/lib/whop_sdk/types/member.rb +2 -0
  59. data/lib/whop_sdk/types/payment_bank_transfer.rb +2 -0
  60. data/lib/whop_sdk/types/permission_action.rb +1 -0
  61. data/lib/whop_sdk/types/shipping_address_changed_webhook_reply.rb +4 -0
  62. data/lib/whop_sdk/types/shipping_address_changed_webhook_reply_shipping_option.rb +13 -0
  63. data/lib/whop_sdk/types/team_member.rb +3 -1
  64. data/lib/whop_sdk/version.rb +1 -1
  65. data/lib/whop_sdk.rb +11 -14
  66. data/reference.md +214 -409
  67. metadata +13 -16
  68. data/lib/whop_sdk/leads/client.rb +0 -227
  69. data/lib/whop_sdk/leads/types/create_leads_request.rb +0 -19
  70. data/lib/whop_sdk/leads/types/list_leads_request.rb +0 -25
  71. data/lib/whop_sdk/leads/types/list_leads_response.rb +0 -14
  72. data/lib/whop_sdk/leads/types/update_leads_request.rb +0 -15
  73. data/lib/whop_sdk/types/lead.rb +0 -24
  74. data/lib/whop_sdk/types/lead_list_item.rb +0 -24
  75. data/lib/whop_sdk/types/lead_list_item_member.rb +0 -10
  76. data/lib/whop_sdk/types/lead_list_item_product.rb +0 -12
  77. data/lib/whop_sdk/types/lead_list_item_user.rb +0 -16
  78. data/lib/whop_sdk/types/lead_member.rb +0 -10
  79. data/lib/whop_sdk/types/lead_product.rb +0 -12
  80. data/lib/whop_sdk/types/lead_user.rb +0 -16
data/reference.md CHANGED
@@ -7144,7 +7144,7 @@ client.app_installations.update(id: "id")
7144
7144
  <dl>
7145
7145
  <dd>
7146
7146
 
7147
- Lists apps on the Whop platform: the app store's live apps, or — with `account_id` and developer access to that account — every app the account owns. Requires authentication except for Whop's public app and website discovery lists. Public website discovery includes built official blueprints (verified apps with a product) and built, live community blueprints that Whop recommends.
7147
+ Lists published apps approved for the app store without authentication. With `account_id` and developer access, also includes unpublished apps that the account owns. Public website discovery includes built official blueprints and built, live community blueprints that Whop recommends.
7148
7148
  </dd>
7149
7149
  </dl>
7150
7150
  </dd>
@@ -7310,6 +7310,14 @@ client.apps.list
7310
7310
  <dl>
7311
7311
  <dd>
7312
7312
 
7313
+ **include_total_count:** `Internal::Types::Boolean` — Set to `true` to return the number of matching results in `page_info.total_count`. Send `first=0` as well to return the count without any results.
7314
+
7315
+ </dd>
7316
+ </dl>
7317
+
7318
+ <dl>
7319
+ <dd>
7320
+
7313
7321
  **request_options:** `Whop_sdk::Apps::RequestOptions`
7314
7322
 
7315
7323
  </dd>
@@ -9410,7 +9418,7 @@ client.automation_steps.create(
9410
9418
  <dl>
9411
9419
  <dd>
9412
9420
 
9413
- **source_code:** `String` — An `email` or `message` step's code: a TSX module whose default export gets the member and returns `message.send()`, `message.skip()` or `message.exit()` from `whop:message`. An `email` step sends its `subject`, its `react` element as the body and its `text` as the plain-text part; a `message` step sends its `text`. The code can import `react` and `@react-email/components`, and reads the account through the `whop` client from `whop:message`, which can only read: it holds every account-level `:read` permission that both the admin role and Whop AI hold except `payout:account:read`, as listed for previewing a step. Setting it, or previewing the step, needs every one of those permissions. Up to 64,000 characters. `null` on a `wait`, and until it is written.
9421
+ **source_code:** `String` — An `email` or `message` step's code: a TSX module whose default export gets the member and returns `message.send()`, `message.skip()` or `message.exit()` from `whop:message`. An `email` step sends its `subject`, its `react` element as the body and its `text` as the plain-text part. A `message` step sends its `text`. The code can import `react` and `@react-email/components`. It reads the account through the `whop` client from `whop:message`, which can only read. That client holds every account-level `:read` permission that both the admin role and Whop AI hold, except `payout:account:read`, as listed for previewing a step. Setting it, or previewing the step, needs every one of those permissions. Up to 64,000 characters. `null` on a `wait`, and until it is written.
9414
9422
 
9415
9423
  </dd>
9416
9424
  </dl>
@@ -9620,7 +9628,7 @@ client.automation_steps.update(id: "id")
9620
9628
  <dl>
9621
9629
  <dd>
9622
9630
 
9623
- **source_code:** `String` — An `email` or `message` step's code: a TSX module whose default export gets the member and returns `message.send()`, `message.skip()` or `message.exit()` from `whop:message`. An `email` step sends its `subject`, its `react` element as the body and its `text` as the plain-text part; a `message` step sends its `text`. The code can import `react` and `@react-email/components`, and reads the account through the `whop` client from `whop:message`, which can only read: it holds every account-level `:read` permission that both the admin role and Whop AI hold except `payout:account:read`, as listed for previewing a step. Setting it, or previewing the step, needs every one of those permissions. Up to 64,000 characters. `null` on a `wait`, and until it is written.
9631
+ **source_code:** `String` — An `email` or `message` step's code: a TSX module whose default export gets the member and returns `message.send()`, `message.skip()` or `message.exit()` from `whop:message`. An `email` step sends its `subject`, its `react` element as the body and its `text` as the plain-text part. A `message` step sends its `text`. The code can import `react` and `@react-email/components`. It reads the account through the `whop` client from `whop:message`, which can only read. That client holds every account-level `:read` permission that both the admin role and Whop AI hold, except `payout:account:read`, as listed for previewing a step. Setting it, or previewing the step, needs every one of those permissions. Up to 64,000 characters. `null` on a `wait`, and until it is written.
9624
9632
 
9625
9633
  </dd>
9626
9634
  </dl>
@@ -10156,7 +10164,7 @@ client.automations.update(id: "id")
10156
10164
  <dl>
10157
10165
  <dd>
10158
10166
 
10159
- Publishes the draft version: new members start on it, and the automation becomes `active`. Members already in the automation move onto it: onto the same step when it's still there, or, when the draft removed it, onto the step that now follows the nearest earlier step the draft kept. The draft is then copied into the next draft version, whose steps get new IDs and keep their `key`. Every draft step's `issues` must be empty. When the draft has no edits since the last publish, no new version is made, and this only makes a `closed` or `stopped` automation `active` again.
10167
+ Publishes the draft version: new members start on it, and the automation becomes `active`. Members already in the automation move onto it. A member stays on the same step when it's still there. When the draft removed that step, the member moves to the step that now follows the nearest earlier step the draft kept. The draft is then copied into the next draft version, whose steps get new IDs and keep their `key`. Every draft step's `issues` must be empty. When the draft has no edits since the last publish, no new version is made. Publishing then only makes a `closed` or `stopped` automation `active` again. The account must have Economic Intelligence turned on.
10160
10168
  </dd>
10161
10169
  </dl>
10162
10170
  </dd>
@@ -19492,7 +19500,7 @@ client.domains.check(id: "id")
19492
19500
  <dl>
19493
19501
  <dd>
19494
19502
 
19495
- Lists an account's recommendations and generation requests, newest first by default. When no recommendations are ready or in progress and you have `company:update` permission, listing queues generation, with a ten-minute cooldown after an unsuccessful request; unsuccessful requests are not listed. An account's executed recommendations and runs stay listed after Economic Intelligence turns off, but new recommendations are offered only while it is on. For visitor countries, page views, ad impressions and clicks, or payment volume over a time range, use `GET /stats/time_series/:metric`.
19503
+ Lists an account's recommendations, newest first by default. `status: ready` is what the account can act on now. Any other listing is its history of runs. Executed recommendations and runs stay listed after Economic Intelligence turns off, but new recommendations are offered only to businesses it is written for. For visitor countries, page views, ad impressions and clicks, or payment volume over a time range, use `GET /stats/time_series/:metric`.
19496
19504
  </dd>
19497
19505
  </dl>
19498
19506
  </dd>
@@ -19522,7 +19530,7 @@ client.economic_intelligence.list
19522
19530
  <dl>
19523
19531
  <dd>
19524
19532
 
19525
- **account_id:** `String` — Account ID, prefixed `biz_`. Defaults to the API key's own account; omit for personal onboarding, where signed-out visitors receive a business-setup template and eligible users receive their saved setup recommendation.
19533
+ **account_id:** `String` — Account ID, prefixed `biz_`. Defaults to the API key's own account. Omit with `has_run` for the runs on every account you can read.
19526
19534
 
19527
19535
  </dd>
19528
19536
  </dl>
@@ -19530,7 +19538,7 @@ client.economic_intelligence.list
19530
19538
  <dl>
19531
19539
  <dd>
19532
19540
 
19533
- **status:** `Whop_sdk::EconomicIntelligence::Types::ListEconomicIntelligenceRequestStatus` — Filter recommendations by their current status.
19541
+ **status:** `Whop_sdk::EconomicIntelligence::Types::ListEconomicIntelligenceRequestStatus` — `ready` lists the recommendations the account can run now. A run status lists only the runs in that state. `queued`, `pending` and `superseded` are no longer listed and answer nothing.
19534
19542
 
19535
19543
  </dd>
19536
19544
  </dl>
@@ -19538,7 +19546,7 @@ client.economic_intelligence.list
19538
19546
  <dl>
19539
19547
  <dd>
19540
19548
 
19541
- **input:** `String` — What you want recommendations for, in your own words. Up to 1000 characters. Narrows the list to the recommendations that address it. Without a `status` filter, when none do and you can update the account, new recommendations start generating for your input, and the list shows that request until they're ready. Repeating the same input while it generates doesn't start another.
19549
+ **input:** `String` — No longer read: recommendations are written for the business as it changes. Up to 1000 characters.
19542
19550
 
19543
19551
  </dd>
19544
19552
  </dl>
@@ -19546,7 +19554,7 @@ client.economic_intelligence.list
19546
19554
  <dl>
19547
19555
  <dd>
19548
19556
 
19549
- **has_run:** `Internal::Types::Boolean` — When true, only recommendations someone has started running, by any user. Without `account_id`, covers every account you can read that has Economic Intelligence. Can't be combined with `input`.
19557
+ **has_run:** `Internal::Types::Boolean` — When true, only recommendations someone has started running, by any user. Without `account_id`, covers every account you can read.
19550
19558
 
19551
19559
  </dd>
19552
19560
  </dl>
@@ -19626,7 +19634,7 @@ client.economic_intelligence.list
19626
19634
  <dl>
19627
19635
  <dd>
19628
19636
 
19629
- Updates a recommendation status, records feedback, or both. Send `sentiment` to rate it. Include `status: superseded` to retire a ready recommendation and request replacements; a rating alone leaves its status unchanged. To run a recommendation yourself, send `status: running` to start, then `status: executed` when it is carried out (with `result_id` naming what it changed, or `result_page` naming where it worked, so the result links there) or `status: incomplete` if the run ended without carrying it out. Whop AI reports its own runs the same way. Send `status: acknowledged` once an executed run's result has been seen.
19637
+ Updates a recommendation status, records feedback, or both. Send `sentiment` to rate it. Include `status: superseded` to retire a ready recommendation. A rating alone leaves its status unchanged. To run a recommendation yourself, send `status: running` to start. Send `status: executed` when it is carried out, or `status: incomplete` if the run ended without carrying it out. With `executed`, name what changed in `result_id` or where the run worked in `result_page`, and the result links there. Whop AI reports its own runs the same way. Send `status: acknowledged` once an executed run's result has been seen.
19630
19638
  </dd>
19631
19639
  </dl>
19632
19640
  </dd>
@@ -19672,7 +19680,7 @@ client.economic_intelligence.update(id: "id")
19672
19680
  <dl>
19673
19681
  <dd>
19674
19682
 
19675
- **input:** `String` — What you want the replacement recommendation for, in your own words. Up to 1000 characters. Sent when superseding, it directs the generation that replaces the rejected recommendation.
19683
+ **input:** `String` — No longer read: recommendations are written for the business as it changes. Up to 1000 characters.
19676
19684
 
19677
19685
  </dd>
19678
19686
  </dl>
@@ -19688,7 +19696,7 @@ client.economic_intelligence.update(id: "id")
19688
19696
  <dl>
19689
19697
  <dd>
19690
19698
 
19691
- **result_page:** `Whop_sdk::EconomicIntelligence::Types::UpdateEconomicIntelligenceRequestResultPage` — With `status: executed`, the page where the run's result can be seen when it is not one resource, such as the checkout links list or the store page. The recommendation's `result_url` becomes that page on the account's dashboard, or its store page for `store_page`.
19699
+ **result_page:** `Whop_sdk::EconomicIntelligence::Types::UpdateEconomicIntelligenceRequestResultPage` — With `status: executed`, the page where the run's result can be seen when it is not one resource, such as the checkout links list. The recommendation's `result_url` becomes that page on the account's dashboard.
19692
19700
 
19693
19701
  </dd>
19694
19702
  </dl>
@@ -19720,7 +19728,7 @@ client.economic_intelligence.update(id: "id")
19720
19728
  <dl>
19721
19729
  <dd>
19722
19730
 
19723
- **user_feedback:** `String` — An optional explanation of the rating or rejection. Negative feedback informs replacement recommendations.
19731
+ **user_feedback:** `String` — An optional explanation of the rating or rejection.
19724
19732
 
19725
19733
  </dd>
19726
19734
  </dl>
@@ -22515,7 +22523,7 @@ client.exports.create(resource: "ad_campaigns")
22515
22523
  <dl>
22516
22524
  <dd>
22517
22525
 
22518
- **filters:** `Internal::Types::Hash[String, Object]` — Resource-specific filters. For native REST resources (`payouts`, `transfers`, `products`) these are the resource's own list query params; for dashboard tables they mirror the dashboard table filters.
22526
+ **filters:** `Internal::Types::Hash[String, Object]` — Resource-specific filters. For a native REST resource, such as `payouts`, `transfers` or `products`, these are the query params of its list endpoint. For a dashboard table, they are the table's filters.
22519
22527
 
22520
22528
  </dd>
22521
22529
  </dl>
@@ -25882,7 +25890,7 @@ client.invoices.create(
25882
25890
  <dl>
25883
25891
  <dd>
25884
25892
 
25885
- **items:** `Internal::Types::Array[Whop_sdk::Invoices::Types::CreateInvoicesRequestItemsItem]` — The variants being invoiced, all in the same currency. Each variant may appear once; use quantity for multiple units. Product and price come from each variant; a recurring variant must belong to a product, bills its renewal price and, once the invoice is paid, renews as a subscription collected by the `collection_method` the invoice was sent or issued with. With several items, every item that has a product must be a regular product, and all items need compatible payment, tax, and access settings.
25893
+ **items:** `Internal::Types::Array[Whop_sdk::Invoices::Types::CreateInvoicesRequestItemsItem]` — The variants being invoiced, all in the same currency. Each variant may appear once. Use quantity for multiple units. A recurring variant must belong to a product. Its first invoice charges `initial_price` plus `renewal_price`. Later invoices charge only `renewal_price`. Paying the first invoice starts a paid billing period immediately, without the variant's trial. The subscription uses the `collection_method` the invoice was sent or issued with. A finite payment count includes the first paid invoice. With several items, every item that has a product must be a regular product, and all items need compatible payment, tax, and access settings.
25886
25894
 
25887
25895
  </dd>
25888
25896
  </dl>
@@ -26020,7 +26028,7 @@ client.invoices.retrieve(id: "id")
26020
26028
  </dl>
26021
26029
  </details>
26022
26030
 
26023
- <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">update</a>(id:, request) -> Whop_sdk::Types::Invoice</code></summary>
26031
+ <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">delete</a>(id:) -> Whop_sdk::Invoices::Types::DeleteInvoicesResponse</code></summary>
26024
26032
  <dl>
26025
26033
  <dd>
26026
26034
 
@@ -26032,7 +26040,7 @@ client.invoices.retrieve(id: "id")
26032
26040
  <dl>
26033
26041
  <dd>
26034
26042
 
26035
- Updates draft invoice items and billing fields. Updates of only `recipient_emails` and `memo` are also allowed on unpaid invoices. The customer is set when the draft is created and can't change. To bill someone else, first void the draft. Then create a new invoice. Edit customer contact details through the member API. A draft with no saved payment method and no scheduled send needs `invoice:update`, `invoice:create`, or `payment:charge`; every other update, and setting `payment_method_id`, needs `payment:charge`.
26043
+ Deletes a draft or void invoice. A deleted invoice no longer appears in invoice or payment lists, and its ID returns a `404`. Deleting can't be undone. Void an open invoice before you delete it. A draft with a scheduled send or charge must be unscheduled first. A draft renewal invoice can't be deleted, and neither can a void invoice that collected money or still awaits a bank wire. The invoice's `deletable` field is `true` when this call can delete it.
26036
26044
  </dd>
26037
26045
  </dl>
26038
26046
  </dd>
@@ -26047,7 +26055,7 @@ Updates draft invoice items and billing fields. Updates of only `recipient_email
26047
26055
  <dd>
26048
26056
 
26049
26057
  ```ruby
26050
- client.invoices.update(id: "id")
26058
+ client.invoices.delete(id: "id")
26051
26059
  ```
26052
26060
  </dd>
26053
26061
  </dl>
@@ -26070,94 +26078,6 @@ client.invoices.update(id: "id")
26070
26078
  <dl>
26071
26079
  <dd>
26072
26080
 
26073
- **billing_address:** `Whop_sdk::Invoices::Types::UpdateInvoicesRequestBillingAddress` — Create a billing address linked to this member.
26074
-
26075
- </dd>
26076
- </dl>
26077
-
26078
- <dl>
26079
- <dd>
26080
-
26081
- **buyer_fee_percentage:** `Integer` — The buyer's adjustable fee in percentage points, with at most two decimal places: `0` for none, or between 5 and 100. The account keeps it, and Whop waives its take rate on the invoice.
26082
-
26083
- </dd>
26084
- </dl>
26085
-
26086
- <dl>
26087
- <dd>
26088
-
26089
- **due_at:** `String` — When payment is due, as an ISO 8601 timestamp.
26090
-
26091
- </dd>
26092
- </dl>
26093
-
26094
- <dl>
26095
- <dd>
26096
-
26097
- **items:** `Internal::Types::Array[Whop_sdk::Invoices::Types::UpdateInvoicesRequestItemsItem]` — The variants being invoiced, all in the same currency. Each variant may appear once; use quantity for multiple units. Product and price come from each variant; a recurring variant must belong to a product, bills its renewal price and, once the invoice is paid, renews as a subscription collected by the `collection_method` the invoice was sent or issued with. With several items, every item that has a product must be a regular product, and all items need compatible payment, tax, and access settings.
26098
-
26099
- </dd>
26100
- </dl>
26101
-
26102
- <dl>
26103
- <dd>
26104
-
26105
- **mailing_address_id:** `String` — An address associated with the member. Mutually exclusive with billing_address.
26106
-
26107
- </dd>
26108
- </dl>
26109
-
26110
- <dl>
26111
- <dd>
26112
-
26113
- **member_id:** `String` — The billed customer, a member of the account, prefixed `mber_`. The customer is set when the draft is created and can't change, so pass the draft's current customer or omit this field. A draft saved without a customer can take one here. Changing email recipients does not change this buyer.
26114
-
26115
- </dd>
26116
- </dl>
26117
-
26118
- <dl>
26119
- <dd>
26120
-
26121
- **memo:** `String` — A note to the customer, shown on the invoice email, PDF, and checkout page with its line breaks kept. Trimmed; `null` or blank clears it. Can be updated on draft, open, or uncollectible invoices.
26122
-
26123
- </dd>
26124
- </dl>
26125
-
26126
- <dl>
26127
- <dd>
26128
-
26129
- **metadata:** `Internal::Types::Hash[String, String]` — Up to 50 caller-owned string key/value pairs. The `invoice_memo` key is reserved and ignored; set `memo` instead.
26130
-
26131
- </dd>
26132
- </dl>
26133
-
26134
- <dl>
26135
- <dd>
26136
-
26137
- **payment_method_configuration:** `Whop_sdk::Invoices::Types::UpdateInvoicesRequestPaymentMethodConfiguration` — The payment methods the customer can choose from when paying through the invoice's checkout link, in the shape a variant or checkout configuration takes. It takes precedence over the invoice's variants and the account, and changes neither. Send both lists. `null` uses its variants' payment methods. Can be updated on drafts.
26138
-
26139
- </dd>
26140
- </dl>
26141
-
26142
- <dl>
26143
- <dd>
26144
-
26145
- **payment_method_id:** `String` — A saved payment method belonging to the member, prefixed `payt_`. Sending or issuing the invoice charges this method at the `charge_at` passed to that call, otherwise on `due_at`, or right away when there is no `due_at` or it has passed. Sending also emails the invoice now when the charge is later; issuing does not. Setting it needs `payment:charge`.
26146
-
26147
- </dd>
26148
- </dl>
26149
-
26150
- <dl>
26151
- <dd>
26152
-
26153
- **recipient_emails:** `Internal::Types::Array[String]` — Email addresses saved for invoice delivery, independent of the billed customer. Saving them sends no email. Defaults to the customer email when omitted on create. Can be updated on draft, open, or uncollectible invoices.
26154
-
26155
- </dd>
26156
- </dl>
26157
-
26158
- <dl>
26159
- <dd>
26160
-
26161
26081
  **request_options:** `Whop_sdk::Invoices::RequestOptions`
26162
26082
 
26163
26083
  </dd>
@@ -26170,7 +26090,7 @@ client.invoices.update(id: "id")
26170
26090
  </dl>
26171
26091
  </details>
26172
26092
 
26173
- <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">charge</a>(id:, request) -> Whop_sdk::Types::Invoice</code></summary>
26093
+ <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">update</a>(id:, request) -> Whop_sdk::Types::Invoice</code></summary>
26174
26094
  <dl>
26175
26095
  <dd>
26176
26096
 
@@ -26182,7 +26102,7 @@ client.invoices.update(id: "id")
26182
26102
  <dl>
26183
26103
  <dd>
26184
26104
 
26185
- Charges an open invoice now to one of its customer's saved payment methods, canceling any charge scheduled for later. The charge completes asynchronously: the invoice becomes `paid`, or, if declined, stays `open` and its recipients are emailed the `checkout_link`. Refused for drafts and while another payment is in progress.
26105
+ Updates draft invoice items and billing fields. Updates of only `recipient_emails` and `memo` are also allowed on unpaid invoices. The customer is set when the draft is created and can't change. To bill someone else, first void the draft. Then create a new invoice. Edit customer contact details through the member API. A draft with no saved payment method and no scheduled send needs `invoice:update`, `invoice:create`, or `payment:charge`; every other update, and setting `payment_method_id`, needs `payment:charge`.
26186
26106
  </dd>
26187
26107
  </dl>
26188
26108
  </dd>
@@ -26197,7 +26117,7 @@ Charges an open invoice now to one of its customer's saved payment methods, canc
26197
26117
  <dd>
26198
26118
 
26199
26119
  ```ruby
26200
- client.invoices.charge(id: "id")
26120
+ client.invoices.update(id: "id")
26201
26121
  ```
26202
26122
  </dd>
26203
26123
  </dl>
@@ -26220,7 +26140,7 @@ client.invoices.charge(id: "id")
26220
26140
  <dl>
26221
26141
  <dd>
26222
26142
 
26223
- **payment_method_id:** `String` — The saved payment method to charge, prefixed `payt_`. It must belong to the invoice's customer and be chargeable without the customer present. Omit it to charge the invoice's own `payment_method_id`.
26143
+ **billing_address:** `Whop_sdk::Invoices::Types::UpdateInvoicesRequestBillingAddress` — Create a billing address linked to this member.
26224
26144
 
26225
26145
  </dd>
26226
26146
  </dl>
@@ -26228,61 +26148,23 @@ client.invoices.charge(id: "id")
26228
26148
  <dl>
26229
26149
  <dd>
26230
26150
 
26231
- **request_options:** `Whop_sdk::Invoices::RequestOptions`
26151
+ **buyer_fee_percentage:** `Integer` — The buyer's adjustable fee in percentage points, with at most two decimal places: `0` for none, or between 5 and 100. The account keeps it, and Whop waives its take rate on the invoice.
26232
26152
 
26233
26153
  </dd>
26234
26154
  </dl>
26235
- </dd>
26236
- </dl>
26237
-
26238
-
26239
- </dd>
26240
- </dl>
26241
- </details>
26242
-
26243
- <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">generate_pdf</a>(id:, request) -> Whop_sdk::Types::InvoicePdf</code></summary>
26244
- <dl>
26245
- <dd>
26246
-
26247
- #### 📝 Description
26248
-
26249
- <dl>
26250
- <dd>
26251
-
26252
- <dl>
26253
- <dd>
26254
-
26255
- Generates the invoice as a PDF and returns a short-lived link to download it. A draft shows its estimated totals. The buyer's name and email need `member:basic:read` and `member:email:read`, and the Pay now link on an open invoice needs `payment:charge`, or `invoice:create` or `invoice:update` when it has no `payment_method_id`. Each call generates a new file and link, so this endpoint does not replay `Idempotency-Key` responses.
26256
- </dd>
26257
- </dl>
26258
- </dd>
26259
- </dl>
26260
-
26261
- #### 🔌 Usage
26262
26155
 
26263
26156
  <dl>
26264
26157
  <dd>
26265
26158
 
26266
- <dl>
26267
- <dd>
26268
-
26269
- ```ruby
26270
- client.invoices.generate_pdf(id: "id")
26271
- ```
26272
- </dd>
26273
- </dl>
26159
+ **due_at:** `String` — When payment is due, as an ISO 8601 timestamp.
26160
+
26274
26161
  </dd>
26275
26162
  </dl>
26276
26163
 
26277
- #### ⚙️ Parameters
26278
-
26279
26164
  <dl>
26280
26165
  <dd>
26281
26166
 
26282
- <dl>
26283
- <dd>
26284
-
26285
- **id:** `String` — The invoice's pay_ ID.
26167
+ **items:** `Internal::Types::Array[Whop_sdk::Invoices::Types::UpdateInvoicesRequestItemsItem]` — The variants being invoiced, all in the same currency. Each variant may appear once. Use quantity for multiple units. A recurring variant must belong to a product. Its first invoice charges `initial_price` plus `renewal_price`. Later invoices charge only `renewal_price`. Paying the first invoice starts a paid billing period immediately, without the variant's trial. The subscription uses the `collection_method` the invoice was sent or issued with. A finite payment count includes the first paid invoice. With several items, every item that has a product must be a regular product, and all items need compatible payment, tax, and access settings.
26286
26168
 
26287
26169
  </dd>
26288
26170
  </dl>
@@ -26290,7 +26172,7 @@ client.invoices.generate_pdf(id: "id")
26290
26172
  <dl>
26291
26173
  <dd>
26292
26174
 
26293
- **include_descriptions:** `Internal::Types::Boolean` — Whether to print each line item's `description` under it. Defaults to `true`.
26175
+ **mailing_address_id:** `String` — An address associated with the member. Mutually exclusive with billing_address.
26294
26176
 
26295
26177
  </dd>
26296
26178
  </dl>
@@ -26298,61 +26180,31 @@ client.invoices.generate_pdf(id: "id")
26298
26180
  <dl>
26299
26181
  <dd>
26300
26182
 
26301
- **request_options:** `Whop_sdk::Invoices::RequestOptions`
26183
+ **member_id:** `String` — The billed customer, a member of the account, prefixed `mber_`. The customer is set when the draft is created and can't change, so pass the draft's current customer or omit this field. A draft saved without a customer can take one here. Changing email recipients does not change this buyer.
26302
26184
 
26303
26185
  </dd>
26304
26186
  </dl>
26305
- </dd>
26306
- </dl>
26307
-
26308
-
26309
- </dd>
26310
- </dl>
26311
- </details>
26312
26187
 
26313
- <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">issue</a>(id:, request) -> Whop_sdk::Types::Invoice</code></summary>
26314
26188
  <dl>
26315
26189
  <dd>
26316
26190
 
26317
- #### 📝 Description
26318
-
26319
- <dl>
26320
- <dd>
26321
-
26322
- <dl>
26323
- <dd>
26324
-
26325
- Resolves final tax and opens a draft invoice without emailing it. An invoice with a `payment_method_id` is charged to it off-session, as `POST /payments` charges a saved payment method: at `charge_at` if given, otherwise on `due_at` while it is still ahead, otherwise right away (see `scheduled_charge_at`). With a future `due_at` and no `charge_at`, the customer is charged on the due date without being emailed first. Issuing an open invoice again retains its totals and charges nothing.
26326
- </dd>
26327
- </dl>
26191
+ **memo:** `String` — A note to the customer, shown on the invoice email, PDF, and checkout page with its line breaks kept. Trimmed; `null` or blank clears it. Can be updated on draft, open, or uncollectible invoices.
26192
+
26328
26193
  </dd>
26329
26194
  </dl>
26330
26195
 
26331
- #### 🔌 Usage
26332
-
26333
- <dl>
26334
- <dd>
26335
-
26336
26196
  <dl>
26337
26197
  <dd>
26338
26198
 
26339
- ```ruby
26340
- client.invoices.issue(id: "id")
26341
- ```
26342
- </dd>
26343
- </dl>
26199
+ **metadata:** `Internal::Types::Hash[String, String]` — Up to 50 caller-owned string key/value pairs. The `invoice_memo` key is reserved and ignored; set `memo` instead.
26200
+
26344
26201
  </dd>
26345
26202
  </dl>
26346
26203
 
26347
- #### ⚙️ Parameters
26348
-
26349
- <dl>
26350
- <dd>
26351
-
26352
26204
  <dl>
26353
26205
  <dd>
26354
26206
 
26355
- **id:** `String` — The invoice's pay_ ID.
26207
+ **payment_method_configuration:** `Whop_sdk::Invoices::Types::UpdateInvoicesRequestPaymentMethodConfiguration` — The payment methods the customer can choose from when paying through the invoice's checkout link, in the shape a variant or checkout configuration takes. It takes precedence over the invoice's variants and the account, and changes neither. Send both lists. `null` uses its variants' payment methods. Can be updated on drafts.
26356
26208
 
26357
26209
  </dd>
26358
26210
  </dl>
@@ -26360,7 +26212,7 @@ client.invoices.issue(id: "id")
26360
26212
  <dl>
26361
26213
  <dd>
26362
26214
 
26363
- **charge_at:** `String` — When to charge the draft's `payment_method_id`, as an ISO 8601 timestamp in the future. Only for a draft with a `payment_method_id` and a total above zero. Omit to charge on `due_at` if it is still ahead, or right away otherwise.
26215
+ **payment_method_id:** `String` — A saved payment method belonging to the member, prefixed `payt_`. Sending or issuing the invoice charges this method at the `charge_at` passed to that call, otherwise on `due_at`, or right away when there is no `due_at` or it has passed. Sending also emails the invoice now when the charge is later; issuing does not. Setting it needs `payment:charge`.
26364
26216
 
26365
26217
  </dd>
26366
26218
  </dl>
@@ -26368,7 +26220,7 @@ client.invoices.issue(id: "id")
26368
26220
  <dl>
26369
26221
  <dd>
26370
26222
 
26371
- **collection_method:** `Whop_sdk::Invoices::Types::IssueInvoicesRequestCollectionMethod` — How the subscription this invoice starts collects each renewal. `charge_automatically` charges the payment method that paid the invoice each period: the draft's `payment_method_id`, or the one the customer pays the invoice link with. `send_invoice` issues a numbered invoice each period, due on the renewal date and emailed with its payment link to the latest invoice's `recipient_emails`, so it needs at least one recipient and isn't available for invoices billed to a business. Defaults to `charge_automatically`. Only for a draft with a recurring item. A scheduled send applies it when it fires (see `scheduled_collection_method`).
26223
+ **recipient_emails:** `Internal::Types::Array[String]` — Email addresses saved for invoice delivery, independent of the billed customer. Saving them sends no email. Defaults to the customer email when omitted on create. Can be updated on draft, open, or uncollectible invoices.
26372
26224
 
26373
26225
  </dd>
26374
26226
  </dl>
@@ -26388,7 +26240,7 @@ client.invoices.issue(id: "id")
26388
26240
  </dl>
26389
26241
  </details>
26390
26242
 
26391
- <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">mark_uncollectible</a>(id:) -> Whop_sdk::Types::Invoice</code></summary>
26243
+ <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">charge</a>(id:, request) -> Whop_sdk::Types::Invoice</code></summary>
26392
26244
  <dl>
26393
26245
  <dd>
26394
26246
 
@@ -26400,7 +26252,7 @@ client.invoices.issue(id: "id")
26400
26252
  <dl>
26401
26253
  <dd>
26402
26254
 
26403
- Marks an open invoice as uncollectible. Its checkout link stops working.
26255
+ Charges an open invoice now to one of its customer's saved payment methods, canceling any charge scheduled for later. The charge completes asynchronously: the invoice becomes `paid`, or, if declined, stays `open` and its recipients are emailed the `checkout_link`. Refused for drafts and while another payment is in progress.
26404
26256
  </dd>
26405
26257
  </dl>
26406
26258
  </dd>
@@ -26415,7 +26267,7 @@ Marks an open invoice as uncollectible. Its checkout link stops working.
26415
26267
  <dd>
26416
26268
 
26417
26269
  ```ruby
26418
- client.invoices.mark_uncollectible(id: "id")
26270
+ client.invoices.charge(id: "id")
26419
26271
  ```
26420
26272
  </dd>
26421
26273
  </dl>
@@ -26438,6 +26290,14 @@ client.invoices.mark_uncollectible(id: "id")
26438
26290
  <dl>
26439
26291
  <dd>
26440
26292
 
26293
+ **payment_method_id:** `String` — The saved payment method to charge, prefixed `payt_`. It must belong to the invoice's customer and be chargeable without the customer present. Omit it to charge the invoice's own `payment_method_id`.
26294
+
26295
+ </dd>
26296
+ </dl>
26297
+
26298
+ <dl>
26299
+ <dd>
26300
+
26441
26301
  **request_options:** `Whop_sdk::Invoices::RequestOptions`
26442
26302
 
26443
26303
  </dd>
@@ -26450,7 +26310,7 @@ client.invoices.mark_uncollectible(id: "id")
26450
26310
  </dl>
26451
26311
  </details>
26452
26312
 
26453
- <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">send_</a>(id:, request) -> Whop_sdk::Types::Invoice</code></summary>
26313
+ <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">generate_pdf</a>(id:, request) -> Whop_sdk::Types::InvoicePdf</code></summary>
26454
26314
  <dl>
26455
26315
  <dd>
26456
26316
 
@@ -26462,7 +26322,7 @@ client.invoices.mark_uncollectible(id: "id")
26462
26322
  <dl>
26463
26323
  <dd>
26464
26324
 
26465
- Issues a draft and emails it to its recipients, with reminders after the due date. A draft with no `payment_method_id` needs `invoice:update`, `invoice:create`, or `payment:charge`, and is never charged. A draft with a `payment_method_id` needs `payment:charge`: with a `charge_at`, or when its `due_at` is still ahead, it is emailed now and charged to that method at that time (see `scheduled_charge_at`); otherwise it is charged right away instead of emailed. Voiding the invoice, marking it uncollectible, or paying it first cancels the scheduled charge, and its recipients get the payment link if a charge fails. Sending an open invoice needs `payment:charge` and emails it again, up to three emails a day including the first send. With `send_at`, the draft is sent at that time instead, and cannot be edited, except its recipients, until it is sent or unscheduled. Each email, reminders included, is sent separately to the customer email shown on the invoice and to each address in `recipient_emails`, so recipients never see each other's addresses.
26325
+ Generates the invoice as a PDF and returns a short-lived link to download it. A draft shows its estimated totals. The buyer's name and email need `member:basic:read` and `member:email:read`, and the Pay now link on an open invoice needs `payment:charge`, or `invoice:create` or `invoice:update` when it has no `payment_method_id`. Each call generates a new file and link, so this endpoint does not replay `Idempotency-Key` responses.
26466
26326
  </dd>
26467
26327
  </dl>
26468
26328
  </dd>
@@ -26477,7 +26337,7 @@ Issues a draft and emails it to its recipients, with reminders after the due dat
26477
26337
  <dd>
26478
26338
 
26479
26339
  ```ruby
26480
- client.invoices.send_(id: "id")
26340
+ client.invoices.generate_pdf(id: "id")
26481
26341
  ```
26482
26342
  </dd>
26483
26343
  </dl>
@@ -26500,23 +26360,7 @@ client.invoices.send_(id: "id")
26500
26360
  <dl>
26501
26361
  <dd>
26502
26362
 
26503
- **charge_at:** `String` — When to charge the draft's `payment_method_id`, as an ISO 8601 timestamp in the future and no earlier than `send_at`. Only for a draft with a `payment_method_id` and a total above zero. Omit to charge on `due_at` if it is still ahead when the draft is sent, or right away otherwise. A scheduled send that runs after `charge_at` charges right away.
26504
-
26505
- </dd>
26506
- </dl>
26507
-
26508
- <dl>
26509
- <dd>
26510
-
26511
- **collection_method:** `Whop_sdk::Invoices::Types::SendInvoicesRequestCollectionMethod` — How the subscription this invoice starts collects each renewal. `charge_automatically` charges the payment method that paid the invoice each period: the draft's `payment_method_id`, or the one the customer pays the invoice link with. `send_invoice` issues a numbered invoice each period, due on the renewal date and emailed with its payment link to the latest invoice's `recipient_emails`, so it needs at least one recipient and isn't available for invoices billed to a business. Defaults to `charge_automatically`. Only for a draft with a recurring item. A scheduled send applies it when it fires (see `scheduled_collection_method`).
26512
-
26513
- </dd>
26514
- </dl>
26515
-
26516
- <dl>
26517
- <dd>
26518
-
26519
- **send_at:** `String` — When to send the draft, as an ISO 8601 timestamp in the future. Omit to send now.
26363
+ **include_descriptions:** `Internal::Types::Boolean` — Whether to print each line item's `description` under it. Defaults to `true`.
26520
26364
 
26521
26365
  </dd>
26522
26366
  </dl>
@@ -26536,7 +26380,7 @@ client.invoices.send_(id: "id")
26536
26380
  </dl>
26537
26381
  </details>
26538
26382
 
26539
- <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">unschedule</a>(id:) -> Whop_sdk::Types::Invoice</code></summary>
26383
+ <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">issue</a>(id:, request) -> Whop_sdk::Types::Invoice</code></summary>
26540
26384
  <dl>
26541
26385
  <dd>
26542
26386
 
@@ -26548,7 +26392,7 @@ client.invoices.send_(id: "id")
26548
26392
  <dl>
26549
26393
  <dd>
26550
26394
 
26551
- Cancels a draft's scheduled send, so it can be edited again. An invoice with no scheduled send is returned unchanged. A draft with no `payment_method_id` needs `invoice:update`, `invoice:create`, or `payment:charge`; any other invoice needs `payment:charge`.
26395
+ Resolves final tax and opens a draft invoice without emailing it. An invoice with a `payment_method_id` is charged to it off-session, as `POST /payments` charges a saved payment method: at `charge_at` if given, otherwise on `due_at` while it is still ahead, otherwise right away (see `scheduled_charge_at`). With a future `due_at` and no `charge_at`, the customer is charged on the due date without being emailed first. Issuing an open invoice again retains its totals and charges nothing.
26552
26396
  </dd>
26553
26397
  </dl>
26554
26398
  </dd>
@@ -26563,7 +26407,7 @@ Cancels a draft's scheduled send, so it can be edited again. An invoice with no
26563
26407
  <dd>
26564
26408
 
26565
26409
  ```ruby
26566
- client.invoices.unschedule(id: "id")
26410
+ client.invoices.issue(id: "id")
26567
26411
  ```
26568
26412
  </dd>
26569
26413
  </dl>
@@ -26586,61 +26430,15 @@ client.invoices.unschedule(id: "id")
26586
26430
  <dl>
26587
26431
  <dd>
26588
26432
 
26589
- **request_options:** `Whop_sdk::Invoices::RequestOptions`
26433
+ **charge_at:** `String` — When to charge the draft's `payment_method_id`, as an ISO 8601 timestamp in the future. Only for a draft with a `payment_method_id` and a total above zero. Omit to charge on `due_at` if it is still ahead, or right away otherwise.
26590
26434
 
26591
26435
  </dd>
26592
26436
  </dl>
26593
- </dd>
26594
- </dl>
26595
-
26596
-
26597
- </dd>
26598
- </dl>
26599
- </details>
26600
-
26601
- <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">void</a>(id:) -> Whop_sdk::Types::Invoice</code></summary>
26602
- <dl>
26603
- <dd>
26604
-
26605
- #### 📝 Description
26606
-
26607
- <dl>
26608
- <dd>
26609
-
26610
- <dl>
26611
- <dd>
26612
-
26613
- Voids a draft or unpaid invoice.
26614
- </dd>
26615
- </dl>
26616
- </dd>
26617
- </dl>
26618
-
26619
- #### 🔌 Usage
26620
-
26621
- <dl>
26622
- <dd>
26623
26437
 
26624
26438
  <dl>
26625
26439
  <dd>
26626
26440
 
26627
- ```ruby
26628
- client.invoices.void(id: "id")
26629
- ```
26630
- </dd>
26631
- </dl>
26632
- </dd>
26633
- </dl>
26634
-
26635
- #### ⚙️ Parameters
26636
-
26637
- <dl>
26638
- <dd>
26639
-
26640
- <dl>
26641
- <dd>
26642
-
26643
- **id:** `String` — The invoice's pay_ ID.
26441
+ **collection_method:** `Whop_sdk::Invoices::Types::IssueInvoicesRequestCollectionMethod` — How the subscription this invoice starts collects each renewal. `charge_automatically` charges the payment method that paid the invoice each period: the draft's `payment_method_id`, or the one the customer pays the invoice link with. `send_invoice` issues a numbered invoice each period, due on the renewal date and emailed with its payment link to the latest invoice's `recipient_emails`, so it needs at least one recipient and isn't available for invoices billed to a business. Defaults to `charge_automatically`. Only for a draft with a recurring item. A scheduled send applies it when it fires (see `scheduled_collection_method`).
26644
26442
 
26645
26443
  </dd>
26646
26444
  </dl>
@@ -26660,8 +26458,7 @@ client.invoices.void(id: "id")
26660
26458
  </dl>
26661
26459
  </details>
26662
26460
 
26663
- ## Leads
26664
- <details><summary><code>client.leads.<a href="/lib/whop_sdk/leads/client.rb">list</a>() -> Whop_sdk::Leads::Types::ListLeadsResponse</code></summary>
26461
+ <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">mark_uncollectible</a>(id:) -> Whop_sdk::Types::Invoice</code></summary>
26665
26462
  <dl>
26666
26463
  <dd>
26667
26464
 
@@ -26673,13 +26470,7 @@ client.invoices.void(id: "id")
26673
26470
  <dl>
26674
26471
  <dd>
26675
26472
 
26676
- Lists an account's leads, newest first.
26677
-
26678
- Required permissions:
26679
- - `lead:basic:read`
26680
- - `member:email:read`
26681
- - `access_pass:basic:read`
26682
- - `member:basic:read`
26473
+ Marks an open invoice as uncollectible. Its checkout link stops working.
26683
26474
  </dd>
26684
26475
  </dl>
26685
26476
  </dd>
@@ -26694,13 +26485,7 @@ Required permissions:
26694
26485
  <dd>
26695
26486
 
26696
26487
  ```ruby
26697
- client.leads.list(
26698
- first: 42,
26699
- last: 42,
26700
- created_after: "2023-12-01T05:00:00Z",
26701
- created_before: "2023-12-01T05:00:00Z",
26702
- account_id: "biz_xxxxxxxxxxxxxx"
26703
- )
26488
+ client.invoices.mark_uncollectible(id: "id")
26704
26489
  ```
26705
26490
  </dd>
26706
26491
  </dl>
@@ -26715,63 +26500,7 @@ client.leads.list(
26715
26500
  <dl>
26716
26501
  <dd>
26717
26502
 
26718
- **after:** `String` — Returns the elements in the list that come after the specified cursor.
26719
-
26720
- </dd>
26721
- </dl>
26722
-
26723
- <dl>
26724
- <dd>
26725
-
26726
- **before:** `String` — Returns the elements in the list that come before the specified cursor.
26727
-
26728
- </dd>
26729
- </dl>
26730
-
26731
- <dl>
26732
- <dd>
26733
-
26734
- **first:** `Integer` — Returns the first _n_ elements from the list.
26735
-
26736
- </dd>
26737
- </dl>
26738
-
26739
- <dl>
26740
- <dd>
26741
-
26742
- **last:** `Integer` — Returns the last _n_ elements from the list.
26743
-
26744
- </dd>
26745
- </dl>
26746
-
26747
- <dl>
26748
- <dd>
26749
-
26750
- **created_after:** `String` — Only return leads created after this timestamp.
26751
-
26752
- </dd>
26753
- </dl>
26754
-
26755
- <dl>
26756
- <dd>
26757
-
26758
- **created_before:** `String` — Only return leads created before this timestamp.
26759
-
26760
- </dd>
26761
- </dl>
26762
-
26763
- <dl>
26764
- <dd>
26765
-
26766
- **product_ids:** `String` — Filter leads to only those associated with these specific product identifiers.
26767
-
26768
- </dd>
26769
- </dl>
26770
-
26771
- <dl>
26772
- <dd>
26773
-
26774
- **account_id:** `String` — The unique identifier of the company to list leads for.
26503
+ **id:** `String` — The invoice's pay_ ID.
26775
26504
 
26776
26505
  </dd>
26777
26506
  </dl>
@@ -26779,7 +26508,7 @@ client.leads.list(
26779
26508
  <dl>
26780
26509
  <dd>
26781
26510
 
26782
- **request_options:** `Whop_sdk::Leads::RequestOptions`
26511
+ **request_options:** `Whop_sdk::Invoices::RequestOptions`
26783
26512
 
26784
26513
  </dd>
26785
26514
  </dl>
@@ -26791,7 +26520,7 @@ client.leads.list(
26791
26520
  </dl>
26792
26521
  </details>
26793
26522
 
26794
- <details><summary><code>client.leads.<a href="/lib/whop_sdk/leads/client.rb">create</a>(request) -> Whop_sdk::Types::Lead</code></summary>
26523
+ <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">send_</a>(id:, request) -> Whop_sdk::Types::Invoice</code></summary>
26795
26524
  <dl>
26796
26525
  <dd>
26797
26526
 
@@ -26803,13 +26532,7 @@ client.leads.list(
26803
26532
  <dl>
26804
26533
  <dd>
26805
26534
 
26806
- Records a lead: a potential customer's interest in an account or one of its products.
26807
-
26808
- Required permissions:
26809
- - `lead:manage`
26810
- - `member:email:read`
26811
- - `access_pass:basic:read`
26812
- - `member:basic:read`
26535
+ Issues a draft and emails it to its recipients, with reminders after the due date. A draft with no `payment_method_id` needs `invoice:update`, `invoice:create`, or `payment:charge`, and is never charged. A draft with a `payment_method_id` needs `payment:charge`: with a `charge_at`, or when its `due_at` is still ahead, it is emailed now and charged to that method at that time (see `scheduled_charge_at`); otherwise it is charged right away instead of emailed. Voiding the invoice, marking it uncollectible, or paying it first cancels the scheduled charge, and its recipients get the payment link if a charge fails. Sending an open invoice needs `payment:charge` and emails it again, up to three emails a day including the first send. With `send_at`, the draft is sent at that time instead, and cannot be edited, except its recipients, until it is sent or unscheduled. Each email, reminders included, is sent separately to the customer email shown on the invoice and to each address in `recipient_emails`, so recipients never see each other's addresses.
26813
26536
  </dd>
26814
26537
  </dl>
26815
26538
  </dd>
@@ -26824,7 +26547,7 @@ Required permissions:
26824
26547
  <dd>
26825
26548
 
26826
26549
  ```ruby
26827
- client.leads.create(account_id: "biz_xxxxxxxxxxxxxx")
26550
+ client.invoices.send_(id: "id")
26828
26551
  ```
26829
26552
  </dd>
26830
26553
  </dl>
@@ -26839,15 +26562,7 @@ client.leads.create(account_id: "biz_xxxxxxxxxxxxxx")
26839
26562
  <dl>
26840
26563
  <dd>
26841
26564
 
26842
- **account_id:** `String` — The unique identifier of the company to create the lead for, starting with 'biz_'.
26843
-
26844
- </dd>
26845
- </dl>
26846
-
26847
- <dl>
26848
- <dd>
26849
-
26850
- **metadata:** `Internal::Types::Hash[String, Object]` — A JSON object of custom metadata to attach to the lead for tracking purposes.
26565
+ **id:** `String` — The invoice's pay_ ID.
26851
26566
 
26852
26567
  </dd>
26853
26568
  </dl>
@@ -26855,7 +26570,7 @@ client.leads.create(account_id: "biz_xxxxxxxxxxxxxx")
26855
26570
  <dl>
26856
26571
  <dd>
26857
26572
 
26858
- **product_id:** `String` — The unique identifier of the product the lead is interested in, starting with 'prod_'.
26573
+ **charge_at:** `String` — When to charge the draft's `payment_method_id`, as an ISO 8601 timestamp in the future and no earlier than `send_at`. Only for a draft with a `payment_method_id` and a total above zero. Omit to charge on `due_at` if it is still ahead when the draft is sent, or right away otherwise. A scheduled send that runs after `charge_at` charges right away.
26859
26574
 
26860
26575
  </dd>
26861
26576
  </dl>
@@ -26863,7 +26578,7 @@ client.leads.create(account_id: "biz_xxxxxxxxxxxxxx")
26863
26578
  <dl>
26864
26579
  <dd>
26865
26580
 
26866
- **referrer:** `String` — The referral URL that brought the lead to the company, such as 'https://example.com/landing'.
26581
+ **collection_method:** `Whop_sdk::Invoices::Types::SendInvoicesRequestCollectionMethod` — How the subscription this invoice starts collects each renewal. `charge_automatically` charges the payment method that paid the invoice each period: the draft's `payment_method_id`, or the one the customer pays the invoice link with. `send_invoice` issues a numbered invoice each period, due on the renewal date and emailed with its payment link to the latest invoice's `recipient_emails`, so it needs at least one recipient and isn't available for invoices billed to a business. Defaults to `charge_automatically`. Only for a draft with a recurring item. A scheduled send applies it when it fires (see `scheduled_collection_method`).
26867
26582
 
26868
26583
  </dd>
26869
26584
  </dl>
@@ -26871,7 +26586,7 @@ client.leads.create(account_id: "biz_xxxxxxxxxxxxxx")
26871
26586
  <dl>
26872
26587
  <dd>
26873
26588
 
26874
- **user_id:** `String` — The unique identifier of the user to record as the lead. If authenticated as a user, that user is used automatically.
26589
+ **send_at:** `String` — When to send the draft, as an ISO 8601 timestamp in the future. Omit to send now.
26875
26590
 
26876
26591
  </dd>
26877
26592
  </dl>
@@ -26879,7 +26594,7 @@ client.leads.create(account_id: "biz_xxxxxxxxxxxxxx")
26879
26594
  <dl>
26880
26595
  <dd>
26881
26596
 
26882
- **request_options:** `Whop_sdk::Leads::RequestOptions`
26597
+ **request_options:** `Whop_sdk::Invoices::RequestOptions`
26883
26598
 
26884
26599
  </dd>
26885
26600
  </dl>
@@ -26891,7 +26606,7 @@ client.leads.create(account_id: "biz_xxxxxxxxxxxxxx")
26891
26606
  </dl>
26892
26607
  </details>
26893
26608
 
26894
- <details><summary><code>client.leads.<a href="/lib/whop_sdk/leads/client.rb">retrieve</a>(id:) -> Whop_sdk::Types::Lead</code></summary>
26609
+ <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">unschedule</a>(id:) -> Whop_sdk::Types::Invoice</code></summary>
26895
26610
  <dl>
26896
26611
  <dd>
26897
26612
 
@@ -26903,13 +26618,7 @@ client.leads.create(account_id: "biz_xxxxxxxxxxxxxx")
26903
26618
  <dl>
26904
26619
  <dd>
26905
26620
 
26906
- Retrieves the details of an existing lead.
26907
-
26908
- Required permissions:
26909
- - `lead:basic:read`
26910
- - `member:email:read`
26911
- - `access_pass:basic:read`
26912
- - `member:basic:read`
26621
+ Cancels a draft's scheduled send, so it can be edited again. An invoice with no scheduled send is returned unchanged. A draft with no `payment_method_id` needs `invoice:update`, `invoice:create`, or `payment:charge`; any other invoice needs `payment:charge`.
26913
26622
  </dd>
26914
26623
  </dl>
26915
26624
  </dd>
@@ -26924,7 +26633,7 @@ Required permissions:
26924
26633
  <dd>
26925
26634
 
26926
26635
  ```ruby
26927
- client.leads.retrieve(id: "lead_xxxxxxxxxxxxx")
26636
+ client.invoices.unschedule(id: "id")
26928
26637
  ```
26929
26638
  </dd>
26930
26639
  </dl>
@@ -26939,7 +26648,7 @@ client.leads.retrieve(id: "lead_xxxxxxxxxxxxx")
26939
26648
  <dl>
26940
26649
  <dd>
26941
26650
 
26942
- **id:** `String` — The unique identifier of the lead to retrieve.
26651
+ **id:** `String` — The invoice's pay_ ID.
26943
26652
 
26944
26653
  </dd>
26945
26654
  </dl>
@@ -26947,7 +26656,7 @@ client.leads.retrieve(id: "lead_xxxxxxxxxxxxx")
26947
26656
  <dl>
26948
26657
  <dd>
26949
26658
 
26950
- **request_options:** `Whop_sdk::Leads::RequestOptions`
26659
+ **request_options:** `Whop_sdk::Invoices::RequestOptions`
26951
26660
 
26952
26661
  </dd>
26953
26662
  </dl>
@@ -26959,7 +26668,7 @@ client.leads.retrieve(id: "lead_xxxxxxxxxxxxx")
26959
26668
  </dl>
26960
26669
  </details>
26961
26670
 
26962
- <details><summary><code>client.leads.<a href="/lib/whop_sdk/leads/client.rb">update</a>(id:, request) -> Whop_sdk::Types::Lead</code></summary>
26671
+ <details><summary><code>client.invoices.<a href="/lib/whop_sdk/invoices/client.rb">void</a>(id:) -> Whop_sdk::Types::Invoice</code></summary>
26963
26672
  <dl>
26964
26673
  <dd>
26965
26674
 
@@ -26971,13 +26680,7 @@ client.leads.retrieve(id: "lead_xxxxxxxxxxxxx")
26971
26680
  <dl>
26972
26681
  <dd>
26973
26682
 
26974
- Updates a lead's `metadata` or `referrer`.
26975
-
26976
- Required permissions:
26977
- - `lead:manage`
26978
- - `member:email:read`
26979
- - `access_pass:basic:read`
26980
- - `member:basic:read`
26683
+ Voids a draft or unpaid invoice.
26981
26684
  </dd>
26982
26685
  </dl>
26983
26686
  </dd>
@@ -26992,7 +26695,7 @@ Required permissions:
26992
26695
  <dd>
26993
26696
 
26994
26697
  ```ruby
26995
- client.leads.update(id: "lead_xxxxxxxxxxxxx")
26698
+ client.invoices.void(id: "id")
26996
26699
  ```
26997
26700
  </dd>
26998
26701
  </dl>
@@ -27007,23 +26710,7 @@ client.leads.update(id: "lead_xxxxxxxxxxxxx")
27007
26710
  <dl>
27008
26711
  <dd>
27009
26712
 
27010
- **id:** `String` — The unique identifier of the lead to update, starting with 'lead_'.
27011
-
27012
- </dd>
27013
- </dl>
27014
-
27015
- <dl>
27016
- <dd>
27017
-
27018
- **metadata:** `Internal::Types::Hash[String, Object]` — A JSON object of custom metadata to set on the lead, replacing any existing metadata.
27019
-
27020
- </dd>
27021
- </dl>
27022
-
27023
- <dl>
27024
- <dd>
27025
-
27026
- **referrer:** `String` — The updated referral URL for the lead, such as 'https://example.com/landing'.
26713
+ **id:** `String` — The invoice's pay_ ID.
27027
26714
 
27028
26715
  </dd>
27029
26716
  </dl>
@@ -27031,7 +26718,7 @@ client.leads.update(id: "lead_xxxxxxxxxxxxx")
27031
26718
  <dl>
27032
26719
  <dd>
27033
26720
 
27034
- **request_options:** `Whop_sdk::Leads::RequestOptions`
26721
+ **request_options:** `Whop_sdk::Invoices::RequestOptions`
27035
26722
 
27036
26723
  </dd>
27037
26724
  </dl>
@@ -27783,6 +27470,84 @@ client.members.list(
27783
27470
  </dl>
27784
27471
 
27785
27472
 
27473
+ </dd>
27474
+ </dl>
27475
+ </details>
27476
+
27477
+ <details><summary><code>client.members.<a href="/lib/whop_sdk/members/client.rb">create</a>(request) -> Whop_sdk::Types::Member</code></summary>
27478
+ <dl>
27479
+ <dd>
27480
+
27481
+ #### 📝 Description
27482
+
27483
+ <dl>
27484
+ <dd>
27485
+
27486
+ <dl>
27487
+ <dd>
27488
+
27489
+ Adds a person to an account as a member. If the person is already a member of the account, that member is returned unchanged.
27490
+ </dd>
27491
+ </dl>
27492
+ </dd>
27493
+ </dl>
27494
+
27495
+ #### 🔌 Usage
27496
+
27497
+ <dl>
27498
+ <dd>
27499
+
27500
+ <dl>
27501
+ <dd>
27502
+
27503
+ ```ruby
27504
+ client.members.create(email: "jane@example.com")
27505
+ ```
27506
+ </dd>
27507
+ </dl>
27508
+ </dd>
27509
+ </dl>
27510
+
27511
+ #### ⚙️ Parameters
27512
+
27513
+ <dl>
27514
+ <dd>
27515
+
27516
+ <dl>
27517
+ <dd>
27518
+
27519
+ **account_id:** `String` — The account to add the member to (`biz_` tag). Defaults to the account the credential acts as.
27520
+
27521
+ </dd>
27522
+ </dl>
27523
+
27524
+ <dl>
27525
+ <dd>
27526
+
27527
+ **email:** `String` — The email address of the person to add. If no Whop user has it, one is created.
27528
+
27529
+ </dd>
27530
+ </dl>
27531
+
27532
+ <dl>
27533
+ <dd>
27534
+
27535
+ **name:** `String` — The name of the person to add. Ignored when a user on Whop already exists for this email address.
27536
+
27537
+ </dd>
27538
+ </dl>
27539
+
27540
+ <dl>
27541
+ <dd>
27542
+
27543
+ **request_options:** `Whop_sdk::Members::RequestOptions`
27544
+
27545
+ </dd>
27546
+ </dl>
27547
+ </dd>
27548
+ </dl>
27549
+
27550
+
27786
27551
  </dd>
27787
27552
  </dl>
27788
27553
  </details>
@@ -27861,7 +27626,7 @@ client.members.retrieve(id: "id")
27861
27626
  <dl>
27862
27627
  <dd>
27863
27628
 
27864
- Updates a member. The account can update `name`, the customer name its invoices show for this member; it doesn't change the user's Whop profile. The member can update `unsubscribe_status`, with a credential for their own user that holds `user:notifications:update`, to unsubscribe from the account's marketing communications or resubscribe. Each sends only its own field.
27629
+ Updates a member.
27865
27630
  </dd>
27866
27631
  </dl>
27867
27632
  </dd>
@@ -27899,7 +27664,7 @@ client.members.update(id: "id")
27899
27664
  <dl>
27900
27665
  <dd>
27901
27666
 
27902
- **name:** `String` — The customer name to show on this member's invoices, at most 255 bytes. Leading and trailing spaces are trimmed. `null` or a blank string clears it, so invoices show the user's own name again.
27667
+ **metadata:** `Internal::Types::Hash[String, Whop_sdk::Members::Types::UpdateMembersRequestMetadataValue]` — Your own key-value data on this member. Up to 50 keys of at most 100 characters. Values are strings of at most 500 characters, numbers, `true`, `false`, or `null`. At most 200 KB. Replaces existing metadata, and `null` clears it. Requires `member:manage`.
27903
27668
 
27904
27669
  </dd>
27905
27670
  </dl>
@@ -27907,7 +27672,15 @@ client.members.update(id: "id")
27907
27672
  <dl>
27908
27673
  <dd>
27909
27674
 
27910
- **unsubscribe_status:** `Whop_sdk::Members::Types::UpdateMembersRequestUnsubscribeStatus` — `unsubscribed` to stop the account's marketing communications, or `null` to resubscribe. Only the member can set it.
27675
+ **name:** `String` — The name invoices show for this member, in place of the user's own. `null` clears it. Requires `member:manage`.
27676
+
27677
+ </dd>
27678
+ </dl>
27679
+
27680
+ <dl>
27681
+ <dd>
27682
+
27683
+ **unsubscribe_status:** `Whop_sdk::Members::Types::UpdateMembersRequestUnsubscribeStatus` — `unsubscribed` to opt out of the account's marketing, `null` to opt back in. Only the member can set it, with `user:notifications:update`.
27911
27684
 
27912
27685
  </dd>
27913
27686
  </dl>
@@ -31202,7 +30975,7 @@ client.partners.leaderboard
31202
30975
  <dl>
31203
30976
  <dd>
31204
30977
 
31205
- Lists the users the caller referred onto Whop, newest first by default, each with the caller's total affiliate earnings from that user across all tiers.
30978
+ Lists the users the caller referred onto Whop, newest first by default, each with the caller's total affiliate earnings from that user across all tiers. Deprecated: this list is retired and no longer appears in the API reference. It keeps responding for existing integrations and has no replacement.
31206
30979
  </dd>
31207
30980
  </dl>
31208
30981
  </dd>
@@ -43439,7 +43212,7 @@ client.swaps.retrieve(id: "id")
43439
43212
  <dl>
43440
43213
  <dd>
43441
43214
 
43442
- Lists an account's team members, including pending invites. A user credential with `company:basic:read` may list only its own joined membership by passing its own `user_id` and `status=joined`. Listing `role=workforce` is also allowed with the `bounty:create` scope. A signed-in Partner, or a member others report to, without `company:authorized_user:read` lists only their own joined membership and the members who report up to them, never pending invites. Members with the view-only Partner role are listed after all other members.
43215
+ Lists team members, including pending invites. Pass `account_id` to list one account's team. Without it, a signed-in user can pass `user_id=me` to list their own joined memberships across accounts. The list has one for each account they can read. An API key without `account_id` lists the team of its own account. With `company:basic:read`, a user can list their own joined membership on one account. To do this, pass `status=joined` and their own `user_id` with the account ID. The `bounty:create` scope also allows listing `role=workforce` members. A signed-in Partner without `company:authorized_user:read` lists only their own joined membership and the members who report up to them. A member others report to gets the same list. Neither of them sees pending invites. Members with the view-only Partner role are listed after all other members.
43443
43216
  </dd>
43444
43217
  </dl>
43445
43218
  </dd>
@@ -43454,7 +43227,7 @@ Lists an account's team members, including pending invites. A user credential wi
43454
43227
  <dd>
43455
43228
 
43456
43229
  ```ruby
43457
- client.team_members.list(account_id: "account_id")
43230
+ client.team_members.list
43458
43231
  ```
43459
43232
  </dd>
43460
43233
  </dl>
@@ -43469,7 +43242,7 @@ client.team_members.list(account_id: "account_id")
43469
43242
  <dl>
43470
43243
  <dd>
43471
43244
 
43472
- **account_id:** `String` — Account ID, prefixed `biz_`.
43245
+ **account_id:** `String` — Only return the team of this account, prefixed `biz_`. A signed-in user can omit it only with `user_id=me` or their own user ID. An API key that omits it gets its own account. `reports_to_id`, `direct_reports_min` and `direct_reports_max` need it.
43473
43246
 
43474
43247
  </dd>
43475
43248
  </dl>
@@ -43485,7 +43258,7 @@ client.team_members.list(account_id: "account_id")
43485
43258
  <dl>
43486
43259
  <dd>
43487
43260
 
43488
- **user_id:** `String` — Only return the membership for this user ID, prefixed `user_`.
43261
+ **user_id:** `String` — Only return the memberships of this user ID, prefixed `user_`. Pass `me` for the signed-in user.
43489
43262
 
43490
43263
  </dd>
43491
43264
  </dl>
@@ -43557,6 +43330,14 @@ client.team_members.list(account_id: "account_id")
43557
43330
  <dl>
43558
43331
  <dd>
43559
43332
 
43333
+ **is_partner:** `Internal::Types::Boolean` — When true, only members and invites with the view-only Partner role. When false, only the ones without it.
43334
+
43335
+ </dd>
43336
+ </dl>
43337
+
43338
+ <dl>
43339
+ <dd>
43340
+
43560
43341
  **created_before:** `String` — Only return members added before this ISO 8601 timestamp.
43561
43342
 
43562
43343
  </dd>
@@ -48871,7 +48652,7 @@ The required scope depends on which preferences you update.
48871
48652
  - `ad_campaign:create`: `ads_payment_methods`, `ads_reporting_currency`, `ads_scheduling_timezone`, `ads_triple_whale_integration`.
48872
48653
  - `payout:account:update`: `cards_auto_top_up`, `cards_notifications`, `covers_subaccount_negative_balances`.
48873
48654
  - `payment:dispute`: `dispute_fighter_enabled`.
48874
- - `company:update`: `economic_intelligence_duration_key`, `economic_intelligence_auto_renew`, `review_request_emails`, `subaccount_notifications`, `subaccount_team_view_only`.
48655
+ - `company:update`: `economic_intelligence_duration_key`, `economic_intelligence_auto_renew`, `review_request_emails`, `cancellation_emails`, `renewal_reminder_emails`, `failed_payment_emails`, `subaccount_notifications`, `subaccount_team_view_only`.
48875
48656
  - `company:manage_checkout`: `feedback_options`, `customer_tracking`.
48876
48657
 
48877
48658
  To update keys under more than one scope, the API key needs all of those scopes.
@@ -48944,6 +48725,14 @@ client.accounts.preferences.update(account_id: "account_id")
48944
48725
  <dl>
48945
48726
  <dd>
48946
48727
 
48728
+ **cancellation_emails:** `Internal::Types::Boolean` — Whether Whop emails members when their membership is canceled or terminated. Set it to `false` to stop these emails while keeping the account's other customer emails. Requires the `company:update` scope on your API key.
48729
+
48730
+ </dd>
48731
+ </dl>
48732
+
48733
+ <dl>
48734
+ <dd>
48735
+
48947
48736
  **cards_auto_top_up:** `Internal::Types::Boolean` — Whether incoming funds are automatically moved to the account's cards balance. Requires a cards balance on the account and the `payout:account:update` scope on your API key.
48948
48737
 
48949
48738
  </dd>
@@ -48992,7 +48781,15 @@ client.accounts.preferences.update(account_id: "account_id")
48992
48781
  <dl>
48993
48782
  <dd>
48994
48783
 
48995
- **economic_intelligence_duration_key:** `Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestEconomicIntelligenceDurationKey` — Turns on Economic Intelligence with the offer that has this `key` in `economic_intelligence_offers`, at that offer's fee. Only `3_days`, the auto-renew offer, is accepted; any other key is rejected. Requires the `company:update` scope on your API key.
48784
+ **economic_intelligence_duration_key:** `Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestEconomicIntelligenceDurationKey` — Turns on Economic Intelligence with the offer that has this `key` in `economic_intelligence_offers`, at that offer's fee. Only `3_days`, the auto-renew offer, is accepted. Any other key is rejected. Returns `403` for an account Economic Intelligence is not offered to. Requires the `company:update` scope on your API key.
48785
+
48786
+ </dd>
48787
+ </dl>
48788
+
48789
+ <dl>
48790
+ <dd>
48791
+
48792
+ **failed_payment_emails:** `Internal::Types::Boolean` — Whether Whop emails members when a renewal payment fails or needs them to verify it. Set it to `false` to stop these emails while keeping the account's other customer emails. Subscriptions billed by invoice still get their invoice emails. Requires the `company:update` scope on your API key.
48996
48793
 
48997
48794
  </dd>
48998
48795
  </dl>
@@ -49016,6 +48813,14 @@ client.accounts.preferences.update(account_id: "account_id")
49016
48813
  <dl>
49017
48814
  <dd>
49018
48815
 
48816
+ **renewal_reminder_emails:** `Internal::Types::Boolean` — Whether Whop emails members the day before their membership renews or their free trial converts. Set it to `false` to stop that reminder. Members still get the reminders card networks require. Requires the `company:update` scope on your API key.
48817
+
48818
+ </dd>
48819
+ </dl>
48820
+
48821
+ <dl>
48822
+ <dd>
48823
+
49019
48824
  **review_request_emails:** `Internal::Types::Boolean` — Whether Whop emails customers after a purchase asking them to leave a review. Set it to `false` to stop these emails, including ones already scheduled. Requires the `company:update` scope on your API key.
49020
48825
 
49021
48826
  </dd>