whop_sdk 0.0.23 → 0.0.25

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 (284) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +52 -0
  3. data/README.md +3 -3
  4. data/lib/whop_sdk/client.rb +12 -0
  5. data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
  6. data/lib/whop_sdk/models/ai_chat_create_response.rb +89 -0
  7. data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
  8. data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
  9. data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
  10. data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
  11. data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
  12. data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +89 -0
  13. data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
  14. data/lib/whop_sdk/models/ai_chat_update_response.rb +89 -0
  15. data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
  16. data/lib/whop_sdk/models/app_create_params.rb +22 -1
  17. data/lib/whop_sdk/models/app_list_params.rb +6 -0
  18. data/lib/whop_sdk/models/app_update_params.rb +14 -53
  19. data/lib/whop_sdk/models/card_brands.rb +16 -0
  20. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
  21. data/lib/whop_sdk/models/company_create_params.rb +22 -1
  22. data/lib/whop_sdk/models/company_token_transaction_create_params.rb +69 -0
  23. data/lib/whop_sdk/models/company_token_transaction_create_response.rb +180 -0
  24. data/lib/whop_sdk/models/company_token_transaction_list_params.rb +84 -0
  25. data/lib/whop_sdk/models/company_token_transaction_list_response.rb +180 -0
  26. data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
  27. data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +180 -0
  28. data/lib/whop_sdk/models/company_update_params.rb +28 -106
  29. data/lib/whop_sdk/models/course_create_params.rb +15 -62
  30. data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
  31. data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
  32. data/lib/whop_sdk/models/course_update_params.rb +14 -61
  33. data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
  34. data/lib/whop_sdk/models/dm_member_create_params.rb +30 -0
  35. data/lib/whop_sdk/models/dm_member_create_response.rb +94 -0
  36. data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
  37. data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
  38. data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
  39. data/lib/whop_sdk/models/dm_member_list_response.rb +71 -0
  40. data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
  41. data/lib/whop_sdk/models/dm_member_retrieve_response.rb +94 -0
  42. data/lib/whop_sdk/models/dm_member_update_params.rb +58 -0
  43. data/lib/whop_sdk/models/dm_member_update_response.rb +94 -0
  44. data/lib/whop_sdk/models/experience_create_params.rb +22 -1
  45. data/lib/whop_sdk/models/experience_update_params.rb +14 -53
  46. data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
  47. data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
  48. data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
  49. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
  50. data/lib/whop_sdk/models/member_list_response.rb +9 -1
  51. data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
  52. data/lib/whop_sdk/models/membership.rb +76 -2
  53. data/lib/whop_sdk/models/membership_list_response.rb +38 -2
  54. data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
  55. data/lib/whop_sdk/models/message_create_params.rb +22 -53
  56. data/lib/whop_sdk/models/message_delete_params.rb +14 -0
  57. data/lib/whop_sdk/models/message_delete_response.rb +8 -0
  58. data/lib/whop_sdk/models/message_update_params.rb +14 -53
  59. data/lib/whop_sdk/models/payment.rb +17 -1
  60. data/lib/whop_sdk/models/payment_list_response.rb +17 -1
  61. data/lib/whop_sdk/models/payment_method_types.rb +59 -57
  62. data/lib/whop_sdk/models/payment_provider.rb +1 -0
  63. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
  64. data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
  65. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
  66. data/lib/whop_sdk/models/plan_create_params.rb +14 -53
  67. data/lib/whop_sdk/models/plan_update_params.rb +14 -53
  68. data/lib/whop_sdk/models/reaction_create_params.rb +10 -1
  69. data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
  70. data/lib/whop_sdk/models/reaction_delete_response.rb +8 -0
  71. data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
  72. data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
  73. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
  74. data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
  75. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
  76. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
  77. data/lib/whop_sdk/models.rb +32 -2
  78. data/lib/whop_sdk/resources/ai_chats.rb +141 -0
  79. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  80. data/lib/whop_sdk/resources/apps.rb +4 -2
  81. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  82. data/lib/whop_sdk/resources/companies.rb +5 -3
  83. data/lib/whop_sdk/resources/company_token_transactions.rb +121 -0
  84. data/lib/whop_sdk/resources/course_lessons.rb +4 -4
  85. data/lib/whop_sdk/resources/courses.rb +4 -8
  86. data/lib/whop_sdk/resources/disputes.rb +4 -4
  87. data/lib/whop_sdk/resources/dm_members.rb +155 -0
  88. data/lib/whop_sdk/resources/experiences.rb +4 -2
  89. data/lib/whop_sdk/resources/forum_posts.rb +2 -2
  90. data/lib/whop_sdk/resources/memberships.rb +32 -0
  91. data/lib/whop_sdk/resources/messages.rb +29 -3
  92. data/lib/whop_sdk/resources/notifications.rb +4 -0
  93. data/lib/whop_sdk/resources/plans.rb +2 -2
  94. data/lib/whop_sdk/resources/reactions.rb +34 -1
  95. data/lib/whop_sdk/resources/withdrawals.rb +8 -1
  96. data/lib/whop_sdk/version.rb +1 -1
  97. data/lib/whop_sdk.rb +34 -1
  98. data/rbi/whop_sdk/client.rbi +9 -0
  99. data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
  100. data/rbi/whop_sdk/models/ai_chat_create_response.rbi +128 -0
  101. data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
  102. data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
  103. data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
  104. data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
  105. data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
  106. data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +128 -0
  107. data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
  108. data/rbi/whop_sdk/models/ai_chat_update_response.rbi +128 -0
  109. data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
  110. data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
  111. data/rbi/whop_sdk/models/app_list_params.rbi +12 -0
  112. data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
  113. data/rbi/whop_sdk/models/card_brands.rbi +17 -0
  114. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
  115. data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
  116. data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +92 -0
  117. data/rbi/whop_sdk/models/company_token_transaction_create_response.rbi +308 -0
  118. data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +146 -0
  119. data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +308 -0
  120. data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
  121. data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +312 -0
  122. data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
  123. data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
  124. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
  125. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
  126. data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
  127. data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
  128. data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -0
  129. data/rbi/whop_sdk/models/dm_member_create_response.rbi +179 -0
  130. data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
  131. data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
  132. data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
  133. data/rbi/whop_sdk/models/dm_member_list_response.rbi +124 -0
  134. data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
  135. data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +179 -0
  136. data/rbi/whop_sdk/models/dm_member_update_params.rbi +130 -0
  137. data/rbi/whop_sdk/models/dm_member_update_response.rbi +179 -0
  138. data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
  139. data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
  140. data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
  141. data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
  142. data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
  143. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
  144. data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
  145. data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
  146. data/rbi/whop_sdk/models/membership.rbi +126 -4
  147. data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
  148. data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
  149. data/rbi/whop_sdk/models/message_create_params.rbi +26 -94
  150. data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
  151. data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
  152. data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
  153. data/rbi/whop_sdk/models/payment.rbi +16 -0
  154. data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
  155. data/rbi/whop_sdk/models/payment_method_types.rbi +67 -64
  156. data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
  157. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
  158. data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
  159. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
  160. data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
  161. data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
  162. data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -0
  163. data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
  164. data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -0
  165. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
  166. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
  167. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
  168. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
  169. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
  170. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
  171. data/rbi/whop_sdk/models.rbi +35 -2
  172. data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
  173. data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
  174. data/rbi/whop_sdk/resources/apps.rbi +4 -7
  175. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  176. data/rbi/whop_sdk/resources/companies.rbi +5 -13
  177. data/rbi/whop_sdk/resources/company_token_transactions.rbi +114 -0
  178. data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
  179. data/rbi/whop_sdk/resources/courses.rbi +2 -20
  180. data/rbi/whop_sdk/resources/disputes.rbi +4 -16
  181. data/rbi/whop_sdk/resources/dm_members.rbi +128 -0
  182. data/rbi/whop_sdk/resources/experiences.rbi +4 -7
  183. data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
  184. data/rbi/whop_sdk/resources/memberships.rbi +26 -0
  185. data/rbi/whop_sdk/resources/messages.rbi +23 -12
  186. data/rbi/whop_sdk/resources/notifications.rbi +4 -0
  187. data/rbi/whop_sdk/resources/plans.rbi +2 -14
  188. data/rbi/whop_sdk/resources/reactions.rbi +26 -0
  189. data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
  190. data/sig/whop_sdk/client.rbs +6 -0
  191. data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
  192. data/sig/whop_sdk/models/ai_chat_create_response.rbs +65 -0
  193. data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
  194. data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
  195. data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
  196. data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
  197. data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
  198. data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +65 -0
  199. data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
  200. data/sig/whop_sdk/models/ai_chat_update_response.rbs +65 -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 +13 -1
  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_token_transaction_create_params.rbs +56 -0
  209. data/sig/whop_sdk/models/company_token_transaction_create_response.rbs +115 -0
  210. data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +68 -0
  211. data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +115 -0
  212. data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
  213. data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +115 -0
  214. data/sig/whop_sdk/models/company_update_params.rbs +18 -60
  215. data/sig/whop_sdk/models/course_create_params.rbs +9 -35
  216. data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
  217. data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
  218. data/sig/whop_sdk/models/course_update_params.rbs +9 -35
  219. data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
  220. data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -0
  221. data/sig/whop_sdk/models/dm_member_create_response.rbs +71 -0
  222. data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
  223. data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
  224. data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
  225. data/sig/whop_sdk/models/dm_member_list_response.rbs +54 -0
  226. data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
  227. data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +71 -0
  228. data/sig/whop_sdk/models/dm_member_update_params.rbs +57 -0
  229. data/sig/whop_sdk/models/dm_member_update_response.rbs +71 -0
  230. data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
  231. data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
  232. data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
  233. data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
  234. data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
  235. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
  236. data/sig/whop_sdk/models/member_list_response.rbs +5 -0
  237. data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
  238. data/sig/whop_sdk/models/membership.rbs +65 -4
  239. data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
  240. data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
  241. data/sig/whop_sdk/models/message_create_params.rbs +15 -31
  242. data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
  243. data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
  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_list_response.rbs +10 -0
  247. data/sig/whop_sdk/models/payment_method_types.rbs +119 -115
  248. data/sig/whop_sdk/models/payment_provider.rbs +2 -0
  249. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
  250. data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
  251. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
  252. data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
  253. data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
  254. data/sig/whop_sdk/models/reaction_create_params.rbs +5 -1
  255. data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
  256. data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -0
  257. data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
  258. data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
  259. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
  260. data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
  261. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
  262. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
  263. data/sig/whop_sdk/models.rbs +32 -2
  264. data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
  265. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  266. data/sig/whop_sdk/resources/apps.rbs +2 -1
  267. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  268. data/sig/whop_sdk/resources/companies.rbs +3 -2
  269. data/sig/whop_sdk/resources/company_token_transactions.rbs +34 -0
  270. data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
  271. data/sig/whop_sdk/resources/courses.rbs +2 -4
  272. data/sig/whop_sdk/resources/disputes.rbs +4 -4
  273. data/sig/whop_sdk/resources/dm_members.rbs +36 -0
  274. data/sig/whop_sdk/resources/experiences.rbs +2 -1
  275. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  276. data/sig/whop_sdk/resources/memberships.rbs +5 -0
  277. data/sig/whop_sdk/resources/messages.rbs +5 -2
  278. data/sig/whop_sdk/resources/plans.rbs +2 -2
  279. data/sig/whop_sdk/resources/reactions.rbs +7 -0
  280. data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
  281. metadata +118 -5
  282. data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
  283. data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
  284. data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
