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
|
@@ -22,9 +22,9 @@ module WhopSDK
|
|
|
22
22
|
# @!attribute cancel_options
|
|
23
23
|
# The cancel options to filter the memberships by
|
|
24
24
|
#
|
|
25
|
-
# @return [Array<Symbol, WhopSDK::Models::
|
|
25
|
+
# @return [Array<Symbol, WhopSDK::Models::CancelOptions>, nil]
|
|
26
26
|
optional :cancel_options,
|
|
27
|
-
-> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::
|
|
27
|
+
-> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::CancelOptions] },
|
|
28
28
|
nil?: true
|
|
29
29
|
|
|
30
30
|
# @!attribute company_id
|
|
@@ -104,7 +104,7 @@ module WhopSDK
|
|
|
104
104
|
#
|
|
105
105
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
106
106
|
#
|
|
107
|
-
# @param cancel_options [Array<Symbol, WhopSDK::Models::
|
|
107
|
+
# @param cancel_options [Array<Symbol, WhopSDK::Models::CancelOptions>, nil] The cancel options to filter the memberships by
|
|
108
108
|
#
|
|
109
109
|
# @param company_id [String, nil] The ID of the company to list memberships for
|
|
110
110
|
#
|
|
@@ -132,23 +132,6 @@ module WhopSDK
|
|
|
132
132
|
#
|
|
133
133
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
134
134
|
|
|
135
|
-
# The different reasons a user can choose for why they are canceling their
|
|
136
|
-
# membership.
|
|
137
|
-
module CancelOption
|
|
138
|
-
extend WhopSDK::Internal::Type::Enum
|
|
139
|
-
|
|
140
|
-
TOO_EXPENSIVE = :too_expensive
|
|
141
|
-
SWITCHING = :switching
|
|
142
|
-
MISSING_FEATURES = :missing_features
|
|
143
|
-
TECHNICAL_ISSUES = :technical_issues
|
|
144
|
-
BAD_EXPERIENCE = :bad_experience
|
|
145
|
-
OTHER = :other
|
|
146
|
-
TESTING = :testing
|
|
147
|
-
|
|
148
|
-
# @!method self.values
|
|
149
|
-
# @return [Array<Symbol>]
|
|
150
|
-
end
|
|
151
|
-
|
|
152
135
|
# Which columns can be used to sort.
|
|
153
136
|
module Order
|
|
154
137
|
extend WhopSDK::Internal::Type::Enum
|
|
@@ -21,8 +21,8 @@ module WhopSDK
|
|
|
21
21
|
# The different reasons a user can choose for why they are canceling their
|
|
22
22
|
# membership.
|
|
23
23
|
#
|
|
24
|
-
# @return [Symbol, WhopSDK::Models::
|
|
25
|
-
required :cancel_option, enum: -> { WhopSDK::
|
|
24
|
+
# @return [Symbol, WhopSDK::Models::CancelOptions, nil]
|
|
25
|
+
required :cancel_option, enum: -> { WhopSDK::CancelOptions }, nil?: true
|
|
26
26
|
|
|
27
27
|
# @!attribute canceled_at
|
|
28
28
|
# The epoch timestamp of when the customer initiated a cancellation.
|
|
@@ -146,7 +146,7 @@ module WhopSDK
|
|
|
146
146
|
#
|
|
147
147
|
# @param cancel_at_period_end [Boolean] Whether this Membership is set to cancel at the end of the current billing cycle
|
|
148
148
|
#
|
|
149
|
-
# @param cancel_option [Symbol, WhopSDK::Models::
|
|
149
|
+
# @param cancel_option [Symbol, WhopSDK::Models::CancelOptions, nil] The different reasons a user can choose for why they are canceling their members
|
|
150
150
|
#
|
|
151
151
|
# @param canceled_at [Time, nil] The epoch timestamp of when the customer initiated a cancellation.
|
|
152
152
|
#
|
|
@@ -184,25 +184,6 @@ module WhopSDK
|
|
|
184
184
|
#
|
|
185
185
|
# @param user [WhopSDK::Models::MembershipListResponse::User, nil] The user this membership belongs to
|
|
186
186
|
|
|
187
|
-
# The different reasons a user can choose for why they are canceling their
|
|
188
|
-
# membership.
|
|
189
|
-
#
|
|
190
|
-
# @see WhopSDK::Models::MembershipListResponse#cancel_option
|
|
191
|
-
module CancelOption
|
|
192
|
-
extend WhopSDK::Internal::Type::Enum
|
|
193
|
-
|
|
194
|
-
TOO_EXPENSIVE = :too_expensive
|
|
195
|
-
SWITCHING = :switching
|
|
196
|
-
MISSING_FEATURES = :missing_features
|
|
197
|
-
TECHNICAL_ISSUES = :technical_issues
|
|
198
|
-
BAD_EXPERIENCE = :bad_experience
|
|
199
|
-
OTHER = :other
|
|
200
|
-
TESTING = :testing
|
|
201
|
-
|
|
202
|
-
# @!method self.values
|
|
203
|
-
# @return [Array<Symbol>]
|
|
204
|
-
end
|
|
205
|
-
|
|
206
187
|
# @see WhopSDK::Models::MembershipListResponse#company
|
|
207
188
|
class Company < WhopSDK::Internal::Type::BaseModel
|
|
208
189
|
# @!attribute id
|
|
@@ -15,6 +15,12 @@ module WhopSDK
|
|
|
15
15
|
# @return [Float]
|
|
16
16
|
required :amount_after_fees, Float
|
|
17
17
|
|
|
18
|
+
# @!attribute application_fee
|
|
19
|
+
# The application fee charged on this payment.
|
|
20
|
+
#
|
|
21
|
+
# @return [WhopSDK::Models::Payment::ApplicationFee, nil]
|
|
22
|
+
required :application_fee, -> { WhopSDK::Payment::ApplicationFee }, nil?: true
|
|
23
|
+
|
|
18
24
|
# @!attribute auto_refunded
|
|
19
25
|
# Whether this payment was auto refunded or not
|
|
20
26
|
#
|
|
@@ -218,7 +224,7 @@ module WhopSDK
|
|
|
218
224
|
# @return [Boolean]
|
|
219
225
|
required :voidable, WhopSDK::Internal::Type::Boolean
|
|
220
226
|
|
|
221
|
-
# @!method initialize(id:, amount_after_fees:, auto_refunded:, billing_address:, billing_reason:, card_brand:, card_last4:, company:, created_at:, currency:, dispute_alerted_at:, failure_message:, last_payment_attempt:, member:, membership:, metadata:, next_payment_attempt:, paid_at:, payment_method:, payment_method_type:, payments_failed:, plan:, product:, promo_code:, refundable:, refunded_amount:, refunded_at:, retryable:, status:, substatus:, subtotal:, total:, usd_total:, user:, voidable:)
|
|
227
|
+
# @!method initialize(id:, amount_after_fees:, application_fee:, auto_refunded:, billing_address:, billing_reason:, card_brand:, card_last4:, company:, created_at:, currency:, dispute_alerted_at:, failure_message:, last_payment_attempt:, member:, membership:, metadata:, next_payment_attempt:, paid_at:, payment_method:, payment_method_type:, payments_failed:, plan:, product:, promo_code:, refundable:, refunded_amount:, refunded_at:, retryable:, status:, substatus:, subtotal:, total:, usd_total:, user:, voidable:)
|
|
222
228
|
# Some parameter documentations has been truncated, see {WhopSDK::Models::Payment}
|
|
223
229
|
# for more details.
|
|
224
230
|
#
|
|
@@ -228,6 +234,8 @@ module WhopSDK
|
|
|
228
234
|
#
|
|
229
235
|
# @param amount_after_fees [Float] How much the payment is for after fees
|
|
230
236
|
#
|
|
237
|
+
# @param application_fee [WhopSDK::Models::Payment::ApplicationFee, nil] The application fee charged on this payment.
|
|
238
|
+
#
|
|
231
239
|
# @param auto_refunded [Boolean] Whether this payment was auto refunded or not
|
|
232
240
|
#
|
|
233
241
|
# @param billing_address [WhopSDK::Models::Payment::BillingAddress, nil] The address of the user who made the payment.
|
|
@@ -294,6 +302,60 @@ module WhopSDK
|
|
|
294
302
|
#
|
|
295
303
|
# @param voidable [Boolean] True when the payment is tied to a membership in `past_due`, the payment status
|
|
296
304
|
|
|
305
|
+
# @see WhopSDK::Models::Payment#application_fee
|
|
306
|
+
class ApplicationFee < WhopSDK::Internal::Type::BaseModel
|
|
307
|
+
# @!attribute id
|
|
308
|
+
# The unique identifier for the application fee.
|
|
309
|
+
#
|
|
310
|
+
# @return [String]
|
|
311
|
+
required :id, String
|
|
312
|
+
|
|
313
|
+
# @!attribute amount
|
|
314
|
+
# The application fee amount.
|
|
315
|
+
#
|
|
316
|
+
# @return [Float]
|
|
317
|
+
required :amount, Float
|
|
318
|
+
|
|
319
|
+
# @!attribute amount_captured
|
|
320
|
+
# The amount of the application fee that has been captured.
|
|
321
|
+
#
|
|
322
|
+
# @return [Float]
|
|
323
|
+
required :amount_captured, Float
|
|
324
|
+
|
|
325
|
+
# @!attribute amount_refunded
|
|
326
|
+
# The amount of the application fee that has been refunded.
|
|
327
|
+
#
|
|
328
|
+
# @return [Float]
|
|
329
|
+
required :amount_refunded, Float
|
|
330
|
+
|
|
331
|
+
# @!attribute created_at
|
|
332
|
+
# When the application fee was created.
|
|
333
|
+
#
|
|
334
|
+
# @return [Time]
|
|
335
|
+
required :created_at, Time
|
|
336
|
+
|
|
337
|
+
# @!attribute currency
|
|
338
|
+
# The currency of the application fee.
|
|
339
|
+
#
|
|
340
|
+
# @return [Symbol, WhopSDK::Models::Currency]
|
|
341
|
+
required :currency, enum: -> { WhopSDK::Currency }
|
|
342
|
+
|
|
343
|
+
# @!method initialize(id:, amount:, amount_captured:, amount_refunded:, created_at:, currency:)
|
|
344
|
+
# The application fee charged on this payment.
|
|
345
|
+
#
|
|
346
|
+
# @param id [String] The unique identifier for the application fee.
|
|
347
|
+
#
|
|
348
|
+
# @param amount [Float] The application fee amount.
|
|
349
|
+
#
|
|
350
|
+
# @param amount_captured [Float] The amount of the application fee that has been captured.
|
|
351
|
+
#
|
|
352
|
+
# @param amount_refunded [Float] The amount of the application fee that has been refunded.
|
|
353
|
+
#
|
|
354
|
+
# @param created_at [Time] When the application fee was created.
|
|
355
|
+
#
|
|
356
|
+
# @param currency [Symbol, WhopSDK::Models::Currency] The currency of the application fee.
|
|
357
|
+
end
|
|
358
|
+
|
|
297
359
|
# @see WhopSDK::Models::Payment#billing_address
|
|
298
360
|
class BillingAddress < WhopSDK::Internal::Type::BaseModel
|
|
299
361
|
# @!attribute city
|
|
@@ -16,6 +16,12 @@ module WhopSDK
|
|
|
16
16
|
# @return [Float]
|
|
17
17
|
required :amount_after_fees, Float
|
|
18
18
|
|
|
19
|
+
# @!attribute application_fee
|
|
20
|
+
# The application fee charged on this payment.
|
|
21
|
+
#
|
|
22
|
+
# @return [WhopSDK::Models::PaymentListResponse::ApplicationFee, nil]
|
|
23
|
+
required :application_fee, -> { WhopSDK::Models::PaymentListResponse::ApplicationFee }, nil?: true
|
|
24
|
+
|
|
19
25
|
# @!attribute auto_refunded
|
|
20
26
|
# Whether this payment was auto refunded or not
|
|
21
27
|
#
|
|
@@ -219,7 +225,7 @@ module WhopSDK
|
|
|
219
225
|
# @return [Boolean]
|
|
220
226
|
required :voidable, WhopSDK::Internal::Type::Boolean
|
|
221
227
|
|
|
222
|
-
# @!method initialize(id:, amount_after_fees:, auto_refunded:, billing_address:, billing_reason:, card_brand:, card_last4:, company:, created_at:, currency:, dispute_alerted_at:, failure_message:, last_payment_attempt:, member:, membership:, metadata:, next_payment_attempt:, paid_at:, payment_method:, payment_method_type:, payments_failed:, plan:, product:, promo_code:, refundable:, refunded_amount:, refunded_at:, retryable:, status:, substatus:, subtotal:, total:, usd_total:, user:, voidable:)
|
|
228
|
+
# @!method initialize(id:, amount_after_fees:, application_fee:, auto_refunded:, billing_address:, billing_reason:, card_brand:, card_last4:, company:, created_at:, currency:, dispute_alerted_at:, failure_message:, last_payment_attempt:, member:, membership:, metadata:, next_payment_attempt:, paid_at:, payment_method:, payment_method_type:, payments_failed:, plan:, product:, promo_code:, refundable:, refunded_amount:, refunded_at:, retryable:, status:, substatus:, subtotal:, total:, usd_total:, user:, voidable:)
|
|
223
229
|
# Some parameter documentations has been truncated, see
|
|
224
230
|
# {WhopSDK::Models::PaymentListResponse} for more details.
|
|
225
231
|
#
|
|
@@ -229,6 +235,8 @@ module WhopSDK
|
|
|
229
235
|
#
|
|
230
236
|
# @param amount_after_fees [Float] How much the payment is for after fees
|
|
231
237
|
#
|
|
238
|
+
# @param application_fee [WhopSDK::Models::PaymentListResponse::ApplicationFee, nil] The application fee charged on this payment.
|
|
239
|
+
#
|
|
232
240
|
# @param auto_refunded [Boolean] Whether this payment was auto refunded or not
|
|
233
241
|
#
|
|
234
242
|
# @param billing_address [WhopSDK::Models::PaymentListResponse::BillingAddress, nil] The address of the user who made the payment.
|
|
@@ -295,6 +303,60 @@ module WhopSDK
|
|
|
295
303
|
#
|
|
296
304
|
# @param voidable [Boolean] True when the payment is tied to a membership in `past_due`, the payment status
|
|
297
305
|
|
|
306
|
+
# @see WhopSDK::Models::PaymentListResponse#application_fee
|
|
307
|
+
class ApplicationFee < WhopSDK::Internal::Type::BaseModel
|
|
308
|
+
# @!attribute id
|
|
309
|
+
# The unique identifier for the application fee.
|
|
310
|
+
#
|
|
311
|
+
# @return [String]
|
|
312
|
+
required :id, String
|
|
313
|
+
|
|
314
|
+
# @!attribute amount
|
|
315
|
+
# The application fee amount.
|
|
316
|
+
#
|
|
317
|
+
# @return [Float]
|
|
318
|
+
required :amount, Float
|
|
319
|
+
|
|
320
|
+
# @!attribute amount_captured
|
|
321
|
+
# The amount of the application fee that has been captured.
|
|
322
|
+
#
|
|
323
|
+
# @return [Float]
|
|
324
|
+
required :amount_captured, Float
|
|
325
|
+
|
|
326
|
+
# @!attribute amount_refunded
|
|
327
|
+
# The amount of the application fee that has been refunded.
|
|
328
|
+
#
|
|
329
|
+
# @return [Float]
|
|
330
|
+
required :amount_refunded, Float
|
|
331
|
+
|
|
332
|
+
# @!attribute created_at
|
|
333
|
+
# When the application fee was created.
|
|
334
|
+
#
|
|
335
|
+
# @return [Time]
|
|
336
|
+
required :created_at, Time
|
|
337
|
+
|
|
338
|
+
# @!attribute currency
|
|
339
|
+
# The currency of the application fee.
|
|
340
|
+
#
|
|
341
|
+
# @return [Symbol, WhopSDK::Models::Currency]
|
|
342
|
+
required :currency, enum: -> { WhopSDK::Currency }
|
|
343
|
+
|
|
344
|
+
# @!method initialize(id:, amount:, amount_captured:, amount_refunded:, created_at:, currency:)
|
|
345
|
+
# The application fee charged on this payment.
|
|
346
|
+
#
|
|
347
|
+
# @param id [String] The unique identifier for the application fee.
|
|
348
|
+
#
|
|
349
|
+
# @param amount [Float] The application fee amount.
|
|
350
|
+
#
|
|
351
|
+
# @param amount_captured [Float] The amount of the application fee that has been captured.
|
|
352
|
+
#
|
|
353
|
+
# @param amount_refunded [Float] The amount of the application fee that has been refunded.
|
|
354
|
+
#
|
|
355
|
+
# @param created_at [Time] When the application fee was created.
|
|
356
|
+
#
|
|
357
|
+
# @param currency [Symbol, WhopSDK::Models::Currency] The currency of the application fee.
|
|
358
|
+
end
|
|
359
|
+
|
|
298
360
|
# @see WhopSDK::Models::PaymentListResponse#billing_address
|
|
299
361
|
class BillingAddress < WhopSDK::Internal::Type::BaseModel
|
|
300
362
|
# @!attribute city
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The category of a payout destination.
|
|
6
|
+
module PayoutDestinationCategory
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
CRYPTO = :crypto
|
|
10
|
+
RTP = :rtp
|
|
11
|
+
NEXT_DAY_BANK = :next_day_bank
|
|
12
|
+
BANK_WIRE = :bank_wire
|
|
13
|
+
DIGITAL_WALLET = :digital_wallet
|
|
14
|
+
UNKNOWN = :unknown
|
|
15
|
+
|
|
16
|
+
# @!method self.values
|
|
17
|
+
# @return [Array<Symbol>]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -154,8 +154,8 @@ module WhopSDK
|
|
|
154
154
|
# @!attribute category
|
|
155
155
|
# The category of the payout destination
|
|
156
156
|
#
|
|
157
|
-
# @return [Symbol, WhopSDK::Models::
|
|
158
|
-
required :category, enum: -> { WhopSDK::
|
|
157
|
+
# @return [Symbol, WhopSDK::Models::PayoutDestinationCategory]
|
|
158
|
+
required :category, enum: -> { WhopSDK::PayoutDestinationCategory }
|
|
159
159
|
|
|
160
160
|
# @!attribute country_code
|
|
161
161
|
# The country code of the payout destination
|
|
@@ -172,28 +172,11 @@ module WhopSDK
|
|
|
172
172
|
# @!method initialize(category:, country_code:, name:)
|
|
173
173
|
# The payout destination associated with the payout token
|
|
174
174
|
#
|
|
175
|
-
# @param category [Symbol, WhopSDK::Models::
|
|
175
|
+
# @param category [Symbol, WhopSDK::Models::PayoutDestinationCategory] The category of the payout destination
|
|
176
176
|
#
|
|
177
177
|
# @param country_code [String] The country code of the payout destination
|
|
178
178
|
#
|
|
179
179
|
# @param name [String] The name of the payer associated with the payout destination
|
|
180
|
-
|
|
181
|
-
# The category of the payout destination
|
|
182
|
-
#
|
|
183
|
-
# @see WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination#category
|
|
184
|
-
module Category
|
|
185
|
-
extend WhopSDK::Internal::Type::Enum
|
|
186
|
-
|
|
187
|
-
CRYPTO = :crypto
|
|
188
|
-
RTP = :rtp
|
|
189
|
-
NEXT_DAY_BANK = :next_day_bank
|
|
190
|
-
BANK_WIRE = :bank_wire
|
|
191
|
-
DIGITAL_WALLET = :digital_wallet
|
|
192
|
-
UNKNOWN = :unknown
|
|
193
|
-
|
|
194
|
-
# @!method self.values
|
|
195
|
-
# @return [Array<Symbol>]
|
|
196
|
-
end
|
|
197
180
|
end
|
|
198
181
|
end
|
|
199
182
|
end
|
|
@@ -104,8 +104,8 @@ module WhopSDK
|
|
|
104
104
|
# @!attribute category
|
|
105
105
|
# The category of the payout destination
|
|
106
106
|
#
|
|
107
|
-
# @return [Symbol, WhopSDK::Models::
|
|
108
|
-
required :category, enum: -> { WhopSDK::
|
|
107
|
+
# @return [Symbol, WhopSDK::Models::PayoutDestinationCategory]
|
|
108
|
+
required :category, enum: -> { WhopSDK::PayoutDestinationCategory }
|
|
109
109
|
|
|
110
110
|
# @!attribute country_code
|
|
111
111
|
# The country code of the payout destination
|
|
@@ -122,28 +122,11 @@ module WhopSDK
|
|
|
122
122
|
# @!method initialize(category:, country_code:, name:)
|
|
123
123
|
# The payout destination associated with the payout token
|
|
124
124
|
#
|
|
125
|
-
# @param category [Symbol, WhopSDK::Models::
|
|
125
|
+
# @param category [Symbol, WhopSDK::Models::PayoutDestinationCategory] The category of the payout destination
|
|
126
126
|
#
|
|
127
127
|
# @param country_code [String] The country code of the payout destination
|
|
128
128
|
#
|
|
129
129
|
# @param name [String] The name of the payer associated with the payout destination
|
|
130
|
-
|
|
131
|
-
# The category of the payout destination
|
|
132
|
-
#
|
|
133
|
-
# @see WhopSDK::Models::PayoutMethodListResponse::Destination#category
|
|
134
|
-
module Category
|
|
135
|
-
extend WhopSDK::Internal::Type::Enum
|
|
136
|
-
|
|
137
|
-
CRYPTO = :crypto
|
|
138
|
-
RTP = :rtp
|
|
139
|
-
NEXT_DAY_BANK = :next_day_bank
|
|
140
|
-
BANK_WIRE = :bank_wire
|
|
141
|
-
DIGITAL_WALLET = :digital_wallet
|
|
142
|
-
UNKNOWN = :unknown
|
|
143
|
-
|
|
144
|
-
# @!method self.values
|
|
145
|
-
# @return [Array<Symbol>]
|
|
146
|
-
end
|
|
147
130
|
end
|
|
148
131
|
end
|
|
149
132
|
end
|
|
@@ -104,8 +104,8 @@ module WhopSDK
|
|
|
104
104
|
# @!attribute category
|
|
105
105
|
# The category of the payout destination
|
|
106
106
|
#
|
|
107
|
-
# @return [Symbol, WhopSDK::Models::
|
|
108
|
-
required :category, enum: -> { WhopSDK::
|
|
107
|
+
# @return [Symbol, WhopSDK::Models::PayoutDestinationCategory]
|
|
108
|
+
required :category, enum: -> { WhopSDK::PayoutDestinationCategory }
|
|
109
109
|
|
|
110
110
|
# @!attribute country_code
|
|
111
111
|
# The country code of the payout destination
|
|
@@ -122,28 +122,11 @@ module WhopSDK
|
|
|
122
122
|
# @!method initialize(category:, country_code:, name:)
|
|
123
123
|
# The payout destination associated with the payout token
|
|
124
124
|
#
|
|
125
|
-
# @param category [Symbol, WhopSDK::Models::
|
|
125
|
+
# @param category [Symbol, WhopSDK::Models::PayoutDestinationCategory] The category of the payout destination
|
|
126
126
|
#
|
|
127
127
|
# @param country_code [String] The country code of the payout destination
|
|
128
128
|
#
|
|
129
129
|
# @param name [String] The name of the payer associated with the payout destination
|
|
130
|
-
|
|
131
|
-
# The category of the payout destination
|
|
132
|
-
#
|
|
133
|
-
# @see WhopSDK::Models::PayoutMethodRetrieveResponse::Destination#category
|
|
134
|
-
module Category
|
|
135
|
-
extend WhopSDK::Internal::Type::Enum
|
|
136
|
-
|
|
137
|
-
CRYPTO = :crypto
|
|
138
|
-
RTP = :rtp
|
|
139
|
-
NEXT_DAY_BANK = :next_day_bank
|
|
140
|
-
BANK_WIRE = :bank_wire
|
|
141
|
-
DIGITAL_WALLET = :digital_wallet
|
|
142
|
-
UNKNOWN = :unknown
|
|
143
|
-
|
|
144
|
-
# @!method self.values
|
|
145
|
-
# @return [Array<Symbol>]
|
|
146
|
-
end
|
|
147
130
|
end
|
|
148
131
|
end
|
|
149
132
|
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The upload status of a file
|
|
6
|
+
module UploadStatus
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
PENDING = :pending
|
|
10
|
+
PROCESSING = :processing
|
|
11
|
+
READY = :ready
|
|
12
|
+
FAILED = :failed
|
|
13
|
+
|
|
14
|
+
# @!method self.values
|
|
15
|
+
# @return [Array<Symbol>]
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# An error code for a verification attempt.
|
|
6
|
+
module VerificationErrorCode
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
ABANDONED = :abandoned
|
|
10
|
+
CONSENT_DECLINED = :consent_declined
|
|
11
|
+
COUNTRY_NOT_SUPPORTED = :country_not_supported
|
|
12
|
+
DEVICE_NOT_SUPPORTED = :device_not_supported
|
|
13
|
+
DOCUMENT_EXPIRED = :document_expired
|
|
14
|
+
DOCUMENT_TYPE_NOT_SUPPORTED = :document_type_not_supported
|
|
15
|
+
DOCUMENT_UNVERIFIED_OTHER = :document_unverified_other
|
|
16
|
+
EMAIL_UNVERIFIED_OTHER = :email_unverified_other
|
|
17
|
+
EMAIL_VERIFICATION_DECLINED = :email_verification_declined
|
|
18
|
+
ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA = :id_number_insufficient_document_data
|
|
19
|
+
ID_NUMBER_MISMATCH = :id_number_mismatch
|
|
20
|
+
ID_NUMBER_UNVERIFIED_OTHER = :id_number_unverified_other
|
|
21
|
+
PHONE_UNVERIFIED_OTHER = :phone_unverified_other
|
|
22
|
+
PHONE_VERIFICATION_DECLINED = :phone_verification_declined
|
|
23
|
+
SELFIE_DOCUMENT_MISSING_PHOTO = :selfie_document_missing_photo
|
|
24
|
+
SELFIE_FACE_MISMATCH = :selfie_face_mismatch
|
|
25
|
+
SELFIE_MANIPULATED = :selfie_manipulated
|
|
26
|
+
SELFIE_UNVERIFIED_OTHER = :selfie_unverified_other
|
|
27
|
+
UNDER_SUPPORTED_AGE = :under_supported_age
|
|
28
|
+
|
|
29
|
+
# @!method self.values
|
|
30
|
+
# @return [Array<Symbol>]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -13,10 +13,8 @@ module WhopSDK
|
|
|
13
13
|
# @!attribute last_error_code
|
|
14
14
|
# An error code for a verification attempt.
|
|
15
15
|
#
|
|
16
|
-
# @return [Symbol, WhopSDK::Models::
|
|
17
|
-
required :last_error_code,
|
|
18
|
-
enum: -> { WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode },
|
|
19
|
-
nil?: true
|
|
16
|
+
# @return [Symbol, WhopSDK::Models::VerificationErrorCode, nil]
|
|
17
|
+
required :last_error_code, enum: -> { WhopSDK::VerificationErrorCode }, nil?: true
|
|
20
18
|
|
|
21
19
|
# @!attribute last_error_reason
|
|
22
20
|
# The last error reason that occurred during the verification.
|
|
@@ -27,73 +25,19 @@ module WhopSDK
|
|
|
27
25
|
# @!attribute status
|
|
28
26
|
# The status of the verification.
|
|
29
27
|
#
|
|
30
|
-
# @return [Symbol, WhopSDK::Models::
|
|
31
|
-
required :status, enum: -> { WhopSDK::
|
|
28
|
+
# @return [Symbol, WhopSDK::Models::VerificationStatus]
|
|
29
|
+
required :status, enum: -> { WhopSDK::VerificationStatus }
|
|
32
30
|
|
|
33
31
|
# @!method initialize(id:, last_error_code:, last_error_reason:, status:)
|
|
34
32
|
# An object representing an identity verification session
|
|
35
33
|
#
|
|
36
34
|
# @param id [String] A unique identifier for the verification.
|
|
37
35
|
#
|
|
38
|
-
# @param last_error_code [Symbol, WhopSDK::Models::
|
|
36
|
+
# @param last_error_code [Symbol, WhopSDK::Models::VerificationErrorCode, nil] An error code for a verification attempt.
|
|
39
37
|
#
|
|
40
38
|
# @param last_error_reason [String, nil] The last error reason that occurred during the verification.
|
|
41
39
|
#
|
|
42
|
-
# @param status [Symbol, WhopSDK::Models::
|
|
43
|
-
|
|
44
|
-
# An error code for a verification attempt.
|
|
45
|
-
#
|
|
46
|
-
# @see WhopSDK::Models::VerificationRetrieveResponse#last_error_code
|
|
47
|
-
module LastErrorCode
|
|
48
|
-
extend WhopSDK::Internal::Type::Enum
|
|
49
|
-
|
|
50
|
-
ABANDONED = :abandoned
|
|
51
|
-
CONSENT_DECLINED = :consent_declined
|
|
52
|
-
COUNTRY_NOT_SUPPORTED = :country_not_supported
|
|
53
|
-
DEVICE_NOT_SUPPORTED = :device_not_supported
|
|
54
|
-
DOCUMENT_EXPIRED = :document_expired
|
|
55
|
-
DOCUMENT_TYPE_NOT_SUPPORTED = :document_type_not_supported
|
|
56
|
-
DOCUMENT_UNVERIFIED_OTHER = :document_unverified_other
|
|
57
|
-
EMAIL_UNVERIFIED_OTHER = :email_unverified_other
|
|
58
|
-
EMAIL_VERIFICATION_DECLINED = :email_verification_declined
|
|
59
|
-
ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA = :id_number_insufficient_document_data
|
|
60
|
-
ID_NUMBER_MISMATCH = :id_number_mismatch
|
|
61
|
-
ID_NUMBER_UNVERIFIED_OTHER = :id_number_unverified_other
|
|
62
|
-
PHONE_UNVERIFIED_OTHER = :phone_unverified_other
|
|
63
|
-
PHONE_VERIFICATION_DECLINED = :phone_verification_declined
|
|
64
|
-
SELFIE_DOCUMENT_MISSING_PHOTO = :selfie_document_missing_photo
|
|
65
|
-
SELFIE_FACE_MISMATCH = :selfie_face_mismatch
|
|
66
|
-
SELFIE_MANIPULATED = :selfie_manipulated
|
|
67
|
-
SELFIE_UNVERIFIED_OTHER = :selfie_unverified_other
|
|
68
|
-
UNDER_SUPPORTED_AGE = :under_supported_age
|
|
69
|
-
|
|
70
|
-
# @!method self.values
|
|
71
|
-
# @return [Array<Symbol>]
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
# The status of the verification.
|
|
75
|
-
#
|
|
76
|
-
# @see WhopSDK::Models::VerificationRetrieveResponse#status
|
|
77
|
-
module Status
|
|
78
|
-
extend WhopSDK::Internal::Type::Enum
|
|
79
|
-
|
|
80
|
-
REQUIRES_INPUT = :requires_input
|
|
81
|
-
PROCESSING = :processing
|
|
82
|
-
VERIFIED = :verified
|
|
83
|
-
CANCELED = :canceled
|
|
84
|
-
CREATED = :created
|
|
85
|
-
STARTED = :started
|
|
86
|
-
SUBMITTED = :submitted
|
|
87
|
-
APPROVED = :approved
|
|
88
|
-
DECLINED = :declined
|
|
89
|
-
RESUBMISSION_REQUESTED = :resubmission_requested
|
|
90
|
-
EXPIRED = :expired
|
|
91
|
-
ABANDONED = :abandoned
|
|
92
|
-
REVIEW = :review
|
|
93
|
-
|
|
94
|
-
# @!method self.values
|
|
95
|
-
# @return [Array<Symbol>]
|
|
96
|
-
end
|
|
40
|
+
# @param status [Symbol, WhopSDK::Models::VerificationStatus] The status of the verification.
|
|
97
41
|
end
|
|
98
42
|
end
|
|
99
43
|
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# A status for a verification.
|
|
6
|
+
module VerificationStatus
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
REQUIRES_INPUT = :requires_input
|
|
10
|
+
PROCESSING = :processing
|
|
11
|
+
VERIFIED = :verified
|
|
12
|
+
CANCELED = :canceled
|
|
13
|
+
CREATED = :created
|
|
14
|
+
STARTED = :started
|
|
15
|
+
SUBMITTED = :submitted
|
|
16
|
+
APPROVED = :approved
|
|
17
|
+
DECLINED = :declined
|
|
18
|
+
RESUBMISSION_REQUESTED = :resubmission_requested
|
|
19
|
+
EXPIRED = :expired
|
|
20
|
+
ABANDONED = :abandoned
|
|
21
|
+
REVIEW = :review
|
|
22
|
+
|
|
23
|
+
# @!method self.values
|
|
24
|
+
# @return [Array<Symbol>]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|