whop_sdk 0.0.15 → 0.0.17
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 +22 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +4 -0
- data/lib/whop_sdk/models/course.rb +65 -1
- data/lib/whop_sdk/models/course_lesson_interaction.rb +23 -1
- data/lib/whop_sdk/models/course_lesson_interaction_list_item.rb +23 -1
- data/lib/whop_sdk/models/payment_list_fees_params.rb +46 -0
- data/lib/whop_sdk/models/payment_list_fees_response.rb +84 -0
- data/lib/whop_sdk/models/payment_method_list_response.rb +214 -76
- data/lib/whop_sdk/models/payment_method_retrieve_response.rb +214 -76
- data/lib/whop_sdk/models/payout_method_list_params.rb +54 -0
- data/lib/whop_sdk/models/payout_method_list_response.rb +95 -0
- data/lib/whop_sdk/models/withdrawal_create_params.rb +46 -0
- data/lib/whop_sdk/models/withdrawal_create_response.rb +275 -0
- data/lib/whop_sdk/models.rb +6 -0
- data/lib/whop_sdk/resources/payment_methods.rb +2 -2
- data/lib/whop_sdk/resources/payments.rb +35 -0
- data/lib/whop_sdk/resources/payout_methods.rb +49 -0
- data/lib/whop_sdk/resources/withdrawals.rb +34 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +7 -0
- data/rbi/whop_sdk/client.rbi +3 -0
- data/rbi/whop_sdk/models/course.rbi +123 -3
- data/rbi/whop_sdk/models/course_lesson_interaction.rbi +55 -2
- data/rbi/whop_sdk/models/course_lesson_interaction_list_item.rbi +60 -2
- data/rbi/whop_sdk/models/payment_list_fees_params.rbi +67 -0
- data/rbi/whop_sdk/models/payment_list_fees_response.rbi +239 -0
- data/rbi/whop_sdk/models/payment_method_list_response.rbi +305 -83
- data/rbi/whop_sdk/models/payment_method_retrieve_response.rbi +305 -88
- data/rbi/whop_sdk/models/payout_method_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +200 -0
- data/rbi/whop_sdk/models/withdrawal_create_params.rbi +67 -0
- data/rbi/whop_sdk/models/withdrawal_create_response.rbi +564 -0
- data/rbi/whop_sdk/models.rbi +6 -0
- data/rbi/whop_sdk/resources/payment_methods.rbi +2 -2
- data/rbi/whop_sdk/resources/payments.rbi +34 -0
- data/rbi/whop_sdk/resources/payout_methods.rbi +46 -0
- data/rbi/whop_sdk/resources/withdrawals.rbi +29 -0
- data/sig/whop_sdk/client.rbs +2 -0
- data/sig/whop_sdk/models/course.rbs +50 -3
- data/sig/whop_sdk/models/course_lesson_interaction.rbs +28 -3
- data/sig/whop_sdk/models/course_lesson_interaction_list_item.rbs +28 -3
- data/sig/whop_sdk/models/payment_list_fees_params.rbs +36 -0
- data/sig/whop_sdk/models/payment_list_fees_response.rbs +104 -0
- data/sig/whop_sdk/models/payment_method_list_response.rbs +149 -41
- data/sig/whop_sdk/models/payment_method_retrieve_response.rbs +149 -41
- data/sig/whop_sdk/models/payout_method_list_params.rbs +46 -0
- data/sig/whop_sdk/models/payout_method_list_response.rbs +83 -0
- data/sig/whop_sdk/models/withdrawal_create_params.rbs +41 -0
- data/sig/whop_sdk/models/withdrawal_create_response.rbs +243 -0
- data/sig/whop_sdk/models.rbs +6 -0
- data/sig/whop_sdk/resources/payment_methods.rbs +2 -2
- data/sig/whop_sdk/resources/payments.rbs +9 -0
- data/sig/whop_sdk/resources/payout_methods.rbs +16 -0
- data/sig/whop_sdk/resources/withdrawals.rbs +8 -0
- metadata +23 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Resources
|
|
3
|
+
class PayoutMethods
|
|
4
|
+
def list: (
|
|
5
|
+
company_id: String,
|
|
6
|
+
?after: String?,
|
|
7
|
+
?before: String?,
|
|
8
|
+
?first: Integer?,
|
|
9
|
+
?last: Integer?,
|
|
10
|
+
?request_options: WhopSDK::request_opts
|
|
11
|
+
) -> WhopSDK::Internal::CursorPage[WhopSDK::Models::PayoutMethodListResponse]
|
|
12
|
+
|
|
13
|
+
def initialize: (client: WhopSDK::Client) -> void
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Resources
|
|
3
3
|
class Withdrawals
|
|
4
|
+
def create: (
|
|
5
|
+
amount: Float,
|
|
6
|
+
company_id: String,
|
|
7
|
+
currency: WhopSDK::Models::currency,
|
|
8
|
+
?payout_method_id: String?,
|
|
9
|
+
?request_options: WhopSDK::request_opts
|
|
10
|
+
) -> WhopSDK::Models::WithdrawalCreateResponse
|
|
11
|
+
|
|
4
12
|
def retrieve: (
|
|
5
13
|
String id,
|
|
6
14
|
?request_options: WhopSDK::request_opts
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: whop_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Whop
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|
|
@@ -281,6 +281,8 @@ files:
|
|
|
281
281
|
- lib/whop_sdk/models/payment.rb
|
|
282
282
|
- lib/whop_sdk/models/payment_create_params.rb
|
|
283
283
|
- lib/whop_sdk/models/payment_failed_webhook_event.rb
|
|
284
|
+
- lib/whop_sdk/models/payment_list_fees_params.rb
|
|
285
|
+
- lib/whop_sdk/models/payment_list_fees_response.rb
|
|
284
286
|
- lib/whop_sdk/models/payment_list_params.rb
|
|
285
287
|
- lib/whop_sdk/models/payment_list_response.rb
|
|
286
288
|
- lib/whop_sdk/models/payment_method_list_params.rb
|
|
@@ -295,6 +297,8 @@ files:
|
|
|
295
297
|
- lib/whop_sdk/models/payment_retry_params.rb
|
|
296
298
|
- lib/whop_sdk/models/payment_succeeded_webhook_event.rb
|
|
297
299
|
- lib/whop_sdk/models/payment_void_params.rb
|
|
300
|
+
- lib/whop_sdk/models/payout_method_list_params.rb
|
|
301
|
+
- lib/whop_sdk/models/payout_method_list_response.rb
|
|
298
302
|
- lib/whop_sdk/models/plan.rb
|
|
299
303
|
- lib/whop_sdk/models/plan_create_params.rb
|
|
300
304
|
- lib/whop_sdk/models/plan_delete_params.rb
|
|
@@ -382,6 +386,8 @@ files:
|
|
|
382
386
|
- lib/whop_sdk/models/who_can_post.rb
|
|
383
387
|
- lib/whop_sdk/models/who_can_post_types.rb
|
|
384
388
|
- lib/whop_sdk/models/who_can_react.rb
|
|
389
|
+
- lib/whop_sdk/models/withdrawal_create_params.rb
|
|
390
|
+
- lib/whop_sdk/models/withdrawal_create_response.rb
|
|
385
391
|
- lib/whop_sdk/models/withdrawal_created_webhook_event.rb
|
|
386
392
|
- lib/whop_sdk/models/withdrawal_fee_types.rb
|
|
387
393
|
- lib/whop_sdk/models/withdrawal_list_params.rb
|
|
@@ -420,6 +426,7 @@ files:
|
|
|
420
426
|
- lib/whop_sdk/resources/notifications.rb
|
|
421
427
|
- lib/whop_sdk/resources/payment_methods.rb
|
|
422
428
|
- lib/whop_sdk/resources/payments.rb
|
|
429
|
+
- lib/whop_sdk/resources/payout_methods.rb
|
|
423
430
|
- lib/whop_sdk/resources/plans.rb
|
|
424
431
|
- lib/whop_sdk/resources/products.rb
|
|
425
432
|
- lib/whop_sdk/resources/promo_codes.rb
|
|
@@ -651,6 +658,8 @@ files:
|
|
|
651
658
|
- rbi/whop_sdk/models/payment.rbi
|
|
652
659
|
- rbi/whop_sdk/models/payment_create_params.rbi
|
|
653
660
|
- rbi/whop_sdk/models/payment_failed_webhook_event.rbi
|
|
661
|
+
- rbi/whop_sdk/models/payment_list_fees_params.rbi
|
|
662
|
+
- rbi/whop_sdk/models/payment_list_fees_response.rbi
|
|
654
663
|
- rbi/whop_sdk/models/payment_list_params.rbi
|
|
655
664
|
- rbi/whop_sdk/models/payment_list_response.rbi
|
|
656
665
|
- rbi/whop_sdk/models/payment_method_list_params.rbi
|
|
@@ -665,6 +674,8 @@ files:
|
|
|
665
674
|
- rbi/whop_sdk/models/payment_retry_params.rbi
|
|
666
675
|
- rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi
|
|
667
676
|
- rbi/whop_sdk/models/payment_void_params.rbi
|
|
677
|
+
- rbi/whop_sdk/models/payout_method_list_params.rbi
|
|
678
|
+
- rbi/whop_sdk/models/payout_method_list_response.rbi
|
|
668
679
|
- rbi/whop_sdk/models/plan.rbi
|
|
669
680
|
- rbi/whop_sdk/models/plan_create_params.rbi
|
|
670
681
|
- rbi/whop_sdk/models/plan_delete_params.rbi
|
|
@@ -752,6 +763,8 @@ files:
|
|
|
752
763
|
- rbi/whop_sdk/models/who_can_post.rbi
|
|
753
764
|
- rbi/whop_sdk/models/who_can_post_types.rbi
|
|
754
765
|
- rbi/whop_sdk/models/who_can_react.rbi
|
|
766
|
+
- rbi/whop_sdk/models/withdrawal_create_params.rbi
|
|
767
|
+
- rbi/whop_sdk/models/withdrawal_create_response.rbi
|
|
755
768
|
- rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi
|
|
756
769
|
- rbi/whop_sdk/models/withdrawal_fee_types.rbi
|
|
757
770
|
- rbi/whop_sdk/models/withdrawal_list_params.rbi
|
|
@@ -790,6 +803,7 @@ files:
|
|
|
790
803
|
- rbi/whop_sdk/resources/notifications.rbi
|
|
791
804
|
- rbi/whop_sdk/resources/payment_methods.rbi
|
|
792
805
|
- rbi/whop_sdk/resources/payments.rbi
|
|
806
|
+
- rbi/whop_sdk/resources/payout_methods.rbi
|
|
793
807
|
- rbi/whop_sdk/resources/plans.rbi
|
|
794
808
|
- rbi/whop_sdk/resources/products.rbi
|
|
795
809
|
- rbi/whop_sdk/resources/promo_codes.rbi
|
|
@@ -1020,6 +1034,8 @@ files:
|
|
|
1020
1034
|
- sig/whop_sdk/models/payment.rbs
|
|
1021
1035
|
- sig/whop_sdk/models/payment_create_params.rbs
|
|
1022
1036
|
- sig/whop_sdk/models/payment_failed_webhook_event.rbs
|
|
1037
|
+
- sig/whop_sdk/models/payment_list_fees_params.rbs
|
|
1038
|
+
- sig/whop_sdk/models/payment_list_fees_response.rbs
|
|
1023
1039
|
- sig/whop_sdk/models/payment_list_params.rbs
|
|
1024
1040
|
- sig/whop_sdk/models/payment_list_response.rbs
|
|
1025
1041
|
- sig/whop_sdk/models/payment_method_list_params.rbs
|
|
@@ -1034,6 +1050,8 @@ files:
|
|
|
1034
1050
|
- sig/whop_sdk/models/payment_retry_params.rbs
|
|
1035
1051
|
- sig/whop_sdk/models/payment_succeeded_webhook_event.rbs
|
|
1036
1052
|
- sig/whop_sdk/models/payment_void_params.rbs
|
|
1053
|
+
- sig/whop_sdk/models/payout_method_list_params.rbs
|
|
1054
|
+
- sig/whop_sdk/models/payout_method_list_response.rbs
|
|
1037
1055
|
- sig/whop_sdk/models/plan.rbs
|
|
1038
1056
|
- sig/whop_sdk/models/plan_create_params.rbs
|
|
1039
1057
|
- sig/whop_sdk/models/plan_delete_params.rbs
|
|
@@ -1121,6 +1139,8 @@ files:
|
|
|
1121
1139
|
- sig/whop_sdk/models/who_can_post.rbs
|
|
1122
1140
|
- sig/whop_sdk/models/who_can_post_types.rbs
|
|
1123
1141
|
- sig/whop_sdk/models/who_can_react.rbs
|
|
1142
|
+
- sig/whop_sdk/models/withdrawal_create_params.rbs
|
|
1143
|
+
- sig/whop_sdk/models/withdrawal_create_response.rbs
|
|
1124
1144
|
- sig/whop_sdk/models/withdrawal_created_webhook_event.rbs
|
|
1125
1145
|
- sig/whop_sdk/models/withdrawal_fee_types.rbs
|
|
1126
1146
|
- sig/whop_sdk/models/withdrawal_list_params.rbs
|
|
@@ -1159,6 +1179,7 @@ files:
|
|
|
1159
1179
|
- sig/whop_sdk/resources/notifications.rbs
|
|
1160
1180
|
- sig/whop_sdk/resources/payment_methods.rbs
|
|
1161
1181
|
- sig/whop_sdk/resources/payments.rbs
|
|
1182
|
+
- sig/whop_sdk/resources/payout_methods.rbs
|
|
1162
1183
|
- sig/whop_sdk/resources/plans.rbs
|
|
1163
1184
|
- sig/whop_sdk/resources/products.rbs
|
|
1164
1185
|
- sig/whop_sdk/resources/promo_codes.rbs
|