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
@@ -26,14 +26,21 @@ module WhopSDK
26
26
  sig do
27
27
  returns(
28
28
  T.nilable(
29
- T.any(
30
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID,
31
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID
32
- )
29
+ WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment
33
30
  )
34
31
  )
35
32
  end
36
- attr_accessor :cancellation_policy_attachment
33
+ attr_reader :cancellation_policy_attachment
34
+
35
+ sig do
36
+ params(
37
+ cancellation_policy_attachment:
38
+ T.nilable(
39
+ WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::OrHash
40
+ )
41
+ ).void
42
+ end
43
+ attr_writer :cancellation_policy_attachment
37
44
 
38
45
  # A cancellation policy disclosure from the company.
39
46
  sig { returns(T.nilable(String)) }
@@ -43,14 +50,21 @@ module WhopSDK
43
50
  sig do
44
51
  returns(
45
52
  T.nilable(
46
- T.any(
47
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID,
48
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID
49
- )
53
+ WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment
50
54
  )
51
55
  )
52
56
  end
53
- attr_accessor :customer_communication_attachment
57
+ attr_reader :customer_communication_attachment
58
+
59
+ sig do
60
+ params(
61
+ customer_communication_attachment:
62
+ T.nilable(
63
+ WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::OrHash
64
+ )
65
+ ).void
66
+ end
67
+ attr_writer :customer_communication_attachment
54
68
 
55
69
  # The email of the customer from their payment details.
56
70
  sig { returns(T.nilable(String)) }
@@ -72,14 +86,21 @@ module WhopSDK
72
86
  sig do
73
87
  returns(
74
88
  T.nilable(
75
- T.any(
76
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID,
77
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID
78
- )
89
+ WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment
79
90
  )
80
91
  )
81
92
  end
82
- attr_accessor :refund_policy_attachment
93
+ attr_reader :refund_policy_attachment
94
+
95
+ sig do
96
+ params(
97
+ refund_policy_attachment:
98
+ T.nilable(
99
+ WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::OrHash
100
+ )
101
+ ).void
102
+ end
103
+ attr_writer :refund_policy_attachment
83
104
 
84
105
  # A refund policy disclosure from the company.
85
106
  sig { returns(T.nilable(String)) }
@@ -97,14 +118,21 @@ module WhopSDK
97
118
  sig do
98
119
  returns(
99
120
  T.nilable(
100
- T.any(
101
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID,
102
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID
103
- )
121
+ WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment
104
122
  )
105
123
  )
106
124
  end
107
- attr_accessor :uncategorized_attachment
125
+ attr_reader :uncategorized_attachment
126
+
127
+ sig do
128
+ params(
129
+ uncategorized_attachment:
130
+ T.nilable(
131
+ WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::OrHash
132
+ )
133
+ ).void
134
+ end
135
+ attr_writer :uncategorized_attachment
108
136
 
109
137
  sig do
110
138
  params(
@@ -112,18 +140,12 @@ module WhopSDK
112
140
  billing_address: T.nilable(String),
113
141
  cancellation_policy_attachment:
114
142
  T.nilable(
115
- T.any(
116
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID::OrHash,
117
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID::OrHash
118
- )
143
+ WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::OrHash
119
144
  ),
120
145
  cancellation_policy_disclosure: T.nilable(String),
121
146
  customer_communication_attachment:
122
147
  T.nilable(
123
- T.any(
124
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID::OrHash,
125
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID::OrHash
126
- )
148
+ WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::OrHash
127
149
  ),
128
150
  customer_email_address: T.nilable(String),
129
151
  customer_name: T.nilable(String),
@@ -131,20 +153,14 @@ module WhopSDK
131
153
  product_description: T.nilable(String),
132
154
  refund_policy_attachment:
133
155
  T.nilable(
134
- T.any(
135
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID::OrHash,
136
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID::OrHash
137
- )
156
+ WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::OrHash
138
157
  ),
139
158
  refund_policy_disclosure: T.nilable(String),
140
159
  refund_refusal_explanation: T.nilable(String),
141
160
  service_date: T.nilable(String),
142
161
  uncategorized_attachment:
143
162
  T.nilable(
144
- T.any(
145
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID::OrHash,
146
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID::OrHash
147
- )
163
+ WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::OrHash
148
164
  ),
149
165
  request_options: WhopSDK::RequestOptions::OrHash
150
166
  ).returns(T.attached_class)
