whop_sdk 0.0.3 → 0.0.4

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 (155) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +4 -0
  5. data/lib/whop_sdk/models/app_build_create_params.rb +53 -29
  6. data/lib/whop_sdk/models/app_update_params.rb +53 -29
  7. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +115 -39
  8. data/lib/whop_sdk/models/company.rb +13 -1
  9. data/lib/whop_sdk/models/company_create_params.rb +46 -0
  10. data/lib/whop_sdk/models/company_list_params.rb +62 -0
  11. data/lib/whop_sdk/models/company_list_response.rb +175 -0
  12. data/lib/whop_sdk/models/course_create_params.rb +75 -30
  13. data/lib/whop_sdk/models/course_lesson_update_params.rb +204 -83
  14. data/lib/whop_sdk/models/course_student_list_params.rb +62 -0
  15. data/lib/whop_sdk/models/course_student_list_response.rb +97 -0
  16. data/lib/whop_sdk/models/course_student_retrieve_params.rb +14 -0
  17. data/lib/whop_sdk/models/course_student_retrieve_response.rb +149 -0
  18. data/lib/whop_sdk/models/course_update_params.rb +51 -27
  19. data/lib/whop_sdk/models/experience_update_params.rb +53 -29
  20. data/lib/whop_sdk/models/forum_post_create_params.rb +51 -27
  21. data/lib/whop_sdk/models/forum_post_update_params.rb +51 -27
  22. data/lib/whop_sdk/models/invoice_create_params.rb +48 -32
  23. data/lib/whop_sdk/models/lesson.rb +16 -8
  24. data/lib/whop_sdk/models/message_create_params.rb +51 -27
  25. data/lib/whop_sdk/models/message_update_params.rb +51 -27
  26. data/lib/whop_sdk/models/payment.rb +10 -1
  27. data/lib/whop_sdk/models/payment_list_response.rb +10 -1
  28. data/lib/whop_sdk/models/payment_method_types.rb +2 -1
  29. data/lib/whop_sdk/models/plan.rb +48 -1
  30. data/lib/whop_sdk/models/plan_create_params.rb +97 -22
  31. data/lib/whop_sdk/models/plan_list_response.rb +51 -1
  32. data/lib/whop_sdk/models/plan_update_params.rb +97 -22
  33. data/lib/whop_sdk/models/product_update_params.rb +53 -29
  34. data/lib/whop_sdk/models/transfer.rb +9 -1
  35. data/lib/whop_sdk/models/transfer_create_params.rb +9 -1
  36. data/lib/whop_sdk/models/transfer_list_response.rb +9 -1
  37. data/lib/whop_sdk/models.rb +8 -0
  38. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  39. data/lib/whop_sdk/resources/apps.rb +1 -1
  40. data/lib/whop_sdk/resources/checkout_configurations.rb +6 -6
  41. data/lib/whop_sdk/resources/companies.rb +70 -0
  42. data/lib/whop_sdk/resources/course_lesson_interactions.rb +2 -2
  43. data/lib/whop_sdk/resources/course_lessons.rb +7 -3
  44. data/lib/whop_sdk/resources/course_students.rb +76 -0
  45. data/lib/whop_sdk/resources/courses.rb +10 -3
  46. data/lib/whop_sdk/resources/experiences.rb +1 -1
  47. data/lib/whop_sdk/resources/forum_posts.rb +2 -2
  48. data/lib/whop_sdk/resources/invoices.rb +11 -11
  49. data/lib/whop_sdk/resources/messages.rb +2 -2
  50. data/lib/whop_sdk/resources/plans.rb +8 -4
  51. data/lib/whop_sdk/resources/products.rb +1 -1
  52. data/lib/whop_sdk/resources/transfers.rb +3 -1
  53. data/lib/whop_sdk/version.rb +1 -1
  54. data/lib/whop_sdk.rb +8 -1
  55. data/rbi/whop_sdk/client.rbi +3 -0
  56. data/rbi/whop_sdk/models/app_build_create_params.rbi +80 -40
  57. data/rbi/whop_sdk/models/app_update_params.rbi +86 -37
  58. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +192 -64
  59. data/rbi/whop_sdk/models/company.rbi +10 -0
  60. data/rbi/whop_sdk/models/company_create_params.rbi +67 -0
  61. data/rbi/whop_sdk/models/company_list_params.rbi +83 -0
  62. data/rbi/whop_sdk/models/company_list_response.rbi +235 -0
  63. data/rbi/whop_sdk/models/course_create_params.rbi +104 -38
  64. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +326 -114
  65. data/rbi/whop_sdk/models/course_student_list_params.rbi +83 -0
  66. data/rbi/whop_sdk/models/course_student_list_response.rbi +142 -0
  67. data/rbi/whop_sdk/models/course_student_retrieve_params.rbi +30 -0
  68. data/rbi/whop_sdk/models/course_student_retrieve_response.rbi +250 -0
  69. data/rbi/whop_sdk/models/course_update_params.rbi +84 -38
  70. data/rbi/whop_sdk/models/experience_update_params.rbi +84 -38
  71. data/rbi/whop_sdk/models/forum_post_create_params.rbi +85 -32
  72. data/rbi/whop_sdk/models/forum_post_update_params.rbi +85 -32
  73. data/rbi/whop_sdk/models/invoice_create_params.rbi +58 -44
  74. data/rbi/whop_sdk/models/lesson.rbi +14 -10
  75. data/rbi/whop_sdk/models/message_create_params.rbi +85 -32
  76. data/rbi/whop_sdk/models/message_update_params.rbi +85 -32
  77. data/rbi/whop_sdk/models/payment.rbi +10 -0
  78. data/rbi/whop_sdk/models/payment_list_response.rbi +10 -0
  79. data/rbi/whop_sdk/models/payment_method_types.rbi +3 -1
  80. data/rbi/whop_sdk/models/plan.rbi +82 -0
  81. data/rbi/whop_sdk/models/plan_create_params.rbi +174 -32
  82. data/rbi/whop_sdk/models/plan_list_response.rbi +94 -0
  83. data/rbi/whop_sdk/models/plan_update_params.rbi +174 -32
  84. data/rbi/whop_sdk/models/product_update_params.rbi +83 -39
  85. data/rbi/whop_sdk/models/transfer.rbi +8 -0
  86. data/rbi/whop_sdk/models/transfer_create_params.rbi +8 -0
  87. data/rbi/whop_sdk/models/transfer_list_response.rbi +8 -0
  88. data/rbi/whop_sdk/models.rbi +8 -0
  89. data/rbi/whop_sdk/resources/app_builds.rbi +5 -1
  90. data/rbi/whop_sdk/resources/apps.rbi +7 -1
  91. data/rbi/whop_sdk/resources/checkout_configurations.rbi +6 -7
  92. data/rbi/whop_sdk/resources/companies.rbi +63 -0
  93. data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +2 -2
  94. data/rbi/whop_sdk/resources/course_lessons.rbi +21 -2
  95. data/rbi/whop_sdk/resources/course_students.rbi +65 -0
  96. data/rbi/whop_sdk/resources/courses.rbi +22 -2
  97. data/rbi/whop_sdk/resources/experiences.rbi +7 -1
  98. data/rbi/whop_sdk/resources/forum_posts.rbi +12 -2
  99. data/rbi/whop_sdk/resources/invoices.rbi +18 -18
  100. data/rbi/whop_sdk/resources/messages.rbi +12 -2
  101. data/rbi/whop_sdk/resources/plans.rbi +28 -2
  102. data/rbi/whop_sdk/resources/products.rbi +6 -1
  103. data/rbi/whop_sdk/resources/transfers.rbi +3 -0
  104. data/sig/whop_sdk/client.rbs +2 -0
  105. data/sig/whop_sdk/models/app_build_create_params.rbs +29 -10
  106. data/sig/whop_sdk/models/app_update_params.rbs +29 -10
  107. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +72 -21
  108. data/sig/whop_sdk/models/company.rbs +5 -0
  109. data/sig/whop_sdk/models/company_create_params.rbs +41 -0
  110. data/sig/whop_sdk/models/company_list_params.rbs +51 -0
  111. data/sig/whop_sdk/models/company_list_response.rbs +109 -0
  112. data/sig/whop_sdk/models/course_create_params.rbs +39 -10
  113. data/sig/whop_sdk/models/course_lesson_update_params.rbs +116 -30
  114. data/sig/whop_sdk/models/course_student_list_params.rbs +51 -0
  115. data/sig/whop_sdk/models/course_student_list_response.rbs +64 -0
  116. data/sig/whop_sdk/models/course_student_retrieve_params.rbs +15 -0
  117. data/sig/whop_sdk/models/course_student_retrieve_response.rbs +106 -0
  118. data/sig/whop_sdk/models/course_update_params.rbs +29 -10
  119. data/sig/whop_sdk/models/experience_update_params.rbs +29 -10
  120. data/sig/whop_sdk/models/forum_post_create_params.rbs +29 -10
  121. data/sig/whop_sdk/models/forum_post_update_params.rbs +29 -10
  122. data/sig/whop_sdk/models/invoice_create_params.rbs +28 -18
  123. data/sig/whop_sdk/models/lesson.rbs +8 -8
  124. data/sig/whop_sdk/models/message_create_params.rbs +29 -10
  125. data/sig/whop_sdk/models/message_update_params.rbs +29 -10
  126. data/sig/whop_sdk/models/payment.rbs +5 -0
  127. data/sig/whop_sdk/models/payment_list_response.rbs +5 -0
  128. data/sig/whop_sdk/models/payment_method_types.rbs +4 -2
  129. data/sig/whop_sdk/models/plan.rbs +32 -0
  130. data/sig/whop_sdk/models/plan_create_params.rbs +61 -10
  131. data/sig/whop_sdk/models/plan_list_response.rbs +32 -0
  132. data/sig/whop_sdk/models/plan_update_params.rbs +61 -10
  133. data/sig/whop_sdk/models/product_update_params.rbs +29 -10
  134. data/sig/whop_sdk/models/transfer.rbs +5 -0
  135. data/sig/whop_sdk/models/transfer_create_params.rbs +5 -0
  136. data/sig/whop_sdk/models/transfer_list_response.rbs +5 -0
  137. data/sig/whop_sdk/models.rbs +8 -0
  138. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  139. data/sig/whop_sdk/resources/apps.rbs +1 -1
  140. data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -2
  141. data/sig/whop_sdk/resources/companies.rbs +18 -0
  142. data/sig/whop_sdk/resources/course_lessons.rbs +4 -2
  143. data/sig/whop_sdk/resources/course_students.rbs +22 -0
  144. data/sig/whop_sdk/resources/courses.rbs +4 -2
  145. data/sig/whop_sdk/resources/experiences.rbs +1 -1
  146. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  147. data/sig/whop_sdk/resources/invoices.rbs +5 -5
  148. data/sig/whop_sdk/resources/messages.rbs +2 -2
  149. data/sig/whop_sdk/resources/plans.rbs +4 -2
  150. data/sig/whop_sdk/resources/products.rbs +1 -1
  151. data/sig/whop_sdk/resources/transfers.rbs +1 -0
  152. metadata +26 -5
  153. data/lib/whop_sdk/models/invoice_create_response.rb +0 -27
  154. data/rbi/whop_sdk/models/invoice_create_response.rbi +0 -49
  155. data/sig/whop_sdk/models/invoice_create_response.rbs +0 -19
