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
|
@@ -22,9 +22,9 @@ module WhopSDK
|
|
|
22
22
|
# @!attribute cancellation_policy_attachment
|
|
23
23
|
# A file containing the cancellation policy from the company.
|
|
24
24
|
#
|
|
25
|
-
# @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment
|
|
25
|
+
# @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment, nil]
|
|
26
26
|
optional :cancellation_policy_attachment,
|
|
27
|
-
|
|
27
|
+
-> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment },
|
|
28
28
|
nil?: true
|
|
29
29
|
|
|
30
30
|
# @!attribute cancellation_policy_disclosure
|
|
@@ -36,9 +36,9 @@ module WhopSDK
|
|
|
36
36
|
# @!attribute customer_communication_attachment
|
|
37
37
|
# A file containing the customer communication from the company (An image).
|
|
38
38
|
#
|
|
39
|
-
# @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment
|
|
39
|
+
# @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment, nil]
|
|
40
40
|
optional :customer_communication_attachment,
|
|
41
|
-
|
|
41
|
+
-> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment },
|
|
42
42
|
nil?: true
|
|
43
43
|
|
|
44
44
|
# @!attribute customer_email_address
|
|
@@ -68,9 +68,9 @@ module WhopSDK
|
|
|
68
68
|
# @!attribute refund_policy_attachment
|
|
69
69
|
# A file containing the refund policy from the company.
|
|
70
70
|
#
|
|
71
|
-
# @return [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment
|
|
71
|
+
# @return [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment, nil]
|
|
72
72
|
optional :refund_policy_attachment,
|
|
73
|
-
|
|
73
|
+
-> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment },
|
|
74
74
|
nil?: true
|
|
75
75
|
|
|
76
76
|
# @!attribute refund_policy_disclosure
|
|
@@ -94,9 +94,9 @@ module WhopSDK
|
|
|
94
94
|
# @!attribute uncategorized_attachment
|
|
95
95
|
# A file that does not fit in the other categories.
|
|
96
96
|
#
|
|
97
|
-
# @return [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment
|
|
97
|
+
# @return [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment, nil]
|
|
98
98
|
optional :uncategorized_attachment,
|
|
99
|
-
|
|
99
|
+
-> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment },
|
|
100
100
|
nil?: true
|
|
101
101
|
|
|
102
102
|
# @!method initialize(access_activity_log: nil, billing_address: nil, cancellation_policy_attachment: nil, cancellation_policy_disclosure: nil, customer_communication_attachment: nil, customer_email_address: nil, customer_name: nil, notes: nil, product_description: nil, refund_policy_attachment: nil, refund_policy_disclosure: nil, refund_refusal_explanation: nil, service_date: nil, uncategorized_attachment: nil, request_options: {})
|
|
@@ -104,11 +104,11 @@ module WhopSDK
|
|
|
104
104
|
#
|
|
105
105
|
# @param billing_address [String, nil] The billing address of the user from their payment details.
|
|
106
106
|
#
|
|
107
|
-
# @param cancellation_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment
|
|
107
|
+
# @param cancellation_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment, nil] A file containing the cancellation policy from the company.
|
|
108
108
|
#
|
|
109
109
|
# @param cancellation_policy_disclosure [String, nil] A cancellation policy disclosure from the company.
|
|
110
110
|
#
|
|
111
|
-
# @param customer_communication_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment
|
|
111
|
+
# @param customer_communication_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment, nil] A file containing the customer communication from the company (An image).
|
|
112
112
|
#
|
|
113
113
|
# @param customer_email_address [String, nil] The email of the customer from their payment details.
|
|
114
114
|
#
|
|
@@ -118,7 +118,7 @@ module WhopSDK
|
|
|
118
118
|
#
|
|
119
119
|
# @param product_description [String, nil] The description of the product from the company.
|
|
120
120
|
#
|
|
121
|
-
# @param refund_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment
|
|
121
|
+
# @param refund_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment, nil] A file containing the refund policy from the company.
|
|
122
122
|
#
|
|
123
123
|
# @param refund_policy_disclosure [String, nil] A refund policy disclosure from the company.
|
|
124
124
|
#
|
|
@@ -126,216 +126,60 @@ module WhopSDK
|
|
|
126
126
|
#
|
|
127
127
|
# @param service_date [String, nil] When the product was delivered by the company.
|
|
128
128
|
#
|
|
129
|
-
# @param uncategorized_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment
|
|
129
|
+
# @param uncategorized_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment, nil] A file that does not fit in the other categories.
|
|
130
130
|
#
|
|
131
131
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
#
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
#
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
# @!attribute direct_upload_id
|
|
145
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
146
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
147
|
-
# mediaDirectUpload mutation.
|
|
148
|
-
#
|
|
149
|
-
# @return [String]
|
|
150
|
-
required :direct_upload_id, String
|
|
151
|
-
|
|
152
|
-
# @!method initialize(direct_upload_id:)
|
|
153
|
-
# Some parameter documentations has been truncated, see
|
|
154
|
-
# {WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID}
|
|
155
|
-
# for more details.
|
|
156
|
-
#
|
|
157
|
-
# Input for an attachment
|
|
158
|
-
#
|
|
159
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
163
|
-
# @!attribute id
|
|
164
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
165
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
166
|
-
# doing.
|
|
167
|
-
#
|
|
168
|
-
# @return [String]
|
|
169
|
-
required :id, String
|
|
170
|
-
|
|
171
|
-
# @!method initialize(id:)
|
|
172
|
-
# Some parameter documentations has been truncated, see
|
|
173
|
-
# {WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID}
|
|
174
|
-
# for more details.
|
|
175
|
-
#
|
|
176
|
-
# Input for an attachment
|
|
177
|
-
#
|
|
178
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
# @!method self.variants
|
|
182
|
-
# @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID)]
|
|
133
|
+
class CancellationPolicyAttachment < WhopSDK::Internal::Type::BaseModel
|
|
134
|
+
# @!attribute id
|
|
135
|
+
# The ID of an existing file object.
|
|
136
|
+
#
|
|
137
|
+
# @return [String]
|
|
138
|
+
required :id, String
|
|
139
|
+
|
|
140
|
+
# @!method initialize(id:)
|
|
141
|
+
# A file containing the cancellation policy from the company.
|
|
142
|
+
#
|
|
143
|
+
# @param id [String] The ID of an existing file object.
|
|
183
144
|
end
|
|
184
145
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
#
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
#
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
# @!attribute direct_upload_id
|
|
197
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
198
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
199
|
-
# mediaDirectUpload mutation.
|
|
200
|
-
#
|
|
201
|
-
# @return [String]
|
|
202
|
-
required :direct_upload_id, String
|
|
203
|
-
|
|
204
|
-
# @!method initialize(direct_upload_id:)
|
|
205
|
-
# Some parameter documentations has been truncated, see
|
|
206
|
-
# {WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID}
|
|
207
|
-
# for more details.
|
|
208
|
-
#
|
|
209
|
-
# Input for an attachment
|
|
210
|
-
#
|
|
211
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
215
|
-
# @!attribute id
|
|
216
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
217
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
218
|
-
# doing.
|
|
219
|
-
#
|
|
220
|
-
# @return [String]
|
|
221
|
-
required :id, String
|
|
222
|
-
|
|
223
|
-
# @!method initialize(id:)
|
|
224
|
-
# Some parameter documentations has been truncated, see
|
|
225
|
-
# {WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID}
|
|
226
|
-
# for more details.
|
|
227
|
-
#
|
|
228
|
-
# Input for an attachment
|
|
229
|
-
#
|
|
230
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
# @!method self.variants
|
|
234
|
-
# @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID)]
|
|
146
|
+
class CustomerCommunicationAttachment < WhopSDK::Internal::Type::BaseModel
|
|
147
|
+
# @!attribute id
|
|
148
|
+
# The ID of an existing file object.
|
|
149
|
+
#
|
|
150
|
+
# @return [String]
|
|
151
|
+
required :id, String
|
|
152
|
+
|
|
153
|
+
# @!method initialize(id:)
|
|
154
|
+
# A file containing the customer communication from the company (An image).
|
|
155
|
+
#
|
|
156
|
+
# @param id [String] The ID of an existing file object.
|
|
235
157
|
end
|
|
236
158
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
#
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
#
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
# @!attribute direct_upload_id
|
|
249
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
250
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
251
|
-
# mediaDirectUpload mutation.
|
|
252
|
-
#
|
|
253
|
-
# @return [String]
|
|
254
|
-
required :direct_upload_id, String
|
|
255
|
-
|
|
256
|
-
# @!method initialize(direct_upload_id:)
|
|
257
|
-
# Some parameter documentations has been truncated, see
|
|
258
|
-
# {WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID}
|
|
259
|
-
# for more details.
|
|
260
|
-
#
|
|
261
|
-
# Input for an attachment
|
|
262
|
-
#
|
|
263
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
267
|
-
# @!attribute id
|
|
268
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
269
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
270
|
-
# doing.
|
|
271
|
-
#
|
|
272
|
-
# @return [String]
|
|
273
|
-
required :id, String
|
|
274
|
-
|
|
275
|
-
# @!method initialize(id:)
|
|
276
|
-
# Some parameter documentations has been truncated, see
|
|
277
|
-
# {WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID}
|
|
278
|
-
# for more details.
|
|
279
|
-
#
|
|
280
|
-
# Input for an attachment
|
|
281
|
-
#
|
|
282
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
# @!method self.variants
|
|
286
|
-
# @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID)]
|
|
159
|
+
class RefundPolicyAttachment < WhopSDK::Internal::Type::BaseModel
|
|
160
|
+
# @!attribute id
|
|
161
|
+
# The ID of an existing file object.
|
|
162
|
+
#
|
|
163
|
+
# @return [String]
|
|
164
|
+
required :id, String
|
|
165
|
+
|
|
166
|
+
# @!method initialize(id:)
|
|
167
|
+
# A file containing the refund policy from the company.
|
|
168
|
+
#
|
|
169
|
+
# @param id [String] The ID of an existing file object.
|
|
287
170
|
end
|
|
288
171
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
#
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
#
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
# @!attribute direct_upload_id
|
|
301
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
302
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
303
|
-
# mediaDirectUpload mutation.
|
|
304
|
-
#
|
|
305
|
-
# @return [String]
|
|
306
|
-
required :direct_upload_id, String
|
|
307
|
-
|
|
308
|
-
# @!method initialize(direct_upload_id:)
|
|
309
|
-
# Some parameter documentations has been truncated, see
|
|
310
|
-
# {WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID}
|
|
311
|
-
# for more details.
|
|
312
|
-
#
|
|
313
|
-
# Input for an attachment
|
|
314
|
-
#
|
|
315
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
319
|
-
# @!attribute id
|
|
320
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
321
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
322
|
-
# doing.
|
|
323
|
-
#
|
|
324
|
-
# @return [String]
|
|
325
|
-
required :id, String
|
|
326
|
-
|
|
327
|
-
# @!method initialize(id:)
|
|
328
|
-
# Some parameter documentations has been truncated, see
|
|
329
|
-
# {WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID}
|
|
330
|
-
# for more details.
|
|
331
|
-
#
|
|
332
|
-
# Input for an attachment
|
|
333
|
-
#
|
|
334
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
335
|
-
end
|
|
336
|
-
|
|
337
|
-
# @!method self.variants
|
|
338
|
-
# @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID)]
|
|
172
|
+
class UncategorizedAttachment < WhopSDK::Internal::Type::BaseModel
|
|
173
|
+
# @!attribute id
|
|
174
|
+
# The ID of an existing file object.
|
|
175
|
+
#
|
|
176
|
+
# @return [String]
|
|
177
|
+
required :id, String
|
|
178
|
+
|
|
179
|
+
# @!method initialize(id:)
|
|
180
|
+
# A file that does not fit in the other categories.
|
|
181
|
+
#
|
|
182
|
+
# @param id [String] The ID of an existing file object.
|
|
339
183
|
end
|
|
340
184
|
end
|
|
341
185
|
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#create
|
|
6
|
+
class DmMemberCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute channel_id
|
|
11
|
+
# The ID of the DM channel to add the member to
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :channel_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute user_id
|
|
17
|
+
# The ID of the user to add to the channel
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :user_id, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(channel_id:, user_id:, request_options: {})
|
|
23
|
+
# @param channel_id [String] The ID of the DM channel to add the member to
|
|
24
|
+
#
|
|
25
|
+
# @param user_id [String] The ID of the user to add to the channel
|
|
26
|
+
#
|
|
27
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#create
|
|
6
|
+
class DmMemberCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The unique identifier for the entity
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute channel_id
|
|
14
|
+
# The ID of the DM channel
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :channel_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute last_viewed_at
|
|
20
|
+
# Timestamp when the member last viewed the channel (in milliseconds since Unix
|
|
21
|
+
# epoch)
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
required :last_viewed_at, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute notification_preference
|
|
27
|
+
# The notification preference for this member (all, mentions, none)
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, WhopSDK::Models::DmMemberCreateResponse::NotificationPreference]
|
|
30
|
+
required :notification_preference,
|
|
31
|
+
enum: -> { WhopSDK::Models::DmMemberCreateResponse::NotificationPreference }
|
|
32
|
+
|
|
33
|
+
# @!attribute status
|
|
34
|
+
# The status of the membership (requested, accepted, rejected)
|
|
35
|
+
#
|
|
36
|
+
# @return [Symbol, WhopSDK::Models::DmMemberCreateResponse::Status]
|
|
37
|
+
required :status, enum: -> { WhopSDK::Models::DmMemberCreateResponse::Status }
|
|
38
|
+
|
|
39
|
+
# @!attribute user_id
|
|
40
|
+
# The ID of the user who is a member of the channel
|
|
41
|
+
#
|
|
42
|
+
# @return [String]
|
|
43
|
+
required :user_id, String
|
|
44
|
+
|
|
45
|
+
# @!method initialize(id:, channel_id:, last_viewed_at:, notification_preference:, status:, user_id:)
|
|
46
|
+
# Some parameter documentations has been truncated, see
|
|
47
|
+
# {WhopSDK::Models::DmMemberCreateResponse} for more details.
|
|
48
|
+
#
|
|
49
|
+
# Represents a member of a DM channel
|
|
50
|
+
#
|
|
51
|
+
# @param id [String] The unique identifier for the entity
|
|
52
|
+
#
|
|
53
|
+
# @param channel_id [String] The ID of the DM channel
|
|
54
|
+
#
|
|
55
|
+
# @param last_viewed_at [String, nil] Timestamp when the member last viewed the channel (in milliseconds since Unix ep
|
|
56
|
+
#
|
|
57
|
+
# @param notification_preference [Symbol, WhopSDK::Models::DmMemberCreateResponse::NotificationPreference] The notification preference for this member (all, mentions, none)
|
|
58
|
+
#
|
|
59
|
+
# @param status [Symbol, WhopSDK::Models::DmMemberCreateResponse::Status] The status of the membership (requested, accepted, rejected)
|
|
60
|
+
#
|
|
61
|
+
# @param user_id [String] The ID of the user who is a member of the channel
|
|
62
|
+
|
|
63
|
+
# The notification preference for this member (all, mentions, none)
|
|
64
|
+
#
|
|
65
|
+
# @see WhopSDK::Models::DmMemberCreateResponse#notification_preference
|
|
66
|
+
module NotificationPreference
|
|
67
|
+
extend WhopSDK::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
ALL = :all
|
|
70
|
+
MENTIONS = :mentions
|
|
71
|
+
NONE = :none
|
|
72
|
+
|
|
73
|
+
# @!method self.values
|
|
74
|
+
# @return [Array<Symbol>]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# The status of the membership (requested, accepted, rejected)
|
|
78
|
+
#
|
|
79
|
+
# @see WhopSDK::Models::DmMemberCreateResponse#status
|
|
80
|
+
module Status
|
|
81
|
+
extend WhopSDK::Internal::Type::Enum
|
|
82
|
+
|
|
83
|
+
REQUESTED = :requested
|
|
84
|
+
ACCEPTED = :accepted
|
|
85
|
+
HIDDEN = :hidden
|
|
86
|
+
CLOSED = :closed
|
|
87
|
+
ARCHIVED = :archived
|
|
88
|
+
|
|
89
|
+
# @!method self.values
|
|
90
|
+
# @return [Array<Symbol>]
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#delete
|
|
6
|
+
class DmMemberDeleteParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#list
|
|
6
|
+
class DmMemberListParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute channel_id
|
|
11
|
+
# The ID of the DM channel to list members for
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :channel_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute after
|
|
17
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :after, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute before
|
|
23
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :before, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute first
|
|
29
|
+
# Returns the first _n_ elements from the list.
|
|
30
|
+
#
|
|
31
|
+
# @return [Integer, nil]
|
|
32
|
+
optional :first, Integer, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute last
|
|
35
|
+
# Returns the last _n_ elements from the list.
|
|
36
|
+
#
|
|
37
|
+
# @return [Integer, nil]
|
|
38
|
+
optional :last, Integer, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!method initialize(channel_id:, after: nil, before: nil, first: nil, last: nil, request_options: {})
|
|
41
|
+
# @param channel_id [String] The ID of the DM channel to list members for
|
|
42
|
+
#
|
|
43
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
44
|
+
#
|
|
45
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
46
|
+
#
|
|
47
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
48
|
+
#
|
|
49
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#list
|
|
6
|
+
class DmMemberListResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The unique identifier for the entity
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute channel_id
|
|
14
|
+
# The ID of the DM channel
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :channel_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute last_viewed_at
|
|
20
|
+
# Timestamp when the member last viewed the channel (in milliseconds since Unix
|
|
21
|
+
# epoch)
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
required :last_viewed_at, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute status
|
|
27
|
+
# The status of the membership (requested, accepted, rejected)
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, WhopSDK::Models::DmMemberListResponse::Status]
|
|
30
|
+
required :status, enum: -> { WhopSDK::Models::DmMemberListResponse::Status }
|
|
31
|
+
|
|
32
|
+
# @!attribute user_id
|
|
33
|
+
# The ID of the user who is a member of the channel
|
|
34
|
+
#
|
|
35
|
+
# @return [String]
|
|
36
|
+
required :user_id, String
|
|
37
|
+
|
|
38
|
+
# @!method initialize(id:, channel_id:, last_viewed_at:, status:, user_id:)
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {WhopSDK::Models::DmMemberListResponse} for more details.
|
|
41
|
+
#
|
|
42
|
+
# Represents a member of a DM channel
|
|
43
|
+
#
|
|
44
|
+
# @param id [String] The unique identifier for the entity
|
|
45
|
+
#
|
|
46
|
+
# @param channel_id [String] The ID of the DM channel
|
|
47
|
+
#
|
|
48
|
+
# @param last_viewed_at [String, nil] Timestamp when the member last viewed the channel (in milliseconds since Unix ep
|
|
49
|
+
#
|
|
50
|
+
# @param status [Symbol, WhopSDK::Models::DmMemberListResponse::Status] The status of the membership (requested, accepted, rejected)
|
|
51
|
+
#
|
|
52
|
+
# @param user_id [String] The ID of the user who is a member of the channel
|
|
53
|
+
|
|
54
|
+
# The status of the membership (requested, accepted, rejected)
|
|
55
|
+
#
|
|
56
|
+
# @see WhopSDK::Models::DmMemberListResponse#status
|
|
57
|
+
module Status
|
|
58
|
+
extend WhopSDK::Internal::Type::Enum
|
|
59
|
+
|
|
60
|
+
REQUESTED = :requested
|
|
61
|
+
ACCEPTED = :accepted
|
|
62
|
+
HIDDEN = :hidden
|
|
63
|
+
CLOSED = :closed
|
|
64
|
+
ARCHIVED = :archived
|
|
65
|
+
|
|
66
|
+
# @!method self.values
|
|
67
|
+
# @return [Array<Symbol>]
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#retrieve
|
|
6
|
+
class DmMemberRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|