whop_sdk 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +4 -0
  5. data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
  6. data/lib/whop_sdk/models/app_create_params.rb +22 -1
  7. data/lib/whop_sdk/models/app_list_params.rb +5 -0
  8. data/lib/whop_sdk/models/app_update_params.rb +14 -53
  9. data/lib/whop_sdk/models/card_brands.rb +16 -0
  10. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
  11. data/lib/whop_sdk/models/company_create_params.rb +22 -1
  12. data/lib/whop_sdk/models/company_update_params.rb +28 -106
  13. data/lib/whop_sdk/models/course_create_params.rb +15 -62
  14. data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
  15. data/lib/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rb +9 -1
  16. data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
  17. data/lib/whop_sdk/models/course_update_params.rb +14 -61
  18. data/lib/whop_sdk/models/dispute_created_webhook_event.rb +9 -1
  19. data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
  20. data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +9 -1
  21. data/lib/whop_sdk/models/entry_approved_webhook_event.rb +9 -1
  22. data/lib/whop_sdk/models/entry_created_webhook_event.rb +9 -1
  23. data/lib/whop_sdk/models/entry_deleted_webhook_event.rb +9 -1
  24. data/lib/whop_sdk/models/entry_denied_webhook_event.rb +9 -1
  25. data/lib/whop_sdk/models/experience_create_params.rb +22 -1
  26. data/lib/whop_sdk/models/experience_update_params.rb +14 -53
  27. data/lib/whop_sdk/models/file_create_params.rb +22 -0
  28. data/lib/whop_sdk/models/file_create_response.rb +90 -0
  29. data/lib/whop_sdk/models/file_retrieve_params.rb +14 -0
  30. data/lib/whop_sdk/models/file_retrieve_response.rb +74 -0
  31. data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
  32. data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
  33. data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
  34. data/lib/whop_sdk/models/invoice_created_webhook_event.rb +9 -1
  35. data/lib/whop_sdk/models/invoice_paid_webhook_event.rb +9 -1
  36. data/lib/whop_sdk/models/invoice_past_due_webhook_event.rb +9 -1
  37. data/lib/whop_sdk/models/invoice_voided_webhook_event.rb +9 -1
  38. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
  39. data/lib/whop_sdk/models/member_list_response.rb +9 -1
  40. data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
  41. data/lib/whop_sdk/models/membership.rb +76 -2
  42. data/lib/whop_sdk/models/membership_activated_webhook_event.rb +9 -1
  43. data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +9 -1
  44. data/lib/whop_sdk/models/membership_deactivated_webhook_event.rb +9 -1
  45. data/lib/whop_sdk/models/membership_list_response.rb +38 -2
  46. data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
  47. data/lib/whop_sdk/models/message_create_params.rb +13 -52
  48. data/lib/whop_sdk/models/message_update_params.rb +14 -53
  49. data/lib/whop_sdk/models/payment.rb +17 -1
  50. data/lib/whop_sdk/models/payment_created_webhook_event.rb +9 -1
  51. data/lib/whop_sdk/models/payment_failed_webhook_event.rb +9 -1
  52. data/lib/whop_sdk/models/payment_list_response.rb +17 -1
  53. data/lib/whop_sdk/models/payment_method_types.rb +38 -37
  54. data/lib/whop_sdk/models/payment_pending_webhook_event.rb +9 -1
  55. data/lib/whop_sdk/models/payment_provider.rb +1 -0
  56. data/lib/whop_sdk/models/payment_succeeded_webhook_event.rb +9 -1
  57. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +35 -2
  58. data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
  59. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
  60. data/lib/whop_sdk/models/plan_create_params.rb +23 -54
  61. data/lib/whop_sdk/models/plan_update_params.rb +23 -54
  62. data/lib/whop_sdk/models/refund_created_webhook_event.rb +9 -1
  63. data/lib/whop_sdk/models/refund_updated_webhook_event.rb +9 -1
  64. data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +9 -1
  65. data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +9 -1
  66. data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +9 -1
  67. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +9 -1
  68. data/lib/whop_sdk/models/webhook_create_params.rb +117 -0
  69. data/lib/whop_sdk/models/webhook_create_response.rb +184 -0
  70. data/lib/whop_sdk/models/webhook_delete_params.rb +14 -0
  71. data/lib/whop_sdk/models/webhook_delete_response.rb +8 -0
  72. data/lib/whop_sdk/models/webhook_list_params.rb +54 -0
  73. data/lib/whop_sdk/models/webhook_list_response.rb +123 -0
  74. data/lib/whop_sdk/models/webhook_retrieve_params.rb +14 -0
  75. data/lib/whop_sdk/models/webhook_retrieve_response.rb +176 -0
  76. data/lib/whop_sdk/models/webhook_update_params.rb +104 -0
  77. data/lib/whop_sdk/models/webhook_update_response.rb +176 -0
  78. data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
  79. data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
  80. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +11 -10
  81. data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
  82. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
  83. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +11 -10
  84. data/lib/whop_sdk/models.rb +16 -2
  85. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  86. data/lib/whop_sdk/resources/apps.rb +4 -2
  87. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  88. data/lib/whop_sdk/resources/companies.rb +5 -3
  89. data/lib/whop_sdk/resources/course_lessons.rb +4 -4
  90. data/lib/whop_sdk/resources/courses.rb +4 -8
  91. data/lib/whop_sdk/resources/disputes.rb +4 -4
  92. data/lib/whop_sdk/resources/experiences.rb +4 -2
  93. data/lib/whop_sdk/resources/files.rb +56 -0
  94. data/lib/whop_sdk/resources/forum_posts.rb +2 -2
  95. data/lib/whop_sdk/resources/memberships.rb +32 -0
  96. data/lib/whop_sdk/resources/messages.rb +2 -2
  97. data/lib/whop_sdk/resources/notifications.rb +4 -0
  98. data/lib/whop_sdk/resources/plans.rb +8 -4
  99. data/lib/whop_sdk/resources/webhooks.rb +158 -0
  100. data/lib/whop_sdk/resources/withdrawals.rb +8 -1
  101. data/lib/whop_sdk/version.rb +1 -1
  102. data/lib/whop_sdk.rb +16 -1
  103. data/rbi/whop_sdk/client.rbi +3 -0
  104. data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
  105. data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
  106. data/rbi/whop_sdk/models/app_list_params.rbi +10 -0
  107. data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
  108. data/rbi/whop_sdk/models/card_brands.rbi +17 -0
  109. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
  110. data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
  111. data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
  112. data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
  113. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
  114. data/rbi/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbi +9 -1
  115. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
  116. data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
  117. data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +9 -1
  118. data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
  119. data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +9 -1
  120. data/rbi/whop_sdk/models/entry_approved_webhook_event.rbi +9 -1
  121. data/rbi/whop_sdk/models/entry_created_webhook_event.rbi +9 -1
  122. data/rbi/whop_sdk/models/entry_deleted_webhook_event.rbi +9 -1
  123. data/rbi/whop_sdk/models/entry_denied_webhook_event.rbi +9 -1
  124. data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
  125. data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
  126. data/rbi/whop_sdk/models/file_create_params.rbi +40 -0
  127. data/rbi/whop_sdk/models/file_create_response.rbi +140 -0
  128. data/rbi/whop_sdk/models/file_retrieve_params.rbi +27 -0
  129. data/rbi/whop_sdk/models/file_retrieve_response.rbi +129 -0
  130. data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
  131. data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
  132. data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
  133. data/rbi/whop_sdk/models/invoice_created_webhook_event.rbi +9 -1
  134. data/rbi/whop_sdk/models/invoice_paid_webhook_event.rbi +9 -1
  135. data/rbi/whop_sdk/models/invoice_past_due_webhook_event.rbi +9 -1
  136. data/rbi/whop_sdk/models/invoice_voided_webhook_event.rbi +9 -1
  137. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
  138. data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
  139. data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
  140. data/rbi/whop_sdk/models/membership.rbi +126 -4
  141. data/rbi/whop_sdk/models/membership_activated_webhook_event.rbi +9 -1
  142. data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +9 -1
  143. data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +9 -1
  144. data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
  145. data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
  146. data/rbi/whop_sdk/models/message_create_params.rbi +18 -94
  147. data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
  148. data/rbi/whop_sdk/models/payment.rbi +16 -0
  149. data/rbi/whop_sdk/models/payment_created_webhook_event.rbi +9 -1
  150. data/rbi/whop_sdk/models/payment_failed_webhook_event.rbi +9 -1
  151. data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
  152. data/rbi/whop_sdk/models/payment_method_types.rbi +45 -43
  153. data/rbi/whop_sdk/models/payment_pending_webhook_event.rbi +9 -1
  154. data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
  155. data/rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi +9 -1
  156. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +35 -1
  157. data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
  158. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
  159. data/rbi/whop_sdk/models/plan_create_params.rbi +29 -93
  160. data/rbi/whop_sdk/models/plan_update_params.rbi +29 -93
  161. data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +9 -1
  162. data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +9 -1
  163. data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +9 -1
  164. data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +9 -1
  165. data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +9 -1
  166. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +9 -1
  167. data/rbi/whop_sdk/models/webhook_create_params.rbi +275 -0
  168. data/rbi/whop_sdk/models/webhook_create_response.rbi +494 -0
  169. data/rbi/whop_sdk/models/webhook_delete_params.rbi +27 -0
  170. data/rbi/whop_sdk/models/webhook_delete_response.rbi +8 -0
  171. data/rbi/whop_sdk/models/webhook_list_params.rbi +75 -0
  172. data/rbi/whop_sdk/models/webhook_list_response.rbi +297 -0
  173. data/rbi/whop_sdk/models/webhook_retrieve_params.rbi +27 -0
  174. data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +491 -0
  175. data/rbi/whop_sdk/models/webhook_update_params.rbi +263 -0
  176. data/rbi/whop_sdk/models/webhook_update_response.rbi +486 -0
  177. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
  178. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
  179. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +17 -12
  180. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
  181. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
  182. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +17 -12
  183. data/rbi/whop_sdk/models.rbi +16 -2
  184. data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
  185. data/rbi/whop_sdk/resources/apps.rbi +4 -7
  186. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  187. data/rbi/whop_sdk/resources/companies.rbi +5 -13
  188. data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
  189. data/rbi/whop_sdk/resources/courses.rbi +2 -20
  190. data/rbi/whop_sdk/resources/disputes.rbi +4 -16
  191. data/rbi/whop_sdk/resources/experiences.rbi +4 -7
  192. data/rbi/whop_sdk/resources/files.rbi +40 -0
  193. data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
  194. data/rbi/whop_sdk/resources/memberships.rbi +26 -0
  195. data/rbi/whop_sdk/resources/messages.rbi +2 -12
  196. data/rbi/whop_sdk/resources/notifications.rbi +4 -0
  197. data/rbi/whop_sdk/resources/plans.rbi +8 -14
  198. data/rbi/whop_sdk/resources/webhooks.rbi +140 -0
  199. data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
  200. data/sig/whop_sdk/client.rbs +2 -0
  201. data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
  202. data/sig/whop_sdk/models/app_create_params.rbs +20 -1
  203. data/sig/whop_sdk/models/app_list_params.rbs +10 -0
  204. data/sig/whop_sdk/models/app_update_params.rbs +9 -30
  205. data/sig/whop_sdk/models/card_brands.rbs +32 -0
  206. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
  207. data/sig/whop_sdk/models/company_create_params.rbs +15 -0
  208. data/sig/whop_sdk/models/company_update_params.rbs +18 -60
  209. data/sig/whop_sdk/models/course_create_params.rbs +9 -35
  210. data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
  211. data/sig/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbs +7 -2
  212. data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
  213. data/sig/whop_sdk/models/course_update_params.rbs +9 -35
  214. data/sig/whop_sdk/models/dispute_created_webhook_event.rbs +7 -2
  215. data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
  216. data/sig/whop_sdk/models/dispute_updated_webhook_event.rbs +7 -2
  217. data/sig/whop_sdk/models/entry_approved_webhook_event.rbs +7 -2
  218. data/sig/whop_sdk/models/entry_created_webhook_event.rbs +7 -2
  219. data/sig/whop_sdk/models/entry_deleted_webhook_event.rbs +7 -2
  220. data/sig/whop_sdk/models/entry_denied_webhook_event.rbs +7 -2
  221. data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
  222. data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
  223. data/sig/whop_sdk/models/file_create_params.rbs +23 -0
  224. data/sig/whop_sdk/models/file_create_response.rbs +68 -0
  225. data/sig/whop_sdk/models/file_retrieve_params.rbs +15 -0
  226. data/sig/whop_sdk/models/file_retrieve_response.rbs +58 -0
  227. data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
  228. data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
  229. data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
  230. data/sig/whop_sdk/models/invoice_created_webhook_event.rbs +7 -2
  231. data/sig/whop_sdk/models/invoice_paid_webhook_event.rbs +7 -2
  232. data/sig/whop_sdk/models/invoice_past_due_webhook_event.rbs +7 -2
  233. data/sig/whop_sdk/models/invoice_voided_webhook_event.rbs +7 -2
  234. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
  235. data/sig/whop_sdk/models/member_list_response.rbs +5 -0
  236. data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
  237. data/sig/whop_sdk/models/membership.rbs +65 -4
  238. data/sig/whop_sdk/models/membership_activated_webhook_event.rbs +7 -2
  239. data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +7 -2
  240. data/sig/whop_sdk/models/membership_deactivated_webhook_event.rbs +7 -2
  241. data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
  242. data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
  243. data/sig/whop_sdk/models/message_create_params.rbs +9 -30
  244. data/sig/whop_sdk/models/message_update_params.rbs +9 -30
  245. data/sig/whop_sdk/models/payment.rbs +10 -0
  246. data/sig/whop_sdk/models/payment_created_webhook_event.rbs +7 -2
  247. data/sig/whop_sdk/models/payment_failed_webhook_event.rbs +7 -2
  248. data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
  249. data/sig/whop_sdk/models/payment_method_types.rbs +76 -74
  250. data/sig/whop_sdk/models/payment_pending_webhook_event.rbs +7 -2
  251. data/sig/whop_sdk/models/payment_provider.rbs +2 -0
  252. data/sig/whop_sdk/models/payment_succeeded_webhook_event.rbs +7 -2
  253. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +22 -2
  254. data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
  255. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
  256. data/sig/whop_sdk/models/plan_create_params.rbs +14 -30
  257. data/sig/whop_sdk/models/plan_update_params.rbs +14 -30
  258. data/sig/whop_sdk/models/refund_created_webhook_event.rbs +7 -2
  259. data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +7 -2
  260. data/sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs +7 -2
  261. data/sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs +7 -2
  262. data/sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs +7 -2
  263. data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +7 -2
  264. data/sig/whop_sdk/models/webhook_create_params.rbs +126 -0
  265. data/sig/whop_sdk/models/webhook_create_response.rbs +203 -0
  266. data/sig/whop_sdk/models/webhook_delete_params.rbs +15 -0
  267. data/sig/whop_sdk/models/webhook_delete_response.rbs +5 -0
  268. data/sig/whop_sdk/models/webhook_list_params.rbs +46 -0
  269. data/sig/whop_sdk/models/webhook_list_response.rbs +125 -0
  270. data/sig/whop_sdk/models/webhook_retrieve_params.rbs +15 -0
  271. data/sig/whop_sdk/models/webhook_retrieve_response.rbs +198 -0
  272. data/sig/whop_sdk/models/webhook_update_params.rbs +121 -0
  273. data/sig/whop_sdk/models/webhook_update_response.rbs +198 -0
  274. data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
  275. data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
  276. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +12 -10
  277. data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
  278. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
  279. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +12 -10
  280. data/sig/whop_sdk/models.rbs +16 -2
  281. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  282. data/sig/whop_sdk/resources/apps.rbs +2 -1
  283. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  284. data/sig/whop_sdk/resources/companies.rbs +3 -2
  285. data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
  286. data/sig/whop_sdk/resources/courses.rbs +2 -4
  287. data/sig/whop_sdk/resources/disputes.rbs +4 -4
  288. data/sig/whop_sdk/resources/experiences.rbs +2 -1
  289. data/sig/whop_sdk/resources/files.rbs +17 -0
  290. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  291. data/sig/whop_sdk/resources/memberships.rbs +5 -0
  292. data/sig/whop_sdk/resources/messages.rbs +2 -2
  293. data/sig/whop_sdk/resources/plans.rbs +4 -2
  294. data/sig/whop_sdk/resources/webhooks.rbs +36 -0
  295. data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
  296. metadata +64 -5
  297. data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
  298. data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
  299. data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
