whop_sdk 0.0.3 → 0.0.5

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 (267) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +47 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +8 -0
  5. data/lib/whop_sdk/internal/transport/base_client.rb +7 -1
  6. data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +6 -2
  7. data/lib/whop_sdk/models/access_level.rb +1 -1
  8. data/lib/whop_sdk/models/access_pass_type.rb +2 -1
  9. data/lib/whop_sdk/models/access_token_create_params.rb +67 -0
  10. data/lib/whop_sdk/models/access_token_create_response.rb +27 -0
  11. data/lib/whop_sdk/models/app_build_create_params.rb +53 -29
  12. data/lib/whop_sdk/models/app_update_params.rb +53 -29
  13. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +119 -43
  14. data/lib/whop_sdk/models/company.rb +13 -1
  15. data/lib/whop_sdk/models/company_create_params.rb +46 -0
  16. data/lib/whop_sdk/models/company_list_params.rb +62 -0
  17. data/lib/whop_sdk/models/company_list_response.rb +175 -0
  18. data/lib/whop_sdk/models/course.rb +18 -1
  19. data/lib/whop_sdk/models/course_create_params.rb +94 -30
  20. data/lib/whop_sdk/models/course_lesson_create_params.rb +77 -1
  21. data/lib/whop_sdk/models/course_lesson_list_response.rb +43 -1
  22. data/lib/whop_sdk/models/course_lesson_update_params.rb +280 -83
  23. data/lib/whop_sdk/models/course_list_response.rb +18 -1
  24. data/lib/whop_sdk/models/course_student_list_params.rb +62 -0
  25. data/lib/whop_sdk/models/course_student_list_response.rb +97 -0
  26. data/lib/whop_sdk/models/course_student_retrieve_params.rb +14 -0
  27. data/lib/whop_sdk/models/course_student_retrieve_response.rb +149 -0
  28. data/lib/whop_sdk/models/course_update_params.rb +70 -28
  29. data/lib/whop_sdk/models/course_visibilities.rb +17 -0
  30. data/lib/whop_sdk/models/embed_type.rb +16 -0
  31. data/lib/whop_sdk/models/entry.rb +3 -3
  32. data/lib/whop_sdk/models/entry_list_response.rb +3 -3
  33. data/lib/whop_sdk/models/experience.rb +5 -6
  34. data/lib/whop_sdk/models/experience_update_params.rb +53 -29
  35. data/lib/whop_sdk/models/forum_post.rb +2 -2
  36. data/lib/whop_sdk/models/forum_post_create_params.rb +51 -27
  37. data/lib/whop_sdk/models/forum_post_list_response.rb +2 -2
  38. data/lib/whop_sdk/models/forum_post_update_params.rb +51 -27
  39. data/lib/whop_sdk/models/global_affiliate_status.rb +1 -1
  40. data/lib/whop_sdk/models/invoice_create_params.rb +50 -34
  41. data/lib/whop_sdk/models/invoice_list_params.rb +27 -40
  42. data/lib/whop_sdk/models/lesson.rb +59 -9
  43. data/lib/whop_sdk/models/member_list_params.rb +11 -11
  44. data/lib/whop_sdk/models/member_list_response.rb +3 -3
  45. data/lib/whop_sdk/models/member_retrieve_response.rb +3 -3
  46. data/lib/whop_sdk/models/membership_list_params.rb +9 -9
  47. data/lib/whop_sdk/models/message.rb +2 -2
  48. data/lib/whop_sdk/models/message_create_params.rb +51 -27
  49. data/lib/whop_sdk/models/message_list_response.rb +2 -2
  50. data/lib/whop_sdk/models/message_update_params.rb +51 -27
  51. data/lib/whop_sdk/models/payment.rb +13 -4
  52. data/lib/whop_sdk/models/payment_list_response.rb +13 -4
  53. data/lib/whop_sdk/models/payment_method_types.rb +2 -1
  54. data/lib/whop_sdk/models/plan.rb +54 -5
  55. data/lib/whop_sdk/models/plan_create_params.rb +99 -24
  56. data/lib/whop_sdk/models/plan_list_response.rb +57 -5
  57. data/lib/whop_sdk/models/plan_type.rb +1 -1
  58. data/lib/whop_sdk/models/plan_update_params.rb +97 -22
  59. data/lib/whop_sdk/models/product.rb +1 -1
  60. data/lib/whop_sdk/models/product_create_params.rb +6 -6
  61. data/lib/whop_sdk/models/product_list_item.rb +1 -1
  62. data/lib/whop_sdk/models/product_update_params.rb +57 -33
  63. data/lib/whop_sdk/models/promo_code.rb +3 -3
  64. data/lib/whop_sdk/models/promo_code_list_response.rb +3 -3
  65. data/lib/whop_sdk/models/transfer.rb +9 -1
  66. data/lib/whop_sdk/models/transfer_create_params.rb +9 -1
  67. data/lib/whop_sdk/models/transfer_list_response.rb +9 -1
  68. data/lib/whop_sdk/models.rb +14 -0
  69. data/lib/whop_sdk/resources/access_tokens.rb +46 -0
  70. data/lib/whop_sdk/resources/app_builds.rb +5 -3
  71. data/lib/whop_sdk/resources/apps.rb +4 -3
  72. data/lib/whop_sdk/resources/authorized_users.rb +2 -1
  73. data/lib/whop_sdk/resources/chat_channels.rb +9 -2
  74. data/lib/whop_sdk/resources/checkout_configurations.rb +8 -7
  75. data/lib/whop_sdk/resources/companies.rb +72 -1
  76. data/lib/whop_sdk/resources/course_chapters.rb +5 -3
  77. data/lib/whop_sdk/resources/course_lesson_interactions.rb +4 -3
  78. data/lib/whop_sdk/resources/course_lessons.rb +25 -7
  79. data/lib/whop_sdk/resources/course_students.rb +77 -0
  80. data/lib/whop_sdk/resources/courses.rb +24 -7
  81. data/lib/whop_sdk/resources/entries.rb +6 -3
  82. data/lib/whop_sdk/resources/experiences.rb +9 -7
  83. data/lib/whop_sdk/resources/forum_posts.rb +5 -4
  84. data/lib/whop_sdk/resources/forums.rb +3 -2
  85. data/lib/whop_sdk/resources/invoices.rb +22 -16
  86. data/lib/whop_sdk/resources/ledger_accounts.rb +6 -2
  87. data/lib/whop_sdk/resources/members.rb +6 -5
  88. data/lib/whop_sdk/resources/memberships.rb +10 -8
  89. data/lib/whop_sdk/resources/messages.rb +5 -4
  90. data/lib/whop_sdk/resources/payments.rb +7 -4
  91. data/lib/whop_sdk/resources/plans.rb +14 -8
  92. data/lib/whop_sdk/resources/products.rb +10 -8
  93. data/lib/whop_sdk/resources/promo_codes.rb +4 -2
  94. data/lib/whop_sdk/resources/reactions.rb +2 -1
  95. data/lib/whop_sdk/resources/reviews.rb +2 -1
  96. data/lib/whop_sdk/resources/shipments.rb +2 -1
  97. data/lib/whop_sdk/resources/support_channels.rb +2 -1
  98. data/lib/whop_sdk/resources/transfers.rb +5 -2
  99. data/lib/whop_sdk/resources/users.rb +9 -3
  100. data/lib/whop_sdk/version.rb +1 -1
  101. data/lib/whop_sdk.rb +14 -1
  102. data/manifest.yaml +1 -0
  103. data/rbi/whop_sdk/client.rbi +6 -0
  104. data/rbi/whop_sdk/internal/transport/base_client.rbi +5 -0
  105. data/rbi/whop_sdk/internal/transport/pooled_net_requester.rbi +6 -2
  106. data/rbi/whop_sdk/internal/type/base_model.rbi +8 -4
  107. data/rbi/whop_sdk/models/access_level.rbi +1 -1
  108. data/rbi/whop_sdk/models/access_pass_type.rbi +2 -1
  109. data/rbi/whop_sdk/models/access_token_create_params.rbi +126 -0
  110. data/rbi/whop_sdk/models/access_token_create_response.rbi +37 -0
  111. data/rbi/whop_sdk/models/app_build_create_params.rbi +80 -40
  112. data/rbi/whop_sdk/models/app_update_params.rbi +86 -37
  113. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +196 -68
  114. data/rbi/whop_sdk/models/company.rbi +10 -0
  115. data/rbi/whop_sdk/models/company_create_params.rbi +67 -0
  116. data/rbi/whop_sdk/models/company_list_params.rbi +83 -0
  117. data/rbi/whop_sdk/models/company_list_response.rbi +235 -0
  118. data/rbi/whop_sdk/models/course.rbi +21 -3
  119. data/rbi/whop_sdk/models/course_create_params.rbi +126 -38
  120. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +126 -0
  121. data/rbi/whop_sdk/models/course_lesson_list_response.rbi +68 -0
  122. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +449 -111
  123. data/rbi/whop_sdk/models/course_list_response.rbi +21 -3
  124. data/rbi/whop_sdk/models/course_student_list_params.rbi +83 -0
  125. data/rbi/whop_sdk/models/course_student_list_response.rbi +142 -0
  126. data/rbi/whop_sdk/models/course_student_retrieve_params.rbi +30 -0
  127. data/rbi/whop_sdk/models/course_student_retrieve_response.rbi +250 -0
  128. data/rbi/whop_sdk/models/course_update_params.rbi +104 -38
  129. data/rbi/whop_sdk/models/course_visibilities.rbi +23 -0
  130. data/rbi/whop_sdk/models/embed_type.rbi +20 -0
  131. data/rbi/whop_sdk/models/entry.rbi +3 -3
  132. data/rbi/whop_sdk/models/entry_list_response.rbi +3 -3
  133. data/rbi/whop_sdk/models/experience.rbi +7 -9
  134. data/rbi/whop_sdk/models/experience_update_params.rbi +84 -38
  135. data/rbi/whop_sdk/models/forum_post.rbi +2 -2
  136. data/rbi/whop_sdk/models/forum_post_create_params.rbi +85 -32
  137. data/rbi/whop_sdk/models/forum_post_list_response.rbi +2 -2
  138. data/rbi/whop_sdk/models/forum_post_update_params.rbi +85 -32
  139. data/rbi/whop_sdk/models/global_affiliate_status.rbi +1 -1
  140. data/rbi/whop_sdk/models/invoice_create_params.rbi +60 -46
  141. data/rbi/whop_sdk/models/invoice_list_params.rbi +26 -71
  142. data/rbi/whop_sdk/models/lesson.rbi +68 -10
  143. data/rbi/whop_sdk/models/member_list_params.rbi +10 -10
  144. data/rbi/whop_sdk/models/member_list_response.rbi +6 -6
  145. data/rbi/whop_sdk/models/member_retrieve_response.rbi +6 -6
  146. data/rbi/whop_sdk/models/membership_list_params.rbi +8 -8
  147. data/rbi/whop_sdk/models/message.rbi +2 -2
  148. data/rbi/whop_sdk/models/message_create_params.rbi +85 -32
  149. data/rbi/whop_sdk/models/message_list_response.rbi +2 -2
  150. data/rbi/whop_sdk/models/message_update_params.rbi +85 -32
  151. data/rbi/whop_sdk/models/payment.rbi +13 -3
  152. data/rbi/whop_sdk/models/payment_list_response.rbi +13 -3
  153. data/rbi/whop_sdk/models/payment_method_types.rbi +3 -1
  154. data/rbi/whop_sdk/models/plan.rbi +88 -4
  155. data/rbi/whop_sdk/models/plan_create_params.rbi +176 -34
  156. data/rbi/whop_sdk/models/plan_list_response.rbi +100 -4
  157. data/rbi/whop_sdk/models/plan_type.rbi +1 -1
  158. data/rbi/whop_sdk/models/plan_update_params.rbi +174 -32
  159. data/rbi/whop_sdk/models/product.rbi +1 -1
  160. data/rbi/whop_sdk/models/product_create_params.rbi +6 -6
  161. data/rbi/whop_sdk/models/product_list_item.rbi +1 -1
  162. data/rbi/whop_sdk/models/product_update_params.rbi +87 -43
  163. data/rbi/whop_sdk/models/promo_code.rbi +3 -3
  164. data/rbi/whop_sdk/models/promo_code_list_response.rbi +3 -3
  165. data/rbi/whop_sdk/models/transfer.rbi +8 -0
  166. data/rbi/whop_sdk/models/transfer_create_params.rbi +8 -0
  167. data/rbi/whop_sdk/models/transfer_list_response.rbi +8 -0
  168. data/rbi/whop_sdk/models.rbi +14 -0
  169. data/rbi/whop_sdk/resources/access_tokens.rbi +41 -0
  170. data/rbi/whop_sdk/resources/app_builds.rbi +15 -3
  171. data/rbi/whop_sdk/resources/apps.rbi +13 -2
  172. data/rbi/whop_sdk/resources/authorized_users.rbi +5 -1
  173. data/rbi/whop_sdk/resources/chat_channels.rbi +8 -1
  174. data/rbi/whop_sdk/resources/checkout_configurations.rbi +11 -8
  175. data/rbi/whop_sdk/resources/companies.rbi +68 -1
  176. data/rbi/whop_sdk/resources/course_chapters.rbi +11 -2
  177. data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +7 -3
  178. data/rbi/whop_sdk/resources/course_lessons.rbi +62 -4
  179. data/rbi/whop_sdk/resources/course_students.rbi +69 -0
  180. data/rbi/whop_sdk/resources/courses.rbi +50 -4
  181. data/rbi/whop_sdk/resources/entries.rbi +15 -3
  182. data/rbi/whop_sdk/resources/experiences.rbi +21 -3
  183. data/rbi/whop_sdk/resources/forum_posts.rbi +18 -3
  184. data/rbi/whop_sdk/resources/forums.rbi +6 -1
  185. data/rbi/whop_sdk/resources/invoices.rbi +38 -23
  186. data/rbi/whop_sdk/resources/ledger_accounts.rbi +7 -2
  187. data/rbi/whop_sdk/resources/members.rbi +9 -5
  188. data/rbi/whop_sdk/resources/memberships.rbi +16 -5
  189. data/rbi/whop_sdk/resources/messages.rbi +18 -3
  190. data/rbi/whop_sdk/resources/payments.rbi +16 -3
  191. data/rbi/whop_sdk/resources/plans.rbi +40 -5
  192. data/rbi/whop_sdk/resources/products.rbi +21 -7
  193. data/rbi/whop_sdk/resources/promo_codes.rbi +10 -2
  194. data/rbi/whop_sdk/resources/reactions.rbi +5 -1
  195. data/rbi/whop_sdk/resources/reviews.rbi +5 -1
  196. data/rbi/whop_sdk/resources/shipments.rbi +5 -1
  197. data/rbi/whop_sdk/resources/support_channels.rbi +5 -1
  198. data/rbi/whop_sdk/resources/transfers.rbi +8 -1
  199. data/rbi/whop_sdk/resources/users.rbi +13 -2
  200. data/sig/whop_sdk/client.rbs +4 -0
  201. data/sig/whop_sdk/internal/transport/base_client.rbs +2 -0
  202. data/sig/whop_sdk/internal/transport/pooled_net_requester.rbs +4 -1
  203. data/sig/whop_sdk/models/access_token_create_params.rbs +56 -0
  204. data/sig/whop_sdk/models/access_token_create_response.rbs +15 -0
  205. data/sig/whop_sdk/models/app_build_create_params.rbs +29 -10
  206. data/sig/whop_sdk/models/app_update_params.rbs +29 -10
  207. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +72 -21
  208. data/sig/whop_sdk/models/company.rbs +5 -0
  209. data/sig/whop_sdk/models/company_create_params.rbs +41 -0
  210. data/sig/whop_sdk/models/company_list_params.rbs +51 -0
  211. data/sig/whop_sdk/models/company_list_response.rbs +109 -0
  212. data/sig/whop_sdk/models/course.rbs +13 -3
  213. data/sig/whop_sdk/models/course_create_params.rbs +49 -10
  214. data/sig/whop_sdk/models/course_lesson_create_params.rbs +46 -0
  215. data/sig/whop_sdk/models/course_lesson_list_response.rbs +25 -0
  216. data/sig/whop_sdk/models/course_lesson_update_params.rbs +162 -30
  217. data/sig/whop_sdk/models/course_list_response.rbs +13 -3
  218. data/sig/whop_sdk/models/course_student_list_params.rbs +51 -0
  219. data/sig/whop_sdk/models/course_student_list_response.rbs +64 -0
  220. data/sig/whop_sdk/models/course_student_retrieve_params.rbs +15 -0
  221. data/sig/whop_sdk/models/course_student_retrieve_response.rbs +106 -0
  222. data/sig/whop_sdk/models/course_update_params.rbs +40 -11
  223. data/sig/whop_sdk/models/course_visibilities.rbs +14 -0
  224. data/sig/whop_sdk/models/embed_type.rbs +14 -0
  225. data/sig/whop_sdk/models/experience_update_params.rbs +29 -10
  226. data/sig/whop_sdk/models/forum_post_create_params.rbs +29 -10
  227. data/sig/whop_sdk/models/forum_post_update_params.rbs +29 -10
  228. data/sig/whop_sdk/models/invoice_create_params.rbs +28 -18
  229. data/sig/whop_sdk/models/invoice_list_params.rbs +16 -33
  230. data/sig/whop_sdk/models/lesson.rbs +33 -8
  231. data/sig/whop_sdk/models/member_list_params.rbs +5 -5
  232. data/sig/whop_sdk/models/membership_list_params.rbs +5 -5
  233. data/sig/whop_sdk/models/message_create_params.rbs +29 -10
  234. data/sig/whop_sdk/models/message_update_params.rbs +29 -10
  235. data/sig/whop_sdk/models/payment.rbs +5 -0
  236. data/sig/whop_sdk/models/payment_list_response.rbs +5 -0
  237. data/sig/whop_sdk/models/payment_method_types.rbs +4 -2
  238. data/sig/whop_sdk/models/plan.rbs +32 -0
  239. data/sig/whop_sdk/models/plan_create_params.rbs +61 -10
  240. data/sig/whop_sdk/models/plan_list_response.rbs +32 -0
  241. data/sig/whop_sdk/models/plan_update_params.rbs +61 -10
  242. data/sig/whop_sdk/models/product_update_params.rbs +29 -10
  243. data/sig/whop_sdk/models/transfer.rbs +5 -0
  244. data/sig/whop_sdk/models/transfer_create_params.rbs +5 -0
  245. data/sig/whop_sdk/models/transfer_list_response.rbs +5 -0
  246. data/sig/whop_sdk/models.rbs +14 -0
  247. data/sig/whop_sdk/resources/access_tokens.rbs +15 -0
  248. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  249. data/sig/whop_sdk/resources/apps.rbs +1 -1
  250. data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -2
  251. data/sig/whop_sdk/resources/companies.rbs +18 -0
  252. data/sig/whop_sdk/resources/course_lessons.rbs +10 -2
  253. data/sig/whop_sdk/resources/course_students.rbs +22 -0
  254. data/sig/whop_sdk/resources/courses.rbs +8 -2
  255. data/sig/whop_sdk/resources/experiences.rbs +1 -1
  256. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  257. data/sig/whop_sdk/resources/invoices.rbs +8 -6
  258. data/sig/whop_sdk/resources/members.rbs +1 -1
  259. data/sig/whop_sdk/resources/memberships.rbs +1 -1
  260. data/sig/whop_sdk/resources/messages.rbs +2 -2
  261. data/sig/whop_sdk/resources/plans.rbs +4 -2
  262. data/sig/whop_sdk/resources/products.rbs +1 -1
  263. data/sig/whop_sdk/resources/transfers.rbs +1 -0
  264. metadata +41 -5
  265. data/lib/whop_sdk/models/invoice_create_response.rb +0 -27
  266. data/rbi/whop_sdk/models/invoice_create_response.rbi +0 -49
  267. data/sig/whop_sdk/models/invoice_create_response.rbs +0 -19
