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
@@ -22,9 +22,9 @@ module WhopSDK
22
22
  # @!attribute cancellation_policy_attachment
23
23
  # A file containing the cancellation policy from the company.
24
24
  #
25
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID, nil]
25
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment, nil]
26
26
  optional :cancellation_policy_attachment,
27
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment },
27
+ -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment },
28
28
  nil?: true
29
29
 
30
30
  # @!attribute cancellation_policy_disclosure
@@ -36,9 +36,9 @@ module WhopSDK
36
36
  # @!attribute customer_communication_attachment
37
37
  # A file containing the customer communication from the company (An image).
38
38
  #
39
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID, nil]
39
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment, nil]
40
40
  optional :customer_communication_attachment,
41
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment },
41
+ -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment },
42
42
  nil?: true
43
43
 
44
44
  # @!attribute customer_email_address
@@ -68,9 +68,9 @@ module WhopSDK
68
68
  # @!attribute refund_policy_attachment
69
69
  # A file containing the refund policy from the company.
70
70
  #
71
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID, nil]
71
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment, nil]
72
72
  optional :refund_policy_attachment,
73
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment },
73
+ -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment },
74
74
  nil?: true
75
75
 
76
76
  # @!attribute refund_policy_disclosure
@@ -94,9 +94,9 @@ module WhopSDK
94
94
  # @!attribute uncategorized_attachment
95
95
  # A file that does not fit in the other categories.
96
96
  #
97
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID, nil]
97
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment, nil]
98
98
  optional :uncategorized_attachment,
99
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment },
99
+ -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment },
100
100
  nil?: true
101
101
 
102
102
  # @!method initialize(access_activity_log: nil, billing_address: nil, cancellation_policy_attachment: nil, cancellation_policy_disclosure: nil, customer_communication_attachment: nil, customer_email_address: nil, customer_name: nil, notes: nil, product_description: nil, refund_policy_attachment: nil, refund_policy_disclosure: nil, refund_refusal_explanation: nil, service_date: nil, uncategorized_attachment: nil, request_options: {})
@@ -104,11 +104,11 @@ module WhopSDK
104
104
  #
105
105
  # @param billing_address [String, nil] The billing address of the user from their payment details.
106
106
  #
107
- # @param cancellation_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID, nil] A file containing the cancellation policy from the company.
107
+ # @param cancellation_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment, nil] A file containing the cancellation policy from the company.
108
108
  #
109
109
  # @param cancellation_policy_disclosure [String, nil] A cancellation policy disclosure from the company.
110
110
  #
111
- # @param customer_communication_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID, nil] A file containing the customer communication from the company (An image).
111
+ # @param customer_communication_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment, nil] A file containing the customer communication from the company (An image).
112
112
  #
113
113
  # @param customer_email_address [String, nil] The email of the customer from their payment details.
114
114
  #
@@ -118,7 +118,7 @@ module WhopSDK
118
118
  #
119
119
  # @param product_description [String, nil] The description of the product from the company.
120
120
  #
121
- # @param refund_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID, nil] A file containing the refund policy from the company.
121
+ # @param refund_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment, nil] A file containing the refund policy from the company.
122
122
  #
123
123
  # @param refund_policy_disclosure [String, nil] A refund policy disclosure from the company.
124
124
  #
@@ -126,216 +126,60 @@ module WhopSDK
126
126
  #
127
127
  # @param service_date [String, nil] When the product was delivered by the company.
128
128
  #
129
- # @param uncategorized_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID, nil] A file that does not fit in the other categories.
129
+ # @param uncategorized_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment, nil] A file that does not fit in the other categories.
130
130
  #
131
131
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
132
132
 
