whop_sdk 0.0.6 → 0.0.7

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/models/access_token_create_params.rb +26 -36
  5. data/lib/whop_sdk/models/card_brands.rb +1 -0
  6. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +9 -9
  7. data/lib/whop_sdk/models/currency.rb +1 -0
  8. data/lib/whop_sdk/models/forum_post_create_params.rb +20 -1
  9. data/lib/whop_sdk/models/forum_post_update_params.rb +20 -1
  10. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -0
  11. data/lib/whop_sdk/models/shipment.rb +3 -3
  12. data/lib/whop_sdk/models/shipment_list_response.rb +3 -3
  13. data/lib/whop_sdk/resources/access_tokens.rb +9 -7
  14. data/lib/whop_sdk/resources/forum_posts.rb +6 -2
  15. data/lib/whop_sdk/version.rb +1 -1
  16. data/rbi/whop_sdk/models/access_token_create_params.rbi +34 -77
  17. data/rbi/whop_sdk/models/card_brands.rbi +1 -0
  18. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +8 -8
  19. data/rbi/whop_sdk/models/currency.rbi +1 -0
  20. data/rbi/whop_sdk/models/forum_post_create_params.rbi +42 -0
  21. data/rbi/whop_sdk/models/forum_post_update_params.rbi +42 -0
  22. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +5 -0
  23. data/rbi/whop_sdk/models/shipment.rbi +6 -4
  24. data/rbi/whop_sdk/models/shipment_list_response.rbi +6 -4
  25. data/rbi/whop_sdk/resources/access_tokens.rbi +19 -14
  26. data/rbi/whop_sdk/resources/forum_posts.rbi +8 -0
  27. data/sig/whop_sdk/models/access_token_create_params.rbs +14 -29
  28. data/sig/whop_sdk/models/card_brands.rbs +2 -0
  29. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -5
  30. data/sig/whop_sdk/models/currency.rbs +2 -0
  31. data/sig/whop_sdk/models/forum_post_create_params.rbs +17 -1
  32. data/sig/whop_sdk/models/forum_post_update_params.rbs +17 -1
  33. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +2 -0
  34. data/sig/whop_sdk/models/shipment.rbs +4 -4
  35. data/sig/whop_sdk/models/shipment_list_response.rbs +4 -4
  36. data/sig/whop_sdk/resources/access_tokens.rbs +3 -3
  37. data/sig/whop_sdk/resources/forum_posts.rbs +2 -0
  38. metadata +2 -2
@@ -74,6 +74,12 @@ module WhopSDK
74
74
  sig { returns(T.nilable(String)) }
75
75
  attr_accessor :title
76
76
 
77
+ # The visibility types for forum posts
78
+ sig do
79
+ returns(T.nilable(WhopSDK::ForumPostCreateParams::Visibility::OrSymbol))
80
+ end
81
+ attr_accessor :visibility
82
+
77
83
  sig do
78
84
  params(
79
85
  experience_id: String,
@@ -94,6 +100,8 @@ module WhopSDK
94
100
  pinned: T.nilable(T::Boolean),
95
101
  poll: T.nilable(WhopSDK::ForumPostCreateParams::Poll::OrHash),
96
102
  title: T.nilable(String),
103
+ visibility:
104
+ T.nilable(WhopSDK::ForumPostCreateParams::Visibility::OrSymbol),
97
105
  request_options: WhopSDK::RequestOptions::OrHash
98
106
  ).returns(T.attached_class)
99
107
  end
@@ -123,6 +131,8 @@ module WhopSDK
123
131
  poll: nil,
124
132
  # The title of the post. Only visible if paywalled.
125
133
  title: nil,
134
+ # The visibility types for forum posts
135
+ visibility: nil,
126
136
  request_options: {}
127
137
  )
128
138
  end
@@ -148,6 +158,8 @@ module WhopSDK
148
158
  pinned: T.nilable(T::Boolean),
149
159
  poll: T.nilable(WhopSDK::ForumPostCreateParams::Poll),
150
160
  title: T.nilable(String),