@@ -7,12 +7,13 @@ module WhopSDK
7
7
  #
8
8
  # Required permissions:
9
9
  #
10
- # - `course_lesson_interaction:read`
11
10
  # - `courses:read`
11
+ # - `course_analytics:read`
12
12
  #
13
13
  # @overload retrieve(id, request_options: {})
14
14
  #
15
- # @param id [String]
15
+ # @param id [String] The ID of the course lesson interaction
16
+ #
16
17
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
17
18
  #
18
19
  # @return [WhopSDK::Models::CourseLessonInteraction]
@@ -31,8 +32,8 @@ module WhopSDK
31
32
  #
32
33
  # Required permissions:
33
34
  #
34
- # - `course_lesson_interaction:read`
35
35
  # - `courses:read`
36
+ # - `course_analytics:read`
36
37
  #
37
38
  # @overload list(after: nil, before: nil, completed: nil, course_id: nil, first: nil, last: nil, lesson_id: nil, user_id: nil, request_options: {})
38
39
  #
@@ -9,7 +9,7 @@ module WhopSDK
9
9
  #
10
10
  # - `courses:update`
11
11
  #
12
- # @overload create(chapter_id:, lesson_type:, content: nil, days_from_course_start_until_unlock: nil, title: nil, request_options: {})
12
+ # @overload create(chapter_id:, lesson_type:, content: nil, days_from_course_start_until_unlock: nil, embed_id: nil, embed_type: nil, thumbnail: nil, title: nil, request_options: {})
13
13
  #