@@ -22,9 +22,9 @@ module WhopSDK
22
22
  # @!attribute cancellation_policy_attachment
23
23
  # A file containing the cancellation policy from the company.
24
24
  #
25
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID, nil]
25
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment, nil]
26
26
  optional :cancellation_policy_attachment,
27
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment },
27
+ -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment },
28
28
  nil?: true
29
29
 
30
30
  # @!attribute cancellation_policy_disclosure
@@ -36,9 +36,9 @@ module WhopSDK
36
36
  # @!attribute customer_communication_attachment
37
37
  # A file containing the customer communication from the company (An image).
38
38
  #
39
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID, nil]
39
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment, nil]
40
40
  optional :customer_communication_attachment,
41
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment },
41
+ -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment },
42
42
  nil?: true
43
43
 
44
44
  # @!attribute customer_email_address
@@ -68,9 +68,9 @@ module WhopSDK
68
68
  # @!attribute refund_policy_attachment
69
69
  # A file containing the refund policy from the company.
70
70
  #
71
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID, nil]
71
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment, nil]
72
72
  optional :refund_policy_attachment,
73
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment },
73
+ -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment },
74
74
  nil?: true
75
75
 
76
76
  # @!attribute refund_policy_disclosure
@@ -94,9 +94,9 @@ module WhopSDK
94
94
  # @!attribute uncategorized_attachment