133
- # A file containing the cancellation policy from the company.
134
- module CancellationPolicyAttachment
135
- extend WhopSDK::Internal::Type::Union
136
-
137
- # Input for an attachment
138
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID }
139
-
140
- # Input for an attachment
141
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID }
142
-
143
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
144
- # @!attribute direct_upload_id
145
- # This ID should be used the first time you upload an attachment. It is the ID of
146
- # the direct upload that was created when uploading the file to S3 via the
147
- # mediaDirectUpload mutation.
148
- #
149
- # @return [String]
150
- required :direct_upload_id, String
151
-
152
- # @!method initialize(direct_upload_id:)
153
- # Some parameter documentations has been truncated, see
154
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID}
155
- # for more details.
156
- #
157
- # Input for an attachment
158
- #
159
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
160
- end
161
-
162
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
163
- # @!attribute id
164
- # The ID of an existing attachment object. Use this when updating a resource and
165
- # keeping a subset of the attachments. Don't use this unless you know what you're
166
- # doing.
167
- #
168
- # @return [String]
169
- required :id, String
170
-
171
- # @!method initialize(id:)
172
- # Some parameter documentations has been truncated, see
173
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID}
174
- # for more details.
175
- #
176
- # Input for an attachment
177
- #
178
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
179
- end
180
-
181
- # @!method self.variants
182
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID)]
133
+ class CancellationPolicyAttachment < WhopSDK::Internal::Type::BaseModel
134
+ # @!attribute id
135
+ # The ID of an existing file object.
136
+ #
137
+ # @return [String]
138
+ required :id, String
139
+
140
+ # @!method initialize(id:)
141
+ # A file containing the cancellation policy from the company.
142
+ #
143
+ # @param id [String] The ID of an existing file object.
183
144
  end
184
145
 
185
- # A file containing the customer communication from the company (An image).
186
- module CustomerCommunicationAttachment
187
- extend WhopSDK::Internal::Type::Union
188
-
189
- # Input for an attachment
190
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID }
191
-
192
- # Input for an attachment
193
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID }
194
-
195
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
196
- # @!attribute direct_upload_id
197
- # This ID should be used the first time you upload an attachment. It is the ID of
198
- # the direct upload that was created when uploading the file to S3 via the
199
- # mediaDirectUpload mutation.
200
- #
201
- # @return [String]
202
- required :direct_upload_id, String
203
-
204
- # @!method initialize(direct_upload_id:)
205
- # Some parameter documentations has been truncated, see
206
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID}
207
- # for more details.
208
- #
209
- # Input for an attachment
210
- #
211
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
212
- end
213
-
214
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
215
- # @!attribute id
216
- # The ID of an existing attachment object. Use this when updating a resource and
217
- # keeping a subset of the attachments. Don't use this unless you know what you're
218
- # doing.
219
- #
220
- # @return [String]
221
- required :id, String
222
-
223
- # @!method initialize(id:)
224
- # Some parameter documentations has been truncated, see
225
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID}
226
- # for more details.
227
- #
228
- # Input for an attachment
229
- #
230
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
231
- end
232
-
233
- # @!method self.variants
234
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID)]
146
+ class CustomerCommunicationAttachment < WhopSDK::Internal::Type::BaseModel
147
+ # @!attribute id
148
+ # The ID of an existing file object.
149
+ #
150
+ # @return [String]
151
+ required :id, String
152
+
153
+ # @!method initialize(id:)
154
+ # A file containing the customer communication from the company (An image).
155
+ #
156
+ # @param id [String] The ID of an existing file object.
235
157
  end
236
158
 
237
- # A file containing the refund policy from the company.
238
- module RefundPolicyAttachment
239
- extend WhopSDK::Internal::Type::Union
240
-
241
- # Input for an attachment
242
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID }
243
-
244
- # Input for an attachment
245
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID }
246
-
247
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
248
- # @!attribute direct_upload_id
249
- # This ID should be used the first time you upload an attachment. It is the ID of
250
- # the direct upload that was created when uploading the file to S3 via the
251
- # mediaDirectUpload mutation.
252
- #
253
- # @return [String]
254
- required :direct_upload_id, String
255
-
256
- # @!method initialize(direct_upload_id:)
257
- # Some parameter documentations has been truncated, see
258
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID}
259
- # for more details.
260
- #
261
- # Input for an attachment
262
- #
263
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
264
- end
265
-
266
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
267
- # @!attribute id
268
- # The ID of an existing attachment object. Use this when updating a resource and
269
- # keeping a subset of the attachments. Don't use this unless you know what you're
270
- # doing.
271
- #
272
- # @return [String]
273
- required :id, String
274
-
275
- # @!method initialize(id:)
276
- # Some parameter documentations has been truncated, see
277
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID}
278
- # for more details.
279
- #
280
- # Input for an attachment
281
- #
282
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
283
- end
284
-
285
- # @!method self.variants
286
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID)]
159
+ class RefundPolicyAttachment < WhopSDK::Internal::Type::BaseModel
160
+ # @!attribute id
161
+ # The ID of an existing file object.
162
+ #
163
+ # @return [String]
164
+ required :id, String
165
+
166
+ # @!method initialize(id:)
167
+ # A file containing the refund policy from the company.
168
+ #
169
+ # @param id [String] The ID of an existing file object.
287
170
  end