@@ -12,85 +12,86 @@ module WhopSDK
12
12
  ALIPAY = :alipay
13
13
  ALMA = :alma
14
14
  AMAZON_PAY = :amazon_pay
15
+ APPLE = :apple
15
16
  APPLE_PAY = :apple_pay
16
17
  AU_BECS_DEBIT = :au_becs_debit
17
18
  BACS_DEBIT = :bacs_debit
18
19
  BANCONTACT = :bancontact
19
20
  BILLIE = :billie
21
+ BIZUM = :bizum
20
22
  BLIK = :blik
21
23
  BOLETO = :boleto
24
+ CAPCHASE_PAY = :capchase_pay
22
25
  CARD = :card
23
26
  CASHAPP = :cashapp
27
+ COINBASE = :coinbase
24
28
  CRYPTO = :crypto
29
+ CUSTOM = :custom
30
+ CUSTOMER_BALANCE = :customer_balance
31
+ DEMO_PAY = :demo_pay
25
32
  EPS = :eps
33
+ EU_BANK_TRANSFER = :eu_bank_transfer
26
34
  FPX = :fpx
27
35
  GIROPAY = :giropay
28
36
  GOOGLE_PAY = :google_pay
37
+ GOPAY = :gopay
29
38
  GRABPAY = :grabpay