14
14
  # @param chapter_id [String] The ID of the chapter to create the lesson in
15
15
  #
@@ -19,6 +19,12 @@ module WhopSDK
19
19
  #
20
20
  # @param days_from_course_start_until_unlock [Integer, nil] Days from course start until unlock
21
21
  #
22
+ # @param embed_id [String, nil] ID for the embed (YouTube video ID or Loom share ID)
23
+ #
24
+ # @param embed_type [Symbol, WhopSDK::Models::EmbedType, nil] The type of embed for a lesson
25
+ #
26
+ # @param thumbnail [WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the lesson in png, jpeg, or gif format
27
+ #
22
28
  # @param title [String, nil] The title of the lesson
23
29
  #
24
30
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -45,7 +51,8 @@ module WhopSDK
45
51
  #
46
52
  # @overload retrieve(id, request_options: {})
47
53
  #
48
- # @param id [String]
54
+ # @param id [String] The ID of the lesson
55
+ #
49
56
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
50
57
  #
51
58
  # @return [WhopSDK::Models::Lesson]
@@ -69,24 +76,34 @@ module WhopSDK
69
76
  #
70
77
  # - `courses:update`
71
78
  #
72
- # @overload update(id, assessment_questions: nil, attachments: nil, content: nil, days_from_course_start_until_unlock: nil, lesson_type: nil, main_pdf: nil, mux_asset_id: nil, title: nil, visibility: nil, request_options: {})
79
+ # @overload update(id, assessment_completion_requirement: nil, assessment_questions: nil, attachments: nil, content: nil, days_from_course_start_until_unlock: nil, embed_id: nil, embed_type: nil, lesson_type: nil, main_pdf: nil, max_attempts: nil, mux_asset_id: nil, thumbnail: nil, title: nil, visibility: nil, request_options: {})
80
+ #
81
+ # @param id [String] The ID of the lesson to update
73
82
  #
