whop_sdk 0.0.2 → 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 (338) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +24 -0
  5. data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +30 -24
  6. data/lib/whop_sdk/models/app_build_create_params.rb +53 -29
  7. data/lib/whop_sdk/models/app_update_params.rb +53 -29
  8. data/lib/whop_sdk/models/assessment_question_types.rb +18 -0
  9. data/lib/whop_sdk/models/billing_reasons.rb +20 -0
  10. data/lib/whop_sdk/models/card_brands.rb +30 -0
  11. data/lib/whop_sdk/models/checkout_configuration.rb +10 -7
  12. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +251 -38
  13. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +10 -7
  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 +230 -0
  19. data/lib/whop_sdk/models/course_chapter.rb +72 -0
  20. data/lib/whop_sdk/models/course_chapter_create_params.rb +30 -0
  21. data/lib/whop_sdk/models/course_chapter_delete_params.rb +14 -0
  22. data/lib/whop_sdk/models/course_chapter_delete_response.rb +8 -0
  23. data/lib/whop_sdk/models/course_chapter_list_params.rb +54 -0
  24. data/lib/whop_sdk/models/course_chapter_list_response.rb +35 -0
  25. data/lib/whop_sdk/models/course_chapter_retrieve_params.rb +14 -0
  26. data/lib/whop_sdk/models/course_chapter_update_params.rb +22 -0
  27. data/lib/whop_sdk/models/course_create_params.rb +127 -0
  28. data/lib/whop_sdk/models/course_delete_params.rb +14 -0
  29. data/lib/whop_sdk/models/course_delete_response.rb +8 -0
  30. data/lib/whop_sdk/models/course_lesson_create_params.rb +54 -0
  31. data/lib/whop_sdk/models/course_lesson_delete_params.rb +14 -0
  32. data/lib/whop_sdk/models/course_lesson_delete_response.rb +8 -0
  33. data/lib/whop_sdk/models/course_lesson_list_params.rb +62 -0
  34. data/lib/whop_sdk/models/course_lesson_list_response.rb +71 -0
  35. data/lib/whop_sdk/models/course_lesson_retrieve_params.rb +14 -0
  36. data/lib/whop_sdk/models/course_lesson_update_params.rb +399 -0
  37. data/lib/whop_sdk/models/course_list_params.rb +62 -0
  38. data/lib/whop_sdk/models/course_list_response.rb +148 -0
  39. data/lib/whop_sdk/models/course_retrieve_params.rb +14 -0
  40. data/lib/whop_sdk/models/course_student_list_params.rb +62 -0
  41. data/lib/whop_sdk/models/course_student_list_response.rb +97 -0
  42. data/lib/whop_sdk/models/course_student_retrieve_params.rb +14 -0
  43. data/lib/whop_sdk/models/course_student_retrieve_response.rb +149 -0
  44. data/lib/whop_sdk/models/course_update_params.rb +221 -0
  45. data/lib/whop_sdk/models/experience_duplicate_params.rb +22 -0
  46. data/lib/whop_sdk/models/experience_update_params.rb +53 -29
  47. data/lib/whop_sdk/models/forum_post.rb +17 -1
  48. data/lib/whop_sdk/models/forum_post_create_params.rb +51 -27
  49. data/lib/whop_sdk/models/forum_post_list_response.rb +17 -1
  50. data/lib/whop_sdk/models/forum_post_update_params.rb +104 -0
  51. data/lib/whop_sdk/models/invoice.rb +6 -2
  52. data/lib/whop_sdk/models/invoice_create_params.rb +48 -32
  53. data/lib/whop_sdk/models/invoice_list_item.rb +6 -2
  54. data/lib/whop_sdk/models/languages.rb +36 -0
  55. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +9 -0
  56. data/lib/whop_sdk/models/lesson.rb +373 -0
  57. data/lib/whop_sdk/models/lesson_types.rb +20 -0
  58. data/lib/whop_sdk/models/lesson_visibilities.rb +17 -0
  59. data/lib/whop_sdk/models/member_list_params.rb +9 -1
  60. data/lib/whop_sdk/models/membership.rb +31 -1
  61. data/lib/whop_sdk/models/membership_list_params.rb +16 -8
  62. data/lib/whop_sdk/models/membership_list_response.rb +31 -1
  63. data/lib/whop_sdk/models/message_create_params.rb +51 -27
  64. data/lib/whop_sdk/models/message_update_params.rb +92 -0
  65. data/lib/whop_sdk/models/payment.rb +34 -22
  66. data/lib/whop_sdk/models/payment_list_params.rb +3 -18
  67. data/lib/whop_sdk/models/payment_list_response.rb +34 -22
  68. data/lib/whop_sdk/models/payment_method_types.rb +99 -0
  69. data/lib/whop_sdk/models/plan.rb +72 -1
  70. data/lib/whop_sdk/models/plan_create_params.rb +133 -24
  71. data/lib/whop_sdk/models/plan_list_response.rb +75 -1
  72. data/lib/whop_sdk/models/plan_update_params.rb +131 -22
  73. data/lib/whop_sdk/models/product.rb +11 -1
  74. data/lib/whop_sdk/models/product_create_params.rb +1 -45
  75. data/lib/whop_sdk/models/product_list_item.rb +14 -1
  76. data/lib/whop_sdk/models/product_update_params.rb +76 -23
  77. data/lib/whop_sdk/models/promo_code.rb +211 -0
  78. data/lib/whop_sdk/models/promo_code_create_params.rb +140 -0
  79. data/lib/whop_sdk/models/promo_code_delete_params.rb +14 -0
  80. data/lib/whop_sdk/models/promo_code_delete_response.rb +8 -0
  81. data/lib/whop_sdk/models/promo_code_list_params.rb +78 -0
  82. data/lib/whop_sdk/models/promo_code_list_response.rb +181 -0
  83. data/lib/whop_sdk/models/promo_code_retrieve_params.rb +14 -0
  84. data/lib/whop_sdk/models/promo_code_status.rb +17 -0
  85. data/lib/whop_sdk/models/promo_duration.rb +17 -0
  86. data/lib/whop_sdk/models/review_list_params.rb +70 -0
  87. data/lib/whop_sdk/models/review_list_response.rb +183 -0
  88. data/lib/whop_sdk/models/review_retrieve_params.rb +14 -0
  89. data/lib/whop_sdk/models/review_retrieve_response.rb +251 -0
  90. data/lib/whop_sdk/models/review_status.rb +17 -0
  91. data/lib/whop_sdk/models/transfer.rb +9 -1
  92. data/lib/whop_sdk/models/transfer_create_params.rb +9 -1
  93. data/lib/whop_sdk/models/transfer_list_response.rb +9 -1
  94. data/lib/whop_sdk/models.rb +84 -0
  95. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  96. data/lib/whop_sdk/resources/apps.rb +1 -1
  97. data/lib/whop_sdk/resources/checkout_configurations.rb +8 -6
  98. data/lib/whop_sdk/resources/companies.rb +70 -0
  99. data/lib/whop_sdk/resources/course_chapters.rb +151 -0
  100. data/lib/whop_sdk/resources/course_lesson_interactions.rb +2 -2
  101. data/lib/whop_sdk/resources/course_lessons.rb +182 -0
  102. data/lib/whop_sdk/resources/course_students.rb +76 -0
  103. data/lib/whop_sdk/resources/courses.rb +185 -0
  104. data/lib/whop_sdk/resources/experiences.rb +34 -1
  105. data/lib/whop_sdk/resources/forum_posts.rb +34 -1
  106. data/lib/whop_sdk/resources/invoices.rb +11 -11
  107. data/lib/whop_sdk/resources/members.rb +3 -1
  108. data/lib/whop_sdk/resources/memberships.rb +6 -4
  109. data/lib/whop_sdk/resources/messages.rb +29 -1
  110. data/lib/whop_sdk/resources/payments.rb +1 -1
  111. data/lib/whop_sdk/resources/plans.rb +25 -5
  112. data/lib/whop_sdk/resources/products.rb +5 -7
  113. data/lib/whop_sdk/resources/promo_codes.rb +161 -0
  114. data/lib/whop_sdk/resources/reviews.rb +68 -0
  115. data/lib/whop_sdk/resources/transfers.rb +3 -1
  116. data/lib/whop_sdk/version.rb +1 -1
  117. data/lib/whop_sdk.rb +61 -1
  118. data/rbi/whop_sdk/client.rbi +18 -0
  119. data/rbi/whop_sdk/models/app_build_create_params.rbi +80 -40
  120. data/rbi/whop_sdk/models/app_update_params.rbi +86 -37
  121. data/rbi/whop_sdk/models/assessment_question_types.rbi +31 -0
  122. data/rbi/whop_sdk/models/billing_reasons.rbi +27 -0
  123. data/rbi/whop_sdk/models/card_brands.rbi +35 -0
  124. data/rbi/whop_sdk/models/checkout_configuration.rbi +4 -2
  125. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +371 -62
  126. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +4 -2
  127. data/rbi/whop_sdk/models/company.rbi +10 -0
  128. data/rbi/whop_sdk/models/company_create_params.rbi +67 -0
  129. data/rbi/whop_sdk/models/company_list_params.rbi +83 -0
  130. data/rbi/whop_sdk/models/company_list_response.rbi +235 -0
  131. data/rbi/whop_sdk/models/course.rbi +313 -0
  132. data/rbi/whop_sdk/models/course_chapter.rbi +101 -0
  133. data/rbi/whop_sdk/models/course_chapter_create_params.rbi +51 -0
  134. data/rbi/whop_sdk/models/course_chapter_delete_params.rbi +27 -0
  135. data/rbi/whop_sdk/models/course_chapter_delete_response.rbi +8 -0
  136. data/rbi/whop_sdk/models/course_chapter_list_params.rbi +75 -0
  137. data/rbi/whop_sdk/models/course_chapter_list_response.rbi +47 -0
  138. data/rbi/whop_sdk/models/course_chapter_retrieve_params.rbi +30 -0
  139. data/rbi/whop_sdk/models/course_chapter_update_params.rbi +40 -0
  140. data/rbi/whop_sdk/models/course_create_params.rbi +197 -0
  141. data/rbi/whop_sdk/models/course_delete_params.rbi +27 -0
  142. data/rbi/whop_sdk/models/course_delete_response.rbi +7 -0
  143. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +75 -0
  144. data/rbi/whop_sdk/models/course_lesson_delete_params.rbi +27 -0
  145. data/rbi/whop_sdk/models/course_lesson_delete_response.rbi +8 -0
  146. data/rbi/whop_sdk/models/course_lesson_list_params.rbi +83 -0
  147. data/rbi/whop_sdk/models/course_lesson_list_response.rbi +91 -0
  148. data/rbi/whop_sdk/models/course_lesson_retrieve_params.rbi +27 -0
  149. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +677 -0
  150. data/rbi/whop_sdk/models/course_list_params.rbi +83 -0
  151. data/rbi/whop_sdk/models/course_list_response.rbi +198 -0
  152. data/rbi/whop_sdk/models/course_retrieve_params.rbi +27 -0
  153. data/rbi/whop_sdk/models/course_student_list_params.rbi +83 -0
  154. data/rbi/whop_sdk/models/course_student_list_response.rbi +142 -0
  155. data/rbi/whop_sdk/models/course_student_retrieve_params.rbi +30 -0
  156. data/rbi/whop_sdk/models/course_student_retrieve_response.rbi +250 -0
  157. data/rbi/whop_sdk/models/course_update_params.rbi +339 -0
  158. data/rbi/whop_sdk/models/experience_duplicate_params.rbi +40 -0
  159. data/rbi/whop_sdk/models/experience_update_params.rbi +84 -38
  160. data/rbi/whop_sdk/models/forum_post.rbi +16 -0
  161. data/rbi/whop_sdk/models/forum_post_create_params.rbi +85 -32
  162. data/rbi/whop_sdk/models/forum_post_list_response.rbi +16 -0
  163. data/rbi/whop_sdk/models/forum_post_update_params.rbi +177 -0
  164. data/rbi/whop_sdk/models/invoice.rbi +4 -2
  165. data/rbi/whop_sdk/models/invoice_create_params.rbi +58 -44
  166. data/rbi/whop_sdk/models/invoice_list_item.rbi +4 -2
  167. data/rbi/whop_sdk/models/languages.rbi +40 -0
  168. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +45 -0
  169. data/rbi/whop_sdk/models/lesson.rbi +521 -0
  170. data/rbi/whop_sdk/models/lesson_types.rbi +25 -0
  171. data/rbi/whop_sdk/models/lesson_visibilities.rbi +23 -0
  172. data/rbi/whop_sdk/models/member_list_params.rbi +8 -0
  173. data/rbi/whop_sdk/models/membership.rbi +40 -0
  174. data/rbi/whop_sdk/models/membership_list_params.rbi +16 -8
  175. data/rbi/whop_sdk/models/membership_list_response.rbi +47 -0
  176. data/rbi/whop_sdk/models/message_create_params.rbi +85 -32
  177. data/rbi/whop_sdk/models/message_update_params.rbi +167 -0
  178. data/rbi/whop_sdk/models/payment.rbi +42 -25
  179. data/rbi/whop_sdk/models/payment_list_params.rbi +3 -63
  180. data/rbi/whop_sdk/models/payment_list_response.rbi +42 -25
  181. data/rbi/whop_sdk/models/payment_method_types.rbi +118 -0
  182. data/rbi/whop_sdk/models/plan.rbi +106 -0
  183. data/rbi/whop_sdk/models/plan_create_params.rbi +212 -34
  184. data/rbi/whop_sdk/models/plan_list_response.rbi +118 -0
  185. data/rbi/whop_sdk/models/plan_update_params.rbi +210 -32
  186. data/rbi/whop_sdk/models/product.rbi +12 -0
  187. data/rbi/whop_sdk/models/product_create_params.rbi +0 -74
  188. data/rbi/whop_sdk/models/product_list_item.rbi +12 -0
  189. data/rbi/whop_sdk/models/product_update_params.rbi +136 -33
  190. data/rbi/whop_sdk/models/promo_code.rbi +248 -0
  191. data/rbi/whop_sdk/models/promo_code_create_params.rbi +161 -0
  192. data/rbi/whop_sdk/models/promo_code_delete_params.rbi +27 -0
  193. data/rbi/whop_sdk/models/promo_code_delete_response.rbi +8 -0
  194. data/rbi/whop_sdk/models/promo_code_list_params.rbi +99 -0
  195. data/rbi/whop_sdk/models/promo_code_list_response.rbi +222 -0
  196. data/rbi/whop_sdk/models/promo_code_retrieve_params.rbi +27 -0
  197. data/rbi/whop_sdk/models/promo_code_status.rbi +21 -0
  198. data/rbi/whop_sdk/models/promo_duration.rbi +21 -0
  199. data/rbi/whop_sdk/models/review_list_params.rbi +91 -0
  200. data/rbi/whop_sdk/models/review_list_response.rbi +243 -0
  201. data/rbi/whop_sdk/models/review_retrieve_params.rbi +27 -0
  202. data/rbi/whop_sdk/models/review_retrieve_response.rbi +354 -0
  203. data/rbi/whop_sdk/models/review_status.rbi +21 -0
  204. data/rbi/whop_sdk/models/transfer.rbi +8 -0
  205. data/rbi/whop_sdk/models/transfer_create_params.rbi +8 -0
  206. data/rbi/whop_sdk/models/transfer_list_response.rbi +8 -0
  207. data/rbi/whop_sdk/models.rbi +84 -0
  208. data/rbi/whop_sdk/resources/app_builds.rbi +5 -1
  209. data/rbi/whop_sdk/resources/apps.rbi +7 -1
  210. data/rbi/whop_sdk/resources/checkout_configurations.rbi +8 -7
  211. data/rbi/whop_sdk/resources/companies.rbi +63 -0
  212. data/rbi/whop_sdk/resources/course_chapters.rbi +115 -0
  213. data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +2 -2
  214. data/rbi/whop_sdk/resources/course_lessons.rbi +182 -0
  215. data/rbi/whop_sdk/resources/course_students.rbi +65 -0
  216. data/rbi/whop_sdk/resources/courses.rbi +172 -0
  217. data/rbi/whop_sdk/resources/experiences.rbi +32 -1
  218. data/rbi/whop_sdk/resources/forum_posts.rbi +40 -1
  219. data/rbi/whop_sdk/resources/invoices.rbi +18 -18
  220. data/rbi/whop_sdk/resources/members.rbi +3 -0
  221. data/rbi/whop_sdk/resources/memberships.rbi +6 -3
  222. data/rbi/whop_sdk/resources/messages.rbi +36 -1
  223. data/rbi/whop_sdk/resources/payments.rbi +1 -3
  224. data/rbi/whop_sdk/resources/plans.rbi +57 -3
  225. data/rbi/whop_sdk/resources/products.rbi +10 -8
  226. data/rbi/whop_sdk/resources/promo_codes.rbi +147 -0
  227. data/rbi/whop_sdk/resources/reviews.rbi +56 -0
  228. data/rbi/whop_sdk/resources/transfers.rbi +3 -0
  229. data/sig/whop_sdk/client.rbs +12 -0
  230. data/sig/whop_sdk/models/app_build_create_params.rbs +29 -10
  231. data/sig/whop_sdk/models/app_update_params.rbs +29 -10
  232. data/sig/whop_sdk/models/assessment_question_types.rbs +17 -0
  233. data/sig/whop_sdk/models/billing_reasons.rbs +24 -0
  234. data/sig/whop_sdk/models/card_brands.rbs +44 -0
  235. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +159 -21
  236. data/sig/whop_sdk/models/company.rbs +5 -0
  237. data/sig/whop_sdk/models/company_create_params.rbs +41 -0
  238. data/sig/whop_sdk/models/company_list_params.rbs +51 -0
  239. data/sig/whop_sdk/models/company_list_response.rbs +109 -0
  240. data/sig/whop_sdk/models/course.rbs +171 -0
  241. data/sig/whop_sdk/models/course_chapter.rbs +49 -0
  242. data/sig/whop_sdk/models/course_chapter_create_params.rbs +28 -0
  243. data/sig/whop_sdk/models/course_chapter_delete_params.rbs +15 -0
  244. data/sig/whop_sdk/models/course_chapter_delete_response.rbs +5 -0
  245. data/sig/whop_sdk/models/course_chapter_list_params.rbs +46 -0
  246. data/sig/whop_sdk/models/course_chapter_list_response.rbs +18 -0
  247. data/sig/whop_sdk/models/course_chapter_retrieve_params.rbs +15 -0
  248. data/sig/whop_sdk/models/course_chapter_update_params.rbs +23 -0
  249. data/sig/whop_sdk/models/course_create_params.rbs +87 -0
  250. data/sig/whop_sdk/models/course_delete_params.rbs +15 -0
  251. data/sig/whop_sdk/models/course_delete_response.rbs +5 -0
  252. data/sig/whop_sdk/models/course_lesson_create_params.rbs +46 -0
  253. data/sig/whop_sdk/models/course_lesson_delete_params.rbs +15 -0
  254. data/sig/whop_sdk/models/course_lesson_delete_response.rbs +5 -0
  255. data/sig/whop_sdk/models/course_lesson_list_params.rbs +51 -0
  256. data/sig/whop_sdk/models/course_lesson_list_response.rbs +50 -0
  257. data/sig/whop_sdk/models/course_lesson_retrieve_params.rbs +15 -0
  258. data/sig/whop_sdk/models/course_lesson_update_params.rbs +248 -0
  259. data/sig/whop_sdk/models/course_list_params.rbs +51 -0
  260. data/sig/whop_sdk/models/course_list_response.rbs +102 -0
  261. data/sig/whop_sdk/models/course_retrieve_params.rbs +15 -0
  262. data/sig/whop_sdk/models/course_student_list_params.rbs +51 -0
  263. data/sig/whop_sdk/models/course_student_list_response.rbs +64 -0
  264. data/sig/whop_sdk/models/course_student_retrieve_params.rbs +15 -0
  265. data/sig/whop_sdk/models/course_student_retrieve_response.rbs +106 -0
  266. data/sig/whop_sdk/models/course_update_params.rbs +156 -0
  267. data/sig/whop_sdk/models/experience_duplicate_params.rbs +23 -0
  268. data/sig/whop_sdk/models/experience_update_params.rbs +29 -10
  269. data/sig/whop_sdk/models/forum_post.rbs +10 -0
  270. data/sig/whop_sdk/models/forum_post_create_params.rbs +29 -10
  271. data/sig/whop_sdk/models/forum_post_list_response.rbs +10 -0
  272. data/sig/whop_sdk/models/forum_post_update_params.rbs +72 -0
  273. data/sig/whop_sdk/models/invoice_create_params.rbs +28 -18
  274. data/sig/whop_sdk/models/languages.rbs +56 -0
  275. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +20 -1
  276. data/sig/whop_sdk/models/lesson.rbs +248 -0
  277. data/sig/whop_sdk/models/lesson_types.rbs +19 -0
  278. data/sig/whop_sdk/models/lesson_visibilities.rbs +14 -0
  279. data/sig/whop_sdk/models/member_list_params.rbs +6 -1
  280. data/sig/whop_sdk/models/membership.rbs +17 -0
  281. data/sig/whop_sdk/models/membership_list_params.rbs +11 -6
  282. data/sig/whop_sdk/models/membership_list_response.rbs +17 -0
  283. data/sig/whop_sdk/models/message_create_params.rbs +29 -10
  284. data/sig/whop_sdk/models/message_update_params.rbs +67 -0
  285. data/sig/whop_sdk/models/payment.rbs +17 -12
  286. data/sig/whop_sdk/models/payment_list_params.rbs +4 -25
  287. data/sig/whop_sdk/models/payment_list_response.rbs +17 -12
  288. data/sig/whop_sdk/models/payment_method_types.rbs +182 -0
  289. data/sig/whop_sdk/models/plan.rbs +47 -0
  290. data/sig/whop_sdk/models/plan_create_params.rbs +81 -10
  291. data/sig/whop_sdk/models/plan_list_response.rbs +47 -0
  292. data/sig/whop_sdk/models/plan_update_params.rbs +81 -10
  293. data/sig/whop_sdk/models/product.rbs +5 -0
  294. data/sig/whop_sdk/models/product_create_params.rbs +0 -22
  295. data/sig/whop_sdk/models/product_list_item.rbs +5 -0
  296. data/sig/whop_sdk/models/product_update_params.rbs +46 -10
  297. data/sig/whop_sdk/models/promo_code.rbs +134 -0
  298. data/sig/whop_sdk/models/promo_code_create_params.rbs +96 -0
  299. data/sig/whop_sdk/models/promo_code_delete_params.rbs +15 -0
  300. data/sig/whop_sdk/models/promo_code_delete_response.rbs +5 -0
  301. data/sig/whop_sdk/models/promo_code_list_params.rbs +61 -0
  302. data/sig/whop_sdk/models/promo_code_list_response.rbs +117 -0
  303. data/sig/whop_sdk/models/promo_code_retrieve_params.rbs +15 -0
  304. data/sig/whop_sdk/models/promo_code_status.rbs +15 -0
  305. data/sig/whop_sdk/models/promo_duration.rbs +15 -0
  306. data/sig/whop_sdk/models/review_list_params.rbs +56 -0
  307. data/sig/whop_sdk/models/review_list_response.rbs +116 -0
  308. data/sig/whop_sdk/models/review_retrieve_params.rbs +15 -0
  309. data/sig/whop_sdk/models/review_retrieve_response.rbs +152 -0
  310. data/sig/whop_sdk/models/review_status.rbs +15 -0
  311. data/sig/whop_sdk/models/transfer.rbs +5 -0
  312. data/sig/whop_sdk/models/transfer_create_params.rbs +5 -0
  313. data/sig/whop_sdk/models/transfer_list_response.rbs +5 -0
  314. data/sig/whop_sdk/models.rbs +84 -0
  315. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  316. data/sig/whop_sdk/resources/apps.rbs +1 -1
  317. data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -2
  318. data/sig/whop_sdk/resources/companies.rbs +18 -0
  319. data/sig/whop_sdk/resources/course_chapters.rbs +35 -0
  320. data/sig/whop_sdk/resources/course_lessons.rbs +49 -0
  321. data/sig/whop_sdk/resources/course_students.rbs +22 -0
  322. data/sig/whop_sdk/resources/courses.rbs +49 -0
  323. data/sig/whop_sdk/resources/experiences.rbs +7 -1
  324. data/sig/whop_sdk/resources/forum_posts.rbs +10 -1
  325. data/sig/whop_sdk/resources/invoices.rbs +5 -5
  326. data/sig/whop_sdk/resources/members.rbs +1 -0
  327. data/sig/whop_sdk/resources/memberships.rbs +2 -1
  328. data/sig/whop_sdk/resources/messages.rbs +9 -1
  329. data/sig/whop_sdk/resources/payments.rbs +1 -1
  330. data/sig/whop_sdk/resources/plans.rbs +12 -2
  331. data/sig/whop_sdk/resources/products.rbs +2 -3
  332. data/sig/whop_sdk/resources/promo_codes.rbs +45 -0
  333. data/sig/whop_sdk/resources/reviews.rbs +23 -0
  334. data/sig/whop_sdk/resources/transfers.rbs +1 -0
  335. metadata +213 -5
  336. data/lib/whop_sdk/models/invoice_create_response.rb +0 -27
  337. data/rbi/whop_sdk/models/invoice_create_response.rbi +0 -49
  338. data/sig/whop_sdk/models/invoice_create_response.rbs +0 -19
