whop_sdk 1.1.0 → 1.1.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 (86) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -3
  3. data/.fern/replay.lock +7 -1
  4. data/lib/whop_sdk/access_tokens/types/create_access_tokens_request.rb +1 -1
  5. data/lib/whop_sdk/account_links/client.rb +1 -1
  6. data/lib/whop_sdk/account_links/types/create_account_links_request.rb +1 -1
  7. data/lib/whop_sdk/affiliates/client.rb +4 -4
  8. data/lib/whop_sdk/affiliates/types/create_affiliates_request.rb +1 -1
  9. data/lib/whop_sdk/affiliates/types/list_affiliates_request.rb +2 -2
  10. data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +1 -0
  11. data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +1 -0
  12. data/lib/whop_sdk/authorized_users/client.rb +8 -8
  13. data/lib/whop_sdk/authorized_users/types/create_authorized_users_request.rb +1 -1
  14. data/lib/whop_sdk/authorized_users/types/delete_authorized_users_request.rb +1 -1
  15. data/lib/whop_sdk/authorized_users/types/list_authorized_users_request.rb +2 -2
  16. data/lib/whop_sdk/chat_channels/client.rb +4 -4
  17. data/lib/whop_sdk/chat_channels/types/list_chat_channels_request.rb +2 -2
  18. data/lib/whop_sdk/client.rb +1 -1
  19. data/lib/whop_sdk/company_token_transactions/client.rb +4 -4
  20. data/lib/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_add.rb +2 -2
  21. data/lib/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_subtract.rb +2 -2
  22. data/lib/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_transfer.rb +2 -2
  23. data/lib/whop_sdk/company_token_transactions/types/list_company_token_transactions_request.rb +2 -2
  24. data/lib/whop_sdk/courses/client.rb +3 -3
  25. data/lib/whop_sdk/courses/types/list_courses_request.rb +1 -1
  26. data/lib/whop_sdk/deposits/client.rb +1 -1
  27. data/lib/whop_sdk/deposits/types/create_deposits_request.rb +1 -5
  28. data/lib/whop_sdk/deposits/types/create_deposits_response.rb +0 -2
  29. data/lib/whop_sdk/dm_channels/client.rb +3 -3
  30. data/lib/whop_sdk/dm_channels/types/create_dm_channels_request.rb +1 -1
  31. data/lib/whop_sdk/dm_channels/types/list_dm_channels_request.rb +1 -1
  32. data/lib/whop_sdk/entries/client.rb +4 -4
  33. data/lib/whop_sdk/entries/types/list_entries_request.rb +2 -2
  34. data/lib/whop_sdk/experiences/client.rb +6 -6
  35. data/lib/whop_sdk/experiences/types/create_experiences_request.rb +2 -2
  36. data/lib/whop_sdk/experiences/types/list_experiences_request.rb +2 -2
  37. data/lib/whop_sdk/fee_markups/client.rb +4 -4
  38. data/lib/whop_sdk/fee_markups/types/create_fee_markups_request.rb +1 -1
  39. data/lib/whop_sdk/fee_markups/types/list_fee_markups_request.rb +1 -1
  40. data/lib/whop_sdk/financial_activity/client.rb +2 -0
  41. data/lib/whop_sdk/financial_activity/types/list_financial_activity_request.rb +2 -0
  42. data/lib/whop_sdk/financial_reports/breakdown/types/retrieve_breakdown_request_bucket.rb +1 -0
  43. data/lib/whop_sdk/financial_reports/breakdown/types/retrieve_breakdown_response_bucket.rb +1 -0
  44. data/lib/whop_sdk/forum_posts/types/create_forum_posts_request.rb +2 -2
  45. data/lib/whop_sdk/forums/client.rb +4 -4
  46. data/lib/whop_sdk/forums/types/list_forums_request.rb +2 -2
  47. data/lib/whop_sdk/identity_profiles/client.rb +3 -3
  48. data/lib/whop_sdk/identity_profiles/types/list_identity_profile_request.rb +2 -2
  49. data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
  50. data/lib/whop_sdk/invoices/client.rb +5 -5
  51. data/lib/whop_sdk/invoices/types/create_invoices_request_product.rb +2 -2
  52. data/lib/whop_sdk/invoices/types/create_invoices_request_product_id.rb +2 -2
  53. data/lib/whop_sdk/invoices/types/list_invoices_request.rb +2 -2
  54. data/lib/whop_sdk/leads/client.rb +5 -5
  55. data/lib/whop_sdk/leads/types/create_leads_request.rb +1 -1
  56. data/lib/whop_sdk/leads/types/list_leads_request.rb +2 -2
  57. data/lib/whop_sdk/payment_methods/client.rb +12 -12
  58. data/lib/whop_sdk/payment_methods/types/delete_payment_method_request.rb +2 -2
  59. data/lib/whop_sdk/payment_methods/types/list_payment_methods_request.rb +2 -2
  60. data/lib/whop_sdk/payment_methods/types/retrieve_payment_methods_request.rb +2 -2
  61. data/lib/whop_sdk/payout_methods/client.rb +3 -3
  62. data/lib/whop_sdk/payout_methods/types/list_payout_method_request.rb +1 -1
  63. data/lib/whop_sdk/setup_intents/client.rb +5 -5
  64. data/lib/whop_sdk/setup_intents/types/create_setup_intents_request_confirmation_token.rb +1 -1
  65. data/lib/whop_sdk/setup_intents/types/create_setup_intents_request_payment_method_id.rb +1 -1
  66. data/lib/whop_sdk/setup_intents/types/list_setup_intents_request.rb +2 -2
  67. data/lib/whop_sdk/stats/client.rb +12 -12
  68. data/lib/whop_sdk/stats/types/describe_stats_request.rb +2 -2
  69. data/lib/whop_sdk/stats/types/metric_stats_request.rb +2 -2
  70. data/lib/whop_sdk/stats/types/raw_stats_request.rb +2 -2
  71. data/lib/whop_sdk/support_channels/client.rb +4 -4
  72. data/lib/whop_sdk/support_channels/types/create_support_channels_request.rb +1 -1
  73. data/lib/whop_sdk/support_channels/types/list_support_channels_request.rb +2 -2
  74. data/lib/whop_sdk/topups/client.rb +1 -1
  75. data/lib/whop_sdk/topups/types/create_topups_request.rb +2 -2
  76. data/lib/whop_sdk/types/account_recommended_action_chain_step_execution_type.rb +1 -0
  77. data/lib/whop_sdk/types/api_key_api_version_date.rb +1 -0
  78. data/lib/whop_sdk/types/ledger_activity_source.rb +2 -0
  79. data/lib/whop_sdk/version.rb +1 -1
  80. data/lib/whop_sdk.rb +0 -4
  81. data/reference.md +150 -158
  82. metadata +1 -5
  83. data/lib/whop_sdk/deposits/types/create_deposits_request_destination.rb +0 -17
  84. data/lib/whop_sdk/deposits/types/create_deposits_request_destination_account_id.rb +0 -15
  85. data/lib/whop_sdk/deposits/types/create_deposits_request_destination_account_id_network.rb +0 -16
  86. data/lib/whop_sdk/deposits/types/create_deposits_request_network.rb +0 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83b2e154d12d0695bd1dc1768143e541684f87dfbbe1a66f72ee15ec397de0a5