@@ -189,18 +205,12 @@ module WhopSDK
189
205
  billing_address: T.nilable(String),
190
206
  cancellation_policy_attachment:
191
207
  T.nilable(
192
- T.any(
193
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID,
194
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID
195
- )
208
+ WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment
196
209
  ),
197
210
  cancellation_policy_disclosure: T.nilable(String),
198
211
  customer_communication_attachment:
199
212
  T.nilable(
200
- T.any(
201
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID,
202
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID
203
- )
213
+ WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment
204
214
  ),
205
215
  customer_email_address: T.nilable(String),
206
216
  customer_name: T.nilable(String),
@@ -208,20 +218,14 @@ module WhopSDK
208
218
  product_description: T.nilable(String),
209
219
  refund_policy_attachment:
210
220
  T.nilable(
211
- T.any(
212
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID,
213
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID
214
- )
221
+ WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment
215
222
  ),
216
223
  refund_policy_disclosure: T.nilable(String),
217
224
  refund_refusal_explanation: T.nilable(String),
218
225
  service_date: T.nilable(String),
219
226
  uncategorized_attachment:
220
227
  T.nilable(
221
- T.any(
222
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID,
223
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID
224
- )
228
+ WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment
225
229
  ),
226
230
  request_options: WhopSDK::RequestOptions
227
231
  }
@@ -230,335 +234,107 @@ module WhopSDK
230
234
  def to_hash
231
235
  end
232
236
 
233
- # A file containing the cancellation policy from the company.
234
- module CancellationPolicyAttachment
235
- extend WhopSDK::Internal::Type::Union
236
-
237
- Variants =
237
+ class CancellationPolicyAttachment < WhopSDK::Internal::Type::BaseModel
238
+ OrHash =
238
239
  T.type_alias do
239
240
  T.any(
240
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID,
241
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID
241
+ WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment,
242
+ WhopSDK::Internal::AnyHash
242
243
  )
243
244
  end
244
245
 
245
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
246
- OrHash =
247
- T.type_alias do
248
- T.any(
249
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID,
250
- WhopSDK::Internal::AnyHash
251
- )
252
- end
253
-
254
- # This ID should be used the first time you upload an attachment. It is the ID of
255
- # the direct upload that was created when uploading the file to S3 via the
256
- # mediaDirectUpload mutation.
257
- sig { returns(String) }
258
- attr_accessor :direct_upload_id
259
-
260
- # Input for an attachment
261
- sig { params(direct_upload_id: String).returns(T.attached_class) }
262
- def self.new(
263
- # This ID should be used the first time you upload an attachment. It is the ID of
264
- # the direct upload that was created when uploading the file to S3 via the
265
- # mediaDirectUpload mutation.
266
- direct_upload_id:
267
- )
268
- end
269
-
270
- sig { override.returns({ direct_upload_id: String }) }
271
- def to_hash
272
- end
273
- end
274
-
275
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
276
- OrHash =
277
- T.type_alias do
278
- T.any(
279
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID,
280
- WhopSDK::Internal::AnyHash
281
- )
282
- end
283
-
284
- # The ID of an existing attachment object. Use this when updating a resource and
285
- # keeping a subset of the attachments. Don't use this unless you know what you're
286
- # doing.
287
- sig { returns(String) }
288
- attr_accessor :id
289
-
290
- # Input for an attachment
291
- sig { params(id: String).returns(T.attached_class) }
292
- def self.new(
293
- # The ID of an existing attachment object. Use this when updating a resource and
294
- # keeping a subset of the attachments. Don't use this unless you know what you're
295
- # doing.
296
- id:
297
- )
298
- end
246
+ # The ID of an existing file object.
247
+ sig { returns(String) }
248
+ attr_accessor :id
299
249
 
