whop_sdk 0.0.25 → 0.0.26
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 +15 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +4 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/whop_sdk/models/{ai_chat_create_response.rb → ai_chat.rb} +5 -5
- data/lib/whop_sdk/models/api_version.rb +17 -0
- data/lib/whop_sdk/models/authorized_user_list_params.rb +9 -9
- data/lib/whop_sdk/models/authorized_user_list_response.rb +31 -1
- data/lib/whop_sdk/models/authorized_user_retrieve_response.rb +31 -1
- data/lib/whop_sdk/models/bot_token_transaction_types.rb +17 -0
- data/lib/whop_sdk/models/cancel_options.rb +22 -0
- data/lib/whop_sdk/models/{company_token_transaction_create_response.rb → company_token_transaction.rb} +16 -31
- data/lib/whop_sdk/models/company_token_transaction_list_params.rb +3 -17
- data/lib/whop_sdk/models/company_token_transaction_list_response.rb +3 -18
- data/lib/whop_sdk/models/dm_channel.rb +43 -0
- data/lib/whop_sdk/models/dm_channel_create_params.rb +38 -0
- data/lib/whop_sdk/models/dm_channel_delete_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel_delete_response.rb +8 -0
- data/lib/whop_sdk/models/dm_channel_list_params.rb +54 -0
- data/lib/whop_sdk/models/dm_channel_list_response.rb +43 -0
- data/lib/whop_sdk/models/dm_channel_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel_update_params.rb +22 -0
- data/lib/whop_sdk/models/dm_feed_member_notification_preferences.rb +17 -0
- data/lib/whop_sdk/models/dm_feed_member_statuses.rb +19 -0
- data/lib/whop_sdk/models/{dm_member_create_response.rb → dm_member.rb} +8 -39
- data/lib/whop_sdk/models/dm_member_list_response.rb +3 -19
- data/lib/whop_sdk/models/dm_member_update_params.rb +6 -34
- data/lib/whop_sdk/models/file_create_response.rb +3 -18
- data/lib/whop_sdk/models/file_retrieve_response.rb +3 -18
- data/lib/whop_sdk/models/{lead_create_response.rb → lead.rb} +13 -13
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +6 -63
- data/lib/whop_sdk/models/member_list_params.rb +9 -9
- data/lib/whop_sdk/models/membership.rb +3 -22
- data/lib/whop_sdk/models/membership_list_params.rb +3 -20
- data/lib/whop_sdk/models/membership_list_response.rb +3 -22
- data/lib/whop_sdk/models/payment.rb +63 -1
- data/lib/whop_sdk/models/payment_list_response.rb +63 -1
- data/lib/whop_sdk/models/payout_destination_category.rb +20 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +3 -20
- data/lib/whop_sdk/models/payout_method_list_response.rb +3 -20
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +3 -20
- data/lib/whop_sdk/models/upload_status.rb +18 -0
- data/lib/whop_sdk/models/verification_error_code.rb +33 -0
- data/lib/whop_sdk/models/verification_retrieve_response.rb +6 -62
- data/lib/whop_sdk/models/verification_status.rb +27 -0
- data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +6 -62
- data/lib/whop_sdk/models/webhook.rb +88 -0
- data/lib/whop_sdk/models/webhook_create_params.rb +6 -56
- data/lib/whop_sdk/models/webhook_create_response.rb +9 -97
- data/lib/whop_sdk/models/webhook_event.rb +41 -0
- data/lib/whop_sdk/models/webhook_list_response.rb +6 -57
- data/lib/whop_sdk/models/webhook_update_params.rb +6 -56
- data/lib/whop_sdk/models/{withdrawal_create_response.rb → withdrawal.rb} +15 -15
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +3 -267
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +3 -267
- data/lib/whop_sdk/models.rb +44 -0
- data/lib/whop_sdk/resources/ai_chats.rb +6 -6
- data/lib/whop_sdk/resources/authorized_users.rb +4 -4
- data/lib/whop_sdk/resources/company_token_transactions.rb +5 -5
- data/lib/whop_sdk/resources/dm_channels.rb +151 -0
- data/lib/whop_sdk/resources/dm_members.rb +8 -8
- data/lib/whop_sdk/resources/leads.rb +6 -12
- data/lib/whop_sdk/resources/members.rb +4 -4
- data/lib/whop_sdk/resources/memberships.rb +1 -1
- data/lib/whop_sdk/resources/webhooks.rb +8 -8
- data/lib/whop_sdk/resources/withdrawals.rb +4 -4
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +25 -15
- data/rbi/whop_sdk/client.rbi +3 -0
- data/rbi/whop_sdk/models/{ai_chat_update_response.rbi → ai_chat.rbi} +7 -17
- data/rbi/whop_sdk/models/api_version.rbi +21 -0
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/authorized_user_list_response.rbi +47 -0
- data/rbi/whop_sdk/models/authorized_user_retrieve_response.rbi +49 -0
- data/rbi/whop_sdk/models/bot_token_transaction_types.rbi +28 -0
- data/rbi/whop_sdk/models/cancel_options.rbi +30 -0
- data/rbi/whop_sdk/models/{company_token_transaction_create_response.rbi → company_token_transaction.rbi} +20 -91
- data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +3 -53
- data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +3 -49
- data/rbi/whop_sdk/models/dm_channel.rbi +60 -0
- data/rbi/whop_sdk/models/dm_channel_create_params.rbi +59 -0
- data/rbi/whop_sdk/models/dm_channel_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_channel_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/dm_channel_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/dm_channel_list_response.rbi +65 -0
- data/rbi/whop_sdk/models/dm_channel_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_channel_update_params.rbi +43 -0
- data/rbi/whop_sdk/models/dm_feed_member_notification_preferences.rbi +34 -0
- data/rbi/whop_sdk/models/dm_feed_member_statuses.rbi +26 -0
- data/rbi/whop_sdk/models/dm_member.rbi +82 -0
- data/rbi/whop_sdk/models/dm_member_list_response.rbi +3 -52
- data/rbi/whop_sdk/models/dm_member_update_params.rbi +6 -79
- data/rbi/whop_sdk/models/file_create_response.rbi +3 -49
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -51
- data/rbi/whop_sdk/models/{lead_update_response.rbi → lead.rbi} +17 -42
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +6 -230
- data/rbi/whop_sdk/models/member_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/membership.rbi +3 -47
- data/rbi/whop_sdk/models/membership_list_params.rbi +3 -70
- data/rbi/whop_sdk/models/membership_list_response.rbi +3 -73
- data/rbi/whop_sdk/models/payment.rbi +88 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +100 -0
- data/rbi/whop_sdk/models/payout_destination_category.rbi +33 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +3 -64
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +3 -64
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +3 -64
- data/rbi/whop_sdk/models/upload_status.rbi +22 -0
- data/rbi/whop_sdk/models/verification_error_code.rbi +101 -0
- data/rbi/whop_sdk/models/verification_retrieve_response.rbi +6 -230
- data/rbi/whop_sdk/models/verification_status.rbi +38 -0
- data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +6 -232
- data/rbi/whop_sdk/models/webhook.rbi +104 -0
- data/rbi/whop_sdk/models/webhook_create_params.rbi +6 -194
- data/rbi/whop_sdk/models/webhook_create_response.rbi +9 -386
- data/rbi/whop_sdk/models/webhook_event.rbi +79 -0
- data/rbi/whop_sdk/models/webhook_list_response.rbi +6 -210
- data/rbi/whop_sdk/models/webhook_update_params.rbi +6 -194
- data/rbi/whop_sdk/models/{withdrawal_create_response.rbi → withdrawal.rbi} +63 -127
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +4 -571
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +4 -571
- data/rbi/whop_sdk/models.rbi +45 -0
- data/rbi/whop_sdk/resources/ai_chats.rbi +3 -3
- data/rbi/whop_sdk/resources/authorized_users.rbi +3 -3
- data/rbi/whop_sdk/resources/company_token_transactions.rbi +3 -5
- data/rbi/whop_sdk/resources/dm_channels.rbi +121 -0
- data/rbi/whop_sdk/resources/dm_members.rbi +5 -7
- data/rbi/whop_sdk/resources/leads.rbi +3 -3
- data/rbi/whop_sdk/resources/members.rbi +3 -3
- data/rbi/whop_sdk/resources/memberships.rbi +1 -4
- data/rbi/whop_sdk/resources/webhooks.rbi +6 -10
- data/rbi/whop_sdk/resources/withdrawals.rbi +2 -2
- data/sig/whop_sdk/client.rbs +2 -0
- data/sig/whop_sdk/models/{ai_chat_update_response.rbs → ai_chat.rbs} +6 -6
- data/sig/whop_sdk/models/api_version.rbs +15 -0
- data/sig/whop_sdk/models/authorized_user_list_params.rbs +5 -5
- data/sig/whop_sdk/models/authorized_user_list_response.rbs +17 -0
- data/sig/whop_sdk/models/authorized_user_retrieve_response.rbs +17 -0
- data/sig/whop_sdk/models/bot_token_transaction_types.rbs +15 -0
- data/sig/whop_sdk/models/cancel_options.rbs +26 -0
- data/sig/whop_sdk/models/{company_token_transaction_create_response.rbs → company_token_transaction.rbs} +18 -30
- data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +4 -16
- data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +4 -16
- data/sig/whop_sdk/models/dm_channel.rbs +30 -0
- data/sig/whop_sdk/models/dm_channel_create_params.rbs +36 -0
- data/sig/whop_sdk/models/dm_channel_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/dm_channel_list_params.rbs +46 -0
- data/sig/whop_sdk/models/dm_channel_list_response.rbs +30 -0
- data/sig/whop_sdk/models/dm_channel_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel_update_params.rbs +23 -0
- data/sig/whop_sdk/models/dm_feed_member_notification_preferences.rbs +15 -0
- data/sig/whop_sdk/models/dm_feed_member_statuses.rbs +18 -0
- data/sig/whop_sdk/models/dm_member.rbs +45 -0
- data/sig/whop_sdk/models/dm_member_list_response.rbs +4 -18
- data/sig/whop_sdk/models/dm_member_update_params.rbs +8 -34
- data/sig/whop_sdk/models/file_create_response.rbs +4 -17
- data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -17
- data/sig/whop_sdk/models/{lead_update_response.rbs → lead.rbs} +14 -14
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +8 -90
- data/sig/whop_sdk/models/member_list_params.rbs +5 -5
- data/sig/whop_sdk/models/membership.rbs +4 -27
- data/sig/whop_sdk/models/membership_list_params.rbs +4 -27
- data/sig/whop_sdk/models/membership_list_response.rbs +4 -27
- data/sig/whop_sdk/models/payment.rbs +47 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +47 -0
- data/sig/whop_sdk/models/payout_destination_category.rbs +19 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +4 -25
- data/sig/whop_sdk/models/payout_method_list_response.rbs +4 -25
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +4 -25
- data/sig/whop_sdk/models/upload_status.rbs +16 -0
- data/sig/whop_sdk/models/verification_error_code.rbs +50 -0
- data/sig/whop_sdk/models/verification_retrieve_response.rbs +8 -90
- data/sig/whop_sdk/models/verification_status.rbs +38 -0
- data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +8 -90
- data/sig/whop_sdk/models/webhook.rbs +60 -0
- data/sig/whop_sdk/models/webhook_create_params.rbs +8 -83
- data/sig/whop_sdk/models/webhook_create_response.rbs +12 -150
- data/sig/whop_sdk/models/webhook_event.rbs +66 -0
- data/sig/whop_sdk/models/webhook_list_response.rbs +8 -83
- data/sig/whop_sdk/models/webhook_update_params.rbs +8 -83
- data/sig/whop_sdk/models/{withdrawal_create_response.rbs → withdrawal.rbs} +15 -15
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +4 -241
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +4 -241
- data/sig/whop_sdk/models.rbs +44 -0
- data/sig/whop_sdk/resources/ai_chats.rbs +3 -3
- data/sig/whop_sdk/resources/authorized_users.rbs +1 -1
- data/sig/whop_sdk/resources/company_token_transactions.rbs +3 -3
- data/sig/whop_sdk/resources/dm_channels.rbs +36 -0
- data/sig/whop_sdk/resources/dm_members.rbs +5 -5
- data/sig/whop_sdk/resources/leads.rbs +3 -3
- data/sig/whop_sdk/resources/members.rbs +1 -1
- data/sig/whop_sdk/resources/memberships.rbs +1 -1
- data/sig/whop_sdk/resources/webhooks.rbs +6 -6
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -2
- metadata +77 -47
- data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +0 -89
- data/lib/whop_sdk/models/ai_chat_update_response.rb +0 -89
- data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +0 -180
- data/lib/whop_sdk/models/dm_member_retrieve_response.rb +0 -94
- data/lib/whop_sdk/models/dm_member_update_response.rb +0 -94
- data/lib/whop_sdk/models/lead_retrieve_response.rb +0 -149
- data/lib/whop_sdk/models/lead_update_response.rb +0 -149
- data/lib/whop_sdk/models/webhook_retrieve_response.rb +0 -176
- data/lib/whop_sdk/models/webhook_update_response.rb +0 -176
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +0 -268
- data/rbi/whop_sdk/models/ai_chat_create_response.rbi +0 -128
- data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +0 -128
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +0 -312
- data/rbi/whop_sdk/models/dm_member_create_response.rbi +0 -179
- data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +0 -179
- data/rbi/whop_sdk/models/dm_member_update_response.rbi +0 -179
- data/rbi/whop_sdk/models/lead_create_response.rbi +0 -234
- data/rbi/whop_sdk/models/lead_retrieve_response.rbi +0 -238
- data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +0 -491
- data/rbi/whop_sdk/models/webhook_update_response.rbi +0 -486
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +0 -568
- data/sig/whop_sdk/models/ai_chat_create_response.rbs +0 -65
- data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +0 -65
- data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +0 -115
- data/sig/whop_sdk/models/dm_member_create_response.rbs +0 -71
- data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +0 -71
- data/sig/whop_sdk/models/dm_member_update_response.rbs +0 -71
- data/sig/whop_sdk/models/lead_create_response.rbs +0 -104
- data/sig/whop_sdk/models/lead_retrieve_response.rbs +0 -104
- data/sig/whop_sdk/models/webhook_retrieve_response.rbs +0 -198
- data/sig/whop_sdk/models/webhook_update_response.rbs +0 -198
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +0 -240
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmChannels#list
|
|
6
|
+
class DmChannelListResponse < 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 created_at
|
|
14
|
+
# The time the entity was created (in milliseconds since Unix epoch)
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :created_at, String
|
|
18
|
+
|
|
19
|
+
# @!attribute last_message_at
|
|
20
|
+
# When the last message was sent
|
|
21
|
+
#
|
|
22
|
+
# @return [Time, nil]
|
|
23
|
+
required :last_message_at, Time, nil?: true
|
|
24
|
+
|
|
25
|
+
# @!attribute name
|
|
26
|
+
# The custom name of the DM channel, if any
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :name, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!method initialize(id:, created_at:, last_message_at:, name:)
|
|
32
|
+
# Represents a DM channel
|
|
33
|
+
#
|
|
34
|
+
# @param id [String] The unique identifier for the entity
|
|
35
|
+
#
|
|
36
|
+
# @param created_at [String] The time the entity was created (in milliseconds since Unix epoch)
|
|
37
|
+
#
|
|
38
|
+
# @param last_message_at [Time, nil] When the last message was sent
|
|
39
|
+
#
|
|
40
|
+
# @param name [String, nil] The custom name of the DM channel, if any
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmChannels#retrieve
|
|
6
|
+
class DmChannelRetrieveParams < 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,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmChannels#update
|
|
6
|
+
class DmChannelUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute custom_name
|
|
11
|
+
# The custom name for the DM channel
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :custom_name, String, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!method initialize(custom_name: nil, request_options: {})
|
|
17
|
+
# @param custom_name [String, nil] The custom name for the DM channel
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The notification preferences for a DMs feed member
|
|
6
|
+
module DmFeedMemberNotificationPreferences
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
ALL = :all
|
|
10
|
+
MENTIONS = :mentions
|
|
11
|
+
NONE = :none
|
|
12
|
+
|
|
13
|
+
# @!method self.values
|
|
14
|
+
# @return [Array<Symbol>]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The statuses of a DMs feed member
|
|
6
|
+
module DmFeedMemberStatuses
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
REQUESTED = :requested
|
|
10
|
+
ACCEPTED = :accepted
|
|
11
|
+
HIDDEN = :hidden
|
|
12
|
+
CLOSED = :closed
|
|
13
|
+
ARCHIVED = :archived
|
|
14
|
+
|
|
15
|
+
# @!method self.values
|
|
16
|
+
# @return [Array<Symbol>]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Models
|
|
5
5
|
# @see WhopSDK::Resources::DmMembers#create
|
|
6
|
-
class
|
|
6
|
+
class DmMember < WhopSDK::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
8
|
# The unique identifier for the entity
|
|
9
9
|
#
|
|
@@ -26,15 +26,14 @@ module WhopSDK
|
|
|
26
26
|
# @!attribute notification_preference
|
|
27
27
|
# The notification preference for this member (all, mentions, none)
|
|
28
28
|
#
|
|
29
|
-
# @return [Symbol, WhopSDK::Models::
|
|
30
|
-
required :notification_preference,
|
|
31
|
-
enum: -> { WhopSDK::Models::DmMemberCreateResponse::NotificationPreference }
|
|
29
|
+
# @return [Symbol, WhopSDK::Models::DmFeedMemberNotificationPreferences]
|
|
30
|
+
required :notification_preference, enum: -> { WhopSDK::DmFeedMemberNotificationPreferences }
|
|
32
31
|
|
|
33
32
|
# @!attribute status
|
|
34
33
|
# The status of the membership (requested, accepted, rejected)
|
|
35
34
|
#
|
|
36
|
-
# @return [Symbol, WhopSDK::Models::
|
|
37
|
-
required :status, enum: -> { WhopSDK::
|
|
35
|
+
# @return [Symbol, WhopSDK::Models::DmFeedMemberStatuses]
|
|
36
|
+
required :status, enum: -> { WhopSDK::DmFeedMemberStatuses }
|
|
38
37
|
|
|
39
38
|
# @!attribute user_id
|
|
40
39
|
# The ID of the user who is a member of the channel
|
|
@@ -44,7 +43,7 @@ module WhopSDK
|
|
|
44
43
|
|
|
45
44
|
# @!method initialize(id:, channel_id:, last_viewed_at:, notification_preference:, status:, user_id:)
|
|
46
45
|
# Some parameter documentations has been truncated, see
|
|
47
|
-
# {WhopSDK::Models::
|
|
46
|
+
# {WhopSDK::Models::DmMember} for more details.
|
|
48
47
|
#
|
|
49
48
|
# Represents a member of a DM channel
|
|
50
49
|
#
|
|
@@ -54,41 +53,11 @@ module WhopSDK
|
|
|
54
53
|
#
|
|
55
54
|
# @param last_viewed_at [String, nil] Timestamp when the member last viewed the channel (in milliseconds since Unix ep
|
|
56
55
|
#
|
|
57
|
-
# @param notification_preference [Symbol, WhopSDK::Models::
|
|
56
|
+
# @param notification_preference [Symbol, WhopSDK::Models::DmFeedMemberNotificationPreferences] The notification preference for this member (all, mentions, none)
|
|
58
57
|
#
|
|
59
|
-
# @param status [Symbol, WhopSDK::Models::
|
|
58
|
+
# @param status [Symbol, WhopSDK::Models::DmFeedMemberStatuses] The status of the membership (requested, accepted, rejected)
|
|
60
59
|
#
|
|
61
60
|
# @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
61
|
end
|
|
93
62
|
end
|
|
94
63
|
end
|
|
@@ -26,8 +26,8 @@ module WhopSDK
|
|
|
26
26
|
# @!attribute status
|
|
27
27
|
# The status of the membership (requested, accepted, rejected)
|
|
28
28
|
#
|
|
29
|
-
# @return [Symbol, WhopSDK::Models::
|
|
30
|
-
required :status, enum: -> { WhopSDK::
|
|
29
|
+
# @return [Symbol, WhopSDK::Models::DmFeedMemberStatuses]
|
|
30
|
+
required :status, enum: -> { WhopSDK::DmFeedMemberStatuses }
|
|
31
31
|
|
|
32
32
|
# @!attribute user_id
|
|
33
33
|
# The ID of the user who is a member of the channel
|
|
@@ -47,25 +47,9 @@ module WhopSDK
|
|
|
47
47
|
#
|
|
48
48
|
# @param last_viewed_at [String, nil] Timestamp when the member last viewed the channel (in milliseconds since Unix ep
|
|
49
49
|
#
|
|
50
|
-
# @param status [Symbol, WhopSDK::Models::
|
|
50
|
+
# @param status [Symbol, WhopSDK::Models::DmFeedMemberStatuses] The status of the membership (requested, accepted, rejected)
|
|
51
51
|
#
|
|
52
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
53
|
end
|
|
70
54
|
end
|
|
71
55
|
end
|
|
@@ -10,49 +10,21 @@ module WhopSDK
|
|
|
10
10
|
# @!attribute notification_preference
|
|
11
11
|
# The notification preferences for a DMs feed member
|
|
12
12
|
#
|
|
13
|
-
# @return [Symbol, WhopSDK::Models::
|
|
14
|
-
optional :notification_preference,
|
|
15
|
-
enum: -> { WhopSDK::DmMemberUpdateParams::NotificationPreference },
|
|
16
|
-
nil?: true
|
|
13
|
+
# @return [Symbol, WhopSDK::Models::DmFeedMemberNotificationPreferences, nil]
|
|
14
|
+
optional :notification_preference, enum: -> { WhopSDK::DmFeedMemberNotificationPreferences }, nil?: true
|
|
17
15
|
|
|
18
16
|
# @!attribute status
|
|
19
17
|
# The statuses of a DMs feed member
|
|
20
18
|
#
|
|
21
|
-
# @return [Symbol, WhopSDK::Models::
|
|
22
|
-
optional :status, enum: -> { WhopSDK::
|
|
19
|
+
# @return [Symbol, WhopSDK::Models::DmFeedMemberStatuses, nil]
|
|
20
|
+
optional :status, enum: -> { WhopSDK::DmFeedMemberStatuses }, nil?: true
|
|
23
21
|
|
|
24
22
|
# @!method initialize(notification_preference: nil, status: nil, request_options: {})
|
|
25
|
-
# @param notification_preference [Symbol, WhopSDK::Models::
|
|
23
|
+
# @param notification_preference [Symbol, WhopSDK::Models::DmFeedMemberNotificationPreferences, nil] The notification preferences for a DMs feed member
|
|
26
24
|
#
|
|
27
|
-
# @param status [Symbol, WhopSDK::Models::
|
|
25
|
+
# @param status [Symbol, WhopSDK::Models::DmFeedMemberStatuses, nil] The statuses of a DMs feed member
|
|
28
26
|
#
|
|
29
27
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
30
|
-
|
|
31
|
-
# The notification preferences for a DMs feed member
|
|
32
|
-
module NotificationPreference
|
|
33
|
-
extend WhopSDK::Internal::Type::Enum
|
|
34
|
-
|
|
35
|
-
ALL = :all
|
|
36
|
-
MENTIONS = :mentions
|
|
37
|
-
NONE = :none
|
|
38
|
-
|
|
39
|
-
# @!method self.values
|
|
40
|
-
# @return [Array<Symbol>]
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
# The statuses of a DMs feed member
|
|
44
|
-
module Status
|
|
45
|
-
extend WhopSDK::Internal::Type::Enum
|
|
46
|
-
|
|
47
|
-
REQUESTED = :requested
|
|
48
|
-
ACCEPTED = :accepted
|
|
49
|
-
HIDDEN = :hidden
|
|
50
|
-
CLOSED = :closed
|
|
51
|
-
ARCHIVED = :archived
|
|
52
|
-
|
|
53
|
-
# @!method self.values
|
|
54
|
-
# @return [Array<Symbol>]
|
|
55
|
-
end
|
|
56
28
|
end
|
|
57
29
|
end
|
|
58
30
|
end
|
|
@@ -37,8 +37,8 @@ module WhopSDK
|
|
|
37
37
|
# @!attribute upload_status
|
|
38
38
|
# The upload status of the file
|
|
39
39
|
#
|
|
40
|
-
# @return [Symbol, WhopSDK::Models::
|
|
41
|
-
required :upload_status, enum: -> { WhopSDK::
|
|
40
|
+
# @return [Symbol, WhopSDK::Models::UploadStatus]
|
|
41
|
+
required :upload_status, enum: -> { WhopSDK::UploadStatus }
|
|
42
42
|
|
|
43
43
|
# @!attribute upload_url
|
|
44
44
|
# The presigned URL to upload the file to (only on create)
|
|
@@ -65,26 +65,11 @@ module WhopSDK
|
|
|
65
65
|
#
|
|
66
66
|
# @param upload_headers [Hash{Symbol=>Object}, nil] Headers to include in the upload request (only on create)
|
|
67
67
|
#
|
|
68
|
-
# @param upload_status [Symbol, WhopSDK::Models::
|
|
68
|
+
# @param upload_status [Symbol, WhopSDK::Models::UploadStatus] The upload status of the file
|
|
69
69
|
#
|
|
70
70
|
# @param upload_url [String, nil] The presigned URL to upload the file to (only on create)
|
|
71
71
|
#
|
|
72
72
|
# @param url [String, nil] The URL to access the file
|
|
73
|
-
|
|
74
|
-
# The upload status of the file
|
|
75
|
-
#
|
|
76
|
-
# @see WhopSDK::Models::FileCreateResponse#upload_status
|
|
77
|
-
module UploadStatus
|
|
78
|
-
extend WhopSDK::Internal::Type::Enum
|
|
79
|
-
|
|
80
|
-
PENDING = :pending
|
|
81
|
-
PROCESSING = :processing
|
|
82
|
-
READY = :ready
|
|
83
|
-
FAILED = :failed
|
|
84
|
-
|
|
85
|
-
# @!method self.values
|
|
86
|
-
# @return [Array<Symbol>]
|
|
87
|
-
end
|
|
88
73
|
end
|
|
89
74
|
end
|
|
90
75
|
end
|
|
@@ -31,8 +31,8 @@ module WhopSDK
|
|
|
31
31
|
# @!attribute upload_status
|
|
32
32
|
# The upload status of the file
|
|
33
33
|
#
|
|
34
|
-
# @return [Symbol, WhopSDK::Models::
|
|
35
|
-
required :upload_status, enum: -> { WhopSDK::
|
|
34
|
+
# @return [Symbol, WhopSDK::Models::UploadStatus]
|
|
35
|
+
required :upload_status, enum: -> { WhopSDK::UploadStatus }
|
|
36
36
|
|
|
37
37
|
# @!attribute url
|
|
38
38
|
# The URL to access the file
|
|
@@ -51,24 +51,9 @@ module WhopSDK
|
|
|
51
51
|
#
|
|
52
52
|
# @param size [String, nil] The size of the file in bytes
|
|
53
53
|
#
|
|
54
|
-
# @param upload_status [Symbol, WhopSDK::Models::
|
|
54
|
+
# @param upload_status [Symbol, WhopSDK::Models::UploadStatus] The upload status of the file
|
|
55
55
|
#
|
|
56
56
|
# @param url [String, nil] The URL to access the file
|
|
57
|
-
|
|
58
|
-
# The upload status of the file
|
|
59
|
-
#
|
|
60
|
-
# @see WhopSDK::Models::FileRetrieveResponse#upload_status
|
|
61
|
-
module UploadStatus
|
|
62
|
-
extend WhopSDK::Internal::Type::Enum
|
|
63
|
-
|
|
64
|
-
PENDING = :pending
|
|
65
|
-
PROCESSING = :processing
|
|
66
|
-
READY = :ready
|
|
67
|
-
FAILED = :failed
|
|
68
|
-
|
|
69
|
-
# @!method self.values
|
|
70
|
-
# @return [Array<Symbol>]
|
|
71
|
-
end
|
|
72
57
|
end
|
|
73
58
|
end
|
|
74
59
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Models
|
|
5
5
|
# @see WhopSDK::Resources::Leads#create
|
|
6
|
-
class
|
|
6
|
+
class Lead < WhopSDK::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
8
|
# The ID of the lead.
|
|
9
9
|
#
|
|
@@ -19,8 +19,8 @@ module WhopSDK
|
|
|
19
19
|
# @!attribute member
|
|
20
20
|
# The converted member, if any.
|
|
21
21
|
#
|
|
22
|
-
# @return [WhopSDK::Models::
|
|
23
|
-
required :member, -> { WhopSDK::
|
|
22
|
+
# @return [WhopSDK::Models::Lead::Member, nil]
|
|
23
|
+
required :member, -> { WhopSDK::Lead::Member }, nil?: true
|
|
24
24
|
|
|
25
25
|
# @!attribute metadata
|
|
26
26
|
# Custom metadata for the lead.
|
|
@@ -31,8 +31,8 @@ module WhopSDK
|
|
|
31
31
|
# @!attribute product
|
|
32
32
|
# The access pass the lead is interested in, if available.
|
|
33
33
|
#
|
|
34
|
-
# @return [WhopSDK::Models::
|
|
35
|
-
required :product, -> { WhopSDK::
|
|
34
|
+
# @return [WhopSDK::Models::Lead::Product, nil]
|
|
35
|
+
required :product, -> { WhopSDK::Lead::Product }, nil?: true
|
|
36
36
|
|
|
37
37
|
# @!attribute referrer
|
|
38
38
|
# The referrer URL that brought this lead.
|
|
@@ -49,8 +49,8 @@ module WhopSDK
|
|
|
49
49
|
# @!attribute user
|
|
50
50
|
# The user who is the lead.
|
|
51
51
|
#
|
|
52
|
-
# @return [WhopSDK::Models::
|
|
53
|
-
required :user, -> { WhopSDK::
|
|
52
|
+
# @return [WhopSDK::Models::Lead::User]
|
|
53
|
+
required :user, -> { WhopSDK::Lead::User }
|
|
54
54
|
|
|
55
55
|
# @!method initialize(id:, created_at:, member:, metadata:, product:, referrer:, updated_at:, user:)
|
|
56
56
|
# An object representing a lead (someone who is interested in a whop).
|
|
@@ -59,19 +59,19 @@ module WhopSDK
|
|
|
59
59
|
#
|
|
60
60
|
# @param created_at [Time] The timestamp of when the lead was created.
|
|
61
61
|
#
|
|
62
|
-
# @param member [WhopSDK::Models::
|
|
62
|
+
# @param member [WhopSDK::Models::Lead::Member, nil] The converted member, if any.
|
|
63
63
|
#
|
|
64
64
|
# @param metadata [Hash{Symbol=>Object}, nil] Custom metadata for the lead.
|
|
65
65
|
#
|
|
66
|
-
# @param product [WhopSDK::Models::
|
|
66
|
+
# @param product [WhopSDK::Models::Lead::Product, nil] The access pass the lead is interested in, if available.
|
|
67
67
|
#
|
|
68
68
|
# @param referrer [String, nil] The referrer URL that brought this lead.
|
|
69
69
|
#
|
|
70
70
|
# @param updated_at [Time] The timestamp of when the lead was last updated.
|
|
71
71
|
#
|
|
72
|
-
# @param user [WhopSDK::Models::
|
|
72
|
+
# @param user [WhopSDK::Models::Lead::User] The user who is the lead.
|
|
73
73
|
|
|
74
|
-
# @see WhopSDK::Models::
|
|
74
|
+
# @see WhopSDK::Models::Lead#member
|
|
75
75
|
class Member < WhopSDK::Internal::Type::BaseModel
|
|
76
76
|
# @!attribute id
|
|
77
77
|
# The ID of the member
|
|
@@ -85,7 +85,7 @@ module WhopSDK
|
|
|
85
85
|
# @param id [String] The ID of the member
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
# @see WhopSDK::Models::
|
|
88
|
+
# @see WhopSDK::Models::Lead#product
|
|
89
89
|
class Product < WhopSDK::Internal::Type::BaseModel
|
|
90
90
|
# @!attribute id
|
|
91
91
|
# The internal ID of the public product.
|
|
@@ -107,7 +107,7 @@ module WhopSDK
|
|
|
107
107
|
# @param title [String] The title of the product. Use for Whop 4.0.
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
-
# @see WhopSDK::Models::
|
|
110
|
+
# @see WhopSDK::Models::Lead#user
|
|
111
111
|
class User < WhopSDK::Internal::Type::BaseModel
|
|
112
112
|
# @!attribute id
|
|
113
113
|
# The internal ID of the user.
|
|
@@ -400,10 +400,8 @@ module WhopSDK
|
|
|
400
400
|
# @!attribute last_error_code
|
|
401
401
|
# An error code for a verification attempt.
|
|
402
402
|
#
|
|
403
|
-
# @return [Symbol, WhopSDK::Models::
|
|
404
|
-
required :last_error_code,
|
|
405
|
-
enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::LastErrorCode },
|
|
406
|
-
nil?: true
|
|
403
|
+
# @return [Symbol, WhopSDK::Models::VerificationErrorCode, nil]
|
|
404
|
+
required :last_error_code, enum: -> { WhopSDK::VerificationErrorCode }, nil?: true
|
|
407
405
|
|
|
408
406
|
# @!attribute last_error_reason
|
|
409
407
|
# The last error reason that occurred during the verification.
|
|
@@ -414,74 +412,19 @@ module WhopSDK
|
|
|
414
412
|
# @!attribute status
|
|
415
413
|
# The status of the verification.
|
|
416
414
|
#
|
|
417
|
-
# @return [Symbol, WhopSDK::Models::
|
|
418
|
-
required :status,
|
|
419
|
-
enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::Status }
|
|
415
|
+
# @return [Symbol, WhopSDK::Models::VerificationStatus]
|
|
416
|
+
required :status, enum: -> { WhopSDK::VerificationStatus }
|
|
420
417
|
|
|
421
418
|
# @!method initialize(id:, last_error_code:, last_error_reason:, status:)
|
|
422
419
|
# The latest verification for the connected account.
|
|
423
420
|
#
|
|
424
421
|
# @param id [String] A unique identifier for the verification.
|
|
425
422
|
#
|
|
426
|
-
# @param last_error_code [Symbol, WhopSDK::Models::
|
|
423
|
+
# @param last_error_code [Symbol, WhopSDK::Models::VerificationErrorCode, nil] An error code for a verification attempt.
|
|
427
424
|
#
|
|
428
425
|
# @param last_error_reason [String, nil] The last error reason that occurred during the verification.
|
|
429
426
|
#
|
|
430
|
-
# @param status [Symbol, WhopSDK::Models::
|
|
431
|
-
|
|
432
|
-
# An error code for a verification attempt.
|
|
433
|
-
#
|
|
434
|
-
# @see WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification#last_error_code
|
|
435
|
-
module LastErrorCode
|
|
436
|
-
extend WhopSDK::Internal::Type::Enum
|
|
437
|
-
|
|
438
|
-
ABANDONED = :abandoned
|
|
439
|
-
CONSENT_DECLINED = :consent_declined
|
|
440
|
-
COUNTRY_NOT_SUPPORTED = :country_not_supported
|
|
441
|
-
DEVICE_NOT_SUPPORTED = :device_not_supported
|
|
442
|
-
DOCUMENT_EXPIRED = :document_expired
|
|
443
|
-
DOCUMENT_TYPE_NOT_SUPPORTED = :document_type_not_supported
|
|
444
|
-
DOCUMENT_UNVERIFIED_OTHER = :document_unverified_other
|
|
445
|
-
EMAIL_UNVERIFIED_OTHER = :email_unverified_other
|
|
446
|
-
EMAIL_VERIFICATION_DECLINED = :email_verification_declined
|
|
447
|
-
ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA = :id_number_insufficient_document_data
|
|
448
|
-
ID_NUMBER_MISMATCH = :id_number_mismatch
|
|
449
|
-
ID_NUMBER_UNVERIFIED_OTHER = :id_number_unverified_other
|
|
450
|
-
PHONE_UNVERIFIED_OTHER = :phone_unverified_other
|
|
451
|
-
PHONE_VERIFICATION_DECLINED = :phone_verification_declined
|
|
452
|
-
SELFIE_DOCUMENT_MISSING_PHOTO = :selfie_document_missing_photo
|
|
453
|
-
SELFIE_FACE_MISMATCH = :selfie_face_mismatch
|
|
454
|
-
SELFIE_MANIPULATED = :selfie_manipulated
|
|
455
|
-
SELFIE_UNVERIFIED_OTHER = :selfie_unverified_other
|
|
456
|
-
UNDER_SUPPORTED_AGE = :under_supported_age
|
|
457
|
-
|
|
458
|
-
# @!method self.values
|
|
459
|
-
# @return [Array<Symbol>]
|
|
460
|
-
end
|
|
461
|
-
|
|
462
|
-
# The status of the verification.
|
|
463
|
-
#
|
|
464
|
-
# @see WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification#status
|
|
465
|
-
module Status
|
|
466
|
-
extend WhopSDK::Internal::Type::Enum
|
|
467
|
-
|
|
468
|
-
REQUIRES_INPUT = :requires_input
|
|
469
|
-
PROCESSING = :processing
|
|
470
|
-
VERIFIED = :verified
|
|
471
|
-
CANCELED = :canceled
|
|
472
|
-
CREATED = :created
|
|
473
|
-
STARTED = :started
|
|
474
|
-
SUBMITTED = :submitted
|
|
475
|
-
APPROVED = :approved
|
|
476
|
-
DECLINED = :declined
|
|
477
|
-
RESUBMISSION_REQUESTED = :resubmission_requested
|
|
478
|
-
EXPIRED = :expired
|
|
479
|
-
ABANDONED = :abandoned
|
|
480
|
-
REVIEW = :review
|
|
481
|
-
|
|
482
|
-
# @!method self.values
|
|
483
|
-
# @return [Array<Symbol>]
|
|
484
|
-
end
|
|
427
|
+
# @param status [Symbol, WhopSDK::Models::VerificationStatus] The status of the verification.
|
|
485
428
|
end
|
|
486
429
|
end
|
|
487
430
|
end
|
|
@@ -7,12 +7,6 @@ module WhopSDK
|
|
|
7
7
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!attribute company_id
|
|
11
|
-
# The ID of the company to list members for
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :company_id, String
|
|
15
|
-
|
|
16
10
|
# @!attribute access_level
|
|
17
11
|
# The access level a given user (or company) has to a product or company.
|
|
18
12
|
#
|
|
@@ -31,6 +25,12 @@ module WhopSDK
|
|
|
31
25
|
# @return [String, nil]
|
|
32
26
|
optional :before, String, nil?: true
|
|
33
27
|
|
|
28
|
+
# @!attribute company_id
|
|
29
|
+
# The ID of the company to list members for
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :company_id, String, nil?: true
|
|
33
|
+
|
|
34
34
|
# @!attribute created_after
|
|
35
35
|
# The minimum creation date to filter by
|
|
36
36
|
#
|
|
@@ -112,18 +112,18 @@ module WhopSDK
|
|
|
112
112
|
# @return [Array<String>, nil]
|
|
113
113
|
optional :user_ids, WhopSDK::Internal::Type::ArrayOf[String], nil?: true
|
|
114
114
|
|
|
115
|
-
# @!method initialize(
|
|
115
|
+
# @!method initialize(access_level: nil, after: nil, before: nil, company_id: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, most_recent_actions: nil, order: nil, plan_ids: nil, product_ids: nil, promo_code_ids: nil, query: nil, statuses: nil, user_ids: nil, request_options: {})
|
|
116
116
|
# Some parameter documentations has been truncated, see
|
|
117
117
|
# {WhopSDK::Models::MemberListParams} for more details.
|
|
118
118
|
#
|
|
119
|
-
# @param company_id [String] The ID of the company to list members for
|
|
120
|
-
#
|
|
121
119
|
# @param access_level [Symbol, WhopSDK::Models::AccessLevel, nil] The access level a given user (or company) has to a product or company.
|
|
122
120
|
#
|
|
123
121
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
124
122
|
#
|
|
125
123
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
126
124
|
#
|
|
125
|
+
# @param company_id [String, nil] The ID of the company to list members for
|
|
126
|
+
#
|
|
127
127
|
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
128
128
|
#
|
|
129
129
|
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
@@ -20,8 +20,8 @@ module WhopSDK
|
|
|
20
20
|
# The different reasons a user can choose for why they are canceling their
|
|
21
21
|
# membership.
|
|
22
22
|
#
|
|
23
|
-
# @return [Symbol, WhopSDK::Models::
|
|
24
|
-
required :cancel_option, enum: -> { WhopSDK::
|
|
23
|
+
# @return [Symbol, WhopSDK::Models::CancelOptions, nil]
|
|
24
|
+
required :cancel_option, enum: -> { WhopSDK::CancelOptions }, nil?: true
|
|
25
25
|
|
|
26
26
|
# @!attribute canceled_at
|
|
27
27
|
# The epoch timestamp of when the customer initiated a cancellation.
|
|
@@ -152,7 +152,7 @@ module WhopSDK
|
|
|
152
152
|
#
|
|
153
153
|
# @param cancel_at_period_end [Boolean] Whether this Membership is set to cancel at the end of the current billing cycle
|
|
154
154
|
#
|
|
155
|
-
# @param cancel_option [Symbol, WhopSDK::Models::
|
|
155
|
+
# @param cancel_option [Symbol, WhopSDK::Models::CancelOptions, nil] The different reasons a user can choose for why they are canceling their members
|
|
156
156
|
#
|
|
157
157
|
# @param canceled_at [Time, nil] The epoch timestamp of when the customer initiated a cancellation.
|
|
158
158
|
#
|
|
@@ -192,25 +192,6 @@ module WhopSDK
|
|
|
192
192
|
#
|
|
193
193
|
# @param user [WhopSDK::Models::Membership::User, nil] The user this membership belongs to
|
|
194
194
|
|
|
195
|
-
# The different reasons a user can choose for why they are canceling their
|
|
196
|
-
# membership.
|
|
197
|
-
#
|
|
198
|
-
# @see WhopSDK::Models::Membership#cancel_option
|
|
199
|
-
module CancelOption
|
|
200
|
-
extend WhopSDK::Internal::Type::Enum
|
|
201
|
-
|
|
202
|
-
TOO_EXPENSIVE = :too_expensive
|
|
203
|
-
SWITCHING = :switching
|
|
204
|
-
MISSING_FEATURES = :missing_features
|
|
205
|
-
TECHNICAL_ISSUES = :technical_issues
|
|
206
|
-
BAD_EXPERIENCE = :bad_experience
|
|
207
|
-
OTHER = :other
|
|
208
|
-
TESTING = :testing
|
|
209
|
-
|
|
210
|
-
# @!method self.values
|
|
211
|
-
# @return [Array<Symbol>]
|
|
212
|
-
end
|
|
213
|
-
|
|
214
195
|
# @see WhopSDK::Models::Membership#company
|
|
215
196
|
class Company < WhopSDK::Internal::Type::BaseModel
|
|
216
197
|
# @!attribute id
|