whop_sdk 0.0.19 → 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.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +41 -0
  3. data/README.md +10 -1
  4. data/lib/whop_sdk/client.rb +12 -0
  5. data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/whop_sdk/internal/util.rb +7 -2
  7. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +11 -1
  8. data/lib/whop_sdk/models/company_create_params.rb +17 -1
  9. data/lib/whop_sdk/models/company_update_params.rb +17 -1
  10. data/lib/whop_sdk/models/lead_create_params.rb +58 -0
  11. data/lib/whop_sdk/models/lead_create_response.rb +149 -0
  12. data/lib/whop_sdk/models/lead_list_params.rb +78 -0
  13. data/lib/whop_sdk/models/lead_list_response.rb +149 -0
  14. data/lib/whop_sdk/models/lead_retrieve_params.rb +14 -0
  15. data/lib/whop_sdk/models/lead_retrieve_response.rb +149 -0
  16. data/lib/whop_sdk/models/lead_update_params.rb +30 -0
  17. data/lib/whop_sdk/models/lead_update_response.rb +149 -0
  18. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +128 -2
  19. data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +53 -0
  20. data/lib/whop_sdk/models/membership_status.rb +1 -0
  21. data/lib/whop_sdk/models/payment.rb +3 -3
  22. data/lib/whop_sdk/models/payment_create_params.rb +9 -1
  23. data/lib/whop_sdk/models/payment_list_fees_response.rb +1 -0
  24. data/lib/whop_sdk/models/payment_list_response.rb +3 -3
  25. data/lib/whop_sdk/models/payment_method_list_params.rb +16 -8
  26. data/lib/whop_sdk/models/payment_method_retrieve_params.rb +13 -5
  27. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +168 -0
  28. data/lib/whop_sdk/models/payout_method_list_response.rb +31 -1
  29. data/lib/whop_sdk/models/payout_method_retrieve_params.rb +14 -0
  30. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +125 -0
  31. data/lib/whop_sdk/models/support_channel_create_params.rb +2 -2
  32. data/lib/whop_sdk/models/topup_create_params.rb +46 -0
  33. data/lib/whop_sdk/models/topup_create_response.rb +67 -0
  34. data/lib/whop_sdk/models/unwrap_webhook_event.rb +8 -1
  35. data/lib/whop_sdk/models/verification_retrieve_params.rb +14 -0
  36. data/lib/whop_sdk/models/verification_retrieve_response.rb +99 -0
  37. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +142 -0
  38. data/lib/whop_sdk/models.rb +21 -0
  39. data/lib/whop_sdk/resources/companies.rb +10 -2
  40. data/lib/whop_sdk/resources/leads.rb +158 -0
  41. data/lib/whop_sdk/resources/payment_methods.rb +12 -8
  42. data/lib/whop_sdk/resources/payments.rb +3 -1
  43. data/lib/whop_sdk/resources/payout_methods.rb +24 -0
  44. data/lib/whop_sdk/resources/support_channels.rb +1 -1
  45. data/lib/whop_sdk/resources/topups.rb +46 -0
  46. data/lib/whop_sdk/resources/verifications.rb +38 -0
  47. data/lib/whop_sdk/resources/webhooks.rb +1 -1
  48. data/lib/whop_sdk/version.rb +1 -1
  49. data/lib/whop_sdk.rb +20 -0
  50. data/rbi/whop_sdk/client.rbi +9 -0
  51. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +12 -0
  52. data/rbi/whop_sdk/models/company_create_params.rbi +16 -0
  53. data/rbi/whop_sdk/models/company_update_params.rbi +16 -0
  54. data/rbi/whop_sdk/models/lead_create_params.rbi +77 -0
  55. data/rbi/whop_sdk/models/lead_create_response.rbi +234 -0
  56. data/rbi/whop_sdk/models/lead_list_params.rbi +99 -0
  57. data/rbi/whop_sdk/models/lead_list_response.rbi +230 -0
  58. data/rbi/whop_sdk/models/lead_retrieve_params.rbi +27 -0
  59. data/rbi/whop_sdk/models/lead_retrieve_response.rbi +238 -0
  60. data/rbi/whop_sdk/models/lead_update_params.rbi +51 -0
  61. data/rbi/whop_sdk/models/lead_update_response.rbi +234 -0
  62. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +336 -0
  63. data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +77 -0
  64. data/rbi/whop_sdk/models/membership_status.rbi +1 -0
  65. data/rbi/whop_sdk/models/payment.rbi +4 -4
  66. data/rbi/whop_sdk/models/payment_create_params.rbi +8 -0
  67. data/rbi/whop_sdk/models/payment_list_fees_response.rbi +5 -0
  68. data/rbi/whop_sdk/models/payment_list_response.rbi +4 -4
  69. data/rbi/whop_sdk/models/payment_method_list_params.rbi +16 -8
  70. data/rbi/whop_sdk/models/payment_method_retrieve_params.rbi +17 -6
  71. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +340 -0
  72. data/rbi/whop_sdk/models/payout_method_list_response.rbi +58 -0
  73. data/rbi/whop_sdk/models/payout_method_retrieve_params.rbi +27 -0
  74. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +262 -0
  75. data/rbi/whop_sdk/models/support_channel_create_params.rbi +2 -2
  76. data/rbi/whop_sdk/models/topup_create_params.rbi +67 -0
  77. data/rbi/whop_sdk/models/topup_create_response.rbi +89 -0
  78. data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +4 -1
  79. data/rbi/whop_sdk/models/verification_retrieve_params.rbi +27 -0
  80. data/rbi/whop_sdk/models/verification_retrieve_response.rbi +290 -0
  81. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +367 -0
  82. data/rbi/whop_sdk/models.rbi +23 -0
  83. data/rbi/whop_sdk/resources/companies.rbi +12 -0
  84. data/rbi/whop_sdk/resources/leads.rbi +138 -0
  85. data/rbi/whop_sdk/resources/payment_methods.rbi +13 -7
  86. data/rbi/whop_sdk/resources/payments.rbi +3 -0
  87. data/rbi/whop_sdk/resources/payout_methods.rbi +18 -0
  88. data/rbi/whop_sdk/resources/support_channels.rbi +1 -1
  89. data/rbi/whop_sdk/resources/topups.rbi +39 -0
  90. data/rbi/whop_sdk/resources/verifications.rbi +30 -0
  91. data/rbi/whop_sdk/resources/webhooks.rbi +4 -1
  92. data/sig/whop_sdk/client.rbs +6 -0
  93. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
  94. data/sig/whop_sdk/models/company_create_params.rbs +10 -0
  95. data/sig/whop_sdk/models/company_update_params.rbs +10 -0
  96. data/sig/whop_sdk/models/lead_create_params.rbs +46 -0
  97. data/sig/whop_sdk/models/lead_create_response.rbs +104 -0
  98. data/sig/whop_sdk/models/lead_list_params.rbs +61 -0
  99. data/sig/whop_sdk/models/lead_list_response.rbs +104 -0
  100. data/sig/whop_sdk/models/lead_retrieve_params.rbs +15 -0
  101. data/sig/whop_sdk/models/lead_retrieve_response.rbs +104 -0
  102. data/sig/whop_sdk/models/lead_update_params.rbs +28 -0
  103. data/sig/whop_sdk/models/lead_update_response.rbs +104 -0
  104. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +134 -1
  105. data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +40 -0
  106. data/sig/whop_sdk/models/membership_status.rbs +2 -0
  107. data/sig/whop_sdk/models/payment_create_params.rbs +5 -0
  108. data/sig/whop_sdk/models/payment_list_fees_response.rbs +2 -0
  109. data/sig/whop_sdk/models/payment_method_list_params.rbs +11 -6
  110. data/sig/whop_sdk/models/payment_method_retrieve_params.rbs +9 -4
  111. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +140 -0
  112. data/sig/whop_sdk/models/payout_method_list_response.rbs +20 -0
  113. data/sig/whop_sdk/models/payout_method_retrieve_params.rbs +15 -0
  114. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +103 -0
  115. data/sig/whop_sdk/models/topup_create_params.rbs +41 -0
  116. data/sig/whop_sdk/models/topup_create_response.rbs +50 -0
  117. data/sig/whop_sdk/models/unwrap_webhook_event.rbs +3 -0
  118. data/sig/whop_sdk/models/verification_retrieve_params.rbs +15 -0
  119. data/sig/whop_sdk/models/verification_retrieve_response.rbs +117 -0
  120. data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +154 -0
  121. data/sig/whop_sdk/models.rbs +20 -0
  122. data/sig/whop_sdk/resources/companies.rbs +4 -0
  123. data/sig/whop_sdk/resources/leads.rbs +40 -0
  124. data/sig/whop_sdk/resources/payment_methods.rbs +4 -2
  125. data/sig/whop_sdk/resources/payments.rbs +1 -0
  126. data/sig/whop_sdk/resources/payout_methods.rbs +5 -0
  127. data/sig/whop_sdk/resources/topups.rbs +15 -0
  128. data/sig/whop_sdk/resources/verifications.rbs +12 -0
  129. data/sig/whop_sdk/resources/webhooks.rbs +4 -1
  130. metadata +62 -2