74
- # @param id [String]
83
+ # @param assessment_completion_requirement [WhopSDK::Models::CourseLessonUpdateParams::AssessmentCompletionRequirement, nil] Completion requirements for quiz/knowledge check lessons
75
84
  #
76
85
  # @param assessment_questions [Array<WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion>, nil] Assessment questions for quiz/knowledge check lessons. Replaces all existing que
77
86
  #
78
- # @param attachments [Array<WhopSDK::Models::CourseLessonUpdateParams::Attachment>, nil] General attachments for the lesson (PDFs, files, etc). Replaces all existing att
87
+ # @param attachments [Array<WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithID>, nil] General attachments for the lesson (PDFs, files, etc). Replaces all existing att
79
88
  #
80
89
  # @param content [String, nil] The content of the lesson
81
90
  #
82
91
  # @param days_from_course_start_until_unlock [Integer, nil] Days from course start until unlock
83
92
  #
93
+ # @param embed_id [String, nil] ID for the embed (YouTube video ID or Loom share ID)
94
+ #
95
+ # @param embed_type [Symbol, WhopSDK::Models::EmbedType, nil] The type of embed for a lesson
96
+ #
84
97
  # @param lesson_type [Symbol, WhopSDK::Models::LessonTypes, nil] The available types for a lesson