95
95
  # A file that does not fit in the other categories.
96
96
  #
97
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID, nil]
97
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment, nil]
98
98
  optional :uncategorized_attachment,
99
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment },
99
+ -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment },
100
100
  nil?: true
101
101
 
102
102
  # @!method initialize(access_activity_log: nil, billing_address: nil, cancellation_policy_attachment: nil, cancellation_policy_disclosure: nil, customer_communication_attachment: nil, customer_email_address: nil, customer_name: nil, notes: nil, product_description: nil, refund_policy_attachment: nil, refund_policy_disclosure: nil, refund_refusal_explanation: nil, service_date: nil, uncategorized_attachment: nil, request_options: {})
@@ -104,11 +104,11 @@ module WhopSDK
104
104
  #
105
105
  # @param billing_address [String, nil] The billing address of the user from their payment details.
106
106
  #
107
- # @param cancellation_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID, nil] A file containing the cancellation policy from the company.
107
+ # @param cancellation_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment, nil] A file containing the cancellation policy from the company.
108
108
  #
109
109
  # @param cancellation_policy_disclosure [String, nil] A cancellation policy disclosure from the company.
110
110
  #
111
- # @param customer_communication_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID, nil] A file containing the customer communication from the company (An image).
111
+ # @param customer_communication_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment, nil] A file containing the customer communication from the company (An image).
112
112
  #