39
+ ID_BANK_TRANSFER = :id_bank_transfer
30
40
  IDEAL = :ideal
31
41
  KAKAO_PAY = :kakao_pay
32
42
  KLARNA = :klarna
33
43
  KONBINI = :konbini
34
44
  KR_CARD = :kr_card
45
+ KR_MARKET = :kr_market
46
+ KRIYA = :kriya
35
47
  LINK = :link
48
+ MB_WAY = :mb_way
36
49
  MOBILEPAY = :mobilepay
50
+ MONDU = :mondu
37
51
  MULTIBANCO = :multibanco
38
52
  NAVER_PAY = :naver_pay
53
+ NETBANKING = :netbanking
54
+ NG_BANK = :ng_bank
55
+ NG_BANK_TRANSFER = :ng_bank_transfer
56
+ NG_CARD = :ng_card
57
+ NG_MARKET = :ng_market
58
+ NG_USSD = :ng_ussd
59
+ NG_WALLET = :ng_wallet
39
60
  NZ_BANK_ACCOUNT = :nz_bank_account
40
61
  OXXO = :oxxo
41
62
  P24 = :p24
42
63
  PAY_BY_BANK = :pay_by_bank
43
64
  PAYCO = :payco
44
65
  PAYNOW = :paynow
66
+ PAYPAL = :paypal
67
+ PAYPAY = :paypay
68
+ PAYTO = :payto
45
69
  PIX = :pix