4
- data.tar.gz: 3474b111c945ca00897bccb6e46db4e79f51766b209fa16eece6df2073a5eb34
3
+ metadata.gz: e43fa984ef6262b03633c442d53342bf082c6720e2baa4122a08033218567d55
4
+ data.tar.gz: 6fbdb2b5530c045ba307713460bf8ff9874372311ec84dd64f513ad8d90fb02e
5
5
  SHA512:
6
- metadata.gz: 6bbaefb65ce64b72ad92159636bbdac535a3f6179e80d11bab966e34e2889a3ccdbd4f3f7ee4556ada651d15fd5be85be805b751af44bb832da189ad449a8566
7
- data.tar.gz: 3bc52333c11f42d5bca94623ffe9e57a1c295c5269a0790ed089aa0d8f9aebc7a70f384cbe889f81e52c80e375b1e74d3f9fd4233b14f8816feeb05d09974102
6
+ metadata.gz: 69687417e53f2d33291757f5911150ce7403fa9d4052fd6ca59202fa73d15bf0c7d9e3e7affa65d4f4395d2d4b8781e8aaf78c6e0157ddf508f8e111676af5ea
7
+ data.tar.gz: b9fcdf37c0e6947850856b646adb3674af9b753f9e64efbce2c7c9c893099c988c227d33fc7074950647fb78aa0db244f8b668b34ce2729904a53bf45eae5fba
data/.fern/metadata.json CHANGED
@@ -13,10 +13,10 @@
13
13
  "standardwebhooks": ">= 1.0"
14
14
  }
15
15
  },
16
- "originGitCommit": "629d32f2df15125de78454fd62e87e8b67ab5d3a",
16
+ "originGitCommit": "f67e889b0539d8ba4d02f3a80f8c33b5cb41e378",
17
17
  "originGitCommitIsDirty": false,
18
18
  "invokedBy": "ci",
19
- "requestedVersion": "1.1.0",
19
+ "requestedVersion": "1.1.1",
20
20
  "ciProvider": "unknown",
21
- "sdkVersion": "1.1.0"
21
+ "sdkVersion": "1.1.1"
22
22
  }
data/.fern/replay.lock CHANGED
@@ -72,5 +72,11 @@ generations:
72
72
  cli_version: unknown
73
73
  generator_versions:
