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,342 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Disputes#update_evidence
6
+ class DisputeUpdateEvidenceParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute access_activity_log
11
+ # An IP access log for the user from Whop.
12
+ #
13
+ # @return [String, nil]
14
+ optional :access_activity_log, String, nil?: true
15
+
16
+ # @!attribute billing_address
17
+ # The billing address of the user from their payment details.
18
+ #
19
+ # @return [String, nil]
20
+ optional :billing_address, String, nil?: true
21
+
22
+ # @!attribute cancellation_policy_attachment
23
+ # A file containing the cancellation policy from the company.
24
+ #
25
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID, nil]
26
+ optional :cancellation_policy_attachment,
27
+ union: -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment },
28
+ nil?: true
29
+
30
+ # @!attribute cancellation_policy_disclosure
31
+ # A cancellation policy disclosure from the company.
32
+ #
33
+ # @return [String, nil]
34
+ optional :cancellation_policy_disclosure, String, nil?: true
35
+
36
+ # @!attribute customer_communication_attachment
37
+ # A file containing the customer communication from the company (An image).
38
+ #
39
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID, nil]
40
+ optional :customer_communication_attachment,
41
+ union: -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment },
42
+ nil?: true
43
+
44
+ # @!attribute customer_email_address
45
+ # The email of the customer from their payment details.
46
+ #
47
+ # @return [String, nil]
48
+ optional :customer_email_address, String, nil?: true
49
+
50
+ # @!attribute customer_name
51
+ # The name of the customer from their payment details.
52
+ #
53
+ # @return [String, nil]
54
+ optional :customer_name, String, nil?: true
55
+
56
+ # @!attribute notes
57
+ # Additional notes the company chooses to submit regarding the dispute.
58
+ #
59
+ # @return [String, nil]
60
+ optional :notes, String, nil?: true
61
+
62
+ # @!attribute product_description
63
+ # The description of the product from the company.
64
+ #
65
+ # @return [String, nil]
66
+ optional :product_description, String, nil?: true
67
+
68
+ # @!attribute refund_policy_attachment
69
+ # A file containing the refund policy from the company.
70
+ #
71
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID, nil]
72
+ optional :refund_policy_attachment,
73
+ union: -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment },
74
+ nil?: true
75
+
76
+ # @!attribute refund_policy_disclosure
77
+ # A refund policy disclosure from the company.
78
+ #
79
+ # @return [String, nil]
80
+ optional :refund_policy_disclosure, String, nil?: true
81
+
82
+ # @!attribute refund_refusal_explanation
83
+ # A description on why the refund is being refused by the company.
84
+ #
85
+ # @return [String, nil]
86
+ optional :refund_refusal_explanation, String, nil?: true
87
+
88
+ # @!attribute service_date
89
+ # When the product was delivered by the company.
90
+ #
91
+ # @return [String, nil]
92
+ optional :service_date, String, nil?: true
93
+
94
+ # @!attribute uncategorized_attachment
95
+ # A file that does not fit in the other categories.
96
+ #
97
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID, nil]
98
+ optional :uncategorized_attachment,
99
+ union: -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment },
100
+ nil?: true
101
+
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: {})
103
+ # @param access_activity_log [String, nil] An IP access log for the user from Whop.
104
+ #
105
+ # @param billing_address [String, nil] The billing address of the user from their payment details.
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.
108
+ #
109
+ # @param cancellation_policy_disclosure [String, nil] A cancellation policy disclosure from the company.
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).
112
+ #
113
+ # @param customer_email_address [String, nil] The email of the customer from their payment details.
114
+ #
115
+ # @param customer_name [String, nil] The name of the customer from their payment details.
116
+ #
117
+ # @param notes [String, nil] Additional notes the company chooses to submit regarding the dispute.
118
+ #
119
+ # @param product_description [String, nil] The description of the product from the company.
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.
122
+ #
123
+ # @param refund_policy_disclosure [String, nil] A refund policy disclosure from the company.
124
+ #
125
+ # @param refund_refusal_explanation [String, nil] A description on why the refund is being refused by the company.
126
+ #
127
+ # @param service_date [String, nil] When the product was delivered by the company.
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.
130
+ #
131
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
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)]
183
+ end
184
+
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)]
235
+ end
236
+
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)]
287
+ end
288
+
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)]
339
+ end
340
+ end
341
+ end
342
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class DisputeUpdatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # A unique ID for every single webhook request
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute api_version
13
+ # The API version for this webhook
14
+ #
15
+ # @return [Symbol, :v1]
16
+ required :api_version, const: :v1
17
+
18
+ # @!attribute data
19
+ # An object representing a dispute against a company.
20
+ #
21
+ # @return [WhopSDK::Models::Dispute]
22
+ required :data, -> { WhopSDK::Dispute }
23
+
24
+ # @!attribute timestamp
25
+ # The timestamp in ISO 8601 format that the webhook was sent at on the server
26
+ #
27
+ # @return [Time]
28
+ required :timestamp, Time
29
+
30
+ # @!attribute type
31
+ # The webhook event type
32
+ #
33
+ # @return [Symbol, :"dispute.updated"]
34
+ required :type, const: :"dispute.updated"
35
+
36
+ # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"dispute.updated")
37
+ # @param id [String] A unique ID for every single webhook request
38
+ #
39
+ # @param data [WhopSDK::Models::Dispute] An object representing a dispute against a company.
40
+ #
41
+ # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
+ #
43
+ # @param api_version [Symbol, :v1] The API version for this webhook
44
+ #
45
+ # @param type [Symbol, :"dispute.updated"] The webhook event type
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The type of embed for a lesson
6
+ module EmbedType
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ YOUTUBE = :youtube
10
+ LOOM = :loom
11
+
12
+ # @!method self.values
13
+ # @return [Array<Symbol>]
14
+ end
15
+ end
16
+ end
@@ -30,7 +30,7 @@ module WhopSDK
30
30
  required :plan, -> { WhopSDK::Entry::Plan }, nil?: true
