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
@@ -0,0 +1,94 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::DmMembers#retrieve
6
+ class DmMemberRetrieveResponse < 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::DmMemberRetrieveResponse::NotificationPreference]
30
+ required :notification_preference,
31
+ enum: -> { WhopSDK::Models::DmMemberRetrieveResponse::NotificationPreference }
32
+
33
+ # @!attribute status
34
+ # The status of the membership (requested, accepted, rejected)
35
+ #
36
+ # @return [Symbol, WhopSDK::Models::DmMemberRetrieveResponse::Status]
37
+ required :status, enum: -> { WhopSDK::Models::DmMemberRetrieveResponse::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::DmMemberRetrieveResponse} 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::DmMemberRetrieveResponse::NotificationPreference] The notification preference for this member (all, mentions, none)
58
+ #
59
+ # @param status [Symbol, WhopSDK::Models::DmMemberRetrieveResponse::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::DmMemberRetrieveResponse#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::DmMemberRetrieveResponse#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,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::DmMembers#update
6
+ class DmMemberUpdateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute notification_preference
11
+ # The notification preferences for a DMs feed member
12
+ #
13
+ # @return [Symbol, WhopSDK::Models::DmMemberUpdateParams::NotificationPreference, nil]
14
+ optional :notification_preference,
15
+ enum: -> { WhopSDK::DmMemberUpdateParams::NotificationPreference },
16
+ nil?: true
17
+
18
+ # @!attribute status
19
+ # The statuses of a DMs feed member
20
+ #
21
+ # @return [Symbol, WhopSDK::Models::DmMemberUpdateParams::Status, nil]
22
+ optional :status, enum: -> { WhopSDK::DmMemberUpdateParams::Status }, nil?: true
23
+
24
+ # @!method initialize(notification_preference: nil, status: nil, request_options: {})
25
+ # @param notification_preference [Symbol, WhopSDK::Models::DmMemberUpdateParams::NotificationPreference, nil] The notification preferences for a DMs feed member
26
+ #
27
+ # @param status [Symbol, WhopSDK::Models::DmMemberUpdateParams::Status, nil] The statuses of a DMs feed member
28
+ #
29
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
30
+
31
+ # The notification preferences for a DMs feed member
32
+ module NotificationPreference
33
+ extend WhopSDK::Internal::Type::Enum
34
+
35
+ ALL = :all
36
+ MENTIONS = :mentions
37
+ NONE = :none
38
+
39
+ # @!method self.values
40
+ # @return [Array<Symbol>]
41
+ end
42
+
43
+ # The statuses of a DMs feed member
44
+ module Status
45
+ extend WhopSDK::Internal::Type::Enum
46
+
47
+ REQUESTED = :requested
48
+ ACCEPTED = :accepted
49
+ HIDDEN = :hidden
50
+ CLOSED = :closed
51
+ ARCHIVED = :archived
52
+
53
+ # @!method self.values
54
+ # @return [Array<Symbol>]
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,94 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::DmMembers#update
6
+ class DmMemberUpdateResponse < 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::DmMemberUpdateResponse::NotificationPreference]
30
+ required :notification_preference,
31
+ enum: -> { WhopSDK::Models::DmMemberUpdateResponse::NotificationPreference }
32
+
33
+ # @!attribute status
34
+ # The status of the membership (requested, accepted, rejected)
35
+ #
36
+ # @return [Symbol, WhopSDK::Models::DmMemberUpdateResponse::Status]
37
+ required :status, enum: -> { WhopSDK::Models::DmMemberUpdateResponse::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::DmMemberUpdateResponse} 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::DmMemberUpdateResponse::NotificationPreference] The notification preference for this member (all, mentions, none)
58
+ #
59
+ # @param status [Symbol, WhopSDK::Models::DmMemberUpdateResponse::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::DmMemberUpdateResponse#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::DmMemberUpdateResponse#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
@@ -25,6 +25,12 @@ module WhopSDK
25
25
  # @return [Boolean, nil]
