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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e2fe48531d24a0a67e590b95eda5bbc6dfb5236706dff580ebac2c741713c0e
4
- data.tar.gz: a057ac9db4f67b965278f815c4bf87a72652528f7e0c4248cf51c947ef20fa8d
3
+ metadata.gz: d074e35d3c185cbd78d8f16d00fb456263ca2210876e11ed428c714045a40336
4
+ data.tar.gz: '0931b6afa8f788f8d03251f2e91d172991c3678c408c8745a6e4cb0ba9693429'
5
5
  SHA512:
6
- metadata.gz: 7d6422b59c40439bb14cb2da01595f9bf1fd8cdc753dfa24504fcb3cbcce6effe2dd502fb24216e54496fb337e16d7ddce0dc1a28e55c875a0ff82f867cb983b
7
- data.tar.gz: 0550c00bd52de7fab0bd7b518170d7e70743898e318a235fa1068647f18281fac2234a82c281a12139618346c5abfd42a2772b9dbf5a8edc53c524bc975fa676
6
+ metadata.gz: '0840443aa10180d7c37349b679545193cf057f92cb41de388f8cdb68bd18fa858348db761a090a1a6054db5a2c94caf09ead263fcf1586052f4339c18cc467ab'
7
+ data.tar.gz: 94c27310db0b792927e9e3661eb50328c8b7c1458ab5d00d751f756b5d61aa69747bbe89e472276cebfa46c49c59739b15f422f4c798c28862bbfbb435d5bf2d
data/.fern/metadata.json CHANGED
@@ -14,10 +14,10 @@
14
14
  "standardwebhooks": ">= 1.0"
15
15
  }
16
16
  },
17
- "originGitCommit": "504d9a4e5340bf2203038f3480d55926224ee5e2",
17
+ "originGitCommit": "36b6a891b08c442ae401c686b74aaae39ff33fcc",
18
18
  "originGitCommitIsDirty": false,
19
19
  "invokedBy": "ci",
20
- "requestedVersion": "2.8.0",
20
+ "requestedVersion": "2.8.1",
21
21
  "ciProvider": "unknown",
22
- "sdkVersion": "2.8.0"
22
+ "sdkVersion": "2.8.1"
23
23
  }
data/.fern/replay.lock CHANGED
@@ -5082,5 +5082,161 @@ generations:
5082
5082
  cli_version: unknown
5083
5083
  generator_versions:
5084
5084
  fernapi/fern-ruby-sdk: 1.28.3
