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
|
@@ -12,9 +12,19 @@ module WhopSDK
|
|
|
12
12
|
params(
|
|
13
13
|
experience_id: String,
|
|
14
14
|
title: String,
|
|
15
|
+
certificate_after_completion_enabled: T.nilable(T::Boolean),
|
|
15
16
|
cover_image: T.nilable(String),
|
|
17
|
+
order: T.nilable(String),
|
|
18
|
+
require_completing_lessons_in_order: T.nilable(T::Boolean),
|
|
16
19
|
tagline: T.nilable(String),
|
|
17
|
-
thumbnail:
|
|
20
|
+
thumbnail:
|
|
21
|
+
T.nilable(
|
|
22
|
+
T.any(
|
|
23
|
+
WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID::OrHash,
|
|
24
|
+
WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID::OrHash
|
|
25
|
+
)
|
|
26
|
+
),
|
|
27
|
+
visibility: T.nilable(WhopSDK::CourseVisibilities::OrSymbol),
|
|
18
28
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
19
29
|
).returns(WhopSDK::Course)
|
|
20
30
|
end
|
|
@@ -23,12 +33,25 @@ module WhopSDK
|
|
|
23
33
|
experience_id:,
|
|
24
34
|
# The title of the course
|
|
25
35
|
title:,
|
|
36
|
+
# Whether the course will award its students a PDF certificate after completing
|
|
37
|
+
# all lessons
|
|
38
|
+
certificate_after_completion_enabled: nil,
|
|
26
39
|
# The cover image URL of the course
|
|
27
40
|
cover_image: nil,
|
|
41
|
+
# The decimal order position of the course within its experience. If not provided,
|
|
42
|
+
# it will be set to the next sequential order. Use fractional values (e.g., 1.5)
|
|
43
|
+
# to place between existing courses.
|
|
44
|
+
order: nil,
|
|
45
|
+
# Whether the course requires students to complete the previous lesson before
|
|
46
|
+
# moving on to the next one
|
|
47
|
+
require_completing_lessons_in_order: nil,
|
|
28
48
|
# The tagline of the course
|
|
29
49
|
tagline: nil,
|
|
30
50
|
# The thumbnail for the course in png, jpeg, or gif format
|
|
31
51
|
thumbnail: nil,
|
|
52
|
+
# The available visibilities for a course. Determines how / whether a course is
|
|
53
|
+
# visible to users.
|
|
54
|
+
visibility: nil,
|
|
32
55
|
request_options: {}
|
|
33
56
|
)
|
|
34
57
|
end
|
|
@@ -44,7 +67,11 @@ module WhopSDK
|
|
|
44
67
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
45
68
|
).returns(WhopSDK::Course)
|
|
46
69
|
end
|
|
47
|
-
def retrieve(
|
|
70
|
+
def retrieve(
|
|
71
|
+
# The ID of the course
|
|
72
|
+
id,
|
|
73
|
+
request_options: {}
|
|
74
|
+
)
|
|
48
75
|
end
|
|
49
76
|
|
|
50
77
|
# Updates a course
|
|
@@ -61,14 +88,23 @@ module WhopSDK
|
|
|
61
88
|
cover_image: T.nilable(String),
|
|
62
89
|
description: T.nilable(String),
|
|
63
90
|
language: T.nilable(WhopSDK::Languages::OrSymbol),
|
|
91
|
+
order: T.nilable(String),
|
|
64
92
|
require_completing_lessons_in_order: T.nilable(T::Boolean),
|
|
65
93
|
tagline: T.nilable(String),
|
|
66
|
-
thumbnail:
|
|
94
|
+
thumbnail:
|
|
95
|
+
T.nilable(
|
|
96
|
+
T.any(
|
|
97
|
+
WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID::OrHash,
|
|
98
|
+
WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithID::OrHash
|
|
99
|
+
)
|
|
100
|
+
),
|
|
67
101
|
title: T.nilable(String),
|
|
102
|
+
visibility: T.nilable(WhopSDK::CourseVisibilities::OrSymbol),
|
|
68
103
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
69
104
|
).returns(WhopSDK::Course)
|
|
70
105
|
end
|
|
71
106
|
def update(
|
|
107
|
+
# The ID of the course to update
|
|
72
108
|
id,
|
|
73
109
|
# Whether the course will award its students a PDF certificate after completing
|
|
74
110
|
# all lessons
|
|
@@ -81,6 +117,9 @@ module WhopSDK
|
|
|
81
117
|
description: nil,
|
|
82
118
|
# The available languages for a course
|
|
83
119
|
language: nil,
|
|
120
|
+
# The decimal order position of the course within its experience. Use fractional
|
|
121
|
+
# values (e.g., 1.5) to place between existing courses.
|
|
122
|
+
order: nil,
|
|
84
123
|
# Whether the course requires students to complete the previous lesson before
|
|
85
124
|
# moving on to the next one
|
|
86
125
|
require_completing_lessons_in_order: nil,
|
|
@@ -90,6 +129,9 @@ module WhopSDK
|
|
|
90
129
|
thumbnail: nil,
|
|
91
130
|
# The title of the course
|
|
92
131
|
title: nil,
|
|
132
|
+
# The available visibilities for a course. Determines how / whether a course is
|
|
133
|
+
# visible to users.
|
|
134
|
+
visibility: nil,
|
|
93
135
|
request_options: {}
|
|
94
136
|
)
|
|
95
137
|
end
|
|
@@ -140,7 +182,11 @@ module WhopSDK
|
|
|
140
182
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
141
183
|
).returns(T::Boolean)
|
|
142
184
|
end
|
|
143
|
-
def delete(
|
|
185
|
+
def delete(
|
|
186
|
+
# The ID of the course to delete
|
|
187
|
+
id,
|
|
188
|
+
request_options: {}
|
|
189
|
+
)
|
|
144
190
|
end
|
|
145
191
|
|
|
146
192
|
# @api private
|
|
@@ -15,7 +15,11 @@ module WhopSDK
|
|
|
15
15
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
16
16
|
).returns(WhopSDK::Entry)
|
|
17
17
|
end
|
|
18
|
-
def retrieve(
|
|
18
|
+
def retrieve(
|
|
19
|
+
# The ID of the entry
|
|
20
|
+
id,
|
|
21
|
+
request_options: {}
|
|
22
|
+
)
|
|
19
23
|
end
|
|
20
24
|
|
|
21
25
|
# Lists entries for a company
|
|
@@ -77,7 +81,11 @@ module WhopSDK
|
|
|
77
81
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
78
82
|
).returns(WhopSDK::Models::EntryApproveResponse)
|
|
79
83
|
end
|
|
80
|
-
def approve(
|
|
84
|
+
def approve(
|
|
85
|
+
# The ID of the entry to approve.
|
|
86
|
+
id,
|
|
87
|
+
request_options: {}
|
|
88
|
+
)
|
|
81
89
|
end
|
|
82
90
|
|
|
83
91
|
# Deny an entry
|
|
@@ -93,7 +101,11 @@ module WhopSDK
|
|
|
93
101
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
94
102
|
).returns(WhopSDK::Entry)
|
|
95
103
|
end
|
|
96
|
-
def deny(
|
|
104
|
+
def deny(
|
|
105
|
+
# The ID of the entry
|
|
106
|
+
id,
|
|
107
|
+
request_options: {}
|
|
108
|
+
)
|
|
97
109
|
end
|
|
98
110
|
|
|
99
111
|
# @api private
|
|
@@ -35,7 +35,11 @@ module WhopSDK
|
|
|
35
35
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
36
36
|
).returns(WhopSDK::Experience)
|
|
37
37
|
end
|
|
38
|
-
def retrieve(
|
|
38
|
+
def retrieve(
|
|
39
|
+
# The ID of the experience
|
|
40
|
+
id,
|
|
41
|
+
request_options: {}
|
|
42
|
+
)
|
|
39
43
|
end
|
|
40
44
|
|
|
41
45
|
# Required permissions:
|
|
@@ -46,7 +50,13 @@ module WhopSDK
|
|
|
46
50
|
id: String,
|
|
47
51
|
access_level:
|
|
48
52
|
T.nilable(WhopSDK::ExperienceUpdateParams::AccessLevel::OrSymbol),
|
|
49
|
-
logo:
|
|
53
|
+
logo:
|
|
54
|
+
T.nilable(
|
|
55
|
+
T.any(
|
|
56
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID::OrHash,
|
|
57
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID::OrHash
|
|
58
|
+
)
|
|
59
|
+
),
|
|
50
60
|
name: T.nilable(String),
|
|
51
61
|
order: T.nilable(String),
|
|
52
62
|
section_id: T.nilable(String),
|
|
@@ -54,6 +64,7 @@ module WhopSDK
|
|
|
54
64
|
).returns(WhopSDK::Experience)
|
|
55
65
|
end
|
|
56
66
|
def update(
|
|
67
|
+
# The id of the experience to update.
|
|
57
68
|
id,
|
|
58
69
|
# The different access levels for experiences (PUBLIC IS NEVER USED ANYMORE).
|
|
59
70
|
access_level: nil,
|
|
@@ -116,7 +127,11 @@ module WhopSDK
|
|
|
116
127
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
117
128
|
).returns(T::Boolean)
|
|
118
129
|
end
|
|
119
|
-
def delete(
|
|
130
|
+
def delete(
|
|
131
|
+
# The internal ID of the experience to delete.
|
|
132
|
+
id,
|
|
133
|
+
request_options: {}
|
|
134
|
+
)
|
|
120
135
|
end
|
|
121
136
|
|
|
122
137
|
# Adds an experience to an product, making it accessible to the product's
|
|
@@ -133,6 +148,7 @@ module WhopSDK
|
|
|
133
148
|
).returns(WhopSDK::Experience)
|
|
134
149
|
end
|
|
135
150
|
def attach(
|
|
151
|
+
# The ID of the Experience to be added to an Access Pass.
|
|
136
152
|
id,
|
|
137
153
|
# The ID of the Access Pass to add the Experience to.
|
|
138
154
|
product_id:,
|
|
@@ -154,6 +170,7 @@ module WhopSDK
|
|
|
154
170
|
).returns(WhopSDK::Experience)
|
|
155
171
|
end
|
|
156
172
|
def detach(
|
|
173
|
+
# The ID of the Experience to be added to an Access Pass.
|
|
157
174
|
id,
|
|
158
175
|
# The ID of the Access Pass to add the Experience to.
|
|
159
176
|
product_id:,
|
|
@@ -179,6 +196,7 @@ module WhopSDK
|
|
|
179
196
|
).returns(WhopSDK::Experience)
|
|
180
197
|
end
|
|
181
198
|
def duplicate(
|
|
199
|
+
# The ID of the experience to duplicate
|
|
182
200
|
id,
|
|
183
201
|
# The name of the new experience
|
|
184
202
|
name: nil,
|
|
@@ -13,7 +13,12 @@ module WhopSDK
|
|
|
13
13
|
experience_id: String,
|
|
14
14
|
attachments:
|
|
15
15
|
T.nilable(
|
|
16
|
-
T::Array[
|
|
16
|
+
T::Array[
|
|
17
|
+
T.any(
|
|
18
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
19
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID::OrHash
|
|
20
|
+
)
|
|
21
|
+
]
|
|
17
22
|
),
|
|
18
23
|
content: T.nilable(String),
|
|
19
24
|
is_mention: T.nilable(T::Boolean),
|
|
@@ -67,7 +72,11 @@ module WhopSDK
|
|
|
67
72
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
68
73
|
).returns(WhopSDK::ForumPost)
|
|
69
74
|
end
|
|
70
|
-
def retrieve(
|
|
75
|
+
def retrieve(
|
|
76
|
+
# The ID of the forum post
|
|
77
|
+
id,
|
|
78
|
+
request_options: {}
|
|
79
|
+
)
|
|
71
80
|
end
|
|
72
81
|
|
|
73
82
|
# Update an existing forum post
|
|
@@ -76,7 +85,12 @@ module WhopSDK
|
|
|
76
85
|
id: String,
|
|
77
86
|
attachments:
|
|
78
87
|
T.nilable(
|
|
79
|
-
T::Array[
|
|
88
|
+
T::Array[
|
|
89
|
+
T.any(
|
|
90
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
91
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID::OrHash
|
|
92
|
+
)
|
|
93
|
+
]
|
|
80
94
|
),
|
|
81
95
|
content: T.nilable(String),
|
|
82
96
|
is_pinned: T.nilable(T::Boolean),
|
|
@@ -85,6 +99,7 @@ module WhopSDK
|
|
|
85
99
|
).returns(WhopSDK::ForumPost)
|
|
86
100
|
end
|
|
87
101
|
def update(
|
|
102
|
+
# The ID of the forum post to update
|
|
88
103
|
id,
|
|
89
104
|
# The attachments for this post
|
|
90
105
|
attachments: nil,
|
|
@@ -14,7 +14,11 @@ module WhopSDK
|
|
|
14
14
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
15
15
|
).returns(WhopSDK::Forum)
|
|
16
16
|
end
|
|
17
|
-
def retrieve(
|
|
17
|
+
def retrieve(
|
|
18
|
+
# The ID of the forum to fetch, it can be an experience ID or a forum ID
|
|
19
|
+
id,
|
|
20
|
+
request_options: {}
|
|
21
|
+
)
|
|
18
22
|
end
|
|
19
23
|
|
|
20
24
|
# Updates a forum
|
|
@@ -33,6 +37,7 @@ module WhopSDK
|
|
|
33
37
|
).returns(WhopSDK::Forum)
|
|
34
38
|
end
|
|
35
39
|
def update(
|
|
40
|
+
# Experience ID (exp\_\*) or Forum external ID
|
|
36
41
|
id,
|
|
37
42
|
# Email notification preference option for a forum feed
|
|
38
43
|
email_notification_preference: nil,
|
|
@@ -14,16 +14,16 @@ module WhopSDK
|
|
|
14
14
|
collection_method: WhopSDK::CollectionMethod::OrSymbol,
|
|
15
15
|
company_id: String,
|
|
16
16
|
due_date: Time,
|
|
17
|
+
member_id: String,
|
|
17
18
|
plan: WhopSDK::InvoiceCreateParams::Plan::OrHash,
|
|
19
|
+
product: WhopSDK::InvoiceCreateParams::Product::OrHash,
|
|
20
|
+
email_address: String,
|
|
21
|
+
product_id: String,
|
|
18
22
|
charge_buyer_fee: T.nilable(T::Boolean),
|
|
19
23
|
customer_name: T.nilable(String),
|
|
20
|
-
email_address: T.nilable(String),
|
|
21
|
-
member_id: T.nilable(String),
|
|
22
24
|
payment_token_id: T.nilable(String),
|
|
23
|
-
product: T.nilable(WhopSDK::InvoiceCreateParams::Product::OrHash),
|
|
24
|
-
product_id: T.nilable(String),
|
|
25
25
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
26
|
-
).returns(WhopSDK::
|
|
26
|
+
).returns(WhopSDK::Invoice)
|
|
27
27
|
end
|
|
28
28
|
def create(
|
|
29
29
|
# The method of collection for this invoice. If using charge_automatically, you
|
|
@@ -33,30 +33,30 @@ module WhopSDK
|
|
|
33
33
|
company_id:,
|
|
34
34
|
# The date the invoice is due, if applicable.
|
|
35
35
|
due_date:,
|
|
36
|
+
# The member ID to create this invoice for. Include this if you want to create an
|
|
37
|
+
# invoice for an existing member. If you do not have a member ID, you must provide
|
|
38
|
+
# an email_address and customer_name.
|
|
39
|
+
member_id:,
|
|
36
40
|
# The properties of the plan to create for this invoice.
|
|
37
41
|
plan:,
|
|
42
|
+
# The properties of the product to create for this invoice. Include this if you
|
|
43
|
+
# want to create an invoice for a new product.
|
|
44
|
+
product:,
|
|
45
|
+
# The email address to create this invoice for. This is required if you want to
|
|
46
|
+
# create an invoice for a user who does not have a member of your company yet.
|
|
47
|
+
email_address:,
|
|
48
|
+
# The product ID to create this invoice for. Include this if you want to create an
|
|
49
|
+
# invoice for an existing product.
|
|
50
|
+
product_id:,
|
|
38
51
|
# Whether or not to charge the customer a buyer fee.
|
|
39
52
|
charge_buyer_fee: nil,
|
|
40
53
|
# The name of the customer to create this invoice for. This is required if you
|
|
41
54
|
# want to create an invoice for a customer who does not have a member of your
|
|
42
55
|
# company yet.
|
|
43
56
|
customer_name: nil,
|
|
44
|
-
# The email address to create this invoice for. This is required if you want to
|
|
45
|
-
# create an invoice for a user who does not have a member of your company yet.
|
|
46
|
-
email_address: nil,
|
|
47
|
-
# The member ID to create this invoice for. Include this if you want to create an
|
|
48
|
-
# invoice for an existing member. If you do not have a member ID, you must provide
|
|
49
|
-
# an email_address and customer_name.
|
|
50
|
-
member_id: nil,
|
|
51
57
|
# The payment token ID to use for this invoice. If using charge_automatically, you
|
|
52
58
|
# must provide a payment_token.
|
|
53
59
|
payment_token_id: nil,
|
|
54
|
-
# The properties of the product to create for this invoice. Include this if you
|
|
55
|
-
# want to create an invoice for a new product.
|
|
56
|
-
product: nil,
|
|
57
|
-
# The product ID to create this invoice for. Include this if you want to create an
|
|
58
|
-
# invoice for an existing product.
|
|
59
|
-
product_id: nil,
|
|
60
60
|
request_options: {}
|
|
61
61
|
)
|
|
62
62
|
end
|
|
@@ -73,7 +73,11 @@ module WhopSDK
|
|
|
73
73
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
74
74
|
).returns(WhopSDK::Invoice)
|
|
75
75
|
end
|
|
76
|
-
def retrieve(
|
|
76
|
+
def retrieve(
|
|
77
|
+
# The ID of the invoice or a token
|
|
78
|
+
id,
|
|
79
|
+
request_options: {}
|
|
80
|
+
)
|
|
77
81
|
end
|
|
78
82
|
|
|
79
83
|
# Lists invoices
|
|
@@ -87,11 +91,14 @@ module WhopSDK
|
|
|
87
91
|
company_id: String,
|
|
88
92
|
after: T.nilable(String),
|
|
89
93
|
before: T.nilable(String),
|
|
94
|
+
collection_methods:
|
|
95
|
+
T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]),
|
|
90
96
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
91
|
-
filters: T.nilable(WhopSDK::InvoiceListParams::Filters::OrHash),
|
|
92
97
|
first: T.nilable(Integer),
|
|
93
98
|
last: T.nilable(Integer),
|
|
94
99
|
order: T.nilable(WhopSDK::InvoiceListParams::Order::OrSymbol),
|
|
100
|
+
product_ids: T.nilable(T::Array[String]),
|
|
101
|
+
statuses: T.nilable(T::Array[WhopSDK::InvoiceStatus::OrSymbol]),
|
|
95
102
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
96
103
|
).returns(WhopSDK::Internal::CursorPage[WhopSDK::InvoiceListItem])
|
|
97
104
|
end
|
|
@@ -102,16 +109,20 @@ module WhopSDK
|
|
|
102
109
|
after: nil,
|
|
103
110
|
# Returns the elements in the list that come before the specified cursor.
|
|
104
111
|
before: nil,
|
|
112
|
+
# Filter invoices by their collection method
|
|
113
|
+
collection_methods: nil,
|
|
105
114
|
# The direction of the sort.
|
|
106
115
|
direction: nil,
|
|
107
|
-
# The filters to apply to the invoices
|
|
108
|
-
filters: nil,
|
|
109
116
|
# Returns the first _n_ elements from the list.
|
|
110
117
|
first: nil,
|
|
111
118
|
# Returns the last _n_ elements from the list.
|
|
112
119
|
last: nil,
|
|
113
120
|
# Which columns can be used to sort.
|
|
114
121
|
order: nil,
|
|
122
|
+
# Return only invoices created for these specific product ids
|
|
123
|
+
product_ids: nil,
|
|
124
|
+
# The statuses to filter the invoices by
|
|
125
|
+
statuses: nil,
|
|
115
126
|
request_options: {}
|
|
116
127
|
)
|
|
117
128
|
end
|
|
@@ -127,7 +138,11 @@ module WhopSDK
|
|
|
127
138
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
128
139
|
).returns(T::Boolean)
|
|
129
140
|
end
|
|
130
|
-
def void(
|
|
141
|
+
def void(
|
|
142
|
+
# The ID of the invoice to void
|
|
143
|
+
id,
|
|
144
|
+
request_options: {}
|
|
145
|
+
)
|
|
131
146
|
end
|
|
132
147
|
|
|
133
148
|
# @api private
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Resources
|
|
5
5
|
class LedgerAccounts
|
|
6
|
-
# Retrieves a ledger account by ID
|
|
6
|
+
# Retrieves a ledger account by its ID, company ID or user ID
|
|
7
7
|
#
|
|
8
8
|
# Required permissions:
|
|
9
9
|
#
|
|
@@ -14,7 +14,12 @@ module WhopSDK
|
|
|
14
14
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
15
15
|
).returns(WhopSDK::Models::LedgerAccountRetrieveResponse)
|
|
16
16
|
end
|
|
17
|
-
def retrieve(
|
|
17
|
+
def retrieve(
|
|
18
|
+
# Either a User ID, Company ID, or LedgerAccount ID (user_xxx, biz_xxx, or
|
|
19
|
+
# ldgr_xxx)
|
|
20
|
+
id,
|
|
21
|
+
request_options: {}
|
|
22
|
+
)
|
|
18
23
|
end
|
|
19
24
|
|
|
20
25
|
# @api private
|
|
@@ -16,7 +16,11 @@ module WhopSDK
|
|
|
16
16
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
17
17
|
).returns(WhopSDK::Models::MemberRetrieveResponse)
|
|
18
18
|
end
|
|
19
|
-
def retrieve(
|
|
19
|
+
def retrieve(
|
|
20
|
+
# The ID of the member
|
|
21
|
+
id,
|
|
22
|
+
request_options: {}
|
|
23
|
+
)
|
|
20
24
|
end
|
|
21
25
|
|
|
22
26
|
# List the members of a company
|
|
@@ -30,7 +34,6 @@ module WhopSDK
|
|
|
30
34
|
params(
|
|
31
35
|
company_id: String,
|
|
32
36
|
access_level: T.nilable(WhopSDK::AccessLevel::OrSymbol),
|
|
33
|
-
access_pass_ids: T.nilable(T::Array[String]),
|
|
34
37
|
after: T.nilable(String),
|
|
35
38
|
before: T.nilable(String),
|
|
36
39
|
created_after: T.nilable(Time),
|
|
@@ -42,6 +45,7 @@ module WhopSDK
|
|
|
42
45
|
T.nilable(T::Array[WhopSDK::MemberMostRecentActions::OrSymbol]),
|
|
43
46
|
order: T.nilable(WhopSDK::MemberListParams::Order::OrSymbol),
|
|
44
47
|
plan_ids: T.nilable(T::Array[String]),
|
|
48
|
+
product_ids: T.nilable(T::Array[String]),
|
|
45
49
|
promo_code_ids: T.nilable(T::Array[String]),
|
|
46
50
|
query: T.nilable(String),
|
|
47
51
|
statuses: T.nilable(T::Array[WhopSDK::MemberStatuses::OrSymbol]),
|
|
@@ -54,10 +58,8 @@ module WhopSDK
|
|
|
54
58
|
def list(
|
|
55
59
|
# The ID of the company to list members for
|
|
56
60
|
company_id:,
|
|
57
|
-
# The access level a given user (or company) has to
|
|
61
|
+
# The access level a given user (or company) has to a product or company.
|
|
58
62
|
access_level: nil,
|
|
59
|
-
# The access pass IDs to filter the members by
|
|
60
|
-
access_pass_ids: nil,
|
|
61
63
|
# Returns the elements in the list that come after the specified cursor.
|
|
62
64
|
after: nil,
|
|
63
65
|
# Returns the elements in the list that come before the specified cursor.
|
|
@@ -78,6 +80,8 @@ module WhopSDK
|
|
|
78
80
|
order: nil,
|
|
79
81
|
# The plan IDs to filter the members by
|
|
80
82
|
plan_ids: nil,
|
|
83
|
+
# The product IDs to filter the members by
|
|
84
|
+
product_ids: nil,
|
|
81
85
|
# The promo code IDs to filter the members by
|
|
82
86
|
promo_code_ids: nil,
|
|
83
87
|
# The name, username, or email to filter the members by. The email filter will
|
|
@@ -14,7 +14,11 @@ module WhopSDK
|
|
|
14
14
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
15
15
|
).returns(WhopSDK::Membership)
|
|
16
16
|
end
|
|
17
|
-
def retrieve(
|
|
17
|
+
def retrieve(
|
|
18
|
+
# The ID of the membership or a license key
|
|
19
|
+
id,
|
|
20
|
+
request_options: {}
|
|
21
|
+
)
|
|
18
22
|
end
|
|
19
23
|
|
|
20
24
|
# Update a membership
|
|
@@ -31,6 +35,7 @@ module WhopSDK
|
|
|
31
35
|
).returns(WhopSDK::Membership)
|
|
32
36
|
end
|
|
33
37
|
def update(
|
|
38
|
+
# The ID of the membership.
|
|
34
39
|
id,
|
|
35
40
|
# The metadata to update the membership with.
|
|
36
41
|
metadata: nil,
|
|
@@ -45,7 +50,6 @@ module WhopSDK
|
|
|
45
50
|
# - `member:basic:read`
|
|
46
51
|
sig do
|
|
47
52
|
params(
|
|
48
|
-
access_pass_ids: T.nilable(T::Array[String]),
|
|
49
53
|
after: T.nilable(String),
|
|
50
54
|
before: T.nilable(String),
|
|
51
55
|
cancel_options:
|
|
@@ -60,6 +64,7 @@ module WhopSDK
|
|
|
60
64
|
last: T.nilable(Integer),
|
|
61
65
|
order: T.nilable(WhopSDK::MembershipListParams::Order::OrSymbol),
|
|
62
66
|
plan_ids: T.nilable(T::Array[String]),
|
|
67
|
+
product_ids: T.nilable(T::Array[String]),
|
|
63
68
|
promo_code_ids: T.nilable(T::Array[String]),
|
|
64
69
|
statuses: T.nilable(T::Array[WhopSDK::MembershipStatus::OrSymbol]),
|
|
65
70
|
user_ids: T.nilable(T::Array[String]),
|
|
@@ -69,8 +74,6 @@ module WhopSDK
|
|
|
69
74
|
)
|
|
70
75
|
end
|
|
71
76
|
def list(
|
|
72
|
-
# The access pass IDs to filter the memberships by
|
|
73
|
-
access_pass_ids: nil,
|
|
74
77
|
# Returns the elements in the list that come after the specified cursor.
|
|
75
78
|
after: nil,
|
|
76
79
|
# Returns the elements in the list that come before the specified cursor.
|
|
@@ -93,6 +96,8 @@ module WhopSDK
|
|
|
93
96
|
order: nil,
|
|
94
97
|
# The plan IDs to filter the memberships by
|
|
95
98
|
plan_ids: nil,
|
|
99
|
+
# The product IDs to filter the memberships by
|
|
100
|
+
product_ids: nil,
|
|
96
101
|
# The promo code IDs to filter the memberships by
|
|
97
102
|
promo_code_ids: nil,
|
|
98
103
|
# The membership status to filter the memberships by
|
|
@@ -121,6 +126,7 @@ module WhopSDK
|
|
|
121
126
|
).returns(WhopSDK::Membership)
|
|
122
127
|
end
|
|
123
128
|
def cancel(
|
|
129
|
+
# The ID of the membership.
|
|
124
130
|
id,
|
|
125
131
|
# The mode of cancellation for a membership
|
|
126
132
|
cancellation_mode: nil,
|
|
@@ -142,6 +148,7 @@ module WhopSDK
|
|
|
142
148
|
).returns(WhopSDK::Membership)
|
|
143
149
|
end
|
|
144
150
|
def pause(
|
|
151
|
+
# The ID of the membership you want to pause.
|
|
145
152
|
id,
|
|
146
153
|
# Whether to void past_due payments associated with the membership to prevent
|
|
147
154
|
# future payment attempts.
|
|
@@ -162,7 +169,11 @@ module WhopSDK
|
|
|
162
169
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
163
170
|
).returns(WhopSDK::Membership)
|
|
164
171
|
end
|
|
165
|
-
def resume(
|
|
172
|
+
def resume(
|
|
173
|
+
# The ID of the membership you want to resume.
|
|
174
|
+
id,
|
|
175
|
+
request_options: {}
|
|
176
|
+
)
|
|
166
177
|
end
|
|
167
178
|
|
|
168
179
|
# @api private
|
|
@@ -14,7 +14,12 @@ module WhopSDK
|
|
|
14
14
|
content: String,
|
|
15
15
|
attachments:
|
|
16
16
|
T.nilable(
|
|
17
|
-
T::Array[
|
|
17
|
+
T::Array[
|
|
18
|
+
T.any(
|
|
19
|
+
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
20
|
+
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID::OrHash
|
|
21
|
+
)
|
|
22
|
+
]
|
|
18
23
|
),
|
|
19
24
|
poll: T.nilable(WhopSDK::MessageCreateParams::Poll::OrHash),
|
|
20
25
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -44,7 +49,11 @@ module WhopSDK
|
|
|
44
49
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
45
50
|
).returns(WhopSDK::Message)
|
|
46
51
|
end
|
|
47
|
-
def retrieve(
|
|
52
|
+
def retrieve(
|
|
53
|
+
# The ID of the message
|
|
54
|
+
id,
|
|
55
|
+
request_options: {}
|
|
56
|
+
)
|
|
48
57
|
end
|
|
49
58
|
|
|
50
59
|
# Updates an existing message
|
|
@@ -53,7 +62,12 @@ module WhopSDK
|
|
|
53
62
|
id: String,
|
|
54
63
|
attachments:
|
|
55
64
|
T.nilable(
|
|
56
|
-
T::Array[
|
|
65
|
+
T::Array[
|
|
66
|
+
T.any(
|
|
67
|
+
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
68
|
+
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID::OrHash
|
|
69
|
+
)
|
|
70
|
+
]
|
|
57
71
|
),
|
|
58
72
|
content: T.nilable(String),
|
|
59
73
|
is_pinned: T.nilable(T::Boolean),
|
|
@@ -61,6 +75,7 @@ module WhopSDK
|
|
|
61
75
|
).returns(WhopSDK::Message)
|
|
62
76
|
end
|
|
63
77
|
def update(
|
|
78
|
+
# The ID of the message to update
|
|
64
79
|
id,
|
|
65
80
|
# The attachments for this message
|
|
66
81
|
attachments: nil,
|
|
@@ -20,7 +20,11 @@ module WhopSDK
|
|
|
20
20
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
21
21
|
).returns(WhopSDK::Payment)
|
|
22
22
|
end
|
|
23
|
-
def retrieve(
|
|
23
|
+
def retrieve(
|
|
24
|
+
# The ID of the payment
|
|
25
|
+
id,
|
|
26
|
+
request_options: {}
|
|
27
|
+
)
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
# Lists payments
|
|
@@ -115,6 +119,7 @@ module WhopSDK
|
|
|
115
119
|
).returns(WhopSDK::Payment)
|
|
116
120
|
end
|
|
117
121
|
def refund(
|
|
122
|
+
# The ID of the payment you want to update or take action upon.
|
|
118
123
|
id,
|
|
119
124
|
# An amount if the refund is supposed to be partial.
|
|
120
125
|
partial_amount: nil,
|
|
@@ -139,7 +144,11 @@ module WhopSDK
|
|
|
139
144
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
140
145
|
).returns(WhopSDK::Payment)
|
|
141
146
|
end
|
|
142
|
-
def retry_(
|
|
147
|
+
def retry_(
|
|
148
|
+
# The ID of the payment
|
|
149
|
+
id,
|
|
150
|
+
request_options: {}
|
|
151
|
+
)
|
|
143
152
|
end
|
|
144
153
|
|
|
145
154
|
# Voids a payment
|
|
@@ -159,7 +168,11 @@ module WhopSDK
|
|
|
159
168
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
160
169
|
).returns(WhopSDK::Payment)
|
|
161
170
|
end
|
|
162
|
-
def void(
|
|
171
|
+
def void(
|
|
172
|
+
# The ID of the payment you want to void.
|
|
173
|
+
id,
|
|
174
|
+
request_options: {}
|
|
175
|
+
)
|
|
163
176
|
end
|
|
164
177
|
|
|
165
178
|
# @api private
|