@@ -2,11 +2,11 @@ module WhopSDK
2
2
  module Models
3
3
  type checkout_configuration_create_params =
4
4
  {
5
+ plan: WhopSDK::CheckoutConfigurationCreateParams::Plan,
5
6
  affiliate_code: String?,
6
7
  metadata: ::Hash[Symbol, top]?,
7
- plan: WhopSDK::CheckoutConfigurationCreateParams::Plan?,
8
- plan_id: String?,
9
- redirect_url: String?
8
+ redirect_url: String?,
9
+ plan_id: String
10
10
  }
11
11
  & WhopSDK::Internal::Type::request_parameters
12
12
 
@@ -14,31 +14,31 @@ module WhopSDK
14
14
  extend WhopSDK::Internal::Type::RequestParameters::Converter
15
15
  include WhopSDK::Internal::Type::RequestParameters
16
16
 
17
+ attr_accessor plan: WhopSDK::CheckoutConfigurationCreateParams::Plan
18
+
17
19
  attr_accessor affiliate_code: String?
18
20
 
19
21
  attr_accessor metadata: ::Hash[Symbol, top]?
20
22
 
21
- attr_accessor plan: WhopSDK::CheckoutConfigurationCreateParams::Plan?
22
-
23
- attr_accessor plan_id: String?
24
-
25
23
  attr_accessor redirect_url: String?