@@ -0,0 +1,65 @@
1
+ # typed: strong
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
+ sig do
13
+ params(
14
+ id: String,
15
+ request_options: WhopSDK::RequestOptions::OrHash
16
+ ).returns(WhopSDK::Models::CourseStudentRetrieveResponse)
17
+ end
18
+ def retrieve(id, request_options: {})
19
+ end
20
+
21
+ # Lists students for a course
22
+ #
23
+ # Required permissions:
24
+ #
25
+ # - `courses:read`
26
+ # - `course_analytics:read`
27
+ sig do
28
+ params(
29
+ course_id: String,
30
+ after: T.nilable(String),
31
+ before: T.nilable(String),
32
+ first: T.nilable(Integer),
33
+ keyword: T.nilable(String),
34
+ last: T.nilable(Integer),
35
+ request_options: WhopSDK::RequestOptions::OrHash
36
+ ).returns(
37
+ WhopSDK::Internal::CursorPage[
38
+ WhopSDK::Models::CourseStudentListResponse
39
+ ]
40
+ )
41
+ end
42
+ def list(
43
+ # The ID of the course
44
+ course_id:,
45
+ # Returns the elements in the list that come after the specified cursor.
46
+ after: nil,
47
+ # Returns the elements in the list that come before the specified cursor.
48
+ before: nil,
49
+ # Returns the first _n_ elements from the list.
50
+ first: nil,
51
+ # Filter students by name - returns students whose names match the keyword
52
+ keyword: nil,
53
+ # Returns the last _n_ elements from the list.
54
+ last: nil,
55
+ request_options: {}
56
+ )
57
+ end
58
+
59
+ # @api private
60
+ sig { params(client: WhopSDK::Client).returns(T.attached_class) }
61
+ def self.new(client:)
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,172 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Resources
5
+ class Courses
6
+ # Creates a new course module in an experience
7
+ #
8
+ # Required permissions:
9
+ #
10
+ # - `courses:update`
11
+ sig do
12
+ params(
13
+ experience_id: String,
14
+ title: String,
15
+ certificate_after_completion_enabled: T.nilable(T::Boolean),
16
+ cover_image: T.nilable(String),
17
+ require_completing_lessons_in_order: T.nilable(T::Boolean),
18
+ tagline: T.nilable(String),
19
+ thumbnail:
20
+ T.nilable(
21
+ T.any(
22
+ WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID::OrHash,
23
+ WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID::OrHash
24
+ )
25
+ ),
26
+ request_options: WhopSDK::RequestOptions::OrHash
27
+ ).returns(WhopSDK::Course)
28
+ end
29
+ def create(
30
+ # The ID of the experience to create the course in
31
+ experience_id:,
32
+ # The title of the course
33
+ title:,
34
+ # Whether the course will award its students a PDF certificate after completing
35
+ # all lessons
36
+ certificate_after_completion_enabled: nil,
37
+ # The cover image URL of the course
38
+ cover_image: nil,
39
+ # Whether the course requires students to complete the previous lesson before
40
+ # moving on to the next one
41
+ require_completing_lessons_in_order: nil,
42
+ # The tagline of the course
43
+ tagline: nil,
44
+ # The thumbnail for the course in png, jpeg, or gif format
45
+ thumbnail: nil,
46
+ request_options: {}
47
+ )
48
+ end
49
+
50
+ # Retrieves a course by ID
51
+ #
52
+ # Required permissions:
53
+ #
54
+ # - `courses:read`
55
+ sig do
56
+ params(
57
+ id: String,
58
+ request_options: WhopSDK::RequestOptions::OrHash
59
+ ).returns(WhopSDK::Course)
60
+ end
61
+ def retrieve(id, request_options: {})
62
+ end
63
+
64
+ # Updates a course
65
+ #
66
+ # Required permissions:
67
+ #
68
+ # - `courses:update`
69
+ sig do
70
+ params(
71
+ id: String,
72
+ certificate_after_completion_enabled: T.nilable(T::Boolean),
73
+ chapters:
74
+ T.nilable(T::Array[WhopSDK::CourseUpdateParams::Chapter::OrHash]),
75
+ cover_image: T.nilable(String),
76
+ description: T.nilable(String),
77
+ language: T.nilable(WhopSDK::Languages::OrSymbol),
78
+ require_completing_lessons_in_order: T.nilable(T::Boolean),
79
+ tagline: T.nilable(String),
80
+ thumbnail:
81
+ T.nilable(
82
+ T.any(
83
+ WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID::OrHash,
84
+ WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithID::OrHash
85
+ )
86
+ ),
87
+ title: T.nilable(String),
88
+ request_options: WhopSDK::RequestOptions::OrHash
89
+ ).returns(WhopSDK::Course)
90
+ end
91
+ def update(
92
+ id,
93
+ # Whether the course will award its students a PDF certificate after completing
94
+ # all lessons
95
+ certificate_after_completion_enabled: nil,
96
+ # The chapters and lessons to update
97
+ chapters: nil,
98
+ # The cover image URL of the course
99
+ cover_image: nil,
100
+ # A short description of the course
101
+ description: nil,
102
+ # The available languages for a course
103
+ language: nil,
104
+ # Whether the course requires students to complete the previous lesson before
105
+ # moving on to the next one
106
+ require_completing_lessons_in_order: nil,
107
+ # A short tagline for the course
108
+ tagline: nil,
109
+ # The thumbnail for the course in png, jpeg, or gif format
110
+ thumbnail: nil,
111
+ # The title of the course
112
+ title: nil,
113
+ request_options: {}
114
+ )
115
+ end
116
+
117
+ # Lists courses for an experience or company
118
+ #
119
+ # Required permissions:
120
+ #
121
+ # - `courses:read`
122
+ sig do
123
+ params(
124
+ after: T.nilable(String),
125
+ before: T.nilable(String),
126
+ company_id: T.nilable(String),
127
+ experience_id: T.nilable(String),
128
+ first: T.nilable(Integer),
129
+ last: T.nilable(Integer),
130
+ request_options: WhopSDK::RequestOptions::OrHash
131
+ ).returns(
132
+ WhopSDK::Internal::CursorPage[WhopSDK::Models::CourseListResponse]
133
+ )
134
+ end
135
+ def list(
136
+ # Returns the elements in the list that come after the specified cursor.
137
+ after: nil,
138
+ # Returns the elements in the list that come before the specified cursor.
139
+ before: nil,
140
+ # The ID of the company
141
+ company_id: nil,
142
+ # The ID of the experience
143
+ experience_id: nil,
144
+ # Returns the first _n_ elements from the list.
145
+ first: nil,
146
+ # Returns the last _n_ elements from the list.
147
+ last: nil,
148
+ request_options: {}
149
+ )
150
+ end
151
+
152
+ # Deletes a course
153
+ #
154
+ # Required permissions:
155
+ #
156
+ # - `courses:update`
157
+ sig do
158
+ params(
159
+ id: String,
160
+ request_options: WhopSDK::RequestOptions::OrHash
161
+ ).returns(T::Boolean)
162
+ end
163
+ def delete(id, request_options: {})
164
+ end
165
+
166
+ # @api private
167
+ sig { params(client: WhopSDK::Client).returns(T.attached_class) }
168
+ def self.new(client:)
169
+ end
170
+ end
171
+ end
172
+ end
@@ -46,7 +46,13 @@ module WhopSDK
46
46
  id: String,