5085
- current_generation: 5b5311ab26660005df9424430c4b52d21ca92ef9
5085
+ - commit_sha: 370b9d80040da6f241c45028deba9cdf0344f690
5086
+ tree_hash: 61f47bd49734c49a0b20f2101f0da5fc6a626a54
5087
+ timestamp: 2026-11-12T19:50:02.082Z
5088
+ cli_version: unknown
5089
+ generator_versions:
5090
+ fernapi/fern-ruby-sdk: 1.28.3
5091
+ - commit_sha: 7d32096b80d6da1a59767c168f87ff7fe36495c1
5092
+ tree_hash: 010d77c14bbb6452e7f2e9f2312a714f9162a795
5093
+ timestamp: 2026-11-12T20:30:20.945Z
5094
+ cli_version: unknown
5095
+ generator_versions:
5096
+ fernapi/fern-ruby-sdk: 1.28.3
5097
+ - commit_sha: dfb3aae2f972b627d528a1026994a1d9cbc4cc2f
5098
+ tree_hash: f7d0b0a6cd80e48717f64ace6a75d00369b33038
5099
+ timestamp: 2026-11-12T21:07:57.589Z
5100
+ cli_version: unknown
5101
+ generator_versions:
5102
+ fernapi/fern-ruby-sdk: 1.28.3
5103
+ - commit_sha: eb026d314f173dbef66f6a9859321e5965e5ac3a
5104
+ tree_hash: abd7a8a9d73cf39d17a49d5a5cf38cde767df255
5105
+ timestamp: 2026-11-12T21:21:39.495Z
5106
+ cli_version: unknown
5107
+ generator_versions:
5108
+ fernapi/fern-ruby-sdk: 1.28.3
5109
+ - commit_sha: c51de1c5c90d482a0c419f74d923961d5c1a65e9
5110
+ tree_hash: 4378e8086470d890f1e7e00a98228ee74ff9ce92
5111
+ timestamp: 2026-11-12T21:53:27.988Z
5112
+ cli_version: unknown
5113
+ generator_versions:
5114
+ fernapi/fern-ruby-sdk: 1.28.3
5115
+ - commit_sha: 41840465db569a2ffe4039cc62e5624421c95f0d
5116
+ tree_hash: 90e5dfbc4523d0c0a6dd50971d743103e3242bfc
5117
+ timestamp: 2026-11-12T22:06:50.907Z
5118
+ cli_version: unknown
5119
+ generator_versions:
5120
+ fernapi/fern-ruby-sdk: 1.28.3
5121
+ - commit_sha: ada8ebb7753e4eba218d29ac6ff7a2700ddf6480
5122
+ tree_hash: 580014d63634d17e9a05fd2c09db9d0288161ca6
5123
+ timestamp: 2026-11-12T22:21:06.640Z
5124
+ cli_version: unknown
5125
+ generator_versions:
5126
+ fernapi/fern-ruby-sdk: 1.28.3
5127
+ - commit_sha: 2b1ab89ba6acb3453d488f5e27a82121714c4468
5128
+ tree_hash: aaebebd8ad53beaa980036c82573af9d404205a9
5129
+ timestamp: 2026-11-12T22:43:26.774Z
5130
+ cli_version: unknown
5131
+ generator_versions:
5132
+ fernapi/fern-ruby-sdk: 1.28.3
5133
+ - commit_sha: 8d24cd5adf29e4e6b0164fe68f7b288ea18701ac
5134
+ tree_hash: ef255806f601f1975415b42fbd1d48e04b9631bc
5135
+ timestamp: 2026-11-13T00:11:47.976Z
5136
+ cli_version: unknown
5137
+ generator_versions:
5138
+ fernapi/fern-ruby-sdk: 1.28.3
5139
+ - commit_sha: 326dc4091b09640f54d7dc627bc13a90d1ac0d8c
5140
+ tree_hash: 4fd96663e20b0e074f95a7aa9ece8b48fe215177
5141
+ timestamp: 2026-11-13T00:33:05.426Z
5142
+ cli_version: unknown
5143
+ generator_versions:
5144
+ fernapi/fern-ruby-sdk: 1.28.3
5145
+ - commit_sha: f268d93c957ce6578c1ffcd5aeac5e4ee877f814
5146
+ tree_hash: b3f8ba2d5beebac84626ba855595fabc00a322dc
5147
+ timestamp: 2026-11-13T00:45:44.505Z
5148
+ cli_version: unknown
5149
+ generator_versions:
5150
+ fernapi/fern-ruby-sdk: 1.28.3
5151
+ - commit_sha: 94d2f6ceaa0b6cc7fb632f4e735a5bb0b1a02bff
5152
+ tree_hash: ce9976befeb66ebb5b4b2b9c699df9c6a97131e3
5153
+ timestamp: 2026-11-13T00:58:25.696Z
5154
+ cli_version: unknown
5155
+ generator_versions:
5156
+ fernapi/fern-ruby-sdk: 1.28.3
5157
+ - commit_sha: 80393c9ec9e077b567844bebc83e36be3bdff8c3
5158
+ tree_hash: 25c0658a6d748eb90ec6fabab4affc5b44e0ffd3
5159
+ timestamp: 2026-11-13T01:20:47.043Z
5160
+ cli_version: unknown
5161
+ generator_versions:
5162
+ fernapi/fern-ruby-sdk: 1.28.3
5163
+ - commit_sha: b55e3823c90ed09c3e8964d9a24233ff4ec2efbd
5164
+ tree_hash: 0521ac79d96abf442b88158155d454ebf43a6c3b
5165
+ timestamp: 2026-11-13T01:33:10.754Z
5166
+ cli_version: unknown
5167
+ generator_versions:
5168
+ fernapi/fern-ruby-sdk: 1.28.3
5169
+ - commit_sha: d0d791971d0932088ea3fad2ae310d983a6d1516
5170
+ tree_hash: bb7970753bb587d102b711a4c892b8c566a01663
5171
+ timestamp: 2026-11-13T01:45:33.680Z
5172
+ cli_version: unknown
5173
+ generator_versions:
5174
+ fernapi/fern-ruby-sdk: 1.28.3
5175
+ - commit_sha: 25860669872ccc8b6842fcb79611daf8f3e9be38
5176
+ tree_hash: 5db1c46812cafb3fc210fba6afddf4d1c85c60b0
5177
+ timestamp: 2026-11-13T01:58:50.338Z
5178
+ cli_version: unknown
5179
+ generator_versions:
5180
+ fernapi/fern-ruby-sdk: 1.28.3
5181
+ - commit_sha: b938be128b35a5d3861c6be71501a46d2b12b793
5182
+ tree_hash: f0609d65622bd504fe96056c06a931c2dfff2b27
5183
+ timestamp: 2026-11-13T02:11:16.360Z
5184
+ cli_version: unknown
5185
+ generator_versions:
5186
+ fernapi/fern-ruby-sdk: 1.28.3
5187
+ - commit_sha: c5255a98d2f967b3c74c53c8668c078194c09597
5188
+ tree_hash: 85fad7de998d932566ffde7643845c5c30919674
5189
+ timestamp: 2026-11-13T03:30:19.387Z
5190
+ cli_version: unknown
5191
+ generator_versions:
5192
+ fernapi/fern-ruby-sdk: 1.28.3
5193
+ - commit_sha: 980a71324876e5ae8c8f4cc07d99e623d6481689
5194
+ tree_hash: e8458556b1e597ba0474a7049bc7421b91d4cc88
5195
+ timestamp: 2026-11-13T03:42:49.135Z
5196
+ cli_version: unknown
5197
+ generator_versions:
5198
+ fernapi/fern-ruby-sdk: 1.28.3
5199
+ - commit_sha: 6b783fdf7bef48ba3f3dbbcd6c05359181c01054
5200
+ tree_hash: 3ee80808d744c5ef4a7f1837ab950a8f4cedbffa
5201
+ timestamp: 2026-11-13T03:56:06.363Z
5202
+ cli_version: unknown
5203
+ generator_versions:
5204
+ fernapi/fern-ruby-sdk: 1.28.3
5205
+ - commit_sha: f44e6746d863c6a4196c529dcad34c5c51c060ce
5206
+ tree_hash: 5a2bcca14c46cba9dc4237ad70ba54aa1eb84cc4
5207
+ timestamp: 2026-11-13T06:01:51.734Z
5208
+ cli_version: unknown
5209
+ generator_versions:
5210
+ fernapi/fern-ruby-sdk: 1.28.3
5211
+ - commit_sha: 5d9fc0d4b2e915b955378a3c70f1498bde201e1e
5212
+ tree_hash: 6df0bb9543f502789d4e258cff269fd4aa7c8bbc
5213
+ timestamp: 2026-11-13T07:51:58.539Z
5214
+ cli_version: unknown
5215
+ generator_versions:
5216
+ fernapi/fern-ruby-sdk: 1.28.3
5217
+ - commit_sha: 81164871e61818bb799cfb2d0ae1e6bd07823b9a
5218
+ tree_hash: efcf050b9cb38cab65cd337219acffe4ff709801
5219
+ timestamp: 2026-11-13T18:02:31.467Z
5220
+ cli_version: unknown
5221
+ generator_versions:
5222
+ fernapi/fern-ruby-sdk: 1.28.3
5223
+ - commit_sha: 1cf9fc1db75f87c9b3e3329c023881d8023e4c81
5224
+ tree_hash: 9458b0a109a85136faac71d080a5e53cd80d4743
5225
+ timestamp: 2026-11-13T19:50:15.607Z
5226
+ cli_version: unknown
5227
+ generator_versions:
5228
+ fernapi/fern-ruby-sdk: 1.28.3
5229
+ - commit_sha: 81353ea562707fb87bd82fc067193ca5761f4b53
5230
+ tree_hash: 9b9aa6d7a7cc960e06f85378848dd2dcdbc27020
5231
+ timestamp: 2026-11-13T20:53:30.996Z
5232
+ cli_version: unknown
5233
+ generator_versions:
5234
+ fernapi/fern-ruby-sdk: 1.28.3
5235
+ - commit_sha: a3124fed982da6db37cfb6ab2a5dd630c564f720
5236
+ tree_hash: 9c9f5de6a94d53eeab2ed750c812f811b581a2e6
5237
+ timestamp: 2026-11-13T21:07:37.458Z
5238
+ cli_version: unknown
5239
+ generator_versions:
5240
+ fernapi/fern-ruby-sdk: 1.28.3
5241
+ current_generation: a3124fed982da6db37cfb6ab2a5dd630c564f720
5086
5242
  patches: []
