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
@@ -21,16 +21,7 @@ module WhopSDK
21
21
 
22
22
  # The attachments for this message, such as videos or images.
23
23
  sig do
24
- returns(
25
- T.nilable(
26
- T::Array[
27
- T.any(
28
- WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID,
29
- WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID
30
- )
31
- ]
32
- )
33
- )
24
+ returns(T.nilable(T::Array[WhopSDK::MessageCreateParams::Attachment]))
34
25
  end
35
26
  attr_accessor :attachments
36
27
 
@@ -49,12 +40,7 @@ module WhopSDK
49
40
  content: String,
50
41
  attachments:
51
42
  T.nilable(
52
- T::Array[
53
- T.any(
54
- WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
55
- WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID::OrHash
56
- )
57
- ]
43
+ T::Array[WhopSDK::MessageCreateParams::Attachment::OrHash]
58
44
  ),
59
45
  poll: T.nilable(WhopSDK::MessageCreateParams::Poll::OrHash),
60
46
  request_options: WhopSDK::RequestOptions::OrHash
@@ -79,14 +65,7 @@ module WhopSDK
79
65
  channel_id: String,
80
66
  content: String,
81
67
  attachments:
82
- T.nilable(
83
- T::Array[
84
- T.any(
85
- WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID,
86
- WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID
87
- )
88
- ]
89
- ),
68
+ T.nilable(T::Array[WhopSDK::MessageCreateParams::Attachment]),
90
69
  poll: T.nilable(WhopSDK::MessageCreateParams::Poll),
91
70
  request_options: WhopSDK::RequestOptions
92
71
  }
@@ -95,84 +74,29 @@ module WhopSDK
95
74
  def to_hash
96
75
  end
97
76
 
98
- # Input for an attachment
99
- module Attachment
100
- extend WhopSDK::Internal::Type::Union
101
-
102
- Variants =
77
+ class Attachment < WhopSDK::Internal::Type::BaseModel
78
+ OrHash =
103
79
  T.type_alias do
104
80
  T.any(
105
- WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID,
106
- WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID
81
+ WhopSDK::MessageCreateParams::Attachment,
82
+ WhopSDK::Internal::AnyHash
107
83
  )
108
84
  end
109
85
 
110
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
111
- OrHash =
112
- T.type_alias do
113
- T.any(
114
- WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID,
115
- WhopSDK::Internal::AnyHash
116
- )
117
- end
118
-
119
- # This ID should be used the first time you upload an attachment. It is the ID of
120
- # the direct upload that was created when uploading the file to S3 via the
121
- # mediaDirectUpload mutation.
122
- sig { returns(String) }
123
- attr_accessor :direct_upload_id
124
-
125
- # Input for an attachment
126
- sig { params(direct_upload_id: String).returns(T.attached_class) }
127
- def self.new(
128
- # This ID should be used the first time you upload an attachment. It is the ID of
129
- # the direct upload that was created when uploading the file to S3 via the
130
- # mediaDirectUpload mutation.
131
- direct_upload_id:
132
- )
133
- end
134
-
135
- sig { override.returns({ direct_upload_id: String }) }
136
- def to_hash
137
- end
138
- end
139
-
140
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
141
- OrHash =
142
- T.type_alias do
143
- T.any(
144
- WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID,
145
- WhopSDK::Internal::AnyHash
146
- )
147
- end
148
-
149
- # The ID of an existing attachment object. Use this when updating a resource and
150
- # keeping a subset of the attachments. Don't use this unless you know what you're
151
- # doing.
152
- sig { returns(String) }
153
- attr_accessor :id
86
+ # The ID of an existing file object.
87
+ sig { returns(String) }
88
+ attr_accessor :id
154
89
 
155
- # Input for an attachment
156
- sig { params(id: String).returns(T.attached_class) }
157
- def self.new(
158
- # The ID of an existing attachment object. Use this when updating a resource and
159
- # keeping a subset of the attachments. Don't use this unless you know what you're
160
- # doing.
161
- id:
162
- )
163
- end
164
-
165
- sig { override.returns({ id: String }) }
166
- def to_hash
167
- end
90
+ # Input for an attachment
91
+ sig { params(id: String).returns(T.attached_class) }
92
+ def self.new(
93
+ # The ID of an existing file object.
94
+ id:
95
+ )
168
96
  end