85
98
  #
86
- # @param main_pdf [WhopSDK::Models::CourseLessonUpdateParams::MainPdf, nil] The main PDF file for this lesson
99
+ # @param main_pdf [WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithID, nil] The main PDF file for this lesson
100
+ #
101
+ # @param max_attempts [Integer, nil] Maximum number of attempts allowed for assessments
87
102
  #
88
103
  # @param mux_asset_id [String, nil] The ID of the Mux asset to attach to this lesson for video lessons
89
104
  #
105
+ # @param thumbnail [WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the lesson in png, jpeg, or gif format
106
+ #
90
107
  # @param title [String, nil] The title of the lesson
91
108
  #
92
109
  # @param visibility [Symbol, WhopSDK::Models::LessonVisibilities, nil] The available visibilities for a lesson. Determines how / whether a lesson is vi
@@ -152,7 +169,8 @@ module WhopSDK
152
169
  #
153
170
  # @overload delete(id, request_options: {})
154
171
  #
155
- # @param id [String]
172
+ # @param id [String] The ID of the lesson to delete
173
+ #
156
174
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
157
175
  #
158
176
  # @return [Boolean]
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Resources
5
+ class CourseStudents
6
+ # Retrieves a course student by interaction ID
7
+ #
8
+ # Required permissions:
9
+ #
10
+ # - `courses:read`
11
+ # - `course_analytics:read`
12
+ #
13
+ # @overload retrieve(id, request_options: {})
14
+ #
15
+ # @param id [String] The ID of the course student interaction
16
+ #
17
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
18
+ #
19
+ # @return [WhopSDK::Models::CourseStudentRetrieveResponse]
20
+ #
21
+ # @see WhopSDK::Models::CourseStudentRetrieveParams
22
+ def retrieve(id, params = {})
23
+ @client.request(
24
+ method: :get,
25
+ path: ["course_students/%1$s", id],
26
+ model: WhopSDK::Models::CourseStudentRetrieveResponse,
27
+ options: params[:request_options]
28
+ )
29
+ end
30
+
31
+ # Lists students for a course
32
+ #
33
+ # Required permissions:
34
+ #
35
+ # - `courses:read`
36
+ # - `course_analytics:read`
37
+ #
38
+ # @overload list(course_id:, after: nil, before: nil, first: nil, keyword: nil, last: nil, request_options: {})
39
+ #
40
+ # @param course_id [String] The ID of the course
41
+ #
42
+ # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
43
+ #
44
+ # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
45
+ #
46
+ # @param first [Integer, nil] Returns the first _n_ elements from the list.
47
+ #
48
+ # @param keyword [String, nil] Filter students by name - returns students whose names match the keyword
49
+ #
50
+ # @param last [Integer, nil] Returns the last _n_ elements from the list.
51
+ #
52
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
53
+ #
54
+ # @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::CourseStudentListResponse>]
55
+ #
56
+ # @see WhopSDK::Models::CourseStudentListParams
57
+ def list(params)
58
+ parsed, options = WhopSDK::CourseStudentListParams.dump_request(params)
59
+ @client.request(
60
+ method: :get,
61
+ path: "course_students",
62
+ query: parsed,
63
+ page: WhopSDK::Internal::CursorPage,
64
+ model: WhopSDK::Models::CourseStudentListResponse,
65
+ options: options
66
+ )
67
+ end
68
+
69
+ # @api private
70
+ #
71
+ # @param client [WhopSDK::Client]
72
+ def initialize(client:)
73
+ @client = client
74
+ end
75
+ end
76
+ end
77
+ end
@@ -3,23 +3,34 @@
3
3
  module WhopSDK
4
4
  module Resources
5
5
  class Courses
6
+ # Some parameter documentations has been truncated, see
7
+ # {WhopSDK::Models::CourseCreateParams} for more details.
8
+ #
6
9
  # Creates a new course module in an experience
7
10
  #
8
11
  # Required permissions:
9
12
  #
10
13
  # - `courses:update`
11
14
  #
12
- # @overload create(experience_id:, title:, cover_image: nil, tagline: nil, thumbnail: nil, request_options: {})
15
+ # @overload create(experience_id:, title:, certificate_after_completion_enabled: nil, cover_image: nil, order: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, visibility: nil, request_options: {})
13
16
  #
14
17
  # @param experience_id [String] The ID of the experience to create the course in
15
18
  #
16
19
  # @param title [String] The title of the course
17
20
  #
21
+ # @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
22
+ #
18
23
  # @param cover_image [String, nil] The cover image URL of the course
19
24
  #
25
+ # @param order [String, nil] The decimal order position of the course within its experience. If not provided,
26
+ #
27
+ # @param require_completing_lessons_in_order [Boolean, nil] Whether the course requires students to complete the previous lesson before movi
28
+ #
20
29
  # @param tagline [String, nil] The tagline of the course
21
30
  #
22
- # @param thumbnail [WhopSDK::Models::CourseCreateParams::Thumbnail, nil] The thumbnail for the course in png, jpeg, or gif format
31
+ # @param thumbnail [WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the course in png, jpeg, or gif format
32
+ #
33
+ # @param visibility [Symbol, WhopSDK::Models::CourseVisibilities, nil] The available visibilities for a course. Determines how / whether a course is vi
23
34
  #
24
35
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
25
36
  #
@@ -45,7 +56,8 @@ module WhopSDK
45
56
  #
46
57
  # @overload retrieve(id, request_options: {})
47
58
  #
48
- # @param id [String]
59
+ # @param id [String] The ID of the course
60
+ #
49
61
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
50
62
  #
51
63
  # @return [WhopSDK::Models::Course]
@@ -69,9 +81,9 @@ module WhopSDK
69
81
  #
70
82
  # - `courses:update`
71
83
  #
72
- # @overload update(id, certificate_after_completion_enabled: nil, chapters: nil, cover_image: nil, description: nil, language: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, title: nil, request_options: {})
84
+ # @overload update(id, certificate_after_completion_enabled: nil, chapters: nil, cover_image: nil, description: nil, language: nil, order: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, title: nil, visibility: nil, request_options: {})
73
85
  #