161
+ visibility:
162
+ T.nilable(WhopSDK::ForumPostCreateParams::Visibility::OrSymbol),
151
163
  request_options: WhopSDK::RequestOptions
152
164
  }
153
165
  )
@@ -302,6 +314,36 @@ module WhopSDK
302
314
  end
303
315
  end
304
316
  end
317
+
318
+ # The visibility types for forum posts
319
+ module Visibility
320
+ extend WhopSDK::Internal::Type::Enum
321
+
322
+ TaggedSymbol =
323
+ T.type_alias do
324
+ T.all(Symbol, WhopSDK::ForumPostCreateParams::Visibility)
325
+ end
326
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
327
+
328
+ MEMBERS_ONLY =
329
+ T.let(
330
+ :members_only,
331
+ WhopSDK::ForumPostCreateParams::Visibility::TaggedSymbol
332
+ )
333
+ GLOBALLY_VISIBLE =
334
+ T.let(
335
+ :globally_visible,
336
+ WhopSDK::ForumPostCreateParams::Visibility::TaggedSymbol
337
+ )
338
+
339
+ sig do
340
+ override.returns(
341
+ T::Array[WhopSDK::ForumPostCreateParams::Visibility::TaggedSymbol]
342
+ )
343
+ end
344
+ def self.values
345
+ end
346
+ end
305
347
  end
306
348
  end
307
349
  end
@@ -39,6 +39,12 @@ module WhopSDK
39
39
  sig { returns(T.nilable(String)) }
40
40
  attr_accessor :title
41
41
 
42
+ # The visibility types for forum posts
43
+ sig do
44
+ returns(T.nilable(WhopSDK::ForumPostUpdateParams::Visibility::OrSymbol))
45
+ end
46
+ attr_accessor :visibility
47
+
42
48
  sig do
43
49
  params(
44
50
  attachments:
@@ -53,6 +59,8 @@ module WhopSDK
53
59
  content: T.nilable(String),
54
60
  is_pinned: T.nilable(T::Boolean),
55
61
  title: T.nilable(String),
62
+ visibility:
63
+ T.nilable(WhopSDK::ForumPostUpdateParams::Visibility::OrSymbol),
56
64
  request_options: WhopSDK::RequestOptions::OrHash
57
65
  ).returns(T.attached_class)
58
66
  end
@@ -66,6 +74,8 @@ module WhopSDK
66
74
  is_pinned: nil,
67
75
  # The title of the post. Only visible if paywalled.
68
76
  title: nil,
77
+ # The visibility types for forum posts
78
+ visibility: nil,
69
79
  request_options: {}
70
80
  )
71
81
  end
@@ -85,6 +95,8 @@ module WhopSDK
85
95
  content: T.nilable(String),
86
96
  is_pinned: T.nilable(T::Boolean),
87
97
  title: T.nilable(String),
98
+ visibility:
99
+ T.nilable(WhopSDK::ForumPostUpdateParams::Visibility::OrSymbol),
88
100
  request_options: WhopSDK::RequestOptions
89
101
  }
90
102
  )
@@ -172,6 +184,36 @@ module WhopSDK
172
184
  def self.variants
173
185
  end
174
186
  end
187
+
188
+ # The visibility types for forum posts
189
+ module Visibility
190
+ extend WhopSDK::Internal::Type::Enum
191
+
192
+ TaggedSymbol =
193
+ T.type_alias do
194
+ T.all(Symbol, WhopSDK::ForumPostUpdateParams::Visibility)
195
+ end
196
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
197
+
198
+ MEMBERS_ONLY =
199
+ T.let(
200
+ :members_only,
201
+ WhopSDK::ForumPostUpdateParams::Visibility::TaggedSymbol
202
+ )
203
+ GLOBALLY_VISIBLE =
204
+ T.let(
205
+ :globally_visible,
206
+ WhopSDK::ForumPostUpdateParams::Visibility::TaggedSymbol
207
+ )
208
+
209
+ sig do
210
+ override.returns(
211
+ T::Array[WhopSDK::ForumPostUpdateParams::Visibility::TaggedSymbol]
212
+ )
213
+ end
214
+ def self.values
215
+ end
216
+ end
175
217
  end
