whop_sdk 0.0.7 → 0.0.9
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 +7 -7
- data/lib/whop_sdk/client.rb +12 -0
- data/lib/whop_sdk/internal/type/base_model.rb +1 -1
- data/lib/whop_sdk/models/account_link_create_params.rb +62 -0
- data/lib/whop_sdk/models/account_link_create_response.rb +28 -0
- data/lib/whop_sdk/models/app.rb +9 -1
- data/lib/whop_sdk/models/app_build_list_params.rb +17 -1
- data/lib/whop_sdk/models/app_list_params.rb +10 -1
- data/lib/whop_sdk/models/app_list_response.rb +9 -1
- data/lib/whop_sdk/models/app_type.rb +18 -0
- data/lib/whop_sdk/models/app_update_params.rb +9 -1
- data/lib/whop_sdk/models/authorized_user_list_params.rb +17 -1
- data/lib/whop_sdk/models/checkout_configuration.rb +69 -7
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +73 -1
- data/lib/whop_sdk/models/checkout_configuration_list_params.rb +17 -1
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +69 -7
- data/lib/whop_sdk/models/checkout_modes.rb +16 -0
- data/lib/whop_sdk/models/company_list_params.rb +17 -1
- data/lib/whop_sdk/models/course.rb +9 -1
- data/lib/whop_sdk/models/course_lesson_list_response.rb +9 -1
- data/lib/whop_sdk/models/course_lesson_mark_as_completed_params.rb +14 -0
- data/lib/whop_sdk/models/course_lesson_mark_as_completed_response.rb +8 -0
- data/lib/whop_sdk/models/course_lesson_start_params.rb +14 -0
- data/lib/whop_sdk/models/course_lesson_start_response.rb +8 -0
- data/lib/whop_sdk/models/course_lesson_submit_assessment_params.rb +52 -0
- data/lib/whop_sdk/models/course_lesson_submit_assessment_response.rb +151 -0
- data/lib/whop_sdk/models/course_list_response.rb +9 -1
- data/lib/whop_sdk/models/dispute_list_params.rb +17 -1
- data/lib/whop_sdk/models/entry_list_params.rb +17 -1
- data/lib/whop_sdk/models/experience_list_params.rb +17 -1
- data/lib/whop_sdk/models/forum_post_create_params.rb +3 -14
- data/lib/whop_sdk/models/forum_post_update_params.rb +3 -14
- data/lib/whop_sdk/models/forum_post_visibility_type.rb +16 -0
- data/lib/whop_sdk/models/invoice_list_params.rb +17 -1
- data/lib/whop_sdk/models/lesson.rb +104 -2
- data/lib/whop_sdk/models/payment_method_types.rb +1 -0
- data/lib/whop_sdk/models/payment_provider.rb +22 -0
- data/lib/whop_sdk/models/plan_create_params.rb +3 -21
- data/lib/whop_sdk/models/plan_list_params.rb +17 -1
- data/lib/whop_sdk/models/product_list_params.rb +17 -1
- data/lib/whop_sdk/models/product_update_params.rb +1 -61
- data/lib/whop_sdk/models/promo_code_list_params.rb +17 -1
- data/lib/whop_sdk/models/refund_created_webhook_event.rb +354 -0
- data/lib/whop_sdk/models/refund_list_params.rb +78 -0
- data/lib/whop_sdk/models/refund_list_response.rb +113 -0
- data/lib/whop_sdk/models/refund_reference_status.rb +17 -0
- data/lib/whop_sdk/models/refund_reference_type.rb +17 -0
- data/lib/whop_sdk/models/refund_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/refund_retrieve_response.rb +307 -0
- data/lib/whop_sdk/models/refund_status.rb +19 -0
- data/lib/whop_sdk/models/refund_updated_webhook_event.rb +354 -0
- data/lib/whop_sdk/models/review_list_params.rb +17 -1
- data/lib/whop_sdk/models/transfer_list_params.rb +17 -1
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +5 -1
- data/lib/whop_sdk/models/withdrawal_fee_types.rb +16 -0
- data/lib/whop_sdk/models/withdrawal_list_params.rb +78 -0
- data/lib/whop_sdk/models/withdrawal_list_response.rb +87 -0
- data/lib/whop_sdk/models/withdrawal_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +320 -0
- data/lib/whop_sdk/models/withdrawal_speeds.rb +16 -0
- data/lib/whop_sdk/models/withdrawal_status.rb +21 -0
- data/lib/whop_sdk/models/withdrawal_types.rb +16 -0
- data/lib/whop_sdk/models.rb +42 -0
- data/lib/whop_sdk/resources/account_links.rb +47 -0
- data/lib/whop_sdk/resources/app_builds.rb +5 -1
- data/lib/whop_sdk/resources/apps.rb +6 -2
- data/lib/whop_sdk/resources/authorized_users.rb +5 -1
- data/lib/whop_sdk/resources/checkout_configurations.rb +16 -2
- data/lib/whop_sdk/resources/companies.rb +5 -1
- data/lib/whop_sdk/resources/course_lessons.rb +64 -0
- data/lib/whop_sdk/resources/disputes.rb +5 -1
- data/lib/whop_sdk/resources/entries.rb +5 -1
- data/lib/whop_sdk/resources/experiences.rb +5 -1
- data/lib/whop_sdk/resources/forum_posts.rb +2 -2
- data/lib/whop_sdk/resources/invoices.rb +5 -1
- data/lib/whop_sdk/resources/plans.rb +7 -7
- data/lib/whop_sdk/resources/products.rb +6 -4
- data/lib/whop_sdk/resources/promo_codes.rb +5 -1
- data/lib/whop_sdk/resources/refunds.rb +82 -0
- data/lib/whop_sdk/resources/reviews.rb +5 -1
- data/lib/whop_sdk/resources/transfers.rb +5 -1
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/resources/withdrawals.rb +79 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +33 -0
- data/manifest.yaml +1 -0
- data/rbi/whop_sdk/client.rbi +9 -0
- data/rbi/whop_sdk/models/account_link_create_params.rbi +101 -0
- data/rbi/whop_sdk/models/account_link_create_response.rbi +38 -0
- data/rbi/whop_sdk/models/app.rbi +8 -0
- data/rbi/whop_sdk/models/app_build_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +13 -0
- data/rbi/whop_sdk/models/app_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/app_type.rbi +22 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +8 -0
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +117 -7
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +116 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +127 -7
- data/rbi/whop_sdk/models/checkout_modes.rbi +20 -0
- data/rbi/whop_sdk/models/company_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/course.rbi +8 -0
- data/rbi/whop_sdk/models/course_lesson_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/course_lesson_mark_as_completed_params.rbi +30 -0
- data/rbi/whop_sdk/models/course_lesson_mark_as_completed_response.rbi +8 -0
- data/rbi/whop_sdk/models/course_lesson_start_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_lesson_start_response.rbi +8 -0
- data/rbi/whop_sdk/models/course_lesson_submit_assessment_params.rbi +104 -0
- data/rbi/whop_sdk/models/course_lesson_submit_assessment_response.rbi +222 -0
- data/rbi/whop_sdk/models/course_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/dispute_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/entry_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/experience_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +3 -37
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +3 -37
- data/rbi/whop_sdk/models/forum_post_visibility_type.rbi +27 -0
- data/rbi/whop_sdk/models/invoice_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/lesson.rbi +115 -3
- data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
- data/rbi/whop_sdk/models/payment_provider.rbi +27 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +2 -22
- data/rbi/whop_sdk/models/plan_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/product_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/product_update_params.rbi +0 -110
- data/rbi/whop_sdk/models/promo_code_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +561 -0
- data/rbi/whop_sdk/models/refund_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/refund_list_response.rbi +155 -0
- data/rbi/whop_sdk/models/refund_reference_status.rbi +26 -0
- data/rbi/whop_sdk/models/refund_reference_type.rbi +36 -0
- data/rbi/whop_sdk/models/refund_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/refund_retrieve_response.rbi +484 -0
- data/rbi/whop_sdk/models/refund_status.rbi +24 -0
- data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +561 -0
- data/rbi/whop_sdk/models/review_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/transfer_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/whop_sdk/models/withdrawal_fee_types.rbi +22 -0
- data/rbi/whop_sdk/models/withdrawal_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/withdrawal_list_response.rbi +107 -0
- data/rbi/whop_sdk/models/withdrawal_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +713 -0
- data/rbi/whop_sdk/models/withdrawal_speeds.rbi +22 -0
- data/rbi/whop_sdk/models/withdrawal_status.rbi +28 -0
- data/rbi/whop_sdk/models/withdrawal_types.rbi +20 -0
- data/rbi/whop_sdk/models.rbi +44 -0
- data/rbi/whop_sdk/resources/account_links.rbi +39 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +6 -0
- data/rbi/whop_sdk/resources/apps.rbi +6 -0
- data/rbi/whop_sdk/resources/authorized_users.rbi +6 -0
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +21 -0
- data/rbi/whop_sdk/resources/companies.rbi +6 -0
- data/rbi/whop_sdk/resources/course_lessons.rbi +48 -0
- data/rbi/whop_sdk/resources/disputes.rbi +6 -0
- data/rbi/whop_sdk/resources/entries.rbi +6 -0
- data/rbi/whop_sdk/resources/experiences.rbi +6 -0
- data/rbi/whop_sdk/resources/forum_posts.rbi +2 -4
- data/rbi/whop_sdk/resources/invoices.rbi +6 -0
- data/rbi/whop_sdk/resources/plans.rbi +7 -9
- data/rbi/whop_sdk/resources/products.rbi +6 -9
- data/rbi/whop_sdk/resources/promo_codes.rbi +6 -0
- data/rbi/whop_sdk/resources/refunds.rbi +74 -0
- data/rbi/whop_sdk/resources/reviews.rbi +6 -0
- data/rbi/whop_sdk/resources/transfers.rbi +6 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +3 -1
- data/rbi/whop_sdk/resources/withdrawals.rbi +71 -0
- data/sig/whop_sdk/client.rbs +6 -0
- data/sig/whop_sdk/models/account_link_create_params.rbs +52 -0
- data/sig/whop_sdk/models/account_link_create_response.rbs +15 -0
- data/sig/whop_sdk/models/app.rbs +5 -0
- data/sig/whop_sdk/models/app_build_list_params.rbs +10 -0
- data/sig/whop_sdk/models/app_list_params.rbs +7 -0
- data/sig/whop_sdk/models/app_list_response.rbs +5 -0
- data/sig/whop_sdk/models/app_type.rbs +16 -0
- data/sig/whop_sdk/models/app_update_params.rbs +5 -0
- data/sig/whop_sdk/models/authorized_user_list_params.rbs +10 -0
- data/sig/whop_sdk/models/checkout_configuration.rbs +45 -8
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +43 -1
- data/sig/whop_sdk/models/checkout_configuration_list_params.rbs +10 -0
- data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +45 -8
- data/sig/whop_sdk/models/checkout_modes.rbs +14 -0
- data/sig/whop_sdk/models/company_list_params.rbs +10 -0
- data/sig/whop_sdk/models/course.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_list_response.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_mark_as_completed_params.rbs +15 -0
- data/sig/whop_sdk/models/course_lesson_mark_as_completed_response.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_start_params.rbs +15 -0
- data/sig/whop_sdk/models/course_lesson_start_response.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_submit_assessment_params.rbs +51 -0
- data/sig/whop_sdk/models/course_lesson_submit_assessment_response.rbs +96 -0
- data/sig/whop_sdk/models/course_list_response.rbs +5 -0
- data/sig/whop_sdk/models/dispute_list_params.rbs +10 -0
- data/sig/whop_sdk/models/entry_list_params.rbs +10 -0
- data/sig/whop_sdk/models/experience_list_params.rbs +10 -0
- data/sig/whop_sdk/models/forum_post_create_params.rbs +4 -15
- data/sig/whop_sdk/models/forum_post_update_params.rbs +4 -15
- data/sig/whop_sdk/models/forum_post_visibility_type.rbs +14 -0
- data/sig/whop_sdk/models/invoice_list_params.rbs +10 -0
- data/sig/whop_sdk/models/lesson.rbs +79 -3
- data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
- data/sig/whop_sdk/models/payment_provider.rbs +28 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +0 -10
- data/sig/whop_sdk/models/plan_list_params.rbs +10 -0
- data/sig/whop_sdk/models/product_list_params.rbs +10 -0
- data/sig/whop_sdk/models/product_update_params.rbs +0 -36
- data/sig/whop_sdk/models/promo_code_list_params.rbs +10 -0
- data/sig/whop_sdk/models/refund_created_webhook_event.rbs +252 -0
- data/sig/whop_sdk/models/refund_list_params.rbs +61 -0
- data/sig/whop_sdk/models/refund_list_response.rbs +80 -0
- data/sig/whop_sdk/models/refund_reference_status.rbs +15 -0
- data/sig/whop_sdk/models/refund_reference_type.rbs +18 -0
- data/sig/whop_sdk/models/refund_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/refund_retrieve_response.rbs +215 -0
- data/sig/whop_sdk/models/refund_status.rbs +18 -0
- data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +252 -0
- data/sig/whop_sdk/models/review_list_params.rbs +10 -0
- data/sig/whop_sdk/models/transfer_list_params.rbs +10 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +2 -0
- data/sig/whop_sdk/models/withdrawal_fee_types.rbs +14 -0
- data/sig/whop_sdk/models/withdrawal_list_params.rbs +61 -0
- data/sig/whop_sdk/models/withdrawal_list_response.rbs +60 -0
- data/sig/whop_sdk/models/withdrawal_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +297 -0
- data/sig/whop_sdk/models/withdrawal_speeds.rbs +14 -0
- data/sig/whop_sdk/models/withdrawal_status.rbs +26 -0
- data/sig/whop_sdk/models/withdrawal_types.rbs +14 -0
- data/sig/whop_sdk/models.rbs +42 -0
- data/sig/whop_sdk/resources/account_links.rbs +15 -0
- data/sig/whop_sdk/resources/app_builds.rbs +2 -0
- data/sig/whop_sdk/resources/apps.rbs +2 -0
- data/sig/whop_sdk/resources/authorized_users.rbs +2 -0
- data/sig/whop_sdk/resources/checkout_configurations.rbs +5 -0
- data/sig/whop_sdk/resources/companies.rbs +2 -0
- data/sig/whop_sdk/resources/course_lessons.rbs +16 -0
- data/sig/whop_sdk/resources/disputes.rbs +2 -0
- data/sig/whop_sdk/resources/entries.rbs +2 -0
- data/sig/whop_sdk/resources/experiences.rbs +2 -0
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
- data/sig/whop_sdk/resources/invoices.rbs +2 -0
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/products.rbs +2 -1
- data/sig/whop_sdk/resources/promo_codes.rbs +2 -0
- data/sig/whop_sdk/resources/refunds.rbs +24 -0
- data/sig/whop_sdk/resources/reviews.rbs +2 -0
- data/sig/whop_sdk/resources/transfers.rbs +2 -0
- data/sig/whop_sdk/resources/webhooks.rbs +3 -1
- data/sig/whop_sdk/resources/withdrawals.rbs +24 -0
- metadata +98 -2
|
@@ -77,8 +77,8 @@ module WhopSDK
|
|
|
77
77
|
# @!attribute visibility
|
|
78
78
|
# The visibility types for forum posts
|
|
79
79
|
#
|
|
80
|
-
# @return [Symbol, WhopSDK::Models::
|
|
81
|
-
optional :visibility, enum: -> { WhopSDK::
|
|
80
|
+
# @return [Symbol, WhopSDK::Models::ForumPostVisibilityType, nil]
|
|
81
|
+
optional :visibility, enum: -> { WhopSDK::ForumPostVisibilityType }, nil?: true
|
|
82
82
|
|
|
83
83
|
# @!method initialize(experience_id:, attachments: nil, content: nil, is_mention: nil, parent_id: nil, paywall_amount: nil, paywall_currency: nil, pinned: nil, poll: nil, title: nil, visibility: nil, request_options: {})
|
|
84
84
|
# Some parameter documentations has been truncated, see
|
|
@@ -104,7 +104,7 @@ module WhopSDK
|
|
|
104
104
|
#
|
|
105
105
|
# @param title [String, nil] The title of the post. Only visible if paywalled.
|
|
106
106
|
#
|
|
107
|
-
# @param visibility [Symbol, WhopSDK::Models::
|
|
107
|
+
# @param visibility [Symbol, WhopSDK::Models::ForumPostVisibilityType, nil] The visibility types for forum posts
|
|
108
108
|
#
|
|
109
109
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
110
110
|
|
|
@@ -193,17 +193,6 @@ module WhopSDK
|
|
|
193
193
|
# @param text [String] The text of the poll option
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
|
-
|
|
197
|
-
# The visibility types for forum posts
|
|
198
|
-
module Visibility
|
|
199
|
-
extend WhopSDK::Internal::Type::Enum
|
|
200
|
-
|
|
201
|
-
MEMBERS_ONLY = :members_only
|
|
202
|
-
GLOBALLY_VISIBLE = :globally_visible
|
|
203
|
-
|
|
204
|
-
# @!method self.values
|
|
205
|
-
# @return [Array<Symbol>]
|
|
206
|
-
end
|
|
207
196
|
end
|
|
208
197
|
end
|
|
209
198
|
end
|
|
@@ -37,8 +37,8 @@ module WhopSDK
|
|
|
37
37
|
# @!attribute visibility
|
|
38
38
|
# The visibility types for forum posts
|
|
39
39
|
#
|
|
40
|
-
# @return [Symbol, WhopSDK::Models::
|
|
41
|
-
optional :visibility, enum: -> { WhopSDK::
|
|
40
|
+
# @return [Symbol, WhopSDK::Models::ForumPostVisibilityType, nil]
|
|
41
|
+
optional :visibility, enum: -> { WhopSDK::ForumPostVisibilityType }, nil?: true
|
|
42
42
|
|
|
43
43
|
# @!method initialize(attachments: nil, content: nil, is_pinned: nil, title: nil, visibility: nil, request_options: {})
|
|
44
44
|
# Some parameter documentations has been truncated, see
|
|
@@ -52,7 +52,7 @@ module WhopSDK
|
|
|
52
52
|
#
|
|
53
53
|
# @param title [String, nil] The title of the post. Only visible if paywalled.
|
|
54
54
|
#
|
|
55
|
-
# @param visibility [Symbol, WhopSDK::Models::
|
|
55
|
+
# @param visibility [Symbol, WhopSDK::Models::ForumPostVisibilityType, nil] The visibility types for forum posts
|
|
56
56
|
#
|
|
57
57
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
58
58
|
|
|
@@ -107,17 +107,6 @@ module WhopSDK
|
|
|
107
107
|
# @!method self.variants
|
|
108
108
|
# @return [Array(WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID)]
|
|
109
109
|
end
|
|
110
|
-
|
|
111
|
-
# The visibility types for forum posts
|
|
112
|
-
module Visibility
|
|
113
|
-
extend WhopSDK::Internal::Type::Enum
|
|
114
|
-
|
|
115
|
-
MEMBERS_ONLY = :members_only
|
|
116
|
-
GLOBALLY_VISIBLE = :globally_visible
|
|
117
|
-
|
|
118
|
-
# @!method self.values
|
|
119
|
-
# @return [Array<Symbol>]
|
|
120
|
-
end
|
|
121
110
|
end
|
|
122
111
|
end
|
|
123
112
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The visibility types for forum posts
|
|
6
|
+
module ForumPostVisibilityType
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
MEMBERS_ONLY = :members_only
|
|
10
|
+
GLOBALLY_VISIBLE = :globally_visible
|
|
11
|
+
|
|
12
|
+
# @!method self.values
|
|
13
|
+
# @return [Array<Symbol>]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -33,6 +33,18 @@ module WhopSDK
|
|
|
33
33
|
-> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::CollectionMethod] },
|
|
34
34
|
nil?: true
|
|
35
35
|
|
|
36
|
+
# @!attribute created_after
|
|
37
|
+
# The minimum creation date to filter by
|
|
38
|
+
#
|
|
39
|
+
# @return [Time, nil]
|
|
40
|
+
optional :created_after, Time, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!attribute created_before
|
|
43
|
+
# The maximum creation date to filter by
|
|
44
|
+
#
|
|
45
|
+
# @return [Time, nil]
|
|
46
|
+
optional :created_before, Time, nil?: true
|
|
47
|
+
|
|
36
48
|
# @!attribute direction
|
|
37
49
|
# The direction of the sort.
|
|
38
50
|
#
|
|
@@ -69,7 +81,7 @@ module WhopSDK
|
|
|
69
81
|
# @return [Array<Symbol, WhopSDK::Models::InvoiceStatus>, nil]
|
|
70
82
|
optional :statuses, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::InvoiceStatus] }, nil?: true
|
|
71
83
|
|
|
72
|
-
# @!method initialize(company_id:, after: nil, before: nil, collection_methods: nil, direction: nil, first: nil, last: nil, order: nil, product_ids: nil, statuses: nil, request_options: {})
|
|
84
|
+
# @!method initialize(company_id:, after: nil, before: nil, collection_methods: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, product_ids: nil, statuses: nil, request_options: {})
|
|
73
85
|
# @param company_id [String] The ID of the company to list invoices for
|
|
74
86
|
#
|
|
75
87
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
@@ -78,6 +90,10 @@ module WhopSDK
|
|
|
78
90
|
#
|
|
79
91
|
# @param collection_methods [Array<Symbol, WhopSDK::Models::CollectionMethod>, nil] Filter invoices by their collection method
|
|
80
92
|
#
|
|
93
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
94
|
+
#
|
|
95
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
96
|
+
#
|
|
81
97
|
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
82
98
|
#
|
|
83
99
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
@@ -29,6 +29,12 @@ module WhopSDK
|
|
|
29
29
|
# @return [String, nil]
|
|
30
30
|
required :content, String, nil?: true
|
|
31
31
|
|
|
32
|
+
# @!attribute created_at
|
|
33
|
+
# The timestamp of when the lesson was created
|
|
34
|
+
#
|
|
35
|
+
# @return [Time]
|
|
36
|
+
required :created_at, Time
|
|
37
|
+
|
|
32
38
|
# @!attribute days_from_course_start_until_unlock
|
|
33
39
|
# Number of days from course start until the lesson is unlocked
|
|
34
40
|
#
|
|
@@ -90,7 +96,7 @@ module WhopSDK
|
|
|
90
96
|
# @return [Symbol, WhopSDK::Models::LessonVisibilities]
|
|
91
97
|
required :visibility, enum: -> { WhopSDK::LessonVisibilities }
|
|
92
98
|
|
|
93
|
-
# @!method initialize(id:, assessment_questions:, attachments:, content:, days_from_course_start_until_unlock:, embed_id:, embed_type:, lesson_type:, main_pdf:, order:, thumbnail:, title:, video_asset:, visibility:)
|
|
99
|
+
# @!method initialize(id:, assessment_questions:, attachments:, content:, created_at:, days_from_course_start_until_unlock:, embed_id:, embed_type:, lesson_type:, main_pdf:, order:, thumbnail:, title:, video_asset:, visibility:)
|
|
94
100
|
# Some parameter documentations has been truncated, see {WhopSDK::Models::Lesson}
|
|
95
101
|
# for more details.
|
|
96
102
|
#
|
|
@@ -104,6 +110,8 @@ module WhopSDK
|
|
|
104
110
|
#
|
|
105
111
|
# @param content [String, nil] The content of the lesson
|
|
106
112
|
#
|
|
113
|
+
# @param created_at [Time] The timestamp of when the lesson was created
|
|
114
|
+
#
|
|
107
115
|
# @param days_from_course_start_until_unlock [Integer, nil] Number of days from course start until the lesson is unlocked
|
|
108
116
|
#
|
|
109
117
|
# @param embed_id [String, nil] ID for the embed (YouTube video ID or Loom share ID)
|
|
@@ -395,20 +403,114 @@ module WhopSDK
|
|
|
395
403
|
# @return [String, nil]
|
|
396
404
|
required :asset_id, String, nil?: true
|
|
397
405
|
|
|
406
|
+
# @!attribute audio_only
|
|
407
|
+
# Whether this asset contains only audio
|
|
408
|
+
#
|
|
409
|
+
# @return [Boolean]
|
|
410
|
+
required :audio_only, WhopSDK::Internal::Type::Boolean
|
|
411
|
+
|
|
412
|
+
# @!attribute created_at
|
|
413
|
+
# The time at which the Mux asset was created
|
|
414
|
+
#
|
|
415
|
+
# @return [Time]
|
|
416
|
+
required :created_at, Time
|
|
417
|
+
|
|
418
|
+
# @!attribute duration_seconds
|
|
419
|
+
# The duration of the video in seconds
|
|
420
|
+
#
|
|
421
|
+
# @return [Integer, nil]
|
|
422
|
+
required :duration_seconds, Integer, nil?: true
|
|
423
|
+
|
|
424
|
+
# @!attribute finished_uploading_at
|
|
425
|
+
# The time at which the video finished uploading
|
|
426
|
+
#
|
|
427
|
+
# @return [Time, nil]
|
|
428
|
+
required :finished_uploading_at, Time, nil?: true
|
|
429
|
+
|
|
398
430
|
# @!attribute playback_id
|
|
399
431
|
# The public playback ID of the Mux asset
|
|
400
432
|
#
|
|
401
433
|
# @return [String, nil]
|
|
402
434
|
required :playback_id, String, nil?: true
|
|
403
435
|
|
|
404
|
-
# @!
|
|
436
|
+
# @!attribute signed_playback_id
|
|
437
|
+
# The signed playback ID of the Mux asset
|
|
438
|
+
#
|
|
439
|
+
# @return [String, nil]
|
|
440
|
+
required :signed_playback_id, String, nil?: true
|
|
441
|
+
|
|
442
|
+
# @!attribute signed_storyboard_playback_token
|
|
443
|
+
# The signed storyboard playback token of the Mux asset
|
|
444
|
+
#
|
|
445
|
+
# @return [String, nil]
|
|
446
|
+
required :signed_storyboard_playback_token, String, nil?: true
|
|
447
|
+
|
|
448
|
+
# @!attribute signed_thumbnail_playback_token
|
|
449
|
+
# The signed thumbnail playback token of the Mux asset
|
|
450
|
+
#
|
|
451
|
+
# @return [String, nil]
|
|
452
|
+
required :signed_thumbnail_playback_token, String, nil?: true
|
|
453
|
+
|
|
454
|
+
# @!attribute signed_video_playback_token
|
|
455
|
+
# The signed video playback token of the Mux asset
|
|
456
|
+
#
|
|
457
|
+
# @return [String, nil]
|
|
458
|
+
required :signed_video_playback_token, String, nil?: true
|
|
459
|
+
|
|
460
|
+
# @!attribute status
|
|
461
|
+
# The status of the Mux asset
|
|
462
|
+
#
|
|
463
|
+
# @return [Symbol, WhopSDK::Models::Lesson::VideoAsset::Status]
|
|
464
|
+
required :status, enum: -> { WhopSDK::Lesson::VideoAsset::Status }
|
|
465
|
+
|
|
466
|
+
# @!attribute updated_at
|
|
467
|
+
# The time at which the Mux asset was last updated
|
|
468
|
+
#
|
|
469
|
+
# @return [Time]
|
|
470
|
+
required :updated_at, Time
|
|
471
|
+
|
|
472
|
+
# @!method initialize(id:, asset_id:, audio_only:, created_at:, duration_seconds:, finished_uploading_at:, playback_id:, signed_playback_id:, signed_storyboard_playback_token:, signed_thumbnail_playback_token:, signed_video_playback_token:, status:, updated_at:)
|
|
405
473
|
# The associated Mux asset for video lessons
|
|
406
474
|
#
|
|
407
475
|
# @param id [String] The ID of the Mux asset
|
|
408
476
|
#
|
|
409
477
|
# @param asset_id [String, nil] The Mux-provided ID of the asset
|
|
410
478
|
#
|
|
479
|
+
# @param audio_only [Boolean] Whether this asset contains only audio
|
|
480
|
+
#
|
|
481
|
+
# @param created_at [Time] The time at which the Mux asset was created
|
|
482
|
+
#
|
|
483
|
+
# @param duration_seconds [Integer, nil] The duration of the video in seconds
|
|
484
|
+
#
|
|
485
|
+
# @param finished_uploading_at [Time, nil] The time at which the video finished uploading
|
|
486
|
+
#
|
|
411
487
|
# @param playback_id [String, nil] The public playback ID of the Mux asset
|
|
488
|
+
#
|
|
489
|
+
# @param signed_playback_id [String, nil] The signed playback ID of the Mux asset
|
|
490
|
+
#
|
|
491
|
+
# @param signed_storyboard_playback_token [String, nil] The signed storyboard playback token of the Mux asset
|
|
492
|
+
#
|
|
493
|
+
# @param signed_thumbnail_playback_token [String, nil] The signed thumbnail playback token of the Mux asset
|
|
494
|
+
#
|
|
495
|
+
# @param signed_video_playback_token [String, nil] The signed video playback token of the Mux asset
|
|
496
|
+
#
|
|
497
|
+
# @param status [Symbol, WhopSDK::Models::Lesson::VideoAsset::Status] The status of the Mux asset
|
|
498
|
+
#
|
|
499
|
+
# @param updated_at [Time] The time at which the Mux asset was last updated
|
|
500
|
+
|
|
501
|
+
# The status of the Mux asset
|
|
502
|
+
#
|
|
503
|
+
# @see WhopSDK::Models::Lesson::VideoAsset#status
|
|
504
|
+
module Status
|
|
505
|
+
extend WhopSDK::Internal::Type::Enum
|
|
506
|
+
|
|
507
|
+
UPLOADING = :uploading
|
|
508
|
+
CREATED = :created
|
|
509
|
+
READY = :ready
|
|
510
|
+
|
|
511
|
+
# @!method self.values
|
|
512
|
+
# @return [Array<Symbol>]
|
|
513
|
+
end
|
|
412
514
|
end
|
|
413
515
|
end
|
|
414
516
|
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The different payment providers.
|
|
6
|
+
module PaymentProvider
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
STRIPE = :stripe
|
|
10
|
+
COINBASE = :coinbase
|
|
11
|
+
PAYPAL = :paypal
|
|
12
|
+
APPLE = :apple
|
|
13
|
+
SEZZLE = :sezzle
|
|
14
|
+
SPLITIT = :splitit
|
|
15
|
+
PLATFORM_BALANCE = :platform_balance
|
|
16
|
+
MULTI_PSP = :multi_psp
|
|
17
|
+
|
|
18
|
+
# @!method self.values
|
|
19
|
+
# @return [Array<Symbol>]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -46,7 +46,7 @@ module WhopSDK
|
|
|
46
46
|
optional :description, String, nil?: true
|
|
47
47
|
|
|
48
48
|
# @!attribute expiration_days
|
|
49
|
-
# The interval at which the plan
|
|
49
|
+
# The interval at which the plan expires and revokes access (expiration plans).
|
|
50
50
|
#
|
|
51
51
|
# @return [Integer, nil]
|
|
52
52
|
optional :expiration_days, Integer, nil?: true
|
|
@@ -112,20 +112,6 @@ module WhopSDK
|
|
|
112
112
|
# @return [Integer, nil]
|
|
113
113
|
optional :stock, Integer, nil?: true
|
|
114
114
|
|
|
115
|
-
# @!attribute strike_through_initial_price
|
|
116
|
-
# The price to display with a strikethrough for the initial price. Provided as a
|
|
117
|
-
# number in dollars. Eg: 19.99 for $19.99
|
|
118
|
-
#
|
|
119
|
-
# @return [Float, nil]
|
|
120
|
-
optional :strike_through_initial_price, Float, nil?: true
|
|
121
|
-
|
|
122
|
-
# @!attribute strike_through_renewal_price
|
|
123
|
-
# The price to display with a strikethrough for the renewal price. Provided as a
|
|
124
|
-
# number in dollars. Eg: 19.99 for $19.99
|
|
125
|
-
#
|
|
126
|
-
# @return [Float, nil]
|
|
127
|
-
optional :strike_through_renewal_price, Float, nil?: true
|
|
128
|
-
|
|
129
115
|
# @!attribute title
|
|
130
116
|
# The title of the plan. This will be visible on the product page to customers.
|
|
131
117
|
#
|
|
@@ -150,7 +136,7 @@ module WhopSDK
|
|
|
150
136
|
# @return [Symbol, WhopSDK::Models::Visibility, nil]
|
|
151
137
|
optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
|
|
152
138
|
|
|
153
|
-
# @!method initialize(company_id:, product_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, release_method: nil, renewal_price: nil, stock: nil,
|
|
139
|
+
# @!method initialize(company_id:, product_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, release_method: nil, renewal_price: nil, stock: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
|
|
154
140
|
# Some parameter documentations has been truncated, see
|
|
155
141
|
# {WhopSDK::Models::PlanCreateParams} for more details.
|
|
156
142
|
#
|
|
@@ -166,7 +152,7 @@ module WhopSDK
|
|
|
166
152
|
#
|
|
167
153
|
# @param description [String, nil] The description of the plan.
|
|
168
154
|
#
|
|
169
|
-
# @param expiration_days [Integer, nil] The interval at which the plan
|
|
155
|
+
# @param expiration_days [Integer, nil] The interval at which the plan expires and revokes access (expiration plans).
|
|
170
156
|
#
|
|
171
157
|
# @param image [WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID, nil] An image for the plan. This will be visible on the product page to customers.
|
|
172
158
|
#
|
|
@@ -186,10 +172,6 @@ module WhopSDK
|
|
|
186
172
|
#
|
|
187
173
|
# @param stock [Integer, nil] The number of units available for purchase.
|
|
188
174
|
#
|
|
189
|
-
# @param strike_through_initial_price [Float, nil] The price to display with a strikethrough for the initial price. Provided as a n
|
|
190
|
-
#
|
|
191
|
-
# @param strike_through_renewal_price [Float, nil] The price to display with a strikethrough for the renewal price. Provided as a n
|
|
192
|
-
#
|
|
193
175
|
# @param title [String, nil] The title of the plan. This will be visible on the product page to customers.
|
|
194
176
|
#
|
|
195
177
|
# @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
|
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :before, String, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute direction
|
|
29
41
|
# The direction of the sort.
|
|
30
42
|
#
|
|
@@ -77,13 +89,17 @@ module WhopSDK
|
|
|
77
89
|
-> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::VisibilityFilter] },
|
|
78
90
|
nil?: true
|
|
79
91
|
|
|
80
|
-
# @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, order: nil, plan_types: nil, product_ids: nil, release_methods: nil, visibilities: nil, request_options: {})
|
|
92
|
+
# @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, plan_types: nil, product_ids: nil, release_methods: nil, visibilities: nil, request_options: {})
|
|
81
93
|
# @param company_id [String] The ID of the company
|
|
82
94
|
#
|
|
83
95
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
84
96
|
#
|
|
85
97
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
86
98
|
#
|
|
99
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
100
|
+
#
|
|
101
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
102
|
+
#
|
|
87
103
|
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
88
104
|
#
|
|
89
105
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :before, String, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute direction
|
|
29
41
|
# The direction of the sort.
|
|
30
42
|
#
|
|
@@ -65,13 +77,17 @@ module WhopSDK
|
|
|
65
77
|
-> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::VisibilityFilter] },
|
|
66
78
|
nil?: true
|
|
67
79
|
|
|
68
|
-
# @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, order: nil, product_types: nil, visibilities: nil, request_options: {})
|
|
80
|
+
# @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, product_types: nil, visibilities: nil, request_options: {})
|
|
69
81
|
# @param company_id [String] The ID of the company to filter products by
|
|
70
82
|
#
|
|
71
83
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
72
84
|
#
|
|
73
85
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
74
86
|
#
|
|
87
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
88
|
+
#
|
|
89
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
90
|
+
#
|
|
75
91
|
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
76
92
|
#
|
|
77
93
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
@@ -7,12 +7,6 @@ module WhopSDK
|
|
|
7
7
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!attribute banner_image
|
|
11
|
-
# A banner image for the product in png, jpeg format
|
|
12
|
-
#
|
|
13
|
-
# @return [WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID, nil]
|
|
14
|
-
optional :banner_image, union: -> { WhopSDK::ProductUpdateParams::BannerImage }, nil?: true
|
|
15
|
-
|
|
16
10
|
# @!attribute business_type
|
|
17
11
|
# The different business types a company can be.
|
|
18
12
|
#
|
|
@@ -123,12 +117,10 @@ module WhopSDK
|
|
|
123
117
|
# @return [Symbol, WhopSDK::Models::Visibility, nil]
|
|
124
118
|
optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
|
|
125
119
|
|
|
126
|
-
# @!method initialize(
|
|
120
|
+
# @!method initialize(business_type: nil, collect_shipping_address: nil, custom_cta: nil, custom_cta_url: nil, custom_statement_descriptor: nil, description: nil, global_affiliate_percentage: nil, global_affiliate_status: nil, headline: nil, industry_type: nil, member_affiliate_percentage: nil, member_affiliate_status: nil, product_tax_code_id: nil, redirect_purchase_url: nil, route: nil, store_page_config: nil, title: nil, visibility: nil, request_options: {})
|
|
127
121
|
# Some parameter documentations has been truncated, see
|
|
128
122
|
# {WhopSDK::Models::ProductUpdateParams} for more details.
|
|
129
123
|
#
|
|
130
|
-
# @param banner_image [WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID, nil] A banner image for the product in png, jpeg format
|
|
131
|
-
#
|
|
132
124
|
# @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
|
|
133
125
|
#
|
|
134
126
|
# @param collect_shipping_address [Boolean, nil] Whether or not to collect shipping information at checkout from the customer.
|
|
@@ -168,58 +160,6 @@ module WhopSDK
|
|
|
168
160
|
#
|
|
169
161
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
170
162
|
|
|
171
|
-
# A banner image for the product in png, jpeg format
|
|
172
|
-
module BannerImage
|
|
173
|
-
extend WhopSDK::Internal::Type::Union
|
|
174
|
-
|
|
175
|
-
# Input for an attachment
|
|
176
|
-
variant -> { WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID }
|
|
177
|
-
|
|
178
|
-
# Input for an attachment
|
|
179
|
-
variant -> { WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID }
|
|
180
|
-
|
|
181
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
182
|
-
# @!attribute direct_upload_id
|
|
183
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
184
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
185
|
-
# mediaDirectUpload mutation.
|
|
186
|
-
#
|
|
187
|
-
# @return [String]
|
|
188
|
-
required :direct_upload_id, String
|
|
189
|
-
|
|
190
|
-
# @!method initialize(direct_upload_id:)
|
|
191
|
-
# Some parameter documentations has been truncated, see
|
|
192
|
-
# {WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID}
|
|
193
|
-
# for more details.
|
|
194
|
-
#
|
|
195
|
-
# Input for an attachment
|
|
196
|
-
#
|
|
197
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
201
|
-
# @!attribute id
|
|
202
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
203
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
204
|
-
# doing.
|
|
205
|
-
#
|
|
206
|
-
# @return [String]
|
|
207
|
-
required :id, String
|
|
208
|
-
|
|
209
|
-
# @!method initialize(id:)
|
|
210
|
-
# Some parameter documentations has been truncated, see
|
|
211
|
-
# {WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID} for
|
|
212
|
-
# more details.
|
|
213
|
-
#
|
|
214
|
-
# Input for an attachment
|
|
215
|
-
#
|
|
216
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
# @!method self.variants
|
|
220
|
-
# @return [Array(WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID)]
|
|
221
|
-
end
|
|
222
|
-
|
|
223
163
|
class StorePageConfig < WhopSDK::Internal::Type::BaseModel
|
|
224
164
|
# @!attribute custom_cta
|
|
225
165
|
# Custom call-to-action text for the product's store page.
|
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :before, String, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute first
|
|
29
41
|
# Returns the first _n_ elements from the list.
|
|
30
42
|
#
|
|
@@ -55,13 +67,17 @@ module WhopSDK
|
|
|
55
67
|
# @return [Symbol, WhopSDK::Models::PromoCodeStatus, nil]
|
|
56
68
|
optional :status, enum: -> { WhopSDK::PromoCodeStatus }, nil?: true
|
|
57
69
|
|
|
58
|
-
# @!method initialize(company_id:, after: nil, before: nil, first: nil, last: nil, plan_ids: nil, product_ids: nil, status: nil, request_options: {})
|
|
70
|
+
# @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, plan_ids: nil, product_ids: nil, status: nil, request_options: {})
|
|
59
71
|
# @param company_id [String] The ID of the company to list promo codes for
|
|
60
72
|
#
|
|
61
73
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
62
74
|
#
|
|
63
75
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
64
76
|
#
|
|
77
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
78
|
+
#
|
|
79
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
80
|
+
#
|
|
65
81
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
66
82
|
#
|
|
67
83
|
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|