288
171
 
289
- # A file that does not fit in the other categories.
290
- module UncategorizedAttachment
291
- extend WhopSDK::Internal::Type::Union
292
-
293
- # Input for an attachment
294
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID }
295
-
296
- # Input for an attachment
297
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID }
298
-
299
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
300
- # @!attribute direct_upload_id
301
- # This ID should be used the first time you upload an attachment. It is the ID of
302
- # the direct upload that was created when uploading the file to S3 via the
303
- # mediaDirectUpload mutation.
304
- #
305
- # @return [String]
306
- required :direct_upload_id, String
307
-
308
- # @!method initialize(direct_upload_id:)
309
- # Some parameter documentations has been truncated, see
310
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID}
311
- # for more details.
312
- #
313
- # Input for an attachment
314
- #
315
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
316
- end
317
-
318
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
319
- # @!attribute id
320
- # The ID of an existing attachment object. Use this when updating a resource and
321
- # keeping a subset of the attachments. Don't use this unless you know what you're
322
- # doing.
323
- #
324
- # @return [String]
325
- required :id, String
326
-
327
- # @!method initialize(id:)
328
- # Some parameter documentations has been truncated, see
329
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID}
330
- # for more details.
331
- #
332
- # Input for an attachment
333
- #
334
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
335
- end
336
-
337
- # @!method self.variants
338
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID)]
172
+ class UncategorizedAttachment < WhopSDK::Internal::Type::BaseModel
173
+ # @!attribute id
174
+ # The ID of an existing file object.
175
+ #
176
+ # @return [String]
177
+ required :id, String
178
+
179
+ # @!method initialize(id:)
180
+ # A file that does not fit in the other categories.
181
+ #
182
+ # @param id [String] The ID of an existing file object.
339
183
  end
340
184
  end
341
185
  end
@@ -25,6 +25,12 @@ module WhopSDK
25
25
  # @return [Boolean, nil]
26
26
  optional :is_public, WhopSDK::Internal::Type::Boolean, nil?: true
27
27
 
28
+ # @!attribute logo
29
+ # The logo for the experience
30
+ #
31
+ # @return [WhopSDK::Models::ExperienceCreateParams::Logo, nil]
32
+ optional :logo, -> { WhopSDK::ExperienceCreateParams::Logo }, nil?: true
33
+
28
34
  # @!attribute name
29
35
  # The name of the experience
30
36
  #
@@ -37,18 +43,33 @@ module WhopSDK
37
43
  # @return [String, nil]
38
44
  optional :section_id, String, nil?: true
39
45
 
40
- # @!method initialize(app_id:, company_id:, is_public: nil, name: nil, section_id: nil, request_options: {})
46
+ # @!method initialize(app_id:, company_id:, is_public: nil, logo: nil, name: nil, section_id: nil, request_options: {})
41
47
  # @param app_id [String] The ID of the app to create the experience for
42
48
  #
43
49
  # @param company_id [String] The ID of the company to create the experience for
44
50
  #
45
51
  # @param is_public [Boolean, nil] Whether the experience is publicly accessible
46
52
  #
53
+ # @param logo [WhopSDK::Models::ExperienceCreateParams::Logo, nil] The logo for the experience
54
+ #
47
55
  # @param name [String, nil] The name of the experience
48
56
  #
49
57
  # @param section_id [String, nil] The ID of the section to create the experience in
50
58
  #
51
59
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
60
+
61
+ class Logo < WhopSDK::Internal::Type::BaseModel
62
+ # @!attribute id
63
+ # The ID of an existing file object.
64
+ #
65
+ # @return [String]
66
+ required :id, String
67
+
68
+ # @!method initialize(id:)
69
+ # The logo for the experience
70
+ #
71
+ # @param id [String] The ID of an existing file object.
72
+ end
52
73
  end