176
218
  end
177
219
  end
@@ -216,6 +216,11 @@ module WhopSDK
216
216
  :pending,
217
217
  WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
218
218
  )
219
+ PENDING_AI_REVIEW =
220
+ T.let(
221
+ :pending_ai_review,
222
+ WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
223
+ )
219
224
  APPROVED =
220
225
  T.let(
221
226
  :approved,
@@ -23,10 +23,12 @@ module WhopSDK
23
23
  attr_accessor :delivery_estimate
24
24
 
25
25
  # The payment of the shipment
26
- sig { returns(WhopSDK::Shipment::Payment) }
26
+ sig { returns(T.nilable(WhopSDK::Shipment::Payment)) }
27
27
  attr_reader :payment
28
28
 
29
- sig { params(payment: WhopSDK::Shipment::Payment::OrHash).void }
29
+ sig do
30
+ params(payment: T.nilable(WhopSDK::Shipment::Payment::OrHash)).void
31
+ end
30
32
  attr_writer :payment
31
33
 
32
34
  # The service of the shipment
@@ -56,7 +58,7 @@ module WhopSDK
56
58
  carrier: WhopSDK::ShipmentCarrier::OrSymbol,
57
59
  created_at: Time,
58
60
  delivery_estimate: T.nilable(Time),
59
- payment: WhopSDK::Shipment::Payment::OrHash,
61
+ payment: T.nilable(WhopSDK::Shipment::Payment::OrHash),
60
62
  service: T.nilable(String),
61
63
  status: WhopSDK::ShipmentStatus::OrSymbol,
62
64
  substatus: T.nilable(WhopSDK::ShipmentSubstatus::OrSymbol),
@@ -95,7 +97,7 @@ module WhopSDK
95
97
  carrier: WhopSDK::ShipmentCarrier::TaggedSymbol,
96
98
  created_at: Time,
97
99
  delivery_estimate: T.nilable(Time),
98
- payment: WhopSDK::Shipment::Payment,
100
+ payment: T.nilable(WhopSDK::Shipment::Payment),
99
101
  service: T.nilable(String),
100
102
  status: WhopSDK::ShipmentStatus::TaggedSymbol,
101
103
  substatus: T.nilable(WhopSDK::ShipmentSubstatus::TaggedSymbol),
@@ -28,12 +28,13 @@ module WhopSDK
28
28
  attr_accessor :delivery_estimate
29
29
 
30
30
  # The payment of the shipment
31
- sig { returns(WhopSDK::Models::ShipmentListResponse::Payment) }
31
+ sig { returns(T.nilable(WhopSDK::Models::ShipmentListResponse::Payment)) }
32
32
  attr_reader :payment
33
33
 
34
34
  sig do
35
35
  params(
36
- payment: WhopSDK::Models::ShipmentListResponse::Payment::OrHash
36
+ payment:
37
+ T.nilable(WhopSDK::Models::ShipmentListResponse::Payment::OrHash)
37
38
  ).void
38
39
  end
39
40
  attr_writer :payment
@@ -65,7 +66,8 @@ module WhopSDK
65
66
  carrier: WhopSDK::ShipmentCarrier::OrSymbol,
66
67
  created_at: Time,
67
68
  delivery_estimate: T.nilable(Time),
68
- payment: WhopSDK::Models::ShipmentListResponse::Payment::OrHash,
69
+ payment:
70
+ T.nilable(WhopSDK::Models::ShipmentListResponse::Payment::OrHash),
69
71
  service: T.nilable(String),
70
72
  status: WhopSDK::ShipmentStatus::OrSymbol,
71
73
  substatus: T.nilable(WhopSDK::ShipmentSubstatus::OrSymbol),
@@ -104,7 +106,7 @@ module WhopSDK
104
106
  carrier: WhopSDK::ShipmentCarrier::TaggedSymbol,
105
107
  created_at: Time,
106
108
  delivery_estimate: T.nilable(Time),
107
- payment: WhopSDK::Models::ShipmentListResponse::Payment,
109
+ payment: T.nilable(WhopSDK::Models::ShipmentListResponse::Payment),
108
110
  service: T.nilable(String),
109
111
  status: WhopSDK::ShipmentStatus::TaggedSymbol,
110
112
  substatus: T.nilable(WhopSDK::ShipmentSubstatus::TaggedSymbol),
@@ -3,31 +3,36 @@
3
3
  module WhopSDK
4
4
  module Resources
5
5
  class AccessTokens
6
- # Creates an access token for a user to access a specific resource. These access
7
- # tokens are designed to be used with Whop's embedded components.
6
+ # Create a short-lived access token to authenticate API requests on behalf of a
7
+ # Company or User. This token should be used with Whop's web and mobile embedded
8
+ # components. You must provide either a company_id or a user_id argument, but not
9
+ # both.
8
10
  sig do
9
11
  params(
10
- scoped_actions: T::Array[String],
11
- target_resource_id: String,
12
- target_resource_type:
13
- WhopSDK::AccessTokenCreateParams::TargetResourceType::OrSymbol,
12
+ company_id: String,
13
+ user_id: String,
14
14
  expires_at: T.nilable(Time),
15
+ scoped_actions: T.nilable(T::Array[String]),
15
16
  request_options: WhopSDK::RequestOptions::OrHash
16
17
  ).returns(WhopSDK::Models::AccessTokenCreateResponse)
17
18
  end
18
19
  def create(
19
- # Array of desired scoped actions for the access token. This list must be a subset
20
- # of the API keys's existing permissions. Otherwise, an error will be raised.
21
- scoped_actions:,
22
- # The ID of the target resource (Company, User, etc.) for which the access token
23
- # is being created.
24
- target_resource_id:,
25
- # The type of the target resource (company, user, product, experience, etc.).
26
- target_resource_type:,
20
+ # The ID of the Company to generate the token for. The API key must have
21
+ # permission to access this Company, such as the being the company the API key
22
+ # belongs to or a sub-merchant of it
23
+ company_id:,
24
+ # The ID of the User to generate the token for. The API key must have permission
25
+ # to access this User.
26
+ user_id:,
27
27
  # The expiration timestamp for the access token. If not provided, a default
28
28
  # expiration time of 1 hour will be used. The expiration can be set to a maximum
29
29
  # of 3 hours from the current time.
30
30
  expires_at: nil,
31
+ # Array of desired scoped actions for the access token. If sent as an empty array
32
+ # or not provided, all permissions from the API key making the request will be
33
+ # available on the token. If sending an explicit list, they must be a subset of
34
+ # the API keys's existing permissions. Otherwise, an error will be raised.
35
+ scoped_actions: nil,
31
36
  request_options: {}
32
37
  )
33
38
  end
@@ -28,6 +28,8 @@ module WhopSDK
28
28
  pinned: T.nilable(T::Boolean),
29
29
  poll: T.nilable(WhopSDK::ForumPostCreateParams::Poll::OrHash),
30
30
  title: T.nilable(String),
31
+ visibility:
32
+ T.nilable(WhopSDK::ForumPostCreateParams::Visibility::OrSymbol),
31
33
  request_options: WhopSDK::RequestOptions::OrHash
32
34
  ).returns(WhopSDK::ForumPost)