26
26
  optional :is_public, WhopSDK::Internal::Type::Boolean, nil?: true
27
27
 
28
+ # @!attribute logo
29
+ # The logo for the experience
30
+ #
31
+ # @return [WhopSDK::Models::ExperienceCreateParams::Logo, nil]
32
+ optional :logo, -> { WhopSDK::ExperienceCreateParams::Logo }, nil?: true
33
+
28
34
  # @!attribute name
29
35
  # The name of the experience
30
36
  #
@@ -37,18 +43,33 @@ module WhopSDK
37
43
  # @return [String, nil]
38
44
  optional :section_id, String, nil?: true
39
45
 
40
- # @!method initialize(app_id:, company_id:, is_public: nil, name: nil, section_id: nil, request_options: {})
46
+ # @!method initialize(app_id:, company_id:, is_public: nil, logo: nil, name: nil, section_id: nil, request_options: {})
41
47
  # @param app_id [String] The ID of the app to create the experience for
42
48
  #
43
49
  # @param company_id [String] The ID of the company to create the experience for
44
50
  #
45
51
  # @param is_public [Boolean, nil] Whether the experience is publicly accessible
46
52
  #
53
+ # @param logo [WhopSDK::Models::ExperienceCreateParams::Logo, nil] The logo for the experience
54
+ #
47
55
  # @param name [String, nil] The name of the experience
48
56
  #
49
57
  # @param section_id [String, nil] The ID of the section to create the experience in
50
58
  #
51
59
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
60
+
61
+ class Logo < WhopSDK::Internal::Type::BaseModel
62
+ # @!attribute id
63
+ # The ID of an existing file object.
64
+ #
65
+ # @return [String]
66
+ required :id, String
67
+
68
+ # @!method initialize(id:)
69
+ # The logo for the experience
70
+ #
71
+ # @param id [String] The ID of an existing file object.
72
+ end
52
73
  end
53
74
  end
54
75
  end
@@ -22,8 +22,8 @@ module WhopSDK
22
22
  # @!attribute logo
23
23
  # The logo for the experience
24
24
  #
25
- # @return [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil]
26
- optional :logo, union: -> { WhopSDK::ExperienceUpdateParams::Logo }, nil?: true
25
+ # @return [WhopSDK::Models::ExperienceUpdateParams::Logo, nil]
26
+ optional :logo, -> { WhopSDK::ExperienceUpdateParams::Logo }, nil?: true
27
27
 
28
28
  # @!attribute name
29
29
  # The name of the experience.
@@ -48,7 +48,7 @@ module WhopSDK
48
48
  #
49
49
  # @param is_public [Boolean, nil] Whether the experience is publicly accessible.
50
50
  #
51
- # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the experience
51
+ # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo, nil] The logo for the experience
52
52
  #
53
53
  # @param name [String, nil] The name of the experience.
54
54
  #
@@ -69,56 +69,17 @@ module WhopSDK
69
69
  # @return [Array<Symbol>]
70
70
  end
71
71
 
72
- # The logo for the experience
73
- module Logo
74
- extend WhopSDK::Internal::Type::Union
75
-
76
- # Input for an attachment
77
- variant -> { WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID }
78
-
79
- # Input for an attachment
80
- variant -> { WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID }
81
-
82
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
83
- # @!attribute direct_upload_id
84
- # This ID should be used the first time you upload an attachment. It is the ID of
85
- # the direct upload that was created when uploading the file to S3 via the
86
- # mediaDirectUpload mutation.
87
- #
88
- # @return [String]
89
- required :direct_upload_id, String
90
-
91
- # @!method initialize(direct_upload_id:)
92
- # Some parameter documentations has been truncated, see
93
- # {WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID}
94
- # for more details.
95
- #
96
- # Input for an attachment
97
- #
98
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
99
- end
100
-
101
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
102
- # @!attribute id
103
- # The ID of an existing attachment object. Use this when updating a resource and
104
- # keeping a subset of the attachments. Don't use this unless you know what you're
105
- # doing.
106
- #
107
- # @return [String]
108
- required :id, String
109
-
110
- # @!method initialize(id:)
111
- # Some parameter documentations has been truncated, see
112
- # {WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID} for more
113
- # details.
114
- #
115
- # Input for an attachment
116
- #
117
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
118
- end
119
-
120
- # @!method self.variants
121
- # @return [Array(WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID)]
72
+ class Logo < WhopSDK::Internal::Type::BaseModel
73
+ # @!attribute id
74
+ # The ID of an existing file object.
75
+ #
76
+ # @return [String]
77
+ required :id, String
78
+
79
+ # @!method initialize(id:)
80
+ # The logo for the experience
81
+ #
82
+ # @param id [String] The ID of an existing file object.
122
83
  end