169
97
 
170
- sig do
171
- override.returns(
172
- T::Array[WhopSDK::MessageCreateParams::Attachment::Variants]
173
- )
174
- end
175
- def self.variants
98
+ sig { override.returns({ id: String }) }
99
+ def to_hash
176
100
  end
177
101
  end
178
102
 
@@ -13,16 +13,7 @@ module WhopSDK
13
13
 
14
14
  # The attachments for this message
15
15
  sig do
16
- returns(
17
- T.nilable(
18
- T::Array[
19
- T.any(
20
- WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
21
- WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID
22
- )
23
- ]
24
- )
25
- )
16
+ returns(T.nilable(T::Array[WhopSDK::MessageUpdateParams::Attachment]))
26
17
  end
27
18
  attr_accessor :attachments
28
19
 
@@ -38,12 +29,7 @@ module WhopSDK
38
29
  params(
39
30
  attachments:
40
31
  T.nilable(
41
- T::Array[
42
- T.any(
43
- WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
44
- WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID::OrHash
45
- )
46
- ]
32
+ T::Array[WhopSDK::MessageUpdateParams::Attachment::OrHash]
47
33
  ),
48
34
  content: T.nilable(String),
49
35
  is_pinned: T.nilable(T::Boolean),
@@ -65,14 +51,7 @@ module WhopSDK
65
51
  override.returns(
66
52
  {
67
53
  attachments:
68
- T.nilable(
69
- T::Array[
70
- T.any(
71
- WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
72
- WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID
73
- )
74
- ]
75
- ),
54
+ T.nilable(T::Array[WhopSDK::MessageUpdateParams::Attachment]),
76
55
  content: T.nilable(String),
77
56
  is_pinned: T.nilable(T::Boolean),
78
57
  request_options: WhopSDK::RequestOptions
@@ -82,84 +61,29 @@ module WhopSDK
82
61
  def to_hash
83
62
  end
84
63
 
85
- # Input for an attachment
86
- module Attachment
87
- extend WhopSDK::Internal::Type::Union
88
-
89
- Variants =
64
+ class Attachment < WhopSDK::Internal::Type::BaseModel
65
+ OrHash =
90
66
  T.type_alias do
91
67
  T.any(
92
- WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
93
- WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID
68
+ WhopSDK::MessageUpdateParams::Attachment,
69
+ WhopSDK::Internal::AnyHash
94
70
  )
95
71
  end
96
72
 
97
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
98
- OrHash =
99
- T.type_alias do
100
- T.any(
101
- WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
102
- WhopSDK::Internal::AnyHash
103
- )
104
- end
105
-
106
- # This ID should be used the first time you upload an attachment. It is the ID of
107
- # the direct upload that was created when uploading the file to S3 via the
108
- # mediaDirectUpload mutation.
109
- sig { returns(String) }
110
- attr_accessor :direct_upload_id
111
-
112
- # Input for an attachment
113
- sig { params(direct_upload_id: String).returns(T.attached_class) }
114
- def self.new(
115
- # This ID should be used the first time you upload an attachment. It is the ID of
116
- # the direct upload that was created when uploading the file to S3 via the
117
- # mediaDirectUpload mutation.
118
- direct_upload_id:
119
- )
120
- end
121
-
122
- sig { override.returns({ direct_upload_id: String }) }
123
- def to_hash
124
- end
125
- end
73
+ # The ID of an existing file object.
74
+ sig { returns(String) }
75
+ attr_accessor :id
126
76
 
127
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
128
- OrHash =
129
- T.type_alias do
130
- T.any(
131
- WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID,
132
- WhopSDK::Internal::AnyHash
133
- )
134
- end
135
-
136
- # The ID of an existing attachment object. Use this when updating a resource and
137
- # keeping a subset of the attachments. Don't use this unless you know what you're
138
- # doing.
139
- sig { returns(String) }
140
- attr_accessor :id
141
-
142
- # Input for an attachment
143
- sig { params(id: String).returns(T.attached_class) }
144
- def self.new(
145
- # The ID of an existing attachment object. Use this when updating a resource and
146
- # keeping a subset of the attachments. Don't use this unless you know what you're
147
- # doing.
148
- id:
149
- )
150
- end
151
-
152
- sig { override.returns({ id: String }) }
153
- def to_hash
154
- end
77
+ # Input for an attachment
78
+ sig { params(id: String).returns(T.attached_class) }
79
+ def self.new(
80
+ # The ID of an existing file object.
81
+ id:
82
+ )
155
83
  end
156
84
 
157
- sig do
158
- override.returns(
159
- T::Array[WhopSDK::MessageUpdateParams::Attachment::Variants]
160
- )
161
- end
162
- def self.variants
85
+ sig { override.returns({ id: String }) }
86
+ def to_hash
163
87
  end
164
88
  end
165
89
  end
@@ -89,6 +89,10 @@ module WhopSDK
89
89
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
90
90
  attr_accessor :metadata
91
91
 
92
+ # The time of the next schedule payment retry.
93
+ sig { returns(T.nilable(Time)) }
94
+ attr_accessor :next_payment_attempt
95
+
92
96
  # The datetime the payment was paid
93
97
  sig { returns(T.nilable(Time)) }
94
98
  attr_accessor :paid_at
@@ -108,6 +112,10 @@ module WhopSDK
108
112
  sig { returns(T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol)) }
109
113
  attr_accessor :payment_method_type
110
114
 
115
+ # The number of failed payment attempts for the payment.
116
+ sig { returns(T.nilable(Integer)) }
117
+ attr_accessor :payments_failed
118
+
111
119
  # The plan attached to this payment.
112
120
  sig { returns(T.nilable(WhopSDK::Payment::Plan)) }
113
121
  attr_reader :plan
@@ -201,9 +209,11 @@ module WhopSDK
201
209
  member: T.nilable(WhopSDK::Payment::Member::OrHash),
202
210
  membership: T.nilable(WhopSDK::Payment::Membership::OrHash),
203
211
  metadata: T.nilable(T::Hash[Symbol, T.anything]),
212
+ next_payment_attempt: T.nilable(Time),
204
213
  paid_at: T.nilable(Time),
205
214
  payment_method: T.nilable(WhopSDK::Payment::PaymentMethod::OrHash),
206
215
  payment_method_type: T.nilable(WhopSDK::PaymentMethodTypes::OrSymbol),
216
+ payments_failed: T.nilable(Integer),
207
217
  plan: T.nilable(WhopSDK::Payment::Plan::OrHash),
208
218
  product: T.nilable(WhopSDK::Payment::Product::OrHash),
209
219
  promo_code: T.nilable(WhopSDK::Payment::PromoCode::OrHash),
@@ -254,12 +264,16 @@ module WhopSDK
254
264
  # The custom metadata stored on this payment. This will be copied over to the
255
265
  # checkout configuration for which this payment was made
256
266
  metadata:,
267
+ # The time of the next schedule payment retry.
268
+ next_payment_attempt:,
257
269
  # The datetime the payment was paid
258
270
  paid_at:,
259
271
  # The payment method used for the payment, if available.
260
272
  payment_method:,
261
273
  # The different types of payment methods that can be used.
262
274
  payment_method_type:,
275
+ # The number of failed payment attempts for the payment.
276
+ payments_failed:,
263
277
  # The plan attached to this payment.
264
278
  plan:,
265
279
  # The product this payment was made for
@@ -314,10 +328,12 @@ module WhopSDK
314
328
  member: T.nilable(WhopSDK::Payment::Member),
315
329
  membership: T.nilable(WhopSDK::Payment::Membership),
316
330
  metadata: T.nilable(T::Hash[Symbol, T.anything]),
331
+ next_payment_attempt: T.nilable(Time),
317
332
  paid_at: T.nilable(Time),
318
333
  payment_method: T.nilable(WhopSDK::Payment::PaymentMethod),
319
334
  payment_method_type:
320
335
  T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol),
336
+ payments_failed: T.nilable(Integer),
321
337
  plan: T.nilable(WhopSDK::Payment::Plan),
322
338
  product: T.nilable(WhopSDK::Payment::Product),
323
339
  promo_code: T.nilable(WhopSDK::Payment::PromoCode),
@@ -31,11 +31,16 @@ module WhopSDK
31
31
  sig { returns(Symbol) }
32
32
  attr_accessor :type
33
33
 
34
+ # The company ID that this webhook event is associated with
35
+ sig { returns(T.nilable(String)) }
36
+ attr_accessor :company_id
37
+
34
38
  sig do
35
39
  params(
36
40
  id: String,
37
41
  data: WhopSDK::Payment::OrHash,
38
42
  timestamp: Time,
43
+ company_id: T.nilable(String),
39
44
  api_version: Symbol,
40
45
  type: Symbol
41
46
  ).returns(T.attached_class)
@@ -47,6 +52,8 @@ module WhopSDK
47
52
  data:,
48
53
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
49
54
  timestamp:,
55
+ # The company ID that this webhook event is associated with
56
+ company_id: nil,
50
57
  # The API version for this webhook
51
58
  api_version: :v1,
52
59
  # The webhook event type
@@ -61,7 +68,8 @@ module WhopSDK
61
68
  api_version: Symbol,
62
69
  data: WhopSDK::Payment,
63
70
  timestamp: Time,
64
- type: Symbol
71
+ type: Symbol,
72
+ company_id: T.nilable(String)
65
73
  }