33
35
  end
@@ -57,6 +59,8 @@ module WhopSDK
57
59
  poll: nil,
58
60
  # The title of the post. Only visible if paywalled.
59
61
  title: nil,
62
+ # The visibility types for forum posts
63
+ visibility: nil,
60
64
  request_options: {}
61
65
  )
62
66
  end
@@ -95,6 +99,8 @@ module WhopSDK
95
99
  content: T.nilable(String),
96
100
  is_pinned: T.nilable(T::Boolean),
97
101
  title: T.nilable(String),
102
+ visibility:
103
+ T.nilable(WhopSDK::ForumPostUpdateParams::Visibility::OrSymbol),
98
104
  request_options: WhopSDK::RequestOptions::OrHash
99
105
  ).returns(WhopSDK::ForumPost)
100
106
  end
@@ -110,6 +116,8 @@ module WhopSDK
110
116
  is_pinned: nil,
111
117
  # The title of the post. Only visible if paywalled.
112
118
  title: nil,
119
+ # The visibility types for forum posts
120
+ visibility: nil,
113
121
  request_options: {}
114
122
  )
115
123
  end
@@ -2,10 +2,10 @@ module WhopSDK
2
2
  module Models
3
3
  type access_token_create_params =
4
4
  {
5
- scoped_actions: ::Array[String],
6
- target_resource_id: String,
7
- target_resource_type: WhopSDK::Models::AccessTokenCreateParams::target_resource_type,
8
- expires_at: Time?
5
+ company_id: String,
6
+ expires_at: Time?,
7
+ scoped_actions: ::Array[String]?,
8
+ user_id: String
9
9
  }