70
+ PLATFORM_BALANCE = :platform_balance
46
71
  PROMPTPAY = :promptpay
72
+ QRIS = :qris
73
+ RECHNUNG = :rechnung
47
74
  REVOLUT_PAY = :revolut_pay
48
75
  SAMSUNG_PAY = :samsung_pay
49
76
  SATISPAY = :satispay
77
+ SCALAPAY = :scalapay
50
78
  SEPA_DEBIT = :sepa_debit
79
+ SEQURA = :sequra
80
+ SEZZLE = :sezzle
81
+ SHOP_PAY = :shop_pay
82
+ SHOPEEPAY = :shopeepay
51
83
  SOFORT = :sofort
84
+ SOUTH_KOREA_MARKET = :south_korea_market
85
+ SPLITIT = :splitit
86
+ SUNBIT = :sunbit
52
87
  SWISH = :swish
53
88
  TWINT = :twint
89
+ UPI = :upi
54
90
  US_BANK_ACCOUNT = :us_bank_account
91
+ VENMO = :venmo
92
+ VIPPS = :vipps
55
93
  WECHAT_PAY = :wechat_pay
56
94
  ZIP = :zip
57
- BIZUM = :bizum
58
- CAPCHASE_PAY = :capchase_pay
59
- KRIYA = :kriya
60
- MONDU = :mondu
61
- NG_WALLET = :ng_wallet
62
- PAYPAY = :paypay
63
- SEQURA = :sequra
64
- SCALAPAY = :scalapay
65
- VIPPS = :vipps
66
- CUSTOM = :custom
67
- CUSTOMER_BALANCE = :customer_balance
68
- GOPAY = :gopay
69
- MB_WAY = :mb_way
70
- NG_BANK = :ng_bank
71
- NG_BANK_TRANSFER = :ng_bank_transfer
72
- NG_CARD = :ng_card
73
- NG_MARKET = :ng_market
74
- NG_USSD = :ng_ussd
75
- PAYPAL = :paypal
76
- PAYTO = :payto
77
- QRIS = :qris
78
- RECHNUNG = :rechnung
79
- SOUTH_KOREA_MARKET = :south_korea_market
80
- KR_MARKET = :kr_market
81
- SHOPEEPAY = :shopeepay
82
- UPI = :upi
83
- SUNBIT = :sunbit
84
- NETBANKING = :netbanking
85
- ID_BANK_TRANSFER = :id_bank_transfer
86
- DEMO_PAY = :demo_pay
87
- SHOP_PAY = :shop_pay
88
- SEZZLE = :sezzle
89
- COINBASE = :coinbase
90
- SPLITIT = :splitit
91
- PLATFORM_BALANCE = :platform_balance
92
- APPLE = :apple
93
- VENMO = :venmo
94
95
  UNKNOWN = :unknown
