whop_sdk 0.0.4 → 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 +25 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +4 -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/checkout_configuration_create_params.rb +4 -4
- 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/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/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.rb +6 -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/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/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/version.rb +1 -1
- data/lib/whop_sdk.rb +6 -0
- data/manifest.yaml +1 -0
- data/rbi/whop_sdk/client.rbi +3 -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/checkout_configuration_create_params.rbi +4 -4
- 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/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/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.rbi +6 -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/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/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/sig/whop_sdk/client.rbs +2 -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/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/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.rbs +6 -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/invoices.rbs +3 -1
- data/sig/whop_sdk/resources/members.rbs +1 -1
- data/sig/whop_sdk/resources/memberships.rbs +1 -1
- metadata +17 -2
|
@@ -14,6 +14,7 @@ module WhopSDK
|
|
|
14
14
|
title: String,
|
|
15
15
|
certificate_after_completion_enabled: T.nilable(T::Boolean),
|
|
16
16
|
cover_image: T.nilable(String),
|
|
17
|
+
order: T.nilable(String),
|
|
17
18
|
require_completing_lessons_in_order: T.nilable(T::Boolean),
|
|
18
19
|
tagline: T.nilable(String),
|
|
19
20
|
thumbnail:
|
|
@@ -23,6 +24,7 @@ module WhopSDK
|
|
|
23
24
|
WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID::OrHash
|
|
24
25
|
)
|
|
25
26
|
),
|
|
27
|
+
visibility: T.nilable(WhopSDK::CourseVisibilities::OrSymbol),
|
|
26
28
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
27
29
|
).returns(WhopSDK::Course)
|
|
28
30
|
end
|
|
@@ -36,6 +38,10 @@ module WhopSDK
|
|
|
36
38
|
certificate_after_completion_enabled: nil,
|
|
37
39
|
# The cover image URL of the course
|
|
38
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,
|
|
39
45
|
# Whether the course requires students to complete the previous lesson before
|
|
40
46
|
# moving on to the next one
|
|
41
47
|
require_completing_lessons_in_order: nil,
|
|
@@ -43,6 +49,9 @@ module WhopSDK
|
|
|
43
49
|
tagline: nil,
|
|
44
50
|
# The thumbnail for the course in png, jpeg, or gif format
|
|
45
51
|
thumbnail: nil,
|
|
52
|
+
# The available visibilities for a course. Determines how / whether a course is
|
|
53
|
+
# visible to users.
|
|
54
|
+
visibility: nil,
|
|
46
55
|
request_options: {}
|
|
47
56
|
)
|
|
48
57
|
end
|
|
@@ -58,7 +67,11 @@ module WhopSDK
|
|
|
58
67
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
59
68
|
).returns(WhopSDK::Course)
|
|
60
69
|
end
|
|
61
|
-
def retrieve(
|
|
70
|
+
def retrieve(
|
|
71
|
+
# The ID of the course
|
|
72
|
+
id,
|
|
73
|
+
request_options: {}
|
|
74
|
+
)
|
|
62
75
|
end
|
|
63
76
|
|
|
64
77
|
# Updates a course
|
|
@@ -75,6 +88,7 @@ module WhopSDK
|
|
|
75
88
|
cover_image: T.nilable(String),
|
|
76
89
|
description: T.nilable(String),
|
|
77
90
|
language: T.nilable(WhopSDK::Languages::OrSymbol),
|
|
91
|
+
order: T.nilable(String),
|
|
78
92
|
require_completing_lessons_in_order: T.nilable(T::Boolean),
|
|
79
93
|
tagline: T.nilable(String),
|
|
80
94
|
thumbnail:
|
|
@@ -85,10 +99,12 @@ module WhopSDK
|
|
|
85
99
|
)
|
|
86
100
|
),
|
|
87
101
|
title: T.nilable(String),
|
|
102
|
+
visibility: T.nilable(WhopSDK::CourseVisibilities::OrSymbol),
|
|
88
103
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
89
104
|
).returns(WhopSDK::Course)
|
|
90
105
|
end
|
|
91
106
|
def update(
|
|
107
|
+
# The ID of the course to update
|
|
92
108
|
id,
|
|
93
109
|
# Whether the course will award its students a PDF certificate after completing
|
|
94
110
|
# all lessons
|
|
@@ -101,6 +117,9 @@ module WhopSDK
|
|
|
101
117
|
description: nil,
|
|
102
118
|
# The available languages for a course
|
|
103
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,
|
|
104
123
|
# Whether the course requires students to complete the previous lesson before
|
|
105
124
|
# moving on to the next one
|
|
106
125
|
require_completing_lessons_in_order: nil,
|
|
@@ -110,6 +129,9 @@ module WhopSDK
|
|
|
110
129
|
thumbnail: nil,
|
|
111
130
|
# The title of the course
|
|
112
131
|
title: nil,
|
|
132
|
+
# The available visibilities for a course. Determines how / whether a course is
|
|
133
|
+
# visible to users.
|
|
134
|
+
visibility: nil,
|
|
113
135
|
request_options: {}
|
|
114
136
|
)
|
|
115
137
|
end
|
|
@@ -160,7 +182,11 @@ module WhopSDK
|
|
|
160
182
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
161
183
|
).returns(T::Boolean)
|
|
162
184
|
end
|
|
163
|
-
def delete(
|
|
185
|
+
def delete(
|
|
186
|
+
# The ID of the course to delete
|
|
187
|
+
id,
|
|
188
|
+
request_options: {}
|
|
189
|
+
)
|
|
164
190
|
end
|
|
165
191
|
|
|
166
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:
|
|
@@ -60,6 +64,7 @@ module WhopSDK
|
|
|
60
64
|
).returns(WhopSDK::Experience)
|
|
61
65
|
end
|
|
62
66
|
def update(
|
|
67
|
+
# The id of the experience to update.
|
|
63
68
|
id,
|
|
64
69
|
# The different access levels for experiences (PUBLIC IS NEVER USED ANYMORE).
|
|
65
70
|
access_level: nil,
|
|
@@ -122,7 +127,11 @@ module WhopSDK
|
|
|
122
127
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
123
128
|
).returns(T::Boolean)
|
|
124
129
|
end
|
|
125
|
-
def delete(
|
|
130
|
+
def delete(
|
|
131
|
+
# The internal ID of the experience to delete.
|
|
132
|
+
id,
|
|
133
|
+
request_options: {}
|
|
134
|
+
)
|
|
126
135
|
end
|
|
127
136
|
|
|
128
137
|
# Adds an experience to an product, making it accessible to the product's
|
|
@@ -139,6 +148,7 @@ module WhopSDK
|
|
|
139
148
|
).returns(WhopSDK::Experience)
|
|
140
149
|
end
|
|
141
150
|
def attach(
|
|
151
|
+
# The ID of the Experience to be added to an Access Pass.
|
|
142
152
|
id,
|
|
143
153
|
# The ID of the Access Pass to add the Experience to.
|
|
144
154
|
product_id:,
|
|
@@ -160,6 +170,7 @@ module WhopSDK
|
|
|
160
170
|
).returns(WhopSDK::Experience)
|
|
161
171
|
end
|
|
162
172
|
def detach(
|
|
173
|
+
# The ID of the Experience to be added to an Access Pass.
|
|
163
174
|
id,
|
|
164
175
|
# The ID of the Access Pass to add the Experience to.
|
|
165
176
|
product_id:,
|
|
@@ -185,6 +196,7 @@ module WhopSDK
|
|
|
185
196
|
).returns(WhopSDK::Experience)
|
|
186
197
|
end
|
|
187
198
|
def duplicate(
|
|
199
|
+
# The ID of the experience to duplicate
|
|
188
200
|
id,
|
|
189
201
|
# The name of the new experience
|
|
190
202
|
name: nil,
|
|
@@ -72,7 +72,11 @@ module WhopSDK
|
|
|
72
72
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
73
73
|
).returns(WhopSDK::ForumPost)
|
|
74
74
|
end
|
|
75
|
-
def retrieve(
|
|
75
|
+
def retrieve(
|
|
76
|
+
# The ID of the forum post
|
|
77
|
+
id,
|
|
78
|
+
request_options: {}
|
|
79
|
+
)
|
|
76
80
|
end
|
|
77
81
|
|
|
78
82
|
# Update an existing forum post
|
|
@@ -95,6 +99,7 @@ module WhopSDK
|
|
|
95
99
|
).returns(WhopSDK::ForumPost)
|
|
96
100
|
end
|
|
97
101
|
def update(
|
|
102
|
+
# The ID of the forum post to update
|
|
98
103
|
id,
|
|
99
104
|
# The attachments for this post
|
|
100
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,
|
|
@@ -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
|
|
@@ -49,7 +49,11 @@ module WhopSDK
|
|
|
49
49
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
50
50
|
).returns(WhopSDK::Message)
|
|
51
51
|
end
|
|
52
|
-
def retrieve(
|
|
52
|
+
def retrieve(
|
|
53
|
+
# The ID of the message
|
|
54
|
+
id,
|
|
55
|
+
request_options: {}
|
|
56
|
+
)
|
|
53
57
|
end
|
|
54
58
|
|
|
55
59
|
# Updates an existing message
|
|
@@ -71,6 +75,7 @@ module WhopSDK
|
|
|
71
75
|
).returns(WhopSDK::Message)
|
|
72
76
|
end
|
|
73
77
|
def update(
|
|
78
|
+
# The ID of the message to update
|
|
74
79
|
id,
|
|
75
80
|
# The attachments for this message
|
|
76
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
|
|
@@ -76,7 +76,7 @@ module WhopSDK
|
|
|
76
76
|
# The explicit payment method configuration for the plan. If not provided, the
|
|
77
77
|
# platform or company's defaults will apply.
|
|
78
78
|
payment_method_configuration: nil,
|
|
79
|
-
# The type of plan that can be attached to
|
|
79
|
+
# The type of plan that can be attached to a product
|
|
80
80
|
plan_type: nil,
|
|
81
81
|
# The methods of how a plan can be released.
|
|
82
82
|
release_method: nil,
|
|
@@ -114,7 +114,11 @@ module WhopSDK
|
|
|
114
114
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
115
115
|
).returns(WhopSDK::Plan)
|
|
116
116
|
end
|
|
117
|
-
def retrieve(
|
|
117
|
+
def retrieve(
|
|
118
|
+
# The ID of the plan
|
|
119
|
+
id,
|
|
120
|
+
request_options: {}
|
|
121
|
+
)
|
|
118
122
|
end
|
|
119
123
|
|
|
120
124
|
# Update an existing Plan
|
|
@@ -160,6 +164,7 @@ module WhopSDK
|
|
|
160
164
|
).returns(WhopSDK::Plan)
|
|
161
165
|
end
|
|
162
166
|
def update(
|
|
167
|
+
# The ID
|
|
163
168
|
id,
|
|
164
169
|
# The interval at which the plan charges (renewal plans).
|
|
165
170
|
billing_period: nil,
|
|
@@ -270,7 +275,11 @@ module WhopSDK
|
|
|
270
275
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
271
276
|
).returns(T::Boolean)
|
|
272
277
|
end
|
|
273
|
-
def delete(
|
|
278
|
+
def delete(
|
|
279
|
+
# The ID of the plan to delete.
|
|
280
|
+
id,
|
|
281
|
+
request_options: {}
|
|
282
|
+
)
|
|
274
283
|
end
|
|
275
284
|
|
|
276
285
|
# @api private
|
|
@@ -64,7 +64,7 @@ module WhopSDK
|
|
|
64
64
|
experience_ids: nil,
|
|
65
65
|
# The percentage of the revenue that goes to the global affiliate program.
|
|
66
66
|
global_affiliate_percentage: nil,
|
|
67
|
-
# The different statuses of the global affiliate program for
|
|
67
|
+
# The different statuses of the global affiliate program for a product.
|
|
68
68
|
global_affiliate_status: nil,
|
|
69
69
|
# The headline of the product.
|
|
70
70
|
headline: nil,
|
|
@@ -72,7 +72,7 @@ module WhopSDK
|
|
|
72
72
|
industry_type: nil,
|
|
73
73
|
# The percentage of the revenue that goes to the member affiliate program.
|
|
74
74
|
member_affiliate_percentage: nil,
|
|
75
|
-
# The different statuses of the global affiliate program for
|
|
75
|
+
# The different statuses of the global affiliate program for a product.
|
|
76
76
|
member_affiliate_status: nil,
|
|
77
77
|
# The details to assign an autogenerated plan.
|
|
78
78
|
plan_options: nil,
|
|
@@ -101,7 +101,11 @@ module WhopSDK
|
|
|
101
101
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
102
102
|
).returns(WhopSDK::Product)
|
|
103
103
|
end
|
|
104
|
-
def retrieve(
|
|
104
|
+
def retrieve(
|
|
105
|
+
# The ID or route of the product
|
|
106
|
+
id,
|
|
107
|
+
request_options: {}
|
|
108
|
+
)
|
|
105
109
|
end
|
|
106
110
|
|
|
107
111
|
# Updates an existing Product
|
|
@@ -145,6 +149,7 @@ module WhopSDK
|
|
|
145
149
|
).returns(WhopSDK::Product)
|
|
146
150
|
end
|
|
147
151
|
def update(
|
|
152
|
+
# The ID (tag) of the product
|
|
148
153
|
id,
|
|
149
154
|
# A banner image for the product in png, jpeg format
|
|
150
155
|
banner_image: nil,
|
|
@@ -164,7 +169,7 @@ module WhopSDK
|
|
|
164
169
|
description: nil,
|
|
165
170
|
# The percentage of the revenue that goes to the global affiliate program.
|
|
166
171
|
global_affiliate_percentage: nil,
|
|
167
|
-
# The different statuses of the global affiliate program for
|
|
172
|
+
# The different statuses of the global affiliate program for a product.
|
|
168
173
|
global_affiliate_status: nil,
|
|
169
174
|
# The headline of the product.
|
|
170
175
|
headline: nil,
|
|
@@ -172,7 +177,7 @@ module WhopSDK
|
|
|
172
177
|
industry_type: nil,
|
|
173
178
|
# The percentage of the revenue that goes to the member affiliate program.
|
|
174
179
|
member_affiliate_percentage: nil,
|
|
175
|
-
# The different statuses of the global affiliate program for
|
|
180
|
+
# The different statuses of the global affiliate program for a product.
|
|
176
181
|
member_affiliate_status: nil,
|
|
177
182
|
# The ID of the product tax code to apply to this product.
|
|
178
183
|
product_tax_code_id: nil,
|
|
@@ -244,7 +249,11 @@ module WhopSDK
|
|
|
244
249
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
245
250
|
).returns(T::Boolean)
|
|
246
251
|
end
|
|
247
|
-
def delete(
|
|
252
|
+
def delete(
|
|
253
|
+
# The internal ID (tag) of the product to delete.
|
|
254
|
+
id,
|
|
255
|
+
request_options: {}
|
|
256
|
+
)
|
|
248
257
|
end
|
|
249
258
|
|
|
250
259
|
# @api private
|
|
@@ -79,7 +79,11 @@ module WhopSDK
|
|
|
79
79
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
80
80
|
).returns(WhopSDK::PromoCode)
|
|
81
81
|
end
|
|
82
|
-
def retrieve(
|
|
82
|
+
def retrieve(
|
|
83
|
+
# The ID of the promo code to retrieve
|
|
84
|
+
id,
|
|
85
|
+
request_options: {}
|
|
86
|
+
)
|
|
83
87
|
end
|
|
84
88
|
|
|
85
89
|
# Lists promo codes for a company
|
|
@@ -135,7 +139,11 @@ module WhopSDK
|
|
|
135
139
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
136
140
|
).returns(T::Boolean)
|
|
137
141
|
end
|
|
138
|
-
def delete(
|
|
142
|
+
def delete(
|
|
143
|
+
# The internal ID of the promo code to archive.
|
|
144
|
+
id,
|
|
145
|
+
request_options: {}
|
|
146
|
+
)
|
|
139
147
|
end
|
|
140
148
|
|
|
141
149
|
# @api private
|
|
@@ -36,7 +36,11 @@ module WhopSDK
|
|
|
36
36
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
37
37
|
).returns(WhopSDK::Reaction)
|
|
38
38
|
end
|
|
39
|
-
def retrieve(
|
|
39
|
+
def retrieve(
|
|
40
|
+
# The ID of the reaction
|
|
41
|
+
id,
|
|
42
|
+
request_options: {}
|
|
43
|
+
)
|
|
40
44
|
end
|
|
41
45
|
|
|
42
46
|
# Lists reactions for a post or a message
|
|
@@ -10,7 +10,11 @@ module WhopSDK
|
|
|
10
10
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
11
11
|
).returns(WhopSDK::Models::ReviewRetrieveResponse)
|
|
12
12
|
end
|
|
13
|
-
def retrieve(
|
|
13
|
+
def retrieve(
|
|
14
|
+
# The ID of the review
|
|
15
|
+
id,
|
|
16
|
+
request_options: {}
|
|
17
|
+
)
|
|
14
18
|
end
|
|
15
19
|
|
|
16
20
|
# List all reviews
|