whop_sdk 0.0.4 → 0.0.6

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 (233) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +4 -7
  4. data/lib/whop_sdk/client.rb +21 -6
  5. data/lib/whop_sdk/internal/transport/base_client.rb +7 -1
  6. data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +6 -2
  7. data/lib/whop_sdk/models/access_level.rb +1 -1
  8. data/lib/whop_sdk/models/access_pass_type.rb +2 -1
  9. data/lib/whop_sdk/models/access_token_create_params.rb +67 -0
  10. data/lib/whop_sdk/models/access_token_create_response.rb +27 -0
  11. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +4 -4
  12. data/lib/whop_sdk/models/company.rb +1 -0
  13. data/lib/whop_sdk/models/course.rb +18 -1
  14. data/lib/whop_sdk/models/course_create_params.rb +20 -1
  15. data/lib/whop_sdk/models/course_lesson_create_params.rb +77 -1
  16. data/lib/whop_sdk/models/course_lesson_list_response.rb +43 -1
  17. data/lib/whop_sdk/models/course_lesson_update_params.rb +77 -1
  18. data/lib/whop_sdk/models/course_list_response.rb +18 -1
  19. data/lib/whop_sdk/models/course_update_params.rb +19 -1
  20. data/lib/whop_sdk/models/course_visibilities.rb +17 -0
  21. data/lib/whop_sdk/models/dispute.rb +672 -0
  22. data/lib/whop_sdk/models/dispute_created_webhook_event.rb +48 -0
  23. data/lib/whop_sdk/models/dispute_list_params.rb +62 -0
  24. data/lib/whop_sdk/models/dispute_list_response.rb +187 -0
  25. data/lib/whop_sdk/models/dispute_retrieve_params.rb +14 -0
  26. data/lib/whop_sdk/models/dispute_statuses.rb +23 -0
  27. data/lib/whop_sdk/models/dispute_submit_evidence_params.rb +14 -0
  28. data/lib/whop_sdk/models/dispute_update_evidence_params.rb +342 -0
  29. data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +48 -0
  30. data/lib/whop_sdk/models/embed_type.rb +16 -0
  31. data/lib/whop_sdk/models/entry.rb +3 -3
  32. data/lib/whop_sdk/models/entry_list_response.rb +3 -3
  33. data/lib/whop_sdk/models/experience.rb +5 -6
  34. data/lib/whop_sdk/models/forum_post.rb +2 -2
  35. data/lib/whop_sdk/models/forum_post_list_response.rb +2 -2
  36. data/lib/whop_sdk/models/global_affiliate_status.rb +1 -1
  37. data/lib/whop_sdk/models/invoice_create_params.rb +2 -2
  38. data/lib/whop_sdk/models/invoice_list_params.rb +27 -40
  39. data/lib/whop_sdk/models/lesson.rb +43 -1
  40. data/lib/whop_sdk/models/member_list_params.rb +11 -11
  41. data/lib/whop_sdk/models/member_list_response.rb +3 -3
  42. data/lib/whop_sdk/models/member_retrieve_response.rb +3 -3
  43. data/lib/whop_sdk/models/membership_list_params.rb +9 -9
  44. data/lib/whop_sdk/models/message.rb +2 -2
  45. data/lib/whop_sdk/models/message_list_response.rb +2 -2
  46. data/lib/whop_sdk/models/notification_create_params.rb +88 -0
  47. data/lib/whop_sdk/models/notification_create_response.rb +19 -0
  48. data/lib/whop_sdk/models/payment.rb +3 -3
  49. data/lib/whop_sdk/models/payment_list_response.rb +3 -3
  50. data/lib/whop_sdk/models/plan.rb +6 -4
  51. data/lib/whop_sdk/models/plan_create_params.rb +2 -2
  52. data/lib/whop_sdk/models/plan_list_response.rb +6 -4
  53. data/lib/whop_sdk/models/plan_type.rb +1 -1
  54. data/lib/whop_sdk/models/product.rb +1 -1
  55. data/lib/whop_sdk/models/product_create_params.rb +6 -6
  56. data/lib/whop_sdk/models/product_list_item.rb +1 -1
  57. data/lib/whop_sdk/models/product_update_params.rb +4 -4
  58. data/lib/whop_sdk/models/promo_code.rb +3 -3
  59. data/lib/whop_sdk/models/promo_code_list_response.rb +3 -3
  60. data/lib/whop_sdk/models/unwrap_webhook_event.rb +5 -1
  61. data/lib/whop_sdk/models.rb +24 -0
  62. data/lib/whop_sdk/resources/access_tokens.rb +46 -0
  63. data/lib/whop_sdk/resources/app_builds.rb +4 -2
  64. data/lib/whop_sdk/resources/apps.rb +3 -2
  65. data/lib/whop_sdk/resources/authorized_users.rb +2 -1
  66. data/lib/whop_sdk/resources/chat_channels.rb +9 -2
  67. data/lib/whop_sdk/resources/checkout_configurations.rb +2 -1
  68. data/lib/whop_sdk/resources/companies.rb +2 -1
  69. data/lib/whop_sdk/resources/course_chapters.rb +5 -3
  70. data/lib/whop_sdk/resources/course_lesson_interactions.rb +2 -1
  71. data/lib/whop_sdk/resources/course_lessons.rb +19 -5
  72. data/lib/whop_sdk/resources/course_students.rb +2 -1
  73. data/lib/whop_sdk/resources/courses.rb +15 -5
  74. data/lib/whop_sdk/resources/disputes.rb +182 -0
  75. data/lib/whop_sdk/resources/entries.rb +6 -3
  76. data/lib/whop_sdk/resources/experiences.rb +8 -6
  77. data/lib/whop_sdk/resources/forum_posts.rb +3 -2
  78. data/lib/whop_sdk/resources/forums.rb +3 -2
  79. data/lib/whop_sdk/resources/invoices.rb +11 -5
  80. data/lib/whop_sdk/resources/ledger_accounts.rb +6 -2
  81. data/lib/whop_sdk/resources/members.rb +6 -5
  82. data/lib/whop_sdk/resources/memberships.rb +10 -8
  83. data/lib/whop_sdk/resources/messages.rb +3 -2
  84. data/lib/whop_sdk/resources/notifications.rb +53 -0
  85. data/lib/whop_sdk/resources/payments.rb +7 -4
  86. data/lib/whop_sdk/resources/plans.rb +6 -4
  87. data/lib/whop_sdk/resources/products.rb +9 -7
  88. data/lib/whop_sdk/resources/promo_codes.rb +4 -2
  89. data/lib/whop_sdk/resources/reactions.rb +2 -1
  90. data/lib/whop_sdk/resources/reviews.rb +2 -1
  91. data/lib/whop_sdk/resources/shipments.rb +2 -1
  92. data/lib/whop_sdk/resources/support_channels.rb +2 -1
  93. data/lib/whop_sdk/resources/transfers.rb +2 -1
  94. data/lib/whop_sdk/resources/users.rb +9 -3
  95. data/lib/whop_sdk/resources/webhooks.rb +1 -1
  96. data/lib/whop_sdk/version.rb +1 -1
  97. data/lib/whop_sdk.rb +19 -0
  98. data/manifest.yaml +1 -0
  99. data/rbi/whop_sdk/client.rbi +14 -2
  100. data/rbi/whop_sdk/internal/transport/base_client.rbi +5 -0
  101. data/rbi/whop_sdk/internal/transport/pooled_net_requester.rbi +6 -2
  102. data/rbi/whop_sdk/internal/type/base_model.rbi +8 -4
  103. data/rbi/whop_sdk/models/access_level.rbi +1 -1
  104. data/rbi/whop_sdk/models/access_pass_type.rbi +2 -1
  105. data/rbi/whop_sdk/models/access_token_create_params.rbi +126 -0
  106. data/rbi/whop_sdk/models/access_token_create_response.rbi +37 -0
  107. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +4 -4
  108. data/rbi/whop_sdk/models/company.rbi +2 -0
  109. data/rbi/whop_sdk/models/course.rbi +21 -3
  110. data/rbi/whop_sdk/models/course_create_params.rbi +22 -0
  111. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +126 -0
  112. data/rbi/whop_sdk/models/course_lesson_list_response.rbi +68 -0
  113. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +126 -0
  114. data/rbi/whop_sdk/models/course_list_response.rbi +21 -3
  115. data/rbi/whop_sdk/models/course_update_params.rbi +20 -0
  116. data/rbi/whop_sdk/models/course_visibilities.rbi +23 -0
  117. data/rbi/whop_sdk/models/dispute.rbi +938 -0
  118. data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +72 -0
  119. data/rbi/whop_sdk/models/dispute_list_params.rbi +83 -0
  120. data/rbi/whop_sdk/models/dispute_list_response.rbi +287 -0
  121. data/rbi/whop_sdk/models/dispute_retrieve_params.rbi +27 -0
  122. data/rbi/whop_sdk/models/dispute_statuses.rbi +32 -0
  123. data/rbi/whop_sdk/models/dispute_submit_evidence_params.rbi +30 -0
  124. data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +566 -0
  125. data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +72 -0
  126. data/rbi/whop_sdk/models/embed_type.rbi +20 -0
  127. data/rbi/whop_sdk/models/entry.rbi +3 -3
  128. data/rbi/whop_sdk/models/entry_list_response.rbi +3 -3
  129. data/rbi/whop_sdk/models/experience.rbi +7 -9
  130. data/rbi/whop_sdk/models/forum_post.rbi +2 -2
  131. data/rbi/whop_sdk/models/forum_post_list_response.rbi +2 -2
  132. data/rbi/whop_sdk/models/global_affiliate_status.rbi +1 -1
  133. data/rbi/whop_sdk/models/invoice_create_params.rbi +2 -2
  134. data/rbi/whop_sdk/models/invoice_list_params.rbi +26 -71
  135. data/rbi/whop_sdk/models/lesson.rbi +54 -0
  136. data/rbi/whop_sdk/models/member_list_params.rbi +10 -10
  137. data/rbi/whop_sdk/models/member_list_response.rbi +6 -6
  138. data/rbi/whop_sdk/models/member_retrieve_response.rbi +6 -6
  139. data/rbi/whop_sdk/models/membership_list_params.rbi +8 -8
  140. data/rbi/whop_sdk/models/message.rbi +2 -2
  141. data/rbi/whop_sdk/models/message_list_response.rbi +2 -2
  142. data/rbi/whop_sdk/models/notification_create_params.rbi +113 -0
  143. data/rbi/whop_sdk/models/notification_create_response.rbi +31 -0
  144. data/rbi/whop_sdk/models/payment.rbi +3 -3
  145. data/rbi/whop_sdk/models/payment_list_response.rbi +3 -3
  146. data/rbi/whop_sdk/models/plan.rbi +6 -4
  147. data/rbi/whop_sdk/models/plan_create_params.rbi +2 -2
  148. data/rbi/whop_sdk/models/plan_list_response.rbi +6 -4
  149. data/rbi/whop_sdk/models/plan_type.rbi +1 -1
  150. data/rbi/whop_sdk/models/product.rbi +1 -1
  151. data/rbi/whop_sdk/models/product_create_params.rbi +6 -6
  152. data/rbi/whop_sdk/models/product_list_item.rbi +1 -1
  153. data/rbi/whop_sdk/models/product_update_params.rbi +4 -4
  154. data/rbi/whop_sdk/models/promo_code.rbi +3 -3
  155. data/rbi/whop_sdk/models/promo_code_list_response.rbi +3 -3
  156. data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -1
  157. data/rbi/whop_sdk/models.rbi +24 -0
  158. data/rbi/whop_sdk/resources/access_tokens.rbi +41 -0
  159. data/rbi/whop_sdk/resources/app_builds.rbi +10 -2
  160. data/rbi/whop_sdk/resources/apps.rbi +6 -1
  161. data/rbi/whop_sdk/resources/authorized_users.rbi +5 -1
  162. data/rbi/whop_sdk/resources/chat_channels.rbi +8 -1
  163. data/rbi/whop_sdk/resources/checkout_configurations.rbi +5 -1
  164. data/rbi/whop_sdk/resources/companies.rbi +5 -1
  165. data/rbi/whop_sdk/resources/course_chapters.rbi +11 -2
  166. data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +5 -1
  167. data/rbi/whop_sdk/resources/course_lessons.rbi +41 -2
  168. data/rbi/whop_sdk/resources/course_students.rbi +5 -1
  169. data/rbi/whop_sdk/resources/courses.rbi +28 -2
  170. data/rbi/whop_sdk/resources/disputes.rbi +194 -0
  171. data/rbi/whop_sdk/resources/entries.rbi +15 -3
  172. data/rbi/whop_sdk/resources/experiences.rbi +14 -2
  173. data/rbi/whop_sdk/resources/forum_posts.rbi +6 -1
  174. data/rbi/whop_sdk/resources/forums.rbi +6 -1
  175. data/rbi/whop_sdk/resources/invoices.rbi +20 -5
  176. data/rbi/whop_sdk/resources/ledger_accounts.rbi +7 -2
  177. data/rbi/whop_sdk/resources/members.rbi +9 -5
  178. data/rbi/whop_sdk/resources/memberships.rbi +16 -5
  179. data/rbi/whop_sdk/resources/messages.rbi +6 -1
  180. data/rbi/whop_sdk/resources/notifications.rbi +54 -0
  181. data/rbi/whop_sdk/resources/payments.rbi +16 -3
  182. data/rbi/whop_sdk/resources/plans.rbi +12 -3
  183. data/rbi/whop_sdk/resources/products.rbi +15 -6
  184. data/rbi/whop_sdk/resources/promo_codes.rbi +10 -2
  185. data/rbi/whop_sdk/resources/reactions.rbi +5 -1
  186. data/rbi/whop_sdk/resources/reviews.rbi +5 -1
  187. data/rbi/whop_sdk/resources/shipments.rbi +5 -1
  188. data/rbi/whop_sdk/resources/support_channels.rbi +5 -1
  189. data/rbi/whop_sdk/resources/transfers.rbi +5 -1
  190. data/rbi/whop_sdk/resources/users.rbi +13 -2
  191. data/rbi/whop_sdk/resources/webhooks.rbi +3 -1
  192. data/sig/whop_sdk/client.rbs +7 -1
  193. data/sig/whop_sdk/internal/transport/base_client.rbs +2 -0
  194. data/sig/whop_sdk/internal/transport/pooled_net_requester.rbs +4 -1
  195. data/sig/whop_sdk/models/access_token_create_params.rbs +56 -0
  196. data/sig/whop_sdk/models/access_token_create_response.rbs +15 -0
  197. data/sig/whop_sdk/models/company.rbs +2 -0
  198. data/sig/whop_sdk/models/course.rbs +13 -3
  199. data/sig/whop_sdk/models/course_create_params.rbs +11 -1
  200. data/sig/whop_sdk/models/course_lesson_create_params.rbs +46 -0
  201. data/sig/whop_sdk/models/course_lesson_list_response.rbs +25 -0
  202. data/sig/whop_sdk/models/course_lesson_update_params.rbs +46 -0
  203. data/sig/whop_sdk/models/course_list_response.rbs +13 -3
  204. data/sig/whop_sdk/models/course_update_params.rbs +11 -1
  205. data/sig/whop_sdk/models/course_visibilities.rbs +14 -0
  206. data/sig/whop_sdk/models/dispute.rbs +437 -0
  207. data/sig/whop_sdk/models/dispute_created_webhook_event.rbs +40 -0
  208. data/sig/whop_sdk/models/dispute_list_params.rbs +51 -0
  209. data/sig/whop_sdk/models/dispute_list_response.rbs +124 -0
  210. data/sig/whop_sdk/models/dispute_retrieve_params.rbs +15 -0
  211. data/sig/whop_sdk/models/dispute_statuses.rbs +30 -0
  212. data/sig/whop_sdk/models/dispute_submit_evidence_params.rbs +15 -0
  213. data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +215 -0
  214. data/sig/whop_sdk/models/dispute_updated_webhook_event.rbs +40 -0
  215. data/sig/whop_sdk/models/embed_type.rbs +14 -0
  216. data/sig/whop_sdk/models/invoice_list_params.rbs +16 -33
  217. data/sig/whop_sdk/models/lesson.rbs +25 -0
  218. data/sig/whop_sdk/models/member_list_params.rbs +5 -5
  219. data/sig/whop_sdk/models/membership_list_params.rbs +5 -5
  220. data/sig/whop_sdk/models/notification_create_params.rbs +61 -0
  221. data/sig/whop_sdk/models/notification_create_response.rbs +13 -0
  222. data/sig/whop_sdk/models/unwrap_webhook_event.rbs +2 -0
  223. data/sig/whop_sdk/models.rbs +24 -0
  224. data/sig/whop_sdk/resources/access_tokens.rbs +15 -0
  225. data/sig/whop_sdk/resources/course_lessons.rbs +6 -0
  226. data/sig/whop_sdk/resources/courses.rbs +4 -0
  227. data/sig/whop_sdk/resources/disputes.rbs +46 -0
  228. data/sig/whop_sdk/resources/invoices.rbs +3 -1
  229. data/sig/whop_sdk/resources/members.rbs +1 -1
  230. data/sig/whop_sdk/resources/memberships.rbs +1 -1
  231. data/sig/whop_sdk/resources/notifications.rbs +19 -0
  232. data/sig/whop_sdk/resources/webhooks.rbs +3 -1
  233. metadata +56 -2