95
96
 
96
97
  # @!method self.values
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"payment.pending"]
34
34
  required :type, const: :"payment.pending"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"payment.pending")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"payment.pending")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Payment] An object representing a receipt for a membership.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"payment.pending"] The webhook event type
@@ -14,6 +14,7 @@ module WhopSDK
14
14
  SPLITIT = :splitit
15
15
  PLATFORM_BALANCE = :platform_balance
16
16
  MULTI_PSP = :multi_psp
17
+ ADYEN = :adyen
17
18
 
18
19
  # @!method self.values
19
20
  # @return [Array<Symbol>]
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"payment.succeeded"]
34
34
  required :type, const: :"payment.succeeded"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"payment.succeeded")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"payment.succeeded")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Payment] An object representing a receipt for a membership.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"payment.succeeded"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"payout_method.created"]
34
34
  required :type, const: :"payout_method.created"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"payout_method.created")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"payout_method.created")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data] An object representing an user's setup payout destination.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"payout_method.created"] The webhook event type
@@ -52,12 +60,25 @@ module WhopSDK
52
60
  # @return [String]
53
61
  required :id, String
54
62
 
63
+ # @!attribute account_reference
64
+ # A reference to identify the payout destination, such as the last 4 digits of an
65
+ # account number or an email address.
66
+ #
67
+ # @return [String, nil]
68
+ required :account_reference, String, nil?: true
69
+
55
70
  # @!attribute company
56
71
  # The company associated with the payout token
57
72
  #
58
73
  # @return [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Company, nil]
59
74
  required :company, -> { WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company }, nil?: true
60
75
 
76
+ # @!attribute created_at
77
+ # The date and time the payout token was created
78
+ #
79
+ # @return [Time]
80
+ required :created_at, Time
81
+
61
82
  # @!attribute currency
62
83
  # The currency code of the payout destination. This is the currency that payouts
63
84
  # will be made in for this token.
@@ -71,6 +92,12 @@ module WhopSDK
71
92
  # @return [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination, nil]
72
93
  required :destination, -> { WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination }, nil?: true
73
94
 
95
+ # @!attribute institution_name
96
+ # The name of the bank or financial institution.
97
+ #
98
+ # @return [String, nil]
99
+ required :institution_name, String, nil?: true
100
+
74
101
  # @!attribute is_default
75
102
  # Whether this payout token is the default for the payout account
76
103
  #
@@ -84,7 +111,7 @@ module WhopSDK
84
111
  # @return [String, nil]
85
112
  required :nickname, String, nil?: true
86
113
 
87
- # @!method initialize(id:, company:, currency:, destination:, is_default:, nickname:)
114
+ # @!method initialize(id:, account_reference:, company:, created_at:, currency:, destination:, institution_name:, is_default:, nickname:)
88
115
  # Some parameter documentations has been truncated, see
89
116
  # {WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data} for more details.
90
117
  #
@@ -92,12 +119,18 @@ module WhopSDK
92
119
  #
93
120
  # @param id [String] The ID of the payout token
94
121
  #
122
+ # @param account_reference [String, nil] A reference to identify the payout destination, such as the last 4 digits of an
123
+ #
95
124
  # @param company [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Company, nil] The company associated with the payout token
96
125
  #
126
+ # @param created_at [Time] The date and time the payout token was created
127
+ #
97
128
  # @param currency [String] The currency code of the payout destination. This is the currency that payouts w
98
129
  #
99
130
  # @param destination [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination, nil] The payout destination associated with the payout token
100
131
  #
132
+ # @param institution_name [String, nil] The name of the bank or financial institution.
133
+ #
101
134
  # @param is_default [Boolean] Whether this payout token is the default for the payout account
102
135
  #
103
136
  # @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
@@ -10,12 +10,25 @@ module WhopSDK
10
10
  # @return [String]
11
11
  required :id, String
12
12
 
13
+ # @!attribute account_reference
14
+ # A reference to identify the payout destination, such as the last 4 digits of an
15
+ # account number or an email address.
16
+ #
17
+ # @return [String, nil]
18
+ required :account_reference, String, nil?: true
19
+
13
20
  # @!attribute company
14
21
  # The company associated with the payout token
15
22
  #
16
23
  # @return [WhopSDK::Models::PayoutMethodListResponse::Company, nil]
17
24
  required :company, -> { WhopSDK::Models::PayoutMethodListResponse::Company }, nil?: true
