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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# typed: strong
|
|
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
|
+
TaggedSymbol =
|
|
10
|
+
T.type_alias { T.all(Symbol, WhopSDK::ForumPostVisibilityType) }
|
|
11
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
12
|
+
|
|
13
|
+
MEMBERS_ONLY =
|
|
14
|
+
T.let(:members_only, WhopSDK::ForumPostVisibilityType::TaggedSymbol)
|
|
15
|
+
GLOBALLY_VISIBLE =
|
|
16
|
+
T.let(:globally_visible, WhopSDK::ForumPostVisibilityType::TaggedSymbol)
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
override.returns(
|
|
20
|
+
T::Array[WhopSDK::ForumPostVisibilityType::TaggedSymbol]
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
def self.values
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -27,6 +27,14 @@ module WhopSDK
|
|
|
27
27
|
sig { returns(T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol])) }
|
|
28
28
|
attr_accessor :collection_methods
|
|
29
29
|
|
|
30
|
+
# The minimum creation date to filter by
|
|
31
|
+
sig { returns(T.nilable(Time)) }
|
|
32
|
+
attr_accessor :created_after
|
|
33
|
+
|
|
34
|
+
# The maximum creation date to filter by
|
|
35
|
+
sig { returns(T.nilable(Time)) }
|
|
36
|
+
attr_accessor :created_before
|
|
37
|
+
|
|
30
38
|
# The direction of the sort.
|
|
31
39
|
sig { returns(T.nilable(WhopSDK::Direction::OrSymbol)) }
|
|
32
40
|
attr_accessor :direction
|
|
@@ -58,6 +66,8 @@ module WhopSDK
|
|
|
58
66
|
before: T.nilable(String),
|
|
59
67
|
collection_methods:
|
|
60
68
|
T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]),
|
|
69
|
+
created_after: T.nilable(Time),
|
|
70
|
+
created_before: T.nilable(Time),
|
|
61
71
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
62
72
|
first: T.nilable(Integer),
|
|
63
73
|
last: T.nilable(Integer),
|
|
@@ -76,6 +86,10 @@ module WhopSDK
|
|
|
76
86
|
before: nil,
|
|
77
87
|
# Filter invoices by their collection method
|
|
78
88
|
collection_methods: nil,
|
|
89
|
+
# The minimum creation date to filter by
|
|
90
|
+
created_after: nil,
|
|
91
|
+
# The maximum creation date to filter by
|
|
92
|
+
created_before: nil,
|
|
79
93
|
# The direction of the sort.
|
|
80
94
|
direction: nil,
|
|
81
95
|
# Returns the first _n_ elements from the list.
|
|
@@ -100,6 +114,8 @@ module WhopSDK
|
|
|
100
114
|
before: T.nilable(String),
|
|
101
115
|
collection_methods:
|
|
102
116
|
T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]),
|
|
117
|
+
created_after: T.nilable(Time),
|
|
118
|
+
created_before: T.nilable(Time),
|
|
103
119
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
104
120
|
first: T.nilable(Integer),
|
|
105
121
|
last: T.nilable(Integer),
|
|
@@ -22,6 +22,10 @@ module WhopSDK
|
|
|
22
22
|
sig { returns(T.nilable(String)) }
|
|
23
23
|
attr_accessor :content
|
|
24
24
|
|
|
25
|
+
# The timestamp of when the lesson was created
|
|
26
|
+
sig { returns(Time) }
|
|
27
|
+
attr_accessor :created_at
|
|
28
|
+
|
|
25
29
|
# Number of days from course start until the lesson is unlocked
|
|
26
30
|
sig { returns(T.nilable(Integer)) }
|
|
27
31
|
attr_accessor :days_from_course_start_until_unlock
|
|
@@ -84,6 +88,7 @@ module WhopSDK
|
|
|
84
88
|
T::Array[WhopSDK::Lesson::AssessmentQuestion::OrHash],
|
|
85
89
|
attachments: T::Array[WhopSDK::Lesson::Attachment::OrHash],
|
|
86
90
|
content: T.nilable(String),
|
|
91
|
+
created_at: Time,
|
|
87
92
|
days_from_course_start_until_unlock: T.nilable(Integer),
|
|
88
93
|
embed_id: T.nilable(String),
|
|
89
94
|
embed_type: T.nilable(WhopSDK::EmbedType::OrSymbol),
|
|
@@ -105,6 +110,8 @@ module WhopSDK
|
|
|
105
110
|
attachments:,
|
|
106
111
|
# The content of the lesson
|
|
107
112
|
content:,
|
|
113
|
+
# The timestamp of when the lesson was created
|
|
114
|
+
created_at:,
|
|
108
115
|
# Number of days from course start until the lesson is unlocked
|
|
109
116
|
days_from_course_start_until_unlock:,
|
|
110
117
|
# ID for the embed (YouTube video ID or Loom share ID)
|
|
@@ -136,6 +143,7 @@ module WhopSDK
|
|
|
136
143
|
assessment_questions: T::Array[WhopSDK::Lesson::AssessmentQuestion],
|
|
137
144
|
attachments: T::Array[WhopSDK::Lesson::Attachment],
|
|
138
145
|
content: T.nilable(String),
|
|
146
|
+
created_at: Time,
|
|
139
147
|
days_from_course_start_until_unlock: T.nilable(Integer),
|
|
140
148
|
embed_id: T.nilable(String),
|
|
141
149
|
embed_type: T.nilable(WhopSDK::EmbedType::TaggedSymbol),
|
|
@@ -536,16 +544,66 @@ module WhopSDK
|
|
|
536
544
|
sig { returns(T.nilable(String)) }
|
|
537
545
|
attr_accessor :asset_id
|
|
538
546
|
|
|
547
|
+
# Whether this asset contains only audio
|
|
548
|
+
sig { returns(T::Boolean) }
|
|
549
|
+
attr_accessor :audio_only
|
|
550
|
+
|
|
551
|
+
# The time at which the Mux asset was created
|
|
552
|
+
sig { returns(Time) }
|
|
553
|
+
attr_accessor :created_at
|
|
554
|
+
|
|
555
|
+
# The duration of the video in seconds
|
|
556
|
+
sig { returns(T.nilable(Integer)) }
|
|
557
|
+
attr_accessor :duration_seconds
|
|
558
|
+
|
|
559
|
+
# The time at which the video finished uploading
|
|
560
|
+
sig { returns(T.nilable(Time)) }
|
|
561
|
+
attr_accessor :finished_uploading_at
|
|
562
|
+
|
|
539
563
|
# The public playback ID of the Mux asset
|
|
540
564
|
sig { returns(T.nilable(String)) }
|
|
541
565
|
attr_accessor :playback_id
|
|
542
566
|
|
|
567
|
+
# The signed playback ID of the Mux asset
|
|
568
|
+
sig { returns(T.nilable(String)) }
|
|
569
|
+
attr_accessor :signed_playback_id
|
|
570
|
+
|
|
571
|
+
# The signed storyboard playback token of the Mux asset
|
|
572
|
+
sig { returns(T.nilable(String)) }
|
|
573
|
+
attr_accessor :signed_storyboard_playback_token
|
|
574
|
+
|
|
575
|
+
# The signed thumbnail playback token of the Mux asset
|
|
576
|
+
sig { returns(T.nilable(String)) }
|
|
577
|
+
attr_accessor :signed_thumbnail_playback_token
|
|
578
|
+
|
|
579
|
+
# The signed video playback token of the Mux asset
|
|
580
|
+
sig { returns(T.nilable(String)) }
|
|
581
|
+
attr_accessor :signed_video_playback_token
|
|
582
|
+
|
|
583
|
+
# The status of the Mux asset
|
|
584
|
+
sig { returns(WhopSDK::Lesson::VideoAsset::Status::TaggedSymbol) }
|
|
585
|
+
attr_accessor :status
|
|
586
|
+
|
|
587
|
+
# The time at which the Mux asset was last updated
|
|
588
|
+
sig { returns(Time) }
|
|
589
|
+
attr_accessor :updated_at
|
|
590
|
+
|
|
543
591
|
# The associated Mux asset for video lessons
|
|
544
592
|
sig do
|
|
545
593
|
params(
|
|
546
594
|
id: String,
|
|
547
595
|
asset_id: T.nilable(String),
|
|
548
|
-
|
|
596
|
+
audio_only: T::Boolean,
|
|
597
|
+
created_at: Time,
|
|
598
|
+
duration_seconds: T.nilable(Integer),
|
|
599
|
+
finished_uploading_at: T.nilable(Time),
|
|
600
|
+
playback_id: T.nilable(String),
|
|
601
|
+
signed_playback_id: T.nilable(String),
|
|
602
|
+
signed_storyboard_playback_token: T.nilable(String),
|
|
603
|
+
signed_thumbnail_playback_token: T.nilable(String),
|
|
604
|
+
signed_video_playback_token: T.nilable(String),
|
|
605
|
+
status: WhopSDK::Lesson::VideoAsset::Status::OrSymbol,
|
|
606
|
+
updated_at: Time
|
|
549
607
|
).returns(T.attached_class)
|
|
550
608
|
end
|
|
551
609
|
def self.new(
|
|
@@ -553,8 +611,28 @@ module WhopSDK
|
|
|
553
611
|
id:,
|
|
554
612
|
# The Mux-provided ID of the asset
|
|
555
613
|
asset_id:,
|
|
614
|
+
# Whether this asset contains only audio
|
|
615
|
+
audio_only:,
|
|
616
|
+
# The time at which the Mux asset was created
|
|
617
|
+
created_at:,
|
|
618
|
+
# The duration of the video in seconds
|
|
619
|
+
duration_seconds:,
|
|
620
|
+
# The time at which the video finished uploading
|
|
621
|
+
finished_uploading_at:,
|
|
556
622
|
# The public playback ID of the Mux asset
|
|
557
|
-
playback_id
|
|
623
|
+
playback_id:,
|
|
624
|
+
# The signed playback ID of the Mux asset
|
|
625
|
+
signed_playback_id:,
|
|
626
|
+
# The signed storyboard playback token of the Mux asset
|
|
627
|
+
signed_storyboard_playback_token:,
|
|
628
|
+
# The signed thumbnail playback token of the Mux asset
|
|
629
|
+
signed_thumbnail_playback_token:,
|
|
630
|
+
# The signed video playback token of the Mux asset
|
|
631
|
+
signed_video_playback_token:,
|
|
632
|
+
# The status of the Mux asset
|
|
633
|
+
status:,
|
|
634
|
+
# The time at which the Mux asset was last updated
|
|
635
|
+
updated_at:
|
|
558
636
|
)
|
|
559
637
|
end
|
|
560
638
|
|
|
@@ -563,12 +641,46 @@ module WhopSDK
|
|
|
563
641
|
{
|
|
564
642
|
id: String,
|
|
565
643
|
asset_id: T.nilable(String),
|
|
566
|
-
|
|
644
|
+
audio_only: T::Boolean,
|
|
645
|
+
created_at: Time,
|
|
646
|
+
duration_seconds: T.nilable(Integer),
|
|
647
|
+
finished_uploading_at: T.nilable(Time),
|
|
648
|
+
playback_id: T.nilable(String),
|
|
649
|
+
signed_playback_id: T.nilable(String),
|
|
650
|
+
signed_storyboard_playback_token: T.nilable(String),
|
|
651
|
+
signed_thumbnail_playback_token: T.nilable(String),
|
|
652
|
+
signed_video_playback_token: T.nilable(String),
|
|
653
|
+
status: WhopSDK::Lesson::VideoAsset::Status::TaggedSymbol,
|
|
654
|
+
updated_at: Time
|
|
567
655
|
}
|
|
568
656
|
)
|
|
569
657
|
end
|
|
570
658
|
def to_hash
|
|
571
659
|
end
|
|
660
|
+
|
|
661
|
+
# The status of the Mux asset
|
|
662
|
+
module Status
|
|
663
|
+
extend WhopSDK::Internal::Type::Enum
|
|
664
|
+
|
|
665
|
+
TaggedSymbol =
|
|
666
|
+
T.type_alias { T.all(Symbol, WhopSDK::Lesson::VideoAsset::Status) }
|
|
667
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
668
|
+
|
|
669
|
+
UPLOADING =
|
|
670
|
+
T.let(:uploading, WhopSDK::Lesson::VideoAsset::Status::TaggedSymbol)
|
|
671
|
+
CREATED =
|
|
672
|
+
T.let(:created, WhopSDK::Lesson::VideoAsset::Status::TaggedSymbol)
|
|
673
|
+
READY =
|
|
674
|
+
T.let(:ready, WhopSDK::Lesson::VideoAsset::Status::TaggedSymbol)
|
|
675
|
+
|
|
676
|
+
sig do
|
|
677
|
+
override.returns(
|
|
678
|
+
T::Array[WhopSDK::Lesson::VideoAsset::Status::TaggedSymbol]
|
|
679
|
+
)
|
|
680
|
+
end
|
|
681
|
+
def self.values
|
|
682
|
+
end
|
|
683
|
+
end
|
|
572
684
|
end
|
|
573
685
|
end
|
|
574
686
|
end
|
|
@@ -106,6 +106,7 @@ module WhopSDK
|
|
|
106
106
|
PLATFORM_BALANCE =
|
|
107
107
|
T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
108
108
|
APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
109
|
+
VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
109
110
|
UNKNOWN = T.let(:unknown, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
110
111
|
|
|
111
112
|
sig do
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The different payment providers.
|
|
6
|
+
module PaymentProvider
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::PaymentProvider) }
|
|
10
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
|
+
|
|
12
|
+
STRIPE = T.let(:stripe, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
13
|
+
COINBASE = T.let(:coinbase, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
14
|
+
PAYPAL = T.let(:paypal, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
15
|
+
APPLE = T.let(:apple, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
16
|
+
SEZZLE = T.let(:sezzle, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
17
|
+
SPLITIT = T.let(:splitit, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
18
|
+
PLATFORM_BALANCE =
|
|
19
|
+
T.let(:platform_balance, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
20
|
+
MULTI_PSP = T.let(:multi_psp, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
21
|
+
|
|
22
|
+
sig { override.returns(T::Array[WhopSDK::PaymentProvider::TaggedSymbol]) }
|
|
23
|
+
def self.values
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -37,7 +37,7 @@ module WhopSDK
|
|
|
37
37
|
sig { returns(T.nilable(String)) }
|
|
38
38
|
attr_accessor :description
|
|
39
39
|
|
|
40
|
-
# The interval at which the plan
|
|
40
|
+
# The interval at which the plan expires and revokes access (expiration plans).
|
|
41
41
|
sig { returns(T.nilable(Integer)) }
|
|
42
42
|
attr_accessor :expiration_days
|
|
43
43
|
|
|
@@ -105,16 +105,6 @@ module WhopSDK
|
|
|
105
105
|
sig { returns(T.nilable(Integer)) }
|
|
106
106
|
attr_accessor :stock
|
|
107
107
|
|
|
108
|
-
# The price to display with a strikethrough for the initial price. Provided as a
|
|
109
|
-
# number in dollars. Eg: 19.99 for $19.99
|
|
110
|
-
sig { returns(T.nilable(Float)) }
|
|
111
|
-
attr_accessor :strike_through_initial_price
|
|
112
|
-
|
|
113
|
-
# The price to display with a strikethrough for the renewal price. Provided as a
|
|
114
|
-
# number in dollars. Eg: 19.99 for $19.99
|
|
115
|
-
sig { returns(T.nilable(Float)) }
|
|
116
|
-
attr_accessor :strike_through_renewal_price
|
|
117
|
-
|
|
118
108
|
# The title of the plan. This will be visible on the product page to customers.
|
|
119
109
|
sig { returns(T.nilable(String)) }
|
|
120
110
|
attr_accessor :title
|
|
@@ -159,8 +149,6 @@ module WhopSDK
|
|
|
159
149
|
release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
|
|
160
150
|
renewal_price: T.nilable(Float),
|
|
161
151
|
stock: T.nilable(Integer),
|
|
162
|
-
strike_through_initial_price: T.nilable(Float),
|
|
163
|
-
strike_through_renewal_price: T.nilable(Float),
|
|
164
152
|
title: T.nilable(String),
|
|
165
153
|
trial_period_days: T.nilable(Integer),
|
|
166
154
|
unlimited_stock: T.nilable(T::Boolean),
|
|
@@ -181,7 +169,7 @@ module WhopSDK
|
|
|
181
169
|
custom_fields: nil,
|
|
182
170
|
# The description of the plan.
|
|
183
171
|
description: nil,
|
|
184
|
-
# The interval at which the plan
|
|
172
|
+
# The interval at which the plan expires and revokes access (expiration plans).
|
|
185
173
|
expiration_days: nil,
|
|
186
174
|
# An image for the plan. This will be visible on the product page to customers.
|
|
187
175
|
image: nil,
|
|
@@ -206,12 +194,6 @@ module WhopSDK
|
|
|
206
194
|
renewal_price: nil,
|
|
207
195
|
# The number of units available for purchase.
|
|
208
196
|
stock: nil,
|
|
209
|
-
# The price to display with a strikethrough for the initial price. Provided as a
|
|
210
|
-
# number in dollars. Eg: 19.99 for $19.99
|
|
211
|
-
strike_through_initial_price: nil,
|
|
212
|
-
# The price to display with a strikethrough for the renewal price. Provided as a
|
|
213
|
-
# number in dollars. Eg: 19.99 for $19.99
|
|
214
|
-
strike_through_renewal_price: nil,
|
|
215
197
|
# The title of the plan. This will be visible on the product page to customers.
|
|
216
198
|
title: nil,
|
|
217
199
|
# The number of free trial days added before a renewal plan.
|
|
@@ -251,8 +233,6 @@ module WhopSDK
|
|
|
251
233
|
release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
|
|
252
234
|
renewal_price: T.nilable(Float),
|
|
253
235
|
stock: T.nilable(Integer),
|
|
254
|
-
strike_through_initial_price: T.nilable(Float),
|
|
255
|
-
strike_through_renewal_price: T.nilable(Float),
|
|
256
236
|
title: T.nilable(String),
|
|
257
237
|
trial_period_days: T.nilable(Integer),
|
|
258
238
|
unlimited_stock: T.nilable(T::Boolean),
|
|
@@ -23,6 +23,14 @@ module WhopSDK
|
|
|
23
23
|
sig { returns(T.nilable(String)) }
|
|
24
24
|
attr_accessor :before
|
|
25
25
|
|
|
26
|
+
# The minimum creation date to filter by
|
|
27
|
+
sig { returns(T.nilable(Time)) }
|
|
28
|
+
attr_accessor :created_after
|
|
29
|
+
|
|
30
|
+
# The maximum creation date to filter by
|
|
31
|
+
sig { returns(T.nilable(Time)) }
|
|
32
|
+
attr_accessor :created_before
|
|
33
|
+
|
|
26
34
|
# The direction of the sort.
|
|
27
35
|
sig { returns(T.nilable(WhopSDK::Direction::OrSymbol)) }
|
|
28
36
|
attr_accessor :direction
|
|
@@ -60,6 +68,8 @@ module WhopSDK
|
|
|
60
68
|
company_id: String,
|
|
61
69
|
after: T.nilable(String),
|
|
62
70
|
before: T.nilable(String),
|
|
71
|
+
created_after: T.nilable(Time),
|
|
72
|
+
created_before: T.nilable(Time),
|
|
63
73
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
64
74
|
first: T.nilable(Integer),
|
|
65
75
|
last: T.nilable(Integer),
|
|
@@ -80,6 +90,10 @@ module WhopSDK
|
|
|
80
90
|
after: nil,
|
|
81
91
|
# Returns the elements in the list that come before the specified cursor.
|
|
82
92
|
before: nil,
|
|
93
|
+
# The minimum creation date to filter by
|
|
94
|
+
created_after: nil,
|
|
95
|
+
# The maximum creation date to filter by
|
|
96
|
+
created_before: nil,
|
|
83
97
|
# The direction of the sort.
|
|
84
98
|
direction: nil,
|
|
85
99
|
# Returns the first _n_ elements from the list.
|
|
@@ -106,6 +120,8 @@ module WhopSDK
|
|
|
106
120
|
company_id: String,
|
|
107
121
|
after: T.nilable(String),
|
|
108
122
|
before: T.nilable(String),
|
|
123
|
+
created_after: T.nilable(Time),
|
|
124
|
+
created_before: T.nilable(Time),
|
|
109
125
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
110
126
|
first: T.nilable(Integer),
|
|
111
127
|
last: T.nilable(Integer),
|
|
@@ -23,6 +23,14 @@ module WhopSDK
|
|
|
23
23
|
sig { returns(T.nilable(String)) }
|
|
24
24
|
attr_accessor :before
|
|
25
25
|
|
|
26
|
+
# The minimum creation date to filter by
|
|
27
|
+
sig { returns(T.nilable(Time)) }
|
|
28
|
+
attr_accessor :created_after
|
|
29
|
+
|
|
30
|
+
# The maximum creation date to filter by
|
|
31
|
+
sig { returns(T.nilable(Time)) }
|
|
32
|
+
attr_accessor :created_before
|
|
33
|
+
|
|
26
34
|
# The direction of the sort.
|
|
27
35
|
sig { returns(T.nilable(WhopSDK::Direction::OrSymbol)) }
|
|
28
36
|
attr_accessor :direction
|
|
@@ -52,6 +60,8 @@ module WhopSDK
|
|
|
52
60
|
company_id: String,
|
|
53
61
|
after: T.nilable(String),
|
|
54
62
|
before: T.nilable(String),
|
|
63
|
+
created_after: T.nilable(Time),
|
|
64
|
+
created_before: T.nilable(Time),
|
|
55
65
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
56
66
|
first: T.nilable(Integer),
|
|
57
67
|
last: T.nilable(Integer),
|
|
@@ -69,6 +79,10 @@ module WhopSDK
|
|
|
69
79
|
after: nil,
|
|
70
80
|
# Returns the elements in the list that come before the specified cursor.
|
|
71
81
|
before: nil,
|
|
82
|
+
# The minimum creation date to filter by
|
|
83
|
+
created_after: nil,
|
|
84
|
+
# The maximum creation date to filter by
|
|
85
|
+
created_before: nil,
|
|
72
86
|
# The direction of the sort.
|
|
73
87
|
direction: nil,
|
|
74
88
|
# Returns the first _n_ elements from the list.
|
|
@@ -91,6 +105,8 @@ module WhopSDK
|
|
|
91
105
|
company_id: String,
|
|
92
106
|
after: T.nilable(String),
|
|
93
107
|
before: T.nilable(String),
|
|
108
|
+
created_after: T.nilable(Time),
|
|
109
|
+
created_before: T.nilable(Time),
|
|
94
110
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
95
111
|
first: T.nilable(Integer),
|
|
96
112
|
last: T.nilable(Integer),
|
|
@@ -11,19 +11,6 @@ module WhopSDK
|
|
|
11
11
|
T.any(WhopSDK::ProductUpdateParams, WhopSDK::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# A banner image for the product in png, jpeg format
|
|
15
|
-
sig do
|
|
16
|
-
returns(
|
|
17
|
-
T.nilable(
|
|
18
|
-
T.any(
|
|
19
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
|
|
20
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID
|
|
21
|
-
)
|
|
22
|
-
)
|
|
23
|
-
)
|
|
24
|
-
end
|
|
25
|
-
attr_accessor :banner_image
|
|
26
|
-
|
|
27
14
|
# The different business types a company can be.
|
|
28
15
|
sig { returns(T.nilable(WhopSDK::BusinessTypes::OrSymbol)) }
|
|
29
16
|
attr_accessor :business_type
|
|
@@ -108,13 +95,6 @@ module WhopSDK
|
|
|
108
95
|
|
|
109
96
|
sig do
|
|
110
97
|
params(
|
|
111
|
-
banner_image:
|
|
112
|
-
T.nilable(
|
|
113
|
-
T.any(
|
|
114
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID::OrHash,
|
|
115
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID::OrHash
|
|
116
|
-
)
|
|
117
|
-
),
|
|
118
98
|
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
119
99
|
collect_shipping_address: T.nilable(T::Boolean),
|
|
120
100
|
custom_cta: T.nilable(WhopSDK::CustomCta::OrSymbol),
|
|
@@ -140,8 +120,6 @@ module WhopSDK
|
|
|
140
120
|
).returns(T.attached_class)
|
|
141
121
|
end
|
|
142
122
|
def self.new(
|
|
143
|
-
# A banner image for the product in png, jpeg format
|
|
144
|
-
banner_image: nil,
|
|
145
123
|
# The different business types a company can be.
|
|
146
124
|
business_type: nil,
|
|
147
125
|
# Whether or not to collect shipping information at checkout from the customer.
|
|
@@ -187,13 +165,6 @@ module WhopSDK
|
|
|
187
165
|
sig do
|
|
188
166
|
override.returns(
|
|
189
167
|
{
|
|
190
|
-
banner_image:
|
|
191
|
-
T.nilable(
|
|
192
|
-
T.any(
|
|
193
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
|
|
194
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID
|
|
195
|
-
)
|
|
196
|
-
),
|
|
197
168
|
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
198
169
|
collect_shipping_address: T.nilable(T::Boolean),
|
|
199
170
|
custom_cta: T.nilable(WhopSDK::CustomCta::OrSymbol),
|
|
@@ -222,87 +193,6 @@ module WhopSDK
|
|
|
222
193
|
def to_hash
|
|
223
194
|
end
|
|
224
195
|
|
|
225
|
-
# A banner image for the product in png, jpeg format
|
|
226
|
-
module BannerImage
|
|
227
|
-
extend WhopSDK::Internal::Type::Union
|
|
228
|
-
|
|
229
|
-
Variants =
|
|
230
|
-
T.type_alias do
|
|
231
|
-
T.any(
|
|
232
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
|
|
233
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID
|
|
234
|
-
)
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
238
|
-
OrHash =
|
|
239
|
-
T.type_alias do
|
|
240
|
-
T.any(
|
|
241
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
|
|
242
|
-
WhopSDK::Internal::AnyHash
|
|
243
|
-
)
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
247
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
248
|
-
# mediaDirectUpload mutation.
|
|
249
|
-
sig { returns(String) }
|
|
250
|
-
attr_accessor :direct_upload_id
|
|
251
|
-
|
|
252
|
-
# Input for an attachment
|
|
253
|
-
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
254
|
-
def self.new(
|
|
255
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
256
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
257
|
-
# mediaDirectUpload mutation.
|
|
258
|
-
direct_upload_id:
|
|
259
|
-
)
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
sig { override.returns({ direct_upload_id: String }) }
|
|
263
|
-
def to_hash
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
268
|
-
OrHash =
|
|
269
|
-
T.type_alias do
|
|
270
|
-
T.any(
|
|
271
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID,
|
|
272
|
-
WhopSDK::Internal::AnyHash
|
|
273
|
-
)
|
|
274
|
-
end
|
|
275
|
-
|
|
276
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
277
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
278
|
-
# doing.
|
|
279
|
-
sig { returns(String) }
|
|
280
|
-
attr_accessor :id
|
|
281
|
-
|
|
282
|
-
# Input for an attachment
|
|
283
|
-
sig { params(id: String).returns(T.attached_class) }
|
|
284
|
-
def self.new(
|
|
285
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
286
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
287
|
-
# doing.
|
|
288
|
-
id:
|
|
289
|
-
)
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
sig { override.returns({ id: String }) }
|
|
293
|
-
def to_hash
|
|
294
|
-
end
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
sig do
|
|
298
|
-
override.returns(
|
|
299
|
-
T::Array[WhopSDK::ProductUpdateParams::BannerImage::Variants]
|
|
300
|
-
)
|
|
301
|
-
end
|
|
302
|
-
def self.variants
|
|
303
|
-
end
|
|
304
|
-
end
|
|
305
|
-
|
|
306
196
|
class StorePageConfig < WhopSDK::Internal::Type::BaseModel
|
|
307
197
|
OrHash =
|
|
308
198
|
T.type_alias do
|
|
@@ -23,6 +23,14 @@ module WhopSDK
|
|
|
23
23
|
sig { returns(T.nilable(String)) }
|
|
24
24
|
attr_accessor :before
|
|
25
25
|
|
|
26
|
+
# The minimum creation date to filter by
|
|
27
|
+
sig { returns(T.nilable(Time)) }
|
|
28
|
+
attr_accessor :created_after
|
|
29
|
+
|
|
30
|
+
# The maximum creation date to filter by
|
|
31
|
+
sig { returns(T.nilable(Time)) }
|
|
32
|
+
attr_accessor :created_before
|
|
33
|
+
|
|
26
34
|
# Returns the first _n_ elements from the list.
|
|
27
35
|
sig { returns(T.nilable(Integer)) }
|
|
28
36
|
attr_accessor :first
|
|
@@ -48,6 +56,8 @@ module WhopSDK
|
|
|
48
56
|
company_id: String,
|
|
49
57
|
after: T.nilable(String),
|
|
50
58
|
before: T.nilable(String),
|
|
59
|
+
created_after: T.nilable(Time),
|
|
60
|
+
created_before: T.nilable(Time),
|
|
51
61
|
first: T.nilable(Integer),
|
|
52
62
|
last: T.nilable(Integer),
|
|
53
63
|
plan_ids: T.nilable(T::Array[String]),
|
|
@@ -63,6 +73,10 @@ module WhopSDK
|
|
|
63
73
|
after: nil,
|
|
64
74
|
# Returns the elements in the list that come before the specified cursor.
|
|
65
75
|
before: nil,
|
|
76
|
+
# The minimum creation date to filter by
|
|
77
|
+
created_after: nil,
|
|
78
|
+
# The maximum creation date to filter by
|
|
79
|
+
created_before: nil,
|
|
66
80
|
# Returns the first _n_ elements from the list.
|
|
67
81
|
first: nil,
|
|
68
82
|
# Returns the last _n_ elements from the list.
|
|
@@ -83,6 +97,8 @@ module WhopSDK
|
|
|
83
97
|
company_id: String,
|
|
84
98
|
after: T.nilable(String),
|
|
85
99
|
before: T.nilable(String),
|
|
100
|
+
created_after: T.nilable(Time),
|
|
101
|
+
created_before: T.nilable(Time),
|
|
86
102
|
first: T.nilable(Integer),
|
|
87
103
|
last: T.nilable(Integer),
|
|
88
104
|
plan_ids: T.nilable(T::Array[String]),
|