47
47
  access_level:
48
48
  T.nilable(WhopSDK::ExperienceUpdateParams::AccessLevel::OrSymbol),
49
- logo: T.nilable(WhopSDK::ExperienceUpdateParams::Logo::OrHash),
49
+ logo:
50
+ T.nilable(
51
+ T.any(
52
+ WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID::OrHash,
53
+ WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID::OrHash
54
+ )
55
+ ),
50
56
  name: T.nilable(String),
51
57
  order: T.nilable(String),
52
58
  section_id: T.nilable(String),
@@ -161,6 +167,31 @@ module WhopSDK
161
167
  )
162
168
  end
163
169
 
170
+ # Duplicates an existing experience. The name will be copied, unless provided. The
171
+ # new experience will be attached to the same products as the original experience.
172
+ # If duplicating a Forum or Chat experience, the new experience will have the same
173
+ # settings as the original experience, e.g. who can post, who can comment, etc. No
174
+ # content, e.g. posts, messages, lessons from within the original experience will
175
+ # be copied.
176
+ #
177
+ # Required permissions:
178
+ #
179
+ # - `experience:create`
180
+ sig do
181
+ params(
182
+ id: String,
183
+ name: T.nilable(String),
184
+ request_options: WhopSDK::RequestOptions::OrHash
185
+ ).returns(WhopSDK::Experience)
186
+ end
187
+ def duplicate(
188
+ id,
189
+ # The name of the new experience
190
+ name: nil,
191
+ request_options: {}
192
+ )
193
+ end
194
+
164
195
  # @api private