18
25
 
26
+ # @!attribute created_at
27
+ # The date and time the payout token was created
28
+ #
29
+ # @return [Time]
30
+ required :created_at, Time
31
+
19
32
  # @!attribute currency
20
33
  # The currency code of the payout destination. This is the currency that payouts
21
34
  # will be made in for this token.
@@ -29,6 +42,12 @@ module WhopSDK
29
42
  # @return [WhopSDK::Models::PayoutMethodListResponse::Destination, nil]
30
43
  required :destination, -> { WhopSDK::Models::PayoutMethodListResponse::Destination }, nil?: true
31
44
 
45
+ # @!attribute institution_name
46
+ # The name of the bank or financial institution.
47
+ #
48
+ # @return [String, nil]
49
+ required :institution_name, String, nil?: true
50
+
32
51
  # @!attribute is_default
33
52
  # Whether this payout token is the default for the payout account
34
53
  #
@@ -42,7 +61,7 @@ module WhopSDK
42
61
  # @return [String, nil]
43
62
  required :nickname, String, nil?: true
44
63
 
45
- # @!method initialize(id:, company:, currency:, destination:, is_default:, nickname:)
64
+ # @!method initialize(id:, account_reference:, company:, created_at:, currency:, destination:, institution_name:, is_default:, nickname:)
46
65
  # Some parameter documentations has been truncated, see
47
66
  # {WhopSDK::Models::PayoutMethodListResponse} for more details.
48
67
  #
@@ -50,12 +69,18 @@ module WhopSDK
50
69
  #
51
70
  # @param id [String] The ID of the payout token
52
71
  #
72
+ # @param account_reference [String, nil] A reference to identify the payout destination, such as the last 4 digits of an
73
+ #
53
74
  # @param company [WhopSDK::Models::PayoutMethodListResponse::Company, nil] The company associated with the payout token
54
75
  #
76
+ # @param created_at [Time] The date and time the payout token was created
77
+ #
55
78
  # @param currency [String] The currency code of the payout destination. This is the currency that payouts w
56
79
  #
57
80
  # @param destination [WhopSDK::Models::PayoutMethodListResponse::Destination, nil] The payout destination associated with the payout token
58
81
  #
82
+ # @param institution_name [String, nil] The name of the bank or financial institution.
83
+ #
59
84
  # @param is_default [Boolean] Whether this payout token is the default for the payout account
60
85
  #
61
86
  # @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
@@ -10,12 +10,25 @@ module WhopSDK
10
10
  # @return [String]
11
11
  required :id, String
12
12
 
13
+ # @!attribute account_reference
14
+ # A reference to identify the payout destination, such as the last 4 digits of an
15
+ # account number or an email address.
16
+ #
17
+ # @return [String, nil]
18
+ required :account_reference, String, nil?: true
19
+
13
20
  # @!attribute company
14
21
  # The company associated with the payout token
15
22
  #
16
23
  # @return [WhopSDK::Models::PayoutMethodRetrieveResponse::Company, nil]
17
24
  required :company, -> { WhopSDK::Models::PayoutMethodRetrieveResponse::Company }, nil?: true
18
25
 
26
+ # @!attribute created_at
27
+ # The date and time the payout token was created
28
+ #
29
+ # @return [Time]
30
+ required :created_at, Time
31
+
19
32
  # @!attribute currency
20
33
  # The currency code of the payout destination. This is the currency that payouts
21
34
  # will be made in for this token.
@@ -29,6 +42,12 @@ module WhopSDK
29
42
  # @return [WhopSDK::Models::PayoutMethodRetrieveResponse::Destination, nil]
30
43
  required :destination, -> { WhopSDK::Models::PayoutMethodRetrieveResponse::Destination }, nil?: true
31
44
 
45
+ # @!attribute institution_name
46
+ # The name of the bank or financial institution.
47
+ #
48
+ # @return [String, nil]
49
+ required :institution_name, String, nil?: true
50
+
32
51
  # @!attribute is_default
33
52
  # Whether this payout token is the default for the payout account
34
53
  #
@@ -42,7 +61,7 @@ module WhopSDK
42
61
  # @return [String, nil]
43
62
  required :nickname, String, nil?: true
44
63
 
45
- # @!method initialize(id:, company:, currency:, destination:, is_default:, nickname:)
64
+ # @!method initialize(id:, account_reference:, company:, created_at:, currency:, destination:, institution_name:, is_default:, nickname:)
46
65
  # Some parameter documentations has been truncated, see
47
66
  # {WhopSDK::Models::PayoutMethodRetrieveResponse} for more details.
48
67
  #
@@ -50,12 +69,18 @@ module WhopSDK
50
69
  #
51
70
  # @param id [String] The ID of the payout token
52
71
  #
72
+ # @param account_reference [String, nil] A reference to identify the payout destination, such as the last 4 digits of an
73
+ #
53
74
  # @param company [WhopSDK::Models::PayoutMethodRetrieveResponse::Company, nil] The company associated with the payout token
54
75
  #
76
+ # @param created_at [Time] The date and time the payout token was created
77
+ #
55
78
  # @param currency [String] The currency code of the payout destination. This is the currency that payouts w
56
79
  #
57
80
  # @param destination [WhopSDK::Models::PayoutMethodRetrieveResponse::Destination, nil] The payout destination associated with the payout token