@@ -0,0 +1,437 @@
1
+ module WhopSDK
2
+ module Models
3
+ type dispute =
4
+ {
5
+ id: String,
6
+ access_activity_log: String?,
7
+ amount: Float,
8
+ billing_address: String?,
9
+ cancellation_policy_attachment: WhopSDK::Dispute::CancellationPolicyAttachment?,
10
+ cancellation_policy_disclosure: String?,
11
+ company: WhopSDK::Dispute::Company?,
12
+ created_at: Time?,
13
+ currency: WhopSDK::Models::currency,
14
+ customer_communication_attachment: WhopSDK::Dispute::CustomerCommunicationAttachment?,
15
+ customer_email_address: String?,
16
+ customer_name: String?,
17
+ editable: bool?,
18
+ needs_response_by: Time?,
19
+ notes: String?,
20
+ payment: WhopSDK::Dispute::Payment?,
21
+ plan: WhopSDK::Dispute::Plan?,
22
+ product: WhopSDK::Dispute::Product?,
23
+ product_description: String?,
24
+ reason: String?,
25
+ refund_policy_attachment: WhopSDK::Dispute::RefundPolicyAttachment?,
26
+ refund_policy_disclosure: String?,
27
+ refund_refusal_explanation: String?,
28
+ service_date: String?,
29
+ status: WhopSDK::Models::dispute_statuses,
30
+ uncategorized_attachment: WhopSDK::Dispute::UncategorizedAttachment?,
31
+ visa_rdr: bool
32
+ }
33
+
34
+ class Dispute < WhopSDK::Internal::Type::BaseModel
35
+ attr_accessor id: String
36
+
37
+ attr_accessor access_activity_log: String?
38
+
39
+ attr_accessor amount: Float
40
+
41
+ attr_accessor billing_address: String?
42
+
43
+ attr_accessor cancellation_policy_attachment: WhopSDK::Dispute::CancellationPolicyAttachment?
44
+
45
+ attr_accessor cancellation_policy_disclosure: String?
46
+
47
+ attr_accessor company: WhopSDK::Dispute::Company?
48
+
49
+ attr_accessor created_at: Time?
50
+
51
+ attr_accessor currency: WhopSDK::Models::currency
52
+
53
+ attr_accessor customer_communication_attachment: WhopSDK::Dispute::CustomerCommunicationAttachment?
54
+
55
+ attr_accessor customer_email_address: String?
56
+
57
+ attr_accessor customer_name: String?
58
+
59
+ attr_accessor editable: bool?
60
+
61
+ attr_accessor needs_response_by: Time?
62
+
63
+ attr_accessor notes: String?
64
+
65
+ attr_accessor payment: WhopSDK::Dispute::Payment?
66
+
67
+ attr_accessor plan: WhopSDK::Dispute::Plan?
68
+
69
+ attr_accessor product: WhopSDK::Dispute::Product?
70
+
71
+ attr_accessor product_description: String?
72
+
73
+ attr_accessor reason: String?
74
+
75
+ attr_accessor refund_policy_attachment: WhopSDK::Dispute::RefundPolicyAttachment?
76
+
77
+ attr_accessor refund_policy_disclosure: String?
78
+
79
+ attr_accessor refund_refusal_explanation: String?
80
+
81
+ attr_accessor service_date: String?
82
+
83
+ attr_accessor status: WhopSDK::Models::dispute_statuses
84
+
85
+ attr_accessor uncategorized_attachment: WhopSDK::Dispute::UncategorizedAttachment?
86
+
87
+ attr_accessor visa_rdr: bool
88
+
89
+ def initialize: (
90
+ id: String,
91
+ access_activity_log: String?,
92
+ amount: Float,
93
+ billing_address: String?,
94
+ cancellation_policy_attachment: WhopSDK::Dispute::CancellationPolicyAttachment?,
95
+ cancellation_policy_disclosure: String?,
96
+ company: WhopSDK::Dispute::Company?,
97
+ created_at: Time?,
98
+ currency: WhopSDK::Models::currency,
99
+ customer_communication_attachment: WhopSDK::Dispute::CustomerCommunicationAttachment?,
100
+ customer_email_address: String?,
101
+ customer_name: String?,
102
+ editable: bool?,
103
+ needs_response_by: Time?,
104
+ notes: String?,
105
+ payment: WhopSDK::Dispute::Payment?,
106
+ plan: WhopSDK::Dispute::Plan?,
107
+ product: WhopSDK::Dispute::Product?,
108
+ product_description: String?,
109
+ reason: String?,
110
+ refund_policy_attachment: WhopSDK::Dispute::RefundPolicyAttachment?,
111
+ refund_policy_disclosure: String?,
112
+ refund_refusal_explanation: String?,
113
+ service_date: String?,
114
+ status: WhopSDK::Models::dispute_statuses,
115
+ uncategorized_attachment: WhopSDK::Dispute::UncategorizedAttachment?,
116
+ visa_rdr: bool
117
+ ) -> void
118
+
119
+ def to_hash: -> {
120
+ id: String,
121
+ access_activity_log: String?,
122
+ amount: Float,
123
+ billing_address: String?,
124
+ cancellation_policy_attachment: WhopSDK::Dispute::CancellationPolicyAttachment?,
125
+ cancellation_policy_disclosure: String?,
126
+ company: WhopSDK::Dispute::Company?,
127
+ created_at: Time?,
128
+ currency: WhopSDK::Models::currency,
129
+ customer_communication_attachment: WhopSDK::Dispute::CustomerCommunicationAttachment?,
130
+ customer_email_address: String?,
131
+ customer_name: String?,
132
+ editable: bool?,
133
+ needs_response_by: Time?,
134
+ notes: String?,
135
+ payment: WhopSDK::Dispute::Payment?,
136
+ plan: WhopSDK::Dispute::Plan?,
137
+ product: WhopSDK::Dispute::Product?,
138
+ product_description: String?,
139
+ reason: String?,
140
+ refund_policy_attachment: WhopSDK::Dispute::RefundPolicyAttachment?,
141
+ refund_policy_disclosure: String?,
142
+ refund_refusal_explanation: String?,
143
+ service_date: String?,
144
+ status: WhopSDK::Models::dispute_statuses,
145
+ uncategorized_attachment: WhopSDK::Dispute::UncategorizedAttachment?,
146
+ visa_rdr: bool
147
+ }
148
+
149
+ type cancellation_policy_attachment =
150
+ { id: String, content_type: String?, filename: String?, url: String? }
151
+
152
+ class CancellationPolicyAttachment < WhopSDK::Internal::Type::BaseModel
153
+ attr_accessor id: String
154
+
155
+ attr_accessor content_type: String?
156
+
157
+ attr_accessor filename: String?
158
+
159
+ attr_accessor url: String?
160
+
161
+ def initialize: (
162
+ id: String,
163
+ content_type: String?,
164
+ filename: String?,
165
+ url: String?
166
+ ) -> void
167
+
168
+ def to_hash: -> {
169
+ id: String,
170
+ content_type: String?,
171
+ filename: String?,
172
+ url: String?
173
+ }
174
+ end
175
+
176
+ type company = { id: String, title: String }
177
+
178
+ class Company < WhopSDK::Internal::Type::BaseModel
179
+ attr_accessor id: String
180
+
181
+ attr_accessor title: String
182
+
183
+ def initialize: (id: String, title: String) -> void
184
+
185
+ def to_hash: -> { id: String, title: String }
186
+ end
187
+
188
+ type customer_communication_attachment =
189
+ { id: String, content_type: String?, filename: String?, url: String? }
190
+
191
+ class CustomerCommunicationAttachment < WhopSDK::Internal::Type::BaseModel
192
+ attr_accessor id: String
193
+
194
+ attr_accessor content_type: String?
195
+
196
+ attr_accessor filename: String?
197
+
198
+ attr_accessor url: String?
199
+
200
+ def initialize: (
201
+ id: String,
202
+ content_type: String?,
203
+ filename: String?,
204
+ url: String?
205
+ ) -> void
206
+
207
+ def to_hash: -> {
208
+ id: String,
209
+ content_type: String?,
210
+ filename: String?,
211
+ url: String?
212
+ }
213
+ end
214
+
215
+ type payment =
216
+ {
217
+ id: String,
218
+ billing_reason: WhopSDK::Models::billing_reasons?,
219
+ card_brand: WhopSDK::Models::card_brands?,
220
+ :card_last4 => String?,
221
+ created_at: Time,
222
+ currency: WhopSDK::Models::currency?,
223
+ dispute_alerted_at: Time?,
224
+ member: WhopSDK::Dispute::Payment::Member?,
225
+ membership: WhopSDK::Dispute::Payment::Membership?,
226
+ paid_at: Time?,
227
+ payment_method_type: WhopSDK::Models::payment_method_types?,
228
+ subtotal: Float?,
229
+ total: Float?,
230
+ usd_total: Float?,
231
+ user: WhopSDK::Dispute::Payment::User?
232
+ }
233
+
234
+ class Payment < WhopSDK::Internal::Type::BaseModel
235
+ attr_accessor id: String
236
+
237
+ attr_accessor billing_reason: WhopSDK::Models::billing_reasons?
238
+
239
+ attr_accessor card_brand: WhopSDK::Models::card_brands?
240
+
241
+ attr_accessor card_last4: String?
242
+
243
+ attr_accessor created_at: Time
244
+
245
+ attr_accessor currency: WhopSDK::Models::currency?
246
+
247
+ attr_accessor dispute_alerted_at: Time?
248
+
249
+ attr_accessor member: WhopSDK::Dispute::Payment::Member?
250
+
251
+ attr_accessor membership: WhopSDK::Dispute::Payment::Membership?
252
+
253
+ attr_accessor paid_at: Time?
254
+
255
+ attr_accessor payment_method_type: WhopSDK::Models::payment_method_types?
256
+
257
+ attr_accessor subtotal: Float?
258
+
259
+ attr_accessor total: Float?
260
+
261
+ attr_accessor usd_total: Float?
262
+
263
+ attr_accessor user: WhopSDK::Dispute::Payment::User?
264
+
265
+ def initialize: (
266
+ id: String,
267
+ billing_reason: WhopSDK::Models::billing_reasons?,
268
+ card_brand: WhopSDK::Models::card_brands?,
269
+ card_last4: String?,
270
+ created_at: Time,
271
+ currency: WhopSDK::Models::currency?,
272
+ dispute_alerted_at: Time?,
273
+ member: WhopSDK::Dispute::Payment::Member?,
274
+ membership: WhopSDK::Dispute::Payment::Membership?,
275
+ paid_at: Time?,
276
+ payment_method_type: WhopSDK::Models::payment_method_types?,
277
+ subtotal: Float?,
278
+ total: Float?,
279
+ usd_total: Float?,
280
+ user: WhopSDK::Dispute::Payment::User?
281
+ ) -> void
282
+
283
+ def to_hash: -> {
284
+ id: String,
285
+ billing_reason: WhopSDK::Models::billing_reasons?,
286
+ card_brand: WhopSDK::Models::card_brands?,
287
+ :card_last4 => String?,
288
+ created_at: Time,
289
+ currency: WhopSDK::Models::currency?,
290
+ dispute_alerted_at: Time?,
291
+ member: WhopSDK::Dispute::Payment::Member?,
292
+ membership: WhopSDK::Dispute::Payment::Membership?,
293
+ paid_at: Time?,
294
+ payment_method_type: WhopSDK::Models::payment_method_types?,
295
+ subtotal: Float?,
296
+ total: Float?,
297
+ usd_total: Float?,
298
+ user: WhopSDK::Dispute::Payment::User?
299
+ }
300
+
301
+ type member = { id: String, phone: String? }
302
+
303
+ class Member < WhopSDK::Internal::Type::BaseModel
304
+ attr_accessor id: String
305
+
306
+ attr_accessor phone: String?
307
+
308
+ def initialize: (id: String, phone: String?) -> void
309
+
310
+ def to_hash: -> { id: String, phone: String? }
311
+ end
312
+
313
+ type membership =
314
+ { id: String, status: WhopSDK::Models::membership_status }
315
+
316
+ class Membership < WhopSDK::Internal::Type::BaseModel
317
+ attr_accessor id: String
318
+
319
+ attr_accessor status: WhopSDK::Models::membership_status
320
+
321
+ def initialize: (
322
+ id: String,
323
+ status: WhopSDK::Models::membership_status
324
+ ) -> void
325
+
326
+ def to_hash: -> {
327
+ id: String,
328
+ status: WhopSDK::Models::membership_status
329
+ }
330
+ end
331
+
332
+ type user =
333
+ { id: String, email: String?, name: String?, username: String }
334
+
335
+ class User < WhopSDK::Internal::Type::BaseModel
336
+ attr_accessor id: String
337
+
338
+ attr_accessor email: String?
339
+
340
+ attr_accessor name: String?
341
+
342
+ attr_accessor username: String
343
+
344
+ def initialize: (
345
+ id: String,
346
+ email: String?,
347
+ name: String?,
348
+ username: String
349
+ ) -> void
350
+
351
+ def to_hash: -> {
352
+ id: String,
353
+ email: String?,
354
+ name: String?,
355
+ username: String
356
+ }
357
+ end
358
+ end
359
+
360
+ type plan = { id: String }
361
+
362
+ class Plan < WhopSDK::Internal::Type::BaseModel
363
+ attr_accessor id: String
364
+
365
+ def initialize: (id: String) -> void
366
+
367
+ def to_hash: -> { id: String }
368
+ end
369
+
370
+ type product = { id: String, title: String }
371
+
372
+ class Product < WhopSDK::Internal::Type::BaseModel
373
+ attr_accessor id: String
374
+
375
+ attr_accessor title: String
376
+
377
+ def initialize: (id: String, title: String) -> void
378
+
379
+ def to_hash: -> { id: String, title: String }
380
+ end
381
+
382
+ type refund_policy_attachment =
383
+ { id: String, content_type: String?, filename: String?, url: String? }
384
+
385
+ class RefundPolicyAttachment < WhopSDK::Internal::Type::BaseModel
386
+ attr_accessor id: String
387
+
388
+ attr_accessor content_type: String?
389
+
390
+ attr_accessor filename: String?
391
+
392
+ attr_accessor url: String?
393
+
394
+ def initialize: (
395
+ id: String,
396
+ content_type: String?,
397
+ filename: String?,
398
+ url: String?
399
+ ) -> void
400
+
401
+ def to_hash: -> {
402
+ id: String,
403
+ content_type: String?,
404
+ filename: String?,
405
+ url: String?
406
+ }
407
+ end
408
+
409
+ type uncategorized_attachment =
410
+ { id: String, content_type: String?, filename: String?, url: String? }
411
+
412
+ class UncategorizedAttachment < WhopSDK::Internal::Type::BaseModel
413
+ attr_accessor id: String
414
+
415
+ attr_accessor content_type: String?
416
+
417
+ attr_accessor filename: String?
418
+
419
+ attr_accessor url: String?
420
+
421
+ def initialize: (
422
+ id: String,
423
+ content_type: String?,
424
+ filename: String?,
425
+ url: String?
426
+ ) -> void
427
+
428
+ def to_hash: -> {
429
+ id: String,
430
+ content_type: String?,
431
+ filename: String?,
432
+ url: String?
433
+ }
434
+ end
435
+ end
436
+ end
437
+ end
@@ -0,0 +1,40 @@
1
+ module WhopSDK
2
+ module Models
3
+ type dispute_created_webhook_event =
4
+ {
5
+ id: String,
6
+ api_version: :v1,
7
+ data: WhopSDK::Dispute,
8
+ timestamp: Time,
9
+ type: :"dispute.created"
10
+ }
11
+
12
+ class DisputeCreatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
13
+ attr_accessor id: String
14
+
15
+ attr_accessor api_version: :v1
16
+
17
+ attr_accessor data: WhopSDK::Dispute
18
+
19
+ attr_accessor timestamp: Time
20
+
21
+ attr_accessor type: :"dispute.created"
22
+
23
+ def initialize: (
24
+ id: String,
25
+ data: WhopSDK::Dispute,
26
+ timestamp: Time,
27
+ ?api_version: :v1,
28
+ ?type: :"dispute.created"
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ id: String,
33
+ api_version: :v1,
34
+ data: WhopSDK::Dispute,
35
+ timestamp: Time,
36
+ type: :"dispute.created"
37
+ }
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,51 @@
1
+ module WhopSDK
2
+ module Models
3
+ type dispute_list_params =
4
+ {
5
+ company_id: String,
6
+ after: String?,
7
+ before: String?,
8
+ direction: WhopSDK::Models::direction?,
9
+ first: Integer?,
10
+ last: Integer?
11
+ }
12
+ & WhopSDK::Internal::Type::request_parameters
13
+
14
+ class DisputeListParams < WhopSDK::Internal::Type::BaseModel
15
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
16
+ include WhopSDK::Internal::Type::RequestParameters
17
+
18
+ attr_accessor company_id: String
19
+
20
+ attr_accessor after: String?
21
+
22
+ attr_accessor before: String?
23
+
24
+ attr_accessor direction: WhopSDK::Models::direction?
25
+
26
+ attr_accessor first: Integer?
27
+
28
+ attr_accessor last: Integer?
29
+
30
+ def initialize: (
31
+ company_id: String,
32
+ ?after: String?,
33
+ ?before: String?,
34
+ ?direction: WhopSDK::Models::direction?,
35
+ ?first: Integer?,
36
+ ?last: Integer?,
37
+ ?request_options: WhopSDK::request_opts
38
+ ) -> void
39
+
40
+ def to_hash: -> {
41
+ company_id: String,
42
+ after: String?,
43
+ before: String?,
44
+ direction: WhopSDK::Models::direction?,
45
+ first: Integer?,
46
+ last: Integer?,
47
+ request_options: WhopSDK::RequestOptions
48
+ }
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,124 @@
1
+ module WhopSDK
2
+ module Models
3
+ type dispute_list_response =
4
+ {
5
+ id: String,
6
+ amount: Float,
7
+ company: WhopSDK::Models::DisputeListResponse::Company?,
8
+ created_at: Time?,
9
+ currency: WhopSDK::Models::currency,
10
+ editable: bool?,
11
+ needs_response_by: Time?,
12
+ payment: WhopSDK::Models::DisputeListResponse::Payment?,
13
+ plan: WhopSDK::Models::DisputeListResponse::Plan?,
14
+ product: WhopSDK::Models::DisputeListResponse::Product?,
15
+ reason: String?,
16
+ status: WhopSDK::Models::dispute_statuses,
17
+ visa_rdr: bool
18
+ }
19
+
20
+ class DisputeListResponse < WhopSDK::Internal::Type::BaseModel
21
+ attr_accessor id: String
22
+
23
+ attr_accessor amount: Float
24
+
25
+ attr_accessor company: WhopSDK::Models::DisputeListResponse::Company?
26
+
27
+ attr_accessor created_at: Time?
28
+
29
+ attr_accessor currency: WhopSDK::Models::currency
30
+
31
+ attr_accessor editable: bool?
32
+
33
+ attr_accessor needs_response_by: Time?
34
+
35
+ attr_accessor payment: WhopSDK::Models::DisputeListResponse::Payment?
36
+
37
+ attr_accessor plan: WhopSDK::Models::DisputeListResponse::Plan?
38
+
39
+ attr_accessor product: WhopSDK::Models::DisputeListResponse::Product?
40
+
41
+ attr_accessor reason: String?
42
+
43
+ attr_accessor status: WhopSDK::Models::dispute_statuses
44
+
45
+ attr_accessor visa_rdr: bool
46
+
47
+ def initialize: (
48
+ id: String,
49
+ amount: Float,
50
+ company: WhopSDK::Models::DisputeListResponse::Company?,
51
+ created_at: Time?,
52
+ currency: WhopSDK::Models::currency,
53
+ editable: bool?,
54
+ needs_response_by: Time?,
55
+ payment: WhopSDK::Models::DisputeListResponse::Payment?,
56
+ plan: WhopSDK::Models::DisputeListResponse::Plan?,
57
+ product: WhopSDK::Models::DisputeListResponse::Product?,
58
+ reason: String?,
59
+ status: WhopSDK::Models::dispute_statuses,
60
+ visa_rdr: bool
61
+ ) -> void
62
+
63
+ def to_hash: -> {
64
+ id: String,
65
+ amount: Float,
66
+ company: WhopSDK::Models::DisputeListResponse::Company?,
67
+ created_at: Time?,
68
+ currency: WhopSDK::Models::currency,
69
+ editable: bool?,
70
+ needs_response_by: Time?,
71
+ payment: WhopSDK::Models::DisputeListResponse::Payment?,
72
+ plan: WhopSDK::Models::DisputeListResponse::Plan?,
73
+ product: WhopSDK::Models::DisputeListResponse::Product?,
74
+ reason: String?,
75
+ status: WhopSDK::Models::dispute_statuses,
76
+ visa_rdr: bool
77
+ }
78
+
79
+ type company = { id: String, title: String }
80
+
81
+ class Company < WhopSDK::Internal::Type::BaseModel
82
+ attr_accessor id: String
83
+
84
+ attr_accessor title: String
85
+
86
+ def initialize: (id: String, title: String) -> void
87
+
88
+ def to_hash: -> { id: String, title: String }
89
+ end
90
+
91
+ type payment = { id: String }
92
+
93
+ class Payment < WhopSDK::Internal::Type::BaseModel
94
+ attr_accessor id: String
95
+
96
+ def initialize: (id: String) -> void
97
+
98
+ def to_hash: -> { id: String }
99
+ end
100
+
101
+ type plan = { id: String }
102
+
103
+ class Plan < WhopSDK::Internal::Type::BaseModel
104
+ attr_accessor id: String
105
+
106
+ def initialize: (id: String) -> void
107
+
108
+ def to_hash: -> { id: String }
109
+ end
110
+
111
+ type product = { id: String, title: String }
112
+
113
+ class Product < WhopSDK::Internal::Type::BaseModel
114
+ attr_accessor id: String
115
+
116
+ attr_accessor title: String
117
+
118
+ def initialize: (id: String, title: String) -> void
119
+
120
+ def to_hash: -> { id: String, title: String }
121
+ end
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,15 @@
1
+ module WhopSDK
2
+ module Models
3
+ type dispute_retrieve_params =
4
+ { } & WhopSDK::Internal::Type::request_parameters
5
+
6
+ class DisputeRetrieveParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: WhopSDK::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: WhopSDK::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,30 @@
1
+ module WhopSDK
2
+ module Models
3
+ type dispute_statuses =
4
+ :warning_needs_response
5
+ | :warning_under_review
6
+ | :warning_closed
7
+ | :needs_response
8
+ | :under_review
9
+ | :won
10
+ | :lost
11
+ | :closed
12
+ | :other
13
+
14
+ module DisputeStatuses
15
+ extend WhopSDK::Internal::Type::Enum
16
+
17
+ WARNING_NEEDS_RESPONSE: :warning_needs_response
18
+ WARNING_UNDER_REVIEW: :warning_under_review
19
+ WARNING_CLOSED: :warning_closed
20
+ NEEDS_RESPONSE: :needs_response
21
+ UNDER_REVIEW: :under_review
22
+ WON: :won
23
+ LOST: :lost
24
+ CLOSED: :closed
25
+ OTHER: :other
26
+
27
+ def self?.values: -> ::Array[WhopSDK::Models::dispute_statuses]
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,15 @@
1
+ module WhopSDK
2
+ module Models
3
+ type dispute_submit_evidence_params =
4
+ { } & WhopSDK::Internal::Type::request_parameters
5
+
6
+ class DisputeSubmitEvidenceParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: WhopSDK::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: WhopSDK::RequestOptions }
13
+ end
14
+ end
15
+ end