whop_sdk 0.0.3 → 0.0.5
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 +47 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +8 -0
- 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/app_build_create_params.rb +53 -29
- data/lib/whop_sdk/models/app_update_params.rb +53 -29
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +119 -43
- data/lib/whop_sdk/models/company.rb +13 -1
- data/lib/whop_sdk/models/company_create_params.rb +46 -0
- data/lib/whop_sdk/models/company_list_params.rb +62 -0
- data/lib/whop_sdk/models/company_list_response.rb +175 -0
- data/lib/whop_sdk/models/course.rb +18 -1
- data/lib/whop_sdk/models/course_create_params.rb +94 -30
- 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 +280 -83
- data/lib/whop_sdk/models/course_list_response.rb +18 -1
- data/lib/whop_sdk/models/course_student_list_params.rb +62 -0
- data/lib/whop_sdk/models/course_student_list_response.rb +97 -0
- data/lib/whop_sdk/models/course_student_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_student_retrieve_response.rb +149 -0
- data/lib/whop_sdk/models/course_update_params.rb +70 -28
- data/lib/whop_sdk/models/course_visibilities.rb +17 -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/experience_update_params.rb +53 -29
- data/lib/whop_sdk/models/forum_post.rb +2 -2
- data/lib/whop_sdk/models/forum_post_create_params.rb +51 -27
- data/lib/whop_sdk/models/forum_post_list_response.rb +2 -2
- data/lib/whop_sdk/models/forum_post_update_params.rb +51 -27
- data/lib/whop_sdk/models/global_affiliate_status.rb +1 -1
- data/lib/whop_sdk/models/invoice_create_params.rb +50 -34
- data/lib/whop_sdk/models/invoice_list_params.rb +27 -40
- data/lib/whop_sdk/models/lesson.rb +59 -9
- 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_create_params.rb +51 -27
- data/lib/whop_sdk/models/message_list_response.rb +2 -2
- data/lib/whop_sdk/models/message_update_params.rb +51 -27
- data/lib/whop_sdk/models/payment.rb +13 -4
- data/lib/whop_sdk/models/payment_list_response.rb +13 -4
- data/lib/whop_sdk/models/payment_method_types.rb +2 -1
- data/lib/whop_sdk/models/plan.rb +54 -5
- data/lib/whop_sdk/models/plan_create_params.rb +99 -24
- data/lib/whop_sdk/models/plan_list_response.rb +57 -5
- data/lib/whop_sdk/models/plan_type.rb +1 -1
- data/lib/whop_sdk/models/plan_update_params.rb +97 -22
- 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 +57 -33
- 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/transfer.rb +9 -1
- data/lib/whop_sdk/models/transfer_create_params.rb +9 -1
- data/lib/whop_sdk/models/transfer_list_response.rb +9 -1
- data/lib/whop_sdk/models.rb +14 -0
- data/lib/whop_sdk/resources/access_tokens.rb +46 -0
- data/lib/whop_sdk/resources/app_builds.rb +5 -3
- data/lib/whop_sdk/resources/apps.rb +4 -3
- 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 +8 -7
- data/lib/whop_sdk/resources/companies.rb +72 -1
- data/lib/whop_sdk/resources/course_chapters.rb +5 -3
- data/lib/whop_sdk/resources/course_lesson_interactions.rb +4 -3
- data/lib/whop_sdk/resources/course_lessons.rb +25 -7
- data/lib/whop_sdk/resources/course_students.rb +77 -0
- data/lib/whop_sdk/resources/courses.rb +24 -7
- data/lib/whop_sdk/resources/entries.rb +6 -3
- data/lib/whop_sdk/resources/experiences.rb +9 -7
- data/lib/whop_sdk/resources/forum_posts.rb +5 -4
- data/lib/whop_sdk/resources/forums.rb +3 -2
- data/lib/whop_sdk/resources/invoices.rb +22 -16
- 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 +5 -4
- data/lib/whop_sdk/resources/payments.rb +7 -4
- data/lib/whop_sdk/resources/plans.rb +14 -8
- data/lib/whop_sdk/resources/products.rb +10 -8
- 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 +5 -2
- data/lib/whop_sdk/resources/users.rb +9 -3
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +14 -1
- data/manifest.yaml +1 -0
- data/rbi/whop_sdk/client.rbi +6 -0
- 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/app_build_create_params.rbi +80 -40
- data/rbi/whop_sdk/models/app_update_params.rbi +86 -37
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +196 -68
- data/rbi/whop_sdk/models/company.rbi +10 -0
- data/rbi/whop_sdk/models/company_create_params.rbi +67 -0
- data/rbi/whop_sdk/models/company_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/company_list_response.rbi +235 -0
- data/rbi/whop_sdk/models/course.rbi +21 -3
- data/rbi/whop_sdk/models/course_create_params.rbi +126 -38
- 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 +449 -111
- data/rbi/whop_sdk/models/course_list_response.rbi +21 -3
- data/rbi/whop_sdk/models/course_student_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/course_student_list_response.rbi +142 -0
- data/rbi/whop_sdk/models/course_student_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/course_student_retrieve_response.rbi +250 -0
- data/rbi/whop_sdk/models/course_update_params.rbi +104 -38
- data/rbi/whop_sdk/models/course_visibilities.rbi +23 -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/experience_update_params.rbi +84 -38
- data/rbi/whop_sdk/models/forum_post.rbi +2 -2
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +85 -32
- data/rbi/whop_sdk/models/forum_post_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +85 -32
- data/rbi/whop_sdk/models/global_affiliate_status.rbi +1 -1
- data/rbi/whop_sdk/models/invoice_create_params.rbi +60 -46
- data/rbi/whop_sdk/models/invoice_list_params.rbi +26 -71
- data/rbi/whop_sdk/models/lesson.rbi +68 -10
- 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_create_params.rbi +85 -32
- data/rbi/whop_sdk/models/message_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/message_update_params.rbi +85 -32
- data/rbi/whop_sdk/models/payment.rbi +13 -3
- data/rbi/whop_sdk/models/payment_list_response.rbi +13 -3
- data/rbi/whop_sdk/models/payment_method_types.rbi +3 -1
- data/rbi/whop_sdk/models/plan.rbi +88 -4
- data/rbi/whop_sdk/models/plan_create_params.rbi +176 -34
- data/rbi/whop_sdk/models/plan_list_response.rbi +100 -4
- data/rbi/whop_sdk/models/plan_type.rbi +1 -1
- data/rbi/whop_sdk/models/plan_update_params.rbi +174 -32
- 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 +87 -43
- 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/transfer.rbi +8 -0
- data/rbi/whop_sdk/models/transfer_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/transfer_list_response.rbi +8 -0
- data/rbi/whop_sdk/models.rbi +14 -0
- data/rbi/whop_sdk/resources/access_tokens.rbi +41 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +15 -3
- data/rbi/whop_sdk/resources/apps.rbi +13 -2
- 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 +11 -8
- data/rbi/whop_sdk/resources/companies.rbi +68 -1
- data/rbi/whop_sdk/resources/course_chapters.rbi +11 -2
- data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +7 -3
- data/rbi/whop_sdk/resources/course_lessons.rbi +62 -4
- data/rbi/whop_sdk/resources/course_students.rbi +69 -0
- data/rbi/whop_sdk/resources/courses.rbi +50 -4
- data/rbi/whop_sdk/resources/entries.rbi +15 -3
- data/rbi/whop_sdk/resources/experiences.rbi +21 -3
- data/rbi/whop_sdk/resources/forum_posts.rbi +18 -3
- data/rbi/whop_sdk/resources/forums.rbi +6 -1
- data/rbi/whop_sdk/resources/invoices.rbi +38 -23
- 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 +18 -3
- data/rbi/whop_sdk/resources/payments.rbi +16 -3
- data/rbi/whop_sdk/resources/plans.rbi +40 -5
- data/rbi/whop_sdk/resources/products.rbi +21 -7
- 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 +8 -1
- data/rbi/whop_sdk/resources/users.rbi +13 -2
- data/sig/whop_sdk/client.rbs +4 -0
- 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/app_build_create_params.rbs +29 -10
- data/sig/whop_sdk/models/app_update_params.rbs +29 -10
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +72 -21
- data/sig/whop_sdk/models/company.rbs +5 -0
- data/sig/whop_sdk/models/company_create_params.rbs +41 -0
- data/sig/whop_sdk/models/company_list_params.rbs +51 -0
- data/sig/whop_sdk/models/company_list_response.rbs +109 -0
- data/sig/whop_sdk/models/course.rbs +13 -3
- data/sig/whop_sdk/models/course_create_params.rbs +49 -10
- 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 +162 -30
- data/sig/whop_sdk/models/course_list_response.rbs +13 -3
- data/sig/whop_sdk/models/course_student_list_params.rbs +51 -0
- data/sig/whop_sdk/models/course_student_list_response.rbs +64 -0
- data/sig/whop_sdk/models/course_student_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_student_retrieve_response.rbs +106 -0
- data/sig/whop_sdk/models/course_update_params.rbs +40 -11
- data/sig/whop_sdk/models/course_visibilities.rbs +14 -0
- data/sig/whop_sdk/models/embed_type.rbs +14 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +29 -10
- data/sig/whop_sdk/models/forum_post_create_params.rbs +29 -10
- data/sig/whop_sdk/models/forum_post_update_params.rbs +29 -10
- data/sig/whop_sdk/models/invoice_create_params.rbs +28 -18
- data/sig/whop_sdk/models/invoice_list_params.rbs +16 -33
- data/sig/whop_sdk/models/lesson.rbs +33 -8
- 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/message_create_params.rbs +29 -10
- data/sig/whop_sdk/models/message_update_params.rbs +29 -10
- data/sig/whop_sdk/models/payment.rbs +5 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +5 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +4 -2
- data/sig/whop_sdk/models/plan.rbs +32 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +61 -10
- data/sig/whop_sdk/models/plan_list_response.rbs +32 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +61 -10
- data/sig/whop_sdk/models/product_update_params.rbs +29 -10
- data/sig/whop_sdk/models/transfer.rbs +5 -0
- data/sig/whop_sdk/models/transfer_create_params.rbs +5 -0
- data/sig/whop_sdk/models/transfer_list_response.rbs +5 -0
- data/sig/whop_sdk/models.rbs +14 -0
- data/sig/whop_sdk/resources/access_tokens.rbs +15 -0
- data/sig/whop_sdk/resources/app_builds.rbs +1 -1
- data/sig/whop_sdk/resources/apps.rbs +1 -1
- data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -2
- data/sig/whop_sdk/resources/companies.rbs +18 -0
- data/sig/whop_sdk/resources/course_lessons.rbs +10 -2
- data/sig/whop_sdk/resources/course_students.rbs +22 -0
- data/sig/whop_sdk/resources/courses.rbs +8 -2
- data/sig/whop_sdk/resources/experiences.rbs +1 -1
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
- data/sig/whop_sdk/resources/invoices.rbs +8 -6
- data/sig/whop_sdk/resources/members.rbs +1 -1
- data/sig/whop_sdk/resources/memberships.rbs +1 -1
- data/sig/whop_sdk/resources/messages.rbs +2 -2
- data/sig/whop_sdk/resources/plans.rbs +4 -2
- data/sig/whop_sdk/resources/products.rbs +1 -1
- data/sig/whop_sdk/resources/transfers.rbs +1 -0
- metadata +41 -5
- data/lib/whop_sdk/models/invoice_create_response.rb +0 -27
- data/rbi/whop_sdk/models/invoice_create_response.rbi +0 -49
- data/sig/whop_sdk/models/invoice_create_response.rbs +0 -19
|
@@ -7,12 +7,13 @@ module WhopSDK
|
|
|
7
7
|
#
|
|
8
8
|
# Required permissions:
|
|
9
9
|
#
|
|
10
|
-
# - `course_lesson_interaction:read`
|
|
11
10
|
# - `courses:read`
|
|
11
|
+
# - `course_analytics:read`
|
|
12
12
|
#
|
|
13
13
|
# @overload retrieve(id, request_options: {})
|
|
14
14
|
#
|
|
15
|
-
# @param id [String]
|
|
15
|
+
# @param id [String] The ID of the course lesson interaction
|
|
16
|
+
#
|
|
16
17
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
17
18
|
#
|
|
18
19
|
# @return [WhopSDK::Models::CourseLessonInteraction]
|
|
@@ -31,8 +32,8 @@ module WhopSDK
|
|
|
31
32
|
#
|
|
32
33
|
# Required permissions:
|
|
33
34
|
#
|
|
34
|
-
# - `course_lesson_interaction:read`
|
|
35
35
|
# - `courses:read`
|
|
36
|
+
# - `course_analytics:read`
|
|
36
37
|
#
|
|
37
38
|
# @overload list(after: nil, before: nil, completed: nil, course_id: nil, first: nil, last: nil, lesson_id: nil, user_id: nil, request_options: {})
|
|
38
39
|
#
|
|
@@ -9,7 +9,7 @@ module WhopSDK
|
|
|
9
9
|
#
|
|
10
10
|
# - `courses:update`
|
|
11
11
|
#
|
|
12
|
-
# @overload create(chapter_id:, lesson_type:, content: nil, days_from_course_start_until_unlock: nil, title: nil, request_options: {})
|
|
12
|
+
# @overload create(chapter_id:, lesson_type:, content: nil, days_from_course_start_until_unlock: nil, embed_id: nil, embed_type: nil, thumbnail: nil, title: nil, request_options: {})
|
|
13
13
|
#
|
|
14
14
|
# @param chapter_id [String] The ID of the chapter to create the lesson in
|
|
15
15
|
#
|
|
@@ -19,6 +19,12 @@ module WhopSDK
|
|
|
19
19
|
#
|
|
20
20
|
# @param days_from_course_start_until_unlock [Integer, nil] Days from course start until unlock
|
|
21
21
|
#
|
|
22
|
+
# @param embed_id [String, nil] ID for the embed (YouTube video ID or Loom share ID)
|
|
23
|
+
#
|
|
24
|
+
# @param embed_type [Symbol, WhopSDK::Models::EmbedType, nil] The type of embed for a lesson
|
|
25
|
+
#
|
|
26
|
+
# @param thumbnail [WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the lesson in png, jpeg, or gif format
|
|
27
|
+
#
|
|
22
28
|
# @param title [String, nil] The title of the lesson
|
|
23
29
|
#
|
|
24
30
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -45,7 +51,8 @@ module WhopSDK
|
|
|
45
51
|
#
|
|
46
52
|
# @overload retrieve(id, request_options: {})
|
|
47
53
|
#
|
|
48
|
-
# @param id [String]
|
|
54
|
+
# @param id [String] The ID of the lesson
|
|
55
|
+
#
|
|
49
56
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
50
57
|
#
|
|
51
58
|
# @return [WhopSDK::Models::Lesson]
|
|
@@ -69,24 +76,34 @@ module WhopSDK
|
|
|
69
76
|
#
|
|
70
77
|
# - `courses:update`
|
|
71
78
|
#
|
|
72
|
-
# @overload update(id, assessment_questions: nil, attachments: nil, content: nil, days_from_course_start_until_unlock: nil, lesson_type: nil, main_pdf: nil, mux_asset_id: nil, title: nil, visibility: nil, request_options: {})
|
|
79
|
+
# @overload update(id, assessment_completion_requirement: nil, assessment_questions: nil, attachments: nil, content: nil, days_from_course_start_until_unlock: nil, embed_id: nil, embed_type: nil, lesson_type: nil, main_pdf: nil, max_attempts: nil, mux_asset_id: nil, thumbnail: nil, title: nil, visibility: nil, request_options: {})
|
|
80
|
+
#
|
|
81
|
+
# @param id [String] The ID of the lesson to update
|
|
73
82
|
#
|
|
74
|
-
# @param
|
|
83
|
+
# @param assessment_completion_requirement [WhopSDK::Models::CourseLessonUpdateParams::AssessmentCompletionRequirement, nil] Completion requirements for quiz/knowledge check lessons
|
|
75
84
|
#
|
|
76
85
|
# @param assessment_questions [Array<WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion>, nil] Assessment questions for quiz/knowledge check lessons. Replaces all existing que
|
|
77
86
|
#
|
|
78
|
-
# @param attachments [Array<WhopSDK::Models::CourseLessonUpdateParams::Attachment>, nil] General attachments for the lesson (PDFs, files, etc). Replaces all existing att
|
|
87
|
+
# @param attachments [Array<WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithID>, nil] General attachments for the lesson (PDFs, files, etc). Replaces all existing att
|
|
79
88
|
#
|
|
80
89
|
# @param content [String, nil] The content of the lesson
|
|
81
90
|
#
|
|
82
91
|
# @param days_from_course_start_until_unlock [Integer, nil] Days from course start until unlock
|
|
83
92
|
#
|
|
93
|
+
# @param embed_id [String, nil] ID for the embed (YouTube video ID or Loom share ID)
|
|
94
|
+
#
|
|
95
|
+
# @param embed_type [Symbol, WhopSDK::Models::EmbedType, nil] The type of embed for a lesson
|
|
96
|
+
#
|
|
84
97
|
# @param lesson_type [Symbol, WhopSDK::Models::LessonTypes, nil] The available types for a lesson
|
|
85
98
|
#
|
|
86
|
-
# @param main_pdf [WhopSDK::Models::CourseLessonUpdateParams::MainPdf, nil] The main PDF file for this lesson
|
|
99
|
+
# @param main_pdf [WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithID, nil] The main PDF file for this lesson
|
|
100
|
+
#
|
|
101
|
+
# @param max_attempts [Integer, nil] Maximum number of attempts allowed for assessments
|
|
87
102
|
#
|
|
88
103
|
# @param mux_asset_id [String, nil] The ID of the Mux asset to attach to this lesson for video lessons
|
|
89
104
|
#
|
|
105
|
+
# @param thumbnail [WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the lesson in png, jpeg, or gif format
|
|
106
|
+
#
|
|
90
107
|
# @param title [String, nil] The title of the lesson
|
|
91
108
|
#
|
|
92
109
|
# @param visibility [Symbol, WhopSDK::Models::LessonVisibilities, nil] The available visibilities for a lesson. Determines how / whether a lesson is vi
|
|
@@ -152,7 +169,8 @@ module WhopSDK
|
|
|
152
169
|
#
|
|
153
170
|
# @overload delete(id, request_options: {})
|
|
154
171
|
#
|
|
155
|
-
# @param id [String]
|
|
172
|
+
# @param id [String] The ID of the lesson to delete
|
|
173
|
+
#
|
|
156
174
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
157
175
|
#
|
|
158
176
|
# @return [Boolean]
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Resources
|
|
5
|
+
class CourseStudents
|
|
6
|
+
# Retrieves a course student by interaction ID
|
|
7
|
+
#
|
|
8
|
+
# Required permissions:
|
|
9
|
+
#
|
|
10
|
+
# - `courses:read`
|
|
11
|
+
# - `course_analytics:read`
|
|
12
|
+
#
|
|
13
|
+
# @overload retrieve(id, request_options: {})
|
|
14
|
+
#
|
|
15
|
+
# @param id [String] The ID of the course student interaction
|
|
16
|
+
#
|
|
17
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
18
|
+
#
|
|
19
|
+
# @return [WhopSDK::Models::CourseStudentRetrieveResponse]
|
|
20
|
+
#
|
|
21
|
+
# @see WhopSDK::Models::CourseStudentRetrieveParams
|
|
22
|
+
def retrieve(id, params = {})
|
|
23
|
+
@client.request(
|
|
24
|
+
method: :get,
|
|
25
|
+
path: ["course_students/%1$s", id],
|
|
26
|
+
model: WhopSDK::Models::CourseStudentRetrieveResponse,
|
|
27
|
+
options: params[:request_options]
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Lists students for a course
|
|
32
|
+
#
|
|
33
|
+
# Required permissions:
|
|
34
|
+
#
|
|
35
|
+
# - `courses:read`
|
|
36
|
+
# - `course_analytics:read`
|
|
37
|
+
#
|
|
38
|
+
# @overload list(course_id:, after: nil, before: nil, first: nil, keyword: nil, last: nil, request_options: {})
|
|
39
|
+
#
|
|
40
|
+
# @param course_id [String] The ID of the course
|
|
41
|
+
#
|
|
42
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
43
|
+
#
|
|
44
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
45
|
+
#
|
|
46
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
47
|
+
#
|
|
48
|
+
# @param keyword [String, nil] Filter students by name - returns students whose names match the keyword
|
|
49
|
+
#
|
|
50
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
51
|
+
#
|
|
52
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
53
|
+
#
|
|
54
|
+
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::CourseStudentListResponse>]
|
|
55
|
+
#
|
|
56
|
+
# @see WhopSDK::Models::CourseStudentListParams
|
|
57
|
+
def list(params)
|
|
58
|
+
parsed, options = WhopSDK::CourseStudentListParams.dump_request(params)
|
|
59
|
+
@client.request(
|
|
60
|
+
method: :get,
|
|
61
|
+
path: "course_students",
|
|
62
|
+
query: parsed,
|
|
63
|
+
page: WhopSDK::Internal::CursorPage,
|
|
64
|
+
model: WhopSDK::Models::CourseStudentListResponse,
|
|
65
|
+
options: options
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# @api private
|
|
70
|
+
#
|
|
71
|
+
# @param client [WhopSDK::Client]
|
|
72
|
+
def initialize(client:)
|
|
73
|
+
@client = client
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -3,23 +3,34 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Resources
|
|
5
5
|
class Courses
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {WhopSDK::Models::CourseCreateParams} for more details.
|
|
8
|
+
#
|
|
6
9
|
# Creates a new course module in an experience
|
|
7
10
|
#
|
|
8
11
|
# Required permissions:
|
|
9
12
|
#
|
|
10
13
|
# - `courses:update`
|
|
11
14
|
#
|
|
12
|
-
# @overload create(experience_id:, title:, cover_image: nil, tagline: nil, thumbnail: nil, request_options: {})
|
|
15
|
+
# @overload create(experience_id:, title:, certificate_after_completion_enabled: nil, cover_image: nil, order: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, visibility: nil, request_options: {})
|
|
13
16
|
#
|
|
14
17
|
# @param experience_id [String] The ID of the experience to create the course in
|
|
15
18
|
#
|
|
16
19
|
# @param title [String] The title of the course
|
|
17
20
|
#
|
|
21
|
+
# @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
|
|
22
|
+
#
|
|
18
23
|
# @param cover_image [String, nil] The cover image URL of the course
|
|
19
24
|
#
|
|
25
|
+
# @param order [String, nil] The decimal order position of the course within its experience. If not provided,
|
|
26
|
+
#
|
|
27
|
+
# @param require_completing_lessons_in_order [Boolean, nil] Whether the course requires students to complete the previous lesson before movi
|
|
28
|
+
#
|
|
20
29
|
# @param tagline [String, nil] The tagline of the course
|
|
21
30
|
#
|
|
22
|
-
# @param thumbnail [WhopSDK::Models::CourseCreateParams::Thumbnail, nil] The thumbnail for the course in png, jpeg, or gif format
|
|
31
|
+
# @param thumbnail [WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the course in png, jpeg, or gif format
|
|
32
|
+
#
|
|
33
|
+
# @param visibility [Symbol, WhopSDK::Models::CourseVisibilities, nil] The available visibilities for a course. Determines how / whether a course is vi
|
|
23
34
|
#
|
|
24
35
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
25
36
|
#
|
|
@@ -45,7 +56,8 @@ module WhopSDK
|
|
|
45
56
|
#
|
|
46
57
|
# @overload retrieve(id, request_options: {})
|
|
47
58
|
#
|
|
48
|
-
# @param id [String]
|
|
59
|
+
# @param id [String] The ID of the course
|
|
60
|
+
#
|
|
49
61
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
50
62
|
#
|
|
51
63
|
# @return [WhopSDK::Models::Course]
|
|
@@ -69,9 +81,9 @@ module WhopSDK
|
|
|
69
81
|
#
|
|
70
82
|
# - `courses:update`
|
|
71
83
|
#
|
|
72
|
-
# @overload update(id, certificate_after_completion_enabled: nil, chapters: nil, cover_image: nil, description: nil, language: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, title: nil, request_options: {})
|
|
84
|
+
# @overload update(id, certificate_after_completion_enabled: nil, chapters: nil, cover_image: nil, description: nil, language: nil, order: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, title: nil, visibility: nil, request_options: {})
|
|
73
85
|
#
|
|
74
|
-
# @param id [String]
|
|
86
|
+
# @param id [String] The ID of the course to update
|
|
75
87
|
#
|
|
76
88
|
# @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
|
|
77
89
|
#
|
|
@@ -83,14 +95,18 @@ module WhopSDK
|
|
|
83
95
|
#
|
|
84
96
|
# @param language [Symbol, WhopSDK::Models::Languages, nil] The available languages for a course
|
|
85
97
|
#
|
|
98
|
+
# @param order [String, nil] The decimal order position of the course within its experience. Use fractional v
|
|
99
|
+
#
|
|
86
100
|
# @param require_completing_lessons_in_order [Boolean, nil] Whether the course requires students to complete the previous lesson before movi
|
|
87
101
|
#
|
|
88
102
|
# @param tagline [String, nil] A short tagline for the course
|
|
89
103
|
#
|
|
90
|
-
# @param thumbnail [WhopSDK::Models::CourseUpdateParams::Thumbnail, nil] The thumbnail for the course in png, jpeg, or gif format
|
|
104
|
+
# @param thumbnail [WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the course in png, jpeg, or gif format
|
|
91
105
|
#
|
|
92
106
|
# @param title [String, nil] The title of the course
|
|
93
107
|
#
|
|
108
|
+
# @param visibility [Symbol, WhopSDK::Models::CourseVisibilities, nil] The available visibilities for a course. Determines how / whether a course is vi
|
|
109
|
+
#
|
|
94
110
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
95
111
|
#
|
|
96
112
|
# @return [WhopSDK::Models::Course]
|
|
@@ -152,7 +168,8 @@ module WhopSDK
|
|
|
152
168
|
#
|
|
153
169
|
# @overload delete(id, request_options: {})
|
|
154
170
|
#
|
|
155
|
-
# @param id [String]
|
|
171
|
+
# @param id [String] The ID of the course to delete
|
|
172
|
+
#
|
|
156
173
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
157
174
|
#
|
|
158
175
|
# @return [Boolean]
|
|
@@ -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,11 +59,11 @@ 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
|
#
|
|
65
|
-
# @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo, nil] The logo for the experience
|
|
66
|
+
# @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the experience
|
|
66
67
|
#
|
|
67
68
|
# @param name [String, nil] The name of the experience.
|
|
68
69
|
#
|
|
@@ -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
|
#
|
|
@@ -16,7 +16,7 @@ module WhopSDK
|
|
|
16
16
|
#
|
|
17
17
|
# @param experience_id [String] The experience to create this post in
|
|
18
18
|
#
|
|
19
|
-
# @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil] The attachments for this post
|
|
19
|
+
# @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
|
|
20
20
|
#
|
|
21
21
|
# @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
|
|
22
22
|
#
|
|
@@ -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,9 +81,9 @@ 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
|
-
# @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>, nil] The attachments for this post
|
|
86
|
+
# @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
|
|
86
87
|
#
|
|
87
88
|
# @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
|
|
88
89
|
#
|
|
@@ -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
|
#
|
|
@@ -13,7 +13,7 @@ module WhopSDK
|
|
|
13
13
|
# - `invoice:create`
|
|
14
14
|
# - `plan:basic:read`
|
|
15
15
|
#
|
|
16
|
-
# @overload create(collection_method:, company_id:, due_date:, plan:,
|
|
16
|
+
# @overload create(collection_method:, company_id:, due_date:, member_id:, plan:, product:, email_address:, product_id:, charge_buyer_fee: nil, customer_name: nil, payment_token_id: nil, request_options: {})
|
|
17
17
|
#
|
|
18
18
|
# @param collection_method [Symbol, WhopSDK::Models::CollectionMethod] The method of collection for this invoice. If using charge_automatically, you mu
|
|
19
19
|
#
|
|
@@ -21,25 +21,25 @@ module WhopSDK
|
|
|
21
21
|
#
|
|
22
22
|
# @param due_date [Time] The date the invoice is due, if applicable.
|
|
23
23
|
#
|
|
24
|
-
# @param
|
|
24
|
+
# @param member_id [String] The member ID to create this invoice for. Include this if you want to create an
|
|
25
25
|
#
|
|
26
|
-
# @param
|
|
26
|
+
# @param plan [WhopSDK::Models::InvoiceCreateParams::Plan] The properties of the plan to create for this invoice.
|
|
27
27
|
#
|
|
28
|
-
# @param
|
|
28
|
+
# @param product [WhopSDK::Models::InvoiceCreateParams::Product] The properties of the product to create for this invoice. Include this if you wa
|
|
29
29
|
#
|
|
30
|
-
# @param email_address [String
|
|
30
|
+
# @param email_address [String] The email address to create this invoice for. This is required if you want to cr
|
|
31
31
|
#
|
|
32
|
-
# @param
|
|
32
|
+
# @param product_id [String] The product ID to create this invoice for. Include this if you want to create an
|
|
33
33
|
#
|
|
34
|
-
# @param
|
|
34
|
+
# @param charge_buyer_fee [Boolean, nil] Whether or not to charge the customer a buyer fee.
|
|
35
35
|
#
|
|
36
|
-
# @param
|
|
36
|
+
# @param customer_name [String, nil] The name of the customer to create this invoice for. This is required if you wan
|
|
37
37
|
#
|
|
38
|
-
# @param
|
|
38
|
+
# @param payment_token_id [String, nil] The payment token ID to use for this invoice. If using charge_automatically, you
|
|
39
39
|
#
|
|
40
40
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
41
41
|
#
|
|
42
|
-
# @return [WhopSDK::Models::
|
|
42
|
+
# @return [WhopSDK::Models::Invoice]
|
|
43
43
|
#
|
|
44
44
|
# @see WhopSDK::Models::InvoiceCreateParams
|
|
45
45
|
def create(params)
|
|
@@ -48,7 +48,7 @@ module WhopSDK
|
|
|
48
48
|
method: :post,
|
|
49
49
|
path: "invoices",
|
|
50
50
|
body: parsed,
|
|
51
|
-
model: WhopSDK::
|
|
51
|
+
model: WhopSDK::Invoice,
|
|
52
52
|
options: options
|
|
53
53
|
)
|
|
54
54
|
end
|
|
@@ -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]
|