@@ -12,6 +12,8 @@ module Whop_sdk
12
12
 
13
13
  field :deposits, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestChildMarkupsDepositsValue] }, optional: true, nullable: false
14
14
 
15
+ field :payment_methods, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestChildMarkupsPaymentMethodsValue] }, optional: true, nullable: false
16
+
15
17
  field :payments, -> { Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestChildMarkupsPayments }, optional: true, nullable: false
16
18
 
17
19
  field :payouts, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestChildMarkupsPayoutsValue] }, optional: true, nullable: false
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module Fees
6
6
  module Types
7
- # The new markup. Fields left out keep their current value; `null` clears the row so the markup returns to its
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
8
  # default.
9
9
  class UpdateFeesRequestChildMarkupsCryptoSwaps < Internal::Types::Model
10
10
  field :fixed, -> { Integer }, optional: true, nullable: false
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module Fees
6
6
  module Types
7
- # The new markup. Fields left out keep their current value; `null` clears the row so the markup returns to its
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
8
  # default.
9
9
  class UpdateFeesRequestChildMarkupsDepositsValue < Internal::Types::Model
10
10
  field :fixed, -> { Integer }, optional: true, nullable: false
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Accounts
5
+ module Fees
6
+ module Types
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
+ # default.
9
+ class UpdateFeesRequestChildMarkupsPaymentMethodsValue < Internal::Types::Model
10
+ field :fixed, -> { Integer }, optional: true, nullable: false
11
+
12
+ field :percentage, -> { Integer }, optional: true, nullable: false
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module Fees
6
6
  module Types