26
24
 
25
+ attr_accessor plan_id: String
26
+
27
27
  def initialize: (
28
+ plan: WhopSDK::CheckoutConfigurationCreateParams::Plan,
29
+ plan_id: String,
28
30
  ?affiliate_code: String?,
29
31
  ?metadata: ::Hash[Symbol, top]?,
30
- ?plan: WhopSDK::CheckoutConfigurationCreateParams::Plan?,
31
- ?plan_id: String?,
32
32
  ?redirect_url: String?,
33
33
  ?request_options: WhopSDK::request_opts
34
34
  ) -> void
35
35
 
36
36
  def to_hash: -> {
37
+ plan: WhopSDK::CheckoutConfigurationCreateParams::Plan,
37
38
  affiliate_code: String?,
38
39
  metadata: ::Hash[Symbol, top]?,
39
- plan: WhopSDK::CheckoutConfigurationCreateParams::Plan?,
40
- plan_id: String?,
41
40
  redirect_url: String?,
41
+ plan_id: String,
42
42
  request_options: WhopSDK::RequestOptions
43
43
  }
44
44
 
@@ -51,10 +51,11 @@ module WhopSDK
51
51
  description: String?,
52
52
  expiration_days: Integer?,
53
53
  force_create_new_plan: bool?,
54
- image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?,
54
+ image: WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::image?,
55
55
  initial_price: Float?,