66
74
  )
67
75
  end
@@ -31,11 +31,16 @@ module WhopSDK
31
31
  sig { returns(Symbol) }
32
32
  attr_accessor :type
33
33
 
34
+ # The company ID that this webhook event is associated with
35
+ sig { returns(T.nilable(String)) }
36
+ attr_accessor :company_id
37
+
34
38
  sig do
35
39
  params(
36
40
  id: String,
37
41
  data: WhopSDK::Payment::OrHash,
38
42
  timestamp: Time,
43
+ company_id: T.nilable(String),
39
44
  api_version: Symbol,
40
45
  type: Symbol
41
46
  ).returns(T.attached_class)
@@ -47,6 +52,8 @@ module WhopSDK
47
52
  data:,
48
53
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
49
54
  timestamp:,
55
+ # The company ID that this webhook event is associated with
56
+ company_id: nil,
50
57
  # The API version for this webhook
51
58
  api_version: :v1,
52
59
  # The webhook event type
@@ -61,7 +68,8 @@ module WhopSDK
61
68
  api_version: Symbol,
62
69
  data: WhopSDK::Payment,
63
70
  timestamp: Time,
64
- type: Symbol
71
+ type: Symbol,
72
+ company_id: T.nilable(String)
65
73
  }
66
74
  )