74
- # @param id [String]
86
+ # @param id [String] The ID of the course to update
75
87
  #
76
88
  # @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
77
89
  #
@@ -83,14 +95,18 @@ module WhopSDK
83
95
  #
84
96
  # @param language [Symbol, WhopSDK::Models::Languages, nil] The available languages for a course
85
97
  #
98
+ # @param order [String, nil] The decimal order position of the course within its experience. Use fractional v
99
+ #
86
100
  # @param require_completing_lessons_in_order [Boolean, nil] Whether the course requires students to complete the previous lesson before movi
87
101
  #
88
102
  # @param tagline [String, nil] A short tagline for the course
89
103
  #
90
- # @param thumbnail [WhopSDK::Models::CourseUpdateParams::Thumbnail, nil] The thumbnail for the course in png, jpeg, or gif format
104
+ # @param thumbnail [WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the course in png, jpeg, or gif format
91
105
  #
92
106
  # @param title [String, nil] The title of the course
93
107
  #
108
+ # @param visibility [Symbol, WhopSDK::Models::CourseVisibilities, nil] The available visibilities for a course. Determines how / whether a course is vi
109
+ #
94
110
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
95
111
  #
96
112
  # @return [WhopSDK::Models::Course]
@@ -152,7 +168,8 @@ module WhopSDK
152
168
  #
153
169
  # @overload delete(id, request_options: {})
154
170
  #
155
- # @param id [String]
171
+ # @param id [String] The ID of the course to delete
172
+ #
156
173
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
157
174
  #
158
175
  # @return [Boolean]
@@ -12,7 +12,8 @@ module WhopSDK
12
12
  #
13
13
  # @overload retrieve(id, request_options: {})
14
14
  #
15
- # @param id [String]
15
+ # @param id [String] The ID of the entry
16
+ #
16
17
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
17
18
  #
18
19
  # @return [WhopSDK::Models::Entry]
@@ -81,7 +82,8 @@ module WhopSDK
81
82
  #
82
83
  # @overload approve(id, request_options: {})
83
84
  #
84
- # @param id [String]
85
+ # @param id [String] The ID of the entry to approve.
86
+ #
85
87
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
86
88
  #
87
89
  # @return [WhopSDK::Models::EntryApproveResponse]
@@ -106,7 +108,8 @@ module WhopSDK
106
108
  #
107
109
  # @overload deny(id, request_options: {})
108
110
  #
109
- # @param id [String]
111
+ # @param id [String] The ID of the entry
112
+ #
110
113
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
111
114
  #
112
115
  # @return [WhopSDK::Models::Entry]
@@ -37,7 +37,8 @@ module WhopSDK
37
37
  #
38
38
  # @overload retrieve(id, request_options: {})
39
39
  #
40
- # @param id [String]
40
+ # @param id [String] The ID of the experience
41
+ #
41
42
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
42
43
  #
43
44
  # @return [WhopSDK::Models::Experience]
@@ -58,11 +59,11 @@ module WhopSDK
58
59
  #
59
60
  # @overload update(id, access_level: nil, logo: nil, name: nil, order: nil, section_id: nil, request_options: {})
60
61
  #
61
- # @param id [String]
62
+ # @param id [String] The id of the experience to update.
62
63
  #
63
64
  # @param access_level [Symbol, WhopSDK::Models::ExperienceUpdateParams::AccessLevel, nil] The different access levels for experiences (PUBLIC IS NEVER USED ANYMORE).
64
65
  #
65
- # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo, nil] The logo for the experience
66
+ # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the experience
66
67
  #
67
68
  # @param name [String, nil] The name of the experience.
68
69
  #
@@ -131,7 +132,8 @@ module WhopSDK
131
132
  #
132
133
  # @overload delete(id, request_options: {})
133
134
  #
134
- # @param id [String]
135
+ # @param id [String] The internal ID of the experience to delete.
136
+ #
135
137
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
136
138
  #
137
139
  # @return [Boolean]
@@ -155,7 +157,7 @@ module WhopSDK
155
157
  #
156
158
  # @overload attach(id, product_id:, request_options: {})
157
159
  #
158
- # @param id [String]
160
+ # @param id [String] The ID of the Experience to be added to an Access Pass.
159
161
  #
160
162
  # @param product_id [String] The ID of the Access Pass to add the Experience to.
161
163
  #
@@ -184,7 +186,7 @@ module WhopSDK
184
186
  #
185
187
  # @overload detach(id, product_id:, request_options: {})
186
188
  #
187
- # @param id [String]
189
+ # @param id [String] The ID of the Experience to be added to an Access Pass.
188
190
  #
189
191
  # @param product_id [String] The ID of the Access Pass to add the Experience to.
190
192
  #
@@ -217,7 +219,7 @@ module WhopSDK
217
219
  #
218
220
  # @overload duplicate(id, name: nil, request_options: {})
219
221
  #
220
- # @param id [String]
222
+ # @param id [String] The ID of the experience to duplicate
221
223
  #
222
224
  # @param name [String, nil] The name of the new experience
223
225
  #
@@ -16,7 +16,7 @@ module WhopSDK
16
16
  #
17
17
  # @param experience_id [String] The experience to create this post in
18
18
  #
19
- # @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil] The attachments for this post
19
+ # @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
20
20
  #
21
21
  # @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
22
22
  #
@@ -58,7 +58,8 @@ module WhopSDK
58
58
  #
59
59
  # @overload retrieve(id, request_options: {})
60
60
  #
61
- # @param id [String]
61
+ # @param id [String] The ID of the forum post
62
+ #
62
63
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
63
64
  #
64
65
  # @return [WhopSDK::Models::ForumPost]
@@ -80,9 +81,9 @@ module WhopSDK
80
81
  #
81
82
  # @overload update(id, attachments: nil, content: nil, is_pinned: nil, title: nil, request_options: {})
82
83
  #
83
- # @param id [String]
84
+ # @param id [String] The ID of the forum post to update
84
85
  #
85
- # @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>, nil] The attachments for this post
86
+ # @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
86
87
  #
87
88
  # @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
88
89
  #
@@ -11,7 +11,8 @@ module WhopSDK
11
11
  #
12
12
  # @overload retrieve(id, request_options: {})
13
13
  #