56
56
  internal_notes: String?,
57
57
  override_tax_type: WhopSDK::Models::tax_type?,
58
+ payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration?,
58
59
  plan_type: WhopSDK::Models::plan_type?,
59
60
  product: WhopSDK::CheckoutConfigurationCreateParams::Plan::Product?,
60
61
  product_id: String?,
@@ -80,7 +81,7 @@ module WhopSDK
80
81
 
81
82
  attr_accessor force_create_new_plan: bool?
82
83
 
83
- attr_accessor image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?
84
+ attr_accessor image: WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::image?
84
85
 
85
86
  attr_accessor initial_price: Float?
86
87
 
@@ -88,6 +89,8 @@ module WhopSDK
88
89
 
89
90
  attr_accessor override_tax_type: WhopSDK::Models::tax_type?
90
91
 
92
+ attr_accessor payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration?
93
+
91
94
  attr_accessor plan_type: WhopSDK::Models::plan_type?
92
95
 
93
96
  attr_accessor product: WhopSDK::CheckoutConfigurationCreateParams::Plan::Product?
@@ -112,10 +115,11 @@ module WhopSDK
112
115
  ?description: String?,
113
116
  ?expiration_days: Integer?,
114
117
  ?force_create_new_plan: bool?,
115
- ?image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?,
118
+ ?image: WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::image?,
116
119
  ?initial_price: Float?,
117
120
  ?internal_notes: String?,
118
121
  ?override_tax_type: WhopSDK::Models::tax_type?,
122
+ ?payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration?,
119
123
  ?plan_type: WhopSDK::Models::plan_type?,
120
124
  ?product: WhopSDK::CheckoutConfigurationCreateParams::Plan::Product?,
121
125
  ?product_id: String?,
@@ -134,10 +138,11 @@ module WhopSDK
134
138
  description: String?,
135
139
  expiration_days: Integer?,
136
140
  force_create_new_plan: bool?,
137
- image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?,
141
+ image: WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::image?,
138
142
  initial_price: Float?,
139
143
  internal_notes: String?,
140
144
  override_tax_type: WhopSDK::Models::tax_type?,
145
+ payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration?,
141
146
  plan_type: WhopSDK::Models::plan_type?,
142
147
  product: WhopSDK::CheckoutConfigurationCreateParams::Plan::Product?,
143
148
  product_id: String?,
@@ -190,16 +195,62 @@ module WhopSDK
190
195
  }
191
196
  end
192
197
 
193
- type image = { id: String?, direct_upload_id: String? }
198
+ type image =
199
+ WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID
200
+ | WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID
194
201
 
195
- class Image < WhopSDK::Internal::Type::BaseModel
196
- attr_accessor id: String?
202
+ module Image
203
+ extend WhopSDK::Internal::Type::Union
204
+
205
+ type attachment_input_with_direct_upload_id =
206
+ { direct_upload_id: String }
207
+
208
+ class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
209
+ attr_accessor direct_upload_id: String
210
+
211
+ def initialize: (direct_upload_id: String) -> void
212
+
213
+ def to_hash: -> { direct_upload_id: String }
214
+ end
215
+
216
+ type attachment_input_with_id = { id: String }
217
+
218
+ class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
219
+ attr_accessor id: String
197
220
 