67
75
  end
@@ -114,6 +114,10 @@ module WhopSDK
114
114
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
115
115
  attr_accessor :metadata
116
116
 
117
+ # The time of the next schedule payment retry.
118
+ sig { returns(T.nilable(Time)) }
119
+ attr_accessor :next_payment_attempt
120
+
117
121
  # The datetime the payment was paid
118
122
  sig { returns(T.nilable(Time)) }
119
123
  attr_accessor :paid_at
@@ -138,6 +142,10 @@ module WhopSDK
138
142
  sig { returns(T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol)) }
139
143
  attr_accessor :payment_method_type
140
144
 
145
+ # The number of failed payment attempts for the payment.
146
+ sig { returns(T.nilable(Integer)) }
147
+ attr_accessor :payments_failed
148
+
141
149
  # The plan attached to this payment.
142
150
  sig { returns(T.nilable(WhopSDK::Models::PaymentListResponse::Plan)) }
143
151
  attr_reader :plan
@@ -255,12 +263,14 @@ module WhopSDK
255
263
  membership:
256
264
  T.nilable(WhopSDK::Models::PaymentListResponse::Membership::OrHash),
257
265
  metadata: T.nilable(T::Hash[Symbol, T.anything]),
266
+ next_payment_attempt: T.nilable(Time),
258
267
  paid_at: T.nilable(Time),
259
268
  payment_method:
260
269
  T.nilable(
261
270
  WhopSDK::Models::PaymentListResponse::PaymentMethod::OrHash
262
271
  ),
263
272
  payment_method_type: T.nilable(WhopSDK::PaymentMethodTypes::OrSymbol),