14
- # @param id [String]
14
+ # @param id [String] The ID of the forum to fetch, it can be an experience ID or a forum ID
15
+ #
15
16
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
16
17
  #
17
18
  # @return [WhopSDK::Models::Forum]
@@ -34,7 +35,7 @@ module WhopSDK
34
35
  #
35
36
  # @overload update(id, email_notification_preference: nil, who_can_comment: nil, who_can_post: nil, request_options: {})
36
37
  #
37
- # @param id [String]
38
+ # @param id [String] Experience ID (exp\_\*) or Forum external ID
38
39
  #
39
40
  # @param email_notification_preference [Symbol, WhopSDK::Models::EmailNotificationPreferences, nil] Email notification preference option for a forum feed
40
41
  #
@@ -13,7 +13,7 @@ module WhopSDK
13
13
  # - `invoice:create`
14
14
  # - `plan:basic:read`
15
15
  #
16
- # @overload create(collection_method:, company_id:, due_date:, plan:, charge_buyer_fee: nil, customer_name: nil, email_address: nil, member_id: nil, payment_token_id: nil, product: nil, product_id: nil, request_options: {})
16
+ # @overload create(collection_method:, company_id:, due_date:, member_id:, plan:, product:, email_address:, product_id:, charge_buyer_fee: nil, customer_name: nil, payment_token_id: nil, request_options: {})
17
17
  #
18
18
  # @param collection_method [Symbol, WhopSDK::Models::CollectionMethod] The method of collection for this invoice. If using charge_automatically, you mu
19
19
  #
@@ -21,25 +21,25 @@ module WhopSDK
21
21
  #
22
22
  # @param due_date [Time] The date the invoice is due, if applicable.
23
23
  #
24
- # @param plan [WhopSDK::Models::InvoiceCreateParams::Plan] The properties of the plan to create for this invoice.
24
+ # @param member_id [String] The member ID to create this invoice for. Include this if you want to create an
25
25
  #
26
- # @param charge_buyer_fee [Boolean, nil] Whether or not to charge the customer a buyer fee.
26
+ # @param plan [WhopSDK::Models::InvoiceCreateParams::Plan] The properties of the plan to create for this invoice.
27
27
  #
28
- # @param customer_name [String, nil] The name of the customer to create this invoice for. This is required if you wan
28
+ # @param product [WhopSDK::Models::InvoiceCreateParams::Product] The properties of the product to create for this invoice. Include this if you wa
29
29
  #
30
- # @param email_address [String, nil] The email address to create this invoice for. This is required if you want to cr
30
+ # @param email_address [String] The email address to create this invoice for. This is required if you want to cr
31
31
  #
32
- # @param member_id [String, nil] The member ID to create this invoice for. Include this if you want to create an
32
+ # @param product_id [String] The product ID to create this invoice for. Include this if you want to create an
33
33
  #
34
- # @param payment_token_id [String, nil] The payment token ID to use for this invoice. If using charge_automatically, you
34
+ # @param charge_buyer_fee [Boolean, nil] Whether or not to charge the customer a buyer fee.
35
35
  #
36
- # @param product [WhopSDK::Models::InvoiceCreateParams::Product, nil] The properties of the product to create for this invoice. Include this if you wa
36
+ # @param customer_name [String, nil] The name of the customer to create this invoice for. This is required if you wan
37
37
  #
38
- # @param product_id [String, nil] The product ID to create this invoice for. Include this if you want to create an
38
+ # @param payment_token_id [String, nil] The payment token ID to use for this invoice. If using charge_automatically, you
39
39
  #
40
40
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
41
41
  #
42
- # @return [WhopSDK::Models::InvoiceCreateResponse]
42
+ # @return [WhopSDK::Models::Invoice]
43
43
  #
44
44
  # @see WhopSDK::Models::InvoiceCreateParams
45
45
  def create(params)
@@ -48,7 +48,7 @@ module WhopSDK
48
48
  method: :post,
49
49
  path: "invoices",
50
50
  body: parsed,
51
- model: WhopSDK::Models::InvoiceCreateResponse,
51
+ model: WhopSDK::Invoice,
52
52
  options: options
53
53
  )
54
54
  end
@@ -62,7 +62,8 @@ module WhopSDK
62
62
  #
63
63
  # @overload retrieve(id, request_options: {})
64
64
  #
65
- # @param id [String]
65
+ # @param id [String] The ID of the invoice or a token
66
+ #
66
67
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
67
68
  #
68
69
  # @return [WhopSDK::Models::Invoice]
@@ -84,7 +85,7 @@ module WhopSDK
84
85
  # - `invoice:basic:read`
85
86
  # - `plan:basic:read`
86
87
  #
87
- # @overload list(company_id:, after: nil, before: nil, direction: nil, filters: nil, first: nil, last: nil, order: nil, request_options: {})
88
+ # @overload list(company_id:, after: nil, before: nil, collection_methods: nil, direction: nil, first: nil, last: nil, order: nil, product_ids: nil, statuses: nil, request_options: {})
88
89
  #
89
90
  # @param company_id [String] The ID of the company to list invoices for
90
91
  #
@@ -92,9 +93,9 @@ module WhopSDK
92
93
  #
93
94
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
94
95
  #
95
- # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
96
+ # @param collection_methods [Array<Symbol, WhopSDK::Models::CollectionMethod>, nil] Filter invoices by their collection method
96
97
  #
97
- # @param filters [WhopSDK::Models::InvoiceListParams::Filters, nil] The filters to apply to the invoices
98
+ # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
98
99
  #
99
100
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
100
101
  #
@@ -102,6 +103,10 @@ module WhopSDK
102
103
  #
103
104
  # @param order [Symbol, WhopSDK::Models::InvoiceListParams::Order, nil] Which columns can be used to sort.
104
105
  #
106
+ # @param product_ids [Array<String>, nil] Return only invoices created for these specific product ids
107
+ #
108
+ # @param statuses [Array<Symbol, WhopSDK::Models::InvoiceStatus>, nil] The statuses to filter the invoices by
109
+ #
105
110
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
106
111
  #
107
112
  # @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::InvoiceListItem>]
@@ -127,7 +132,8 @@ module WhopSDK
127
132
  #
128
133
  # @overload void(id, request_options: {})
129
134
  #