58
81
  #
82
+ # @param institution_name [String, nil] The name of the bank or financial institution.
83
+ #
59
84
  # @param is_default [Boolean] Whether this payout token is the default for the payout account
60
85
  #
61
86
  # @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
@@ -54,8 +54,8 @@ module WhopSDK
54
54
  # @!attribute image
55
55
  # An image for the plan. This will be visible on the product page to customers.
56
56
  #
57
- # @return [WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID, nil]
58
- optional :image, union: -> { WhopSDK::PlanCreateParams::Image }, nil?: true
57
+ # @return [WhopSDK::Models::PlanCreateParams::Image, nil]
58
+ optional :image, -> { WhopSDK::PlanCreateParams::Image }, nil?: true
59
59
 
60
60
  # @!attribute initial_price
61
61
  # An additional amount charged upon first purchase. Use only if a one time payment
@@ -71,6 +71,12 @@ module WhopSDK
71
71
  # @return [String, nil]
72
72
  optional :internal_notes, String, nil?: true
73
73
 
74
+ # @!attribute legacy_payment_method_controls
75
+ # Whether this plan uses legacy payment method controls
76
+ #
77
+ # @return [Boolean, nil]
78
+ optional :legacy_payment_method_controls, WhopSDK::Internal::Type::Boolean, nil?: true
79
+
74
80
  # @!attribute override_tax_type
75
81
  # Whether or not the tax is included in a plan's price (or if it hasn't been set
76
82
  # up)
@@ -142,7 +148,7 @@ module WhopSDK
142
148
  # @return [Symbol, WhopSDK::Models::Visibility, nil]
143
149
  optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
144
150
 
145
- # @!method initialize(company_id:, product_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, release_method: nil, renewal_price: nil, split_pay_required_payments: nil, stock: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
151
+ # @!method initialize(company_id:, product_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, legacy_payment_method_controls: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, release_method: nil, renewal_price: nil, split_pay_required_payments: nil, stock: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
146
152
  # Some parameter documentations has been truncated, see
147
153
  # {WhopSDK::Models::PlanCreateParams} for more details.
148
154
  #
@@ -160,12 +166,14 @@ module WhopSDK
160
166
  #
161
167
  # @param expiration_days [Integer, nil] The interval at which the plan expires and revokes access (expiration plans).
162
168
  #
163
- # @param image [WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID, nil] An image for the plan. This will be visible on the product page to customers.
169
+ # @param image [WhopSDK::Models::PlanCreateParams::Image, nil] An image for the plan. This will be visible on the product page to customers.
164
170
  #
165
171
  # @param initial_price [Float, nil] An additional amount charged upon first purchase. Use only if a one time payment
166
172
  #
167
173
  # @param internal_notes [String, nil] A personal description or notes section for the business.
168
174
  #
175
+ # @param legacy_payment_method_controls [Boolean, nil] Whether this plan uses legacy payment method controls
176
+ #
169
177
  # @param override_tax_type [Symbol, WhopSDK::Models::TaxType, nil] Whether or not the tax is included in a plan's price (or if it hasn't been set u
170
178
  #
171
179
  # @param payment_method_configuration [WhopSDK::Models::PlanCreateParams::PaymentMethodConfiguration, nil] The explicit payment method configuration for the plan. If not provided, the pla
@@ -241,56 +249,17 @@ module WhopSDK
241
249
  # @param field_type [Symbol, :text] The type of the custom field.
242
250
  end
243
251
 
244
- # An image for the plan. This will be visible on the product page to customers.
245
- module Image
246
- extend WhopSDK::Internal::Type::Union
247
-
248
- # Input for an attachment
249
- variant -> { WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID }
250
-
251
- # Input for an attachment
252
- variant -> { WhopSDK::PlanCreateParams::Image::AttachmentInputWithID }
253
-
254
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
255
- # @!attribute direct_upload_id
256
- # This ID should be used the first time you upload an attachment. It is the ID of
257
- # the direct upload that was created when uploading the file to S3 via the
258
- # mediaDirectUpload mutation.
259
- #
260
- # @return [String]
261
- required :direct_upload_id, String
262
-
263
- # @!method initialize(direct_upload_id:)
264
- # Some parameter documentations has been truncated, see
265
- # {WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID}
266
- # for more details.
267
- #
268
- # Input for an attachment
269
- #
270
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
271
- end
272
-
273
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
274
- # @!attribute id
275
- # The ID of an existing attachment object. Use this when updating a resource and
276
- # keeping a subset of the attachments. Don't use this unless you know what you're
277
- # doing.
278
- #
279
- # @return [String]
280
- required :id, String
281
-
282
- # @!method initialize(id:)
283
- # Some parameter documentations has been truncated, see
284
- # {WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID} for more
285
- # details.
286
- #
287
- # Input for an attachment
288
- #
289
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
290
- end
291
-
292
- # @!method self.variants
293
- # @return [Array(WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID)]
252
+ class Image < WhopSDK::Internal::Type::BaseModel
253
+ # @!attribute id
254
+ # The ID of an existing file object.
255
+ #
256
+ # @return [String]
257
+ required :id, String
258
+
259
+ # @!method initialize(id:)
260
+ # An image for the plan. This will be visible on the product page to customers.
261
+ #
262
+ # @param id [String] The ID of an existing file object.
294
263
  end
295
264
 
296
265
  class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