53
74
  end
54
75
  end
@@ -22,8 +22,8 @@ module WhopSDK
22
22
  # @!attribute logo
23
23
  # The logo for the experience
24
24
  #
25
- # @return [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil]
26
- optional :logo, union: -> { WhopSDK::ExperienceUpdateParams::Logo }, nil?: true
25
+ # @return [WhopSDK::Models::ExperienceUpdateParams::Logo, nil]
26
+ optional :logo, -> { WhopSDK::ExperienceUpdateParams::Logo }, nil?: true
27
27
 
28
28
  # @!attribute name
29
29
  # The name of the experience.
@@ -48,7 +48,7 @@ module WhopSDK
48
48
  #
49
49
  # @param is_public [Boolean, nil] Whether the experience is publicly accessible.
50
50
  #
51
- # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the experience
51
+ # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo, nil] The logo for the experience
52
52
  #
53
53
  # @param name [String, nil] The name of the experience.
54
54
  #
@@ -69,56 +69,17 @@ module WhopSDK
69
69
  # @return [Array<Symbol>]
70
70
  end
71
71
 
72
- # The logo for the experience
73
- module Logo
74
- extend WhopSDK::Internal::Type::Union
75
-
76
- # Input for an attachment
77
- variant -> { WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID }
78
-
79
- # Input for an attachment
80
- variant -> { WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID }
81
-
82
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
83
- # @!attribute direct_upload_id
84
- # This ID should be used the first time you upload an attachment. It is the ID of
85
- # the direct upload that was created when uploading the file to S3 via the
86
- # mediaDirectUpload mutation.
87
- #
88
- # @return [String]
89
- required :direct_upload_id, String
90
-
91
- # @!method initialize(direct_upload_id:)
92
- # Some parameter documentations has been truncated, see
93
- # {WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID}
94
- # for more details.
95
- #
96
- # Input for an attachment
97
- #
98
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
99
- end
100
-
101
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
102
- # @!attribute id
103
- # The ID of an existing attachment object. Use this when updating a resource and
104
- # keeping a subset of the attachments. Don't use this unless you know what you're
105
- # doing.
106
- #
107
- # @return [String]
108
- required :id, String
109
-
110
- # @!method initialize(id:)
111
- # Some parameter documentations has been truncated, see
112
- # {WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID} for more
113
- # details.
114
- #
115
- # Input for an attachment
116
- #
117
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
118
- end
119
-
120
- # @!method self.variants
121
- # @return [Array(WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID)]
72
+ class Logo < WhopSDK::Internal::Type::BaseModel
73
+ # @!attribute id
74
+ # The ID of an existing file object.
75
+ #
76
+ # @return [String]
77
+ required :id, String
78
+
79
+ # @!method initialize(id:)
80
+ # The logo for the experience
81
+ #
82
+ # @param id [String] The ID of an existing file object.
122
83
  end
123
84
  end
124
85
  end
@@ -16,9 +16,9 @@ module WhopSDK
16
16
  # @!attribute attachments
17
17
  # The attachments for this post
18
18
  #
19
- # @return [Array<WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID>, nil]
19
+ # @return [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil]
20
20
  optional :attachments,
21
- -> { WhopSDK::Internal::Type::ArrayOf[union: WhopSDK::ForumPostCreateParams::Attachment] },
21
+ -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::ForumPostCreateParams::Attachment] },
22
22
  nil?: true
23
23
 
24
24
  # @!attribute content
@@ -86,7 +86,7 @@ module WhopSDK
86
86
  #
87
87
  # @param experience_id [String] The experience to create this post in
88
88
  #
89
- # @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
89
+ # @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil] The attachments for this post
90
90
  #
91
91
  # @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
92
92
  #
@@ -108,56 +108,17 @@ module WhopSDK
108
108
  #
109
109
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
110
110
 