10
10
  & WhopSDK::Internal::Type::request_parameters
11
11
 
@@ -13,44 +13,29 @@ module WhopSDK
13
13
  extend WhopSDK::Internal::Type::RequestParameters::Converter
14
14
  include WhopSDK::Internal::Type::RequestParameters
15
15
 
16
- attr_accessor scoped_actions: ::Array[String]
16
+ attr_accessor company_id: String
17
17
 
18
- attr_accessor target_resource_id: String
18
+ attr_accessor expires_at: Time?
19
19
 
20
- attr_accessor target_resource_type: WhopSDK::Models::AccessTokenCreateParams::target_resource_type
20
+ attr_accessor scoped_actions: ::Array[String]?
21
21
 
22
- attr_accessor expires_at: Time?
22
+ attr_accessor user_id: String
23
23
 
24
24
  def initialize: (
25
- scoped_actions: ::Array[String],
26
- target_resource_id: String,
27
- target_resource_type: WhopSDK::Models::AccessTokenCreateParams::target_resource_type,
25
+ company_id: String,
26
+ user_id: String,
28
27
  ?expires_at: Time?,
28
+ ?scoped_actions: ::Array[String]?,
29
29
  ?request_options: WhopSDK::request_opts
30
30
  ) -> void
31
31
 
32
32
  def to_hash: -> {
33
- scoped_actions: ::Array[String],
34
- target_resource_id: String,
35
- target_resource_type: WhopSDK::Models::AccessTokenCreateParams::target_resource_type,
33
+ company_id: String,
36
34
  expires_at: Time?,
35
+ scoped_actions: ::Array[String]?,
36
+ user_id: String,
37
37
  request_options: WhopSDK::RequestOptions
38
38
  }
39
-
40
- type target_resource_type =
41
- :company | :product | :experience | :app | :user
42
-
43
- module TargetResourceType
44
- extend WhopSDK::Internal::Type::Enum
45
-
46
- COMPANY: :company
47
- PRODUCT: :product
48
- EXPERIENCE: :experience
49
- APP: :app
50
- USER: :user
51
-
52
- def self?.values: -> ::Array[WhopSDK::Models::AccessTokenCreateParams::target_resource_type]
53
- end
54
39
  end
55
40
  end
56
41
  end
@@ -16,6 +16,7 @@ module WhopSDK
16
16
  | :rupay
17
17
  | :jcbrupay
18
18
  | :elo
19
+ | :maestro
19
20
  | :unknown
20
21
 
21
22
  module CardBrands
@@ -36,6 +37,7 @@ module WhopSDK
36
37
  RUPAY: :rupay
37
38
  JCBRUPAY: :jcbrupay
38
39
  ELO: :elo
40
+ MAESTRO: :maestro
39
41
  UNKNOWN: :unknown
40
42
 
41
43
  def self?.values: -> ::Array[WhopSDK::Models::card_brands]
@@ -45,8 +45,8 @@ module WhopSDK
45
45
  type plan =