123
84
  end
124
85
  end
@@ -16,9 +16,9 @@ module WhopSDK
16
16
  # @!attribute attachments
17
17
  # The attachments for this post
18
18
  #
19
- # @return [Array<WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID>, nil]
19
+ # @return [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil]
20
20
  optional :attachments,
21
- -> { WhopSDK::Internal::Type::ArrayOf[union: WhopSDK::ForumPostCreateParams::Attachment] },
21
+ -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::ForumPostCreateParams::Attachment] },
22
22
  nil?: true
23
23
 
24
24
  # @!attribute content
@@ -86,7 +86,7 @@ module WhopSDK
86
86
  #
87
87
  # @param experience_id [String] The experience to create this post in
88
88
  #
89
- # @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
89
+ # @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil] The attachments for this post
90
90
  #
91
91
  # @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
92
92
  #
@@ -108,56 +108,17 @@ module WhopSDK
108
108
  #
109
109
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
110
110
 
111
- # Input for an attachment
112
- module Attachment
113
- extend WhopSDK::Internal::Type::Union
114
-
115
- # Input for an attachment
116
- variant -> { WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID }
117
-
118
- # Input for an attachment
119
- variant -> { WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID }
120
-
121
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
122
- # @!attribute direct_upload_id
123
- # This ID should be used the first time you upload an attachment. It is the ID of
124
- # the direct upload that was created when uploading the file to S3 via the
125
- # mediaDirectUpload mutation.
126
- #
127
- # @return [String]
128
- required :direct_upload_id, String
129
-
130
- # @!method initialize(direct_upload_id:)
131
- # Some parameter documentations has been truncated, see
132
- # {WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID}
133
- # for more details.
134
- #
135
- # Input for an attachment
136
- #
137
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
138
- end
139
-
140
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
141
- # @!attribute id
142
- # The ID of an existing attachment object. Use this when updating a resource and
143
- # keeping a subset of the attachments. Don't use this unless you know what you're
144
- # doing.
145
- #
146
- # @return [String]
147
- required :id, String
148
-
149
- # @!method initialize(id:)
150
- # Some parameter documentations has been truncated, see
151
- # {WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID} for
152
- # more details.
153
- #
154
- # Input for an attachment
155
- #
156
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
157
- end
111
+ class Attachment < WhopSDK::Internal::Type::BaseModel
112
+ # @!attribute id
113
+ # The ID of an existing file object.
114
+ #
115
+ # @return [String]
116
+ required :id, String
158
117
 
159
- # @!method self.variants
160
- # @return [Array(WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID)]
118
+ # @!method initialize(id:)
119
+ # Input for an attachment
120
+ #
121
+ # @param id [String] The ID of an existing file object.
161
122
  end
162
123
 
163
124
  class Poll < WhopSDK::Internal::Type::BaseModel
@@ -10,9 +10,9 @@ module WhopSDK
10
10
  # @!attribute attachments
11
11
  # The attachments for this post
12
12
  #
13
- # @return [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID>, nil]
13
+ # @return [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>, nil]
14
14
  optional :attachments,
15
- -> { WhopSDK::Internal::Type::ArrayOf[union: WhopSDK::ForumPostUpdateParams::Attachment] },
15
+ -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::ForumPostUpdateParams::Attachment] },
16
16
  nil?: true
