whop_sdk 0.0.20 → 0.0.22
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 +31 -0
- data/README.md +10 -1
- data/lib/whop_sdk/client.rb +12 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/whop_sdk/internal/util.rb +7 -2
- data/lib/whop_sdk/models/lead_create_params.rb +58 -0
- data/lib/whop_sdk/models/lead_create_response.rb +149 -0
- data/lib/whop_sdk/models/lead_list_params.rb +78 -0
- data/lib/whop_sdk/models/lead_list_response.rb +149 -0
- data/lib/whop_sdk/models/lead_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/lead_retrieve_response.rb +149 -0
- data/lib/whop_sdk/models/lead_update_params.rb +30 -0
- data/lib/whop_sdk/models/lead_update_response.rb +149 -0
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +106 -1
- data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +53 -0
- data/lib/whop_sdk/models/membership_status.rb +1 -0
- data/lib/whop_sdk/models/payment.rb +3 -3
- data/lib/whop_sdk/models/payment_create_params.rb +9 -1
- data/lib/whop_sdk/models/payment_list_fees_response.rb +1 -0
- data/lib/whop_sdk/models/payment_list_response.rb +3 -3
- data/lib/whop_sdk/models/payment_method_list_params.rb +16 -8
- data/lib/whop_sdk/models/payment_method_retrieve_params.rb +13 -5
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +168 -0
- data/lib/whop_sdk/models/payout_method_list_response.rb +31 -1
- data/lib/whop_sdk/models/payout_method_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +125 -0
- data/lib/whop_sdk/models/support_channel_create_params.rb +2 -2
- data/lib/whop_sdk/models/topup_create_params.rb +46 -0
- data/lib/whop_sdk/models/topup_create_response.rb +67 -0
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +8 -1
- data/lib/whop_sdk/models/verification_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/verification_retrieve_response.rb +99 -0
- data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +142 -0
- data/lib/whop_sdk/models.rb +21 -0
- data/lib/whop_sdk/resources/leads.rb +158 -0
- data/lib/whop_sdk/resources/payment_methods.rb +12 -8
- data/lib/whop_sdk/resources/payments.rb +3 -1
- data/lib/whop_sdk/resources/payout_methods.rb +24 -0
- data/lib/whop_sdk/resources/support_channels.rb +1 -1
- data/lib/whop_sdk/resources/topups.rb +46 -0
- data/lib/whop_sdk/resources/verifications.rb +38 -0
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +20 -0
- data/rbi/whop_sdk/client.rbi +9 -0
- data/rbi/whop_sdk/models/lead_create_params.rbi +77 -0
- data/rbi/whop_sdk/models/lead_create_response.rbi +234 -0
- data/rbi/whop_sdk/models/lead_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/lead_list_response.rbi +230 -0
- data/rbi/whop_sdk/models/lead_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/lead_retrieve_response.rbi +238 -0
- data/rbi/whop_sdk/models/lead_update_params.rbi +51 -0
- data/rbi/whop_sdk/models/lead_update_response.rbi +234 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +318 -0
- data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/membership_status.rbi +1 -0
- data/rbi/whop_sdk/models/payment.rbi +4 -4
- data/rbi/whop_sdk/models/payment_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/payment_list_fees_response.rbi +5 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +4 -4
- data/rbi/whop_sdk/models/payment_method_list_params.rbi +16 -8
- data/rbi/whop_sdk/models/payment_method_retrieve_params.rbi +17 -6
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +340 -0
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +58 -0
- data/rbi/whop_sdk/models/payout_method_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +262 -0
- data/rbi/whop_sdk/models/support_channel_create_params.rbi +2 -2
- data/rbi/whop_sdk/models/topup_create_params.rbi +67 -0
- data/rbi/whop_sdk/models/topup_create_response.rbi +89 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +4 -1
- data/rbi/whop_sdk/models/verification_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/verification_retrieve_response.rbi +290 -0
- data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +367 -0
- data/rbi/whop_sdk/models.rbi +23 -0
- data/rbi/whop_sdk/resources/leads.rbi +138 -0
- data/rbi/whop_sdk/resources/payment_methods.rbi +13 -7
- data/rbi/whop_sdk/resources/payments.rbi +3 -0
- data/rbi/whop_sdk/resources/payout_methods.rbi +18 -0
- data/rbi/whop_sdk/resources/support_channels.rbi +1 -1
- data/rbi/whop_sdk/resources/topups.rbi +39 -0
- data/rbi/whop_sdk/resources/verifications.rbi +30 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +4 -1
- data/sig/whop_sdk/client.rbs +6 -0
- data/sig/whop_sdk/models/lead_create_params.rbs +46 -0
- data/sig/whop_sdk/models/lead_create_response.rbs +104 -0
- data/sig/whop_sdk/models/lead_list_params.rbs +61 -0
- data/sig/whop_sdk/models/lead_list_response.rbs +104 -0
- data/sig/whop_sdk/models/lead_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/lead_retrieve_response.rbs +104 -0
- data/sig/whop_sdk/models/lead_update_params.rbs +28 -0
- data/sig/whop_sdk/models/lead_update_response.rbs +104 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +119 -0
- data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/membership_status.rbs +2 -0
- data/sig/whop_sdk/models/payment_create_params.rbs +5 -0
- data/sig/whop_sdk/models/payment_list_fees_response.rbs +2 -0
- data/sig/whop_sdk/models/payment_method_list_params.rbs +11 -6
- data/sig/whop_sdk/models/payment_method_retrieve_params.rbs +9 -4
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +140 -0
- data/sig/whop_sdk/models/payout_method_list_response.rbs +20 -0
- data/sig/whop_sdk/models/payout_method_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +103 -0
- data/sig/whop_sdk/models/topup_create_params.rbs +41 -0
- data/sig/whop_sdk/models/topup_create_response.rbs +50 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +3 -0
- data/sig/whop_sdk/models/verification_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/verification_retrieve_response.rbs +117 -0
- data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +154 -0
- data/sig/whop_sdk/models.rbs +20 -0
- data/sig/whop_sdk/resources/leads.rbs +40 -0
- data/sig/whop_sdk/resources/payment_methods.rbs +4 -2
- data/sig/whop_sdk/resources/payments.rbs +1 -0
- data/sig/whop_sdk/resources/payout_methods.rbs +5 -0
- data/sig/whop_sdk/resources/topups.rbs +15 -0
- data/sig/whop_sdk/resources/verifications.rbs +12 -0
- data/sig/whop_sdk/resources/webhooks.rbs +4 -1
- metadata +62 -2
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class VerificationRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
WhopSDK::Models::VerificationRetrieveResponse,
|
|
10
|
+
WhopSDK::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# A unique identifier for the verification.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# An error code for a verification attempt.
|
|
19
|
+
sig do
|
|
20
|
+
returns(
|
|
21
|
+
T.nilable(
|
|
22
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
23
|
+
)
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :last_error_code
|
|
27
|
+
|
|
28
|
+
# The last error reason that occurred during the verification.
|
|
29
|
+
sig { returns(T.nilable(String)) }
|
|
30
|
+
attr_accessor :last_error_reason
|
|
31
|
+
|
|
32
|
+
# The status of the verification.
|
|
33
|
+
sig do
|
|
34
|
+
returns(
|
|
35
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
attr_accessor :status
|
|
39
|
+
|
|
40
|
+
# An object representing an identity verification session
|
|
41
|
+
sig do
|
|
42
|
+
params(
|
|
43
|
+
id: String,
|
|
44
|
+
last_error_code:
|
|
45
|
+
T.nilable(
|
|
46
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::OrSymbol
|
|
47
|
+
),
|
|
48
|
+
last_error_reason: T.nilable(String),
|
|
49
|
+
status:
|
|
50
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::OrSymbol
|
|
51
|
+
).returns(T.attached_class)
|
|
52
|
+
end
|
|
53
|
+
def self.new(
|
|
54
|
+
# A unique identifier for the verification.
|
|
55
|
+
id:,
|
|
56
|
+
# An error code for a verification attempt.
|
|
57
|
+
last_error_code:,
|
|
58
|
+
# The last error reason that occurred during the verification.
|
|
59
|
+
last_error_reason:,
|
|
60
|
+
# The status of the verification.
|
|
61
|
+
status:
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
sig do
|
|
66
|
+
override.returns(
|
|
67
|
+
{
|
|
68
|
+
id: String,
|
|
69
|
+
last_error_code:
|
|
70
|
+
T.nilable(
|
|
71
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
72
|
+
),
|
|
73
|
+
last_error_reason: T.nilable(String),
|
|
74
|
+
status:
|
|
75
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
def to_hash
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# An error code for a verification attempt.
|
|
83
|
+
module LastErrorCode
|
|
84
|
+
extend WhopSDK::Internal::Type::Enum
|
|
85
|
+
|
|
86
|
+
TaggedSymbol =
|
|
87
|
+
T.type_alias do
|
|
88
|
+
T.all(
|
|
89
|
+
Symbol,
|
|
90
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
94
|
+
|
|
95
|
+
ABANDONED =
|
|
96
|
+
T.let(
|
|
97
|
+
:abandoned,
|
|
98
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
99
|
+
)
|
|
100
|
+
CONSENT_DECLINED =
|
|
101
|
+
T.let(
|
|
102
|
+
:consent_declined,
|
|
103
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
104
|
+
)
|
|
105
|
+
COUNTRY_NOT_SUPPORTED =
|
|
106
|
+
T.let(
|
|
107
|
+
:country_not_supported,
|
|
108
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
109
|
+
)
|
|
110
|
+
DEVICE_NOT_SUPPORTED =
|
|
111
|
+
T.let(
|
|
112
|
+
:device_not_supported,
|
|
113
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
114
|
+
)
|
|
115
|
+
DOCUMENT_EXPIRED =
|
|
116
|
+
T.let(
|
|
117
|
+
:document_expired,
|
|
118
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
119
|
+
)
|
|
120
|
+
DOCUMENT_TYPE_NOT_SUPPORTED =
|
|
121
|
+
T.let(
|
|
122
|
+
:document_type_not_supported,
|
|
123
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
124
|
+
)
|
|
125
|
+
DOCUMENT_UNVERIFIED_OTHER =
|
|
126
|
+
T.let(
|
|
127
|
+
:document_unverified_other,
|
|
128
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
129
|
+
)
|
|
130
|
+
EMAIL_UNVERIFIED_OTHER =
|
|
131
|
+
T.let(
|
|
132
|
+
:email_unverified_other,
|
|
133
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
134
|
+
)
|
|
135
|
+
EMAIL_VERIFICATION_DECLINED =
|
|
136
|
+
T.let(
|
|
137
|
+
:email_verification_declined,
|
|
138
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
139
|
+
)
|
|
140
|
+
ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA =
|
|
141
|
+
T.let(
|
|
142
|
+
:id_number_insufficient_document_data,
|
|
143
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
144
|
+
)
|
|
145
|
+
ID_NUMBER_MISMATCH =
|
|
146
|
+
T.let(
|
|
147
|
+
:id_number_mismatch,
|
|
148
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
149
|
+
)
|
|
150
|
+
ID_NUMBER_UNVERIFIED_OTHER =
|
|
151
|
+
T.let(
|
|
152
|
+
:id_number_unverified_other,
|
|
153
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
154
|
+
)
|
|
155
|
+
PHONE_UNVERIFIED_OTHER =
|
|
156
|
+
T.let(
|
|
157
|
+
:phone_unverified_other,
|
|
158
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
159
|
+
)
|
|
160
|
+
PHONE_VERIFICATION_DECLINED =
|
|
161
|
+
T.let(
|
|
162
|
+
:phone_verification_declined,
|
|
163
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
164
|
+
)
|
|
165
|
+
SELFIE_DOCUMENT_MISSING_PHOTO =
|
|
166
|
+
T.let(
|
|
167
|
+
:selfie_document_missing_photo,
|
|
168
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
169
|
+
)
|
|
170
|
+
SELFIE_FACE_MISMATCH =
|
|
171
|
+
T.let(
|
|
172
|
+
:selfie_face_mismatch,
|
|
173
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
174
|
+
)
|
|
175
|
+
SELFIE_MANIPULATED =
|
|
176
|
+
T.let(
|
|
177
|
+
:selfie_manipulated,
|
|
178
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
179
|
+
)
|
|
180
|
+
SELFIE_UNVERIFIED_OTHER =
|
|
181
|
+
T.let(
|
|
182
|
+
:selfie_unverified_other,
|
|
183
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
184
|
+
)
|
|
185
|
+
UNDER_SUPPORTED_AGE =
|
|
186
|
+
T.let(
|
|
187
|
+
:under_supported_age,
|
|
188
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
sig do
|
|
192
|
+
override.returns(
|
|
193
|
+
T::Array[
|
|
194
|
+
WhopSDK::Models::VerificationRetrieveResponse::LastErrorCode::TaggedSymbol
|
|
195
|
+
]
|
|
196
|
+
)
|
|
197
|
+
end
|
|
198
|
+
def self.values
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# The status of the verification.
|
|
203
|
+
module Status
|
|
204
|
+
extend WhopSDK::Internal::Type::Enum
|
|
205
|
+
|
|
206
|
+
TaggedSymbol =
|
|
207
|
+
T.type_alias do
|
|
208
|
+
T.all(Symbol, WhopSDK::Models::VerificationRetrieveResponse::Status)
|
|
209
|
+
end
|
|
210
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
211
|
+
|
|
212
|
+
REQUIRES_INPUT =
|
|
213
|
+
T.let(
|
|
214
|
+
:requires_input,
|
|
215
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
216
|
+
)
|
|
217
|
+
PROCESSING =
|
|
218
|
+
T.let(
|
|
219
|
+
:processing,
|
|
220
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
221
|
+
)
|
|
222
|
+
VERIFIED =
|
|
223
|
+
T.let(
|
|
224
|
+
:verified,
|
|
225
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
226
|
+
)
|
|
227
|
+
CANCELED =
|
|
228
|
+
T.let(
|
|
229
|
+
:canceled,
|
|
230
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
231
|
+
)
|
|
232
|
+
CREATED =
|
|
233
|
+
T.let(
|
|
234
|
+
:created,
|
|
235
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
236
|
+
)
|
|
237
|
+
STARTED =
|
|
238
|
+
T.let(
|
|
239
|
+
:started,
|
|
240
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
241
|
+
)
|
|
242
|
+
SUBMITTED =
|
|
243
|
+
T.let(
|
|
244
|
+
:submitted,
|
|
245
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
246
|
+
)
|
|
247
|
+
APPROVED =
|
|
248
|
+
T.let(
|
|
249
|
+
:approved,
|
|
250
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
251
|
+
)
|
|
252
|
+
DECLINED =
|
|
253
|
+
T.let(
|
|
254
|
+
:declined,
|
|
255
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
256
|
+
)
|
|
257
|
+
RESUBMISSION_REQUESTED =
|
|
258
|
+
T.let(
|
|
259
|
+
:resubmission_requested,
|
|
260
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
261
|
+
)
|
|
262
|
+
EXPIRED =
|
|
263
|
+
T.let(
|
|
264
|
+
:expired,
|
|
265
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
266
|
+
)
|
|
267
|
+
ABANDONED =
|
|
268
|
+
T.let(
|
|
269
|
+
:abandoned,
|
|
270
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
271
|
+
)
|
|
272
|
+
REVIEW =
|
|
273
|
+
T.let(
|
|
274
|
+
:review,
|
|
275
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
sig do
|
|
279
|
+
override.returns(
|
|
280
|
+
T::Array[
|
|
281
|
+
WhopSDK::Models::VerificationRetrieveResponse::Status::TaggedSymbol
|
|
282
|
+
]
|
|
283
|
+
)
|
|
284
|
+
end
|
|
285
|
+
def self.values
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
end
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class VerificationSucceededWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
WhopSDK::VerificationSucceededWebhookEvent,
|
|
10
|
+
WhopSDK::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# A unique ID for every single webhook request
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# The API version for this webhook
|
|
19
|
+
sig { returns(Symbol) }
|
|
20
|
+
attr_accessor :api_version
|
|
21
|
+
|
|
22
|
+
# An object representing an identity verification session
|
|
23
|
+
sig { returns(WhopSDK::VerificationSucceededWebhookEvent::Data) }
|
|
24
|
+
attr_reader :data
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
data: WhopSDK::VerificationSucceededWebhookEvent::Data::OrHash
|
|
29
|
+
).void
|
|
30
|
+
end
|
|
31
|
+
attr_writer :data
|
|
32
|
+
|
|
33
|
+
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
34
|
+
sig { returns(Time) }
|
|
35
|
+
attr_accessor :timestamp
|
|
36
|
+
|
|
37
|
+
# The webhook event type
|
|
38
|
+
sig { returns(Symbol) }
|
|
39
|
+
attr_accessor :type
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
params(
|
|
43
|
+
id: String,
|
|
44
|
+
data: WhopSDK::VerificationSucceededWebhookEvent::Data::OrHash,
|
|
45
|
+
timestamp: Time,
|
|
46
|
+
api_version: Symbol,
|
|
47
|
+
type: Symbol
|
|
48
|
+
).returns(T.attached_class)
|
|
49
|
+
end
|
|
50
|
+
def self.new(
|
|
51
|
+
# A unique ID for every single webhook request
|
|
52
|
+
id:,
|
|
53
|
+
# An object representing an identity verification session
|
|
54
|
+
data:,
|
|
55
|
+
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
56
|
+
timestamp:,
|
|
57
|
+
# The API version for this webhook
|
|
58
|
+
api_version: :v1,
|
|
59
|
+
# The webhook event type
|
|
60
|
+
type: :"verification.succeeded"
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
override.returns(
|
|
66
|
+
{
|
|
67
|
+
id: String,
|
|
68
|
+
api_version: Symbol,
|
|
69
|
+
data: WhopSDK::VerificationSucceededWebhookEvent::Data,
|
|
70
|
+
timestamp: Time,
|
|
71
|
+
type: Symbol
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
def to_hash
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
class Data < WhopSDK::Internal::Type::BaseModel
|
|
79
|
+
OrHash =
|
|
80
|
+
T.type_alias do
|
|
81
|
+
T.any(
|
|
82
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data,
|
|
83
|
+
WhopSDK::Internal::AnyHash
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# A unique identifier for the verification.
|
|
88
|
+
sig { returns(String) }
|
|
89
|
+
attr_accessor :id
|
|
90
|
+
|
|
91
|
+
# An error code for a verification attempt.
|
|
92
|
+
sig do
|
|
93
|
+
returns(
|
|
94
|
+
T.nilable(
|
|
95
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
96
|
+
)
|
|
97
|
+
)
|
|
98
|
+
end
|
|
99
|
+
attr_accessor :last_error_code
|
|
100
|
+
|
|
101
|
+
# The last error reason that occurred during the verification.
|
|
102
|
+
sig { returns(T.nilable(String)) }
|
|
103
|
+
attr_accessor :last_error_reason
|
|
104
|
+
|
|
105
|
+
# The status of the verification.
|
|
106
|
+
sig do
|
|
107
|
+
returns(
|
|
108
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
attr_accessor :status
|
|
112
|
+
|
|
113
|
+
# An object representing an identity verification session
|
|
114
|
+
sig do
|
|
115
|
+
params(
|
|
116
|
+
id: String,
|
|
117
|
+
last_error_code:
|
|
118
|
+
T.nilable(
|
|
119
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::OrSymbol
|
|
120
|
+
),
|
|
121
|
+
last_error_reason: T.nilable(String),
|
|
122
|
+
status:
|
|
123
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::OrSymbol
|
|
124
|
+
).returns(T.attached_class)
|
|
125
|
+
end
|
|
126
|
+
def self.new(
|
|
127
|
+
# A unique identifier for the verification.
|
|
128
|
+
id:,
|
|
129
|
+
# An error code for a verification attempt.
|
|
130
|
+
last_error_code:,
|
|
131
|
+
# The last error reason that occurred during the verification.
|
|
132
|
+
last_error_reason:,
|
|
133
|
+
# The status of the verification.
|
|
134
|
+
status:
|
|
135
|
+
)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
sig do
|
|
139
|
+
override.returns(
|
|
140
|
+
{
|
|
141
|
+
id: String,
|
|
142
|
+
last_error_code:
|
|
143
|
+
T.nilable(
|
|
144
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
145
|
+
),
|
|
146
|
+
last_error_reason: T.nilable(String),
|
|
147
|
+
status:
|
|
148
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
end
|
|
152
|
+
def to_hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# An error code for a verification attempt.
|
|
156
|
+
module LastErrorCode
|
|
157
|
+
extend WhopSDK::Internal::Type::Enum
|
|
158
|
+
|
|
159
|
+
TaggedSymbol =
|
|
160
|
+
T.type_alias do
|
|
161
|
+
T.all(
|
|
162
|
+
Symbol,
|
|
163
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode
|
|
164
|
+
)
|
|
165
|
+
end
|
|
166
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
167
|
+
|
|
168
|
+
ABANDONED =
|
|
169
|
+
T.let(
|
|
170
|
+
:abandoned,
|
|
171
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
172
|
+
)
|
|
173
|
+
CONSENT_DECLINED =
|
|
174
|
+
T.let(
|
|
175
|
+
:consent_declined,
|
|
176
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
177
|
+
)
|
|
178
|
+
COUNTRY_NOT_SUPPORTED =
|
|
179
|
+
T.let(
|
|
180
|
+
:country_not_supported,
|
|
181
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
182
|
+
)
|
|
183
|
+
DEVICE_NOT_SUPPORTED =
|
|
184
|
+
T.let(
|
|
185
|
+
:device_not_supported,
|
|
186
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
187
|
+
)
|
|
188
|
+
DOCUMENT_EXPIRED =
|
|
189
|
+
T.let(
|
|
190
|
+
:document_expired,
|
|
191
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
192
|
+
)
|
|
193
|
+
DOCUMENT_TYPE_NOT_SUPPORTED =
|
|
194
|
+
T.let(
|
|
195
|
+
:document_type_not_supported,
|
|
196
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
197
|
+
)
|
|
198
|
+
DOCUMENT_UNVERIFIED_OTHER =
|
|
199
|
+
T.let(
|
|
200
|
+
:document_unverified_other,
|
|
201
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
202
|
+
)
|
|
203
|
+
EMAIL_UNVERIFIED_OTHER =
|
|
204
|
+
T.let(
|
|
205
|
+
:email_unverified_other,
|
|
206
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
207
|
+
)
|
|
208
|
+
EMAIL_VERIFICATION_DECLINED =
|
|
209
|
+
T.let(
|
|
210
|
+
:email_verification_declined,
|
|
211
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
212
|
+
)
|
|
213
|
+
ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA =
|
|
214
|
+
T.let(
|
|
215
|
+
:id_number_insufficient_document_data,
|
|
216
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
217
|
+
)
|
|
218
|
+
ID_NUMBER_MISMATCH =
|
|
219
|
+
T.let(
|
|
220
|
+
:id_number_mismatch,
|
|
221
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
222
|
+
)
|
|
223
|
+
ID_NUMBER_UNVERIFIED_OTHER =
|
|
224
|
+
T.let(
|
|
225
|
+
:id_number_unverified_other,
|
|
226
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
227
|
+
)
|
|
228
|
+
PHONE_UNVERIFIED_OTHER =
|
|
229
|
+
T.let(
|
|
230
|
+
:phone_unverified_other,
|
|
231
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
232
|
+
)
|
|
233
|
+
PHONE_VERIFICATION_DECLINED =
|
|
234
|
+
T.let(
|
|
235
|
+
:phone_verification_declined,
|
|
236
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
237
|
+
)
|
|
238
|
+
SELFIE_DOCUMENT_MISSING_PHOTO =
|
|
239
|
+
T.let(
|
|
240
|
+
:selfie_document_missing_photo,
|
|
241
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
242
|
+
)
|
|
243
|
+
SELFIE_FACE_MISMATCH =
|
|
244
|
+
T.let(
|
|
245
|
+
:selfie_face_mismatch,
|
|
246
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
247
|
+
)
|
|
248
|
+
SELFIE_MANIPULATED =
|
|
249
|
+
T.let(
|
|
250
|
+
:selfie_manipulated,
|
|
251
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
252
|
+
)
|
|
253
|
+
SELFIE_UNVERIFIED_OTHER =
|
|
254
|
+
T.let(
|
|
255
|
+
:selfie_unverified_other,
|
|
256
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
257
|
+
)
|
|
258
|
+
UNDER_SUPPORTED_AGE =
|
|
259
|
+
T.let(
|
|
260
|
+
:under_supported_age,
|
|
261
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
sig do
|
|
265
|
+
override.returns(
|
|
266
|
+
T::Array[
|
|
267
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::LastErrorCode::TaggedSymbol
|
|
268
|
+
]
|
|
269
|
+
)
|
|
270
|
+
end
|
|
271
|
+
def self.values
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# The status of the verification.
|
|
276
|
+
module Status
|
|
277
|
+
extend WhopSDK::Internal::Type::Enum
|
|
278
|
+
|
|
279
|
+
TaggedSymbol =
|
|
280
|
+
T.type_alias do
|
|
281
|
+
T.all(
|
|
282
|
+
Symbol,
|
|
283
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status
|
|
284
|
+
)
|
|
285
|
+
end
|
|
286
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
287
|
+
|
|
288
|
+
REQUIRES_INPUT =
|
|
289
|
+
T.let(
|
|
290
|
+
:requires_input,
|
|
291
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
292
|
+
)
|
|
293
|
+
PROCESSING =
|
|
294
|
+
T.let(
|
|
295
|
+
:processing,
|
|
296
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
297
|
+
)
|
|
298
|
+
VERIFIED =
|
|
299
|
+
T.let(
|
|
300
|
+
:verified,
|
|
301
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
302
|
+
)
|
|
303
|
+
CANCELED =
|
|
304
|
+
T.let(
|
|
305
|
+
:canceled,
|
|
306
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
307
|
+
)
|
|
308
|
+
CREATED =
|
|
309
|
+
T.let(
|
|
310
|
+
:created,
|
|
311
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
312
|
+
)
|
|
313
|
+
STARTED =
|
|
314
|
+
T.let(
|
|
315
|
+
:started,
|
|
316
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
317
|
+
)
|
|
318
|
+
SUBMITTED =
|
|
319
|
+
T.let(
|
|
320
|
+
:submitted,
|
|
321
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
322
|
+
)
|
|
323
|
+
APPROVED =
|
|
324
|
+
T.let(
|
|
325
|
+
:approved,
|
|
326
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
327
|
+
)
|
|
328
|
+
DECLINED =
|
|
329
|
+
T.let(
|
|
330
|
+
:declined,
|
|
331
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
332
|
+
)
|
|
333
|
+
RESUBMISSION_REQUESTED =
|
|
334
|
+
T.let(
|
|
335
|
+
:resubmission_requested,
|
|
336
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
337
|
+
)
|
|
338
|
+
EXPIRED =
|
|
339
|
+
T.let(
|
|
340
|
+
:expired,
|
|
341
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
342
|
+
)
|
|
343
|
+
ABANDONED =
|
|
344
|
+
T.let(
|
|
345
|
+
:abandoned,
|
|
346
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
347
|
+
)
|
|
348
|
+
REVIEW =
|
|
349
|
+
T.let(
|
|
350
|
+
:review,
|
|
351
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
352
|
+
)
|
|
353
|
+
|
|
354
|
+
sig do
|
|
355
|
+
override.returns(
|
|
356
|
+
T::Array[
|
|
357
|
+
WhopSDK::VerificationSucceededWebhookEvent::Data::Status::TaggedSymbol
|
|
358
|
+
]
|
|
359
|
+
)
|
|
360
|
+
end
|
|
361
|
+
def self.values
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
end
|
|
365
|
+
end
|
|
366
|
+
end
|
|
367
|
+
end
|
data/rbi/whop_sdk/models.rbi
CHANGED
|
@@ -272,6 +272,14 @@ module WhopSDK
|
|
|
272
272
|
|
|
273
273
|
Languages = WhopSDK::Models::Languages
|
|
274
274
|
|
|
275
|
+
LeadCreateParams = WhopSDK::Models::LeadCreateParams
|
|
276
|
+
|
|
277
|
+
LeadListParams = WhopSDK::Models::LeadListParams
|
|
278
|
+
|
|
279
|
+
LeadRetrieveParams = WhopSDK::Models::LeadRetrieveParams
|
|
280
|
+
|
|
281
|
+
LeadUpdateParams = WhopSDK::Models::LeadUpdateParams
|
|
282
|
+
|
|
275
283
|
LedgerAccountRetrieveParams = WhopSDK::Models::LedgerAccountRetrieveParams
|
|
276
284
|
|
|
277
285
|
Lesson = WhopSDK::Models::Lesson
|
|
@@ -291,6 +299,9 @@ module WhopSDK
|
|
|
291
299
|
MembershipActivatedWebhookEvent =
|
|
292
300
|
WhopSDK::Models::MembershipActivatedWebhookEvent
|
|
293
301
|
|
|
302
|
+
MembershipCancelAtPeriodEndChangedWebhookEvent =
|
|
303
|
+
WhopSDK::Models::MembershipCancelAtPeriodEndChangedWebhookEvent
|
|
304
|
+
|
|
294
305
|
MembershipCancelParams = WhopSDK::Models::MembershipCancelParams
|
|
295
306
|
|
|
296
307
|
MembershipDeactivatedWebhookEvent =
|
|
@@ -356,8 +367,13 @@ module WhopSDK
|
|
|
356
367
|
|
|
357
368
|
PaymentVoidParams = WhopSDK::Models::PaymentVoidParams
|
|
358
369
|
|
|
370
|
+
PayoutMethodCreatedWebhookEvent =
|
|
371
|
+
WhopSDK::Models::PayoutMethodCreatedWebhookEvent
|
|
372
|
+
|
|
359
373
|
PayoutMethodListParams = WhopSDK::Models::PayoutMethodListParams
|
|
360
374
|
|
|
375
|
+
PayoutMethodRetrieveParams = WhopSDK::Models::PayoutMethodRetrieveParams
|
|
376
|
+
|
|
361
377
|
Plan = WhopSDK::Models::Plan
|
|
362
378
|
|
|
363
379
|
PlanCreateParams = WhopSDK::Models::PlanCreateParams
|
|
@@ -475,6 +491,8 @@ module WhopSDK
|
|
|
475
491
|
|
|
476
492
|
TaxType = WhopSDK::Models::TaxType
|
|
477
493
|
|
|
494
|
+
TopupCreateParams = WhopSDK::Models::TopupCreateParams
|
|
495
|
+
|
|
478
496
|
Transfer = WhopSDK::Models::Transfer
|
|
479
497
|
|
|
480
498
|
TransferCreateParams = WhopSDK::Models::TransferCreateParams
|
|
@@ -489,6 +507,11 @@ module WhopSDK
|
|
|
489
507
|
|
|
490
508
|
UserRetrieveParams = WhopSDK::Models::UserRetrieveParams
|
|
491
509
|
|
|
510
|
+
VerificationRetrieveParams = WhopSDK::Models::VerificationRetrieveParams
|
|
511
|
+
|
|
512
|
+
VerificationSucceededWebhookEvent =
|
|
513
|
+
WhopSDK::Models::VerificationSucceededWebhookEvent
|
|
514
|
+
|
|
492
515
|
Visibility = WhopSDK::Models::Visibility
|
|
493
516
|
|
|
494
517
|
VisibilityFilter = WhopSDK::Models::VisibilityFilter
|