whop_sdk 0.0.23 → 0.0.25
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 +52 -0
- data/README.md +3 -3
- data/lib/whop_sdk/client.rb +12 -0
- data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
- data/lib/whop_sdk/models/ai_chat_create_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
- data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
- data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
- data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
- data/lib/whop_sdk/models/ai_chat_update_response.rb +89 -0
- 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 +6 -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_token_transaction_create_params.rb +69 -0
- data/lib/whop_sdk/models/company_token_transaction_create_response.rb +180 -0
- data/lib/whop_sdk/models/company_token_transaction_list_params.rb +84 -0
- data/lib/whop_sdk/models/company_token_transaction_list_response.rb +180 -0
- data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +180 -0
- 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/dm_member_create_params.rb +30 -0
- data/lib/whop_sdk/models/dm_member_create_response.rb +94 -0
- data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
- data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
- data/lib/whop_sdk/models/dm_member_list_response.rb +71 -0
- data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_retrieve_response.rb +94 -0
- data/lib/whop_sdk/models/dm_member_update_params.rb +58 -0
- data/lib/whop_sdk/models/dm_member_update_response.rb +94 -0
- 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 +22 -53
- data/lib/whop_sdk/models/message_delete_params.rb +14 -0
- data/lib/whop_sdk/models/message_delete_response.rb +8 -0
- 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 +59 -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/reaction_create_params.rb +10 -1
- data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
- data/lib/whop_sdk/models/reaction_delete_response.rb +8 -0
- 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 +32 -2
- data/lib/whop_sdk/resources/ai_chats.rb +141 -0
- 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/company_token_transactions.rb +121 -0
- 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/dm_members.rb +155 -0
- 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 +29 -3
- data/lib/whop_sdk/resources/notifications.rb +4 -0
- data/lib/whop_sdk/resources/plans.rb +2 -2
- data/lib/whop_sdk/resources/reactions.rb +34 -1
- data/lib/whop_sdk/resources/withdrawals.rb +8 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +34 -1
- data/rbi/whop_sdk/client.rbi +9 -0
- data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
- data/rbi/whop_sdk/models/ai_chat_create_response.rbi +128 -0
- data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
- data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
- data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
- data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +128 -0
- data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
- data/rbi/whop_sdk/models/ai_chat_update_response.rbi +128 -0
- 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 +12 -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_token_transaction_create_params.rbi +92 -0
- data/rbi/whop_sdk/models/company_token_transaction_create_response.rbi +308 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +146 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +308 -0
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +312 -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/dm_member_create_params.rbi +51 -0
- data/rbi/whop_sdk/models/dm_member_create_response.rbi +179 -0
- data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/dm_member_list_response.rbi +124 -0
- data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +179 -0
- data/rbi/whop_sdk/models/dm_member_update_params.rbi +130 -0
- data/rbi/whop_sdk/models/dm_member_update_response.rbi +179 -0
- 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 +26 -94
- data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
- 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 +67 -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/reaction_create_params.rbi +10 -0
- data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
- data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -0
- 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 +35 -2
- data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
- 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/company_token_transactions.rbi +114 -0
- 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/dm_members.rbi +128 -0
- 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 +23 -12
- data/rbi/whop_sdk/resources/notifications.rbi +4 -0
- data/rbi/whop_sdk/resources/plans.rbi +2 -14
- data/rbi/whop_sdk/resources/reactions.rbi +26 -0
- data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
- data/sig/whop_sdk/client.rbs +6 -0
- data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
- data/sig/whop_sdk/models/ai_chat_create_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
- data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
- data/sig/whop_sdk/models/ai_chat_update_response.rbs +65 -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 +13 -1
- 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_token_transaction_create_params.rbs +56 -0
- data/sig/whop_sdk/models/company_token_transaction_create_response.rbs +115 -0
- data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +68 -0
- data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +115 -0
- data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +115 -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/dm_member_create_params.rbs +28 -0
- data/sig/whop_sdk/models/dm_member_create_response.rbs +71 -0
- data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
- data/sig/whop_sdk/models/dm_member_list_response.rbs +54 -0
- data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +71 -0
- data/sig/whop_sdk/models/dm_member_update_params.rbs +57 -0
- data/sig/whop_sdk/models/dm_member_update_response.rbs +71 -0
- 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 +15 -31
- data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
- 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 +119 -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/reaction_create_params.rbs +5 -1
- data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
- data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -0
- 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 +32 -2
- data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
- 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/company_token_transactions.rbs +34 -0
- 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/dm_members.rbs +36 -0
- 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 +5 -2
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/reactions.rbs +7 -0
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
- metadata +118 -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
|
@@ -13,16 +13,7 @@ module WhopSDK
|
|
|
13
13
|
|
|
14
14
|
# The attachments for this post
|
|
15
15
|
sig do
|
|
16
|
-
returns(
|
|
17
|
-
T.nilable(
|
|
18
|
-
T::Array[
|
|
19
|
-
T.any(
|
|
20
|
-
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
21
|
-
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID
|
|
22
|
-
)
|
|
23
|
-
]
|
|
24
|
-
)
|
|
25
|
-
)
|
|
16
|
+
returns(T.nilable(T::Array[WhopSDK::ForumPostUpdateParams::Attachment]))
|
|
26
17
|
end
|
|
27
18
|
attr_accessor :attachments
|
|
28
19
|
|
|
@@ -47,12 +38,7 @@ module WhopSDK
|
|
|
47
38
|
params(
|
|
48
39
|
attachments:
|
|
49
40
|
T.nilable(
|
|
50
|
-
T::Array[
|
|
51
|
-
T.any(
|
|
52
|
-
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
53
|
-
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID::OrHash
|
|
54
|
-
)
|
|
55
|
-
]
|
|
41
|
+
T::Array[WhopSDK::ForumPostUpdateParams::Attachment::OrHash]
|
|
56
42
|
),
|
|
57
43
|
content: T.nilable(String),
|
|
58
44
|
is_pinned: T.nilable(T::Boolean),
|
|
@@ -81,14 +67,7 @@ module WhopSDK
|
|
|
81
67
|
override.returns(
|
|
82
68
|
{
|
|
83
69
|
attachments:
|
|
84
|
-
T.nilable(
|
|
85
|
-
T::Array[
|
|
86
|
-
T.any(
|
|
87
|
-
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
88
|
-
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID
|
|
89
|
-
)
|
|
90
|
-
]
|
|
91
|
-
),
|
|
70
|
+
T.nilable(T::Array[WhopSDK::ForumPostUpdateParams::Attachment]),
|
|
92
71
|
content: T.nilable(String),
|
|
93
72
|
is_pinned: T.nilable(T::Boolean),
|
|
94
73
|
title: T.nilable(String),
|
|
@@ -100,84 +79,29 @@ module WhopSDK
|
|
|
100
79
|
def to_hash
|
|
101
80
|
end
|
|
102
81
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
extend WhopSDK::Internal::Type::Union
|
|
106
|
-
|
|
107
|
-
Variants =
|
|
82
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
83
|
+
OrHash =
|
|
108
84
|
T.type_alias do
|
|
109
85
|
T.any(
|
|
110
|
-
WhopSDK::ForumPostUpdateParams::Attachment
|
|
111
|
-
WhopSDK::
|
|
86
|
+
WhopSDK::ForumPostUpdateParams::Attachment,
|
|
87
|
+
WhopSDK::Internal::AnyHash
|
|
112
88
|
)
|
|
113
89
|
end
|
|
114
90
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
T.any(
|
|
119
|
-
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
120
|
-
WhopSDK::Internal::AnyHash
|
|
121
|
-
)
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
125
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
126
|
-
# mediaDirectUpload mutation.
|
|
127
|
-
sig { returns(String) }
|
|
128
|
-
attr_accessor :direct_upload_id
|
|
129
|
-
|
|
130
|
-
# Input for an attachment
|
|
131
|
-
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
132
|
-
def self.new(
|
|
133
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
134
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
135
|
-
# mediaDirectUpload mutation.
|
|
136
|
-
direct_upload_id:
|
|
137
|
-
)
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
sig { override.returns({ direct_upload_id: String }) }
|
|
141
|
-
def to_hash
|
|
142
|
-
end
|
|
143
|
-
end
|
|
91
|
+
# The ID of an existing file object.
|
|
92
|
+
sig { returns(String) }
|
|
93
|
+
attr_accessor :id
|
|
144
94
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
)
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
155
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
156
|
-
# doing.
|
|
157
|
-
sig { returns(String) }
|
|
158
|
-
attr_accessor :id
|
|
159
|
-
|
|
160
|
-
# Input for an attachment
|
|
161
|
-
sig { params(id: String).returns(T.attached_class) }
|
|
162
|
-
def self.new(
|
|
163
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
164
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
165
|
-
# doing.
|
|
166
|
-
id:
|
|
167
|
-
)
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
sig { override.returns({ id: String }) }
|
|
171
|
-
def to_hash
|
|
172
|
-
end
|
|
95
|
+
# Input for an attachment
|
|
96
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
97
|
+
def self.new(
|
|
98
|
+
# The ID of an existing file object.
|
|
99
|
+
id:
|
|
100
|
+
)
|
|
173
101
|
end
|
|
174
102
|
|
|
175
|
-
sig
|
|
176
|
-
|
|
177
|
-
T::Array[WhopSDK::ForumPostUpdateParams::Attachment::Variants]
|
|
178
|
-
)
|
|
179
|
-
end
|
|
180
|
-
def self.variants
|
|
103
|
+
sig { override.returns({ id: String }) }
|
|
104
|
+
def to_hash
|
|
181
105
|
end
|
|
182
106
|
end
|
|
183
107
|
end
|
|
@@ -10,32 +10,77 @@ module WhopSDK
|
|
|
10
10
|
T.type_alias { T.all(Symbol, WhopSDK::FriendlyReceiptStatus) }
|
|
11
11
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
12
12
|
|
|
13
|
+
SUCCEEDED =
|
|
14
|
+
T.let(:succeeded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
15
|
+
PENDING = T.let(:pending, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
16
|
+
FAILED = T.let(:failed, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
17
|
+
PAST_DUE = T.let(:past_due, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
18
|
+
CANCELED = T.let(:canceled, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
19
|
+
PRICE_TOO_LOW =
|
|
20
|
+
T.let(:price_too_low, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
21
|
+
UNCOLLECTIBLE =
|
|
22
|
+
T.let(:uncollectible, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
23
|
+
REFUNDED = T.let(:refunded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
13
24
|
AUTO_REFUNDED =
|
|
14
25
|
T.let(:auto_refunded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
15
|
-
REFUNDED = T.let(:refunded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
16
26
|
PARTIALLY_REFUNDED =
|
|
17
27
|
T.let(:partially_refunded, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
18
28
|
DISPUTE_WARNING =
|
|
19
29
|
T.let(:dispute_warning, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
20
|
-
|
|
21
|
-
T.let(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
T.let(
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
DISPUTE_NEEDS_RESPONSE =
|
|
31
|
+
T.let(
|
|
32
|
+
:dispute_needs_response,
|
|
33
|
+
WhopSDK::FriendlyReceiptStatus::TaggedSymbol
|
|
34
|
+
)
|
|
35
|
+
DISPUTE_WARNING_NEEDS_RESPONSE =
|
|
36
|
+
T.let(
|
|
37
|
+
:dispute_warning_needs_response,
|
|
38
|
+
WhopSDK::FriendlyReceiptStatus::TaggedSymbol
|
|
39
|
+
)
|
|
40
|
+
RESOLUTION_NEEDS_RESPONSE =
|
|
41
|
+
T.let(
|
|
42
|
+
:resolution_needs_response,
|
|
43
|
+
WhopSDK::FriendlyReceiptStatus::TaggedSymbol
|
|
44
|
+
)
|
|
45
|
+
DISPUTE_UNDER_REVIEW =
|
|
46
|
+
T.let(
|
|
47
|
+
:dispute_under_review,
|
|
48
|
+
WhopSDK::FriendlyReceiptStatus::TaggedSymbol
|
|
49
|
+
)
|
|
50
|
+
DISPUTE_WARNING_UNDER_REVIEW =
|
|
51
|
+
T.let(
|
|
52
|
+
:dispute_warning_under_review,
|
|
53
|
+
WhopSDK::FriendlyReceiptStatus::TaggedSymbol
|
|
54
|
+
)
|
|
55
|
+
RESOLUTION_UNDER_REVIEW =
|
|
56
|
+
T.let(
|
|
57
|
+
:resolution_under_review,
|
|
58
|
+
WhopSDK::FriendlyReceiptStatus::TaggedSymbol
|
|
59
|
+
)
|
|
60
|
+
DISPUTE_WON =
|
|
61
|
+
T.let(:dispute_won, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
62
|
+
DISPUTE_WARNING_CLOSED =
|
|
63
|
+
T.let(
|
|
64
|
+
:dispute_warning_closed,
|
|
65
|
+
WhopSDK::FriendlyReceiptStatus::TaggedSymbol
|
|
66
|
+
)
|
|
67
|
+
RESOLUTION_WON =
|
|
68
|
+
T.let(:resolution_won, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
69
|
+
DISPUTE_LOST =
|
|
70
|
+
T.let(:dispute_lost, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
71
|
+
DISPUTE_CLOSED =
|
|
72
|
+
T.let(:dispute_closed, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
73
|
+
RESOLUTION_LOST =
|
|
74
|
+
T.let(:resolution_lost, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
29
75
|
DRAFTED = T.let(:drafted, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
30
|
-
UNCOLLECTIBLE =
|
|
31
|
-
T.let(:uncollectible, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
32
|
-
UNRESOLVED =
|
|
33
|
-
T.let(:unresolved, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
34
|
-
PAST_DUE = T.let(:past_due, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
35
|
-
PENDING = T.let(:pending, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
36
76
|
INCOMPLETE =
|
|
37
77
|
T.let(:incomplete, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
38
|
-
|
|
78
|
+
UNRESOLVED =
|
|
79
|
+
T.let(:unresolved, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
80
|
+
OPEN_DISPUTE =
|
|
81
|
+
T.let(:open_dispute, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
82
|
+
OPEN_RESOLUTION =
|
|
83
|
+
T.let(:open_resolution, WhopSDK::FriendlyReceiptStatus::TaggedSymbol)
|
|
39
84
|
|
|
40
85
|
sig do
|
|
41
86
|
override.returns(T::Array[WhopSDK::FriendlyReceiptStatus::TaggedSymbol])
|
|
@@ -23,16 +23,6 @@ module WhopSDK
|
|
|
23
23
|
end
|
|
24
24
|
attr_accessor :balances
|
|
25
25
|
|
|
26
|
-
# The different statuses a LedgerAccountAudit can be
|
|
27
|
-
sig do
|
|
28
|
-
returns(
|
|
29
|
-
T.nilable(
|
|
30
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
31
|
-
)
|
|
32
|
-
)
|
|
33
|
-
end
|
|
34
|
-
attr_accessor :ledger_account_audit_status
|
|
35
|
-
|
|
36
26
|
# The type of ledger account.
|
|
37
27
|
sig do
|
|
38
28
|
returns(
|
|
@@ -93,10 +83,6 @@ module WhopSDK
|
|
|
93
83
|
T::Array[
|
|
94
84
|
WhopSDK::Models::LedgerAccountRetrieveResponse::Balance::OrHash
|
|
95
85
|
],
|
|
96
|
-
ledger_account_audit_status:
|
|
97
|
-
T.nilable(
|
|
98
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::OrSymbol
|
|
99
|
-
),
|
|
100
86
|
ledger_type:
|
|
101
87
|
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType::OrSymbol,
|
|
102
88
|
owner:
|
|
@@ -122,8 +108,6 @@ module WhopSDK
|
|
|
122
108
|
id:,
|
|
123
109
|
# The balances associated with the account.
|
|
124
110
|
balances:,
|
|
125
|
-
# The different statuses a LedgerAccountAudit can be
|
|
126
|
-
ledger_account_audit_status:,
|
|
127
111
|
# The type of ledger account.
|
|
128
112
|
ledger_type:,
|
|
129
113
|
# The owner of the ledger account.
|
|
@@ -143,10 +127,6 @@ module WhopSDK
|
|
|
143
127
|
id: String,
|
|
144
128
|
balances:
|
|
145
129
|
T::Array[WhopSDK::Models::LedgerAccountRetrieveResponse::Balance],
|
|
146
|
-
ledger_account_audit_status:
|
|
147
|
-
T.nilable(
|
|
148
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
149
|
-
),
|
|
150
130
|
ledger_type:
|
|
151
131
|
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType::TaggedSymbol,
|
|
152
132
|
owner:
|
|
@@ -228,91 +208,6 @@ module WhopSDK
|
|
|
228
208
|
end
|
|
229
209
|
end
|
|
230
210
|
|
|
231
|
-
# The different statuses a LedgerAccountAudit can be
|
|
232
|
-
module LedgerAccountAuditStatus
|
|
233
|
-
extend WhopSDK::Internal::Type::Enum
|
|
234
|
-
|
|
235
|
-
TaggedSymbol =
|
|
236
|
-
T.type_alias do
|
|
237
|
-
T.all(
|
|
238
|
-
Symbol,
|
|
239
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus
|
|
240
|
-
)
|
|
241
|
-
end
|
|
242
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
243
|
-
|
|
244
|
-
PENDING =
|
|
245
|
-
T.let(
|
|
246
|
-
:pending,
|
|
247
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
248
|
-
)
|
|
249
|
-
PENDING_AI_REVIEW =
|
|
250
|
-
T.let(
|
|
251
|
-
:pending_ai_review,
|
|
252
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
253
|
-
)
|
|
254
|
-
APPROVED =
|
|
255
|
-
T.let(
|
|
256
|
-
:approved,
|
|
257
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
258
|
-
)
|
|
259
|
-
RESERVES_IMPOSED =
|
|
260
|
-
T.let(
|
|
261
|
-
:reserves_imposed,
|
|
262
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
263
|
-
)
|
|
264
|
-
SUSPENDED =
|
|
265
|
-
T.let(
|
|
266
|
-
:suspended,
|
|
267
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
268
|
-
)
|
|
269
|
-
IGNORED =
|
|
270
|
-
T.let(
|
|
271
|
-
:ignored,
|
|
272
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
273
|
-
)
|
|
274
|
-
REJECTED =
|
|
275
|
-
T.let(
|
|
276
|
-
:rejected,
|
|
277
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
278
|
-
)
|
|
279
|
-
REQUESTED_MORE_INFORMATION =
|
|
280
|
-
T.let(
|
|
281
|
-
:requested_more_information,
|
|
282
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
283
|
-
)
|
|
284
|
-
INFORMATION_SUBMITTED =
|
|
285
|
-
T.let(
|
|
286
|
-
:information_submitted,
|
|
287
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
288
|
-
)
|
|
289
|
-
REQUESTED_TOS_VIOLATION_CORRECTION =
|
|
290
|
-
T.let(
|
|
291
|
-
:requested_tos_violation_correction,
|
|
292
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
293
|
-
)
|
|
294
|
-
CLAWBACK_ATTEMPTED =
|
|
295
|
-
T.let(
|
|
296
|
-
:clawback_attempted,
|
|
297
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
298
|
-
)
|
|
299
|
-
AWAITING_SALES_REVIEW =
|
|
300
|
-
T.let(
|
|
301
|
-
:awaiting_sales_review,
|
|
302
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
303
|
-
)
|
|
304
|
-
|
|
305
|
-
sig do
|
|
306
|
-
override.returns(
|
|
307
|
-
T::Array[
|
|
308
|
-
WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus::TaggedSymbol
|
|
309
|
-
]
|
|
310
|
-
)
|
|
311
|
-
end
|
|
312
|
-
def self.values
|
|
313
|
-
end
|
|
314
|
-
end
|
|
315
|
-
|
|
316
211
|
# The type of ledger account.
|
|
317
212
|
module LedgerType
|
|
318
213
|
extend WhopSDK::Internal::Type::Enum
|
|
@@ -19,6 +19,10 @@ module WhopSDK
|
|
|
19
19
|
sig { returns(WhopSDK::AccessLevel::TaggedSymbol) }
|
|
20
20
|
attr_accessor :access_level
|
|
21
21
|
|
|
22
|
+
# The member's token balance for this company
|
|
23
|
+
sig { returns(Float) }
|
|
24
|
+
attr_accessor :company_token_balance
|
|
25
|
+
|
|
22
26
|
# When the member was created
|
|
23
27
|
sig { returns(Time) }
|
|
24
28
|
attr_accessor :created_at
|
|
@@ -69,6 +73,7 @@ module WhopSDK
|
|
|
69
73
|
params(
|
|
70
74
|
id: String,
|
|
71
75
|
access_level: WhopSDK::AccessLevel::OrSymbol,
|
|
76
|
+
company_token_balance: Float,
|
|
72
77
|
created_at: Time,
|
|
73
78
|
joined_at: Time,
|
|
74
79
|
most_recent_action:
|
|
@@ -89,6 +94,8 @@ module WhopSDK
|
|
|
89
94
|
# membership to any product on the company. If its no_access, the member does not
|
|
90
95
|
# have access to the product.
|
|
91
96
|
access_level:,
|
|
97
|
+
# The member's token balance for this company
|
|
98
|
+
company_token_balance:,
|
|
92
99
|
# When the member was created
|
|
93
100
|
created_at:,
|
|
94
101
|
# When the member joined the company
|
|
@@ -115,6 +122,7 @@ module WhopSDK
|
|
|
115
122
|
{
|
|
116
123
|
id: String,
|
|
117
124
|
access_level: WhopSDK::AccessLevel::TaggedSymbol,
|
|
125
|
+
company_token_balance: Float,
|
|
118
126
|
created_at: Time,
|
|
119
127
|
joined_at: Time,
|
|
120
128
|
most_recent_action:
|
|
@@ -33,6 +33,10 @@ module WhopSDK
|
|
|
33
33
|
end
|
|
34
34
|
attr_writer :company
|
|
35
35
|
|
|
36
|
+
# The member's token balance for this company
|
|
37
|
+
sig { returns(Float) }
|
|
38
|
+
attr_accessor :company_token_balance
|
|
39
|
+
|
|
36
40
|
# When the member was created
|
|
37
41
|
sig { returns(Time) }
|
|
38
42
|
attr_accessor :created_at
|
|
@@ -84,6 +88,7 @@ module WhopSDK
|
|
|
84
88
|
id: String,
|
|
85
89
|
access_level: WhopSDK::AccessLevel::OrSymbol,
|
|
86
90
|
company: WhopSDK::Models::MemberRetrieveResponse::Company::OrHash,
|
|
91
|
+
company_token_balance: Float,
|
|
87
92
|
created_at: Time,
|
|
88
93
|
joined_at: Time,
|
|
89
94
|
most_recent_action:
|
|
@@ -106,6 +111,8 @@ module WhopSDK
|
|
|
106
111
|
access_level:,
|
|
107
112
|
# The company for the member.
|
|
108
113
|
company:,
|
|
114
|
+
# The member's token balance for this company
|
|
115
|
+
company_token_balance:,
|
|
109
116
|
# When the member was created
|
|
110
117
|
created_at:,
|
|
111
118
|
# When the member joined the company
|
|
@@ -133,6 +140,7 @@ module WhopSDK
|
|
|
133
140
|
id: String,
|
|
134
141
|
access_level: WhopSDK::AccessLevel::TaggedSymbol,
|
|
135
142
|
company: WhopSDK::Models::MemberRetrieveResponse::Company,
|
|
143
|
+
company_token_balance: Float,
|
|
136
144
|
created_at: Time,
|
|
137
145
|
joined_at: Time,
|
|
138
146
|
most_recent_action:
|
|
@@ -15,6 +15,13 @@ module WhopSDK
|
|
|
15
15
|
sig { returns(T::Boolean) }
|
|
16
16
|
attr_accessor :cancel_at_period_end
|
|
17
17
|
|
|
18
|
+
# The different reasons a user can choose for why they are canceling their
|
|
19
|
+
# membership.
|
|
20
|
+
sig do
|
|
21
|
+
returns(T.nilable(WhopSDK::Membership::CancelOption::TaggedSymbol))
|
|
22
|
+
end
|
|
23
|
+
attr_accessor :cancel_option
|
|
24
|
+
|
|
18
25
|
# The epoch timestamp of when the customer initiated a cancellation.
|
|
19
26
|
sig { returns(T.nilable(Time)) }
|
|
20
27
|
attr_accessor :canceled_at
|
|
@@ -38,6 +45,10 @@ module WhopSDK
|
|
|
38
45
|
sig { returns(T.nilable(WhopSDK::Currency::TaggedSymbol)) }
|
|
39
46
|
attr_accessor :currency
|
|
40
47
|
|
|
48
|
+
# The responses to custom checkout questions for this membership.
|
|
49
|
+
sig { returns(T::Array[WhopSDK::Membership::CustomFieldResponse]) }
|
|
50
|
+
attr_accessor :custom_field_responses
|
|
51
|
+
|
|
41
52
|
# The license key for this Membership. This is only present if the membership
|
|
42
53
|
# grants access to an instance of the Whop Software app.
|
|
43
54
|
sig { returns(T.nilable(String)) }
|
|
@@ -120,11 +131,14 @@ module WhopSDK
|
|
|
120
131
|
params(
|
|
121
132
|
id: String,
|
|
122
133
|
cancel_at_period_end: T::Boolean,
|
|
134
|
+
cancel_option: T.nilable(WhopSDK::Membership::CancelOption::OrSymbol),
|
|
123
135
|
canceled_at: T.nilable(Time),
|
|
124
136
|
cancellation_reason: T.nilable(String),
|
|
125
137
|
company: WhopSDK::Membership::Company::OrHash,
|
|
126
138
|
created_at: Time,
|
|
127
139
|
currency: T.nilable(WhopSDK::Currency::OrSymbol),
|
|
140
|
+
custom_field_responses:
|
|
141
|
+
T::Array[WhopSDK::Membership::CustomFieldResponse::OrHash],
|
|
128
142
|
license_key: T.nilable(String),
|
|
129
143
|
manage_url: T.nilable(String),
|
|
130
144
|
member: T.nilable(WhopSDK::Membership::Member::OrHash),
|
|
@@ -146,6 +160,9 @@ module WhopSDK
|
|
|
146
160
|
# Whether this Membership is set to cancel at the end of the current billing
|
|
147
161
|
# cycle. Only applies for memberships that have a renewal plan.
|
|
148
162
|
cancel_at_period_end:,
|
|
163
|
+
# The different reasons a user can choose for why they are canceling their
|
|
164
|
+
# membership.
|
|
165
|
+
cancel_option:,
|
|
149
166
|
# The epoch timestamp of when the customer initiated a cancellation.
|
|
150
167
|
canceled_at:,
|
|
151
168
|
# The reason that the member canceled the membership (filled out by the member).
|
|
@@ -156,6 +173,8 @@ module WhopSDK
|
|
|
156
173
|
created_at:,
|
|
157
174
|
# The available currencies on the platform
|
|
158
175
|
currency:,
|
|
176
|
+
# The responses to custom checkout questions for this membership.
|
|
177
|
+
custom_field_responses:,
|
|
159
178
|
# The license key for this Membership. This is only present if the membership
|
|
160
179
|
# grants access to an instance of the Whop Software app.
|
|
161
180
|
license_key:,
|
|
@@ -193,11 +212,15 @@ module WhopSDK
|
|
|
193
212
|
{
|
|
194
213
|
id: String,
|
|
195
214
|
cancel_at_period_end: T::Boolean,
|
|
215
|
+
cancel_option:
|
|
216
|
+
T.nilable(WhopSDK::Membership::CancelOption::TaggedSymbol),
|
|
196
217
|
canceled_at: T.nilable(Time),
|
|
197
218
|
cancellation_reason: T.nilable(String),
|
|
198
219
|
company: WhopSDK::Membership::Company,
|
|
199
220
|
created_at: Time,
|
|
200
221
|
currency: T.nilable(WhopSDK::Currency::TaggedSymbol),
|
|
222
|
+
custom_field_responses:
|
|
223
|
+
T::Array[WhopSDK::Membership::CustomFieldResponse],
|
|
201
224
|
license_key: T.nilable(String),
|
|
202
225
|
manage_url: T.nilable(String),
|
|
203
226
|
member: T.nilable(WhopSDK::Membership::Member),
|
|
@@ -217,6 +240,47 @@ module WhopSDK
|
|
|
217
240
|
def to_hash
|
|
218
241
|
end
|
|
219
242
|
|
|
243
|
+
# The different reasons a user can choose for why they are canceling their
|
|
244
|
+
# membership.
|
|
245
|
+
module CancelOption
|
|
246
|
+
extend WhopSDK::Internal::Type::Enum
|
|
247
|
+
|
|
248
|
+
TaggedSymbol =
|
|
249
|
+
T.type_alias { T.all(Symbol, WhopSDK::Membership::CancelOption) }
|
|
250
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
251
|
+
|
|
252
|
+
TOO_EXPENSIVE =
|
|
253
|
+
T.let(:too_expensive, WhopSDK::Membership::CancelOption::TaggedSymbol)
|
|
254
|
+
SWITCHING =
|
|
255
|
+
T.let(:switching, WhopSDK::Membership::CancelOption::TaggedSymbol)
|
|
256
|
+
MISSING_FEATURES =
|
|
257
|
+
T.let(
|
|
258
|
+
:missing_features,
|
|
259
|
+
WhopSDK::Membership::CancelOption::TaggedSymbol
|
|
260
|
+
)
|
|
261
|
+
TECHNICAL_ISSUES =
|
|
262
|
+
T.let(
|
|
263
|
+
:technical_issues,
|
|
264
|
+
WhopSDK::Membership::CancelOption::TaggedSymbol
|
|
265
|
+
)
|
|
266
|
+
BAD_EXPERIENCE =
|
|
267
|
+
T.let(
|
|
268
|
+
:bad_experience,
|
|
269
|
+
WhopSDK::Membership::CancelOption::TaggedSymbol
|
|
270
|
+
)
|
|
271
|
+
OTHER = T.let(:other, WhopSDK::Membership::CancelOption::TaggedSymbol)
|
|
272
|
+
TESTING =
|
|
273
|
+
T.let(:testing, WhopSDK::Membership::CancelOption::TaggedSymbol)
|
|
274
|
+
|
|
275
|
+
sig do
|
|
276
|
+
override.returns(
|
|
277
|
+
T::Array[WhopSDK::Membership::CancelOption::TaggedSymbol]
|
|
278
|
+
)
|
|
279
|
+
end
|
|
280
|
+
def self.values
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
|
|
220
284
|
class Company < WhopSDK::Internal::Type::BaseModel
|
|
221
285
|
OrHash =
|
|
222
286
|
T.type_alias do
|
|
@@ -246,6 +310,50 @@ module WhopSDK
|
|
|
246
310
|
end
|
|
247
311
|
end
|
|
248
312
|
|
|
313
|
+
class CustomFieldResponse < WhopSDK::Internal::Type::BaseModel
|
|
314
|
+
OrHash =
|
|
315
|
+
T.type_alias do
|
|
316
|
+
T.any(
|
|
317
|
+
WhopSDK::Membership::CustomFieldResponse,
|
|
318
|
+
WhopSDK::Internal::AnyHash
|
|
319
|
+
)
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# The ID of the custom field item
|
|
323
|
+
sig { returns(String) }
|
|
324
|
+
attr_accessor :id
|
|
325
|
+
|
|
326
|
+
# The response a user gave to the specific question or field.
|
|
327
|
+
sig { returns(String) }
|
|
328
|
+
attr_accessor :answer
|
|
329
|
+
|
|
330
|
+
# The question asked by the custom field
|
|
331
|
+
sig { returns(String) }
|
|
332
|
+
attr_accessor :question
|
|
333
|
+
|
|
334
|
+
# The response from a custom field on checkout
|
|
335
|
+
sig do
|
|
336
|
+
params(id: String, answer: String, question: String).returns(
|
|
337
|
+
T.attached_class
|
|
338
|
+
)
|
|
339
|
+
end
|
|
340
|
+
def self.new(
|
|
341
|
+
# The ID of the custom field item
|
|
342
|
+
id:,
|
|
343
|
+
# The response a user gave to the specific question or field.
|
|
344
|
+
answer:,
|
|
345
|
+
# The question asked by the custom field
|
|
346
|
+
question:
|
|
347
|
+
)
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
sig do
|
|
351
|
+
override.returns({ id: String, answer: String, question: String })
|
|
352
|
+
end
|
|
353
|
+
def to_hash
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
|
|
249
357
|
class Member < WhopSDK::Internal::Type::BaseModel
|
|
250
358
|
OrHash =
|
|
251
359
|
T.type_alias do
|
|
@@ -354,6 +462,10 @@ module WhopSDK
|
|
|
354
462
|
sig { returns(String) }
|
|
355
463
|
attr_accessor :id
|
|
356
464
|
|
|
465
|
+
# The email of the user
|
|
466
|
+
sig { returns(T.nilable(String)) }
|
|
467
|
+
attr_accessor :email
|
|
468
|
+
|
|
357
469
|
# The name of the user from their Whop account.
|
|
358
470
|
sig { returns(T.nilable(String)) }
|
|
359
471
|
attr_accessor :name
|
|
@@ -364,13 +476,18 @@ module WhopSDK
|
|
|
364
476
|
|
|
365
477
|
# The user this membership belongs to
|
|
366
478
|
sig do
|
|
367
|
-
params(
|
|
368
|
-
|
|
369
|
-
|
|
479
|
+
params(
|
|
480
|
+
id: String,
|
|
481
|
+
email: T.nilable(String),
|
|
482
|
+
name: T.nilable(String),
|
|
483
|
+
username: String
|
|
484
|
+
).returns(T.attached_class)
|
|
370
485
|
end
|
|
371
486
|
def self.new(
|
|
372
487
|
# The internal ID of the user.
|
|
373
488
|
id:,
|
|
489
|
+
# The email of the user
|
|
490
|
+
email:,
|
|
374
491
|
# The name of the user from their Whop account.
|
|
375
492
|
name:,
|
|
376
493
|
# The username of the user from their Whop account.
|
|
@@ -380,7 +497,12 @@ module WhopSDK
|
|
|
380
497
|
|
|
381
498
|
sig do
|
|
382
499
|
override.returns(
|
|
383
|
-
{
|
|
500
|
+
{
|
|
501
|
+
id: String,
|
|
502
|
+
email: T.nilable(String),
|
|
503
|
+
name: T.nilable(String),
|
|
504
|
+
username: String
|
|
505
|
+
}
|
|
384
506
|
)
|
|
385
507
|
end
|
|
386
508
|
def to_hash
|