46
46
  {
47
47
  company_id: String,
48
+ currency: WhopSDK::Models::currency,
48
49
  billing_period: Integer?,
49
- currency: WhopSDK::Models::currency?,
50
50
  custom_fields: ::Array[WhopSDK::CheckoutConfigurationCreateParams::Plan::CustomField]?,
51
51
  description: String?,
52
52
  expiration_days: Integer?,
@@ -69,9 +69,9 @@ module WhopSDK
69
69
  class Plan < WhopSDK::Internal::Type::BaseModel
70
70
  attr_accessor company_id: String
71
71
 
72
- attr_accessor billing_period: Integer?
72
+ attr_accessor currency: WhopSDK::Models::currency
73
73
 
74
- attr_accessor currency: WhopSDK::Models::currency?
74
+ attr_accessor billing_period: Integer?
75
75
 
76
76
  attr_accessor custom_fields: ::Array[WhopSDK::CheckoutConfigurationCreateParams::Plan::CustomField]?
77
77
 
@@ -109,8 +109,8 @@ module WhopSDK
109
109
 
110
110
  def initialize: (
111
111
  company_id: String,
112
+ currency: WhopSDK::Models::currency,
112
113
  ?billing_period: Integer?,
113
- ?currency: WhopSDK::Models::currency?,
114
114
  ?custom_fields: ::Array[WhopSDK::CheckoutConfigurationCreateParams::Plan::CustomField]?,
115
115
  ?description: String?,
116
116
  ?expiration_days: Integer?,
@@ -132,8 +132,8 @@ module WhopSDK
132
132
 
133
133
  def to_hash: -> {
134
134
  company_id: String,
135
+ currency: WhopSDK::Models::currency,
135
136
  billing_period: Integer?,
136
- currency: WhopSDK::Models::currency?,
137
137
  custom_fields: ::Array[WhopSDK::CheckoutConfigurationCreateParams::Plan::CustomField]?,
138
138
  description: String?,
139
139
  expiration_days: Integer?,
@@ -85,6 +85,7 @@ module WhopSDK
85
85
  | :uzs
86
86
  | :rub
87
87
  | :btc
88
+ | :cny
88
89
 
89
90
  module Currency
90
91
  extend WhopSDK::Internal::Type::Enum
@@ -173,6 +174,7 @@ module WhopSDK
173
174
  UZS: :uzs
174
175
  RUB: :rub
175
176
  BTC: :btc
177
+ CNY: :cny
176
178
 
177
179
  def self?.values: -> ::Array[WhopSDK::Models::currency]
178
180
  end
@@ -11,7 +11,8 @@ module WhopSDK
11
11
  paywall_currency: WhopSDK::Models::currency?,
12
12
  pinned: bool?,
13
13
  poll: WhopSDK::ForumPostCreateParams::Poll?,
14
- title: String?
14
+ title: String?,
15
+ visibility: WhopSDK::Models::ForumPostCreateParams::visibility?
15
16
  }
16
17
  & WhopSDK::Internal::Type::request_parameters
17
18
 
@@ -39,6 +40,8 @@ module WhopSDK
39
40
 
40
41
  attr_accessor title: String?
41
42
 
43
+ attr_accessor visibility: WhopSDK::Models::ForumPostCreateParams::visibility?
44
+
42
45
  def initialize: (
43
46
  experience_id: String,
44
47
  ?attachments: ::Array[WhopSDK::Models::ForumPostCreateParams::attachment]?,
@@ -50,6 +53,7 @@ module WhopSDK
50
53
  ?pinned: bool?,
51
54
  ?poll: WhopSDK::ForumPostCreateParams::Poll?,
52
55
  ?title: String?,
56
+ ?visibility: WhopSDK::Models::ForumPostCreateParams::visibility?,
53
57
  ?request_options: WhopSDK::request_opts
54
58
  ) -> void
55
59
 
@@ -64,6 +68,7 @@ module WhopSDK
64
68
  pinned: bool?,
65
69
  poll: WhopSDK::ForumPostCreateParams::Poll?,
66
70
  title: String?,
71
+ visibility: WhopSDK::Models::ForumPostCreateParams::visibility?,
67
72
  request_options: WhopSDK::RequestOptions
68
73
  }
69
74
 
@@ -124,6 +129,17 @@ module WhopSDK
124
129
  def to_hash: -> { id: String, text: String }
125
130
  end
126
131
  end
132
+
133
+ type visibility = :members_only | :globally_visible
134
+
135
+ module Visibility
136
+ extend WhopSDK::Internal::Type::Enum
137
+
138
+ MEMBERS_ONLY: :members_only
139
+ GLOBALLY_VISIBLE: :globally_visible
140
+
141
+ def self?.values: -> ::Array[WhopSDK::Models::ForumPostCreateParams::visibility]
142
+ end
127
143
  end
128
144
  end
129
145
  end
@@ -5,7 +5,8 @@ module WhopSDK
5
5
  attachments: ::Array[WhopSDK::Models::ForumPostUpdateParams::attachment]?,
6
6
  content: String?,
7
7
  is_pinned: bool?,
8
- title: String?
8
+ title: String?,
9
+ visibility: WhopSDK::Models::ForumPostUpdateParams::visibility?
9
10
  }