165
196
  sig { params(client: WhopSDK::Client).returns(T.attached_class) }
166
197
  def self.new(client:)
@@ -13,7 +13,12 @@ module WhopSDK
13
13
  experience_id: String,
14
14
  attachments:
15
15
  T.nilable(
16
- T::Array[WhopSDK::ForumPostCreateParams::Attachment::OrHash]
16
+ T::Array[
17
+ T.any(
18
+ WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
19
+ WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID::OrHash
20
+ )
21
+ ]
17
22
  ),
18
23
  content: T.nilable(String),
19
24
  is_mention: T.nilable(T::Boolean),
@@ -70,6 +75,40 @@ module WhopSDK
70
75
  def retrieve(id, request_options: {})
71
76
  end
72
77
 
78
+ # Update an existing forum post
79
+ sig do
80
+ params(
81
+ id: String,
82
+ attachments:
83
+ T.nilable(
84
+ T::Array[
85
+ T.any(
86
+ WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
87
+ WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID::OrHash
88
+ )
89
+ ]
90
+ ),
91
+ content: T.nilable(String),
92
+ is_pinned: T.nilable(T::Boolean),
93
+ title: T.nilable(String),
94
+ request_options: WhopSDK::RequestOptions::OrHash
95
+ ).returns(WhopSDK::ForumPost)
96
+ end
97
+ def update(
98
+ id,
99
+ # The attachments for this post
100
+ attachments: nil,
101
+ # This is the main body of the post in Markdown format. Hidden if paywalled and
102
+ # user hasn't purchased access to it.
103
+ content: nil,
104
+ # Whether the post is pinned. You can only pin a top level posts (not comments).
105
+ is_pinned: nil,
106
+ # The title of the post. Only visible if paywalled.
107
+ title: nil,
108
+ request_options: {}
109
+ )
110
+ end
111
+
73
112
  # Lists forum posts