@@ -42,8 +42,8 @@ module WhopSDK
42
42
  # @!attribute image
43
43
  # An image for the plan. This will be visible on the product page to customers.
44
44
  #
45
- # @return [WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithID, nil]
46
- optional :image, union: -> { WhopSDK::PlanUpdateParams::Image }, nil?: true
45
+ # @return [WhopSDK::Models::PlanUpdateParams::Image, nil]
46
+ optional :image, -> { WhopSDK::PlanUpdateParams::Image }, nil?: true
47
47
 
48
48
  # @!attribute initial_price
49
49
  # An additional amount charged upon first purchase.
@@ -57,6 +57,12 @@ module WhopSDK
57
57
  # @return [String, nil]
58
58
  optional :internal_notes, String, nil?: true
59
59
 
60
+ # @!attribute legacy_payment_method_controls
61
+ # Whether this plan uses legacy payment method controls
62
+ #
63
+ # @return [Boolean, nil]
64
+ optional :legacy_payment_method_controls, WhopSDK::Internal::Type::Boolean, nil?: true
65
+
60
66
  # @!attribute offer_cancel_discount
61
67
  # Whether or not to offer a discount to cancel a subscription.
62
68
  #
@@ -129,7 +135,7 @@ module WhopSDK
129
135
  # @return [Symbol, WhopSDK::Models::Visibility, nil]
130
136
  optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
131
137
 
132
- # @!method initialize(billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, offer_cancel_discount: nil, override_tax_type: nil, payment_method_configuration: nil, renewal_price: nil, stock: nil, strike_through_initial_price: nil, strike_through_renewal_price: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
138
+ # @!method initialize(billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, legacy_payment_method_controls: nil, offer_cancel_discount: nil, override_tax_type: nil, payment_method_configuration: nil, renewal_price: nil, stock: nil, strike_through_initial_price: nil, strike_through_renewal_price: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
133
139
  # Some parameter documentations has been truncated, see
134
140
  # {WhopSDK::Models::PlanUpdateParams} for more details.
135
141
  #
@@ -143,12 +149,14 @@ module WhopSDK
143
149
  #
144
150
  # @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
145
151
  #
146
- # @param image [WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithID, nil] An image for the plan. This will be visible on the product page to customers.
152
+ # @param image [WhopSDK::Models::PlanUpdateParams::Image, nil] An image for the plan. This will be visible on the product page to customers.
147
153
  #
148
154
  # @param initial_price [Float, nil] An additional amount charged upon first purchase.
149
155
  #
150
156
  # @param internal_notes [String, nil] A personal description or notes section for the business.
151
157
  #
158
+ # @param legacy_payment_method_controls [Boolean, nil] Whether this plan uses legacy payment method controls
159
+ #
152
160
  # @param offer_cancel_discount [Boolean, nil] Whether or not to offer a discount to cancel a subscription.
153
161
  #
154
162
  # @param override_tax_type [Symbol, WhopSDK::Models::TaxType, nil] Whether or not the tax is included in a plan's price (or if it hasn't been set u
@@ -224,56 +232,17 @@ module WhopSDK
224
232
  # @param field_type [Symbol, :text] The type of the custom field.
225
233
  end
226
234
 
227
- # An image for the plan. This will be visible on the product page to customers.
228
- module Image
229
- extend WhopSDK::Internal::Type::Union
230
-
231
- # Input for an attachment
232
- variant -> { WhopSDK::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID }
233
-
234
- # Input for an attachment
235
- variant -> { WhopSDK::PlanUpdateParams::Image::AttachmentInputWithID }
236
-
237
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
238
- # @!attribute direct_upload_id
239
- # This ID should be used the first time you upload an attachment. It is the ID of
240
- # the direct upload that was created when uploading the file to S3 via the
241
- # mediaDirectUpload mutation.
242
- #
243
- # @return [String]
244
- required :direct_upload_id, String
245
-
246
- # @!method initialize(direct_upload_id:)
247
- # Some parameter documentations has been truncated, see
248
- # {WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID}
249
- # for more details.
250
- #
251
- # Input for an attachment
252
- #
253
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
254
- end
255
-
256
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
257
- # @!attribute id
258
- # The ID of an existing attachment object. Use this when updating a resource and
259
- # keeping a subset of the attachments. Don't use this unless you know what you're
260
- # doing.
261
- #
262
- # @return [String]
263
- required :id, String
264
-
265
- # @!method initialize(id:)
266
- # Some parameter documentations has been truncated, see
267
- # {WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithID} for more
268
- # details.
269
- #
270
- # Input for an attachment
271
- #
272
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
273
- end
274
-
275
- # @!method self.variants
276
- # @return [Array(WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithID)]
235
+ class Image < WhopSDK::Internal::Type::BaseModel
236
+ # @!attribute id
237
+ # The ID of an existing file object.
238
+ #
239
+ # @return [String]
240
+ required :id, String
241
+
242
+ # @!method initialize(id:)
243
+ # An image for the plan. This will be visible on the product page to customers.
244
+ #
245
+ # @param id [String] The ID of an existing file object.
277
246
  end
278
247
 
279
248
  class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"refund.created"]
34
34
  required :type, const: :"refund.created"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"refund.created")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"refund.created")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::RefundCreatedWebhookEvent::Data] An object representing a refund made on a payment.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"refund.created"] The webhook event type