130
- # @param id [String]
135
+ # @param id [String] The ID of the invoice to void
136
+ #
131
137
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
132
138
  #
133
139
  # @return [Boolean]
@@ -3,7 +3,10 @@
3
3
  module WhopSDK
4
4
  module Resources
5
5
  class LedgerAccounts
6
- # Retrieves a ledger account by ID
6
+ # Some parameter documentations has been truncated, see
7
+ # {WhopSDK::Models::LedgerAccountRetrieveParams} for more details.
8
+ #
9
+ # Retrieves a ledger account by its ID, company ID or user ID
7
10
  #
8
11
  # Required permissions:
9
12
  #
@@ -11,7 +14,8 @@ module WhopSDK
11
14
  #
12
15
  # @overload retrieve(id, request_options: {})
13
16
  #
14
- # @param id [String]
17
+ # @param id [String] Either a User ID, Company ID, or LedgerAccount ID (user_xxx, biz_xxx, or ldgr_xx
18
+ #
15
19
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
16
20
  #
17
21
  # @return [WhopSDK::Models::LedgerAccountRetrieveResponse]
@@ -13,7 +13,8 @@ module WhopSDK
13
13
  #
14
14
  # @overload retrieve(id, request_options: {})
15
15
  #
16
- # @param id [String]
16
+ # @param id [String] The ID of the member
17
+ #
17
18
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
18
19
  #
19
20
  # @return [WhopSDK::Models::MemberRetrieveResponse]
@@ -39,13 +40,11 @@ module WhopSDK
39
40
  # - `member:email:read`
40
41
  # - `member:phone:read`
41
42
  #
42
- # @overload list(company_id:, access_level: nil, access_pass_ids: nil, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, most_recent_actions: nil, order: nil, plan_ids: nil, promo_code_ids: nil, query: nil, statuses: nil, user_ids: nil, request_options: {})
43
+ # @overload list(company_id:, access_level: nil, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, most_recent_actions: nil, order: nil, plan_ids: nil, product_ids: nil, promo_code_ids: nil, query: nil, statuses: nil, user_ids: nil, request_options: {})
43
44
  #
44
45
  # @param company_id [String] The ID of the company to list members for
45
46
  #
46
- # @param access_level [Symbol, WhopSDK::Models::AccessLevel, nil] The access level a given user (or company) has to an access pass or company.
47
- #
48
- # @param access_pass_ids [Array<String>, nil] The access pass IDs to filter the members by
47
+ # @param access_level [Symbol, WhopSDK::Models::AccessLevel, nil] The access level a given user (or company) has to a product or company.
49
48
  #
50
49
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
51
50
  #
@@ -67,6 +66,8 @@ module WhopSDK
67
66
  #
68
67
  # @param plan_ids [Array<String>, nil] The plan IDs to filter the members by
69
68
  #
69
+ # @param product_ids [Array<String>, nil] The product IDs to filter the members by
70
+ #
70
71
  # @param promo_code_ids [Array<String>, nil] The promo code IDs to filter the members by
71
72
  #
72
73
  # @param query [String, nil] The name, username, or email to filter the members by. The email filter will onl
@@ -11,7 +11,8 @@ module WhopSDK
11
11
  #
12
12
  # @overload retrieve(id, request_options: {})
13
13
  #
14
- # @param id [String]
14
+ # @param id [String] The ID of the membership or a license key
15
+ #
15
16
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
16
17
  #
17
18
  # @return [WhopSDK::Models::Membership]
@@ -35,7 +36,7 @@ module WhopSDK
35
36
  #
36
37
  # @overload update(id, metadata: nil, request_options: {})
37
38
  #
38
- # @param id [String]
39
+ # @param id [String] The ID of the membership.
39
40
  #
40
41
  # @param metadata [Hash{Symbol=>Object}, nil] The metadata to update the membership with.
41
42
  #
@@ -61,9 +62,7 @@ module WhopSDK
61
62
  #
62
63
  # - `member:basic:read`
63
64
  #
64
- # @overload list(access_pass_ids: nil, after: nil, before: nil, cancel_options: nil, company_id: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, plan_ids: nil, promo_code_ids: nil, statuses: nil, user_ids: nil, request_options: {})
65
- #
66
- # @param access_pass_ids [Array<String>, nil] The access pass IDs to filter the memberships by
65
+ # @overload list(after: nil, before: nil, cancel_options: nil, company_id: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, plan_ids: nil, product_ids: nil, promo_code_ids: nil, statuses: nil, user_ids: nil, request_options: {})
67
66
  #
68
67
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
69
68
  #
@@ -87,6 +86,8 @@ module WhopSDK
87
86
  #
88
87
  # @param plan_ids [Array<String>, nil] The plan IDs to filter the memberships by
89
88
  #
89
+ # @param product_ids [Array<String>, nil] The product IDs to filter the memberships by
90
+ #
90
91
  # @param promo_code_ids [Array<String>, nil] The promo code IDs to filter the memberships by
91
92
  #
92
93
  # @param statuses [Array<Symbol, WhopSDK::Models::MembershipStatus>, nil] The membership status to filter the memberships by
@@ -120,7 +121,7 @@ module WhopSDK
120
121
  #
121
122
  # @overload cancel(id, cancellation_mode: nil, request_options: {})
122
123
  #
123
- # @param id [String]
124
+ # @param id [String] The ID of the membership.
124
125
  #
125
126
  # @param cancellation_mode [Symbol, WhopSDK::Models::MembershipCancelParams::CancellationMode, nil] The mode of cancellation for a membership
126
127
  #
@@ -152,7 +153,7 @@ module WhopSDK
152
153
  #
153
154
  # @overload pause(id, void_payments: nil, request_options: {})
154
155
  #
155
- # @param id [String]
156
+ # @param id [String] The ID of the membership you want to pause.
156
157
  #
157
158
  # @param void_payments [Boolean, nil] Whether to void past_due payments associated with the membership to prevent futu
158
159
  #
@@ -181,7 +182,8 @@ module WhopSDK
181
182
  #
182
183
  # @overload resume(id, request_options: {})
183
184
  #
184
- # @param id [String]
185
+ # @param id [String] The ID of the membership you want to resume.
186
+ #
185
187
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
186
188
  #
187
189
  # @return [WhopSDK::Models::Membership]