113
113
  # @param customer_email_address [String, nil] The email of the customer from their payment details.
114
114
  #
@@ -118,7 +118,7 @@ module WhopSDK
118
118
  #
119
119
  # @param product_description [String, nil] The description of the product from the company.
120
120
  #
121
- # @param refund_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID, nil] A file containing the refund policy from the company.
121
+ # @param refund_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment, nil] A file containing the refund policy from the company.
122
122
  #
123
123
  # @param refund_policy_disclosure [String, nil] A refund policy disclosure from the company.
124
124
  #
@@ -126,216 +126,60 @@ module WhopSDK
126
126
  #
127
127
  # @param service_date [String, nil] When the product was delivered by the company.
128
128
  #
129
- # @param uncategorized_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID, nil] A file that does not fit in the other categories.
129
+ # @param uncategorized_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment, nil] A file that does not fit in the other categories.
130
130
  #
131
131
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
132
132
 
133
- # A file containing the cancellation policy from the company.
134
- module CancellationPolicyAttachment
135
- extend WhopSDK::Internal::Type::Union
136
-
137
- # Input for an attachment
138
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID }
139
-
140
- # Input for an attachment
141
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID }
142
-
143
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
144
- # @!attribute direct_upload_id
145
- # This ID should be used the first time you upload an attachment. It is the ID of
146
- # the direct upload that was created when uploading the file to S3 via the
147
- # mediaDirectUpload mutation.
148
- #
149
- # @return [String]
150
- required :direct_upload_id, String
151
-
152
- # @!method initialize(direct_upload_id:)
153
- # Some parameter documentations has been truncated, see
154
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID}
155
- # for more details.
156
- #
157
- # Input for an attachment
158
- #
159
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
160
- end
161
-
162
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
163
- # @!attribute id
164
- # The ID of an existing attachment object. Use this when updating a resource and
165
- # keeping a subset of the attachments. Don't use this unless you know what you're
166
- # doing.
167
- #
168
- # @return [String]
169
- required :id, String
170
-
171
- # @!method initialize(id:)
172
- # Some parameter documentations has been truncated, see
173
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID}
174
- # for more details.
175
- #
176
- # Input for an attachment
177
- #
178
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
179
- end
180
-
181
- # @!method self.variants
182
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID)]
133
+ class CancellationPolicyAttachment < WhopSDK::Internal::Type::BaseModel
134
+ # @!attribute id
135
+ # The ID of an existing file object.
136
+ #
137
+ # @return [String]
138
+ required :id, String
139
+
140
+ # @!method initialize(id:)
141
+ # A file containing the cancellation policy from the company.
142
+ #
143
+ # @param id [String] The ID of an existing file object.
183
144
  end
184
145
 