@@ -0,0 +1,262 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class PayoutMethodRetrieveResponse < WhopSDK::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ WhopSDK::Models::PayoutMethodRetrieveResponse,
10
+ WhopSDK::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The ID of the payout token
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ # The company associated with the payout token
19
+ sig do
20
+ returns(
21
+ T.nilable(WhopSDK::Models::PayoutMethodRetrieveResponse::Company)
22
+ )
23
+ end
24
+ attr_reader :company
25
+
26
+ sig do
27
+ params(
28
+ company:
29
+ T.nilable(
30
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Company::OrHash
31
+ )
32
+ ).void
33
+ end
34
+ attr_writer :company
35
+
36
+ # The currency code of the payout destination. This is the currency that payouts
37
+ # will be made in for this token.
38
+ sig { returns(String) }
39
+ attr_accessor :currency
40
+
41
+ # The payout destination associated with the payout token
42
+ sig do
43
+ returns(
44
+ T.nilable(WhopSDK::Models::PayoutMethodRetrieveResponse::Destination)
45
+ )
46
+ end
47
+ attr_reader :destination
48
+
49
+ sig do
50
+ params(
51
+ destination:
52
+ T.nilable(
53
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::OrHash
54
+ )
55
+ ).void
56
+ end
57
+ attr_writer :destination
58
+
59
+ # Whether this payout token is the default for the payout account
60
+ sig { returns(T::Boolean) }
61
+ attr_accessor :is_default
62
+
63
+ # An optional nickname for the payout token to help the user identify it. This is
64
+ # not used by the provider and is only for the user's reference.
65
+ sig { returns(T.nilable(String)) }
66
+ attr_accessor :nickname
67
+
68
+ # An object representing an user's setup payout destination.
69
+ sig do
70
+ params(
71
+ id: String,
72
+ company:
73
+ T.nilable(
74
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Company::OrHash
75
+ ),
76
+ currency: String,
77
+ destination:
78
+ T.nilable(
79
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::OrHash
80
+ ),
81
+ is_default: T::Boolean,
82
+ nickname: T.nilable(String)
83
+ ).returns(T.attached_class)
84
+ end
85
+ def self.new(
86
+ # The ID of the payout token
87
+ id:,
88
+ # The company associated with the payout token
89
+ company:,
90
+ # The currency code of the payout destination. This is the currency that payouts
91
+ # will be made in for this token.
92
+ currency:,
93
+ # The payout destination associated with the payout token
94
+ destination:,
95
+ # Whether this payout token is the default for the payout account
96
+ is_default:,
97
+ # An optional nickname for the payout token to help the user identify it. This is
98
+ # not used by the provider and is only for the user's reference.
99
+ nickname:
100
+ )
101
+ end
102
+
103
+ sig do
104
+ override.returns(
105
+ {
106
+ id: String,
107
+ company:
108
+ T.nilable(WhopSDK::Models::PayoutMethodRetrieveResponse::Company),
109
+ currency: String,
110
+ destination:
111
+ T.nilable(
112
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination
113
+ ),
114
+ is_default: T::Boolean,
115
+ nickname: T.nilable(String)
116
+ }
117
+ )
118
+ end
119
+ def to_hash
120
+ end
121
+
122
+ class Company < WhopSDK::Internal::Type::BaseModel
123
+ OrHash =
124
+ T.type_alias do
125
+ T.any(
126
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Company,
127
+ WhopSDK::Internal::AnyHash
128
+ )
129
+ end
130
+
131
+ # The ID (tag) of the company.
132
+ sig { returns(String) }
133
+ attr_accessor :id
134
+
135
+ # The company associated with the payout token
136
+ sig { params(id: String).returns(T.attached_class) }
137
+ def self.new(
138
+ # The ID (tag) of the company.
139
+ id:
140
+ )
141
+ end
142
+
143
+ sig { override.returns({ id: String }) }
144
+ def to_hash
145
+ end
146
+ end
147
+
148
+ class Destination < WhopSDK::Internal::Type::BaseModel
149
+ OrHash =
150
+ T.type_alias do
151
+ T.any(
152
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination,
153
+ WhopSDK::Internal::AnyHash
154
+ )
155
+ end
156
+
157
+ # The category of the payout destination
158
+ sig do
159
+ returns(
160
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category::TaggedSymbol
161
+ )
162
+ end
163
+ attr_accessor :category
164
+
165
+ # The country code of the payout destination
166
+ sig { returns(String) }
167
+ attr_accessor :country_code
168
+
169
+ # The name of the payer associated with the payout destination
170
+ sig { returns(String) }
171
+ attr_accessor :name
172
+
173
+ # The payout destination associated with the payout token
174
+ sig do
175
+ params(
176
+ category:
177
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category::OrSymbol,
178
+ country_code: String,
179
+ name: String
180
+ ).returns(T.attached_class)
181
+ end
182
+ def self.new(
183
+ # The category of the payout destination
184
+ category:,
185
+ # The country code of the payout destination
186
+ country_code:,
187
+ # The name of the payer associated with the payout destination
188
+ name:
189
+ )
190
+ end
191
+
192
+ sig do
193
+ override.returns(
194
+ {
195
+ category:
196
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category::TaggedSymbol,
197
+ country_code: String,
198
+ name: String
199
+ }
200
+ )
201
+ end
202
+ def to_hash
203
+ end
204
+
205
+ # The category of the payout destination
206
+ module Category
207
+ extend WhopSDK::Internal::Type::Enum
208
+
209
+ TaggedSymbol =
210
+ T.type_alias do
211
+ T.all(
212
+ Symbol,
213
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category
214
+ )
215
+ end
216
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
217
+
218
+ CRYPTO =
219
+ T.let(
220
+ :crypto,
221
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category::TaggedSymbol
222
+ )
223
+ RTP =
224
+ T.let(
225
+ :rtp,
226
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category::TaggedSymbol
227
+ )
228
+ NEXT_DAY_BANK =
229
+ T.let(
230
+ :next_day_bank,
231
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category::TaggedSymbol
232
+ )
233
+ BANK_WIRE =
234
+ T.let(
235
+ :bank_wire,
236
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category::TaggedSymbol
237
+ )
238
+ DIGITAL_WALLET =
239
+ T.let(
240
+ :digital_wallet,
241
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category::TaggedSymbol
242
+ )
243
+ UNKNOWN =
244
+ T.let(
245
+ :unknown,
246
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category::TaggedSymbol
247
+ )
248
+
249
+ sig do
250
+ override.returns(
251
+ T::Array[
252
+ WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category::TaggedSymbol
253
+ ]
254
+ )
255
+ end
256
+ def self.values
257
+ end
258
+ end
259
+ end
260
+ end
261
+ end
262
+ end
@@ -15,7 +15,7 @@ module WhopSDK
15
15
  sig { returns(String) }