111
- # Input for an attachment
112
- module Attachment
113
- extend WhopSDK::Internal::Type::Union
114
-
115
- # Input for an attachment
116
- variant -> { WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID }
117
-
118
- # Input for an attachment
119
- variant -> { WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID }
120
-
121
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
122
- # @!attribute direct_upload_id
123
- # This ID should be used the first time you upload an attachment. It is the ID of
124
- # the direct upload that was created when uploading the file to S3 via the
125
- # mediaDirectUpload mutation.
126
- #
127
- # @return [String]
128
- required :direct_upload_id, String
129
-
130
- # @!method initialize(direct_upload_id:)
131
- # Some parameter documentations has been truncated, see
132
- # {WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID}
133
- # for more details.
134
- #
135
- # Input for an attachment
136
- #
137
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
138
- end
139
-
140
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
141
- # @!attribute id
142
- # The ID of an existing attachment object. Use this when updating a resource and
143
- # keeping a subset of the attachments. Don't use this unless you know what you're
144
- # doing.
145
- #
146
- # @return [String]
147
- required :id, String
148
-
149
- # @!method initialize(id:)
150
- # Some parameter documentations has been truncated, see
151
- # {WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID} for
152
- # more details.
153
- #
154
- # Input for an attachment
155
- #
156
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
157
- end
111
+ class Attachment < WhopSDK::Internal::Type::BaseModel
112
+ # @!attribute id
113
+ # The ID of an existing file object.
114
+ #
115
+ # @return [String]
116
+ required :id, String
158
117
 
159
- # @!method self.variants
160
- # @return [Array(WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID)]
118
+ # @!method initialize(id:)
119
+ # Input for an attachment
120
+ #
121
+ # @param id [String] The ID of an existing file object.
161
122
  end
162
123
 
163
124
  class Poll < WhopSDK::Internal::Type::BaseModel
@@ -10,9 +10,9 @@ module WhopSDK
10
10
  # @!attribute attachments
11
11
  # The attachments for this post
12
12
  #
13
- # @return [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID>, nil]
13
+ # @return [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>, nil]
14
14
  optional :attachments,
15
- -> { WhopSDK::Internal::Type::ArrayOf[union: WhopSDK::ForumPostUpdateParams::Attachment] },
15
+ -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::ForumPostUpdateParams::Attachment] },
16
16
  nil?: true
17
17
 
18
18
  # @!attribute content
@@ -44,7 +44,7 @@ module WhopSDK
44
44
  # Some parameter documentations has been truncated, see
45
45
  # {WhopSDK::Models::ForumPostUpdateParams} for more details.
46
46
  #
47
- # @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
47
+ # @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>, nil] The attachments for this post
48
48
  #
49
49
  # @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
50
50
  #
@@ -56,56 +56,17 @@ module WhopSDK
56
56
  #
57
57
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
58
58
 
59
- # Input for an attachment
60
- module Attachment
61
- extend WhopSDK::Internal::Type::Union
59
+ class Attachment < WhopSDK::Internal::Type::BaseModel
60
+ # @!attribute id
61
+ # The ID of an existing file object.
62
+ #
63
+ # @return [String]
64
+ required :id, String
62
65
 
63
- # Input for an attachment
64
- variant -> { WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID }
65
-
66
- # Input for an attachment
67
- variant -> { WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID }
68
-
69
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
70
- # @!attribute direct_upload_id
71
- # This ID should be used the first time you upload an attachment. It is the ID of
72
- # the direct upload that was created when uploading the file to S3 via the
73
- # mediaDirectUpload mutation.
74
- #
75
- # @return [String]
76
- required :direct_upload_id, String
77
-
78
- # @!method initialize(direct_upload_id:)
79
- # Some parameter documentations has been truncated, see
80
- # {WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID}
81
- # for more details.
82
- #
83
- # Input for an attachment
84
- #
85
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
86
- end
87
-
88
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
89
- # @!attribute id
90
- # The ID of an existing attachment object. Use this when updating a resource and
91
- # keeping a subset of the attachments. Don't use this unless you know what you're
92
- # doing.
93
- #
94
- # @return [String]
95
- required :id, String
96
-
97
- # @!method initialize(id:)
98
- # Some parameter documentations has been truncated, see
99
- # {WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID} for
100
- # more details.
101
- #
102
- # Input for an attachment
103
- #
104
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
105
- end
106
-
107
- # @!method self.variants
108
- # @return [Array(WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID)]
66
+ # @!method initialize(id:)
67
+ # Input for an attachment
68
+ #
69
+ # @param id [String] The ID of an existing file object.
109
70
  end
110
71
  end
111
72
  end