74
113
  #
75
114
  # Required permissions:
@@ -14,16 +14,16 @@ module WhopSDK
14
14
  collection_method: WhopSDK::CollectionMethod::OrSymbol,
15
15
  company_id: String,
16
16
  due_date: Time,
17
+ member_id: String,
17
18
  plan: WhopSDK::InvoiceCreateParams::Plan::OrHash,
19
+ product: WhopSDK::InvoiceCreateParams::Product::OrHash,
20
+ email_address: String,
21
+ product_id: String,
18
22
  charge_buyer_fee: T.nilable(T::Boolean),
19
23
  customer_name: T.nilable(String),
20
- email_address: T.nilable(String),
21
- member_id: T.nilable(String),
22
24
  payment_token_id: T.nilable(String),
23
- product: T.nilable(WhopSDK::InvoiceCreateParams::Product::OrHash),
24
- product_id: T.nilable(String),
25
25
  request_options: WhopSDK::RequestOptions::OrHash
26
- ).returns(WhopSDK::Models::InvoiceCreateResponse)
26
+ ).returns(WhopSDK::Invoice)
27
27
  end
28
28
  def create(
29
29
  # The method of collection for this invoice. If using charge_automatically, you
@@ -33,30 +33,30 @@ module WhopSDK
33
33
  company_id:,
34
34
  # The date the invoice is due, if applicable.
35
35
  due_date:,
36
+ # The member ID to create this invoice for. Include this if you want to create an
37
+ # invoice for an existing member. If you do not have a member ID, you must provide
38
+ # an email_address and customer_name.
39
+ member_id:,
36
40
  # The properties of the plan to create for this invoice.
37
41
  plan:,
42
+ # The properties of the product to create for this invoice. Include this if you
43
+ # want to create an invoice for a new product.
44
+ product:,
45
+ # The email address to create this invoice for. This is required if you want to
46
+ # create an invoice for a user who does not have a member of your company yet.
47
+ email_address:,
48
+ # The product ID to create this invoice for. Include this if you want to create an
49
+ # invoice for an existing product.
50
+ product_id:,
38
51
  # Whether or not to charge the customer a buyer fee.
39
52
  charge_buyer_fee: nil,
40
53
  # The name of the customer to create this invoice for. This is required if you
41
54
  # want to create an invoice for a customer who does not have a member of your
42
55
  # company yet.
43
56
  customer_name: nil,
44
- # The email address to create this invoice for. This is required if you want to
45
- # create an invoice for a user who does not have a member of your company yet.
46
- email_address: nil,
47
- # The member ID to create this invoice for. Include this if you want to create an
48
- # invoice for an existing member. If you do not have a member ID, you must provide
49
- # an email_address and customer_name.
50
- member_id: nil,
51
57
  # The payment token ID to use for this invoice. If using charge_automatically, you
52
58
  # must provide a payment_token.
53
59
  payment_token_id: nil,
54
- # The properties of the product to create for this invoice. Include this if you
55
- # want to create an invoice for a new product.
56
- product: nil,
57
- # The product ID to create this invoice for. Include this if you want to create an
58
- # invoice for an existing product.
59
- product_id: nil,
60
60
  request_options: {}
61
61
  )
