whop-sdk 0.0.1__py3-none-any.whl → 0.0.3__py3-none-any.whl
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.
Potentially problematic release.
This version of whop-sdk might be problematic. Click here for more details.
- whop_sdk/_client.py +65 -2
- whop_sdk/_version.py +1 -1
- whop_sdk/resources/__init__.py +98 -0
- whop_sdk/resources/checkout_configurations.py +16 -12
- whop_sdk/resources/course_chapters.py +602 -0
- whop_sdk/resources/course_lessons.py +722 -0
- whop_sdk/resources/courses.py +713 -0
- whop_sdk/resources/experiences.py +107 -0
- whop_sdk/resources/forum_posts.py +123 -1
- whop_sdk/resources/forums.py +446 -0
- whop_sdk/resources/members.py +429 -0
- whop_sdk/resources/memberships.py +16 -8
- whop_sdk/resources/messages.py +113 -1
- whop_sdk/resources/payments.py +3 -26
- whop_sdk/resources/plans.py +84 -6
- whop_sdk/resources/products.py +8 -16
- whop_sdk/resources/promo_codes.py +652 -0
- whop_sdk/resources/reviews.py +315 -0
- whop_sdk/types/__init__.py +64 -0
- whop_sdk/types/app_list_response.py +16 -1
- whop_sdk/types/assessment_question_types.py +7 -0
- whop_sdk/types/billing_reasons.py +9 -0
- whop_sdk/types/card_brands.py +24 -0
- whop_sdk/types/checkout_configuration_create_params.py +70 -7
- whop_sdk/types/checkout_configuration_list_response.py +12 -9
- whop_sdk/types/course.py +109 -0
- whop_sdk/types/course_chapter.py +32 -0
- whop_sdk/types/course_chapter_create_params.py +16 -0
- whop_sdk/types/course_chapter_delete_response.py +7 -0
- whop_sdk/types/course_chapter_list_params.py +25 -0
- whop_sdk/types/course_chapter_list_response.py +16 -0
- whop_sdk/types/course_chapter_update_params.py +12 -0
- whop_sdk/types/course_create_params.py +41 -0
- whop_sdk/types/course_delete_response.py +7 -0
- whop_sdk/types/course_lesson_create_params.py +27 -0
- whop_sdk/types/course_lesson_delete_response.py +7 -0
- whop_sdk/types/course_lesson_interaction_completed_webhook_event.py +26 -0
- whop_sdk/types/course_lesson_list_params.py +28 -0
- whop_sdk/types/course_lesson_list_response.py +35 -0
- whop_sdk/types/course_lesson_update_params.py +144 -0
- whop_sdk/types/course_list_params.py +28 -0
- whop_sdk/types/course_list_response.py +77 -0
- whop_sdk/types/course_update_params.py +89 -0
- whop_sdk/types/entry_approved_webhook_event.py +26 -0
- whop_sdk/types/entry_created_webhook_event.py +26 -0
- whop_sdk/types/entry_deleted_webhook_event.py +26 -0
- whop_sdk/types/entry_denied_webhook_event.py +26 -0
- whop_sdk/types/experience_duplicate_params.py +13 -0
- whop_sdk/types/experience_list_response.py +27 -1
- whop_sdk/types/forum_list_params.py +28 -0
- whop_sdk/types/forum_list_response.py +33 -0
- whop_sdk/types/forum_post_list_response.py +7 -0
- whop_sdk/types/forum_post_update_params.py +41 -0
- whop_sdk/types/forum_update_params.py +23 -0
- whop_sdk/types/invoice_create_params.py +10 -2
- whop_sdk/types/languages.py +30 -0
- whop_sdk/types/ledger_account_retrieve_response.py +15 -1
- whop_sdk/types/lesson.py +159 -0
- whop_sdk/types/lesson_types.py +7 -0
- whop_sdk/types/lesson_visibilities.py +7 -0
- whop_sdk/types/member_list_params.py +73 -0
- whop_sdk/types/member_list_response.py +65 -0
- whop_sdk/types/member_retrieve_response.py +79 -0
- whop_sdk/types/membership_activated_webhook_event.py +29 -0
- whop_sdk/types/membership_deactivated_webhook_event.py +29 -0
- whop_sdk/types/membership_list_params.py +7 -4
- whop_sdk/types/membership_list_response.py +12 -1
- whop_sdk/types/message_update_params.py +35 -0
- whop_sdk/types/payment_failed_webhook_event.py +26 -0
- whop_sdk/types/payment_list_params.py +2 -7
- whop_sdk/types/payment_list_response.py +23 -13
- whop_sdk/types/payment_method_types.py +92 -0
- whop_sdk/types/payment_pending_webhook_event.py +26 -0
- whop_sdk/types/payment_succeeded_webhook_event.py +26 -0
- whop_sdk/types/plan_create_params.py +29 -3
- whop_sdk/types/plan_list_response.py +9 -0
- whop_sdk/types/plan_update_params.py +18 -0
- whop_sdk/types/product_create_params.py +1 -24
- whop_sdk/types/product_update_params.py +12 -1
- whop_sdk/types/promo_code.py +90 -0
- whop_sdk/types/promo_code_create_params.py +70 -0
- whop_sdk/types/promo_code_delete_response.py +7 -0
- whop_sdk/types/promo_code_list_params.py +37 -0
- whop_sdk/types/promo_code_list_response.py +79 -0
- whop_sdk/types/promo_code_status.py +7 -0
- whop_sdk/types/promo_duration.py +7 -0
- whop_sdk/types/review_list_params.py +31 -0
- whop_sdk/types/review_list_response.py +78 -0
- whop_sdk/types/review_retrieve_response.py +103 -0
- whop_sdk/types/review_status.py +7 -0
- whop_sdk/types/shared/__init__.py +7 -0
- whop_sdk/types/shared/access_level.py +7 -0
- whop_sdk/types/shared/app.py +25 -1
- whop_sdk/types/shared/checkout_configuration.py +12 -9
- whop_sdk/types/shared/company.py +15 -1
- whop_sdk/types/shared/course_lesson_interaction.py +20 -1
- whop_sdk/types/shared/email_notification_preferences.py +7 -0
- whop_sdk/types/shared/experience.py +27 -1
- whop_sdk/types/shared/forum.py +33 -0
- whop_sdk/types/shared/forum_post.py +7 -0
- whop_sdk/types/shared/invoice.py +4 -1
- whop_sdk/types/shared/invoice_list_item.py +4 -1
- whop_sdk/types/shared/member_most_recent_actions.py +22 -0
- whop_sdk/types/shared/member_statuses.py +7 -0
- whop_sdk/types/shared/membership.py +12 -1
- whop_sdk/types/shared/payment.py +23 -13
- whop_sdk/types/shared/plan.py +9 -0
- whop_sdk/types/shared/product.py +8 -0
- whop_sdk/types/shared/product_list_item.py +8 -0
- whop_sdk/types/shared/who_can_comment_types.py +7 -0
- whop_sdk/types/shared/who_can_post_types.py +7 -0
- whop_sdk/types/shared_params/__init__.py +7 -0
- whop_sdk/types/shared_params/access_level.py +9 -0
- whop_sdk/types/shared_params/email_notification_preferences.py +9 -0
- whop_sdk/types/shared_params/member_most_recent_actions.py +24 -0
- whop_sdk/types/shared_params/member_statuses.py +9 -0
- whop_sdk/types/shared_params/promo_type.py +9 -0
- whop_sdk/types/shared_params/who_can_comment_types.py +9 -0
- whop_sdk/types/shared_params/who_can_post_types.py +9 -0
- whop_sdk/types/unwrap_webhook_event.py +24 -1
- whop_sdk/types/user_check_access_response.py +2 -3
- whop_sdk/types/user_retrieve_response.py +12 -1
- {whop_sdk-0.0.1.dist-info → whop_sdk-0.0.3.dist-info}/METADATA +2 -2
- {whop_sdk-0.0.1.dist-info → whop_sdk-0.0.3.dist-info}/RECORD +126 -50
- {whop_sdk-0.0.1.dist-info → whop_sdk-0.0.3.dist-info}/WHEEL +0 -0
- {whop_sdk-0.0.1.dist-info → whop_sdk-0.0.3.dist-info}/licenses/LICENSE +0 -0
whop_sdk/_client.py
CHANGED
|
@@ -25,7 +25,11 @@ from .resources import (
|
|
|
25
25
|
apps,
|
|
26
26
|
plans,
|
|
27
27
|
users,
|
|
28
|
+
forums,
|
|
29
|
+
courses,
|
|
28
30
|
entries,
|
|
31
|
+
members,
|
|
32
|
+
reviews,
|
|
29
33
|
invoices,
|
|
30
34
|
messages,
|
|
31
35
|
payments,
|
|
@@ -39,7 +43,10 @@ from .resources import (
|
|
|
39
43
|
experiences,
|
|
40
44
|
forum_posts,
|
|
41
45
|
memberships,
|
|
46
|
+
promo_codes,
|
|
42
47
|
chat_channels,
|
|
48
|
+
course_lessons,
|
|
49
|
+
course_chapters,
|
|
43
50
|
ledger_accounts,
|
|
44
51
|
authorized_users,
|
|
45
52
|
support_channels,
|
|
@@ -81,6 +88,13 @@ class Whop(SyncAPIClient):
|
|
|
81
88
|
support_channels: support_channels.SupportChannelsResource
|
|
82
89
|
experiences: experiences.ExperiencesResource
|
|
83
90
|
reactions: reactions.ReactionsResource
|
|
91
|
+
members: members.MembersResource
|
|
92
|
+
forums: forums.ForumsResource
|
|
93
|
+
promo_codes: promo_codes.PromoCodesResource
|
|
94
|
+
courses: courses.CoursesResource
|
|
95
|
+
course_chapters: course_chapters.CourseChaptersResource
|
|
96
|
+
course_lessons: course_lessons.CourseLessonsResource
|
|
97
|
+
reviews: reviews.ReviewsResource
|
|
84
98
|
with_raw_response: WhopWithRawResponse
|
|
85
99
|
with_streaming_response: WhopWithStreamedResponse
|
|
86
100
|
|
|
@@ -180,13 +194,20 @@ class Whop(SyncAPIClient):
|
|
|
180
194
|
self.support_channels = support_channels.SupportChannelsResource(self)
|
|
181
195
|
self.experiences = experiences.ExperiencesResource(self)
|
|
182
196
|
self.reactions = reactions.ReactionsResource(self)
|
|
197
|
+
self.members = members.MembersResource(self)
|
|
198
|
+
self.forums = forums.ForumsResource(self)
|
|
199
|
+
self.promo_codes = promo_codes.PromoCodesResource(self)
|
|
200
|
+
self.courses = courses.CoursesResource(self)
|
|
201
|
+
self.course_chapters = course_chapters.CourseChaptersResource(self)
|
|
202
|
+
self.course_lessons = course_lessons.CourseLessonsResource(self)
|
|
203
|
+
self.reviews = reviews.ReviewsResource(self)
|
|
183
204
|
self.with_raw_response = WhopWithRawResponse(self)
|
|
184
205
|
self.with_streaming_response = WhopWithStreamedResponse(self)
|
|
185
206
|
|
|
186
207
|
@property
|
|
187
208
|
@override
|
|
188
209
|
def qs(self) -> Querystring:
|
|
189
|
-
return Querystring(array_format="
|
|
210
|
+
return Querystring(array_format="brackets")
|
|
190
211
|
|
|
191
212
|
@property
|
|
192
213
|
@override
|
|
@@ -317,6 +338,13 @@ class AsyncWhop(AsyncAPIClient):
|
|
|
317
338
|
support_channels: support_channels.AsyncSupportChannelsResource
|
|
318
339
|
experiences: experiences.AsyncExperiencesResource
|
|
319
340
|
reactions: reactions.AsyncReactionsResource
|
|
341
|
+
members: members.AsyncMembersResource
|
|
342
|
+
forums: forums.AsyncForumsResource
|
|
343
|
+
promo_codes: promo_codes.AsyncPromoCodesResource
|
|
344
|
+
courses: courses.AsyncCoursesResource
|
|
345
|
+
course_chapters: course_chapters.AsyncCourseChaptersResource
|
|
346
|
+
course_lessons: course_lessons.AsyncCourseLessonsResource
|
|
347
|
+
reviews: reviews.AsyncReviewsResource
|
|
320
348
|
with_raw_response: AsyncWhopWithRawResponse
|
|
321
349
|
with_streaming_response: AsyncWhopWithStreamedResponse
|
|
322
350
|
|
|
@@ -416,13 +444,20 @@ class AsyncWhop(AsyncAPIClient):
|
|
|
416
444
|
self.support_channels = support_channels.AsyncSupportChannelsResource(self)
|
|
417
445
|
self.experiences = experiences.AsyncExperiencesResource(self)
|
|
418
446
|
self.reactions = reactions.AsyncReactionsResource(self)
|
|
447
|
+
self.members = members.AsyncMembersResource(self)
|
|
448
|
+
self.forums = forums.AsyncForumsResource(self)
|
|
449
|
+
self.promo_codes = promo_codes.AsyncPromoCodesResource(self)
|
|
450
|
+
self.courses = courses.AsyncCoursesResource(self)
|
|
451
|
+
self.course_chapters = course_chapters.AsyncCourseChaptersResource(self)
|
|
452
|
+
self.course_lessons = course_lessons.AsyncCourseLessonsResource(self)
|
|
453
|
+
self.reviews = reviews.AsyncReviewsResource(self)
|
|
419
454
|
self.with_raw_response = AsyncWhopWithRawResponse(self)
|
|
420
455
|
self.with_streaming_response = AsyncWhopWithStreamedResponse(self)
|
|
421
456
|
|
|
422
457
|
@property
|
|
423
458
|
@override
|
|
424
459
|
def qs(self) -> Querystring:
|
|
425
|
-
return Querystring(array_format="
|
|
460
|
+
return Querystring(array_format="brackets")
|
|
426
461
|
|
|
427
462
|
@property
|
|
428
463
|
@override
|
|
@@ -557,6 +592,13 @@ class WhopWithRawResponse:
|
|
|
557
592
|
self.support_channels = support_channels.SupportChannelsResourceWithRawResponse(client.support_channels)
|
|
558
593
|
self.experiences = experiences.ExperiencesResourceWithRawResponse(client.experiences)
|
|
559
594
|
self.reactions = reactions.ReactionsResourceWithRawResponse(client.reactions)
|
|
595
|
+
self.members = members.MembersResourceWithRawResponse(client.members)
|
|
596
|
+
self.forums = forums.ForumsResourceWithRawResponse(client.forums)
|
|
597
|
+
self.promo_codes = promo_codes.PromoCodesResourceWithRawResponse(client.promo_codes)
|
|
598
|
+
self.courses = courses.CoursesResourceWithRawResponse(client.courses)
|
|
599
|
+
self.course_chapters = course_chapters.CourseChaptersResourceWithRawResponse(client.course_chapters)
|
|
600
|
+
self.course_lessons = course_lessons.CourseLessonsResourceWithRawResponse(client.course_lessons)
|
|
601
|
+
self.reviews = reviews.ReviewsResourceWithRawResponse(client.reviews)
|
|
560
602
|
|
|
561
603
|
|
|
562
604
|
class AsyncWhopWithRawResponse:
|
|
@@ -589,6 +631,13 @@ class AsyncWhopWithRawResponse:
|
|
|
589
631
|
self.support_channels = support_channels.AsyncSupportChannelsResourceWithRawResponse(client.support_channels)
|
|
590
632
|
self.experiences = experiences.AsyncExperiencesResourceWithRawResponse(client.experiences)
|
|
591
633
|
self.reactions = reactions.AsyncReactionsResourceWithRawResponse(client.reactions)
|
|
634
|
+
self.members = members.AsyncMembersResourceWithRawResponse(client.members)
|
|
635
|
+
self.forums = forums.AsyncForumsResourceWithRawResponse(client.forums)
|
|
636
|
+
self.promo_codes = promo_codes.AsyncPromoCodesResourceWithRawResponse(client.promo_codes)
|
|
637
|
+
self.courses = courses.AsyncCoursesResourceWithRawResponse(client.courses)
|
|
638
|
+
self.course_chapters = course_chapters.AsyncCourseChaptersResourceWithRawResponse(client.course_chapters)
|
|
639
|
+
self.course_lessons = course_lessons.AsyncCourseLessonsResourceWithRawResponse(client.course_lessons)
|
|
640
|
+
self.reviews = reviews.AsyncReviewsResourceWithRawResponse(client.reviews)
|
|
592
641
|
|
|
593
642
|
|
|
594
643
|
class WhopWithStreamedResponse:
|
|
@@ -621,6 +670,13 @@ class WhopWithStreamedResponse:
|
|
|
621
670
|
self.support_channels = support_channels.SupportChannelsResourceWithStreamingResponse(client.support_channels)
|
|
622
671
|
self.experiences = experiences.ExperiencesResourceWithStreamingResponse(client.experiences)
|
|
623
672
|
self.reactions = reactions.ReactionsResourceWithStreamingResponse(client.reactions)
|
|
673
|
+
self.members = members.MembersResourceWithStreamingResponse(client.members)
|
|
674
|
+
self.forums = forums.ForumsResourceWithStreamingResponse(client.forums)
|
|
675
|
+
self.promo_codes = promo_codes.PromoCodesResourceWithStreamingResponse(client.promo_codes)
|
|
676
|
+
self.courses = courses.CoursesResourceWithStreamingResponse(client.courses)
|
|
677
|
+
self.course_chapters = course_chapters.CourseChaptersResourceWithStreamingResponse(client.course_chapters)
|
|
678
|
+
self.course_lessons = course_lessons.CourseLessonsResourceWithStreamingResponse(client.course_lessons)
|
|
679
|
+
self.reviews = reviews.ReviewsResourceWithStreamingResponse(client.reviews)
|
|
624
680
|
|
|
625
681
|
|
|
626
682
|
class AsyncWhopWithStreamedResponse:
|
|
@@ -657,6 +713,13 @@ class AsyncWhopWithStreamedResponse:
|
|
|
657
713
|
)
|
|
658
714
|
self.experiences = experiences.AsyncExperiencesResourceWithStreamingResponse(client.experiences)
|
|
659
715
|
self.reactions = reactions.AsyncReactionsResourceWithStreamingResponse(client.reactions)
|
|
716
|
+
self.members = members.AsyncMembersResourceWithStreamingResponse(client.members)
|
|
717
|
+
self.forums = forums.AsyncForumsResourceWithStreamingResponse(client.forums)
|
|
718
|
+
self.promo_codes = promo_codes.AsyncPromoCodesResourceWithStreamingResponse(client.promo_codes)
|
|
719
|
+
self.courses = courses.AsyncCoursesResourceWithStreamingResponse(client.courses)
|
|
720
|
+
self.course_chapters = course_chapters.AsyncCourseChaptersResourceWithStreamingResponse(client.course_chapters)
|
|
721
|
+
self.course_lessons = course_lessons.AsyncCourseLessonsResourceWithStreamingResponse(client.course_lessons)
|
|
722
|
+
self.reviews = reviews.AsyncReviewsResourceWithStreamingResponse(client.reviews)
|
|
660
723
|
|
|
661
724
|
|
|
662
725
|
Client = Whop
|
whop_sdk/_version.py
CHANGED
whop_sdk/resources/__init__.py
CHANGED
|
@@ -24,6 +24,22 @@ from .users import (
|
|
|
24
24
|
UsersResourceWithStreamingResponse,
|
|
25
25
|
AsyncUsersResourceWithStreamingResponse,
|
|
26
26
|
)
|
|
27
|
+
from .forums import (
|
|
28
|
+
ForumsResource,
|
|
29
|
+
AsyncForumsResource,
|
|
30
|
+
ForumsResourceWithRawResponse,
|
|
31
|
+
AsyncForumsResourceWithRawResponse,
|
|
32
|
+
ForumsResourceWithStreamingResponse,
|
|
33
|
+
AsyncForumsResourceWithStreamingResponse,
|
|
34
|
+
)
|
|
35
|
+
from .courses import (
|
|
36
|
+
CoursesResource,
|
|
37
|
+
AsyncCoursesResource,
|
|
38
|
+
CoursesResourceWithRawResponse,
|
|
39
|
+
AsyncCoursesResourceWithRawResponse,
|
|
40
|
+
CoursesResourceWithStreamingResponse,
|
|
41
|
+
AsyncCoursesResourceWithStreamingResponse,
|
|
42
|
+
)
|
|
27
43
|
from .entries import (
|
|
28
44
|
EntriesResource,
|
|
29
45
|
AsyncEntriesResource,
|
|
@@ -32,6 +48,22 @@ from .entries import (
|
|
|
32
48
|
EntriesResourceWithStreamingResponse,
|
|
33
49
|
AsyncEntriesResourceWithStreamingResponse,
|
|
34
50
|
)
|
|
51
|
+
from .members import (
|
|
52
|
+
MembersResource,
|
|
53
|
+
AsyncMembersResource,
|
|
54
|
+
MembersResourceWithRawResponse,
|
|
55
|
+
AsyncMembersResourceWithRawResponse,
|
|
56
|
+
MembersResourceWithStreamingResponse,
|
|
57
|
+
AsyncMembersResourceWithStreamingResponse,
|
|
58
|
+
)
|
|
59
|
+
from .reviews import (
|
|
60
|
+
ReviewsResource,
|
|
61
|
+
AsyncReviewsResource,
|
|
62
|
+
ReviewsResourceWithRawResponse,
|
|
63
|
+
AsyncReviewsResourceWithRawResponse,
|
|
64
|
+
ReviewsResourceWithStreamingResponse,
|
|
65
|
+
AsyncReviewsResourceWithStreamingResponse,
|
|
66
|
+
)
|
|
35
67
|
from .invoices import (
|
|
36
68
|
InvoicesResource,
|
|
37
69
|
AsyncInvoicesResource,
|
|
@@ -129,6 +161,14 @@ from .memberships import (
|
|
|
129
161
|
MembershipsResourceWithStreamingResponse,
|
|
130
162
|
AsyncMembershipsResourceWithStreamingResponse,
|
|
131
163
|
)
|
|
164
|
+
from .promo_codes import (
|
|
165
|
+
PromoCodesResource,
|
|
166
|
+
AsyncPromoCodesResource,
|
|
167
|
+
PromoCodesResourceWithRawResponse,
|
|
168
|
+
AsyncPromoCodesResourceWithRawResponse,
|
|
169
|
+
PromoCodesResourceWithStreamingResponse,
|
|
170
|
+
AsyncPromoCodesResourceWithStreamingResponse,
|
|
171
|
+
)
|
|
132
172
|
from .chat_channels import (
|
|
133
173
|
ChatChannelsResource,
|
|
134
174
|
AsyncChatChannelsResource,
|
|
@@ -137,6 +177,22 @@ from .chat_channels import (
|
|
|
137
177
|
ChatChannelsResourceWithStreamingResponse,
|
|
138
178
|
AsyncChatChannelsResourceWithStreamingResponse,
|
|
139
179
|
)
|
|
180
|
+
from .course_lessons import (
|
|
181
|
+
CourseLessonsResource,
|
|
182
|
+
AsyncCourseLessonsResource,
|
|
183
|
+
CourseLessonsResourceWithRawResponse,
|
|
184
|
+
AsyncCourseLessonsResourceWithRawResponse,
|
|
185
|
+
CourseLessonsResourceWithStreamingResponse,
|
|
186
|
+
AsyncCourseLessonsResourceWithStreamingResponse,
|
|
187
|
+
)
|
|
188
|
+
from .course_chapters import (
|
|
189
|
+
CourseChaptersResource,
|
|
190
|
+
AsyncCourseChaptersResource,
|
|
191
|
+
CourseChaptersResourceWithRawResponse,
|
|
192
|
+
AsyncCourseChaptersResourceWithRawResponse,
|
|
193
|
+
CourseChaptersResourceWithStreamingResponse,
|
|
194
|
+
AsyncCourseChaptersResourceWithStreamingResponse,
|
|
195
|
+
)
|
|
140
196
|
from .ledger_accounts import (
|
|
141
197
|
LedgerAccountsResource,
|
|
142
198
|
AsyncLedgerAccountsResource,
|
|
@@ -313,4 +369,46 @@ __all__ = [
|
|
|
313
369
|
"AsyncReactionsResourceWithRawResponse",
|
|
314
370
|
"ReactionsResourceWithStreamingResponse",
|
|
315
371
|
"AsyncReactionsResourceWithStreamingResponse",
|
|
372
|
+
"MembersResource",
|
|
373
|
+
"AsyncMembersResource",
|
|
374
|
+
"MembersResourceWithRawResponse",
|
|
375
|
+
"AsyncMembersResourceWithRawResponse",
|
|
376
|
+
"MembersResourceWithStreamingResponse",
|
|
377
|
+
"AsyncMembersResourceWithStreamingResponse",
|
|
378
|
+
"ForumsResource",
|
|
379
|
+
"AsyncForumsResource",
|
|
380
|
+
"ForumsResourceWithRawResponse",
|
|
381
|
+
"AsyncForumsResourceWithRawResponse",
|
|
382
|
+
"ForumsResourceWithStreamingResponse",
|
|
383
|
+
"AsyncForumsResourceWithStreamingResponse",
|
|
384
|
+
"PromoCodesResource",
|
|
385
|
+
"AsyncPromoCodesResource",
|
|
386
|
+
"PromoCodesResourceWithRawResponse",
|
|
387
|
+
"AsyncPromoCodesResourceWithRawResponse",
|
|
388
|
+
"PromoCodesResourceWithStreamingResponse",
|
|
389
|
+
"AsyncPromoCodesResourceWithStreamingResponse",
|
|
390
|
+
"CoursesResource",
|
|
391
|
+
"AsyncCoursesResource",
|
|
392
|
+
"CoursesResourceWithRawResponse",
|
|
393
|
+
"AsyncCoursesResourceWithRawResponse",
|
|
394
|
+
"CoursesResourceWithStreamingResponse",
|
|
395
|
+
"AsyncCoursesResourceWithStreamingResponse",
|
|
396
|
+
"CourseChaptersResource",
|
|
397
|
+
"AsyncCourseChaptersResource",
|
|
398
|
+
"CourseChaptersResourceWithRawResponse",
|
|
399
|
+
"AsyncCourseChaptersResourceWithRawResponse",
|
|
400
|
+
"CourseChaptersResourceWithStreamingResponse",
|
|
401
|
+
"AsyncCourseChaptersResourceWithStreamingResponse",
|
|
402
|
+
"CourseLessonsResource",
|
|
403
|
+
"AsyncCourseLessonsResource",
|
|
404
|
+
"CourseLessonsResourceWithRawResponse",
|
|
405
|
+
"AsyncCourseLessonsResourceWithRawResponse",
|
|
406
|
+
"CourseLessonsResourceWithStreamingResponse",
|
|
407
|
+
"AsyncCourseLessonsResourceWithStreamingResponse",
|
|
408
|
+
"ReviewsResource",
|
|
409
|
+
"AsyncReviewsResource",
|
|
410
|
+
"ReviewsResourceWithRawResponse",
|
|
411
|
+
"AsyncReviewsResourceWithRawResponse",
|
|
412
|
+
"ReviewsResourceWithStreamingResponse",
|
|
413
|
+
"AsyncReviewsResourceWithStreamingResponse",
|
|
316
414
|
]
|
|
@@ -62,23 +62,25 @@ class CheckoutConfigurationsResource(SyncAPIResource):
|
|
|
62
62
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
63
63
|
) -> CheckoutConfiguration:
|
|
64
64
|
"""
|
|
65
|
-
Creates a new checkout
|
|
65
|
+
Creates a new checkout configuration
|
|
66
66
|
|
|
67
67
|
Required permissions:
|
|
68
68
|
|
|
69
69
|
- `checkout_configuration:create`
|
|
70
70
|
- `plan:create`
|
|
71
|
+
- `access_pass:create`
|
|
72
|
+
- `access_pass:update`
|
|
71
73
|
|
|
72
74
|
Args:
|
|
73
|
-
affiliate_code: The affiliate code to use for the checkout
|
|
75
|
+
affiliate_code: The affiliate code to use for the checkout configuration
|
|
74
76
|
|
|
75
|
-
metadata: The metadata to use for the checkout
|
|
77
|
+
metadata: The metadata to use for the checkout configuration
|
|
76
78
|
|
|
77
|
-
plan: Pass this object to create a new plan for this checkout
|
|
79
|
+
plan: Pass this object to create a new plan for this checkout configuration
|
|
78
80
|
|
|
79
|
-
plan_id: The ID of the plan to use for the checkout
|
|
81
|
+
plan_id: The ID of the plan to use for the checkout configuration
|
|
80
82
|
|
|
81
|
-
redirect_url: The URL to redirect the user to after the checkout
|
|
83
|
+
redirect_url: The URL to redirect the user to after the checkout configuration is created
|
|
82
84
|
|
|
83
85
|
extra_headers: Send extra headers
|
|
84
86
|
|
|
@@ -251,23 +253,25 @@ class AsyncCheckoutConfigurationsResource(AsyncAPIResource):
|
|
|
251
253
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
252
254
|
) -> CheckoutConfiguration:
|
|
253
255
|
"""
|
|
254
|
-
Creates a new checkout
|
|
256
|
+
Creates a new checkout configuration
|
|
255
257
|
|
|
256
258
|
Required permissions:
|
|
257
259
|
|
|
258
260
|
- `checkout_configuration:create`
|
|
259
261
|
- `plan:create`
|
|
262
|
+
- `access_pass:create`
|
|
263
|
+
- `access_pass:update`
|
|
260
264
|
|
|
261
265
|
Args:
|
|
262
|
-
affiliate_code: The affiliate code to use for the checkout
|
|
266
|
+
affiliate_code: The affiliate code to use for the checkout configuration
|
|
263
267
|
|
|
264
|
-
metadata: The metadata to use for the checkout
|
|
268
|
+
metadata: The metadata to use for the checkout configuration
|
|
265
269
|
|
|
266
|
-
plan: Pass this object to create a new plan for this checkout
|
|
270
|
+
plan: Pass this object to create a new plan for this checkout configuration
|
|
267
271
|
|
|
268
|
-
plan_id: The ID of the plan to use for the checkout
|
|
272
|
+
plan_id: The ID of the plan to use for the checkout configuration
|
|
269
273
|
|
|
270
|
-
redirect_url: The URL to redirect the user to after the checkout
|
|
274
|
+
redirect_url: The URL to redirect the user to after the checkout configuration is created
|
|
271
275
|
|
|
272
276
|
extra_headers: Send extra headers
|
|
273
277
|
|