17
17
 
18
18
  # @!attribute content
@@ -44,7 +44,7 @@ module WhopSDK
44
44
  # Some parameter documentations has been truncated, see
45
45
  # {WhopSDK::Models::ForumPostUpdateParams} for more details.
46
46
  #
47
- # @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
47
+ # @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>, nil] The attachments for this post
48
48
  #
49
49
  # @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
50
50
  #
@@ -56,56 +56,17 @@ module WhopSDK
56
56
  #
57
57
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
58
58
 
59
- # Input for an attachment
60
- module Attachment
61
- extend WhopSDK::Internal::Type::Union
59
+ class Attachment < WhopSDK::Internal::Type::BaseModel
60
+ # @!attribute id
61
+ # The ID of an existing file object.
62
+ #
63
+ # @return [String]
64
+ required :id, String
62
65
 
63
- # Input for an attachment
64
- variant -> { WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID }
65
-
66
- # Input for an attachment
67
- variant -> { WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID }
68
-
69
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
70
- # @!attribute direct_upload_id
71
- # This ID should be used the first time you upload an attachment. It is the ID of
72
- # the direct upload that was created when uploading the file to S3 via the
73
- # mediaDirectUpload mutation.
74
- #
75
- # @return [String]
76
- required :direct_upload_id, String
77
-
78
- # @!method initialize(direct_upload_id:)
79
- # Some parameter documentations has been truncated, see
80
- # {WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID}
81
- # for more details.
82
- #
83
- # Input for an attachment
84
- #
85
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
86
- end
87
-
88
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
89
- # @!attribute id
90
- # The ID of an existing attachment object. Use this when updating a resource and
91
- # keeping a subset of the attachments. Don't use this unless you know what you're
92
- # doing.
93
- #
94
- # @return [String]
95
- required :id, String
96
-
97
- # @!method initialize(id:)
98
- # Some parameter documentations has been truncated, see
99
- # {WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID} for
100
- # more details.
101
- #
102
- # Input for an attachment
103
- #
104
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
105
- end
106
-
107
- # @!method self.variants
108
- # @return [Array(WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID)]
66
+ # @!method initialize(id:)
67
+ # Input for an attachment
68
+ #
69
+ # @param id [String] The ID of an existing file object.
109
70
  end
110
71
  end
111
72
  end
@@ -6,22 +6,34 @@ module WhopSDK
6
6
  module FriendlyReceiptStatus
7
7
  extend WhopSDK::Internal::Type::Enum
8
8
 
9
- AUTO_REFUNDED = :auto_refunded
9
+ SUCCEEDED = :succeeded
10
+ PENDING = :pending
11
+ FAILED = :failed
12
+ PAST_DUE = :past_due
13
+ CANCELED = :canceled
14
+ PRICE_TOO_LOW = :price_too_low
15
+ UNCOLLECTIBLE = :uncollectible
10
16
  REFUNDED = :refunded
17
+ AUTO_REFUNDED = :auto_refunded
11
18
  PARTIALLY_REFUNDED = :partially_refunded
12
19
  DISPUTE_WARNING = :dispute_warning
13
- OPEN_RESOLUTION = :open_resolution
14
- OPEN_DISPUTE = :open_dispute
15
- FAILED = :failed
16
- PRICE_TOO_LOW = :price_too_low
17
- SUCCEEDED = :succeeded
20
+ DISPUTE_NEEDS_RESPONSE = :dispute_needs_response
21
+ DISPUTE_WARNING_NEEDS_RESPONSE = :dispute_warning_needs_response
22
+ RESOLUTION_NEEDS_RESPONSE = :resolution_needs_response
23
+ DISPUTE_UNDER_REVIEW = :dispute_under_review
24
+ DISPUTE_WARNING_UNDER_REVIEW = :dispute_warning_under_review
25
+ RESOLUTION_UNDER_REVIEW = :resolution_under_review
26
+ DISPUTE_WON = :dispute_won
27
+ DISPUTE_WARNING_CLOSED = :dispute_warning_closed
28
+ RESOLUTION_WON = :resolution_won
29
+ DISPUTE_LOST = :dispute_lost
30
+ DISPUTE_CLOSED = :dispute_closed
31
+ RESOLUTION_LOST = :resolution_lost
18
32
  DRAFTED = :drafted
