whop_sdk 0.0.23 → 0.0.24
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 +35 -0
- data/README.md +1 -1
- data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
- data/lib/whop_sdk/models/app_create_params.rb +22 -1
- data/lib/whop_sdk/models/app_list_params.rb +5 -0
- data/lib/whop_sdk/models/app_update_params.rb +14 -53
- data/lib/whop_sdk/models/card_brands.rb +16 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
- data/lib/whop_sdk/models/company_create_params.rb +22 -1
- data/lib/whop_sdk/models/company_update_params.rb +28 -106
- data/lib/whop_sdk/models/course_create_params.rb +15 -62
- data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
- data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
- data/lib/whop_sdk/models/course_update_params.rb +14 -61
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
- data/lib/whop_sdk/models/experience_create_params.rb +22 -1
- data/lib/whop_sdk/models/experience_update_params.rb +14 -53
- data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
- data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
- data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
- data/lib/whop_sdk/models/member_list_response.rb +9 -1
- data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
- data/lib/whop_sdk/models/membership.rb +76 -2
- data/lib/whop_sdk/models/membership_list_response.rb +38 -2
- data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
- data/lib/whop_sdk/models/message_create_params.rb +13 -52
- data/lib/whop_sdk/models/message_update_params.rb +14 -53
- data/lib/whop_sdk/models/payment.rb +17 -1
- data/lib/whop_sdk/models/payment_list_response.rb +17 -1
- data/lib/whop_sdk/models/payment_method_types.rb +58 -57
- data/lib/whop_sdk/models/payment_provider.rb +1 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
- data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
- data/lib/whop_sdk/models/plan_create_params.rb +14 -53
- data/lib/whop_sdk/models/plan_update_params.rb +14 -53
- data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
- data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
- data/lib/whop_sdk/models.rb +2 -2
- data/lib/whop_sdk/resources/app_builds.rb +1 -1
- data/lib/whop_sdk/resources/apps.rb +4 -2
- data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
- data/lib/whop_sdk/resources/companies.rb +5 -3
- data/lib/whop_sdk/resources/course_lessons.rb +4 -4
- data/lib/whop_sdk/resources/courses.rb +4 -8
- data/lib/whop_sdk/resources/disputes.rb +4 -4
- data/lib/whop_sdk/resources/experiences.rb +4 -2
- data/lib/whop_sdk/resources/forum_posts.rb +2 -2
- data/lib/whop_sdk/resources/memberships.rb +32 -0
- data/lib/whop_sdk/resources/messages.rb +2 -2
- data/lib/whop_sdk/resources/notifications.rb +4 -0
- data/lib/whop_sdk/resources/plans.rb +2 -2
- data/lib/whop_sdk/resources/withdrawals.rb +8 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +1 -1
- data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
- data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +10 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/card_brands.rbi +17 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
- data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
- data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
- data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
- data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
- data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
- data/rbi/whop_sdk/models/membership.rbi +126 -4
- data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
- data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/payment.rbi +16 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +66 -64
- data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
- data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
- data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
- data/rbi/whop_sdk/models.rbi +2 -2
- data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
- data/rbi/whop_sdk/resources/apps.rbi +4 -7
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
- data/rbi/whop_sdk/resources/companies.rbi +5 -13
- data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
- data/rbi/whop_sdk/resources/courses.rbi +2 -20
- data/rbi/whop_sdk/resources/disputes.rbi +4 -16
- data/rbi/whop_sdk/resources/experiences.rbi +4 -7
- data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
- data/rbi/whop_sdk/resources/memberships.rbi +26 -0
- data/rbi/whop_sdk/resources/messages.rbi +2 -12
- data/rbi/whop_sdk/resources/notifications.rbi +4 -0
- data/rbi/whop_sdk/resources/plans.rbi +2 -14
- data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
- data/sig/whop_sdk/models/app_create_params.rbs +20 -1
- data/sig/whop_sdk/models/app_list_params.rbs +10 -0
- data/sig/whop_sdk/models/app_update_params.rbs +9 -30
- data/sig/whop_sdk/models/card_brands.rbs +32 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
- data/sig/whop_sdk/models/company_create_params.rbs +15 -0
- data/sig/whop_sdk/models/company_update_params.rbs +18 -60
- data/sig/whop_sdk/models/course_create_params.rbs +9 -35
- data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
- data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
- data/sig/whop_sdk/models/course_update_params.rbs +9 -35
- data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
- data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
- data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
- data/sig/whop_sdk/models/member_list_response.rbs +5 -0
- data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
- data/sig/whop_sdk/models/membership.rbs +65 -4
- data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
- data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
- data/sig/whop_sdk/models/message_create_params.rbs +9 -30
- data/sig/whop_sdk/models/message_update_params.rbs +9 -30
- data/sig/whop_sdk/models/payment.rbs +10 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +117 -115
- data/sig/whop_sdk/models/payment_provider.rbs +2 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
- data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
- data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
- data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
- data/sig/whop_sdk/models.rbs +2 -2
- data/sig/whop_sdk/resources/app_builds.rbs +1 -1
- data/sig/whop_sdk/resources/apps.rbs +2 -1
- data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
- data/sig/whop_sdk/resources/companies.rbs +3 -2
- data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
- data/sig/whop_sdk/resources/courses.rbs +2 -4
- data/sig/whop_sdk/resources/disputes.rbs +4 -4
- data/sig/whop_sdk/resources/experiences.rbs +2 -1
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
- data/sig/whop_sdk/resources/memberships.rbs +5 -0
- data/sig/whop_sdk/resources/messages.rbs +2 -2
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
- metadata +19 -5
- data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
- data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
- data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
|
@@ -10,8 +10,8 @@ module WhopSDK
|
|
|
10
10
|
# @!attribute banner_image
|
|
11
11
|
# The banner image for the company in png or jpeg format
|
|
12
12
|
#
|
|
13
|
-
# @return [WhopSDK::Models::CompanyUpdateParams::BannerImage
|
|
14
|
-
optional :banner_image,
|
|
13
|
+
# @return [WhopSDK::Models::CompanyUpdateParams::BannerImage, nil]
|
|
14
|
+
optional :banner_image, -> { WhopSDK::CompanyUpdateParams::BannerImage }, nil?: true
|
|
15
15
|
|
|
16
16
|
# @!attribute business_type
|
|
17
17
|
# The different business types a company can be.
|
|
@@ -28,8 +28,8 @@ module WhopSDK
|
|
|
28
28
|
# @!attribute logo
|
|
29
29
|
# The logo for the company in png, jpeg, or gif format
|
|
30
30
|
#
|
|
31
|
-
# @return [WhopSDK::Models::CompanyUpdateParams::Logo
|
|
32
|
-
optional :logo,
|
|
31
|
+
# @return [WhopSDK::Models::CompanyUpdateParams::Logo, nil]
|
|
32
|
+
optional :logo, -> { WhopSDK::CompanyUpdateParams::Logo }, nil?: true
|
|
33
33
|
|
|
34
34
|
# @!attribute send_customer_emails
|
|
35
35
|
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
@@ -50,13 +50,13 @@ module WhopSDK
|
|
|
50
50
|
# Some parameter documentations has been truncated, see
|
|
51
51
|
# {WhopSDK::Models::CompanyUpdateParams} for more details.
|
|
52
52
|
#
|
|
53
|
-
# @param banner_image [WhopSDK::Models::CompanyUpdateParams::BannerImage
|
|
53
|
+
# @param banner_image [WhopSDK::Models::CompanyUpdateParams::BannerImage, nil] The banner image for the company in png or jpeg format
|
|
54
54
|
#
|
|
55
55
|
# @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
|
|
56
56
|
#
|
|
57
57
|
# @param industry_type [Symbol, WhopSDK::Models::IndustryTypes, nil] The different industry types a company can be in.
|
|
58
58
|
#
|
|
59
|
-
# @param logo [WhopSDK::Models::CompanyUpdateParams::Logo
|
|
59
|
+
# @param logo [WhopSDK::Models::CompanyUpdateParams::Logo, nil] The logo for the company in png, jpeg, or gif format
|
|
60
60
|
#
|
|
61
61
|
# @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
62
62
|
#
|
|
@@ -64,108 +64,30 @@ module WhopSDK
|
|
|
64
64
|
#
|
|
65
65
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
#
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
#
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
# @!attribute direct_upload_id
|
|
79
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
80
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
81
|
-
# mediaDirectUpload mutation.
|
|
82
|
-
#
|
|
83
|
-
# @return [String]
|
|
84
|
-
required :direct_upload_id, String
|
|
85
|
-
|
|
86
|
-
# @!method initialize(direct_upload_id:)
|
|
87
|
-
# Some parameter documentations has been truncated, see
|
|
88
|
-
# {WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID}
|
|
89
|
-
# for more details.
|
|
90
|
-
#
|
|
91
|
-
# Input for an attachment
|
|
92
|
-
#
|
|
93
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
97
|
-
# @!attribute id
|
|
98
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
99
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
100
|
-
# doing.
|
|
101
|
-
#
|
|
102
|
-
# @return [String]
|
|
103
|
-
required :id, String
|
|
104
|
-
|
|
105
|
-
# @!method initialize(id:)
|
|
106
|
-
# Some parameter documentations has been truncated, see
|
|
107
|
-
# {WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID} for
|
|
108
|
-
# more details.
|
|
109
|
-
#
|
|
110
|
-
# Input for an attachment
|
|
111
|
-
#
|
|
112
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
# @!method self.variants
|
|
116
|
-
# @return [Array(WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID)]
|
|
67
|
+
class BannerImage < WhopSDK::Internal::Type::BaseModel
|
|
68
|
+
# @!attribute id
|
|
69
|
+
# The ID of an existing file object.
|
|
70
|
+
#
|
|
71
|
+
# @return [String]
|
|
72
|
+
required :id, String
|
|
73
|
+
|
|
74
|
+
# @!method initialize(id:)
|
|
75
|
+
# The banner image for the company in png or jpeg format
|
|
76
|
+
#
|
|
77
|
+
# @param id [String] The ID of an existing file object.
|
|
117
78
|
end
|
|
118
79
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
#
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
#
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
# @!attribute direct_upload_id
|
|
131
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
132
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
133
|
-
# mediaDirectUpload mutation.
|
|
134
|
-
#
|
|
135
|
-
# @return [String]
|
|
136
|
-
required :direct_upload_id, String
|
|
137
|
-
|
|
138
|
-
# @!method initialize(direct_upload_id:)
|
|
139
|
-
# Some parameter documentations has been truncated, see
|
|
140
|
-
# {WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID}
|
|
141
|
-
# for more details.
|
|
142
|
-
#
|
|
143
|
-
# Input for an attachment
|
|
144
|
-
#
|
|
145
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
149
|
-
# @!attribute id
|
|
150
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
151
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
152
|
-
# doing.
|
|
153
|
-
#
|
|
154
|
-
# @return [String]
|
|
155
|
-
required :id, String
|
|
156
|
-
|
|
157
|
-
# @!method initialize(id:)
|
|
158
|
-
# Some parameter documentations has been truncated, see
|
|
159
|
-
# {WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID} for more
|
|
160
|
-
# details.
|
|
161
|
-
#
|
|
162
|
-
# Input for an attachment
|
|
163
|
-
#
|
|
164
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
# @!method self.variants
|
|
168
|
-
# @return [Array(WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID)]
|
|
80
|
+
class Logo < WhopSDK::Internal::Type::BaseModel
|
|
81
|
+
# @!attribute id
|
|
82
|
+
# The ID of an existing file object.
|
|
83
|
+
#
|
|
84
|
+
# @return [String]
|
|
85
|
+
required :id, String
|
|
86
|
+
|
|
87
|
+
# @!method initialize(id:)
|
|
88
|
+
# The logo for the company in png, jpeg, or gif format
|
|
89
|
+
#
|
|
90
|
+
# @param id [String] The ID of an existing file object.
|
|
169
91
|
end
|
|
170
92
|
end
|
|
171
93
|
end
|
|
@@ -26,12 +26,6 @@ module WhopSDK
|
|
|
26
26
|
# @return [Boolean, nil]
|
|
27
27
|
optional :certificate_after_completion_enabled, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
28
28
|
|
|
29
|
-
# @!attribute cover_image
|
|
30
|
-
# The cover image URL of the course
|
|
31
|
-
#
|
|
32
|
-
# @return [String, nil]
|
|
33
|
-
optional :cover_image, String, nil?: true
|
|
34
|
-
|
|
35
29
|
# @!attribute order
|
|
36
30
|
# The decimal order position of the course within its experience. If not provided,
|
|
37
31
|
# it will be set to the next sequential order. Use fractional values (e.g., 1.5)
|
|
@@ -56,8 +50,8 @@ module WhopSDK
|
|
|
56
50
|
# @!attribute thumbnail
|
|
57
51
|
# The thumbnail for the course in png, jpeg, or gif format
|
|
58
52
|
#
|
|
59
|
-
# @return [WhopSDK::Models::CourseCreateParams::Thumbnail
|
|
60
|
-
optional :thumbnail,
|
|
53
|
+
# @return [WhopSDK::Models::CourseCreateParams::Thumbnail, nil]
|
|
54
|
+
optional :thumbnail, -> { WhopSDK::CourseCreateParams::Thumbnail }, nil?: true
|
|
61
55
|
|
|
62
56
|
# @!attribute visibility
|
|
63
57
|
# The available visibilities for a course. Determines how / whether a course is
|
|
@@ -66,7 +60,7 @@ module WhopSDK
|
|
|
66
60
|
# @return [Symbol, WhopSDK::Models::CourseVisibilities, nil]
|
|
67
61
|
optional :visibility, enum: -> { WhopSDK::CourseVisibilities }, nil?: true
|
|
68
62
|
|
|
69
|
-
# @!method initialize(experience_id:, title:, certificate_after_completion_enabled: nil,
|
|
63
|
+
# @!method initialize(experience_id:, title:, certificate_after_completion_enabled: nil, order: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, visibility: nil, request_options: {})
|
|
70
64
|
# Some parameter documentations has been truncated, see
|
|
71
65
|
# {WhopSDK::Models::CourseCreateParams} for more details.
|
|
72
66
|
#
|
|
@@ -76,70 +70,29 @@ module WhopSDK
|
|
|
76
70
|
#
|
|
77
71
|
# @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
|
|
78
72
|
#
|
|
79
|
-
# @param cover_image [String, nil] The cover image URL of the course
|
|
80
|
-
#
|
|
81
73
|
# @param order [String, nil] The decimal order position of the course within its experience. If not provided,
|
|
82
74
|
#
|
|
83
75
|
# @param require_completing_lessons_in_order [Boolean, nil] Whether the course requires students to complete the previous lesson before movi
|
|
84
76
|
#
|
|
85
77
|
# @param tagline [String, nil] The tagline of the course
|
|
86
78
|
#
|
|
87
|
-
# @param thumbnail [WhopSDK::Models::CourseCreateParams::Thumbnail
|
|
79
|
+
# @param thumbnail [WhopSDK::Models::CourseCreateParams::Thumbnail, nil] The thumbnail for the course in png, jpeg, or gif format
|
|
88
80
|
#
|
|
89
81
|
# @param visibility [Symbol, WhopSDK::Models::CourseVisibilities, nil] The available visibilities for a course. Determines how / whether a course is vi
|
|
90
82
|
#
|
|
91
83
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
92
84
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
#
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
#
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
# @!attribute direct_upload_id
|
|
105
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
106
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
107
|
-
# mediaDirectUpload mutation.
|
|
108
|
-
#
|
|
109
|
-
# @return [String]
|
|
110
|
-
required :direct_upload_id, String
|
|
111
|
-
|
|
112
|
-
# @!method initialize(direct_upload_id:)
|
|
113
|
-
# Some parameter documentations has been truncated, see
|
|
114
|
-
# {WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID}
|
|
115
|
-
# for more details.
|
|
116
|
-
#
|
|
117
|
-
# Input for an attachment
|
|
118
|
-
#
|
|
119
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
123
|
-
# @!attribute id
|
|
124
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
125
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
126
|
-
# doing.
|
|
127
|
-
#
|
|
128
|
-
# @return [String]
|
|
129
|
-
required :id, String
|
|
130
|
-
|
|
131
|
-
# @!method initialize(id:)
|
|
132
|
-
# Some parameter documentations has been truncated, see
|
|
133
|
-
# {WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithID} for more
|
|
134
|
-
# details.
|
|
135
|
-
#
|
|
136
|
-
# Input for an attachment
|
|
137
|
-
#
|
|
138
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
# @!method self.variants
|
|
142
|
-
# @return [Array(WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithID)]
|
|
85
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
86
|
+
# @!attribute id
|
|
87
|
+
# The ID of an existing file object.
|
|
88
|
+
#
|
|
89
|
+
# @return [String]
|
|
90
|
+
required :id, String
|
|
91
|
+
|
|
92
|
+
# @!method initialize(id:)
|
|
93
|
+
# The thumbnail for the course in png, jpeg, or gif format
|
|
94
|
+
#
|
|
95
|
+
# @param id [String] The ID of an existing file object.
|
|
143
96
|
end
|
|
144
97
|
end
|
|
145
98
|
end
|
|
@@ -46,8 +46,8 @@ module WhopSDK
|
|
|
46
46
|
# @!attribute thumbnail
|
|
47
47
|
# The thumbnail for the lesson in png, jpeg, or gif format
|
|
48
48
|
#
|
|
49
|
-
# @return [WhopSDK::Models::CourseLessonCreateParams::Thumbnail
|
|
50
|
-
optional :thumbnail,
|
|
49
|
+
# @return [WhopSDK::Models::CourseLessonCreateParams::Thumbnail, nil]
|
|
50
|
+
optional :thumbnail, -> { WhopSDK::CourseLessonCreateParams::Thumbnail }, nil?: true
|
|
51
51
|
|
|
52
52
|
# @!attribute title
|
|
53
53
|
# The title of the lesson
|
|
@@ -68,62 +68,23 @@ module WhopSDK
|
|
|
68
68
|
#
|
|
69
69
|
# @param embed_type [Symbol, WhopSDK::Models::EmbedType, nil] The type of embed for a lesson
|
|
70
70
|
#
|
|
71
|
-
# @param thumbnail [WhopSDK::Models::CourseLessonCreateParams::Thumbnail
|
|
71
|
+
# @param thumbnail [WhopSDK::Models::CourseLessonCreateParams::Thumbnail, nil] The thumbnail for the lesson in png, jpeg, or gif format
|
|
72
72
|
#
|
|
73
73
|
# @param title [String, nil] The title of the lesson
|
|
74
74
|
#
|
|
75
75
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
#
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
#
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
# @!attribute direct_upload_id
|
|
89
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
90
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
91
|
-
# mediaDirectUpload mutation.
|
|
92
|
-
#
|
|
93
|
-
# @return [String]
|
|
94
|
-
required :direct_upload_id, String
|
|
95
|
-
|
|
96
|
-
# @!method initialize(direct_upload_id:)
|
|
97
|
-
# Some parameter documentations has been truncated, see
|
|
98
|
-
# {WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID}
|
|
99
|
-
# for more details.
|
|
100
|
-
#
|
|
101
|
-
# Input for an attachment
|
|
102
|
-
#
|
|
103
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
107
|
-
# @!attribute id
|
|
108
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
109
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
110
|
-
# doing.
|
|
111
|
-
#
|
|
112
|
-
# @return [String]
|
|
113
|
-
required :id, String
|
|
114
|
-
|
|
115
|
-
# @!method initialize(id:)
|
|
116
|
-
# Some parameter documentations has been truncated, see
|
|
117
|
-
# {WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID}
|
|
118
|
-
# for more details.
|
|
119
|
-
#
|
|
120
|
-
# Input for an attachment
|
|
121
|
-
#
|
|
122
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
# @!method self.variants
|
|
126
|
-
# @return [Array(WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID)]
|
|
77
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
78
|
+
# @!attribute id
|
|
79
|
+
# The ID of an existing file object.
|
|
80
|
+
#
|
|
81
|
+
# @return [String]
|
|
82
|
+
required :id, String
|
|
83
|
+
|
|
84
|
+
# @!method initialize(id:)
|
|
85
|
+
# The thumbnail for the lesson in png, jpeg, or gif format
|
|
86
|
+
#
|
|
87
|
+
# @param id [String] The ID of an existing file object.
|
|
127
88
|
end
|
|
128
89
|
end
|
|
129
90
|
end
|