300
- sig { override.returns({ id: String }) }
301
- def to_hash
302
- end
250
+ # A file containing the cancellation policy from the company.
251
+ sig { params(id: String).returns(T.attached_class) }
252
+ def self.new(
253
+ # The ID of an existing file object.
254
+ id:
255
+ )
303
256
  end
304
257
 
305
- sig do
306
- override.returns(
307
- T::Array[
308
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::Variants
309
- ]
310
- )
311
- end
312
- def self.variants
258
+ sig { override.returns({ id: String }) }
259
+ def to_hash
313
260
  end
314
261
  end
315
262
 
316
- # A file containing the customer communication from the company (An image).
317
- module CustomerCommunicationAttachment
318
- extend WhopSDK::Internal::Type::Union
319
-
320
- Variants =
263
+ class CustomerCommunicationAttachment < WhopSDK::Internal::Type::BaseModel
264
+ OrHash =
321
265
  T.type_alias do
322
266
  T.any(
323
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID,
324
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID
267
+ WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment,
268
+ WhopSDK::Internal::AnyHash
325
269
  )
326
270
  end
327
271
 
328
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
329
- OrHash =
330
- T.type_alias do
331
- T.any(
332
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID,
333
- WhopSDK::Internal::AnyHash
334
- )
335
- end
336
-
337
- # This ID should be used the first time you upload an attachment. It is the ID of
338
- # the direct upload that was created when uploading the file to S3 via the
339
- # mediaDirectUpload mutation.
340
- sig { returns(String) }
341
- attr_accessor :direct_upload_id
342
-
343
- # Input for an attachment
344
- sig { params(direct_upload_id: String).returns(T.attached_class) }
345
- def self.new(
346
- # This ID should be used the first time you upload an attachment. It is the ID of
347
- # the direct upload that was created when uploading the file to S3 via the
348
- # mediaDirectUpload mutation.
349
- direct_upload_id:
350
- )
351
- end
352
-
353
- sig { override.returns({ direct_upload_id: String }) }
354
- def to_hash
355
- end
356
- end
357
-
358
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
359
- OrHash =
360
- T.type_alias do
361
- T.any(
362
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID,
363
- WhopSDK::Internal::AnyHash
364
- )
365
- end
366
-
367
- # The ID of an existing attachment object. Use this when updating a resource and
368
- # keeping a subset of the attachments. Don't use this unless you know what you're
369
- # doing.
370
- sig { returns(String) }
371
- attr_accessor :id
372
-
373
- # Input for an attachment
374
- sig { params(id: String).returns(T.attached_class) }
375
- def self.new(
376
- # The ID of an existing attachment object. Use this when updating a resource and
377
- # keeping a subset of the attachments. Don't use this unless you know what you're
378
- # doing.
379
- id:
380
- )
381
- end
272
+ # The ID of an existing file object.
273
+ sig { returns(String) }
274
+ attr_accessor :id
382
275
 
383
- sig { override.returns({ id: String }) }
384
- def to_hash
385
- end
276
+ # A file containing the customer communication from the company (An image).
277
+ sig { params(id: String).returns(T.attached_class) }
278
+ def self.new(
279
+ # The ID of an existing file object.
280
+ id:
281
+ )
386
282
  end
387
283
 
388
- sig do
389
- override.returns(
390
- T::Array[
391
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::Variants
392
- ]
393
- )
394
- end
395
- def self.variants
284
+ sig { override.returns({ id: String }) }
285
+ def to_hash
396
286
  end
397
287
  end
398
288
 
399
- # A file containing the refund policy from the company.
400
- module RefundPolicyAttachment
401
- extend WhopSDK::Internal::Type::Union
402
-
403
- Variants =
289
+ class RefundPolicyAttachment < WhopSDK::Internal::Type::BaseModel
290
+ OrHash =
404
291
  T.type_alias do
405
292
  T.any(
406
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID,
407
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID
293
+ WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment,
294
+ WhopSDK::Internal::AnyHash
408
295
  )