7
- # The new markup. Fields left out keep their current value; `null` clears the row so the markup returns to its
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
8
  # default.
9
9
  class UpdateFeesRequestChildMarkupsPayments < Internal::Types::Model
10
10
  field :fixed, -> { Integer }, optional: true, nullable: false
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module Fees
6
6
  module Types
7
- # The new markup. Fields left out keep their current value; `null` clears the row so the markup returns to its
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
8
  # default.
9
9
  class UpdateFeesRequestChildMarkupsPayoutsValue < Internal::Types::Model
10
10
  field :fixed, -> { Integer }, optional: true, nullable: false
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module Fees
6
6
  module Types
7
- # The new markup. Fields left out keep their current value; `null` clears the row so the markup returns to its
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
8
  # default.
9
9
  class UpdateFeesRequestChildMarkupsTransfers < Internal::Types::Model
10
10
  field :fixed, -> { Integer }, optional: true, nullable: false
@@ -12,6 +12,8 @@ module Whop_sdk
12
12
 
13
13
  field :deposits, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestMarkupsDepositsValue] }, optional: true, nullable: false
14
14
 
15
+ field :payment_methods, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestMarkupsPaymentMethodsValue] }, optional: true, nullable: false
16
+
15
17
  field :payments, -> { Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestMarkupsPayments }, optional: true, nullable: false
16
18
 
17
19
  field :payouts, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestMarkupsPayoutsValue] }, optional: true, nullable: false
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module Fees
6
6
  module Types
7
- # The new markup. Fields left out keep their current value; `null` clears the row so the markup returns to its
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
8
  # default.
9
9
  class UpdateFeesRequestMarkupsCryptoSwaps < Internal::Types::Model
10
10
  field :fixed, -> { Integer }, optional: true, nullable: false
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module Fees
6
6
  module Types
7
- # The new markup. Fields left out keep their current value; `null` clears the row so the markup returns to its
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
8
  # default.
9
9
  class UpdateFeesRequestMarkupsDepositsValue < Internal::Types::Model
10
10
  field :fixed, -> { Integer }, optional: true, nullable: false
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Accounts
5
+ module Fees
6
+ module Types
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
+ # default.
9
+ class UpdateFeesRequestMarkupsPaymentMethodsValue < Internal::Types::Model
10
+ field :fixed, -> { Integer }, optional: true, nullable: false
11
+
12
+ field :percentage, -> { Integer }, optional: true, nullable: false
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module Fees
6
6
  module Types
7
- # The new markup. Fields left out keep their current value; `null` clears the row so the markup returns to its
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
8
  # default.
9
9
  class UpdateFeesRequestMarkupsPayments < Internal::Types::Model
10
10
  field :fixed, -> { Integer }, optional: true, nullable: false
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module Fees
6
6
  module Types
7
- # The new markup. Fields left out keep their current value; `null` clears the row so the markup returns to its
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
8
  # default.
9
9
  class UpdateFeesRequestMarkupsPayoutsValue < Internal::Types::Model
10
10
  field :fixed, -> { Integer }, optional: true, nullable: false
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module Fees
6
6
  module Types