198
- attr_accessor direct_upload_id: String?
221
+ def initialize: (id: String) -> void
199
222
 
200
- def initialize: (?id: String?, ?direct_upload_id: String?) -> void
223
+ def to_hash: -> { id: String }
224
+ end
201
225
 
202
- def to_hash: -> { id: String?, direct_upload_id: String? }
226
+ def self?.variants: -> ::Array[WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::image]
227
+ end
228
+
229
+ type payment_method_configuration =
230
+ {
231
+ disabled: ::Array[WhopSDK::Models::payment_method_types],
232
+ enabled: ::Array[WhopSDK::Models::payment_method_types],
233
+ include_platform_defaults: bool
234
+ }
235
+
236
+ class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
237
+ attr_accessor disabled: ::Array[WhopSDK::Models::payment_method_types]
238
+
239
+ attr_accessor enabled: ::Array[WhopSDK::Models::payment_method_types]
240
+
241
+ attr_accessor include_platform_defaults: bool
242
+
243
+ def initialize: (
244
+ disabled: ::Array[WhopSDK::Models::payment_method_types],
245
+ enabled: ::Array[WhopSDK::Models::payment_method_types],
246
+ include_platform_defaults: bool
247
+ ) -> void
248
+
249
+ def to_hash: -> {
250
+ disabled: ::Array[WhopSDK::Models::payment_method_types],
251
+ enabled: ::Array[WhopSDK::Models::payment_method_types],
252
+ include_platform_defaults: bool
253
+ }
203
254
  end
204
255
 
205
256
  type product =
@@ -9,6 +9,7 @@ module WhopSDK
9
9
  industry_type: WhopSDK::Models::industry_types?,
10
10
  logo: WhopSDK::Company::Logo?,
11
11
  member_count: Integer,
12
+ metadata: ::Hash[Symbol, top]?,
12
13
  owner_user: WhopSDK::Company::OwnerUser,
13
14
  published_reviews_count: Integer,
14
15
  route: String,
@@ -33,6 +34,8 @@ module WhopSDK
33
34
 
34
35
  attr_accessor member_count: Integer
35
36
 
37
+ attr_accessor metadata: ::Hash[Symbol, top]?
38
+
36
39
  attr_accessor owner_user: WhopSDK::Company::OwnerUser
37
40
 
38
41
  attr_accessor published_reviews_count: Integer
@@ -55,6 +58,7 @@ module WhopSDK
55
58
  industry_type: WhopSDK::Models::industry_types?,
56
59
  logo: WhopSDK::Company::Logo?,
57
60
  member_count: Integer,
61
+ metadata: ::Hash[Symbol, top]?,
58
62
  owner_user: WhopSDK::Company::OwnerUser,
59
63
  published_reviews_count: Integer,
60
64
  route: String,
@@ -72,6 +76,7 @@ module WhopSDK
72
76
  industry_type: WhopSDK::Models::industry_types?,
73
77
  logo: WhopSDK::Company::Logo?,
74
78
  member_count: Integer,
79
+ metadata: ::Hash[Symbol, top]?,
75
80
  owner_user: WhopSDK::Company::OwnerUser,
76
81
  published_reviews_count: Integer,
77
82
  route: String,