10
11
  & WhopSDK::Internal::Type::request_parameters
11
12
 
@@ -21,11 +22,14 @@ module WhopSDK
21
22
 
22
23
  attr_accessor title: String?
23
24
 
25
+ attr_accessor visibility: WhopSDK::Models::ForumPostUpdateParams::visibility?
26
+
24
27
  def initialize: (
25
28
  ?attachments: ::Array[WhopSDK::Models::ForumPostUpdateParams::attachment]?,
26
29
  ?content: String?,
27
30
  ?is_pinned: bool?,
28
31
  ?title: String?,
32
+ ?visibility: WhopSDK::Models::ForumPostUpdateParams::visibility?,
29
33
  ?request_options: WhopSDK::request_opts
30
34
  ) -> void
31
35
 
@@ -34,6 +38,7 @@ module WhopSDK
34
38
  content: String?,
35
39
  is_pinned: bool?,
36
40
  title: String?,
41
+ visibility: WhopSDK::Models::ForumPostUpdateParams::visibility?,
37
42
  request_options: WhopSDK::RequestOptions
38
43
  }
39
44
 
@@ -67,6 +72,17 @@ module WhopSDK
67
72
 
68
73
  def self?.variants: -> ::Array[WhopSDK::Models::ForumPostUpdateParams::attachment]
69
74
  end
75
+
76
+ type visibility = :members_only | :globally_visible
77
+
78
+ module Visibility
79
+ extend WhopSDK::Internal::Type::Enum
80
+
81
+ MEMBERS_ONLY: :members_only
82
+ GLOBALLY_VISIBLE: :globally_visible
83
+
84
+ def self?.values: -> ::Array[WhopSDK::Models::ForumPostUpdateParams::visibility]
85
+ end
70
86
  end
71
87
  end
72
88
  end
@@ -80,6 +80,7 @@ module WhopSDK
80
80
 
81
81
  type ledger_account_audit_status =
82
82
  :pending
83
+ | :pending_ai_review
83
84
  | :approved
84
85
  | :reserves_imposed
85
86
  | :suspended
@@ -95,6 +96,7 @@ module WhopSDK
95
96
  extend WhopSDK::Internal::Type::Enum
96
97
 
97
98
  PENDING: :pending
99
+ PENDING_AI_REVIEW: :pending_ai_review
98
100
  APPROVED: :approved
99
101
  RESERVES_IMPOSED: :reserves_imposed
100
102
  SUSPENDED: :suspended
@@ -6,7 +6,7 @@ module WhopSDK
6
6
  carrier: WhopSDK::Models::shipment_carrier,
7
7
  created_at: Time,
8
8
  delivery_estimate: Time?,
9
- payment: WhopSDK::Shipment::Payment,
9
+ payment: WhopSDK::Shipment::Payment?,
10
10
  service: String?,
11
11
  status: WhopSDK::Models::shipment_status,