185
- # A file containing the customer communication from the company (An image).
186
- module CustomerCommunicationAttachment
187
- extend WhopSDK::Internal::Type::Union
188
-
189
- # Input for an attachment
190
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID }
191
-
192
- # Input for an attachment
193
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID }
194
-
195
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
196
- # @!attribute direct_upload_id
197
- # This ID should be used the first time you upload an attachment. It is the ID of
198
- # the direct upload that was created when uploading the file to S3 via the
199
- # mediaDirectUpload mutation.
200
- #
201
- # @return [String]
202
- required :direct_upload_id, String
203
-
204
- # @!method initialize(direct_upload_id:)
205
- # Some parameter documentations has been truncated, see
206
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID}
207
- # for more details.
208
- #
209
- # Input for an attachment
210
- #
211
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
212
- end
213
-
214
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
215
- # @!attribute id
216
- # The ID of an existing attachment object. Use this when updating a resource and
217
- # keeping a subset of the attachments. Don't use this unless you know what you're
218
- # doing.
219
- #
220
- # @return [String]
221
- required :id, String
222
-
223
- # @!method initialize(id:)
224
- # Some parameter documentations has been truncated, see
225
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID}
226
- # for more details.
227
- #
228
- # Input for an attachment
229
- #
230
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
231
- end
232
-
233
- # @!method self.variants
234
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID)]
146
+ class CustomerCommunicationAttachment < WhopSDK::Internal::Type::BaseModel
147
+ # @!attribute id
148
+ # The ID of an existing file object.
149
+ #
150
+ # @return [String]
151
+ required :id, String
152
+
153
+ # @!method initialize(id:)
154
+ # A file containing the customer communication from the company (An image).
155
+ #
156
+ # @param id [String] The ID of an existing file object.
235
157
  end
236
158
 
237
- # A file containing the refund policy from the company.
238
- module RefundPolicyAttachment
239
- extend WhopSDK::Internal::Type::Union
240
-
241
- # Input for an attachment
242
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID }
243
-
244
- # Input for an attachment
245
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID }
246
-
247
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
248
- # @!attribute direct_upload_id
249
- # This ID should be used the first time you upload an attachment. It is the ID of
250
- # the direct upload that was created when uploading the file to S3 via the
251
- # mediaDirectUpload mutation.
252
- #
253
- # @return [String]
254
- required :direct_upload_id, String
255
-
256
- # @!method initialize(direct_upload_id:)
257
- # Some parameter documentations has been truncated, see
258
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID}
259
- # for more details.
260
- #
261
- # Input for an attachment
262
- #
263
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
264
- end
265
-
266
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
267
- # @!attribute id
268
- # The ID of an existing attachment object. Use this when updating a resource and
269
- # keeping a subset of the attachments. Don't use this unless you know what you're
270
- # doing.
271
- #
272
- # @return [String]
273
- required :id, String
274
-
275
- # @!method initialize(id:)
276
- # Some parameter documentations has been truncated, see
277
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID}
278
- # for more details.
279
- #
280
- # Input for an attachment
281
- #
282
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
283
- end
284
-
285
- # @!method self.variants
286
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID)]
159
+ class RefundPolicyAttachment < WhopSDK::Internal::Type::BaseModel
160
+ # @!attribute id
161
+ # The ID of an existing file object.
162
+ #
163
+ # @return [String]
164
+ required :id, String
165
+
166
+ # @!method initialize(id:)
167
+ # A file containing the refund policy from the company.
168
+ #
169
+ # @param id [String] The ID of an existing file object.
287
170
  end
288
171
 
289
- # A file that does not fit in the other categories.
290
- module UncategorizedAttachment
291
- extend WhopSDK::Internal::Type::Union
292
-
293
- # Input for an attachment
294
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID }
295
-
296
- # Input for an attachment
297
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID }
298
-
299
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
300
- # @!attribute direct_upload_id
301
- # This ID should be used the first time you upload an attachment. It is the ID of
302
- # the direct upload that was created when uploading the file to S3 via the
303
- # mediaDirectUpload mutation.
304
- #
305
- # @return [String]
306
- required :direct_upload_id, String
307
-
308
- # @!method initialize(direct_upload_id:)
309
- # Some parameter documentations has been truncated, see
310
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID}
311
- # for more details.
312
- #
313
- # Input for an attachment
314
- #
315
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
316
- end
317
-
318
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
319
- # @!attribute id
320
- # The ID of an existing attachment object. Use this when updating a resource and
321
- # keeping a subset of the attachments. Don't use this unless you know what you're
322
- # doing.
323
- #
324
- # @return [String]
325
- required :id, String
326
-
327
- # @!method initialize(id:)
328
- # Some parameter documentations has been truncated, see
329
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID}
330
- # for more details.
331
- #
332
- # Input for an attachment
333
- #
334
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
335
- end
336
-
337
- # @!method self.variants
338
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID)]
172
+ class UncategorizedAttachment < WhopSDK::Internal::Type::BaseModel
173
+ # @!attribute id
174
+ # The ID of an existing file object.
175
+ #
176
+ # @return [String]
177
+ required :id, String
178
+
179
+ # @!method initialize(id:)
180
+ # A file that does not fit in the other categories.
181
+ #
182
+ # @param id [String] The ID of an existing file object.
339
183
  end