19
- UNCOLLECTIBLE = :uncollectible
20
- UNRESOLVED = :unresolved
21
- PAST_DUE = :past_due
22
- PENDING = :pending
23
33
  INCOMPLETE = :incomplete
24
- CANCELED = :canceled
34
+ UNRESOLVED = :unresolved
35
+ OPEN_DISPUTE = :open_dispute
36
+ OPEN_RESOLUTION = :open_resolution
25
37
 
26
38
  # @!method self.values
27
39
  # @return [Array<Symbol>]
@@ -17,14 +17,6 @@ module WhopSDK
17
17
  required :balances,
18
18
  -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Models::LedgerAccountRetrieveResponse::Balance] }
19
19
 
20
- # @!attribute ledger_account_audit_status
21
- # The different statuses a LedgerAccountAudit can be
22
- #
23
- # @return [Symbol, WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus, nil]
24
- required :ledger_account_audit_status,
25
- enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus },
26
- nil?: true
27
-
28
20
  # @!attribute ledger_type
29
21
  # The type of ledger account.
30
22
  #
@@ -59,15 +51,13 @@ module WhopSDK
59
51
  # @return [Float, nil]
60
52
  required :transfer_fee, Float, nil?: true
61
53
 
62
- # @!method initialize(id:, balances:, ledger_account_audit_status:, ledger_type:, owner:, payments_approval_status:, payout_account_details:, transfer_fee:)
54
+ # @!method initialize(id:, balances:, ledger_type:, owner:, payments_approval_status:, payout_account_details:, transfer_fee:)
63
55
  # Represents a LedgerAccount.
64
56
  #
65
57
  # @param id [String] The ID of the LedgerAccount.
66
58
  #
67
59
  # @param balances [Array<WhopSDK::Models::LedgerAccountRetrieveResponse::Balance>] The balances associated with the account.
68
60
  #
69
- # @param ledger_account_audit_status [Symbol, WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus, nil] The different statuses a LedgerAccountAudit can be
70
- #
71
61
  # @param ledger_type [Symbol, WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType] The type of ledger account.
72
62
  #
73
63
  # @param owner [WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::User, WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::Company, nil] The owner of the ledger account.
@@ -115,29 +105,6 @@ module WhopSDK
115
105
  # @param reserve_balance [Float] The amount of the balance that is reserved.
116
106
  end
117
107
 
118
- # The different statuses a LedgerAccountAudit can be
119
- #
120
- # @see WhopSDK::Models::LedgerAccountRetrieveResponse#ledger_account_audit_status
121
- module LedgerAccountAuditStatus
122
- extend WhopSDK::Internal::Type::Enum
123
-
124
- PENDING = :pending
125
- PENDING_AI_REVIEW = :pending_ai_review
126
- APPROVED = :approved
127
- RESERVES_IMPOSED = :reserves_imposed
128
- SUSPENDED = :suspended
129
- IGNORED = :ignored
130
- REJECTED = :rejected
131
- REQUESTED_MORE_INFORMATION = :requested_more_information
132
- INFORMATION_SUBMITTED = :information_submitted
133
- REQUESTED_TOS_VIOLATION_CORRECTION = :requested_tos_violation_correction
134
- CLAWBACK_ATTEMPTED = :clawback_attempted
135
- AWAITING_SALES_REVIEW = :awaiting_sales_review
136
-
137
- # @!method self.values
138
- # @return [Array<Symbol>]
139
- end
140
-
141
108
  # The type of ledger account.
142
109
  #
143
110
  # @see WhopSDK::Models::LedgerAccountRetrieveResponse#ledger_type