7
- # The new markup. Fields left out keep their current value; `null` clears the row so the markup returns to its
7
+ # The new markup. Fields left out keep their current value. `null` clears the row so the markup returns to its
8
8
  # default.
9
9
  class UpdateFeesRequestMarkupsTransfers < Internal::Types::Model
10
10
  field :fixed, -> { Integer }, optional: true, nullable: false
@@ -62,7 +62,8 @@ module Whop_sdk
62
62
  # - `payout:account:update`: `cards_auto_top_up`, `cards_notifications`, `covers_subaccount_negative_balances`.
63
63
  # - `payment:dispute`: `dispute_fighter_enabled`.
64
64
  # - `company:update`: `economic_intelligence_duration_key`, `economic_intelligence_auto_renew`,
65
- # `review_request_emails`, `subaccount_notifications`, `subaccount_team_view_only`.
65
+ # `review_request_emails`, `cancellation_emails`, `renewal_reminder_emails`, `failed_payment_emails`,
66
+ # `subaccount_notifications`, `subaccount_team_view_only`.
66
67
  # - `company:manage_checkout`: `feedback_options`, `customer_tracking`.
67
68
  #
68
69
  # To update keys under more than one scope, the API key needs all of those scopes.
@@ -15,6 +15,8 @@ module Whop_sdk
15
15
 
16
16
  field :ads_triple_whale_integration, -> { Whop_sdk::Accounts::Preferences::Types::RetrievePreferencesResponseAdsTripleWhaleIntegration }, optional: false, nullable: false
17
17
 
18
+ field :cancellation_emails, -> { Internal::Types::Boolean }, optional: false, nullable: false
19
+
18
20
  field :cards_auto_top_up, -> { Internal::Types::Boolean }, optional: false, nullable: false
19
21
 
20
22
  field :cards_notifications, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -39,12 +41,16 @@ module Whop_sdk
39
41
 
40
42
  field :economic_intelligence_previous_period, -> { Whop_sdk::Accounts::Preferences::Types::RetrievePreferencesResponseEconomicIntelligencePreviousPeriod }, optional: false, nullable: true
41
43
 
44
+ field :failed_payment_emails, -> { Internal::Types::Boolean }, optional: false, nullable: false
45
+
42
46
  field :feedback_options, -> { Internal::Types::Array[Whop_sdk::Accounts::Preferences::Types::RetrievePreferencesResponseFeedbackOptionsItem] }, optional: false, nullable: false
43
47
 
44
48
  field :preferred_settlement_currency, -> { Whop_sdk::Accounts::Preferences::Types::RetrievePreferencesResponsePreferredSettlementCurrency }, optional: false, nullable: true
45
49
 
46
50
  field :preferred_settlement_currency_changeable_at, -> { String }, optional: false, nullable: true
47
51
 
52
+ field :renewal_reminder_emails, -> { Internal::Types::Boolean }, optional: false, nullable: false
53
+
48
54
  field :review_request_emails, -> { Internal::Types::Boolean }, optional: false, nullable: false
49
55
 
50
56
  field :subaccount_notifications, -> { Internal::Types::Boolean }, optional: false, nullable: true
@@ -15,6 +15,8 @@ module Whop_sdk
15
15
 
16
16
  field :ads_triple_whale_integration, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestAdsTripleWhaleIntegration }, optional: true, nullable: false
17
17
 
18
+ field :cancellation_emails, -> { Internal::Types::Boolean }, optional: true, nullable: false
19
+
18
20
  field :cards_auto_top_up, -> { Internal::Types::Boolean }, optional: true, nullable: false
19
21
 
20
22
  field :cards_notifications, -> { Internal::Types::Boolean }, optional: true, nullable: false
@@ -29,10 +31,14 @@ module Whop_sdk
29
31
 
30
32
  field :economic_intelligence_duration_key, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestEconomicIntelligenceDurationKey }, optional: true, nullable: false
31
33
 
34
+ field :failed_payment_emails, -> { Internal::Types::Boolean }, optional: true, nullable: false
35
+
32
36
  field :feedback_options, -> { Internal::Types::Array[Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestFeedbackOptionsItem] }, optional: true, nullable: false
33
37
 
34
38
  field :preferred_settlement_currency, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestPreferredSettlementCurrency }, optional: true, nullable: false
35
39
 
40
+ field :renewal_reminder_emails, -> { Internal::Types::Boolean }, optional: true, nullable: false
41
+
36
42
  field :review_request_emails, -> { Internal::Types::Boolean }, optional: true, nullable: false
37
43
 