409
296
  end
410
297
 
411
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
412
- OrHash =
413
- T.type_alias do
414
- T.any(
415
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID,
416
- WhopSDK::Internal::AnyHash
417
- )
418
- end
419
-
420
- # This ID should be used the first time you upload an attachment. It is the ID of
421
- # the direct upload that was created when uploading the file to S3 via the
422
- # mediaDirectUpload mutation.
423
- sig { returns(String) }
424
- attr_accessor :direct_upload_id
425
-
426
- # Input for an attachment
427
- sig { params(direct_upload_id: String).returns(T.attached_class) }
428
- def self.new(
429
- # This ID should be used the first time you upload an attachment. It is the ID of
430
- # the direct upload that was created when uploading the file to S3 via the
431
- # mediaDirectUpload mutation.
432
- direct_upload_id:
433
- )
434
- end
435
-
436
- sig { override.returns({ direct_upload_id: String }) }
437
- def to_hash
438
- end
439
- end
440
-
441
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
442
- OrHash =
443
- T.type_alias do
444
- T.any(
445
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID,
446
- WhopSDK::Internal::AnyHash
447
- )
448
- end
449
-
450
- # The ID of an existing attachment object. Use this when updating a resource and
451
- # keeping a subset of the attachments. Don't use this unless you know what you're
452
- # doing.
453
- sig { returns(String) }
454
- attr_accessor :id
455
-
456
- # Input for an attachment
457
- sig { params(id: String).returns(T.attached_class) }
458
- def self.new(
459
- # The ID of an existing attachment object. Use this when updating a resource and
460
- # keeping a subset of the attachments. Don't use this unless you know what you're
461
- # doing.
462
- id:
463
- )
464
- end
298
+ # The ID of an existing file object.
299
+ sig { returns(String) }
300
+ attr_accessor :id
465
301
 
466
- sig { override.returns({ id: String }) }
467
- def to_hash
468
- end
302
+ # A file containing the refund policy from the company.
303
+ sig { params(id: String).returns(T.attached_class) }
304
+ def self.new(
305
+ # The ID of an existing file object.
306
+ id:
307
+ )
469
308
  end
470
309
 
471
- sig do
472
- override.returns(
473
- T::Array[
474
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::Variants
475
- ]
476
- )
477
- end
478
- def self.variants
310
+ sig { override.returns({ id: String }) }
311
+ def to_hash
479
312
  end
480
313
  end
481
314
 
482
- # A file that does not fit in the other categories.
483
- module UncategorizedAttachment
484
- extend WhopSDK::Internal::Type::Union
485
-
486
- Variants =
315
+ class UncategorizedAttachment < WhopSDK::Internal::Type::BaseModel
316
+ OrHash =
487
317
  T.type_alias do
488
318
  T.any(
489
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID,
490
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID
319
+ WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment,
320
+ WhopSDK::Internal::AnyHash
491
321
  )
492
322
  end
493
323
 
494
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
495
- OrHash =
496
- T.type_alias do
497
- T.any(
498
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID,
499
- WhopSDK::Internal::AnyHash
500
- )
501
- end
502
-
503
- # This ID should be used the first time you upload an attachment. It is the ID of
504
- # the direct upload that was created when uploading the file to S3 via the
505
- # mediaDirectUpload mutation.
506
- sig { returns(String) }
507
- attr_accessor :direct_upload_id
508
-
509
- # Input for an attachment
510
- sig { params(direct_upload_id: String).returns(T.attached_class) }
511
- def self.new(
512
- # This ID should be used the first time you upload an attachment. It is the ID of
513
- # the direct upload that was created when uploading the file to S3 via the
514
- # mediaDirectUpload mutation.
515
- direct_upload_id:
516
- )
517
- end
518
-
519
- sig { override.returns({ direct_upload_id: String }) }
520
- def to_hash
521
- end
522
- end
523
-
524
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
525
- OrHash =
526
- T.type_alias do
527
- T.any(
528
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID,
529
- WhopSDK::Internal::AnyHash
530
- )
531
- end
532
-
533
- # The ID of an existing attachment object. Use this when updating a resource and
534
- # keeping a subset of the attachments. Don't use this unless you know what you're
535
- # doing.
536
- sig { returns(String) }
537
- attr_accessor :id
538
-
539
- # Input for an attachment
540
- sig { params(id: String).returns(T.attached_class) }
541
- def self.new(
542
- # The ID of an existing attachment object. Use this when updating a resource and
543
- # keeping a subset of the attachments. Don't use this unless you know what you're
544
- # doing.
545
- id:
546
- )
547
- end
324
+ # The ID of an existing file object.
325
+ sig { returns(String) }
326
+ attr_accessor :id
548
327
 