12
12
  substatus: WhopSDK::Models::shipment_substatus?,
@@ -23,7 +23,7 @@ module WhopSDK
23
23
 
24
24
  attr_accessor delivery_estimate: Time?
25
25
 
26
- attr_accessor payment: WhopSDK::Shipment::Payment
26
+ attr_accessor payment: WhopSDK::Shipment::Payment?
27
27
 
28
28
  attr_accessor service: String?
29
29
 
@@ -40,7 +40,7 @@ module WhopSDK
40
40
  carrier: WhopSDK::Models::shipment_carrier,
41
41
  created_at: Time,
42
42
  delivery_estimate: Time?,
43
- payment: WhopSDK::Shipment::Payment,
43
+ payment: WhopSDK::Shipment::Payment?,
44
44
  service: String?,
45
45
  status: WhopSDK::Models::shipment_status,
46
46
  substatus: WhopSDK::Models::shipment_substatus?,
@@ -53,7 +53,7 @@ module WhopSDK
53
53
  carrier: WhopSDK::Models::shipment_carrier,
54
54
  created_at: Time,
55
55
  delivery_estimate: Time?,
56
- payment: WhopSDK::Shipment::Payment,
56
+ payment: WhopSDK::Shipment::Payment?,
57
57
  service: String?,
58
58
  status: WhopSDK::Models::shipment_status,
59
59
  substatus: WhopSDK::Models::shipment_substatus?,
@@ -6,7 +6,7 @@ module WhopSDK
6
6
  carrier: WhopSDK::Models::shipment_carrier,
7
7
  created_at: Time,
8
8
  delivery_estimate: Time?,
9
- payment: WhopSDK::Models::ShipmentListResponse::Payment,
9
+ payment: WhopSDK::Models::ShipmentListResponse::Payment?,
10
10
  service: String?,
11
11
  status: WhopSDK::Models::shipment_status,
12
12
  substatus: WhopSDK::Models::shipment_substatus?,
@@ -23,7 +23,7 @@ module WhopSDK
23
23
 
24
24
  attr_accessor delivery_estimate: Time?
25
25
 
26
- attr_accessor payment: WhopSDK::Models::ShipmentListResponse::Payment
26
+ attr_accessor payment: WhopSDK::Models::ShipmentListResponse::Payment?
27
27
 
28
28
  attr_accessor service: String?
29
29
 
@@ -40,7 +40,7 @@ module WhopSDK
40
40
  carrier: WhopSDK::Models::shipment_carrier,
41
41
  created_at: Time,
42
42
  delivery_estimate: Time?,
43
- payment: WhopSDK::Models::ShipmentListResponse::Payment,
43
+ payment: WhopSDK::Models::ShipmentListResponse::Payment?,
44
44
  service: String?,
45
45
  status: WhopSDK::Models::shipment_status,
46
46
  substatus: WhopSDK::Models::shipment_substatus?,
@@ -53,7 +53,7 @@ module WhopSDK
53
53
  carrier: WhopSDK::Models::shipment_carrier,
54
54
  created_at: Time,
55
55
  delivery_estimate: Time?,
56
- payment: WhopSDK::Models::ShipmentListResponse::Payment,
56
+ payment: WhopSDK::Models::ShipmentListResponse::Payment?,
57
57
  service: String?,
58
58
  status: WhopSDK::Models::shipment_status,
59
59
  substatus: WhopSDK::Models::shipment_substatus?,
@@ -2,10 +2,10 @@ module WhopSDK
2
2
  module Resources
3
3
  class AccessTokens
4
4
  def create: (
5
- scoped_actions: ::Array[String],
6
- target_resource_id: String,
7
- target_resource_type: WhopSDK::Models::AccessTokenCreateParams::target_resource_type,
5
+ company_id: String,
6
+ user_id: String,
8
7
  ?expires_at: Time?,
8
+ ?scoped_actions: ::Array[String]?,
9
9
  ?request_options: WhopSDK::request_opts
10
10
  ) -> WhopSDK::Models::AccessTokenCreateResponse
11
11