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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -0
- data/README.md +4 -7
- data/lib/whop_sdk/client.rb +21 -6
- data/lib/whop_sdk/internal/transport/base_client.rb +7 -1
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +6 -2
- data/lib/whop_sdk/models/access_level.rb +1 -1
- data/lib/whop_sdk/models/access_pass_type.rb +2 -1
- data/lib/whop_sdk/models/access_token_create_params.rb +67 -0
- data/lib/whop_sdk/models/access_token_create_response.rb +27 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +4 -4
- data/lib/whop_sdk/models/company.rb +1 -0
- data/lib/whop_sdk/models/course.rb +18 -1
- data/lib/whop_sdk/models/course_create_params.rb +20 -1
- data/lib/whop_sdk/models/course_lesson_create_params.rb +77 -1
- data/lib/whop_sdk/models/course_lesson_list_response.rb +43 -1
- data/lib/whop_sdk/models/course_lesson_update_params.rb +77 -1
- data/lib/whop_sdk/models/course_list_response.rb +18 -1
- data/lib/whop_sdk/models/course_update_params.rb +19 -1
- data/lib/whop_sdk/models/course_visibilities.rb +17 -0
- data/lib/whop_sdk/models/dispute.rb +672 -0
- data/lib/whop_sdk/models/dispute_created_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/dispute_list_params.rb +62 -0
- data/lib/whop_sdk/models/dispute_list_response.rb +187 -0
- data/lib/whop_sdk/models/dispute_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dispute_statuses.rb +23 -0
- data/lib/whop_sdk/models/dispute_submit_evidence_params.rb +14 -0
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +342 -0
- data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/embed_type.rb +16 -0
- data/lib/whop_sdk/models/entry.rb +3 -3
- data/lib/whop_sdk/models/entry_list_response.rb +3 -3
- data/lib/whop_sdk/models/experience.rb +5 -6
- data/lib/whop_sdk/models/forum_post.rb +2 -2
- data/lib/whop_sdk/models/forum_post_list_response.rb +2 -2
- data/lib/whop_sdk/models/global_affiliate_status.rb +1 -1
- data/lib/whop_sdk/models/invoice_create_params.rb +2 -2
- data/lib/whop_sdk/models/invoice_list_params.rb +27 -40
- data/lib/whop_sdk/models/lesson.rb +43 -1
- data/lib/whop_sdk/models/member_list_params.rb +11 -11
- data/lib/whop_sdk/models/member_list_response.rb +3 -3
- data/lib/whop_sdk/models/member_retrieve_response.rb +3 -3
- data/lib/whop_sdk/models/membership_list_params.rb +9 -9
- data/lib/whop_sdk/models/message.rb +2 -2
- data/lib/whop_sdk/models/message_list_response.rb +2 -2
- data/lib/whop_sdk/models/notification_create_params.rb +88 -0
- data/lib/whop_sdk/models/notification_create_response.rb +19 -0
- data/lib/whop_sdk/models/payment.rb +3 -3
- data/lib/whop_sdk/models/payment_list_response.rb +3 -3
- data/lib/whop_sdk/models/plan.rb +6 -4
- data/lib/whop_sdk/models/plan_create_params.rb +2 -2
- data/lib/whop_sdk/models/plan_list_response.rb +6 -4
- data/lib/whop_sdk/models/plan_type.rb +1 -1
- data/lib/whop_sdk/models/product.rb +1 -1
- data/lib/whop_sdk/models/product_create_params.rb +6 -6
- data/lib/whop_sdk/models/product_list_item.rb +1 -1
- data/lib/whop_sdk/models/product_update_params.rb +4 -4
- data/lib/whop_sdk/models/promo_code.rb +3 -3
- data/lib/whop_sdk/models/promo_code_list_response.rb +3 -3
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +5 -1
- data/lib/whop_sdk/models.rb +24 -0
- data/lib/whop_sdk/resources/access_tokens.rb +46 -0
- data/lib/whop_sdk/resources/app_builds.rb +4 -2
- data/lib/whop_sdk/resources/apps.rb +3 -2
- data/lib/whop_sdk/resources/authorized_users.rb +2 -1
- data/lib/whop_sdk/resources/chat_channels.rb +9 -2
- data/lib/whop_sdk/resources/checkout_configurations.rb +2 -1
- data/lib/whop_sdk/resources/companies.rb +2 -1
- data/lib/whop_sdk/resources/course_chapters.rb +5 -3
- data/lib/whop_sdk/resources/course_lesson_interactions.rb +2 -1
- data/lib/whop_sdk/resources/course_lessons.rb +19 -5
- data/lib/whop_sdk/resources/course_students.rb +2 -1
- data/lib/whop_sdk/resources/courses.rb +15 -5
- data/lib/whop_sdk/resources/disputes.rb +182 -0
- data/lib/whop_sdk/resources/entries.rb +6 -3
- data/lib/whop_sdk/resources/experiences.rb +8 -6
- data/lib/whop_sdk/resources/forum_posts.rb +3 -2
- data/lib/whop_sdk/resources/forums.rb +3 -2
- data/lib/whop_sdk/resources/invoices.rb +11 -5
- data/lib/whop_sdk/resources/ledger_accounts.rb +6 -2
- data/lib/whop_sdk/resources/members.rb +6 -5
- data/lib/whop_sdk/resources/memberships.rb +10 -8
- data/lib/whop_sdk/resources/messages.rb +3 -2
- data/lib/whop_sdk/resources/notifications.rb +53 -0
- data/lib/whop_sdk/resources/payments.rb +7 -4
- data/lib/whop_sdk/resources/plans.rb +6 -4
- data/lib/whop_sdk/resources/products.rb +9 -7
- data/lib/whop_sdk/resources/promo_codes.rb +4 -2
- data/lib/whop_sdk/resources/reactions.rb +2 -1
- data/lib/whop_sdk/resources/reviews.rb +2 -1
- data/lib/whop_sdk/resources/shipments.rb +2 -1
- data/lib/whop_sdk/resources/support_channels.rb +2 -1
- data/lib/whop_sdk/resources/transfers.rb +2 -1
- data/lib/whop_sdk/resources/users.rb +9 -3
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +19 -0
- data/manifest.yaml +1 -0
- data/rbi/whop_sdk/client.rbi +14 -2
- data/rbi/whop_sdk/internal/transport/base_client.rbi +5 -0
- data/rbi/whop_sdk/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/whop_sdk/internal/type/base_model.rbi +8 -4
- data/rbi/whop_sdk/models/access_level.rbi +1 -1
- data/rbi/whop_sdk/models/access_pass_type.rbi +2 -1
- data/rbi/whop_sdk/models/access_token_create_params.rbi +126 -0
- data/rbi/whop_sdk/models/access_token_create_response.rbi +37 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +4 -4
- data/rbi/whop_sdk/models/company.rbi +2 -0
- data/rbi/whop_sdk/models/course.rbi +21 -3
- data/rbi/whop_sdk/models/course_create_params.rbi +22 -0
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +126 -0
- data/rbi/whop_sdk/models/course_lesson_list_response.rbi +68 -0
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +126 -0
- data/rbi/whop_sdk/models/course_list_response.rbi +21 -3
- data/rbi/whop_sdk/models/course_update_params.rbi +20 -0
- data/rbi/whop_sdk/models/course_visibilities.rbi +23 -0
- data/rbi/whop_sdk/models/dispute.rbi +938 -0
- data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/dispute_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/dispute_list_response.rbi +287 -0
- data/rbi/whop_sdk/models/dispute_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dispute_statuses.rbi +32 -0
- data/rbi/whop_sdk/models/dispute_submit_evidence_params.rbi +30 -0
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +566 -0
- data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/embed_type.rbi +20 -0
- data/rbi/whop_sdk/models/entry.rbi +3 -3
- data/rbi/whop_sdk/models/entry_list_response.rbi +3 -3
- data/rbi/whop_sdk/models/experience.rbi +7 -9
- data/rbi/whop_sdk/models/forum_post.rbi +2 -2
- data/rbi/whop_sdk/models/forum_post_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/global_affiliate_status.rbi +1 -1
- data/rbi/whop_sdk/models/invoice_create_params.rbi +2 -2
- data/rbi/whop_sdk/models/invoice_list_params.rbi +26 -71
- data/rbi/whop_sdk/models/lesson.rbi +54 -0
- data/rbi/whop_sdk/models/member_list_params.rbi +10 -10
- data/rbi/whop_sdk/models/member_list_response.rbi +6 -6
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +6 -6
- data/rbi/whop_sdk/models/membership_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/message.rbi +2 -2
- data/rbi/whop_sdk/models/message_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/notification_create_params.rbi +113 -0
- data/rbi/whop_sdk/models/notification_create_response.rbi +31 -0
- data/rbi/whop_sdk/models/payment.rbi +3 -3
- data/rbi/whop_sdk/models/payment_list_response.rbi +3 -3
- data/rbi/whop_sdk/models/plan.rbi +6 -4
- data/rbi/whop_sdk/models/plan_create_params.rbi +2 -2
- data/rbi/whop_sdk/models/plan_list_response.rbi +6 -4
- data/rbi/whop_sdk/models/plan_type.rbi +1 -1
- data/rbi/whop_sdk/models/product.rbi +1 -1
- data/rbi/whop_sdk/models/product_create_params.rbi +6 -6
- data/rbi/whop_sdk/models/product_list_item.rbi +1 -1
- data/rbi/whop_sdk/models/product_update_params.rbi +4 -4
- data/rbi/whop_sdk/models/promo_code.rbi +3 -3
- data/rbi/whop_sdk/models/promo_code_list_response.rbi +3 -3
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/whop_sdk/models.rbi +24 -0
- data/rbi/whop_sdk/resources/access_tokens.rbi +41 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +10 -2
- data/rbi/whop_sdk/resources/apps.rbi +6 -1
- data/rbi/whop_sdk/resources/authorized_users.rbi +5 -1
- data/rbi/whop_sdk/resources/chat_channels.rbi +8 -1
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +5 -1
- data/rbi/whop_sdk/resources/companies.rbi +5 -1
- data/rbi/whop_sdk/resources/course_chapters.rbi +11 -2
- data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +5 -1
- data/rbi/whop_sdk/resources/course_lessons.rbi +41 -2
- data/rbi/whop_sdk/resources/course_students.rbi +5 -1
- data/rbi/whop_sdk/resources/courses.rbi +28 -2
- data/rbi/whop_sdk/resources/disputes.rbi +194 -0
- data/rbi/whop_sdk/resources/entries.rbi +15 -3
- data/rbi/whop_sdk/resources/experiences.rbi +14 -2
- data/rbi/whop_sdk/resources/forum_posts.rbi +6 -1
- data/rbi/whop_sdk/resources/forums.rbi +6 -1
- data/rbi/whop_sdk/resources/invoices.rbi +20 -5
- data/rbi/whop_sdk/resources/ledger_accounts.rbi +7 -2
- data/rbi/whop_sdk/resources/members.rbi +9 -5
- data/rbi/whop_sdk/resources/memberships.rbi +16 -5
- data/rbi/whop_sdk/resources/messages.rbi +6 -1
- data/rbi/whop_sdk/resources/notifications.rbi +54 -0
- data/rbi/whop_sdk/resources/payments.rbi +16 -3
- data/rbi/whop_sdk/resources/plans.rbi +12 -3
- data/rbi/whop_sdk/resources/products.rbi +15 -6
- data/rbi/whop_sdk/resources/promo_codes.rbi +10 -2
- data/rbi/whop_sdk/resources/reactions.rbi +5 -1
- data/rbi/whop_sdk/resources/reviews.rbi +5 -1
- data/rbi/whop_sdk/resources/shipments.rbi +5 -1
- data/rbi/whop_sdk/resources/support_channels.rbi +5 -1
- data/rbi/whop_sdk/resources/transfers.rbi +5 -1
- data/rbi/whop_sdk/resources/users.rbi +13 -2
- data/rbi/whop_sdk/resources/webhooks.rbi +3 -1
- data/sig/whop_sdk/client.rbs +7 -1
- data/sig/whop_sdk/internal/transport/base_client.rbs +2 -0
- data/sig/whop_sdk/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/whop_sdk/models/access_token_create_params.rbs +56 -0
- data/sig/whop_sdk/models/access_token_create_response.rbs +15 -0
- data/sig/whop_sdk/models/company.rbs +2 -0
- data/sig/whop_sdk/models/course.rbs +13 -3
- data/sig/whop_sdk/models/course_create_params.rbs +11 -1
- data/sig/whop_sdk/models/course_lesson_create_params.rbs +46 -0
- data/sig/whop_sdk/models/course_lesson_list_response.rbs +25 -0
- data/sig/whop_sdk/models/course_lesson_update_params.rbs +46 -0
- data/sig/whop_sdk/models/course_list_response.rbs +13 -3
- data/sig/whop_sdk/models/course_update_params.rbs +11 -1
- data/sig/whop_sdk/models/course_visibilities.rbs +14 -0
- data/sig/whop_sdk/models/dispute.rbs +437 -0
- data/sig/whop_sdk/models/dispute_created_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/dispute_list_params.rbs +51 -0
- data/sig/whop_sdk/models/dispute_list_response.rbs +124 -0
- data/sig/whop_sdk/models/dispute_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dispute_statuses.rbs +30 -0
- data/sig/whop_sdk/models/dispute_submit_evidence_params.rbs +15 -0
- data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +215 -0
- data/sig/whop_sdk/models/dispute_updated_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/embed_type.rbs +14 -0
- data/sig/whop_sdk/models/invoice_list_params.rbs +16 -33
- data/sig/whop_sdk/models/lesson.rbs +25 -0
- data/sig/whop_sdk/models/member_list_params.rbs +5 -5
- data/sig/whop_sdk/models/membership_list_params.rbs +5 -5
- data/sig/whop_sdk/models/notification_create_params.rbs +61 -0
- data/sig/whop_sdk/models/notification_create_response.rbs +13 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +2 -0
- data/sig/whop_sdk/models.rbs +24 -0
- data/sig/whop_sdk/resources/access_tokens.rbs +15 -0
- data/sig/whop_sdk/resources/course_lessons.rbs +6 -0
- data/sig/whop_sdk/resources/courses.rbs +4 -0
- data/sig/whop_sdk/resources/disputes.rbs +46 -0
- data/sig/whop_sdk/resources/invoices.rbs +3 -1
- data/sig/whop_sdk/resources/members.rbs +1 -1
- data/sig/whop_sdk/resources/memberships.rbs +1 -1
- data/sig/whop_sdk/resources/notifications.rbs +19 -0
- data/sig/whop_sdk/resources/webhooks.rbs +3 -1
- metadata +56 -2
|
@@ -12,7 +12,8 @@ module WhopSDK
|
|
|
12
12
|
#
|
|
13
13
|
# @overload retrieve(id, request_options: {})
|
|
14
14
|
#
|
|
15
|
-
# @param id [String]
|
|
15
|
+
# @param id [String] The ID of the entry
|
|
16
|
+
#
|
|
16
17
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
17
18
|
#
|
|
18
19
|
# @return [WhopSDK::Models::Entry]
|
|
@@ -81,7 +82,8 @@ module WhopSDK
|
|
|
81
82
|
#
|
|
82
83
|
# @overload approve(id, request_options: {})
|
|
83
84
|
#
|
|
84
|
-
# @param id [String]
|
|
85
|
+
# @param id [String] The ID of the entry to approve.
|
|
86
|
+
#
|
|
85
87
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
86
88
|
#
|
|
87
89
|
# @return [WhopSDK::Models::EntryApproveResponse]
|
|
@@ -106,7 +108,8 @@ module WhopSDK
|
|
|
106
108
|
#
|
|
107
109
|
# @overload deny(id, request_options: {})
|
|
108
110
|
#
|
|
109
|
-
# @param id [String]
|
|
111
|
+
# @param id [String] The ID of the entry
|
|
112
|
+
#
|
|
110
113
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
111
114
|
#
|
|
112
115
|
# @return [WhopSDK::Models::Entry]
|
|
@@ -37,7 +37,8 @@ module WhopSDK
|
|
|
37
37
|
#
|
|
38
38
|
# @overload retrieve(id, request_options: {})
|
|
39
39
|
#
|
|
40
|
-
# @param id [String]
|
|
40
|
+
# @param id [String] The ID of the experience
|
|
41
|
+
#
|
|
41
42
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
43
|
#
|
|
43
44
|
# @return [WhopSDK::Models::Experience]
|
|
@@ -58,7 +59,7 @@ module WhopSDK
|
|
|
58
59
|
#
|
|
59
60
|
# @overload update(id, access_level: nil, logo: nil, name: nil, order: nil, section_id: nil, request_options: {})
|
|
60
61
|
#
|
|
61
|
-
# @param id [String]
|
|
62
|
+
# @param id [String] The id of the experience to update.
|
|
62
63
|
#
|
|
63
64
|
# @param access_level [Symbol, WhopSDK::Models::ExperienceUpdateParams::AccessLevel, nil] The different access levels for experiences (PUBLIC IS NEVER USED ANYMORE).
|
|
64
65
|
#
|
|
@@ -131,7 +132,8 @@ module WhopSDK
|
|
|
131
132
|
#
|
|
132
133
|
# @overload delete(id, request_options: {})
|
|
133
134
|
#
|
|
134
|
-
# @param id [String]
|
|
135
|
+
# @param id [String] The internal ID of the experience to delete.
|
|
136
|
+
#
|
|
135
137
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
136
138
|
#
|
|
137
139
|
# @return [Boolean]
|
|
@@ -155,7 +157,7 @@ module WhopSDK
|
|
|
155
157
|
#
|
|
156
158
|
# @overload attach(id, product_id:, request_options: {})
|
|
157
159
|
#
|
|
158
|
-
# @param id [String]
|
|
160
|
+
# @param id [String] The ID of the Experience to be added to an Access Pass.
|
|
159
161
|
#
|
|
160
162
|
# @param product_id [String] The ID of the Access Pass to add the Experience to.
|
|
161
163
|
#
|
|
@@ -184,7 +186,7 @@ module WhopSDK
|
|
|
184
186
|
#
|
|
185
187
|
# @overload detach(id, product_id:, request_options: {})
|
|
186
188
|
#
|
|
187
|
-
# @param id [String]
|
|
189
|
+
# @param id [String] The ID of the Experience to be added to an Access Pass.
|
|
188
190
|
#
|
|
189
191
|
# @param product_id [String] The ID of the Access Pass to add the Experience to.
|
|
190
192
|
#
|
|
@@ -217,7 +219,7 @@ module WhopSDK
|
|
|
217
219
|
#
|
|
218
220
|
# @overload duplicate(id, name: nil, request_options: {})
|
|
219
221
|
#
|
|
220
|
-
# @param id [String]
|
|
222
|
+
# @param id [String] The ID of the experience to duplicate
|
|
221
223
|
#
|
|
222
224
|
# @param name [String, nil] The name of the new experience
|
|
223
225
|
#
|
|
@@ -58,7 +58,8 @@ module WhopSDK
|
|
|
58
58
|
#
|
|
59
59
|
# @overload retrieve(id, request_options: {})
|
|
60
60
|
#
|
|
61
|
-
# @param id [String]
|
|
61
|
+
# @param id [String] The ID of the forum post
|
|
62
|
+
#
|
|
62
63
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
63
64
|
#
|
|
64
65
|
# @return [WhopSDK::Models::ForumPost]
|
|
@@ -80,7 +81,7 @@ module WhopSDK
|
|
|
80
81
|
#
|
|
81
82
|
# @overload update(id, attachments: nil, content: nil, is_pinned: nil, title: nil, request_options: {})
|
|
82
83
|
#
|
|
83
|
-
# @param id [String]
|
|
84
|
+
# @param id [String] The ID of the forum post to update
|
|
84
85
|
#
|
|
85
86
|
# @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
|
|
86
87
|
#
|
|
@@ -11,7 +11,8 @@ module WhopSDK
|
|
|
11
11
|
#
|
|
12
12
|
# @overload retrieve(id, request_options: {})
|
|
13
13
|
#
|
|
14
|
-
# @param id [String]
|
|
14
|
+
# @param id [String] The ID of the forum to fetch, it can be an experience ID or a forum ID
|
|
15
|
+
#
|
|
15
16
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
16
17
|
#
|
|
17
18
|
# @return [WhopSDK::Models::Forum]
|
|
@@ -34,7 +35,7 @@ module WhopSDK
|
|
|
34
35
|
#
|
|
35
36
|
# @overload update(id, email_notification_preference: nil, who_can_comment: nil, who_can_post: nil, request_options: {})
|
|
36
37
|
#
|
|
37
|
-
# @param id [String]
|
|
38
|
+
# @param id [String] Experience ID (exp\_\*) or Forum external ID
|
|
38
39
|
#
|
|
39
40
|
# @param email_notification_preference [Symbol, WhopSDK::Models::EmailNotificationPreferences, nil] Email notification preference option for a forum feed
|
|
40
41
|
#
|
|
@@ -62,7 +62,8 @@ module WhopSDK
|
|
|
62
62
|
#
|
|
63
63
|
# @overload retrieve(id, request_options: {})
|
|
64
64
|
#
|
|
65
|
-
# @param id [String]
|
|
65
|
+
# @param id [String] The ID of the invoice or a token
|
|
66
|
+
#
|
|
66
67
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
67
68
|
#
|
|
68
69
|
# @return [WhopSDK::Models::Invoice]
|
|
@@ -84,7 +85,7 @@ module WhopSDK
|
|
|
84
85
|
# - `invoice:basic:read`
|
|
85
86
|
# - `plan:basic:read`
|
|
86
87
|
#
|
|
87
|
-
# @overload list(company_id:, after: nil, before: nil,
|
|
88
|
+
# @overload list(company_id:, after: nil, before: nil, collection_methods: nil, direction: nil, first: nil, last: nil, order: nil, product_ids: nil, statuses: nil, request_options: {})
|
|
88
89
|
#
|
|
89
90
|
# @param company_id [String] The ID of the company to list invoices for
|
|
90
91
|
#
|
|
@@ -92,9 +93,9 @@ module WhopSDK
|
|
|
92
93
|
#
|
|
93
94
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
94
95
|
#
|
|
95
|
-
# @param
|
|
96
|
+
# @param collection_methods [Array<Symbol, WhopSDK::Models::CollectionMethod>, nil] Filter invoices by their collection method
|
|
96
97
|
#
|
|
97
|
-
# @param
|
|
98
|
+
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
98
99
|
#
|
|
99
100
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
100
101
|
#
|
|
@@ -102,6 +103,10 @@ module WhopSDK
|
|
|
102
103
|
#
|
|
103
104
|
# @param order [Symbol, WhopSDK::Models::InvoiceListParams::Order, nil] Which columns can be used to sort.
|
|
104
105
|
#
|
|
106
|
+
# @param product_ids [Array<String>, nil] Return only invoices created for these specific product ids
|
|
107
|
+
#
|
|
108
|
+
# @param statuses [Array<Symbol, WhopSDK::Models::InvoiceStatus>, nil] The statuses to filter the invoices by
|
|
109
|
+
#
|
|
105
110
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
106
111
|
#
|
|
107
112
|
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::InvoiceListItem>]
|
|
@@ -127,7 +132,8 @@ module WhopSDK
|
|
|
127
132
|
#
|
|
128
133
|
# @overload void(id, request_options: {})
|
|
129
134
|
#
|
|
130
|
-
# @param id [String]
|
|
135
|
+
# @param id [String] The ID of the invoice to void
|
|
136
|
+
#
|
|
131
137
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
132
138
|
#
|
|
133
139
|
# @return [Boolean]
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Resources
|
|
5
5
|
class LedgerAccounts
|
|
6
|
-
#
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {WhopSDK::Models::LedgerAccountRetrieveParams} for more details.
|
|
8
|
+
#
|
|
9
|
+
# Retrieves a ledger account by its ID, company ID or user ID
|
|
7
10
|
#
|
|
8
11
|
# Required permissions:
|
|
9
12
|
#
|
|
@@ -11,7 +14,8 @@ module WhopSDK
|
|
|
11
14
|
#
|
|
12
15
|
# @overload retrieve(id, request_options: {})
|
|
13
16
|
#
|
|
14
|
-
# @param id [String]
|
|
17
|
+
# @param id [String] Either a User ID, Company ID, or LedgerAccount ID (user_xxx, biz_xxx, or ldgr_xx
|
|
18
|
+
#
|
|
15
19
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
16
20
|
#
|
|
17
21
|
# @return [WhopSDK::Models::LedgerAccountRetrieveResponse]
|
|
@@ -13,7 +13,8 @@ module WhopSDK
|
|
|
13
13
|
#
|
|
14
14
|
# @overload retrieve(id, request_options: {})
|
|
15
15
|
#
|
|
16
|
-
# @param id [String]
|
|
16
|
+
# @param id [String] The ID of the member
|
|
17
|
+
#
|
|
17
18
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
18
19
|
#
|
|
19
20
|
# @return [WhopSDK::Models::MemberRetrieveResponse]
|
|
@@ -39,13 +40,11 @@ module WhopSDK
|
|
|
39
40
|
# - `member:email:read`
|
|
40
41
|
# - `member:phone:read`
|
|
41
42
|
#
|
|
42
|
-
# @overload list(company_id:, access_level: nil,
|
|
43
|
+
# @overload list(company_id:, access_level: nil, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, most_recent_actions: nil, order: nil, plan_ids: nil, product_ids: nil, promo_code_ids: nil, query: nil, statuses: nil, user_ids: nil, request_options: {})
|
|
43
44
|
#
|
|
44
45
|
# @param company_id [String] The ID of the company to list members for
|
|
45
46
|
#
|
|
46
|
-
# @param access_level [Symbol, WhopSDK::Models::AccessLevel, nil] The access level a given user (or company) has to
|
|
47
|
-
#
|
|
48
|
-
# @param access_pass_ids [Array<String>, nil] The access pass IDs to filter the members by
|
|
47
|
+
# @param access_level [Symbol, WhopSDK::Models::AccessLevel, nil] The access level a given user (or company) has to a product or company.
|
|
49
48
|
#
|
|
50
49
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
51
50
|
#
|
|
@@ -67,6 +66,8 @@ module WhopSDK
|
|
|
67
66
|
#
|
|
68
67
|
# @param plan_ids [Array<String>, nil] The plan IDs to filter the members by
|
|
69
68
|
#
|
|
69
|
+
# @param product_ids [Array<String>, nil] The product IDs to filter the members by
|
|
70
|
+
#
|
|
70
71
|
# @param promo_code_ids [Array<String>, nil] The promo code IDs to filter the members by
|
|
71
72
|
#
|
|
72
73
|
# @param query [String, nil] The name, username, or email to filter the members by. The email filter will onl
|
|
@@ -11,7 +11,8 @@ module WhopSDK
|
|
|
11
11
|
#
|
|
12
12
|
# @overload retrieve(id, request_options: {})
|
|
13
13
|
#
|
|
14
|
-
# @param id [String]
|
|
14
|
+
# @param id [String] The ID of the membership or a license key
|
|
15
|
+
#
|
|
15
16
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
16
17
|
#
|
|
17
18
|
# @return [WhopSDK::Models::Membership]
|
|
@@ -35,7 +36,7 @@ module WhopSDK
|
|
|
35
36
|
#
|
|
36
37
|
# @overload update(id, metadata: nil, request_options: {})
|
|
37
38
|
#
|
|
38
|
-
# @param id [String]
|
|
39
|
+
# @param id [String] The ID of the membership.
|
|
39
40
|
#
|
|
40
41
|
# @param metadata [Hash{Symbol=>Object}, nil] The metadata to update the membership with.
|
|
41
42
|
#
|
|
@@ -61,9 +62,7 @@ module WhopSDK
|
|
|
61
62
|
#
|
|
62
63
|
# - `member:basic:read`
|
|
63
64
|
#
|
|
64
|
-
# @overload list(
|
|
65
|
-
#
|
|
66
|
-
# @param access_pass_ids [Array<String>, nil] The access pass IDs to filter the memberships by
|
|
65
|
+
# @overload list(after: nil, before: nil, cancel_options: nil, company_id: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, plan_ids: nil, product_ids: nil, promo_code_ids: nil, statuses: nil, user_ids: nil, request_options: {})
|
|
67
66
|
#
|
|
68
67
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
69
68
|
#
|
|
@@ -87,6 +86,8 @@ module WhopSDK
|
|
|
87
86
|
#
|
|
88
87
|
# @param plan_ids [Array<String>, nil] The plan IDs to filter the memberships by
|
|
89
88
|
#
|
|
89
|
+
# @param product_ids [Array<String>, nil] The product IDs to filter the memberships by
|
|
90
|
+
#
|
|
90
91
|
# @param promo_code_ids [Array<String>, nil] The promo code IDs to filter the memberships by
|
|
91
92
|
#
|
|
92
93
|
# @param statuses [Array<Symbol, WhopSDK::Models::MembershipStatus>, nil] The membership status to filter the memberships by
|
|
@@ -120,7 +121,7 @@ module WhopSDK
|
|
|
120
121
|
#
|
|
121
122
|
# @overload cancel(id, cancellation_mode: nil, request_options: {})
|
|
122
123
|
#
|
|
123
|
-
# @param id [String]
|
|
124
|
+
# @param id [String] The ID of the membership.
|
|
124
125
|
#
|
|
125
126
|
# @param cancellation_mode [Symbol, WhopSDK::Models::MembershipCancelParams::CancellationMode, nil] The mode of cancellation for a membership
|
|
126
127
|
#
|
|
@@ -152,7 +153,7 @@ module WhopSDK
|
|
|
152
153
|
#
|
|
153
154
|
# @overload pause(id, void_payments: nil, request_options: {})
|
|
154
155
|
#
|
|
155
|
-
# @param id [String]
|
|
156
|
+
# @param id [String] The ID of the membership you want to pause.
|
|
156
157
|
#
|
|
157
158
|
# @param void_payments [Boolean, nil] Whether to void past_due payments associated with the membership to prevent futu
|
|
158
159
|
#
|
|
@@ -181,7 +182,8 @@ module WhopSDK
|
|
|
181
182
|
#
|
|
182
183
|
# @overload resume(id, request_options: {})
|
|
183
184
|
#
|
|
184
|
-
# @param id [String]
|
|
185
|
+
# @param id [String] The ID of the membership you want to resume.
|
|
186
|
+
#
|
|
185
187
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
186
188
|
#
|
|
187
189
|
# @return [WhopSDK::Models::Membership]
|
|
@@ -43,7 +43,8 @@ module WhopSDK
|
|
|
43
43
|
#
|
|
44
44
|
# @overload retrieve(id, request_options: {})
|
|
45
45
|
#
|
|
46
|
-
# @param id [String]
|
|
46
|
+
# @param id [String] The ID of the message
|
|
47
|
+
#
|
|
47
48
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
48
49
|
#
|
|
49
50
|
# @return [WhopSDK::Models::Message]
|
|
@@ -62,7 +63,7 @@ module WhopSDK
|
|
|
62
63
|
#
|
|
63
64
|
# @overload update(id, attachments: nil, content: nil, is_pinned: nil, request_options: {})
|
|
64
65
|
#
|
|
65
|
-
# @param id [String]
|
|
66
|
+
# @param id [String] The ID of the message to update
|
|
66
67
|
#
|
|
67
68
|
# @param attachments [Array<WhopSDK::Models::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::MessageUpdateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this message
|
|
68
69
|
#
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Resources
|
|
5
|
+
class Notifications
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {WhopSDK::Models::NotificationCreateParams} for more details.
|
|
8
|
+
#
|
|
9
|
+
# Queues a notification to be sent to users in an experience or company team
|
|
10
|
+
#
|
|
11
|
+
# @overload create(company_id:, content:, title:, experience_id:, icon_user_id: nil, rest_path: nil, subtitle: nil, user_ids: nil, request_options: {})
|
|
12
|
+
#
|
|
13
|
+
# @param company_id [String] The id of the company to target. Only team members of this company will receive
|
|
14
|
+
#
|
|
15
|
+
# @param content [String] The content of the notification
|
|
16
|
+
#
|
|
17
|
+
# @param title [String] The title of the notification
|
|
18
|
+
#
|
|
19
|
+
# @param experience_id [String] The id of the experience to target. All users with access to this experience (cu
|
|
20
|
+
#
|
|
21
|
+
# @param icon_user_id [String, nil] Optional: ID of a Whop user whose profile picture will be used as the notificati
|
|
22
|
+
#
|
|
23
|
+
# @param rest_path [String, nil] The rest path to append to the generated deep link that opens your app. Use [res
|
|
24
|
+
#
|
|
25
|
+
# @param subtitle [String, nil] The subtitle of the notification
|
|
26
|
+
#
|
|
27
|
+
# @param user_ids [Array<String>, nil] If provided, this will only send to these users if they are also in the main sco
|
|
28
|
+
#
|
|
29
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
30
|
+
#
|
|
31
|
+
# @return [WhopSDK::Models::NotificationCreateResponse]
|
|
32
|
+
#
|
|
33
|
+
# @see WhopSDK::Models::NotificationCreateParams
|
|
34
|
+
def create(params)
|
|
35
|
+
parsed, options = WhopSDK::NotificationCreateParams.dump_request(params)
|
|
36
|
+
@client.request(
|
|
37
|
+
method: :post,
|
|
38
|
+
path: "notifications",
|
|
39
|
+
body: parsed,
|
|
40
|
+
model: WhopSDK::Models::NotificationCreateResponse,
|
|
41
|
+
options: options
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# @api private
|
|
46
|
+
#
|
|
47
|
+
# @param client [WhopSDK::Client]
|
|
48
|
+
def initialize(client:)
|
|
49
|
+
@client = client
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -17,7 +17,8 @@ module WhopSDK
|
|
|
17
17
|
#
|
|
18
18
|
# @overload retrieve(id, request_options: {})
|
|
19
19
|
#
|
|
20
|
-
# @param id [String]
|
|
20
|
+
# @param id [String] The ID of the payment
|
|
21
|
+
#
|
|
21
22
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
22
23
|
#
|
|
23
24
|
# @return [WhopSDK::Models::Payment]
|
|
@@ -109,7 +110,7 @@ module WhopSDK
|
|
|
109
110
|
#
|
|
110
111
|
# @overload refund(id, partial_amount: nil, request_options: {})
|
|
111
112
|
#
|
|
112
|
-
# @param id [String]
|
|
113
|
+
# @param id [String] The ID of the payment you want to update or take action upon.
|
|
113
114
|
#
|
|
114
115
|
# @param partial_amount [Float, nil] An amount if the refund is supposed to be partial.
|
|
115
116
|
#
|
|
@@ -143,7 +144,8 @@ module WhopSDK
|
|
|
143
144
|
#
|
|
144
145
|
# @overload retry_(id, request_options: {})
|
|
145
146
|
#
|
|
146
|
-
# @param id [String]
|
|
147
|
+
# @param id [String] The ID of the payment
|
|
148
|
+
#
|
|
147
149
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
148
150
|
#
|
|
149
151
|
# @return [WhopSDK::Models::Payment]
|
|
@@ -172,7 +174,8 @@ module WhopSDK
|
|
|
172
174
|
#
|
|
173
175
|
# @overload void(id, request_options: {})
|
|
174
176
|
#
|
|
175
|
-
# @param id [String]
|
|
177
|
+
# @param id [String] The ID of the payment you want to void.
|
|
178
|
+
#
|
|
176
179
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
177
180
|
#
|
|
178
181
|
# @return [WhopSDK::Models::Payment]
|
|
@@ -40,7 +40,7 @@ module WhopSDK
|
|
|
40
40
|
#
|
|
41
41
|
# @param payment_method_configuration [WhopSDK::Models::PlanCreateParams::PaymentMethodConfiguration, nil] The explicit payment method configuration for the plan. If not provided, the pla
|
|
42
42
|
#
|
|
43
|
-
# @param plan_type [Symbol, WhopSDK::Models::PlanType, nil] The type of plan that can be attached to
|
|
43
|
+
# @param plan_type [Symbol, WhopSDK::Models::PlanType, nil] The type of plan that can be attached to a product
|
|
44
44
|
#
|
|
45
45
|
# @param release_method [Symbol, WhopSDK::Models::ReleaseMethod, nil] The methods of how a plan can be released.
|
|
46
46
|
#
|
|
@@ -78,7 +78,8 @@ module WhopSDK
|
|
|
78
78
|
#
|
|
79
79
|
# @overload retrieve(id, request_options: {})
|
|
80
80
|
#
|
|
81
|
-
# @param id [String]
|
|
81
|
+
# @param id [String] The ID of the plan
|
|
82
|
+
#
|
|
82
83
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
83
84
|
#
|
|
84
85
|
# @return [WhopSDK::Models::Plan]
|
|
@@ -106,7 +107,7 @@ module WhopSDK
|
|
|
106
107
|
#
|
|
107
108
|
# @overload update(id, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, offer_cancel_discount: nil, override_tax_type: nil, payment_method_configuration: nil, renewal_price: nil, stock: nil, strike_through_initial_price: nil, strike_through_renewal_price: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
|
|
108
109
|
#
|
|
109
|
-
# @param id [String]
|
|
110
|
+
# @param id [String] The ID
|
|
110
111
|
#
|
|
111
112
|
# @param billing_period [Integer, nil] The interval at which the plan charges (renewal plans).
|
|
112
113
|
#
|
|
@@ -217,7 +218,8 @@ module WhopSDK
|
|
|
217
218
|
#
|
|
218
219
|
# @overload delete(id, request_options: {})
|
|
219
220
|
#
|
|
220
|
-
# @param id [String]
|
|
221
|
+
# @param id [String] The ID of the plan to delete.
|
|
222
|
+
#
|
|
221
223
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
222
224
|
#
|
|
223
225
|
# @return [Boolean]
|
|
@@ -36,7 +36,7 @@ module WhopSDK
|
|
|
36
36
|
#
|
|
37
37
|
# @param global_affiliate_percentage [Float, nil] The percentage of the revenue that goes to the global affiliate program.
|
|
38
38
|
#
|
|
39
|
-
# @param global_affiliate_status [Symbol, WhopSDK::Models::GlobalAffiliateStatus, nil] The different statuses of the global affiliate program for
|
|
39
|
+
# @param global_affiliate_status [Symbol, WhopSDK::Models::GlobalAffiliateStatus, nil] The different statuses of the global affiliate program for a product.
|
|
40
40
|
#
|
|
41
41
|
# @param headline [String, nil] The headline of the product.
|
|
42
42
|
#
|
|
@@ -44,7 +44,7 @@ module WhopSDK
|
|
|
44
44
|
#
|
|
45
45
|
# @param member_affiliate_percentage [Float, nil] The percentage of the revenue that goes to the member affiliate program.
|
|
46
46
|
#
|
|
47
|
-
# @param member_affiliate_status [Symbol, WhopSDK::Models::GlobalAffiliateStatus, nil] The different statuses of the global affiliate program for
|
|
47
|
+
# @param member_affiliate_status [Symbol, WhopSDK::Models::GlobalAffiliateStatus, nil] The different statuses of the global affiliate program for a product.
|
|
48
48
|
#
|
|
49
49
|
# @param plan_options [WhopSDK::Models::ProductCreateParams::PlanOptions, nil] The details to assign an autogenerated plan.
|
|
50
50
|
#
|
|
@@ -82,7 +82,8 @@ module WhopSDK
|
|
|
82
82
|
#
|
|
83
83
|
# @overload retrieve(id, request_options: {})
|
|
84
84
|
#
|
|
85
|
-
# @param id [String]
|
|
85
|
+
# @param id [String] The ID or route of the product
|
|
86
|
+
#
|
|
86
87
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
87
88
|
#
|
|
88
89
|
# @return [WhopSDK::Models::Product]
|
|
@@ -109,7 +110,7 @@ module WhopSDK
|
|
|
109
110
|
#
|
|
110
111
|
# @overload update(id, banner_image: nil, business_type: nil, collect_shipping_address: nil, custom_cta: nil, custom_cta_url: nil, custom_statement_descriptor: nil, description: nil, global_affiliate_percentage: nil, global_affiliate_status: nil, headline: nil, industry_type: nil, member_affiliate_percentage: nil, member_affiliate_status: nil, product_tax_code_id: nil, redirect_purchase_url: nil, route: nil, store_page_config: nil, title: nil, visibility: nil, request_options: {})
|
|
111
112
|
#
|
|
112
|
-
# @param id [String]
|
|
113
|
+
# @param id [String] The ID (tag) of the product
|
|
113
114
|
#
|
|
114
115
|
# @param banner_image [WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID, nil] A banner image for the product in png, jpeg format
|
|
115
116
|
#
|
|
@@ -128,7 +129,7 @@ module WhopSDK
|
|
|
128
129
|
#
|
|
129
130
|
# @param global_affiliate_percentage [Float, nil] The percentage of the revenue that goes to the global affiliate program.
|
|
130
131
|
#
|
|
131
|
-
# @param global_affiliate_status [Symbol, WhopSDK::Models::GlobalAffiliateStatus, nil] The different statuses of the global affiliate program for
|
|
132
|
+
# @param global_affiliate_status [Symbol, WhopSDK::Models::GlobalAffiliateStatus, nil] The different statuses of the global affiliate program for a product.
|
|
132
133
|
#
|
|
133
134
|
# @param headline [String, nil] The headline of the product.
|
|
134
135
|
#
|
|
@@ -136,7 +137,7 @@ module WhopSDK
|
|
|
136
137
|
#
|
|
137
138
|
# @param member_affiliate_percentage [Float, nil] The percentage of the revenue that goes to the member affiliate program.
|
|
138
139
|
#
|
|
139
|
-
# @param member_affiliate_status [Symbol, WhopSDK::Models::GlobalAffiliateStatus, nil] The different statuses of the global affiliate program for
|
|
140
|
+
# @param member_affiliate_status [Symbol, WhopSDK::Models::GlobalAffiliateStatus, nil] The different statuses of the global affiliate program for a product.
|
|
140
141
|
#
|
|
141
142
|
# @param product_tax_code_id [String, nil] The ID of the product tax code to apply to this product.
|
|
142
143
|
#
|
|
@@ -217,7 +218,8 @@ module WhopSDK
|
|
|
217
218
|
#
|
|
218
219
|
# @overload delete(id, request_options: {})
|
|
219
220
|
#
|
|
220
|
-
# @param id [String]
|
|
221
|
+
# @param id [String] The internal ID (tag) of the product to delete.
|
|
222
|
+
#
|
|
221
223
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
222
224
|
#
|
|
223
225
|
# @return [Boolean]
|
|
@@ -70,7 +70,8 @@ module WhopSDK
|
|
|
70
70
|
#
|
|
71
71
|
# @overload retrieve(id, request_options: {})
|
|
72
72
|
#
|
|
73
|
-
# @param id [String]
|
|
73
|
+
# @param id [String] The ID of the promo code to retrieve
|
|
74
|
+
#
|
|
74
75
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
75
76
|
#
|
|
76
77
|
# @return [WhopSDK::Models::PromoCode]
|
|
@@ -135,7 +136,8 @@ module WhopSDK
|
|
|
135
136
|
#
|
|
136
137
|
# @overload delete(id, request_options: {})
|
|
137
138
|
#
|
|
138
|
-
# @param id [String]
|
|
139
|
+
# @param id [String] The internal ID of the promo code to archive.
|
|
140
|
+
#
|
|
139
141
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
140
142
|
#
|
|
141
143
|
# @return [Boolean]
|
|
@@ -42,7 +42,8 @@ module WhopSDK
|
|
|
42
42
|
#
|
|
43
43
|
# @overload retrieve(id, request_options: {})
|
|
44
44
|
#
|
|
45
|
-
# @param id [String]
|
|
45
|
+
# @param id [String] The ID of the reaction
|
|
46
|
+
#
|
|
46
47
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
47
48
|
#
|
|
48
49
|
# @return [WhopSDK::Models::Reaction]
|
|
@@ -7,7 +7,8 @@ module WhopSDK
|
|
|
7
7
|
#
|
|
8
8
|
# @overload retrieve(id, request_options: {})
|
|
9
9
|
#
|
|
10
|
-
# @param id [String]
|
|
10
|
+
# @param id [String] The ID of the review
|
|
11
|
+
#
|
|
11
12
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
12
13
|
#
|
|
13
14
|
# @return [WhopSDK::Models::ReviewRetrieveResponse]
|
|
@@ -43,7 +43,8 @@ module WhopSDK
|
|
|
43
43
|
#
|
|
44
44
|
# @overload retrieve(id, request_options: {})
|
|
45
45
|
#
|
|
46
|
-
# @param id [String]
|
|
46
|
+
# @param id [String] The ID of the shipment
|
|
47
|
+
#
|
|
47
48
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
48
49
|
#
|
|
49
50
|
# @return [WhopSDK::Models::Shipment]
|
|
@@ -40,7 +40,8 @@ module WhopSDK
|
|
|
40
40
|
#
|
|
41
41
|
# @overload retrieve(id, request_options: {})
|
|
42
42
|
#
|
|
43
|
-
# @param id [String]
|
|
43
|
+
# @param id [String] The ID of the support channel to fetch
|
|
44
|
+
#
|
|
44
45
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
45
46
|
#
|
|
46
47
|
# @return [WhopSDK::Models::SupportChannel]
|
|
@@ -52,7 +52,8 @@ module WhopSDK
|
|
|
52
52
|
#
|
|
53
53
|
# @overload retrieve(id, request_options: {})
|
|
54
54
|
#
|
|
55
|
-
# @param id [String]
|
|
55
|
+
# @param id [String] The ID of the transfer
|
|
56
|
+
#
|
|
56
57
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
57
58
|
#
|
|
58
59
|
# @return [WhopSDK::Models::Transfer]
|
|
@@ -7,7 +7,8 @@ module WhopSDK
|
|
|
7
7
|
#
|
|
8
8
|
# @overload retrieve(id, request_options: {})
|
|
9
9
|
#
|
|
10
|
-
# @param id [String]
|
|
10
|
+
# @param id [String] The ID (user_xxx) or username of the user
|
|
11
|
+
#
|
|
11
12
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
12
13
|
#
|
|
13
14
|
# @return [WhopSDK::Models::UserRetrieveResponse]
|
|
@@ -22,12 +23,17 @@ module WhopSDK
|
|
|
22
23
|
)
|
|
23
24
|
end
|
|
24
25
|
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {WhopSDK::Models::UserCheckAccessParams} for more details.
|
|
28
|
+
#
|
|
25
29
|
# Check if a user has access (and their access level) to a resource
|
|
26
30
|
#
|
|
27
31
|
# @overload check_access(resource_id, id:, request_options: {})
|
|
28
32
|
#
|
|
29
|
-
# @param resource_id [String]
|
|
30
|
-
#
|
|
33
|
+
# @param resource_id [String] The ID of the resource. Can be a company (biz_xxx), product (prod_xxx), or exper
|
|
34
|
+
#
|
|
35
|
+
# @param id [String] The ID (user_xxx) or username of the user
|
|
36
|
+
#
|
|
31
37
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
32
38
|
#
|
|
33
39
|
# @return [WhopSDK::Models::UserCheckAccessResponse]
|
|
@@ -5,7 +5,7 @@ module WhopSDK
|
|
|
5
5
|
class Webhooks
|
|
6
6
|
# @param payload [String] The raw webhook payload as a string
|
|
7
7
|
#
|
|
8
|
-
# @return [WhopSDK::Models::InvoiceCreatedWebhookEvent, WhopSDK::Models::InvoicePaidWebhookEvent, WhopSDK::Models::InvoicePastDueWebhookEvent, WhopSDK::Models::InvoiceVoidedWebhookEvent, WhopSDK::Models::MembershipActivatedWebhookEvent, WhopSDK::Models::MembershipDeactivatedWebhookEvent, WhopSDK::Models::EntryCreatedWebhookEvent, WhopSDK::Models::EntryApprovedWebhookEvent, WhopSDK::Models::EntryDeniedWebhookEvent, WhopSDK::Models::EntryDeletedWebhookEvent, WhopSDK::Models::CourseLessonInteractionCompletedWebhookEvent, WhopSDK::Models::PaymentSucceededWebhookEvent, WhopSDK::Models::PaymentFailedWebhookEvent, WhopSDK::Models::PaymentPendingWebhookEvent]
|
|
8
|
+
# @return [WhopSDK::Models::InvoiceCreatedWebhookEvent, WhopSDK::Models::InvoicePaidWebhookEvent, WhopSDK::Models::InvoicePastDueWebhookEvent, WhopSDK::Models::InvoiceVoidedWebhookEvent, WhopSDK::Models::MembershipActivatedWebhookEvent, WhopSDK::Models::MembershipDeactivatedWebhookEvent, WhopSDK::Models::EntryCreatedWebhookEvent, WhopSDK::Models::EntryApprovedWebhookEvent, WhopSDK::Models::EntryDeniedWebhookEvent, WhopSDK::Models::EntryDeletedWebhookEvent, WhopSDK::Models::CourseLessonInteractionCompletedWebhookEvent, WhopSDK::Models::PaymentSucceededWebhookEvent, WhopSDK::Models::PaymentFailedWebhookEvent, WhopSDK::Models::PaymentPendingWebhookEvent, WhopSDK::Models::DisputeCreatedWebhookEvent, WhopSDK::Models::DisputeUpdatedWebhookEvent]
|
|
9
9
|
def unwrap(payload)
|
|
10
10
|
parsed = JSON.parse(payload, symbolize_names: true)
|
|
11
11
|
WhopSDK::Internal::Type::Converter.coerce(WhopSDK::Models::UnwrapWebhookEvent, parsed)
|
data/lib/whop_sdk/version.rb
CHANGED