62
62
  end
@@ -45,6 +45,7 @@ module WhopSDK
45
45
  promo_code_ids: T.nilable(T::Array[String]),
46
46
  query: T.nilable(String),
47
47
  statuses: T.nilable(T::Array[WhopSDK::MemberStatuses::OrSymbol]),
48
+ user_ids: T.nilable(T::Array[String]),
48
49
  request_options: WhopSDK::RequestOptions::OrHash
49
50
  ).returns(
50
51
  WhopSDK::Internal::CursorPage[WhopSDK::Models::MemberListResponse]
@@ -84,6 +85,8 @@ module WhopSDK
84
85
  query: nil,
85
86
  # The statuses to filter the members by
86
87
  statuses: nil,
88
+ # The user IDs to filter the members by
89
+ user_ids: nil,
87
90
  request_options: {}
88
91
  )
89
92
  end
@@ -45,7 +45,6 @@ module WhopSDK
45
45
  # - `member:basic:read`
46
46
  sig do
47
47
  params(
48
- company_id: String,
49
48
  access_pass_ids: T.nilable(T::Array[String]),
50
49
  after: T.nilable(String),
51
50
  before: T.nilable(String),
@@ -53,6 +52,7 @@ module WhopSDK
53
52
  T.nilable(
54
53
  T::Array[WhopSDK::MembershipListParams::CancelOption::OrSymbol]
55
54
  ),
55
+ company_id: T.nilable(String),
56
56
  created_after: T.nilable(Time),
57
57
  created_before: T.nilable(Time),
58
58
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
@@ -62,14 +62,13 @@ module WhopSDK
62
62
  plan_ids: T.nilable(T::Array[String]),
63
63
  promo_code_ids: T.nilable(T::Array[String]),
64
64
  statuses: T.nilable(T::Array[WhopSDK::MembershipStatus::OrSymbol]),
65
+ user_ids: T.nilable(T::Array[String]),
65
66
  request_options: WhopSDK::RequestOptions::OrHash
66
67
  ).returns(
67
68
  WhopSDK::Internal::CursorPage[WhopSDK::Models::MembershipListResponse]
68
69
  )