16
16
  attr_accessor :company_id
17
17
 
18
- # The ID of the user to create the support chat for
18
+ # The ID (user_xxx) or username of the user to create the support chat for
19
19
  sig { returns(String) }
20
20
  attr_accessor :user_id
21
21
 
@@ -29,7 +29,7 @@ module WhopSDK
29
29
  def self.new(
30
30
  # The ID of the company to create the support chat in
31
31
  company_id:,
32
- # The ID of the user to create the support chat for
32
+ # The ID (user_xxx) or username of the user to create the support chat for
33
33
  user_id:,
34
34
  request_options: {}
35
35
  )
@@ -0,0 +1,67 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class TopupCreateParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::TopupCreateParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ # The amount to add to the balance.
15
+ sig { returns(Float) }
16
+ attr_accessor :amount
17
+
18
+ # The ID of the company to add funds to.
19
+ sig { returns(String) }
20
+ attr_accessor :company_id
21
+
22
+ # The currency of the top-up.
23
+ sig { returns(WhopSDK::Currency::OrSymbol) }
24
+ attr_accessor :currency
25
+
26
+ # The ID of the payment method to charge for the top-up.
27
+ sig { returns(String) }
28
+ attr_accessor :payment_method_id
29
+
30
+ sig do
31
+ params(
32
+ amount: Float,
33
+ company_id: String,
34
+ currency: WhopSDK::Currency::OrSymbol,
35
+ payment_method_id: String,
36
+ request_options: WhopSDK::RequestOptions::OrHash
37
+ ).returns(T.attached_class)
38
+ end
39
+ def self.new(
40
+ # The amount to add to the balance.
41
+ amount:,
42
+ # The ID of the company to add funds to.
43
+ company_id:,
44
+ # The currency of the top-up.
45
+ currency:,
46
+ # The ID of the payment method to charge for the top-up.
47
+ payment_method_id:,
48
+ request_options: {}
49
+ )
50
+ end
51
+
52
+ sig do
53
+ override.returns(
54
+ {
55
+ amount: Float,
56
+ company_id: String,
57
+ currency: WhopSDK::Currency::OrSymbol,
58
+ payment_method_id: String,
59
+ request_options: WhopSDK::RequestOptions
60
+ }
61
+ )
62
+ end
63
+ def to_hash
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,89 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class TopupCreateResponse < WhopSDK::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ WhopSDK::Models::TopupCreateResponse,
10
+ WhopSDK::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The payment ID
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ # The datetime the payment was created
19
+ sig { returns(Time) }
20
+ attr_accessor :created_at
21
+
22
+ # The available currencies on the platform
23
+ sig { returns(T.nilable(WhopSDK::Currency::TaggedSymbol)) }
24
+ attr_accessor :currency
25
+
26
+ # If the payment failed, the reason for the failure.
27
+ sig { returns(T.nilable(String)) }
28
+ attr_accessor :failure_message
29
+
30
+ # The datetime the payment was paid
31
+ sig { returns(T.nilable(Time)) }
32
+ attr_accessor :paid_at
33
+
34
+ # The status of a receipt
35
+ sig { returns(T.nilable(WhopSDK::ReceiptStatus::TaggedSymbol)) }
36
+ attr_accessor :status
37
+
38
+ # The total to show to the creator (excluding buyer fees).
39
+ sig { returns(T.nilable(Float)) }
40
+ attr_accessor :total
41
+
42
+ # An object representing a receipt for a membership.
43
+ sig do
44
+ params(
45
+ id: String,
46
+ created_at: Time,
47
+ currency: T.nilable(WhopSDK::Currency::OrSymbol),
48
+ failure_message: T.nilable(String),
49
+ paid_at: T.nilable(Time),
50
+ status: T.nilable(WhopSDK::ReceiptStatus::OrSymbol),
51
+ total: T.nilable(Float)
52
+ ).returns(T.attached_class)
53
+ end
54
+ def self.new(
55
+ # The payment ID
56
+ id:,
57
+ # The datetime the payment was created
58
+ created_at:,
59
+ # The available currencies on the platform
60
+ currency:,
61
+ # If the payment failed, the reason for the failure.
62
+ failure_message:,
63
+ # The datetime the payment was paid
64
+ paid_at:,
65
+ # The status of a receipt
66
+ status:,
67
+ # The total to show to the creator (excluding buyer fees).
68
+ total:
69
+ )
70
+ end
71
+
72
+ sig do
73
+ override.returns(
74
+ {
75
+ id: String,
76
+ created_at: Time,
77
+ currency: T.nilable(WhopSDK::Currency::TaggedSymbol),
78
+ failure_message: T.nilable(String),
79
+ paid_at: T.nilable(Time),
80
+ status: T.nilable(WhopSDK::ReceiptStatus::TaggedSymbol),
81
+ total: T.nilable(Float)
82
+ }
83
+ )
84
+ end
85
+ def to_hash
86
+ end
87
+ end
88
+ end
89
+ end
@@ -24,6 +24,8 @@ module WhopSDK
24
24
  WhopSDK::WithdrawalCreatedWebhookEvent,