74
74
  fernapi/fern-ruby-sdk: 1.23.2
75
- current_generation: 9b69797d8954c349cfd0819bd7a01db57a0f35c6
75
+ - commit_sha: 54f9c64a907607921fb065e559011e03bcc63888
76
+ tree_hash: eaf2e329e279b32243e37654c2d9529075a79908
77
+ timestamp: 2026-09-03T03:49:16.300Z
78
+ cli_version: unknown
79
+ generator_versions:
80
+ fernapi/fern-ruby-sdk: 1.23.2
81
+ current_generation: 54f9c64a907607921fb065e559011e03bcc63888
76
82
  patches: []
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module AccessTokens
5
5
  module Types
6
6
  class CreateAccessTokensRequest < Internal::Types::Model
7
- field :company_id, -> { String }, optional: true, nullable: false
7
+ field :account_id, -> { String }, optional: true, nullable: false
8
8
 
9
9
  field :expires_at, -> { String }, optional: true, nullable: false
10
10
 
@@ -23,7 +23,7 @@ module Whop_sdk
23
23
  #
24
24
  # @example
25
25
  # client.account_links.create(
26
- # company_id: "biz_xxxxxxxxxxxxxx",
26
+ # account_id: "biz_xxxxxxxxxxxxxx",
27
27
  # refresh_url: "refresh_url",
28
28
  # return_url: "return_url",
29
29
  # use_case: "account_onboarding"
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module AccountLinks
5
5
  module Types
6
6
  class CreateAccountLinksRequest < Internal::Types::Model
7
- field :company_id, -> { String }, optional: false, nullable: false
7
+ field :account_id, -> { String }, optional: false, nullable: false
8
8
 
9
9
  field :refresh_url, -> { String }, optional: false, nullable: false
10
10
 
@@ -27,17 +27,17 @@ module Whop_sdk
27
27
  # @option params [String, nil] :before
28
28
  # @option params [Integer, nil] :first
29
29
  # @option params [Integer, nil] :last
30
- # @option params [String] :company_id
31
30
  # @option params [Whop_sdk::Types::Direction, nil] :direction
32
31
  # @option params [Whop_sdk::Types::AffiliatesSortableColumns, nil] :order
33
32
  # @option params [String, nil] :query
34
33
  # @option params [Whop_sdk::Types::Status, nil] :status
34
+ # @option params [String] :account_id
35
35
  #
36
36
  # @example
37
37
  # client.affiliates.list(
38
38
  # first: 42,
39
39
  # last: 42,
40
- # company_id: "biz_xxxxxxxxxxxxxx"
40
+ # account_id: "biz_xxxxxxxxxxxxxx"
41
41
  # )
42
42
  #
43
43
  # @return [Whop_sdk::Affiliates::Types::ListAffiliatesResponse]
@@ -48,11 +48,11 @@ module Whop_sdk
48
48
  query_params["before"] = params[:before] if params.key?(:before)
49
49
  query_params["first"] = params[:first] if params.key?(:first)
50
50
  query_params["last"] = params[:last] if params.key?(:last)
51
- query_params["company_id"] = params[:company_id] if params.key?(:company_id)
52
51
  query_params["direction"] = params[:direction] if params.key?(:direction)
53
52
  query_params["order"] = params[:order] if params.key?(:order)
54
53
  query_params["query"] = params[:query] if params.key?(:query)
55
54
  query_params["status"] = params[:status] if params.key?(:status)
55
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
56
56
 