31
31
 
32
32
  # @!attribute product
33
- # The access pass tied to this entry, if there is one.
33
+ # The product tied to this entry, if there is one.
34
34
  #
35
35
  # @return [WhopSDK::Models::Entry::Product, nil]
36
36
  required :product, -> { WhopSDK::Entry::Product }, nil?: true
@@ -58,7 +58,7 @@ module WhopSDK
58
58
  #
59
59
  # @param plan [WhopSDK::Models::Entry::Plan, nil] The waitlist plan the entry if for.
60
60
  #
61
- # @param product [WhopSDK::Models::Entry::Product, nil] The access pass tied to this entry, if there is one.
61
+ # @param product [WhopSDK::Models::Entry::Product, nil] The product tied to this entry, if there is one.
62
62
  #
63
63
  # @param status [Symbol, WhopSDK::Models::EntryStatus] The status of the entry.
64
64
  #
@@ -122,7 +122,7 @@ module WhopSDK
122
122
  required :title, String
123
123
 
124
124
  # @!method initialize(id:, title:)
125
- # The access pass tied to this entry, if there is one.
125
+ # The product tied to this entry, if there is one.
126
126
  #
127
127
  # @param id [String] The internal ID of the public product.
128
128
  #
@@ -23,7 +23,7 @@ module WhopSDK
23
23
  required :plan, -> { WhopSDK::Models::EntryListResponse::Plan }, nil?: true
24
24
 
25
25
  # @!attribute product
26
- # The access pass tied to this entry, if there is one.
26
+ # The product tied to this entry, if there is one.
27
27
  #
28
28
  # @return [WhopSDK::Models::EntryListResponse::Product, nil]
29
29
  required :product, -> { WhopSDK::Models::EntryListResponse::Product }, nil?: true
@@ -49,7 +49,7 @@ module WhopSDK
49
49
  #
50
50
  # @param plan [WhopSDK::Models::EntryListResponse::Plan, nil] The waitlist plan the entry if for.
51
51
  #
52
- # @param product [WhopSDK::Models::EntryListResponse::Product, nil] The access pass tied to this entry, if there is one.
52
+ # @param product [WhopSDK::Models::EntryListResponse::Product, nil] The product tied to this entry, if there is one.
53
53
  #
54
54
  # @param status [Symbol, WhopSDK::Models::EntryStatus] The status of the entry.
55
55
  #
@@ -84,7 +84,7 @@ module WhopSDK
84
84
  required :title, String
85
85
 
86
86
  # @!method initialize(id:, title:)
87
- # The access pass tied to this entry, if there is one.
87
+ # The product tied to this entry, if there is one.
88
88
  #
89
89
  # @param id [String] The internal ID of the public product.
90
90
  #
@@ -46,10 +46,9 @@ module WhopSDK
46
46
  required :order, String, nil?: true
47
47
 
48
48
  # @!attribute products
49
- # The access passes that are associated with this experience. This should not be
50
- # used unless you are trying to list all access passes the experience has, for
51
- # some reason. You probably don't want to use this though and should be using
52
- # accessPass.
49
+ # The products that this experience is attached to. This defines which set of
50
+ # customers have access and can view this experience. If empty, this experience is
51
+ # only visible to authorized users of the company
53
52
  #
