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
data/rbi/whop_sdk/models.rbi
CHANGED
|
@@ -321,6 +321,8 @@ module WhopSDK
|
|
|
321
321
|
|
|
322
322
|
MembershipStatus = WhopSDK::Models::MembershipStatus
|
|
323
323
|
|
|
324
|
+
MembershipUncancelParams = WhopSDK::Models::MembershipUncancelParams
|
|
325
|
+
|
|
324
326
|
MembershipUpdateParams = WhopSDK::Models::MembershipUpdateParams
|
|
325
327
|
|
|
326
328
|
MemberStatuses = WhopSDK::Models::MemberStatuses
|
|
@@ -554,7 +556,5 @@ module WhopSDK
|
|
|
554
556
|
|
|
555
557
|
WithdrawalStatus = WhopSDK::Models::WithdrawalStatus
|
|
556
558
|
|
|
557
|
-
WithdrawalTypes = WhopSDK::Models::WithdrawalTypes
|
|
558
|
-
|
|
559
559
|
WithdrawalUpdatedWebhookEvent = WhopSDK::Models::WithdrawalUpdatedWebhookEvent
|
|
560
560
|
end
|
|
@@ -10,11 +10,7 @@ module WhopSDK
|
|
|
10
10
|
# - `developer:manage_builds`
|
|
11
11
|
sig do
|
|
12
12
|
params(
|
|
13
|
-
attachment:
|
|
14
|
-
T.any(
|
|
15
|
-
WhopSDK::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
16
|
-
WhopSDK::AppBuildCreateParams::Attachment::AttachmentInputWithID::OrHash
|
|
17
|
-
),
|
|
13
|
+
attachment: WhopSDK::AppBuildCreateParams::Attachment::OrHash,
|
|
18
14
|
checksum: String,
|
|
19
15
|
platform: WhopSDK::AppBuildPlatforms::OrSymbol,
|
|
20
16
|
ai_prompt_id: T.nilable(String),
|
|
@@ -14,6 +14,7 @@ module WhopSDK
|
|
|
14
14
|
company_id: String,
|
|
15
15
|
name: String,
|
|
16
16
|
base_url: T.nilable(String),
|
|
17
|
+
icon: T.nilable(WhopSDK::AppCreateParams::Icon::OrHash),
|
|
17
18
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
18
19
|
).returns(WhopSDK::App)
|
|
19
20
|
end
|
|
@@ -24,6 +25,8 @@ module WhopSDK
|
|
|
24
25
|
name:,
|
|
25
26
|
# The base URL of the app to be created
|
|
26
27
|
base_url: nil,
|
|
28
|
+
# The icon for the app in png, jpeg, or gif format
|
|
29
|
+
icon: nil,
|
|
27
30
|
request_options: {}
|
|
28
31
|
)
|
|
29
32
|
end
|
|
@@ -62,13 +65,7 @@ module WhopSDK
|
|
|
62
65
|
description: T.nilable(String),
|
|
63
66
|
discover_path: T.nilable(String),
|
|
64
67
|
experience_path: T.nilable(String),
|
|
65
|
-
icon:
|
|
66
|
-
T.nilable(
|
|
67
|
-
T.any(
|
|
68
|
-
WhopSDK::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID::OrHash,
|
|
69
|
-
WhopSDK::AppUpdateParams::Icon::AttachmentInputWithID::OrHash
|
|
70
|
-
)
|
|
71
|
-
),
|
|
68
|
+
icon: T.nilable(WhopSDK::AppUpdateParams::Icon::OrHash),
|
|
72
69
|
name: T.nilable(String),
|
|
73
70
|
required_scopes:
|
|
74
71
|
T.nilable(
|
|
@@ -25,6 +25,7 @@ module WhopSDK
|
|
|
25
25
|
WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration::OrHash
|
|
26
26
|
),
|
|
27
27
|
redirect_url: T.nilable(String),
|
|
28
|
+
source_url: T.nilable(String),
|
|
28
29
|
mode: Symbol,
|
|
29
30
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
30
31
|
).returns(WhopSDK::CheckoutConfiguration)
|
|
@@ -49,6 +50,8 @@ module WhopSDK
|
|
|
49
50
|
payment_method_configuration: nil,
|
|
50
51
|
# The URL to redirect the user to after the checkout configuration is created
|
|
51
52
|
redirect_url: nil,
|
|
53
|
+
# The URL of the page where the checkout is being initiated from.
|
|
54
|
+
source_url: nil,
|
|
52
55
|
mode: :setup,
|
|
53
56
|
request_options: {}
|
|
54
57
|
)
|
|
@@ -16,6 +16,7 @@ module WhopSDK
|
|
|
16
16
|
title: String,
|
|
17
17
|
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
18
18
|
industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
|
|
19
|
+
logo: T.nilable(WhopSDK::CompanyCreateParams::Logo::OrHash),
|
|
19
20
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
20
21
|
send_customer_emails: T.nilable(T::Boolean),
|
|
21
22
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -32,6 +33,8 @@ module WhopSDK
|
|
|
32
33
|
business_type: nil,
|
|
33
34
|
# The different industry types a company can be in.
|
|
34
35
|
industry_type: nil,
|
|
36
|
+
# The logo for the company in png, jpeg, or gif format
|
|
37
|
+
logo: nil,
|
|
35
38
|
# Additional metadata for the account
|
|
36
39
|
metadata: nil,
|
|
37
40
|
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
@@ -72,21 +75,10 @@ module WhopSDK
|
|
|
72
75
|
params(
|
|
73
76
|
id: String,
|
|
74
77
|
banner_image:
|
|
75
|
-
T.nilable(
|
|
76
|
-
T.any(
|
|
77
|
-
WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID::OrHash,
|
|
78
|
-
WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID::OrHash
|
|
79
|
-
)
|
|
80
|
-
),
|
|
78
|
+
T.nilable(WhopSDK::CompanyUpdateParams::BannerImage::OrHash),
|
|
81
79
|
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
82
80
|
industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
|
|
83
|
-
logo:
|
|
84
|
-
T.nilable(
|
|
85
|
-
T.any(
|
|
86
|
-
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID::OrHash,
|
|
87
|
-
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID::OrHash
|
|
88
|
-
)
|
|
89
|
-
),
|
|
81
|
+
logo: T.nilable(WhopSDK::CompanyUpdateParams::Logo::OrHash),
|
|
90
82
|
send_customer_emails: T.nilable(T::Boolean),
|
|
91
83
|
title: T.nilable(String),
|
|
92
84
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -17,12 +17,7 @@ module WhopSDK
|
|
|
17
17
|
embed_id: T.nilable(String),
|
|
18
18
|
embed_type: T.nilable(WhopSDK::EmbedType::OrSymbol),
|
|
19
19
|
thumbnail:
|
|
20
|
-
T.nilable(
|
|
21
|
-
T.any(
|
|
22
|
-
WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID::OrHash,
|
|
23
|
-
WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID::OrHash
|
|
24
|
-
)
|
|
25
|
-
),
|
|
20
|
+
T.nilable(WhopSDK::CourseLessonCreateParams::Thumbnail::OrHash),
|
|
26
21
|
title: T.nilable(String),
|
|
27
22
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
28
23
|
).returns(WhopSDK::Lesson)
|
|
@@ -86,12 +81,7 @@ module WhopSDK
|
|
|
86
81
|
),
|
|
87
82
|
attachments:
|
|
88
83
|
T.nilable(
|
|
89
|
-
T::Array[
|
|
90
|
-
T.any(
|
|
91
|
-
WhopSDK::CourseLessonUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
92
|
-
WhopSDK::CourseLessonUpdateParams::Attachment::AttachmentInputWithID::OrHash
|
|
93
|
-
)
|
|
94
|
-
]
|
|
84
|
+
T::Array[WhopSDK::CourseLessonUpdateParams::Attachment::OrHash]
|
|
95
85
|
),
|
|
96
86
|
content: T.nilable(String),
|
|
97
87
|
days_from_course_start_until_unlock: T.nilable(Integer),
|
|
@@ -99,21 +89,11 @@ module WhopSDK
|
|
|
99
89
|
embed_type: T.nilable(WhopSDK::EmbedType::OrSymbol),
|
|
100
90
|
lesson_type: T.nilable(WhopSDK::LessonTypes::OrSymbol),
|
|
101
91
|
main_pdf:
|
|
102
|
-
T.nilable(
|
|
103
|
-
T.any(
|
|
104
|
-
WhopSDK::CourseLessonUpdateParams::MainPdf::AttachmentInputWithDirectUploadID::OrHash,
|
|
105
|
-
WhopSDK::CourseLessonUpdateParams::MainPdf::AttachmentInputWithID::OrHash
|
|
106
|
-
)
|
|
107
|
-
),
|
|
92
|
+
T.nilable(WhopSDK::CourseLessonUpdateParams::MainPdf::OrHash),
|
|
108
93
|
max_attempts: T.nilable(Integer),
|
|
109
94
|
mux_asset_id: T.nilable(String),
|
|
110
95
|
thumbnail:
|
|
111
|
-
T.nilable(
|
|
112
|
-
T.any(
|
|
113
|
-
WhopSDK::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID::OrHash,
|
|
114
|
-
WhopSDK::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithID::OrHash
|
|
115
|
-
)
|
|
116
|
-
),
|
|
96
|
+
T.nilable(WhopSDK::CourseLessonUpdateParams::Thumbnail::OrHash),
|
|
117
97
|
title: T.nilable(String),
|
|
118
98
|
visibility: T.nilable(WhopSDK::LessonVisibilities::OrSymbol),
|
|
119
99
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -13,17 +13,10 @@ module WhopSDK
|
|
|
13
13
|
experience_id: String,
|
|
14
14
|
title: String,
|
|
15
15
|
certificate_after_completion_enabled: T.nilable(T::Boolean),
|
|
16
|
-
cover_image: T.nilable(String),
|
|
17
16
|
order: T.nilable(String),
|
|
18
17
|
require_completing_lessons_in_order: T.nilable(T::Boolean),
|
|
19
18
|
tagline: T.nilable(String),
|
|
20
|
-
thumbnail:
|
|
21
|
-
T.nilable(
|
|
22
|
-
T.any(
|
|
23
|
-
WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID::OrHash,
|
|
24
|
-
WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID::OrHash
|
|
25
|
-
)
|
|
26
|
-
),
|
|
19
|
+
thumbnail: T.nilable(WhopSDK::CourseCreateParams::Thumbnail::OrHash),
|
|
27
20
|
visibility: T.nilable(WhopSDK::CourseVisibilities::OrSymbol),
|
|
28
21
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
29
22
|
).returns(WhopSDK::Course)
|
|
@@ -36,8 +29,6 @@ module WhopSDK
|
|
|
36
29
|
# Whether the course will award its students a PDF certificate after completing
|
|
37
30
|
# all lessons
|
|
38
31
|
certificate_after_completion_enabled: nil,
|
|
39
|
-
# The cover image URL of the course
|
|
40
|
-
cover_image: nil,
|
|
41
32
|
# The decimal order position of the course within its experience. If not provided,
|
|
42
33
|
# it will be set to the next sequential order. Use fractional values (e.g., 1.5)
|
|
43
34
|
# to place between existing courses.
|
|
@@ -85,19 +76,12 @@ module WhopSDK
|
|
|
85
76
|
certificate_after_completion_enabled: T.nilable(T::Boolean),
|
|
86
77
|
chapters:
|
|
87
78
|
T.nilable(T::Array[WhopSDK::CourseUpdateParams::Chapter::OrHash]),
|
|
88
|
-
cover_image: T.nilable(String),
|
|
89
79
|
description: T.nilable(String),
|
|
90
80
|
language: T.nilable(WhopSDK::Languages::OrSymbol),
|
|
91
81
|
order: T.nilable(String),
|
|
92
82
|
require_completing_lessons_in_order: T.nilable(T::Boolean),
|
|
93
83
|
tagline: T.nilable(String),
|
|
94
|
-
thumbnail:
|
|
95
|
-
T.nilable(
|
|
96
|
-
T.any(
|
|
97
|
-
WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID::OrHash,
|
|
98
|
-
WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithID::OrHash
|
|
99
|
-
)
|
|
100
|
-
),
|
|
84
|
+
thumbnail: T.nilable(WhopSDK::CourseUpdateParams::Thumbnail::OrHash),
|
|
101
85
|
title: T.nilable(String),
|
|
102
86
|
visibility: T.nilable(WhopSDK::CourseVisibilities::OrSymbol),
|
|
103
87
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -111,8 +95,6 @@ module WhopSDK
|
|
|
111
95
|
certificate_after_completion_enabled: nil,
|
|
112
96
|
# The chapters and lessons to update
|
|
113
97
|
chapters: nil,
|
|
114
|
-
# The cover image URL of the course
|
|
115
|
-
cover_image: nil,
|
|
116
98
|
# A short description of the course
|
|
117
99
|
description: nil,
|
|
118
100
|
# The available languages for a course
|
|
@@ -119,18 +119,12 @@ module WhopSDK
|
|
|
119
119
|
billing_address: T.nilable(String),
|
|
120
120
|
cancellation_policy_attachment:
|
|
121
121
|
T.nilable(
|
|
122
|
-
|
|
123
|
-
WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
124
|
-
WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID::OrHash
|
|
125
|
-
)
|
|
122
|
+
WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::OrHash
|
|
126
123
|
),
|
|
127
124
|
cancellation_policy_disclosure: T.nilable(String),
|
|
128
125
|
customer_communication_attachment:
|
|
129
126
|
T.nilable(
|
|
130
|
-
|
|
131
|
-
WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
132
|
-
WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID::OrHash
|
|
133
|
-
)
|
|
127
|
+
WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::OrHash
|
|
134
128
|
),
|
|
135
129
|
customer_email_address: T.nilable(String),
|
|
136
130
|
customer_name: T.nilable(String),
|
|
@@ -138,20 +132,14 @@ module WhopSDK
|
|
|
138
132
|
product_description: T.nilable(String),
|
|
139
133
|
refund_policy_attachment:
|
|
140
134
|
T.nilable(
|
|
141
|
-
|
|
142
|
-
WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
143
|
-
WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID::OrHash
|
|
144
|
-
)
|
|
135
|
+
WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::OrHash
|
|
145
136
|
),
|
|
146
137
|
refund_policy_disclosure: T.nilable(String),
|
|
147
138
|
refund_refusal_explanation: T.nilable(String),
|
|
148
139
|
service_date: T.nilable(String),
|
|
149
140
|
uncategorized_attachment:
|
|
150
141
|
T.nilable(
|
|
151
|
-
|
|
152
|
-
WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
153
|
-
WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID::OrHash
|
|
154
|
-
)
|
|
142
|
+
WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::OrHash
|
|
155
143
|
),
|
|
156
144
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
157
145
|
).returns(WhopSDK::Dispute)
|
|
@@ -11,6 +11,7 @@ module WhopSDK
|
|
|
11
11
|
app_id: String,
|
|
12
12
|
company_id: String,
|
|
13
13
|
is_public: T.nilable(T::Boolean),
|
|
14
|
+
logo: T.nilable(WhopSDK::ExperienceCreateParams::Logo::OrHash),
|
|
14
15
|
name: T.nilable(String),
|
|
15
16
|
section_id: T.nilable(String),
|
|
16
17
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -23,6 +24,8 @@ module WhopSDK
|
|
|
23
24
|
company_id:,
|
|
24
25
|
# Whether the experience is publicly accessible
|
|
25
26
|
is_public: nil,
|
|
27
|
+
# The logo for the experience
|
|
28
|
+
logo: nil,
|
|
26
29
|
# The name of the experience
|
|
27
30
|
name: nil,
|
|
28
31
|
# The ID of the section to create the experience in
|
|
@@ -54,13 +57,7 @@ module WhopSDK
|
|
|
54
57
|
access_level:
|
|
55
58
|
T.nilable(WhopSDK::ExperienceUpdateParams::AccessLevel::OrSymbol),
|
|
56
59
|
is_public: T.nilable(T::Boolean),
|
|
57
|
-
logo:
|
|
58
|
-
T.nilable(
|
|
59
|
-
T.any(
|
|
60
|
-
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID::OrHash,
|
|
61
|
-
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID::OrHash
|
|
62
|
-
)
|
|
63
|
-
),
|
|
60
|
+
logo: T.nilable(WhopSDK::ExperienceUpdateParams::Logo::OrHash),
|
|
64
61
|
name: T.nilable(String),
|
|
65
62
|
order: T.nilable(String),
|
|
66
63
|
section_id: T.nilable(String),
|
|
@@ -13,12 +13,7 @@ module WhopSDK
|
|
|
13
13
|
experience_id: String,
|
|
14
14
|
attachments:
|
|
15
15
|
T.nilable(
|
|
16
|
-
T::Array[
|
|
17
|
-
T.any(
|
|
18
|
-
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
19
|
-
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID::OrHash
|
|
20
|
-
)
|
|
21
|
-
]
|
|
16
|
+
T::Array[WhopSDK::ForumPostCreateParams::Attachment::OrHash]
|
|
22
17
|
),
|
|
23
18
|
content: T.nilable(String),
|
|
24
19
|
is_mention: T.nilable(T::Boolean),
|
|
@@ -88,12 +83,7 @@ module WhopSDK
|
|
|
88
83
|
id: String,
|
|
89
84
|
attachments:
|
|
90
85
|
T.nilable(
|
|
91
|
-
T::Array[
|
|
92
|
-
T.any(
|
|
93
|
-
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
94
|
-
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID::OrHash
|
|
95
|
-
)
|
|
96
|
-
]
|
|
86
|
+
T::Array[WhopSDK::ForumPostUpdateParams::Attachment::OrHash]
|
|
97
87
|
),
|
|
98
88
|
content: T.nilable(String),
|
|
99
89
|
is_pinned: T.nilable(T::Boolean),
|
|
@@ -8,6 +8,7 @@ module WhopSDK
|
|
|
8
8
|
# Required permissions:
|
|
9
9
|
#
|
|
10
10
|
# - `member:basic:read`
|
|
11
|
+
# - `member:email:read`
|
|
11
12
|
sig do
|
|
12
13
|
params(
|
|
13
14
|
id: String,
|
|
@@ -26,6 +27,7 @@ module WhopSDK
|
|
|
26
27
|
# Required permissions:
|
|
27
28
|
#
|
|
28
29
|
# - `member:manage`
|
|
30
|
+
# - `member:email:read`
|
|
29
31
|
# - `member:basic:read`
|
|
30
32
|
sig do
|
|
31
33
|
params(
|
|
@@ -48,6 +50,7 @@ module WhopSDK
|
|
|
48
50
|
# Required permissions:
|
|
49
51
|
#
|
|
50
52
|
# - `member:basic:read`
|
|
53
|
+
# - `member:email:read`
|
|
51
54
|
sig do
|
|
52
55
|
params(
|
|
53
56
|
after: T.nilable(String),
|
|
@@ -114,6 +117,7 @@ module WhopSDK
|
|
|
114
117
|
# Required permissions:
|
|
115
118
|
#
|
|
116
119
|
# - `member:manage`
|
|
120
|
+
# - `member:email:read`
|
|
117
121
|
# - `member:basic:read`
|
|
118
122
|
sig do
|
|
119
123
|
params(
|
|
@@ -139,6 +143,7 @@ module WhopSDK
|
|
|
139
143
|
# Required permissions:
|
|
140
144
|
#
|
|
141
145
|
# - `member:manage`
|
|
146
|
+
# - `member:email:read`
|
|
142
147
|
# - `member:basic:read`
|
|
143
148
|
sig do
|
|
144
149
|
params(
|
|
@@ -162,6 +167,7 @@ module WhopSDK
|
|
|
162
167
|
# Required permissions:
|
|
163
168
|
#
|
|
164
169
|
# - `member:manage`
|
|
170
|
+
# - `member:email:read`
|
|
165
171
|
# - `member:basic:read`
|
|
166
172
|
sig do
|
|
167
173
|
params(
|
|
@@ -176,6 +182,26 @@ module WhopSDK
|
|
|
176
182
|
)
|
|
177
183
|
end
|
|
178
184
|
|
|
185
|
+
# Uncancels a membership that was scheduled to cancel at period end
|
|
186
|
+
#
|
|
187
|
+
# Required permissions:
|
|
188
|
+
#
|
|
189
|
+
# - `member:manage`
|
|
190
|
+
# - `member:email:read`
|
|
191
|
+
# - `member:basic:read`
|
|
192
|
+
sig do
|
|
193
|
+
params(
|
|
194
|
+
id: String,
|
|
195
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
196
|
+
).returns(WhopSDK::Membership)
|
|
197
|
+
end
|
|
198
|
+
def uncancel(
|
|
199
|
+
# The ID of the membership.
|
|
200
|
+
id,
|
|
201
|
+
request_options: {}
|
|
202
|
+
)
|
|
203
|
+
end
|
|
204
|
+
|
|
179
205
|
# @api private
|
|
180
206
|
sig { params(client: WhopSDK::Client).returns(T.attached_class) }
|
|
181
207
|
def self.new(client:)
|
|
@@ -14,12 +14,7 @@ module WhopSDK
|
|
|
14
14
|
content: String,
|
|
15
15
|
attachments:
|
|
16
16
|
T.nilable(
|
|
17
|
-
T::Array[
|
|
18
|
-
T.any(
|
|
19
|
-
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
20
|
-
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID::OrHash
|
|
21
|
-
)
|
|
22
|
-
]
|
|
17
|
+
T::Array[WhopSDK::MessageCreateParams::Attachment::OrHash]
|
|
23
18
|
),
|
|
24
19
|
poll: T.nilable(WhopSDK::MessageCreateParams::Poll::OrHash),
|
|
25
20
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -62,12 +57,7 @@ module WhopSDK
|
|
|
62
57
|
id: String,
|
|
63
58
|
attachments:
|
|
64
59
|
T.nilable(
|
|
65
|
-
T::Array[
|
|
66
|
-
T.any(
|
|
67
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
68
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID::OrHash
|
|
69
|
-
)
|
|
70
|
-
]
|
|
60
|
+
T::Array[WhopSDK::MessageUpdateParams::Attachment::OrHash]
|
|
71
61
|
),
|
|
72
62
|
content: T.nilable(String),
|
|
73
63
|
is_pinned: T.nilable(T::Boolean),
|
|
@@ -20,13 +20,7 @@ module WhopSDK
|
|
|
20
20
|
T.nilable(T::Array[WhopSDK::PlanCreateParams::CustomField::OrHash]),
|
|
21
21
|
description: T.nilable(String),
|
|
22
22
|
expiration_days: T.nilable(Integer),
|
|
23
|
-
image:
|
|
24
|
-
T.nilable(
|
|
25
|
-
T.any(
|
|
26
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID::OrHash,
|
|
27
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID::OrHash
|
|
28
|
-
)
|
|
29
|
-
),
|
|
23
|
+
image: T.nilable(WhopSDK::PlanCreateParams::Image::OrHash),
|
|
30
24
|
initial_price: T.nilable(Float),
|
|
31
25
|
internal_notes: T.nilable(String),
|
|
32
26
|
legacy_payment_method_controls: T.nilable(T::Boolean),
|
|
@@ -135,13 +129,7 @@ module WhopSDK
|
|
|
135
129
|
T.nilable(T::Array[WhopSDK::PlanUpdateParams::CustomField::OrHash]),
|
|
136
130
|
description: T.nilable(String),
|
|
137
131
|
expiration_days: T.nilable(Integer),
|
|
138
|
-
image:
|
|
139
|
-
T.nilable(
|
|
140
|
-
T.any(
|
|
141
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID::OrHash,
|
|
142
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithID::OrHash
|
|
143
|
-
)
|
|
144
|
-
),
|
|
132
|
+
image: T.nilable(WhopSDK::PlanUpdateParams::Image::OrHash),
|
|
145
133
|
initial_price: T.nilable(Float),
|
|
146
134
|
internal_notes: T.nilable(String),
|
|
147
135
|
legacy_payment_method_controls: T.nilable(T::Boolean),
|
|
@@ -15,6 +15,8 @@ module WhopSDK
|
|
|
15
15
|
company_id: String,
|
|
16
16
|
currency: WhopSDK::Currency::OrSymbol,
|
|
17
17
|
payout_method_id: T.nilable(String),
|
|
18
|
+
platform_covers_fees: T.nilable(T::Boolean),
|
|
19
|
+
statement_descriptor: T.nilable(String),
|
|
18
20
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
19
21
|
).returns(WhopSDK::Models::WithdrawalCreateResponse)
|
|
20
22
|
end
|
|
@@ -27,6 +29,11 @@ module WhopSDK
|
|
|
27
29
|
currency:,
|
|
28
30
|
# The ID of the payout method to use for the withdrawal.
|
|
29
31
|
payout_method_id: nil,
|
|
32
|
+
# Whether the platform covers the payout fees instead of the connected account.
|
|
33
|
+
platform_covers_fees: nil,
|
|
34
|
+
# Custom statement descriptor for the withdrawal. Must be between 5 and 22
|
|
35
|
+
# characters and contain only alphanumeric characters.
|
|
36
|
+
statement_descriptor: nil,
|
|
30
37
|
request_options: {}
|
|
31
38
|
)
|
|
32
39
|
end
|
|
@@ -2,7 +2,7 @@ module WhopSDK
|
|
|
2
2
|
module Models
|
|
3
3
|
type app_build_create_params =
|
|
4
4
|
{
|
|
5
|
-
attachment: WhopSDK::
|
|
5
|
+
attachment: WhopSDK::AppBuildCreateParams::Attachment,
|
|
6
6
|
checksum: String,
|
|
7
7
|
platform: WhopSDK::Models::app_build_platforms,
|
|
8
8
|
ai_prompt_id: String?,
|
|
@@ -15,7 +15,7 @@ module WhopSDK
|
|
|
15
15
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
16
16
|
include WhopSDK::Internal::Type::RequestParameters
|
|
17
17
|
|
|
18
|
-
attr_accessor attachment: WhopSDK::
|
|
18
|
+
attr_accessor attachment: WhopSDK::AppBuildCreateParams::Attachment
|
|
19
19
|
|
|
20
20
|
attr_accessor checksum: String
|
|
21
21
|
|
|
@@ -28,7 +28,7 @@ module WhopSDK
|
|
|
28
28
|
attr_accessor supported_app_view_types: ::Array[WhopSDK::Models::app_view_type]?
|
|
29
29
|
|
|
30
30
|
def initialize: (
|
|
31
|
-
attachment: WhopSDK::
|
|
31
|
+
attachment: WhopSDK::AppBuildCreateParams::Attachment,
|
|
32
32
|
checksum: String,
|
|
33
33
|
platform: WhopSDK::Models::app_build_platforms,
|
|
34
34
|
?ai_prompt_id: String?,
|
|
@@ -38,7 +38,7 @@ module WhopSDK
|
|
|
38
38
|
) -> void
|
|
39
39
|
|
|
40
40
|
def to_hash: -> {
|
|
41
|
-
attachment: WhopSDK::
|
|
41
|
+
attachment: WhopSDK::AppBuildCreateParams::Attachment,
|
|
42
42
|
checksum: String,
|
|
43
43
|
platform: WhopSDK::Models::app_build_platforms,
|
|
44
44
|
ai_prompt_id: String?,
|
|
@@ -47,35 +47,14 @@ module WhopSDK
|
|
|
47
47
|
request_options: WhopSDK::RequestOptions
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
type attachment =
|
|
51
|
-
WhopSDK::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID
|
|
52
|
-
| WhopSDK::AppBuildCreateParams::Attachment::AttachmentInputWithID
|
|
50
|
+
type attachment = { id: String }
|
|
53
51
|
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
53
|
+
attr_accessor id: String
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
{ direct_upload_id: String }
|
|
55
|
+
def initialize: (id: String) -> void
|
|
59
56
|
|
|
60
|
-
|
|
61
|
-
attr_accessor direct_upload_id: String
|
|
62
|
-
|
|
63
|
-
def initialize: (direct_upload_id: String) -> void
|
|
64
|
-
|
|
65
|
-
def to_hash: -> { direct_upload_id: String }
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
type attachment_input_with_id = { id: String }
|
|
69
|
-
|
|
70
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
71
|
-
attr_accessor id: String
|
|
72
|
-
|
|
73
|
-
def initialize: (id: String) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> { id: String }
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
def self?.variants: -> ::Array[WhopSDK::Models::AppBuildCreateParams::attachment]
|
|
57
|
+
def to_hash: -> { id: String }
|
|
79
58
|
end
|
|
80
59
|
end
|
|
81
60
|
end
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Models
|
|
3
3
|
type app_create_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
company_id: String,
|
|
6
|
+
name: String,
|
|
7
|
+
base_url: String?,
|
|
8
|
+
icon: WhopSDK::AppCreateParams::Icon?
|
|
9
|
+
}
|
|
5
10
|
& WhopSDK::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class AppCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
@@ -14,10 +19,13 @@ module WhopSDK
|
|
|
14
19
|
|
|
15
20
|
attr_accessor base_url: String?
|
|
16
21
|
|
|
22
|
+
attr_accessor icon: WhopSDK::AppCreateParams::Icon?
|
|
23
|
+
|
|
17
24
|
def initialize: (
|
|
18
25
|
company_id: String,
|
|
19
26
|
name: String,
|
|
20
27
|
?base_url: String?,
|
|
28
|
+
?icon: WhopSDK::AppCreateParams::Icon?,
|
|
21
29
|
?request_options: WhopSDK::request_opts
|
|
22
30
|
) -> void
|
|
23
31
|
|
|
@@ -25,8 +33,19 @@ module WhopSDK
|
|
|
25
33
|
company_id: String,
|
|
26
34
|
name: String,
|
|
27
35
|
base_url: String?,
|
|
36
|
+
icon: WhopSDK::AppCreateParams::Icon?,
|
|
28
37
|
request_options: WhopSDK::RequestOptions
|
|
29
38
|
}
|
|
39
|
+
|
|
40
|
+
type icon = { id: String }
|
|
41
|
+
|
|
42
|
+
class Icon < WhopSDK::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor id: String
|
|
44
|
+
|
|
45
|
+
def initialize: (id: String) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { id: String }
|
|
48
|
+
end
|
|
30
49
|
end
|
|
31
50
|
end
|
|
32
51
|
end
|
|
@@ -79,6 +79,11 @@ module WhopSDK
|
|
|
79
79
|
| :time_spent
|
|
80
80
|
| :time_spent_last_24_hours
|
|
81
81
|
| :daily_active_users
|
|
82
|
+
| :ai_prompt_count
|
|
83
|
+
| :total_ai_cost_usd
|
|
84
|
+
| :total_ai_tokens
|
|
85
|
+
| :last_ai_prompt_at
|
|
86
|
+
| :ai_average_rating
|
|
82
87
|
|
|
83
88
|
module Order
|
|
84
89
|
extend WhopSDK::Internal::Type::Enum
|
|
@@ -89,6 +94,11 @@ module WhopSDK
|
|
|
89
94
|
TIME_SPENT: :time_spent
|
|
90
95
|
TIME_SPENT_LAST_24_HOURS: :time_spent_last_24_hours
|
|
91
96
|
DAILY_ACTIVE_USERS: :daily_active_users
|
|
97
|
+
AI_PROMPT_COUNT: :ai_prompt_count
|
|
98
|
+
TOTAL_AI_COST_USD: :total_ai_cost_usd
|
|
99
|
+
TOTAL_AI_TOKENS: :total_ai_tokens
|
|
100
|
+
LAST_AI_PROMPT_AT: :last_ai_prompt_at
|
|
101
|
+
AI_AVERAGE_RATING: :ai_average_rating
|
|
92
102
|
|
|
93
103
|
def self?.values: -> ::Array[WhopSDK::Models::AppListParams::order]
|
|
94
104
|
end
|