25
25
  WhopSDK::WithdrawalUpdatedWebhookEvent,
26
26
  WhopSDK::CourseLessonInteractionCompletedWebhookEvent,
27
+ WhopSDK::PayoutMethodCreatedWebhookEvent,
28
+ WhopSDK::VerificationSucceededWebhookEvent,
27
29
  WhopSDK::PaymentCreatedWebhookEvent,
28
30
  WhopSDK::PaymentSucceededWebhookEvent,
29
31
  WhopSDK::PaymentFailedWebhookEvent,
@@ -31,7 +33,8 @@ module WhopSDK
31
33
  WhopSDK::DisputeCreatedWebhookEvent,
32
34
  WhopSDK::DisputeUpdatedWebhookEvent,
33
35
  WhopSDK::RefundCreatedWebhookEvent,
34
- WhopSDK::RefundUpdatedWebhookEvent
36
+ WhopSDK::RefundUpdatedWebhookEvent,
37
+ WhopSDK::MembershipCancelAtPeriodEndChangedWebhookEvent
35
38
  )
36
39
  end
37
40
 
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class VerificationRetrieveParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::VerificationRetrieveParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ sig do
15
+ params(request_options: WhopSDK::RequestOptions::OrHash).returns(
16
+ T.attached_class
17
+ )
18
+ end
19
+ def self.new(request_options: {})
20
+ end
21
+
22
+ sig { override.returns({ request_options: WhopSDK::RequestOptions }) }
23
+ def to_hash
24
+ end
25
+ end
26
+ end
27
+ end