69
70
  end
70
71
  def list(
71
- # The ID of the company to list memberships for
72
- company_id:,
73
72
  # The access pass IDs to filter the memberships by
74
73
  access_pass_ids: nil,
75
74
  # Returns the elements in the list that come after the specified cursor.
@@ -78,6 +77,8 @@ module WhopSDK
78
77
  before: nil,
79
78
  # The cancel options to filter the memberships by
80
79
  cancel_options: nil,
80
+ # The ID of the company to list memberships for
81
+ company_id: nil,
81
82
  # The minimum creation date to filter by
82
83
  created_after: nil,
83
84
  # The maximum creation date to filter by
@@ -96,6 +97,8 @@ module WhopSDK
96
97
  promo_code_ids: nil,
97
98
  # The membership status to filter the memberships by
98
99
  statuses: nil,
100
+ # Only return memberships from these whop user ids
101
+ user_ids: nil,
99
102
  request_options: {}
100
103
  )
101
104
  end
@@ -14,7 +14,12 @@ module WhopSDK
14
14
  content: String,
15
15
  attachments:
16
16
  T.nilable(
17
- T::Array[WhopSDK::MessageCreateParams::Attachment::OrHash]
17
+ T::Array[
18
+ T.any(
19
+ WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
20
+ WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID::OrHash
21
+ )
22
+ ]
18
23
  ),
19
24
  poll: T.nilable(WhopSDK::MessageCreateParams::Poll::OrHash),
20
25
  request_options: WhopSDK::RequestOptions::OrHash
@@ -47,6 +52,36 @@ module WhopSDK
47
52
  def retrieve(id, request_options: {})
48
53
  end
49
54
 
55
+ # Updates an existing message
56
+ sig do
57
+ params(
58
+ id: String,
59
+ attachments:
60
+ T.nilable(
61
+ T::Array[
62
+ T.any(
63
+ WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
64
+ WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID::OrHash
65
+ )
66
+ ]
67
+ ),
68
+ content: T.nilable(String),
69
+ is_pinned: T.nilable(T::Boolean),
70
+ request_options: WhopSDK::RequestOptions::OrHash
71
+ ).returns(WhopSDK::Message)
72
+ end
73
+ def update(
74
+ id,
75
+ # The attachments for this message
76
+ attachments: nil,
77
+ # The content of the message in Markdown format
78
+ content: nil,
79
+ # Whether this message is pinned
80
+ is_pinned: nil,
81
+ request_options: {}
82
+ )
83
+ end
84
+
50
85
  # Lists messages inside a channel
51
86
  #
52
87
  # Required permissions:
@@ -40,9 +40,7 @@ module WhopSDK
40
40
  after: T.nilable(String),
41
41
  before: T.nilable(String),
42
42
  billing_reasons:
43
- T.nilable(
44
- T::Array[WhopSDK::PaymentListParams::BillingReason::OrSymbol]
45
- ),
43
+ T.nilable(T::Array[WhopSDK::BillingReasons::OrSymbol]),
46
44
  created_after: T.nilable(Time),
47
45
  created_before: T.nilable(Time),
