whop_sdk 0.0.23 → 0.0.24

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 (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
  5. data/lib/whop_sdk/models/app_create_params.rb +22 -1
  6. data/lib/whop_sdk/models/app_list_params.rb +5 -0
  7. data/lib/whop_sdk/models/app_update_params.rb +14 -53
  8. data/lib/whop_sdk/models/card_brands.rb +16 -0
  9. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
  10. data/lib/whop_sdk/models/company_create_params.rb +22 -1
  11. data/lib/whop_sdk/models/company_update_params.rb +28 -106
  12. data/lib/whop_sdk/models/course_create_params.rb +15 -62
  13. data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
  14. data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
  15. data/lib/whop_sdk/models/course_update_params.rb +14 -61
  16. data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
  17. data/lib/whop_sdk/models/experience_create_params.rb +22 -1
  18. data/lib/whop_sdk/models/experience_update_params.rb +14 -53
  19. data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
  20. data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
  21. data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
  22. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
  23. data/lib/whop_sdk/models/member_list_response.rb +9 -1
  24. data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
  25. data/lib/whop_sdk/models/membership.rb +76 -2
  26. data/lib/whop_sdk/models/membership_list_response.rb +38 -2
  27. data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
  28. data/lib/whop_sdk/models/message_create_params.rb +13 -52
  29. data/lib/whop_sdk/models/message_update_params.rb +14 -53
  30. data/lib/whop_sdk/models/payment.rb +17 -1
  31. data/lib/whop_sdk/models/payment_list_response.rb +17 -1
  32. data/lib/whop_sdk/models/payment_method_types.rb +58 -57
  33. data/lib/whop_sdk/models/payment_provider.rb +1 -0
  34. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
  35. data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
  36. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
  37. data/lib/whop_sdk/models/plan_create_params.rb +14 -53
  38. data/lib/whop_sdk/models/plan_update_params.rb +14 -53
  39. data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
  40. data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
  41. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
  42. data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
  43. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
  44. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
  45. data/lib/whop_sdk/models.rb +2 -2
  46. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  47. data/lib/whop_sdk/resources/apps.rb +4 -2
  48. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  49. data/lib/whop_sdk/resources/companies.rb +5 -3
  50. data/lib/whop_sdk/resources/course_lessons.rb +4 -4
  51. data/lib/whop_sdk/resources/courses.rb +4 -8
  52. data/lib/whop_sdk/resources/disputes.rb +4 -4
  53. data/lib/whop_sdk/resources/experiences.rb +4 -2
  54. data/lib/whop_sdk/resources/forum_posts.rb +2 -2
  55. data/lib/whop_sdk/resources/memberships.rb +32 -0
  56. data/lib/whop_sdk/resources/messages.rb +2 -2
  57. data/lib/whop_sdk/resources/notifications.rb +4 -0
  58. data/lib/whop_sdk/resources/plans.rb +2 -2
  59. data/lib/whop_sdk/resources/withdrawals.rb +8 -1
  60. data/lib/whop_sdk/version.rb +1 -1
  61. data/lib/whop_sdk.rb +1 -1
  62. data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
  63. data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
  64. data/rbi/whop_sdk/models/app_list_params.rbi +10 -0
  65. data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
  66. data/rbi/whop_sdk/models/card_brands.rbi +17 -0
  67. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
  68. data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
  69. data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
  70. data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
  71. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
  72. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
  73. data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
  74. data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
  75. data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
  76. data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
  77. data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
  78. data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
  79. data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
  80. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
  81. data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
  82. data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
  83. data/rbi/whop_sdk/models/membership.rbi +126 -4
  84. data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
  85. data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
  86. data/rbi/whop_sdk/models/message_create_params.rbi +18 -94
  87. data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
  88. data/rbi/whop_sdk/models/payment.rbi +16 -0
  89. data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
  90. data/rbi/whop_sdk/models/payment_method_types.rbi +66 -64
  91. data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
  92. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
  93. data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
  94. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
  95. data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
  96. data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
  97. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
  98. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
  99. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
  100. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
  101. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
  102. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
  103. data/rbi/whop_sdk/models.rbi +2 -2
  104. data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
  105. data/rbi/whop_sdk/resources/apps.rbi +4 -7
  106. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  107. data/rbi/whop_sdk/resources/companies.rbi +5 -13
  108. data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
  109. data/rbi/whop_sdk/resources/courses.rbi +2 -20
  110. data/rbi/whop_sdk/resources/disputes.rbi +4 -16
  111. data/rbi/whop_sdk/resources/experiences.rbi +4 -7
  112. data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
  113. data/rbi/whop_sdk/resources/memberships.rbi +26 -0
  114. data/rbi/whop_sdk/resources/messages.rbi +2 -12
  115. data/rbi/whop_sdk/resources/notifications.rbi +4 -0
  116. data/rbi/whop_sdk/resources/plans.rbi +2 -14
  117. data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
  118. data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
  119. data/sig/whop_sdk/models/app_create_params.rbs +20 -1
  120. data/sig/whop_sdk/models/app_list_params.rbs +10 -0
  121. data/sig/whop_sdk/models/app_update_params.rbs +9 -30
  122. data/sig/whop_sdk/models/card_brands.rbs +32 -0
  123. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
  124. data/sig/whop_sdk/models/company_create_params.rbs +15 -0
  125. data/sig/whop_sdk/models/company_update_params.rbs +18 -60
  126. data/sig/whop_sdk/models/course_create_params.rbs +9 -35
  127. data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
  128. data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
  129. data/sig/whop_sdk/models/course_update_params.rbs +9 -35
  130. data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
  131. data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
  132. data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
  133. data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
  134. data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
  135. data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
  136. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
  137. data/sig/whop_sdk/models/member_list_response.rbs +5 -0
  138. data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
  139. data/sig/whop_sdk/models/membership.rbs +65 -4
  140. data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
  141. data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
  142. data/sig/whop_sdk/models/message_create_params.rbs +9 -30
  143. data/sig/whop_sdk/models/message_update_params.rbs +9 -30
  144. data/sig/whop_sdk/models/payment.rbs +10 -0
  145. data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
  146. data/sig/whop_sdk/models/payment_method_types.rbs +117 -115
  147. data/sig/whop_sdk/models/payment_provider.rbs +2 -0
  148. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
  149. data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
  150. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
  151. data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
  152. data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
  153. data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
  154. data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
  155. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
  156. data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
  157. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
  158. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
  159. data/sig/whop_sdk/models.rbs +2 -2
  160. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  161. data/sig/whop_sdk/resources/apps.rbs +2 -1
  162. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  163. data/sig/whop_sdk/resources/companies.rbs +3 -2
  164. data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
  165. data/sig/whop_sdk/resources/courses.rbs +2 -4
  166. data/sig/whop_sdk/resources/disputes.rbs +4 -4
  167. data/sig/whop_sdk/resources/experiences.rbs +2 -1
  168. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  169. data/sig/whop_sdk/resources/memberships.rbs +5 -0
  170. data/sig/whop_sdk/resources/messages.rbs +2 -2
  171. data/sig/whop_sdk/resources/plans.rbs +2 -2
  172. data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
  173. metadata +19 -5
  174. data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
  175. data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
  176. data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
@@ -24,17 +24,15 @@ module WhopSDK
24
24
  attr_accessor :is_public
25
25
 
26
26
  # The logo for the experience
27
+ sig { returns(T.nilable(WhopSDK::ExperienceUpdateParams::Logo)) }
28
+ attr_reader :logo
29
+
27
30
  sig do
28
- returns(
29
- T.nilable(
30
- T.any(
31
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID,
32
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID
33
- )
34
- )
35
- )
31
+ params(
32
+ logo: T.nilable(WhopSDK::ExperienceUpdateParams::Logo::OrHash)
33
+ ).void
36
34
  end
37
- attr_accessor :logo
35
+ attr_writer :logo
38
36
 
39
37
  # The name of the experience.
40
38
  sig { returns(T.nilable(String)) }
@@ -53,13 +51,7 @@ module WhopSDK
53
51
  access_level:
54
52
  T.nilable(WhopSDK::ExperienceUpdateParams::AccessLevel::OrSymbol),
55
53
  is_public: T.nilable(T::Boolean),
56
- logo:
57
- T.nilable(
58
- T.any(
59
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID::OrHash,
60
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID::OrHash
61
- )
62
- ),
54
+ logo: T.nilable(WhopSDK::ExperienceUpdateParams::Logo::OrHash),
63
55
  name: T.nilable(String),
64
56
  order: T.nilable(String),
65
57
  section_id: T.nilable(String),
@@ -89,13 +81,7 @@ module WhopSDK
89
81
  access_level:
90
82
  T.nilable(WhopSDK::ExperienceUpdateParams::AccessLevel::OrSymbol),
91
83
  is_public: T.nilable(T::Boolean),
92
- logo:
93
- T.nilable(
94
- T.any(
95
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID,
96
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID
97
- )
98
- ),
84
+ logo: T.nilable(WhopSDK::ExperienceUpdateParams::Logo),
99
85
  name: T.nilable(String),
100
86
  order: T.nilable(String),
101
87
  section_id: T.nilable(String),
@@ -136,84 +122,29 @@ module WhopSDK
136
122
  end
137
123
  end
138
124
 
139
- # The logo for the experience
140
- module Logo
141
- extend WhopSDK::Internal::Type::Union
142
-
143
- Variants =
125
+ class Logo < WhopSDK::Internal::Type::BaseModel
126
+ OrHash =
144
127
  T.type_alias do
145
128
  T.any(
146
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID,
147
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID
129
+ WhopSDK::ExperienceUpdateParams::Logo,
130
+ WhopSDK::Internal::AnyHash
148
131
  )
149
132
  end
150
133
 
151
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
152
- OrHash =
153
- T.type_alias do
154
- T.any(
155
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID,
156
- WhopSDK::Internal::AnyHash
157
- )
158
- end
159
-
160
- # This ID should be used the first time you upload an attachment. It is the ID of
161
- # the direct upload that was created when uploading the file to S3 via the
162
- # mediaDirectUpload mutation.
163
- sig { returns(String) }
164
- attr_accessor :direct_upload_id
165
-
166
- # Input for an attachment
167
- sig { params(direct_upload_id: String).returns(T.attached_class) }
168
- def self.new(
169
- # This ID should be used the first time you upload an attachment. It is the ID of
170
- # the direct upload that was created when uploading the file to S3 via the
171
- # mediaDirectUpload mutation.
172
- direct_upload_id:
173
- )
174
- end
175
-
176
- sig { override.returns({ direct_upload_id: String }) }
177
- def to_hash
178
- end
179
- end
180
-
181
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
182
- OrHash =
183
- T.type_alias do
184
- T.any(
185
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID,
186
- WhopSDK::Internal::AnyHash
187
- )
188
- end
189
-
190
- # The ID of an existing attachment object. Use this when updating a resource and
191
- # keeping a subset of the attachments. Don't use this unless you know what you're
192
- # doing.
193
- sig { returns(String) }
194
- attr_accessor :id
195
-
196
- # Input for an attachment
197
- sig { params(id: String).returns(T.attached_class) }
198
- def self.new(
199
- # The ID of an existing attachment object. Use this when updating a resource and
200
- # keeping a subset of the attachments. Don't use this unless you know what you're
201
- # doing.
202
- id:
203
- )
204
- end
134
+ # The ID of an existing file object.
135
+ sig { returns(String) }
136
+ attr_accessor :id
205
137
 
206
- sig { override.returns({ id: String }) }
207
- def to_hash
208
- end
138
+ # The logo for the experience
139
+ sig { params(id: String).returns(T.attached_class) }
140
+ def self.new(
141
+ # The ID of an existing file object.
142
+ id:
143
+ )
209
144
  end
210
145
 
211
- sig do
212
- override.returns(
213
- T::Array[WhopSDK::ExperienceUpdateParams::Logo::Variants]
214
- )
215
- end
216
- def self.variants
146
+ sig { override.returns({ id: String }) }
147
+ def to_hash
217
148
  end
218
149
  end
219
150
  end
@@ -17,16 +17,7 @@ module WhopSDK
17
17
 
18
18
  # The attachments for this post
19
19
  sig do
20
- returns(
21
- T.nilable(
22
- T::Array[
23
- T.any(
24
- WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID,
25
- WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID
26
- )
27
- ]
28
- )
29
- )
20
+ returns(T.nilable(T::Array[WhopSDK::ForumPostCreateParams::Attachment]))
30
21
  end
31
22
  attr_accessor :attachments
32
23
 
@@ -83,12 +74,7 @@ module WhopSDK
83
74
  experience_id: String,
84
75
  attachments:
85
76
  T.nilable(
86
- T::Array[
87
- T.any(
88
- WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
89
- WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID::OrHash
90
- )
91
- ]
77
+ T::Array[WhopSDK::ForumPostCreateParams::Attachment::OrHash]
92
78
  ),
93
79
  content: T.nilable(String),
94
80
  is_mention: T.nilable(T::Boolean),
@@ -139,14 +125,7 @@ module WhopSDK
139
125
  {
140
126
  experience_id: String,
141
127
  attachments:
142
- T.nilable(
143
- T::Array[
144
- T.any(
145
- WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID,
146
- WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID
147
- )
148
- ]
149
- ),
128
+ T.nilable(T::Array[WhopSDK::ForumPostCreateParams::Attachment]),
150
129
  content: T.nilable(String),
151
130
  is_mention: T.nilable(T::Boolean),
152
131
  parent_id: T.nilable(String),
@@ -163,84 +142,29 @@ module WhopSDK
163
142
  def to_hash
164
143
  end
165
144
 
166
- # Input for an attachment
167
- module Attachment
168
- extend WhopSDK::Internal::Type::Union
169
-
170
- Variants =
145
+ class Attachment < WhopSDK::Internal::Type::BaseModel
146
+ OrHash =
171
147
  T.type_alias do
172
148
  T.any(
173
- WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID,
174
- WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID
149
+ WhopSDK::ForumPostCreateParams::Attachment,
150
+ WhopSDK::Internal::AnyHash
175
151
  )
176
152
  end
177
153
 
178
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
179
- OrHash =
180
- T.type_alias do
181
- T.any(
182
- WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID,
183
- WhopSDK::Internal::AnyHash
184
- )
185
- end
186
-
187
- # This ID should be used the first time you upload an attachment. It is the ID of
188
- # the direct upload that was created when uploading the file to S3 via the
189
- # mediaDirectUpload mutation.
190
- sig { returns(String) }
191
- attr_accessor :direct_upload_id
192
-
193
- # Input for an attachment
194
- sig { params(direct_upload_id: String).returns(T.attached_class) }
195
- def self.new(
196
- # This ID should be used the first time you upload an attachment. It is the ID of
197
- # the direct upload that was created when uploading the file to S3 via the
198
- # mediaDirectUpload mutation.
199
- direct_upload_id:
200
- )
201
- end
202
-
203
- sig { override.returns({ direct_upload_id: String }) }
204
- def to_hash
205
- end
206
- end
207
-
208
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
209
- OrHash =
210
- T.type_alias do
211
- T.any(
212
- WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID,
213
- WhopSDK::Internal::AnyHash
214
- )
215
- end
216
-
217
- # The ID of an existing attachment object. Use this when updating a resource and
218
- # keeping a subset of the attachments. Don't use this unless you know what you're
219
- # doing.
220
- sig { returns(String) }
221
- attr_accessor :id
154
+ # The ID of an existing file object.
155
+ sig { returns(String) }
156
+ attr_accessor :id
222
157
 
223
- # Input for an attachment
224
- sig { params(id: String).returns(T.attached_class) }
225
- def self.new(
226
- # The ID of an existing attachment object. Use this when updating a resource and
227
- # keeping a subset of the attachments. Don't use this unless you know what you're
228
- # doing.
229
- id:
230
- )
231
- end
232
-
233
- sig { override.returns({ id: String }) }
234
- def to_hash
235
- end
158
+ # Input for an attachment
159
+ sig { params(id: String).returns(T.attached_class) }
160
+ def self.new(
161
+ # The ID of an existing file object.
162
+ id:
163
+ )
236
164
  end
237
165
 
238
- sig do
239
- override.returns(
240
- T::Array[WhopSDK::ForumPostCreateParams::Attachment::Variants]
241
- )
242
- end
243
- def self.variants
166
+ sig { override.returns({ id: String }) }
167
+ def to_hash
244
168
  end
245
169
  end
246
170
 
@@ -13,16 +13,7 @@ module WhopSDK
13
13
 
14
14
  # The attachments for this post
15
15
  sig do
16
- returns(
17
- T.nilable(
18
- T::Array[
19
- T.any(
20
- WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
21
- WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID
22
- )
23
- ]
24
- )
25
- )
16
+ returns(T.nilable(T::Array[WhopSDK::ForumPostUpdateParams::Attachment]))
26
17
  end
27
18
  attr_accessor :attachments
28
19
 
@@ -47,12 +38,7 @@ module WhopSDK
47
38
  params(
48
39
  attachments:
49
40
  T.nilable(
50
- T::Array[
51
- T.any(
52
- WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
53
- WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID::OrHash
54
- )
55
- ]
41
+ T::Array[WhopSDK::ForumPostUpdateParams::Attachment::OrHash]
56
42
  ),
57
43
  content: T.nilable(String),
58
44
  is_pinned: T.nilable(T::Boolean),
@@ -81,14 +67,7 @@ module WhopSDK
81
67
  override.returns(
82
68
  {
83
69
  attachments:
84
- T.nilable(
85
- T::Array[
86
- T.any(
87
- WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
88
- WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID
89
- )
90
- ]
91
- ),
70
+ T.nilable(T::Array[WhopSDK::ForumPostUpdateParams::Attachment]),
92
71
  content: T.nilable(String),
93
72
  is_pinned: T.nilable(T::Boolean),
94
73
  title: T.nilable(String),
@@ -100,84 +79,29 @@ module WhopSDK
100
79
  def to_hash
101
80
  end
102
81
 
103
- # Input for an attachment
104
- module Attachment
105
- extend WhopSDK::Internal::Type::Union
106
-
107
- Variants =
82
+ class Attachment < WhopSDK::Internal::Type::BaseModel
83
+ OrHash =
108
84
  T.type_alias do
109
85
  T.any(
110
- WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
111
- WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID
86
+ WhopSDK::ForumPostUpdateParams::Attachment,
87
+ WhopSDK::Internal::AnyHash
112
88
  )
113
89
  end
114
90
 
115
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
116
- OrHash =
117
- T.type_alias do
118
- T.any(
119
- WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
120
- WhopSDK::Internal::AnyHash
121
- )
122
- end
123
-
124
- # This ID should be used the first time you upload an attachment. It is the ID of
125
- # the direct upload that was created when uploading the file to S3 via the
126
- # mediaDirectUpload mutation.
127
- sig { returns(String) }
128
- attr_accessor :direct_upload_id
129
-
130
- # Input for an attachment
131
- sig { params(direct_upload_id: String).returns(T.attached_class) }
132
- def self.new(
133
- # This ID should be used the first time you upload an attachment. It is the ID of
134
- # the direct upload that was created when uploading the file to S3 via the
135
- # mediaDirectUpload mutation.
136
- direct_upload_id:
137
- )
138
- end
139
-
140
- sig { override.returns({ direct_upload_id: String }) }
141
- def to_hash
142
- end
143
- end
91
+ # The ID of an existing file object.
92
+ sig { returns(String) }
93
+ attr_accessor :id
144
94
 
145
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
146
- OrHash =
147
- T.type_alias do
148
- T.any(
149
- WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID,
150
- WhopSDK::Internal::AnyHash
151
- )
152
- end
153
-
154
- # The ID of an existing attachment object. Use this when updating a resource and
155
- # keeping a subset of the attachments. Don't use this unless you know what you're
156
- # doing.
157
- sig { returns(String) }
158
- attr_accessor :id
159
-
160
- # Input for an attachment
161
- sig { params(id: String).returns(T.attached_class) }
162
- def self.new(
163
- # The ID of an existing attachment object. Use this when updating a resource and
164
- # keeping a subset of the attachments. Don't use this unless you know what you're
165
- # doing.
166
- id:
167
- )
168
- end
169
-
170
- sig { override.returns({ id: String }) }
171
- def to_hash
172
- end
95
+ # Input for an attachment
96
+ sig { params(id: String).returns(T.attached_class) }
97
+ def self.new(
98
+ # The ID of an existing file object.
99
+ id:
100
+ )
173
101
  end
174
102
 
175
- sig do
176
- override.returns(
177
- T::Array[WhopSDK::ForumPostUpdateParams::Attachment::Variants]
178
- )
179
- end
180
- def self.variants
103
+ sig { override.returns({ id: String }) }
104
+ def to_hash
181
105
  end
182
106
  end
183
107
  end
@@ -10,32 +10,77 @@ module WhopSDK
10
10
  T.type_alias { T.all(Symbol, WhopSDK::FriendlyReceiptStatus) }
11
11
  OrSymbol = T.type_alias { T.any(Symbol, String) }
12
12
 
13
+ SUCCEEDED =
14
+ T.let(:succeeded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
15
+ PENDING = T.let(:pending, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
16
+ FAILED = T.let(:failed, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
17
+ PAST_DUE = T.let(:past_due, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
18
+ CANCELED = T.let(:canceled, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
19
+ PRICE_TOO_LOW =
20
+ T.let(:price_too_low, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
21
+ UNCOLLECTIBLE =
22
+ T.let(:uncollectible, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
23
+ REFUNDED = T.let(:refunded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
13
24
  AUTO_REFUNDED =
14
25
  T.let(:auto_refunded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
15
- REFUNDED = T.let(:refunded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
16
26
  PARTIALLY_REFUNDED =
17
27
  T.let(:partially_refunded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
18
28
  DISPUTE_WARNING =
19
29
  T.let(:dispute_warning, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
20
- OPEN_RESOLUTION =
21
- T.let(:open_resolution, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
22
- OPEN_DISPUTE =
23
- T.let(:open_dispute, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
24
- FAILED = T.let(:failed, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
25
- PRICE_TOO_LOW =
26
- T.let(:price_too_low, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
27
- SUCCEEDED =
28
- T.let(:succeeded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
30
+ DISPUTE_NEEDS_RESPONSE =
31
+ T.let(
32
+ :dispute_needs_response,
33
+ WhopSDK::FriendlyReceiptStatus::TaggedSymbol
34
+ )
35
+ DISPUTE_WARNING_NEEDS_RESPONSE =
36
+ T.let(
37
+ :dispute_warning_needs_response,
38
+ WhopSDK::FriendlyReceiptStatus::TaggedSymbol
39
+ )
40
+ RESOLUTION_NEEDS_RESPONSE =
41
+ T.let(
42
+ :resolution_needs_response,
43
+ WhopSDK::FriendlyReceiptStatus::TaggedSymbol
44
+ )
45
+ DISPUTE_UNDER_REVIEW =
46
+ T.let(
47
+ :dispute_under_review,
48
+ WhopSDK::FriendlyReceiptStatus::TaggedSymbol
49
+ )
50
+ DISPUTE_WARNING_UNDER_REVIEW =
51
+ T.let(
52
+ :dispute_warning_under_review,
53
+ WhopSDK::FriendlyReceiptStatus::TaggedSymbol
54
+ )
55
+ RESOLUTION_UNDER_REVIEW =
56
+ T.let(
57
+ :resolution_under_review,
58
+ WhopSDK::FriendlyReceiptStatus::TaggedSymbol
59
+ )
60
+ DISPUTE_WON =
61
+ T.let(:dispute_won, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
62
+ DISPUTE_WARNING_CLOSED =
63
+ T.let(
64
+ :dispute_warning_closed,
65
+ WhopSDK::FriendlyReceiptStatus::TaggedSymbol
66
+ )
67
+ RESOLUTION_WON =
68
+ T.let(:resolution_won, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
69
+ DISPUTE_LOST =
70
+ T.let(:dispute_lost, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
71
+ DISPUTE_CLOSED =
72
+ T.let(:dispute_closed, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
73
+ RESOLUTION_LOST =
74
+ T.let(:resolution_lost, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
29
75
  DRAFTED = T.let(:drafted, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
30
- UNCOLLECTIBLE =
31
- T.let(:uncollectible, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
32
- UNRESOLVED =
33
- T.let(:unresolved, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
34
- PAST_DUE = T.let(:past_due, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
35
- PENDING = T.let(:pending, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
36
76
  INCOMPLETE =
37
77
  T.let(:incomplete, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
38
- CANCELED = T.let(:canceled, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
78
+ UNRESOLVED =
79
+ T.let(:unresolved, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
80
+ OPEN_DISPUTE =
81
+ T.let(:open_dispute, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
82
+ OPEN_RESOLUTION =
83
+ T.let(:open_resolution, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
39
84
 
40
85
  sig do
41
86
  override.returns(T::Array[WhopSDK::FriendlyReceiptStatus::TaggedSymbol])
@@ -23,16 +23,6 @@ module WhopSDK
23
23
  end
24
24
  attr_accessor :balances
25
25
 
26
- # The different statuses a LedgerAccountAudit can be
27
- sig do
28
- returns(
29
- T.nilable(
30
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
31
- )
32
- )
33
- end
34
- attr_accessor :ledger_account_audit_status
35
-
36
26
  # The type of ledger account.
37
27
  sig do
38
28
  returns(
@@ -93,10 +83,6 @@ module WhopSDK
93
83
  T::Array[
94
84
  WhopSDK::Models::LedgerAccountRetrieveResponse::Balance::OrHash
95
85
  ],
96
- ledger_account_audit_status:
97
- T.nilable(
98
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::OrSymbol
99
- ),
100
86
  ledger_type:
101
87
  WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType::OrSymbol,
102
88
  owner:
@@ -122,8 +108,6 @@ module WhopSDK
122
108
  id:,
123
109
  # The balances associated with the account.
124
110
  balances:,
125
- # The different statuses a LedgerAccountAudit can be
126
- ledger_account_audit_status:,
127
111
  # The type of ledger account.
128
112
  ledger_type:,
129
113
  # The owner of the ledger account.
@@ -143,10 +127,6 @@ module WhopSDK
143
127
  id: String,
144
128
  balances:
145
129
  T::Array[WhopSDK::Models::LedgerAccountRetrieveResponse::Balance],
146
- ledger_account_audit_status:
147
- T.nilable(
148
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
149
- ),
150
130
  ledger_type:
151
131
  WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType::TaggedSymbol,
152
132
  owner:
@@ -228,91 +208,6 @@ module WhopSDK
228
208
  end
229
209
  end
230
210
 
231
- # The different statuses a LedgerAccountAudit can be
232
- module LedgerAccountAuditStatus
233
- extend WhopSDK::Internal::Type::Enum
234
-
235
- TaggedSymbol =
236
- T.type_alias do
237
- T.all(
238
- Symbol,
239
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus
240
- )
241
- end
242
- OrSymbol = T.type_alias { T.any(Symbol, String) }
243
-
244
- PENDING =
245
- T.let(
246
- :pending,
247
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
248
- )
249
- PENDING_AI_REVIEW =
250
- T.let(
251
- :pending_ai_review,
252
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
253
- )
254
- APPROVED =
255
- T.let(
256
- :approved,
257
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
258
- )
259
- RESERVES_IMPOSED =
260
- T.let(
261
- :reserves_imposed,
262
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
263
- )
264
- SUSPENDED =
265
- T.let(
266
- :suspended,
267
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
268
- )
269
- IGNORED =
270
- T.let(
271
- :ignored,
272
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
273
- )
274
- REJECTED =
275
- T.let(
276
- :rejected,
277
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
278
- )
279
- REQUESTED_MORE_INFORMATION =
280
- T.let(
281
- :requested_more_information,
282
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
283
- )
284
- INFORMATION_SUBMITTED =
285
- T.let(
286
- :information_submitted,
287
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
288
- )
289
- REQUESTED_TOS_VIOLATION_CORRECTION =
290
- T.let(
291
- :requested_tos_violation_correction,
292
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
293
- )
294
- CLAWBACK_ATTEMPTED =
295
- T.let(
296
- :clawback_attempted,
297
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
298
- )
299
- AWAITING_SALES_REVIEW =
300
- T.let(
301
- :awaiting_sales_review,
302
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
303
- )
304
-
305
- sig do
306
- override.returns(
307
- T::Array[
308
- WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
309
- ]
310
- )
311
- end
312
- def self.values
313
- end
314
- end
315
-
316
211
  # The type of ledger account.
317
212
  module LedgerType
318
213
  extend WhopSDK::Internal::Type::Enum