@@ -0,0 +1,41 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_create_params =
4
+ {
5
+ email: String,
6
+ parent_company_id: String,
7
+ title: String,
8
+ metadata: ::Hash[Symbol, top]?
9
+ }
10
+ & WhopSDK::Internal::Type::request_parameters
11
+
12
+ class CompanyCreateParams < WhopSDK::Internal::Type::BaseModel
13
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
14
+ include WhopSDK::Internal::Type::RequestParameters
15
+
16
+ attr_accessor email: String
17
+
18
+ attr_accessor parent_company_id: String
19
+
20
+ attr_accessor title: String
21
+
22
+ attr_accessor metadata: ::Hash[Symbol, top]?
23
+
24
+ def initialize: (
25
+ email: String,
26
+ parent_company_id: String,
27
+ title: String,
28
+ ?metadata: ::Hash[Symbol, top]?,
29
+ ?request_options: WhopSDK::request_opts
30
+ ) -> void
31
+
32
+ def to_hash: -> {
33
+ email: String,
34
+ parent_company_id: String,
35
+ title: String,
36
+ metadata: ::Hash[Symbol, top]?,
37
+ request_options: WhopSDK::RequestOptions
38
+ }
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,51 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_list_params =
4
+ {
5
+ parent_company_id: String,
6
+ after: String?,
7
+ before: String?,
8
+ direction: WhopSDK::Models::direction?,
9
+ first: Integer?,
10
+ last: Integer?
11
+ }
12
+ & WhopSDK::Internal::Type::request_parameters
13
+
14
+ class CompanyListParams < WhopSDK::Internal::Type::BaseModel
15
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
16
+ include WhopSDK::Internal::Type::RequestParameters
17
+
18
+ attr_accessor parent_company_id: String
19
+
20
+ attr_accessor after: String?
21
+
22
+ attr_accessor before: String?
23
+
24
+ attr_accessor direction: WhopSDK::Models::direction?
25
+
26
+ attr_accessor first: Integer?
27
+
28
+ attr_accessor last: Integer?
29
+
30
+ def initialize: (
31
+ parent_company_id: String,
32
+ ?after: String?,
33
+ ?before: String?,
34
+ ?direction: WhopSDK::Models::direction?,
35
+ ?first: Integer?,
36
+ ?last: Integer?,
37
+ ?request_options: WhopSDK::request_opts
38
+ ) -> void
39
+
40
+ def to_hash: -> {
41
+ parent_company_id: String,
42
+ after: String?,
43
+ before: String?,
44
+ direction: WhopSDK::Models::direction?,
45
+ first: Integer?,
46
+ last: Integer?,
47
+ request_options: WhopSDK::RequestOptions
48
+ }
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,109 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_list_response =
4
+ {
5
+ id: String,
6
+ business_type: WhopSDK::Models::business_types?,
7
+ created_at: Time,
8
+ description: String?,
9
+ industry_type: WhopSDK::Models::industry_types?,
10
+ logo: WhopSDK::Models::CompanyListResponse::Logo?,
11
+ member_count: Integer,
12
+ metadata: ::Hash[Symbol, top]?,
13
+ owner_user: WhopSDK::Models::CompanyListResponse::OwnerUser,
14
+ published_reviews_count: Integer,
15
+ route: String,
16
+ title: String,
17
+ updated_at: Time,
18
+ verified: bool
19
+ }
20
+
21
+ class CompanyListResponse < WhopSDK::Internal::Type::BaseModel
22
+ attr_accessor id: String
23
+
24
+ attr_accessor business_type: WhopSDK::Models::business_types?
25
+
26
+ attr_accessor created_at: Time
27
+
28
+ attr_accessor description: String?
29
+
30
+ attr_accessor industry_type: WhopSDK::Models::industry_types?
31
+
32
+ attr_accessor logo: WhopSDK::Models::CompanyListResponse::Logo?
33
+
34
+ attr_accessor member_count: Integer
35
+
36
+ attr_accessor metadata: ::Hash[Symbol, top]?
37
+
38
+ attr_accessor owner_user: WhopSDK::Models::CompanyListResponse::OwnerUser
39
+
40
+ attr_accessor published_reviews_count: Integer
41
+
42
+ attr_accessor route: String
43
+
44
+ attr_accessor title: String
45
+
46
+ attr_accessor updated_at: Time
47
+
48
+ attr_accessor verified: bool
49
+
50
+ def initialize: (
51
+ id: String,
52
+ business_type: WhopSDK::Models::business_types?,
53
+ created_at: Time,
54
+ description: String?,
55
+ industry_type: WhopSDK::Models::industry_types?,
56
+ logo: WhopSDK::Models::CompanyListResponse::Logo?,
57
+ member_count: Integer,
58
+ metadata: ::Hash[Symbol, top]?,
59
+ owner_user: WhopSDK::Models::CompanyListResponse::OwnerUser,
60
+ published_reviews_count: Integer,
61
+ route: String,
62
+ title: String,
63
+ updated_at: Time,
64
+ verified: bool
65
+ ) -> void
66
+
67
+ def to_hash: -> {
68
+ id: String,
69
+ business_type: WhopSDK::Models::business_types?,
70
+ created_at: Time,
71
+ description: String?,
72
+ industry_type: WhopSDK::Models::industry_types?,
73
+ logo: WhopSDK::Models::CompanyListResponse::Logo?,
74
+ member_count: Integer,
75
+ metadata: ::Hash[Symbol, top]?,
76
+ owner_user: WhopSDK::Models::CompanyListResponse::OwnerUser,
77
+ published_reviews_count: Integer,
78
+ route: String,
79
+ title: String,
80
+ updated_at: Time,
81
+ verified: bool
82
+ }
83
+
84
+ type logo = { url: String? }
85
+
86
+ class Logo < WhopSDK::Internal::Type::BaseModel
87
+ attr_accessor url: String?
88
+
89
+ def initialize: (url: String?) -> void
90
+
91
+ def to_hash: -> { url: String? }
92
+ end
93
+
94
+ type owner_user = { id: String, name: String?, username: String }
95
+
96
+ class OwnerUser < WhopSDK::Internal::Type::BaseModel
97
+ attr_accessor id: String
98
+
99
+ attr_accessor name: String?
100
+
101
+ attr_accessor username: String
102
+
103
+ def initialize: (id: String, name: String?, username: String) -> void
104
+
105
+ def to_hash: -> { id: String, name: String?, username: String }
106
+ end
107
+ end
108
+ end
109
+ end
@@ -4,9 +4,11 @@ module WhopSDK
4
4
  {
5
5
  experience_id: String,
6
6
  title: String,
7
+ certificate_after_completion_enabled: bool?,
7
8
  cover_image: String?,
9
+ require_completing_lessons_in_order: bool?,
8
10
  tagline: String?,
9
- thumbnail: WhopSDK::CourseCreateParams::Thumbnail?
11
+ thumbnail: WhopSDK::Models::CourseCreateParams::thumbnail?
10
12
  }