48
46
  currencies: T.nilable(T::Array[WhopSDK::Currency::OrSymbol]),
@@ -20,15 +20,29 @@ module WhopSDK
20
20
  T.nilable(T::Array[WhopSDK::PlanCreateParams::CustomField::OrHash]),
21
21
  description: T.nilable(String),
22
22
  expiration_days: T.nilable(Integer),
23
- image: T.nilable(WhopSDK::PlanCreateParams::Image::OrHash),
23
+ image:
24
+ T.nilable(
25
+ T.any(
26
+ WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID::OrHash,
27
+ WhopSDK::PlanCreateParams::Image::AttachmentInputWithID::OrHash
28
+ )
29
+ ),
24
30
  initial_price: T.nilable(Float),
25
31
  internal_notes: T.nilable(String),
26
32
  override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
33
+ payment_method_configuration:
34
+ T.nilable(
35
+ WhopSDK::PlanCreateParams::PaymentMethodConfiguration::OrHash
36
+ ),
27
37
  plan_type: T.nilable(WhopSDK::PlanType::OrSymbol),
28
38
  release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
29
39
  renewal_price: T.nilable(Float),
40
+ stock: T.nilable(Integer),
41
+ strike_through_initial_price: T.nilable(Float),
42
+ strike_through_renewal_price: T.nilable(Float),
30
43
  title: T.nilable(String),
31
44
  trial_period_days: T.nilable(Integer),
45
+ unlimited_stock: T.nilable(T::Boolean),
32
46
  visibility: T.nilable(WhopSDK::Visibility::OrSymbol),
33
47
  request_options: WhopSDK::RequestOptions::OrHash
34
48
  ).returns(WhopSDK::Plan)
@@ -38,7 +52,7 @@ module WhopSDK
38
52
  company_id:,
39
53
  # The product the plan is related to.
40
54
  product_id:,
41
- # The interval at which the plan charges (renewal plans).
55
+ # The interval in days at which the plan charges (renewal plans).
42
56
  billing_period: nil,
43
57
  # The available currencies on the platform
44
58
  currency: nil,
@@ -59,6 +73,9 @@ module WhopSDK
59
73
  # Whether or not the tax is included in a plan's price (or if it hasn't been set
60
74
  # up)
61
75
  override_tax_type: nil,
76
+ # The explicit payment method configuration for the plan. If not provided, the
77
+ # platform or company's defaults will apply.
78
+ payment_method_configuration: nil,
62
79
  # The type of plan that can be attached to an access pass
63
80
  plan_type: nil,
64
81
  # The methods of how a plan can be released.
@@ -66,10 +83,20 @@ module WhopSDK
66
83
  # The amount the customer is charged every billing period. Use only if a recurring
67
84
  # payment. Provided as a number in dollars. Eg: 10.43 for $10.43
68
85
  renewal_price: nil,
86
+ # The number of units available for purchase.
87
+ stock: nil,
88
+ # The price to display with a strikethrough for the initial price. Provided as a
89
+ # number in dollars. Eg: 19.99 for $19.99
90
+ strike_through_initial_price: nil,
91
+ # The price to display with a strikethrough for the renewal price. Provided as a
92
+ # number in dollars. Eg: 19.99 for $19.99
93
+ strike_through_renewal_price: nil,
69
94
  # The title of the plan. This will be visible on the product page to customers.
70
95
  title: nil,
71
96
  # The number of free trial days added before a renewal plan.
72
97
  trial_period_days: nil,
98
+ # Limits/doesn't limit the number of units available for purchase.
99
+ unlimited_stock: nil,
73
100
  # Visibility of a resource
74
101
  visibility: nil,
75
102
  request_options: {}
@@ -106,14 +133,28 @@ module WhopSDK
106
133
  T.nilable(T::Array[WhopSDK::PlanUpdateParams::CustomField::OrHash]),
107
134
  description: T.nilable(String),
108
135
  expiration_days: T.nilable(Integer),
109
- image: T.nilable(WhopSDK::PlanUpdateParams::Image::OrHash),
136
+ image:
137
+ T.nilable(
138
+ T.any(
139
+ WhopSDK::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID::OrHash,
140
+ WhopSDK::PlanUpdateParams::Image::AttachmentInputWithID::OrHash
141
+ )
142
+ ),
110
143
  initial_price: T.nilable(Float),
111
144
  internal_notes: T.nilable(String),
112
145
  offer_cancel_discount: T.nilable(T::Boolean),
113
146
  override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
147
+ payment_method_configuration:
148
+ T.nilable(
149
+ WhopSDK::PlanUpdateParams::PaymentMethodConfiguration::OrHash
150
+ ),
114
151
  renewal_price: T.nilable(Float),
152
+ stock: T.nilable(Integer),
153
+ strike_through_initial_price: T.nilable(Float),
154
+ strike_through_renewal_price: T.nilable(Float),
115
155
  title: T.nilable(String),
116
156
  trial_period_days: T.nilable(Integer),
157
+ unlimited_stock: T.nilable(T::Boolean),
117
158
  visibility: T.nilable(WhopSDK::Visibility::OrSymbol),
118
159
  request_options: WhopSDK::RequestOptions::OrHash
119
160
  ).returns(WhopSDK::Plan)
@@ -141,12 +182,25 @@ module WhopSDK
141
182
  # Whether or not the tax is included in a plan's price (or if it hasn't been set
142
183
  # up)
143
184
  override_tax_type: nil,
185
+ # The explicit payment method configuration for the plan. If sent as null, the
186
+ # custom configuration will be removed.
187
+ payment_method_configuration: nil,
144
188
  # The amount the customer is charged every billing period.
145
189
  renewal_price: nil,
190
+ # The number of units available for purchase.
191
+ stock: nil,
192
+ # The price to display with a strikethrough for the initial price. Provided as a
193
+ # number in dollars. Eg: 19.99 for $19.99
194
+ strike_through_initial_price: nil,
195
+ # The price to display with a strikethrough for the renewal price. Provided as a
196
+ # number in dollars. Eg: 19.99 for $19.99
197
+ strike_through_renewal_price: nil,
146
198
  # The title of the plan. This will be visible on the product page to customers.
147
199
  title: nil,
148
200
  # The number of free trial days added before a renewal plan.
149
201
  trial_period_days: nil,
202
+ # Limits/doesn't limit the number of units available for purchase.
203
+ unlimited_stock: nil,
150
204
  # Visibility of a resource
151
205
  visibility: nil,
152
206
  request_options: {}