38
44
  field :subaccount_notifications, -> { Internal::Types::Boolean }, optional: true, nullable: false
@@ -15,6 +15,8 @@ module Whop_sdk
15
15
 
16
16
  field :ads_triple_whale_integration, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesResponseAdsTripleWhaleIntegration }, optional: false, nullable: false
17
17
 
18
+ field :cancellation_emails, -> { Internal::Types::Boolean }, optional: false, nullable: false
19
+
18
20
  field :cards_auto_top_up, -> { Internal::Types::Boolean }, optional: false, nullable: false
19
21
 
20
22
  field :cards_notifications, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -39,12 +41,16 @@ module Whop_sdk
39
41
 
40
42
  field :economic_intelligence_previous_period, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesResponseEconomicIntelligencePreviousPeriod }, optional: false, nullable: true
41
43
 
44
+ field :failed_payment_emails, -> { Internal::Types::Boolean }, optional: false, nullable: false
45
+
42
46
  field :feedback_options, -> { Internal::Types::Array[Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesResponseFeedbackOptionsItem] }, optional: false, nullable: false
43
47
 
44
48
  field :preferred_settlement_currency, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesResponsePreferredSettlementCurrency }, optional: false, nullable: true
45
49
 
46
50
  field :preferred_settlement_currency_changeable_at, -> { String }, optional: false, nullable: true
47
51
 
52
+ field :renewal_reminder_emails, -> { Internal::Types::Boolean }, optional: false, nullable: false
53
+
48
54
  field :review_request_emails, -> { Internal::Types::Boolean }, optional: false, nullable: false
49
55
 
50
56
  field :subaccount_notifications, -> { Internal::Types::Boolean }, optional: false, nullable: true
@@ -103,6 +103,10 @@ module Whop_sdk
103
103
  TWO_THOUSAND_TWENTY_SIX1107 = "2026-11-07"
104
104
  TWO_THOUSAND_TWENTY_SIX1110 = "2026-11-10"
105
105
  TWO_THOUSAND_TWENTY_SIX11101 = "2026-11-10-1"
106
+ TWO_THOUSAND_TWENTY_SIX1111 = "2026-11-11"
107
+ TWO_THOUSAND_TWENTY_SIX1112 = "2026-11-12"
108
+ TWO_THOUSAND_TWENTY_SIX1113 = "2026-11-13"
109
+ TWO_THOUSAND_TWENTY_SIX11131 = "2026-11-13-1"
106
110
  end
107
111
  end
108
112
  end
@@ -103,6 +103,10 @@ module Whop_sdk
103
103
  TWO_THOUSAND_TWENTY_SIX1107 = "2026-11-07"
104
104
  TWO_THOUSAND_TWENTY_SIX1110 = "2026-11-10"
105
105
  TWO_THOUSAND_TWENTY_SIX11101 = "2026-11-10-1"
106
+ TWO_THOUSAND_TWENTY_SIX1111 = "2026-11-11"
107
+ TWO_THOUSAND_TWENTY_SIX1112 = "2026-11-12"
108
+ TWO_THOUSAND_TWENTY_SIX1113 = "2026-11-13"
109
+ TWO_THOUSAND_TWENTY_SIX11131 = "2026-11-13-1"
106
110
  end
107
111
  end
108
112
  end
@@ -14,10 +14,9 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists apps on the Whop platform: the app store's live apps, or — with `account_id` and developer access to that
18
- # account — every app the account owns. Requires authentication except for Whop's public app and website discovery
19
- # lists. Public website discovery includes built official blueprints (verified apps with a product) and built,
20
- # live community blueprints that Whop recommends.
17
+ # Lists published apps approved for the app store without authentication. With `account_id` and developer access,
18
+ # also includes unpublished apps that the account owns. Public website discovery includes built official
19
+ # blueprints and built, live community blueprints that Whop recommends.
21
20
  #
22
21
  # @param request_options [Hash]
23
22
  # @param params [Hash]
@@ -43,6 +42,7 @@ module Whop_sdk
43
42
  # @option params [String, nil] :after
44
43
  # @option params [Integer, nil] :last
45
44
  # @option params [String, nil] :before
45
+ # @option params [Boolean, nil] :include_total_count
46
46
  #
47
47
  # @example
48
48
  # client.apps.list
@@ -68,6 +68,7 @@ module Whop_sdk
68
68
  query_params["after"] = params[:after] if params.key?(:after)
69
69
  query_params["last"] = params[:last] if params.key?(:last)
70
70
  query_params["before"] = params[:before] if params.key?(:before)