54
53
  # @return [Array<WhopSDK::Models::Experience::Product>]
55
54
  required :products, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Experience::Product] }
@@ -74,7 +73,7 @@ module WhopSDK
74
73
  #
75
74
  # @param order [String, nil] The order of the experience in the section
76
75
  #
77
- # @param products [Array<WhopSDK::Models::Experience::Product>] The access passes that are associated with this experience. This should not be u
76
+ # @param products [Array<WhopSDK::Models::Experience::Product>] The products that this experience is attached to. This defines which set of cust
78
77
 
79
78
  # @see WhopSDK::Models::Experience#app
80
79
  class App < WhopSDK::Internal::Type::BaseModel
@@ -197,7 +196,7 @@ module WhopSDK
197
196
  required :title, String
198
197
 
199
198
  # @!method initialize(id:, route:, title:)
200
- # An object representing a (sanitized) access pass.
199
+ # Represents a product on whop. Use products to sell anything on the platform.
201
200
  #
202
201
  # @param id [String] The internal ID of the public product.
203
202
  #
@@ -4,7 +4,7 @@ module WhopSDK
4
4
  module Models
5
5
  class ForumPost < WhopSDK::Internal::Type::BaseModel
6
6
  # @!attribute id
7
- # The unique identifier for the entity
7
+ # The unique identifier of the resource.
8
8
  #
9
9
  # @return [String]
10
10
  required :id, String
@@ -84,7 +84,7 @@ module WhopSDK
84
84
  # @!method initialize(id:, comment_count:, content:, created_at:, is_edited:, is_pinned:, is_poster_admin:, like_count:, parent_id:, title:, updated_at:, user:, view_count:)
85
85
  # Represents a post in forum
86
86
  #
87
- # @param id [String] The unique identifier for the entity
87
+ # @param id [String] The unique identifier of the resource.
88
88
  #
89
89
  # @param comment_count [Integer] The amount of comments on this post
90
90
  #
@@ -5,7 +5,7 @@ module WhopSDK
5
5
  # @see WhopSDK::Resources::ForumPosts#list
6
6
  class ForumPostListResponse < WhopSDK::Internal::Type::BaseModel
7
7
  # @!attribute id
8
- # The unique identifier for the entity
8
+ # The unique identifier of the resource.
9
9
  #
10
10
  # @return [String]
11
11
  required :id, String
@@ -85,7 +85,7 @@ module WhopSDK
85
85
  # @!method initialize(id:, comment_count:, content:, created_at:, is_edited:, is_pinned:, is_poster_admin:, like_count:, parent_id:, title:, updated_at:, user:, view_count:)
86
86
  # Represents a post in forum
87
87
  #
88
- # @param id [String] The unique identifier for the entity
88
+ # @param id [String] The unique identifier of the resource.
89
89
  #
90
90
  # @param comment_count [Integer] The amount of comments on this post
91
91
  #
@@ -2,7 +2,7 @@
2
2
 
3
3
  module WhopSDK
4
4
  module Models
5
- # The different statuses of the global affiliate program for an access pass.
5
+ # The different statuses of the global affiliate program for a product.
6
6
  module GlobalAffiliateStatus
7
7
  extend WhopSDK::Internal::Type::Enum
8
8
 
@@ -152,7 +152,7 @@ module WhopSDK
152
152
  optional :internal_notes, String, nil?: true
153
153
 
154
154
  # @!attribute plan_type
155
- # The type of plan that can be attached to an access pass
155
+ # The type of plan that can be attached to a product
156
156
  #
157
157
  # @return [Symbol, WhopSDK::Models::PlanType, nil]
158
158
  optional :plan_type, enum: -> { WhopSDK::PlanType }, nil?: true
@@ -212,7 +212,7 @@ module WhopSDK
212
212
  #
213
213
  # @param internal_notes [String, nil] A personal description or notes section for the business.
214
214
  #
215
- # @param plan_type [Symbol, WhopSDK::Models::PlanType, nil] The type of plan that can be attached to an access pass
215
+ # @param plan_type [Symbol, WhopSDK::Models::PlanType, nil] The type of plan that can be attached to a product
216
216
  #
217
217
  # @param release_method [Symbol, WhopSDK::Models::ReleaseMethod, nil] The methods of how a plan can be released.
218
218
  #
@@ -25,18 +25,20 @@ module WhopSDK
25
25
  # @return [String, nil]
26
26
  optional :before, String, nil?: true
27
27
 