11
13
  & WhopSDK::Internal::Type::request_parameters
12
14
 
@@ -18,40 +20,67 @@ module WhopSDK
18
20
 
19
21
  attr_accessor title: String
20
22
 
23
+ attr_accessor certificate_after_completion_enabled: bool?
24
+
21
25
  attr_accessor cover_image: String?
22
26
 
27
+ attr_accessor require_completing_lessons_in_order: bool?
28
+
23
29
  attr_accessor tagline: String?
24
30
 
25
- attr_accessor thumbnail: WhopSDK::CourseCreateParams::Thumbnail?
31
+ attr_accessor thumbnail: WhopSDK::Models::CourseCreateParams::thumbnail?
26
32
 
27
33
  def initialize: (
28
34
  experience_id: String,
29
35
  title: String,
36
+ ?certificate_after_completion_enabled: bool?,
30
37
  ?cover_image: String?,
38
+ ?require_completing_lessons_in_order: bool?,
31
39
  ?tagline: String?,
32
- ?thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
40
+ ?thumbnail: WhopSDK::Models::CourseCreateParams::thumbnail?,
33
41
  ?request_options: WhopSDK::request_opts
34
42
  ) -> void
35
43
 
36
44
  def to_hash: -> {
37
45
  experience_id: String,
38
46
  title: String,
47
+ certificate_after_completion_enabled: bool?,
39
48
  cover_image: String?,
49
+ require_completing_lessons_in_order: bool?,
40
50
  tagline: String?,
41
- thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
51
+ thumbnail: WhopSDK::Models::CourseCreateParams::thumbnail?,
42
52
  request_options: WhopSDK::RequestOptions
43
53
  }
44
54
 
45
- type thumbnail = { id: String?, direct_upload_id: String? }
55
+ type thumbnail =
56
+ WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID
57
+ | WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID
58
+
59
+ module Thumbnail
60
+ extend WhopSDK::Internal::Type::Union
61
+
62
+ type attachment_input_with_direct_upload_id =
63
+ { direct_upload_id: String }
64
+
65
+ class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
66
+ attr_accessor direct_upload_id: String
67
+
68
+ def initialize: (direct_upload_id: String) -> void
69
+
70
+ def to_hash: -> { direct_upload_id: String }
71
+ end
72
+
73
+ type attachment_input_with_id = { id: String }
46
74
 
47
- class Thumbnail < WhopSDK::Internal::Type::BaseModel
48
- attr_accessor id: String?
75
+ class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
76
+ attr_accessor id: String
49
77
 
50
- attr_accessor direct_upload_id: String?
78
+ def initialize: (id: String) -> void
51
79
 
52
- def initialize: (?id: String?, ?direct_upload_id: String?) -> void
80
+ def to_hash: -> { id: String }
81
+ end
53
82
 
54
- def to_hash: -> { id: String?, direct_upload_id: String? }
83
+ def self?.variants: -> ::Array[WhopSDK::Models::CourseCreateParams::thumbnail]
55
84
  end
56
85
  end
57
86
  end