71
+ query_params["include_total_count"] = params[:include_total_count] if params.key?(:include_total_count)
71
72
 
72
73
  Whop_sdk::Internal::CursorItemIterator.new(
73
74
  cursor_field: :end_cursor,
@@ -37,6 +37,8 @@ module Whop_sdk
37
37
  field :last, -> { Integer }, optional: true, nullable: false
38
38
 
39
39
  field :before, -> { String }, optional: true, nullable: false
40
+
41
+ field :include_total_count, -> { Internal::Types::Boolean }, optional: true, nullable: false
40
42
  end
41
43
  end
42
44
  end
@@ -11,6 +11,10 @@ module Whop_sdk
11
11
  field :has_previous_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
12
 
13
13
  field :start_cursor, -> { String }, optional: false, nullable: true
14
+
15
+ field :total_count, -> { Integer }, optional: false, nullable: true
16
+
17
+ field :total_count_capped, -> { Internal::Types::Boolean }, optional: false, nullable: false
14
18
  end
15
19
  end
16
20
  end
@@ -236,11 +236,11 @@ module Whop_sdk
236
236
  end
237
237
 
238
238
  # Publishes the draft version: new members start on it, and the automation becomes `active`. Members already in
239
- # the automation move onto it: onto the same step when it's still there, or, when the draft removed it, onto the
240
- # step that now follows the nearest earlier step the draft kept. The draft is then copied into the next draft
241
- # version, whose steps get new IDs and keep their `key`. Every draft step's `issues` must be empty. When the draft
242
- # has no edits since the last publish, no new version is made, and this only makes a `closed` or `stopped`
243
- # automation `active` again.
239
+ # the automation move onto it. A member stays on the same step when it's still there. When the draft removed that
240
+ # step, the member moves to the step that now follows the nearest earlier step the draft kept. The draft is then
241
+ # copied into the next draft version, whose steps get new IDs and keep their `key`. Every draft step's `issues`
242
+ # must be empty. When the draft has no edits since the last publish, no new version is made. Publishing then only
243
+ # makes a `closed` or `stopped` automation `active` again. The account must have Economic Intelligence turned on.
244
244
  #
245
245
  # @param request_options [Hash]
246
246
  # @param params [Hash]
@@ -10,7 +10,7 @@ module Whop_sdk
10
10
  # @param max_retries [Integer]
11
11
  #
12
12
  # @return [void]
13
- def initialize(token:, base_url: nil, environment: Whop_sdk::Environment::PRODUCTION, api_version_date: "2026-11-10-1", idempotency_key: nil, max_retries: 2)
13
+ def initialize(token:, base_url: nil, environment: Whop_sdk::Environment::PRODUCTION, api_version_date: "2026-11-13-1", idempotency_key: nil, max_retries: 2)
14
14
  @base_url = base_url
15
15
  @environment = environment
16
16
 
@@ -323,11 +323,6 @@ module Whop_sdk
323
323
  @invoices ||= Whop_sdk::Invoices::Client.new(client: @raw_client, base_url: @base_url, environment: @environment)
324
324
  end
325
325
 
326
- # @return [Whop_sdk::Leads::Client]
327
- def leads
328
- @leads ||= Whop_sdk::Leads::Client.new(client: @raw_client, base_url: @base_url, environment: @environment)
329
- end
330
-
331
326
  # @return [Whop_sdk::LedgerAccounts::Client]
332
327
  def ledger_accounts
333
328
  @ledger_accounts ||= Whop_sdk::LedgerAccounts::Client.new(client: @raw_client, base_url: @base_url, environment: @environment)
@@ -14,12 +14,11 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists an account's recommendations and generation requests, newest first by default. When no recommendations are
18
- # ready or in progress and you have `company:update` permission, listing queues generation, with a ten-minute
19
- # cooldown after an unsuccessful request; unsuccessful requests are not listed. An account's executed
20
- # recommendations and runs stay listed after Economic Intelligence turns off, but new recommendations are offered
21
- # only while it is on. For visitor countries, page views, ad impressions and clicks, or payment volume over a time
22
- # range, use `GET /stats/time_series/:metric`.
17
+ # Lists an account's recommendations, newest first by default. `status: ready` is what the account can act on now.
18
+ # Any other listing is its history of runs. Executed recommendations and runs stay listed after Economic
19
+ # Intelligence turns off, but new recommendations are offered only to businesses it is written for. For visitor
20
+ # countries, page views, ad impressions and clicks, or payment volume over a time range, use `GET
21
+ # /stats/time_series/:metric`.
23
22
  #
24
23
  # @param request_options [Hash]
25
24
  # @param params [Hash]
@@ -87,11 +86,11 @@ module Whop_sdk
87
86
  end
88
87
 
89
88
  # Updates a recommendation status, records feedback, or both. Send `sentiment` to rate it. Include `status:
90
- # superseded` to retire a ready recommendation and request replacements; a rating alone leaves its status
91
- # unchanged. To run a recommendation yourself, send `status: running` to start, then `status: executed` when it is
92
- # carried out (with `result_id` naming what it changed, or `result_page` naming where it worked, so the result
93
- # links there) or `status: incomplete` if the run ended without carrying it out. Whop AI reports its own runs the
94
- # same way. Send `status: acknowledged` once an executed run's result has been seen.
89
+ # superseded` to retire a ready recommendation. A rating alone leaves its status unchanged. To run a
90
+ # recommendation yourself, send `status: running` to start. Send `status: executed` when it is carried out, or
91
+ # `status: incomplete` if the run ended without carrying it out. With `executed`, name what changed in `result_id`
92
+ # or where the run worked in `result_page`, and the result links there. Whop AI reports its own runs the same way.
93
+ # Send `status: acknowledged` once an executed run's result has been seen.
95
94
  #
96
95
  # @param request_options [Hash]
97
96
  # @param params [Whop_sdk::EconomicIntelligence::Types::UpdateEconomicIntelligenceRequest]
@@ -188,6 +188,18 @@ module Whop_sdk
188
188
  PAYOUT_SUBSIDY = "payout_subsidy"
189
189
  PAYOUT_UNRECONCILED_CLEARING = "payout_unreconciled_clearing"
190
190
  PENDING = "pending"
191
+ PERPS_BRIDGE_FEE = "perps_bridge_fee"
192
+ PERPS_BRIDGE_FEE_OFFSET = "perps_bridge_fee_offset"
193
+ PERPS_FEE = "perps_fee"
194
+ PERPS_FEE_OFFSET = "perps_fee_offset"
195
+ PERPS_LOAD_DEPOSIT = "perps_load_deposit"
196
+ PERPS_LOAD_TRANSFER = "perps_load_transfer"
197
+ PERPS_REALIZED_PNL = "perps_realized_pnl"
198
+ PERPS_REALIZED_PNL_OFFSET = "perps_realized_pnl_offset"
199
+ PERPS_UNLOAD_DEPOSIT = "perps_unload_deposit"
200
+ PERPS_UNLOAD_TRANSFER = "perps_unload_transfer"
201
+ PERPS_VOLUME = "perps_volume"
202
+ PERPS_VOLUME_OFFSET = "perps_volume_offset"
191
203
  PLATFORM_AFFILIATE_PAYMENT = "platform_affiliate_payment"
192
204
  PLATFORM_AFFILIATE_PAYMENT_REVERSAL = "platform_affiliate_payment_reversal"
193
205
  PLATFORM_BALANCE_PAYMENT = "platform_balance_payment"
@@ -204,6 +216,7 @@ module Whop_sdk
204
216
  PLATFORM_EARNING_UNRECONCILED_CLEARING = "platform_earning_unreconciled_clearing"
205
217
  PLATFORM_MARKUP_FEE = "platform_markup_fee"
206
218
  PLATFORM_MARKUP_FEE_PAYOUT = "platform_markup_fee_payout"
219
+ PLATFORM_TRADING_COMMISSION = "platform_trading_commission"
207
220
  PROMO_REVERSAL = "promo_reversal"
208
221
  PSP_ACCELERATED_SETTLEMENT_FEE = "psp_accelerated_settlement_fee"
209
222
  PSP_ACCOUNT_DEBIT = "psp_account_debit"
@@ -306,6 +319,7 @@ module Whop_sdk
306
319
  TRADING_ACCOUNT_DEPOSIT_OFFSET = "trading_account_deposit_offset"
307
320
  TRADING_ACCOUNT_WITHDRAWAL = "trading_account_withdrawal"
308
321
  TRADING_ACCOUNT_WITHDRAWAL_OFFSET = "trading_account_withdrawal_offset"
322
+ TRADING_FEE = "trading_fee"
309
323
  TREASURY_FEE = "treasury_fee"
310
324
  TREASURY_PAYIN = "treasury_payin"
311
325
  TREASURY_PAYIN_RECEIVABLE = "treasury_payin_receivable"