57
57
  Whop_sdk::Internal::CursorItemIterator.new(
58
58
  cursor_field: :end_cursor,
@@ -98,7 +98,7 @@ module Whop_sdk
98
98
  #
99
99
  # @example
100
100
  # client.affiliates.create(
101
- # company_id: "biz_xxxxxxxxxxxxxx",
101
+ # account_id: "biz_xxxxxxxxxxxxxx",
102
102
  # user_identifier: "user_identifier"
103
103
  # )
104
104
  #
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module Affiliates
5
5
  module Types
6
6
  class CreateAffiliatesRequest < Internal::Types::Model
7
- field :company_id, -> { String }, optional: false, nullable: false
7
+ field :account_id, -> { String }, optional: false, nullable: false
8
8
 
9
9
  field :user_identifier, -> { String }, optional: false, nullable: false
10
10
  end
@@ -12,8 +12,6 @@ module Whop_sdk
12
12
 
13
13
  field :last, -> { Integer }, optional: true, nullable: false
14
14
 
15
- field :company_id, -> { String }, optional: false, nullable: false
16
-
17
15
  field :direction, -> { Whop_sdk::Types::Direction }, optional: true, nullable: false
18
16
 
19
17
  field :order, -> { Whop_sdk::Types::AffiliatesSortableColumns }, optional: true, nullable: false
@@ -21,6 +19,8 @@ module Whop_sdk
21
19
  field :query, -> { String }, optional: true, nullable: false
22
20
 
23
21
  field :status, -> { Whop_sdk::Types::Status }, optional: true, nullable: false
22
+
23
+ field :account_id, -> { String }, optional: false, nullable: false
24
24
  end
25
25
  end
26
26
  end
@@ -38,6 +38,7 @@ module Whop_sdk
38
38
  TWO_THOUSAND_TWENTY_SIX0831 = "2026-08-31"
39
39
  TWO_THOUSAND_TWENTY_SIX0902 = "2026-09-02"
40
40
  TWO_THOUSAND_TWENTY_SIX09021 = "2026-09-02-1"
41
+ TWO_THOUSAND_TWENTY_SIX09022 = "2026-09-02-2"
41
42
  end
42
43
  end
43
44
  end
@@ -38,6 +38,7 @@ module Whop_sdk
38
38
  TWO_THOUSAND_TWENTY_SIX0831 = "2026-08-31"
39
39
  TWO_THOUSAND_TWENTY_SIX0902 = "2026-09-02"
40
40
  TWO_THOUSAND_TWENTY_SIX09021 = "2026-09-02-1"
41
+ TWO_THOUSAND_TWENTY_SIX09022 = "2026-09-02-2"
41
42
  end
42
43
  end
43
44
  end
@@ -28,20 +28,20 @@ module Whop_sdk
28
28
  # @option params [String, nil] :before
29
29
  # @option params [Integer, nil] :first
30
30
  # @option params [Integer, nil] :last
31
- # @option params [String, nil] :company_id
32
31
  # @option params [String, nil] :user_id
33
32
  # @option params [Whop_sdk::Types::AuthorizedUserRoles, nil] :role
34
33
  # @option params [String, nil] :created_before
35
34
  # @option params [String, nil] :created_after
35
+ # @option params [String, nil] :account_id
36
36
  #
37
37
  # @example
38
38
  # client.authorized_users.list(
39
39
  # first: 42,
40
40
  # last: 42,
41
- # company_id: "biz_xxxxxxxxxxxxxx",
42
41
  # user_id: "user_xxxxxxxxxxxxx",
43
42
  # created_before: "2023-12-01T05:00:00Z",
44
- # created_after: "2023-12-01T05:00:00Z"
43
+ # created_after: "2023-12-01T05:00:00Z",
44
+ # account_id: "biz_xxxxxxxxxxxxxx"
45
45
  # )
46
46
  #
47
47
  # @return [Whop_sdk::AuthorizedUsers::Types::ListAuthorizedUsersResponse]
@@ -52,11 +52,11 @@ module Whop_sdk
52
52
  query_params["before"] = params[:before] if params.key?(:before)
53
53
  query_params["first"] = params[:first] if params.key?(:first)
54
54
  query_params["last"] = params[:last] if params.key?(:last)
55
- query_params["company_id"] = params[:company_id] if params.key?(:company_id)
56
55
  query_params["user_id"] = params[:user_id] if params.key?(:user_id)
57
56
  query_params["role"] = params[:role] if params.key?(:role)
58
57
  query_params["created_before"] = params[:created_before] if params.key?(:created_before)
59
58
  query_params["created_after"] = params[:created_after] if params.key?(:created_after)
59
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
60
60
 
61
61
  Whop_sdk::Internal::CursorItemIterator.new(
62
62
  cursor_field: :end_cursor,
@@ -103,7 +103,7 @@ module Whop_sdk
103
103
  #
104
104
  # @example
105
105
  # client.authorized_users.create(
106
- # company_id: "biz_xxxxxxxxxxxxxx",
106
+ # account_id: "biz_xxxxxxxxxxxxxx",
107
107
  # role: "owner",
108
108
  # user_id: "user_xxxxxxxxxxxxx"
109
109
  # )
@@ -186,19 +186,19 @@ module Whop_sdk
186
186
  # @option request_options [Hash{String => Object}] :additional_body_parameters
187
187
  # @option request_options [Integer] :timeout_in_seconds
188
188
  # @option params [String] :id
189
- # @option params [String, nil] :company_id
189
+ # @option params [String, nil] :account_id
190
190
  #
191
191
  # @example
192
192
  # client.authorized_users.delete(
193
193
  # id: "ausr_xxxxxxxxxxxxx",
194
- # company_id: "biz_xxxxxxxxxxxxxx"
194
+ # account_id: "biz_xxxxxxxxxxxxxx"
195
195
  # )
196
196
  #
197
197
  # @return [Boolean]
198
198
  def delete(request_options: {}, **params)
199
199
  params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
200
200
  query_params = {}
201
- query_params["company_id"] = params[:company_id] if params.key?(:company_id)
201
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
202
202
 
203
203
  request = Whop_sdk::Internal::JSON::Request.new(
204
204
  base_url: request_options[:base_url],
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module AuthorizedUsers
5
5
  module Types
6
6
  class CreateAuthorizedUsersRequest < Internal::Types::Model
7
- field :company_id, -> { String }, optional: false, nullable: false
7
+ field :account_id, -> { String }, optional: false, nullable: false
8
8
 
9
9
  field :elevation, -> { Whop_sdk::AuthorizedUsers::Types::CreateAuthorizedUsersRequestElevation }, optional: true, nullable: false
10
10
 
@@ -6,7 +6,7 @@ module Whop_sdk
6
6
  class DeleteAuthorizedUsersRequest < Internal::Types::Model
7
7
  field :id, -> { String }, optional: false, nullable: false
8
8
 
9
- field :company_id, -> { String }, optional: true, nullable: false
9
+ field :account_id, -> { String }, optional: true, nullable: false
10
10
  end
11
11
  end
12
12
  end
@@ -12,8 +12,6 @@ module Whop_sdk
12
12
 
13
13
  field :last, -> { Integer }, optional: true, nullable: false
14
14
 
15
- field :company_id, -> { String }, optional: true, nullable: false
16
-
17
15
  field :user_id, -> { String }, optional: true, nullable: false
18
16
 
19
17
  field :role, -> { Whop_sdk::Types::AuthorizedUserRoles }, optional: true, nullable: false
@@ -21,6 +19,8 @@ module Whop_sdk
21
19
  field :created_before, -> { String }, optional: true, nullable: false
22
20
 
23
21
  field :created_after, -> { String }, optional: true, nullable: false
22
+
23
+ field :account_id, -> { String }, optional: true, nullable: false
24
24
  end
25
25
  end
26
26
  end
@@ -26,15 +26,15 @@ module Whop_sdk
26
26
  # @option params [String, nil] :before
27
27
  # @option params [Integer, nil] :first
28
28
  # @option params [Integer, nil] :last
29
- # @option params [String] :company_id
30
29
  # @option params [String, nil] :product_id
30
+ # @option params [String] :account_id
31
31
  #
32
32
  # @example
33
33
  # client.chat_channels.list(
34
34
  # first: 42,
35
35
  # last: 42,
36
- # company_id: "biz_xxxxxxxxxxxxxx",
37
- # product_id: "prod_xxxxxxxxxxxxx"
36
+ # product_id: "prod_xxxxxxxxxxxxx",
37
+ # account_id: "biz_xxxxxxxxxxxxxx"
38
38
  # )
39
39
  #
40
40
  # @return [Whop_sdk::ChatChannels::Types::ListChatChannelsResponse]
@@ -45,8 +45,8 @@ module Whop_sdk
45
45
  query_params["before"] = params[:before] if params.key?(:before)
46
46
  query_params["first"] = params[:first] if params.key?(:first)
47
47
  query_params["last"] = params[:last] if params.key?(:last)
48
- query_params["company_id"] = params[:company_id] if params.key?(:company_id)
49
48
  query_params["product_id"] = params[:product_id] if params.key?(:product_id)
49
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
50
50
 
51
51
  Whop_sdk::Internal::CursorItemIterator.new(
52
52
  cursor_field: :end_cursor,
@@ -12,9 +12,9 @@ module Whop_sdk
12
12
 
13
13
  field :last, -> { Integer }, optional: true, nullable: false
14
14
 
15
- field :company_id, -> { String }, optional: false, nullable: false
16
-
17
15
  field :product_id, -> { String }, optional: true, nullable: false
16
+
17
+ field :account_id, -> { String }, optional: false, nullable: false
18
18
  end
19
19
  end
20
20
  end
@@ -9,7 +9,7 @@ module Whop_sdk
9
9
  # @param max_retries [Integer]
10
10
  #
11
11
  # @return [void]
12
- def initialize(token:, base_url: nil, api_version_date: "2026-09-02-1", idempotency_key: nil, max_retries: 2)
12
+ def initialize(token:, base_url: nil, api_version_date: "2026-09-02-2", idempotency_key: nil, max_retries: 2)
13
13
  headers = {
14
14
  "X-Fern-Language" => "Ruby",
15
15
  Authorization: "Bearer #{token}",
@@ -29,16 +29,16 @@ module Whop_sdk
29
29
  # @option params [String, nil] :before
30
30
  # @option params [Integer, nil] :first
31
31
  # @option params [Integer, nil] :last
32
- # @option params [String] :company_id
33
32
  # @option params [String, nil] :user_id
34
33
  # @option params [Whop_sdk::Types::CompanyTokenTransactionTypes, nil] :transaction_type
34
+ # @option params [String] :account_id
35
35
  #
36
36
  # @example
37
37
  # client.company_token_transactions.list(
38
38
  # first: 42,
39
39
  # last: 42,
40
- # company_id: "biz_xxxxxxxxxxxxxx",
41
- # user_id: "user_xxxxxxxxxxxxx"
40
+ # user_id: "user_xxxxxxxxxxxxx",
41
+ # account_id: "biz_xxxxxxxxxxxxxx"
42
42
  # )
43
43
  #
44
44
  # @return [Whop_sdk::CompanyTokenTransactions::Types::ListCompanyTokenTransactionsResponse]
@@ -49,9 +49,9 @@ module Whop_sdk
49
49
  query_params["before"] = params[:before] if params.key?(:before)
50
50
  query_params["first"] = params[:first] if params.key?(:first)
51
51
  query_params["last"] = params[:last] if params.key?(:last)
52
- query_params["company_id"] = params[:company_id] if params.key?(:company_id)
53
52
  query_params["user_id"] = params[:user_id] if params.key?(:user_id)
54
53
  query_params["transaction_type"] = params[:transaction_type] if params.key?(:transaction_type)
54
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
55
55
 
56
56
  Whop_sdk::Internal::CursorItemIterator.new(
57
57
  cursor_field: :end_cursor,
@@ -5,9 +5,9 @@ module Whop_sdk
5
5
  module Types
6
6
  # Autogenerated input type of CreateCompanyTokenTransaction
7
7
  class CreateCompanyTokenTransactionsRequestAdd < Internal::Types::Model
8
- field :amount, -> { Integer }, optional: false, nullable: false
8
+ field :account_id, -> { String }, optional: false, nullable: false
9
9
 
10
- field :company_id, -> { String }, optional: false, nullable: false
10
+ field :amount, -> { Integer }, optional: false, nullable: false
11
11
 
12
12
  field :description, -> { String }, optional: true, nullable: false
13
13
 
@@ -5,9 +5,9 @@ module Whop_sdk
5
5
  module Types
6
6
  # Autogenerated input type of CreateCompanyTokenTransaction
7
7
  class CreateCompanyTokenTransactionsRequestSubtract < Internal::Types::Model
8
- field :amount, -> { Integer }, optional: false, nullable: false
8
+ field :account_id, -> { String }, optional: false, nullable: false
9
9
 
10
- field :company_id, -> { String }, optional: false, nullable: false
10
+ field :amount, -> { Integer }, optional: false, nullable: false
11
11
 
12
12
  field :description, -> { String }, optional: true, nullable: false
13
13
 
@@ -5,9 +5,9 @@ module Whop_sdk
5
5
  module Types
6
6
  # Autogenerated input type of CreateCompanyTokenTransaction
7
7
  class CreateCompanyTokenTransactionsRequestTransfer < Internal::Types::Model
8
- field :amount, -> { Integer }, optional: false, nullable: false
8
+ field :account_id, -> { String }, optional: false, nullable: false
9
9
 
10
- field :company_id, -> { String }, optional: false, nullable: false
10
+ field :amount, -> { Integer }, optional: false, nullable: false
11
11
 
12
12
  field :description, -> { String }, optional: true, nullable: false
13
13
 
@@ -12,11 +12,11 @@ module Whop_sdk
12
12
 
13
13
  field :last, -> { Integer }, optional: true, nullable: false
14
14
 
15
- field :company_id, -> { String }, optional: false, nullable: false
16
-
17
15
  field :user_id, -> { String }, optional: true, nullable: false
18
16
 
19
17
  field :transaction_type, -> { Whop_sdk::Types::CompanyTokenTransactionTypes }, optional: true, nullable: false
18
+
19
+ field :account_id, -> { String }, optional: false, nullable: false
20
20
  end
21
21
  end
22
22
  end
@@ -27,14 +27,14 @@ module Whop_sdk
27
27
  # @option params [Integer, nil] :first
28
28
  # @option params [Integer, nil] :last
29
29
  # @option params [String, nil] :experience_id
30
- # @option params [String, nil] :company_id
30
+ # @option params [String, nil] :account_id
31
31
  #
32
32
  # @example
33
33
  # client.courses.list(
34
34
  # first: 42,
35
35
  # last: 42,
36
36
  # experience_id: "exp_xxxxxxxxxxxxxx",
37
- # company_id: "biz_xxxxxxxxxxxxxx"
37
+ # account_id: "biz_xxxxxxxxxxxxxx"
38
38
  # )
39
39
  #
40
40
  # @return [Whop_sdk::Courses::Types::ListCoursesResponse]
@@ -46,7 +46,7 @@ module Whop_sdk
46
46
  query_params["first"] = params[:first] if params.key?(:first)
47
47
  query_params["last"] = params[:last] if params.key?(:last)
48
48
  query_params["experience_id"] = params[:experience_id] if params.key?(:experience_id)
49
- query_params["company_id"] = params[:company_id] if params.key?(:company_id)
49
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
50
50
 
51
51
  Whop_sdk::Internal::CursorItemIterator.new(
52
52
  cursor_field: :end_cursor,
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
 
15
15
  field :experience_id, -> { String }, optional: true, nullable: false
16
16
 
17
- field :company_id, -> { String }, optional: true, nullable: false
17
+ field :account_id, -> { String }, optional: true, nullable: false
18
18
  end
19
19
  end
20
20
  end
@@ -21,7 +21,7 @@ module Whop_sdk
21
21
  # @option request_options [Integer] :timeout_in_seconds
22
22
  #
23
23
  # @example
24
- # client.deposits.create(destination: "destination")
24
+ # client.deposits.create(destination: "biz_xxxxxxxxxxxxxx")
25
25
  #
26
26
  # @return [Whop_sdk::Deposits::Types::CreateDepositsResponse]
27
27
  def create(request_options: {}, **params)
@@ -6,11 +6,7 @@ module Whop_sdk
6
6
  class CreateDepositsRequest < Internal::Types::Model
7
7
  field :amount, -> { Integer }, optional: true, nullable: false
8
8
 
9
- field :destination, -> { Whop_sdk::Deposits::Types::CreateDepositsRequestDestination }, optional: false, nullable: false
10
-
11
- field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
12
-
13
- field :network, -> { Whop_sdk::Deposits::Types::CreateDepositsRequestNetwork }, optional: true, nullable: false
9
+ field :destination, -> { String }, optional: false, nullable: false
14
10
  end
15
11
  end
16
12
  end
@@ -10,8 +10,6 @@ module Whop_sdk
10
10
 
11
11
  field :hosted_url, -> { String }, optional: false, nullable: true
12
12
 
13
- field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
14
-
15
13
  field :methods, -> { Whop_sdk::Deposits::Types::CreateDepositsResponseMethods }, optional: false, nullable: false
16
14
 
17
15
  field :object, -> { Whop_sdk::Deposits::Types::CreateDepositsResponseObject }, optional: false, nullable: false
@@ -26,13 +26,13 @@ module Whop_sdk
26
26
  # @option params [String, nil] :before
27
27
  # @option params [Integer, nil] :first
28
28
  # @option params [Integer, nil] :last
29
- # @option params [String, nil] :company_id
29
+ # @option params [String, nil] :account_id
30
30
  #
31
31
  # @example
32
32
  # client.dm_channels.list(
33
33
  # first: 42,
34
34
  # last: 42,
35
- # company_id: "biz_xxxxxxxxxxxxxx"
35
+ # account_id: "biz_xxxxxxxxxxxxxx"
36
36
  # )
37
37
  #
38
38
  # @return [Whop_sdk::DmChannels::Types::ListDmChannelsResponse]
@@ -43,7 +43,7 @@ module Whop_sdk
43
43
  query_params["before"] = params[:before] if params.key?(:before)
44
44
  query_params["first"] = params[:first] if params.key?(:first)
45
45
  query_params["last"] = params[:last] if params.key?(:last)
46
- query_params["company_id"] = params[:company_id] if params.key?(:company_id)
46
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
47
47
 
48
48
  Whop_sdk::Internal::CursorItemIterator.new(
49
49
  cursor_field: :end_cursor,
@@ -4,7 +4,7 @@ module Whop_sdk
4
4
  module DmChannels
5
5
  module Types
6
6
  class CreateDmChannelsRequest < Internal::Types::Model
7
- field :company_id, -> { String }, optional: true, nullable: false
7
+ field :account_id, -> { String }, optional: true, nullable: false
8
8
 
9
9
  field :custom_name, -> { String }, optional: true, nullable: false
10
10
 
@@ -12,7 +12,7 @@ module Whop_sdk
12
12
 
13
13
  field :last, -> { Integer }, optional: true, nullable: false
14
14
 
15
- field :company_id, -> { String }, optional: true, nullable: false
15
+ field :account_id, -> { String }, optional: true, nullable: false
16
16
  end
17
17
  end
18
18
  end
@@ -28,7 +28,6 @@ module Whop_sdk
28
28
  # @option params [String, nil] :before
29
29
  # @option params [Integer, nil] :first
30
30
  # @option params [Integer, nil] :last
31
- # @option params [String] :company_id
32
31
  # @option params [Whop_sdk::Types::Direction, nil] :direction
33
32
  # @option params [Whop_sdk::Types::EntriesSortableColumns, nil] :order
34
33
  # @option params [String, nil] :product_ids
@@ -36,14 +35,15 @@ module Whop_sdk
36
35
  # @option params [Whop_sdk::Types::EntryStatus, nil] :statuses
37
36
  # @option params [String, nil] :created_before
38
37
  # @option params [String, nil] :created_after
38
+ # @option params [String] :account_id
39
39
  #
40
40
  # @example
41
41
  # client.entries.list(
42
42
  # first: 42,
43
43
  # last: 42,
44
- # company_id: "biz_xxxxxxxxxxxxxx",
45
44
  # created_before: "2023-12-01T05:00:00Z",
46
- # created_after: "2023-12-01T05:00:00Z"
45
+ # created_after: "2023-12-01T05:00:00Z",
46
+ # account_id: "biz_xxxxxxxxxxxxxx"
47
47
  # )
48
48
  #
49
49
  # @return [Whop_sdk::Entries::Types::ListEntriesResponse]
@@ -54,7 +54,6 @@ module Whop_sdk
54
54
  query_params["before"] = params[:before] if params.key?(:before)
55
55
  query_params["first"] = params[:first] if params.key?(:first)
56
56
  query_params["last"] = params[:last] if params.key?(:last)
57
- query_params["company_id"] = params[:company_id] if params.key?(:company_id)
58
57
  query_params["direction"] = params[:direction] if params.key?(:direction)
59
58
  query_params["order"] = params[:order] if params.key?(:order)
60
59
  query_params["product_ids"] = params[:product_ids] if params.key?(:product_ids)
@@ -62,6 +61,7 @@ module Whop_sdk
62
61
  query_params["statuses"] = params[:statuses] if params.key?(:statuses)
63
62
  query_params["created_before"] = params[:created_before] if params.key?(:created_before)
64
63
  query_params["created_after"] = params[:created_after] if params.key?(:created_after)
64
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
65
65
 
66
66
  Whop_sdk::Internal::CursorItemIterator.new(
67
67
  cursor_field: :end_cursor,
@@ -12,8 +12,6 @@ module Whop_sdk
12
12
 
13
13
  field :last, -> { Integer }, optional: true, nullable: false
14
14
 
15
- field :company_id, -> { String }, optional: false, nullable: false
16
-
17
15
  field :direction, -> { Whop_sdk::Types::Direction }, optional: true, nullable: false
18
16
 
19
17
  field :order, -> { Whop_sdk::Types::EntriesSortableColumns }, optional: true, nullable: false
@@ -27,6 +25,8 @@ module Whop_sdk
27
25
  field :created_before, -> { String }, optional: true, nullable: false
28
26
 
29
27
  field :created_after, -> { String }, optional: true, nullable: false
28
+
29
+ field :account_id, -> { String }, optional: false, nullable: false
30
30
  end
31
31
  end
32
32
  end
@@ -23,21 +23,21 @@ module Whop_sdk
23
23
  # @option params [String, nil] :before
24
24
  # @option params [Integer, nil] :first
25
25
  # @option params [Integer, nil] :last
26
- # @option params [String] :company_id
27
26
  # @option params [String, nil] :product_id
28
27
  # @option params [String, nil] :app_id
29
28
  # @option params [String, nil] :created_before
30
29
  # @option params [String, nil] :created_after
30
+ # @option params [String] :account_id
31
31
  #
32
32
  # @example
33
33
  # client.experiences.list(
34
34
  # first: 42,
35
35
  # last: 42,
36
- # company_id: "biz_xxxxxxxxxxxxxx",
37
36
  # product_id: "prod_xxxxxxxxxxxxx",
38
37
  # app_id: "app_xxxxxxxxxxxxxx",
39
38
  # created_before: "2023-12-01T05:00:00Z",
40
- # created_after: "2023-12-01T05:00:00Z"
39
+ # created_after: "2023-12-01T05:00:00Z",
40
+ # account_id: "biz_xxxxxxxxxxxxxx"
41
41
  # )
42
42
  #
43
43
  # @return [Whop_sdk::Experiences::Types::ListExperiencesResponse]
@@ -48,11 +48,11 @@ module Whop_sdk
48
48
  query_params["before"] = params[:before] if params.key?(:before)
49
49
  query_params["first"] = params[:first] if params.key?(:first)
50
50
  query_params["last"] = params[:last] if params.key?(:last)
51
- query_params["company_id"] = params[:company_id] if params.key?(:company_id)
52
51
  query_params["product_id"] = params[:product_id] if params.key?(:product_id)
53
52
  query_params["app_id"] = params[:app_id] if params.key?(:app_id)
54
53
  query_params["created_before"] = params[:created_before] if params.key?(:created_before)
55
54
  query_params["created_after"] = params[:created_after] if params.key?(:created_after)
55
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
56
56
 
57
57
  Whop_sdk::Internal::CursorItemIterator.new(
58
58
  cursor_field: :end_cursor,
@@ -96,8 +96,8 @@ module Whop_sdk
96
96
  #
97
97
  # @example
98
98
  # client.experiences.create(
99
- # app_id: "app_xxxxxxxxxxxxxx",
100
- # company_id: "biz_xxxxxxxxxxxxxx"
99
+ # account_id: "biz_xxxxxxxxxxxxxx",
100
+ # app_id: "app_xxxxxxxxxxxxxx"
101
101
  # )
102
102
  #
103
103
  # @return [Whop_sdk::Types::Experience]