340
184
  end
341
185
  end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::DmMembers#create
6
+ class DmMemberCreateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute channel_id
11
+ # The ID of the DM channel to add the member to
12
+ #
13
+ # @return [String]
14
+ required :channel_id, String
15
+
16
+ # @!attribute user_id
17
+ # The ID of the user to add to the channel
18
+ #
19
+ # @return [String]
20
+ required :user_id, String
21
+
22
+ # @!method initialize(channel_id:, user_id:, request_options: {})
23
+ # @param channel_id [String] The ID of the DM channel to add the member to
24
+ #
25
+ # @param user_id [String] The ID of the user to add to the channel
26
+ #
27
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,94 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::DmMembers#create
6
+ class DmMemberCreateResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The unique identifier for the entity
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute channel_id
14
+ # The ID of the DM channel
15
+ #
16
+ # @return [String]
17
+ required :channel_id, String
18
+
19
+ # @!attribute last_viewed_at
20
+ # Timestamp when the member last viewed the channel (in milliseconds since Unix
21
+ # epoch)
22
+ #
23
+ # @return [String, nil]
24
+ required :last_viewed_at, String, nil?: true
25
+
26
+ # @!attribute notification_preference
27
+ # The notification preference for this member (all, mentions, none)
28
+ #
29
+ # @return [Symbol, WhopSDK::Models::DmMemberCreateResponse::NotificationPreference]
30
+ required :notification_preference,
31
+ enum: -> { WhopSDK::Models::DmMemberCreateResponse::NotificationPreference }
32
+
33
+ # @!attribute status
34
+ # The status of the membership (requested, accepted, rejected)
35
+ #
36
+ # @return [Symbol, WhopSDK::Models::DmMemberCreateResponse::Status]
37
+ required :status, enum: -> { WhopSDK::Models::DmMemberCreateResponse::Status }
38
+
39
+ # @!attribute user_id
40
+ # The ID of the user who is a member of the channel
41
+ #
42
+ # @return [String]
43
+ required :user_id, String
44
+
45
+ # @!method initialize(id:, channel_id:, last_viewed_at:, notification_preference:, status:, user_id:)
46
+ # Some parameter documentations has been truncated, see
47
+ # {WhopSDK::Models::DmMemberCreateResponse} for more details.
48
+ #
49
+ # Represents a member of a DM channel
50
+ #
51
+ # @param id [String] The unique identifier for the entity
52
+ #
53
+ # @param channel_id [String] The ID of the DM channel
54
+ #
55
+ # @param last_viewed_at [String, nil] Timestamp when the member last viewed the channel (in milliseconds since Unix ep
56
+ #
57
+ # @param notification_preference [Symbol, WhopSDK::Models::DmMemberCreateResponse::NotificationPreference] The notification preference for this member (all, mentions, none)
58
+ #
59
+ # @param status [Symbol, WhopSDK::Models::DmMemberCreateResponse::Status] The status of the membership (requested, accepted, rejected)
60
+ #
61
+ # @param user_id [String] The ID of the user who is a member of the channel
62
+
63
+ # The notification preference for this member (all, mentions, none)
64
+ #
65
+ # @see WhopSDK::Models::DmMemberCreateResponse#notification_preference
66
+ module NotificationPreference
67
+ extend WhopSDK::Internal::Type::Enum
68
+
69
+ ALL = :all
70
+ MENTIONS = :mentions
71
+ NONE = :none
72
+
73
+ # @!method self.values
74
+ # @return [Array<Symbol>]
75
+ end
76
+
77
+ # The status of the membership (requested, accepted, rejected)
78
+ #
79
+ # @see WhopSDK::Models::DmMemberCreateResponse#status
80
+ module Status
81
+ extend WhopSDK::Internal::Type::Enum
82
+
83
+ REQUESTED = :requested
84
+ ACCEPTED = :accepted
85
+ HIDDEN = :hidden
86
+ CLOSED = :closed
87
+ ARCHIVED = :archived
88
+
89
+ # @!method self.values
90
+ # @return [Array<Symbol>]
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::DmMembers#delete
6
+ class DmMemberDeleteParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @type [WhopSDK::Internal::Type::Converter]
6
+ DmMemberDeleteResponse = WhopSDK::Internal::Type::Boolean
7
+ end
8
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::DmMembers#list
6
+ class DmMemberListParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute channel_id
11
+ # The ID of the DM channel to list members for
12
+ #
13
+ # @return [String]
14
+ required :channel_id, String
15
+
16
+ # @!attribute after
17
+ # Returns the elements in the list that come after the specified cursor.
18
+ #
19
+ # @return [String, nil]
20
+ optional :after, String, nil?: true
21
+
22
+ # @!attribute before
23
+ # Returns the elements in the list that come before the specified cursor.
24
+ #
25
+ # @return [String, nil]
26
+ optional :before, String, nil?: true
27
+
28
+ # @!attribute first
29
+ # Returns the first _n_ elements from the list.
30
+ #
31
+ # @return [Integer, nil]
32
+ optional :first, Integer, nil?: true
33
+
34
+ # @!attribute last
35
+ # Returns the last _n_ elements from the list.
36
+ #
37
+ # @return [Integer, nil]
38
+ optional :last, Integer, nil?: true
39
+
40
+ # @!method initialize(channel_id:, after: nil, before: nil, first: nil, last: nil, request_options: {})
41
+ # @param channel_id [String] The ID of the DM channel to list members for
42
+ #
43
+ # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
44
+ #
45
+ # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
46
+ #
47
+ # @param first [Integer, nil] Returns the first _n_ elements from the list.
48
+ #
49
+ # @param last [Integer, nil] Returns the last _n_ elements from the list.
50
+ #
51
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::DmMembers#list
6
+ class DmMemberListResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The unique identifier for the entity
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute channel_id
14
+ # The ID of the DM channel
15
+ #
16
+ # @return [String]
17
+ required :channel_id, String
18
+
19
+ # @!attribute last_viewed_at
20
+ # Timestamp when the member last viewed the channel (in milliseconds since Unix
21
+ # epoch)
22
+ #
23
+ # @return [String, nil]
24
+ required :last_viewed_at, String, nil?: true
25
+
26
+ # @!attribute status
27
+ # The status of the membership (requested, accepted, rejected)
28
+ #
29
+ # @return [Symbol, WhopSDK::Models::DmMemberListResponse::Status]
30
+ required :status, enum: -> { WhopSDK::Models::DmMemberListResponse::Status }
31
+
32
+ # @!attribute user_id
33
+ # The ID of the user who is a member of the channel
34
+ #
35
+ # @return [String]
36
+ required :user_id, String
37
+
38
+ # @!method initialize(id:, channel_id:, last_viewed_at:, status:, user_id:)
39
+ # Some parameter documentations has been truncated, see
40
+ # {WhopSDK::Models::DmMemberListResponse} for more details.
41
+ #
42
+ # Represents a member of a DM channel
43
+ #
44
+ # @param id [String] The unique identifier for the entity
45
+ #
46
+ # @param channel_id [String] The ID of the DM channel
47
+ #
48
+ # @param last_viewed_at [String, nil] Timestamp when the member last viewed the channel (in milliseconds since Unix ep
49
+ #
50
+ # @param status [Symbol, WhopSDK::Models::DmMemberListResponse::Status] The status of the membership (requested, accepted, rejected)
51
+ #
52
+ # @param user_id [String] The ID of the user who is a member of the channel
53
+
54
+ # The status of the membership (requested, accepted, rejected)
55
+ #
56
+ # @see WhopSDK::Models::DmMemberListResponse#status
57
+ module Status
58
+ extend WhopSDK::Internal::Type::Enum
59
+
60
+ REQUESTED = :requested
61
+ ACCEPTED = :accepted
62
+ HIDDEN = :hidden
63
+ CLOSED = :closed
64
+ ARCHIVED = :archived
65
+
66
+ # @!method self.values
67
+ # @return [Array<Symbol>]
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::DmMembers#retrieve
6
+ class DmMemberRetrieveParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end