28
+ # @!attribute collection_methods
29
+ # Filter invoices by their collection method
30
+ #
31
+ # @return [Array<Symbol, WhopSDK::Models::CollectionMethod>, nil]
32
+ optional :collection_methods,
33
+ -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::CollectionMethod] },
34
+ nil?: true
35
+
28
36
  # @!attribute direction
29
37
  # The direction of the sort.
30
38
  #
31
39
  # @return [Symbol, WhopSDK::Models::Direction, nil]
32
40
  optional :direction, enum: -> { WhopSDK::Direction }, nil?: true
33
41
 
34
- # @!attribute filters
35
- # The filters to apply to the invoices
36
- #
37
- # @return [WhopSDK::Models::InvoiceListParams::Filters, nil]
38
- optional :filters, -> { WhopSDK::InvoiceListParams::Filters }, nil?: true
39
-
40
42
  # @!attribute first
41
43
  # Returns the first _n_ elements from the list.
42
44
  #
@@ -55,16 +57,28 @@ module WhopSDK
55
57
  # @return [Symbol, WhopSDK::Models::InvoiceListParams::Order, nil]
56
58
  optional :order, enum: -> { WhopSDK::InvoiceListParams::Order }, nil?: true
57
59
 
58
- # @!method initialize(company_id:, after: nil, before: nil, direction: nil, filters: nil, first: nil, last: nil, order: nil, request_options: {})
60
+ # @!attribute product_ids
61
+ # Return only invoices created for these specific product ids
62
+ #
63
+ # @return [Array<String>, nil]
64
+ optional :product_ids, WhopSDK::Internal::Type::ArrayOf[String], nil?: true
65
+
66
+ # @!attribute statuses
67
+ # The statuses to filter the invoices by
68
+ #
69
+ # @return [Array<Symbol, WhopSDK::Models::InvoiceStatus>, nil]
70
+ optional :statuses, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::InvoiceStatus] }, nil?: true
71
+
72
+ # @!method initialize(company_id:, after: nil, before: nil, collection_methods: nil, direction: nil, first: nil, last: nil, order: nil, product_ids: nil, statuses: nil, request_options: {})
59
73
  # @param company_id [String] The ID of the company to list invoices for
60
74
  #
61
75
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
62
76
  #
63
77
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
64
78
  #
65
- # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
79
+ # @param collection_methods [Array<Symbol, WhopSDK::Models::CollectionMethod>, nil] Filter invoices by their collection method
66
80
  #
67
- # @param filters [WhopSDK::Models::InvoiceListParams::Filters, nil] The filters to apply to the invoices
81
+ # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
68
82
  #
69
83
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
70
84
  #
@@ -72,39 +86,12 @@ module WhopSDK
72
86
  #
73
87
  # @param order [Symbol, WhopSDK::Models::InvoiceListParams::Order, nil] Which columns can be used to sort.
74
88
  #
89
+ # @param product_ids [Array<String>, nil] Return only invoices created for these specific product ids
90
+ #
91
+ # @param statuses [Array<Symbol, WhopSDK::Models::InvoiceStatus>, nil] The statuses to filter the invoices by
92
+ #
75
93
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
76
94
 
77
- class Filters < WhopSDK::Internal::Type::BaseModel
78
- # @!attribute access_pass_ids
79
- # The access pass IDs to filter the invoices by
80
- #
81
- # @return [Array<String>, nil]
82
- optional :access_pass_ids, WhopSDK::Internal::Type::ArrayOf[String], nil?: true
83
-
84
- # @!attribute collection_methods
85
- # The collection methods to filter the invoices by
86
- #
87
- # @return [Array<Symbol, WhopSDK::Models::CollectionMethod>, nil]
88
- optional :collection_methods,
89
- -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::CollectionMethod] },
90
- nil?: true
91
-
92
- # @!attribute statuses
93
- # The statuses to filter the invoices by
94
- #
95
- # @return [Array<Symbol, WhopSDK::Models::InvoiceStatus>, nil]
96
- optional :statuses, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::InvoiceStatus] }, nil?: true
97
-
98
- # @!method initialize(access_pass_ids: nil, collection_methods: nil, statuses: nil)
99
- # The filters to apply to the invoices
100
- #
101
- # @param access_pass_ids [Array<String>, nil] The access pass IDs to filter the invoices by
102
- #
103
- # @param collection_methods [Array<Symbol, WhopSDK::Models::CollectionMethod>, nil] The collection methods to filter the invoices by
104
- #
105
- # @param statuses [Array<Symbol, WhopSDK::Models::InvoiceStatus>, nil] The statuses to filter the invoices by
106
- end
107
-
108
95
  # Which columns can be used to sort.
109
96
  module Order
110
97
  extend WhopSDK::Internal::Type::Enum