273
+ payments_failed: T.nilable(Integer),
264
274
  plan: T.nilable(WhopSDK::Models::PaymentListResponse::Plan::OrHash),
265
275
  product:
266
276
  T.nilable(WhopSDK::Models::PaymentListResponse::Product::OrHash),
@@ -313,12 +323,16 @@ module WhopSDK
313
323
  # The custom metadata stored on this payment. This will be copied over to the
314
324
  # checkout configuration for which this payment was made
315
325
  metadata:,
326
+ # The time of the next schedule payment retry.
327
+ next_payment_attempt:,
316
328
  # The datetime the payment was paid
317
329
  paid_at:,
318
330
  # The payment method used for the payment, if available.
319
331
  payment_method:,
320
332
  # The different types of payment methods that can be used.
321
333
  payment_method_type:,
334
+ # The number of failed payment attempts for the payment.
335
+ payments_failed:,
322
336
  # The plan attached to this payment.
323
337
  plan:,
324
338
  # The product this payment was made for
@@ -375,11 +389,13 @@ module WhopSDK
375
389
  membership:
376
390
  T.nilable(WhopSDK::Models::PaymentListResponse::Membership),
377
391
  metadata: T.nilable(T::Hash[Symbol, T.anything]),
392
+ next_payment_attempt: T.nilable(Time),
378
393
  paid_at: T.nilable(Time),
379
394
  payment_method:
380
395
  T.nilable(WhopSDK::Models::PaymentListResponse::PaymentMethod),
381
396
  payment_method_type:
382
397
  T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol),
398
+ payments_failed: T.nilable(Integer),
383
399
  plan: T.nilable(WhopSDK::Models::PaymentListResponse::Plan),
384
400
  product: T.nilable(WhopSDK::Models::PaymentListResponse::Product),
385
401
  promo_code:
@@ -16,31 +16,57 @@ module WhopSDK
16
16
  ALIPAY = T.let(:alipay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
17
17
  ALMA = T.let(:alma, WhopSDK::PaymentMethodTypes::TaggedSymbol)
18
18
  AMAZON_PAY = T.let(:amazon_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
19
+ APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
19
20
  APPLE_PAY = T.let(:apple_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
20
21
  AU_BECS_DEBIT =
21
22
  T.let(:au_becs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
22
23
  BACS_DEBIT = T.let(:bacs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
23
24
  BANCONTACT = T.let(:bancontact, WhopSDK::PaymentMethodTypes::TaggedSymbol)
24
25
  BILLIE = T.let(:billie, WhopSDK::PaymentMethodTypes::TaggedSymbol)
26
+ BIZUM = T.let(:bizum, WhopSDK::PaymentMethodTypes::TaggedSymbol)
25
27
  BLIK = T.let(:blik, WhopSDK::PaymentMethodTypes::TaggedSymbol)
26
28
  BOLETO = T.let(:boleto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
29
+ CAPCHASE_PAY =
30
+ T.let(:capchase_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
27
31
  CARD = T.let(:card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
28
32
  CASHAPP = T.let(:cashapp, WhopSDK::PaymentMethodTypes::TaggedSymbol)
33
+ COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
29
34
  CRYPTO = T.let(:crypto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
35
+ CUSTOM = T.let(:custom, WhopSDK::PaymentMethodTypes::TaggedSymbol)
36
+ CUSTOMER_BALANCE =
37
+ T.let(:customer_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
38
+ DEMO_PAY = T.let(:demo_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
30
39
  EPS = T.let(:eps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
40
+ EU_BANK_TRANSFER =
41
+ T.let(:eu_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
31
42
  FPX = T.let(:fpx, WhopSDK::PaymentMethodTypes::TaggedSymbol)
32
43
  GIROPAY = T.let(:giropay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
33
44
  GOOGLE_PAY = T.let(:google_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
45
+ GOPAY = T.let(:gopay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
34
46
  GRABPAY = T.let(:grabpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
47
+ ID_BANK_TRANSFER =
48
+ T.let(:id_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
35
49
  IDEAL = T.let(:ideal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
36
50
  KAKAO_PAY = T.let(:kakao_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
37
51
  KLARNA = T.let(:klarna, WhopSDK::PaymentMethodTypes::TaggedSymbol)
38
52
  KONBINI = T.let(:konbini, WhopSDK::PaymentMethodTypes::TaggedSymbol)
39
53
  KR_CARD = T.let(:kr_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
54
+ KR_MARKET = T.let(:kr_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
55
+ KRIYA = T.let(:kriya, WhopSDK::PaymentMethodTypes::TaggedSymbol)
40
56
  LINK = T.let(:link, WhopSDK::PaymentMethodTypes::TaggedSymbol)
57
+ MB_WAY = T.let(:mb_way, WhopSDK::PaymentMethodTypes::TaggedSymbol)
41
58
  MOBILEPAY = T.let(:mobilepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
59
+ MONDU = T.let(:mondu, WhopSDK::PaymentMethodTypes::TaggedSymbol)
42
60
  MULTIBANCO = T.let(:multibanco, WhopSDK::PaymentMethodTypes::TaggedSymbol)
43
61
  NAVER_PAY = T.let(:naver_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
62
+ NETBANKING = T.let(:netbanking, WhopSDK::PaymentMethodTypes::TaggedSymbol)
63
+ NG_BANK = T.let(:ng_bank, WhopSDK::PaymentMethodTypes::TaggedSymbol)
64
+ NG_BANK_TRANSFER =
65
+ T.let(:ng_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
66
+ NG_CARD = T.let(:ng_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
67
+ NG_MARKET = T.let(:ng_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
68
+ NG_USSD = T.let(:ng_ussd, WhopSDK::PaymentMethodTypes::TaggedSymbol)
69
+ NG_WALLET = T.let(:ng_wallet, WhopSDK::PaymentMethodTypes::TaggedSymbol)
44
70
  NZ_BANK_ACCOUNT =
45
71
  T.let(:nz_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
46
72
  OXXO = T.let(:oxxo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
@@ -49,64 +75,40 @@ module WhopSDK
49
75
  T.let(:pay_by_bank, WhopSDK::PaymentMethodTypes::TaggedSymbol)
50
76
  PAYCO = T.let(:payco, WhopSDK::PaymentMethodTypes::TaggedSymbol)
51
77
  PAYNOW = T.let(:paynow, WhopSDK::PaymentMethodTypes::TaggedSymbol)
78
+ PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
79
+ PAYPAY = T.let(:paypay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
80
+ PAYTO = T.let(:payto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
52
81
  PIX = T.let(:pix, WhopSDK::PaymentMethodTypes::TaggedSymbol)
82
+ PLATFORM_BALANCE =
83
+ T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
53
84
  PROMPTPAY = T.let(:promptpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
85
+ QRIS = T.let(:qris, WhopSDK::PaymentMethodTypes::TaggedSymbol)
86
+ RECHNUNG = T.let(:rechnung, WhopSDK::PaymentMethodTypes::TaggedSymbol)
54
87
  REVOLUT_PAY =
55
88
  T.let(:revolut_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
56
89
  SAMSUNG_PAY =
57
90
  T.let(:samsung_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
58
91
  SATISPAY = T.let(:satispay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
92
+ SCALAPAY = T.let(:scalapay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
59
93
  SEPA_DEBIT = T.let(:sepa_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
94
+ SEQURA = T.let(:sequra, WhopSDK::PaymentMethodTypes::TaggedSymbol)
95
+ SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
96
+ SHOP_PAY = T.let(:shop_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
97
+ SHOPEEPAY = T.let(:shopeepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
60
98
  SOFORT = T.let(:sofort, WhopSDK::PaymentMethodTypes::TaggedSymbol)
99
+ SOUTH_KOREA_MARKET =
100
+ T.let(:south_korea_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
101
+ SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
102
+ SUNBIT = T.let(:sunbit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
61
103
  SWISH = T.let(:swish, WhopSDK::PaymentMethodTypes::TaggedSymbol)
62
104
  TWINT = T.let(:twint, WhopSDK::PaymentMethodTypes::TaggedSymbol)
105
+ UPI = T.let(:upi, WhopSDK::PaymentMethodTypes::TaggedSymbol)
63
106
  US_BANK_ACCOUNT =
64
107
  T.let(:us_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
108
+ VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
109
+ VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
65
110
  WECHAT_PAY = T.let(:wechat_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
66
111
  ZIP = T.let(:zip, WhopSDK::PaymentMethodTypes::TaggedSymbol)
67
- BIZUM = T.let(:bizum, WhopSDK::PaymentMethodTypes::TaggedSymbol)
68
- CAPCHASE_PAY =
69
- T.let(:capchase_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
70
- KRIYA = T.let(:kriya, WhopSDK::PaymentMethodTypes::TaggedSymbol)
71
- MONDU = T.let(:mondu, WhopSDK::PaymentMethodTypes::TaggedSymbol)
72
- NG_WALLET = T.let(:ng_wallet, WhopSDK::PaymentMethodTypes::TaggedSymbol)
73
- PAYPAY = T.let(:paypay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
74
- SEQURA = T.let(:sequra, WhopSDK::PaymentMethodTypes::TaggedSymbol)
75
- SCALAPAY = T.let(:scalapay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
76
- VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
77
- CUSTOM = T.let(:custom, WhopSDK::PaymentMethodTypes::TaggedSymbol)
78
- CUSTOMER_BALANCE =
79
- T.let(:customer_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
80
- GOPAY = T.let(:gopay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
81
- MB_WAY = T.let(:mb_way, WhopSDK::PaymentMethodTypes::TaggedSymbol)
82
- NG_BANK = T.let(:ng_bank, WhopSDK::PaymentMethodTypes::TaggedSymbol)
83
- NG_BANK_TRANSFER =
84
- T.let(:ng_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
85
- NG_CARD = T.let(:ng_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
86
- NG_MARKET = T.let(:ng_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
87
- NG_USSD = T.let(:ng_ussd, WhopSDK::PaymentMethodTypes::TaggedSymbol)
88
- PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
89
- PAYTO = T.let(:payto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
90
- QRIS = T.let(:qris, WhopSDK::PaymentMethodTypes::TaggedSymbol)
91
- RECHNUNG = T.let(:rechnung, WhopSDK::PaymentMethodTypes::TaggedSymbol)
92
- SOUTH_KOREA_MARKET =
93
- T.let(:south_korea_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
94
- KR_MARKET = T.let(:kr_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
95
- SHOPEEPAY = T.let(:shopeepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
96
- UPI = T.let(:upi, WhopSDK::PaymentMethodTypes::TaggedSymbol)
97
- SUNBIT = T.let(:sunbit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
98
- NETBANKING = T.let(:netbanking, WhopSDK::PaymentMethodTypes::TaggedSymbol)
99
- ID_BANK_TRANSFER =
100
- T.let(:id_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
101
- DEMO_PAY = T.let(:demo_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
102
- SHOP_PAY = T.let(:shop_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
103
- SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
104
- COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
105
- SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
106
- PLATFORM_BALANCE =
107
- T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
108
- APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
109
- VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
110
112
  UNKNOWN = T.let(:unknown, WhopSDK::PaymentMethodTypes::TaggedSymbol)
111
113
 
112
114
  sig do
@@ -31,11 +31,16 @@ module WhopSDK
31
31
  sig { returns(Symbol) }
32
32
  attr_accessor :type
33
33
 
34
+ # The company ID that this webhook event is associated with
35
+ sig { returns(T.nilable(String)) }
36
+ attr_accessor :company_id
37
+
34
38
  sig do
35
39
  params(
36
40
  id: String,
37
41
  data: WhopSDK::Payment::OrHash,
38
42
  timestamp: Time,
43
+ company_id: T.nilable(String),
39
44
  api_version: Symbol,
40
45
  type: Symbol
41
46
  ).returns(T.attached_class)
@@ -47,6 +52,8 @@ module WhopSDK
47
52
  data:,
48
53
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
49
54
  timestamp:,
55
+ # The company ID that this webhook event is associated with
56
+ company_id: nil,
50
57
  # The API version for this webhook
51
58
  api_version: :v1,
52
59
  # The webhook event type
@@ -61,7 +68,8 @@ module WhopSDK
61
68
  api_version: Symbol,
62
69
  data: WhopSDK::Payment,
63
70
  timestamp: Time,
64
- type: Symbol
71
+ type: Symbol,
72
+ company_id: T.nilable(String)
65
73
  }
66
74
  )
67
75
  end