549
- sig { override.returns({ id: String }) }
550
- def to_hash
551
- end
328
+ # A file that does not fit in the other categories.
329
+ sig { params(id: String).returns(T.attached_class) }
330
+ def self.new(
331
+ # The ID of an existing file object.
332
+ id:
333
+ )
552
334
  end
553
335
 
554
- sig do
555
- override.returns(
556
- T::Array[
557
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::Variants
558
- ]
559
- )
560
- end
561
- def self.variants
336
+ sig { override.returns({ id: String }) }
337
+ def to_hash
562
338
  end
563
339
  end
564
340
  end
@@ -23,6 +23,17 @@ module WhopSDK
23
23
  sig { returns(T.nilable(T::Boolean)) }
24
24
  attr_accessor :is_public
25
25
 
26
+ # The logo for the experience
27
+ sig { returns(T.nilable(WhopSDK::ExperienceCreateParams::Logo)) }
28
+ attr_reader :logo
29
+
30
+ sig do
31
+ params(
32
+ logo: T.nilable(WhopSDK::ExperienceCreateParams::Logo::OrHash)
33
+ ).void
34
+ end
35
+ attr_writer :logo
36
+
26
37
  # The name of the experience
27
38
  sig { returns(T.nilable(String)) }
28
39
  attr_accessor :name
@@ -36,6 +47,7 @@ module WhopSDK
36
47
  app_id: String,
37
48
  company_id: String,
38
49
  is_public: T.nilable(T::Boolean),
50
+ logo: T.nilable(WhopSDK::ExperienceCreateParams::Logo::OrHash),
39
51
  name: T.nilable(String),
40
52
  section_id: T.nilable(String),
41
53
  request_options: WhopSDK::RequestOptions::OrHash
@@ -48,6 +60,8 @@ module WhopSDK
48
60
  company_id:,
49
61
  # Whether the experience is publicly accessible
50
62
  is_public: nil,
63
+ # The logo for the experience
64
+ logo: nil,
51
65
  # The name of the experience
52
66
  name: nil,
53
67
  # The ID of the section to create the experience in
@@ -62,6 +76,7 @@ module WhopSDK
62
76
  app_id: String,
63
77
  company_id: String,
64
78
  is_public: T.nilable(T::Boolean),
79
+ logo: T.nilable(WhopSDK::ExperienceCreateParams::Logo),
65
80
  name: T.nilable(String),
66
81
  section_id: T.nilable(String),
67
82
  request_options: WhopSDK::RequestOptions
@@ -70,6 +85,32 @@ module WhopSDK
70
85
  end
71
86
  def to_hash
72
87
  end
88
+
89
+ class Logo < WhopSDK::Internal::Type::BaseModel
90
+ OrHash =
91
+ T.type_alias do
92
+ T.any(
93
+ WhopSDK::ExperienceCreateParams::Logo,
94
+ WhopSDK::Internal::AnyHash
95
+ )
96
+ end
97
+
98
+ # The ID of an existing file object.
99
+ sig { returns(String) }
100
+ attr_accessor :id
101
+
102
+ # The logo for the experience
103
+ sig { params(id: String).returns(T.attached_class) }
104
+ def self.new(
105
+ # The ID of an existing file object.
106
+ id:
107
+ )
108
+ end
109
+
110
+ sig { override.returns({ id: String }) }
111
+ def to_hash
112
+ end
113
+ end
73
114
  end
74
115
  end
75
116
  end