whop_sdk 0.0.20 → 0.0.23
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 +41 -0
- data/README.md +10 -1
- data/lib/whop_sdk/client.rb +16 -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/course_lesson_interaction_completed_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/dispute_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_approved_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_deleted_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_denied_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/file_create_params.rb +22 -0
- data/lib/whop_sdk/models/file_create_response.rb +90 -0
- data/lib/whop_sdk/models/file_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/file_retrieve_response.rb +74 -0
- data/lib/whop_sdk/models/invoice_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/invoice_paid_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/invoice_past_due_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/invoice_voided_webhook_event.rb +9 -1
- 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_activated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +61 -0
- data/lib/whop_sdk/models/membership_deactivated_webhook_event.rb +9 -1
- 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_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payment_failed_webhook_event.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/payment_method_types.rb +30 -30
- data/lib/whop_sdk/models/payment_pending_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payment_succeeded_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +176 -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/plan_create_params.rb +9 -1
- data/lib/whop_sdk/models/plan_update_params.rb +9 -1
- data/lib/whop_sdk/models/refund_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/refund_updated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +9 -1
- 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 +150 -0
- data/lib/whop_sdk/models/webhook_create_params.rb +117 -0
- data/lib/whop_sdk/models/webhook_create_response.rb +184 -0
- data/lib/whop_sdk/models/webhook_delete_params.rb +14 -0
- data/lib/whop_sdk/models/webhook_delete_response.rb +8 -0
- data/lib/whop_sdk/models/webhook_list_params.rb +54 -0
- data/lib/whop_sdk/models/webhook_list_response.rb +123 -0
- data/lib/whop_sdk/models/webhook_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/webhook_retrieve_response.rb +176 -0
- data/lib/whop_sdk/models/webhook_update_params.rb +104 -0
- data/lib/whop_sdk/models/webhook_update_response.rb +176 -0
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models.rb +35 -0
- data/lib/whop_sdk/resources/files.rb +56 -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/plans.rb +6 -2
- 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 +159 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +35 -0
- data/rbi/whop_sdk/client.rbi +12 -0
- data/rbi/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_approved_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_deleted_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_denied_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/file_create_params.rbi +40 -0
- data/rbi/whop_sdk/models/file_create_response.rbi +140 -0
- data/rbi/whop_sdk/models/file_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +129 -0
- data/rbi/whop_sdk/models/invoice_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/invoice_paid_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/invoice_past_due_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/invoice_voided_webhook_event.rbi +9 -1
- 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_activated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +85 -0
- data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +9 -1
- 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_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payment_failed_webhook_event.rbi +9 -1
- 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/payment_method_types.rbi +33 -33
- data/rbi/whop_sdk/models/payment_pending_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +348 -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/plan_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/plan_update_params.rbi +8 -0
- data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +9 -1
- 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 +375 -0
- data/rbi/whop_sdk/models/webhook_create_params.rbi +275 -0
- data/rbi/whop_sdk/models/webhook_create_response.rbi +494 -0
- data/rbi/whop_sdk/models/webhook_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/webhook_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/webhook_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/webhook_list_response.rbi +297 -0
- data/rbi/whop_sdk/models/webhook_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +491 -0
- data/rbi/whop_sdk/models/webhook_update_params.rbi +263 -0
- data/rbi/whop_sdk/models/webhook_update_response.rbi +486 -0
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models.rbi +37 -0
- data/rbi/whop_sdk/resources/files.rbi +40 -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/plans.rbi +6 -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 +144 -1
- data/sig/whop_sdk/client.rbs +8 -0
- data/sig/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/dispute_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/dispute_updated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_approved_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_deleted_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_denied_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/file_create_params.rbs +23 -0
- data/sig/whop_sdk/models/file_create_response.rbs +68 -0
- data/sig/whop_sdk/models/file_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/file_retrieve_response.rbs +58 -0
- data/sig/whop_sdk/models/invoice_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/invoice_paid_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/invoice_past_due_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/invoice_voided_webhook_event.rbs +7 -2
- 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_activated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +45 -0
- data/sig/whop_sdk/models/membership_deactivated_webhook_event.rbs +7 -2
- 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_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payment_failed_webhook_event.rbs +7 -2
- 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/payment_method_types.rbs +61 -61
- data/sig/whop_sdk/models/payment_pending_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payment_succeeded_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +145 -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/plan_create_params.rbs +5 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +5 -0
- data/sig/whop_sdk/models/refund_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs +7 -2
- 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 +159 -0
- data/sig/whop_sdk/models/webhook_create_params.rbs +126 -0
- data/sig/whop_sdk/models/webhook_create_response.rbs +203 -0
- data/sig/whop_sdk/models/webhook_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/webhook_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/webhook_list_params.rbs +46 -0
- data/sig/whop_sdk/models/webhook_list_response.rbs +125 -0
- data/sig/whop_sdk/models/webhook_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/webhook_retrieve_response.rbs +198 -0
- data/sig/whop_sdk/models/webhook_update_params.rbs +121 -0
- data/sig/whop_sdk/models/webhook_update_response.rbs +198 -0
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models.rbs +34 -0
- data/sig/whop_sdk/resources/files.rbs +17 -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/plans.rbs +2 -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 +40 -1
- metadata +107 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c724e98153a9b2da18320ec44a1a8c6210873521c6eb4525c5f93207913190e
|
|
4
|
+
data.tar.gz: 418b37092a6facdd88dfc74ff4e273767fcb62efa4dfed034cd783cf3ee8790c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 121e768b3fd4815b3e63d0a40e519468bca26dd2768ebaaf9ee885c653a876e295abdac34f0e584c952054a019ce22bda4785fac3f14c8d54819833b40589026
|
|
7
|
+
data.tar.gz: 2e92c54e7a0c90b4c5df4357b1ba0744cb2bf0f2cd4e40e35d4f53f8f029073fd35d7dfb4f1b330bb5abb3f64c463868944458f753e8517a9f44ae31ecbaaa56
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.23 (2026-01-09)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.22...v0.0.23](https://github.com/whopio/whopsdk-ruby/compare/v0.0.22...v0.0.23)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([6d0422b](https://github.com/whopio/whopsdk-ruby/commit/6d0422b645c0755c08f35bd45f6cacb9b2a1ea11))
|
|
10
|
+
* **api:** api update ([0d95b1b](https://github.com/whopio/whopsdk-ruby/commit/0d95b1be6569e8b6432fd10f0357d56a675af676))
|
|
11
|
+
* **api:** manual updates ([55c8224](https://github.com/whopio/whopsdk-ruby/commit/55c822404713c1762d0a25b4d6541fa7d7236ecb))
|
|
12
|
+
|
|
13
|
+
## 0.0.22 (2026-01-07)
|
|
14
|
+
|
|
15
|
+
Full Changelog: [v0.0.20...v0.0.22](https://github.com/whopio/whopsdk-ruby/compare/v0.0.20...v0.0.22)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **api:** api update ([3632c09](https://github.com/whopio/whopsdk-ruby/commit/3632c093586872857f605313dc80935152ceb2b4))
|
|
20
|
+
* **api:** api update ([1369d6a](https://github.com/whopio/whopsdk-ruby/commit/1369d6a6a970fda437f47d398f14fdbd240326ba))
|
|
21
|
+
* **api:** api update ([185c3ca](https://github.com/whopio/whopsdk-ruby/commit/185c3cad5d43af42c98004dfb6320bba79a4eb37))
|
|
22
|
+
* **api:** api update ([7b79b5e](https://github.com/whopio/whopsdk-ruby/commit/7b79b5ecb10e297b2b40c6e9bcd8710486738370))
|
|
23
|
+
* **api:** api update ([6b01cd6](https://github.com/whopio/whopsdk-ruby/commit/6b01cd6184c20f7b58f6b290afce78daf4fcb4ef))
|
|
24
|
+
* **api:** api update ([f6a40eb](https://github.com/whopio/whopsdk-ruby/commit/f6a40eb1748db6b849c3857c8dd80ea2c2ce2402))
|
|
25
|
+
* **api:** api update ([131ef7d](https://github.com/whopio/whopsdk-ruby/commit/131ef7d9396af31afbbc4cedb3f62835453cd4ca))
|
|
26
|
+
* **api:** api update ([789ca6d](https://github.com/whopio/whopsdk-ruby/commit/789ca6d43533a22f94370de9c05c4ecf9714a044))
|
|
27
|
+
* **api:** api update ([d165256](https://github.com/whopio/whopsdk-ruby/commit/d16525653fc3bb992650b120b2b63f3bac07dd77))
|
|
28
|
+
* **api:** api update ([fe37424](https://github.com/whopio/whopsdk-ruby/commit/fe37424c5fd9a258bea07a1c003148ab6fbd02bd))
|
|
29
|
+
* **api:** api update ([43788a0](https://github.com/whopio/whopsdk-ruby/commit/43788a0bdefecbcd1bea6393fb6959cf082a1b44))
|
|
30
|
+
* **api:** api update ([72d8b00](https://github.com/whopio/whopsdk-ruby/commit/72d8b0022e186f3e9e3235fb95cbbe353e3a73a9))
|
|
31
|
+
* **api:** manual updates ([6e8e692](https://github.com/whopio/whopsdk-ruby/commit/6e8e692bef8870ba11108e1febdefdeb70e9edbd))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* calling `break` out of streams should be instantaneous ([7503ef5](https://github.com/whopio/whopsdk-ruby/commit/7503ef5800775d0c158500da07554f6f4e3e8d95))
|
|
37
|
+
* issue where json.parse errors when receiving HTTP 204 with nobody ([919e4e1](https://github.com/whopio/whopsdk-ruby/commit/919e4e1a8a9dcada6957cbf07884c5cba26663fa))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Documentation
|
|
41
|
+
|
|
42
|
+
* prominently feature MCP server setup in root SDK readmes ([8a808ef](https://github.com/whopio/whopsdk-ruby/commit/8a808ef1e408cc29afcdfce17d03dd828c09d7cb))
|
|
43
|
+
|
|
3
44
|
## 0.0.20 (2025-12-16)
|
|
4
45
|
|
|
5
46
|
Full Changelog: [v0.0.19...v0.0.20](https://github.com/whopio/whopsdk-ruby/compare/v0.0.19...v0.0.20)
|
data/README.md
CHANGED
|
@@ -4,6 +4,15 @@ The Whop Ruby library provides convenient access to the Whop REST API from any R
|
|
|
4
4
|
|
|
5
5
|
It is generated with [Stainless](https://www.stainless.com/).
|
|
6
6
|
|
|
7
|
+
## MCP Server
|
|
8
|
+
|
|
9
|
+
Use the Whop MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
|
|
10
|
+
|
|
11
|
+
[](https://cursor.com/en-US/install-mcp?name=%40whop%2Fmcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB3aG9wL21jcCJdfQ)
|
|
12
|
+
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40whop%2Fmcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40whop%2Fmcp%22%5D%7D)
|
|
13
|
+
|
|
14
|
+
> Note: You may need to set environment variables in your MCP client.
|
|
15
|
+
|
|
7
16
|
## Documentation
|
|
8
17
|
|
|
9
18
|
Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/whop_sdk).
|
|
@@ -17,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
17
26
|
<!-- x-release-please-start-version -->
|
|
18
27
|
|
|
19
28
|
```ruby
|
|
20
|
-
gem "whop_sdk", "~> 0.0.
|
|
29
|
+
gem "whop_sdk", "~> 0.0.23"
|
|
21
30
|
```
|
|
22
31
|
|
|
23
32
|
<!-- x-release-please-end -->
|
data/lib/whop_sdk/client.rb
CHANGED
|
@@ -147,6 +147,18 @@ module WhopSDK
|
|
|
147
147
|
# @return [WhopSDK::Resources::PayoutMethods]
|
|
148
148
|
attr_reader :payout_methods
|
|
149
149
|
|
|
150
|
+
# @return [WhopSDK::Resources::Verifications]
|
|
151
|
+
attr_reader :verifications
|
|
152
|
+
|
|
153
|
+
# @return [WhopSDK::Resources::Leads]
|
|
154
|
+
attr_reader :leads
|
|
155
|
+
|
|
156
|
+
# @return [WhopSDK::Resources::Topups]
|
|
157
|
+
attr_reader :topups
|
|
158
|
+
|
|
159
|
+
# @return [WhopSDK::Resources::Files]
|
|
160
|
+
attr_reader :files
|
|
161
|
+
|
|
150
162
|
# @api private
|
|
151
163
|
#
|
|
152
164
|
# @return [Hash{String=>String}]
|
|
@@ -245,6 +257,10 @@ module WhopSDK
|
|
|
245
257
|
@payment_methods = WhopSDK::Resources::PaymentMethods.new(client: self)
|
|
246
258
|
@fee_markups = WhopSDK::Resources::FeeMarkups.new(client: self)
|
|
247
259
|
@payout_methods = WhopSDK::Resources::PayoutMethods.new(client: self)
|
|
260
|
+
@verifications = WhopSDK::Resources::Verifications.new(client: self)
|
|
261
|
+
@leads = WhopSDK::Resources::Leads.new(client: self)
|
|
262
|
+
@topups = WhopSDK::Resources::Topups.new(client: self)
|
|
263
|
+
@files = WhopSDK::Resources::Files.new(client: self)
|
|
248
264
|
end
|
|
249
265
|
|
|
250
266
|
# Verifies a Whop user token
|
|
@@ -153,17 +153,19 @@ module WhopSDK
|
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
self.class.calibrate_socket_timeout(conn, deadline)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
156
|
+
::Kernel.catch(:jump) do
|
|
157
|
+
conn.request(req) do |rsp|
|
|
158
|
+
y << [req, rsp]
|
|
159
|
+
::Kernel.throw(:jump) if finished
|
|
160
|
+
|
|
161
|
+
rsp.read_body do |bytes|
|
|
162
|
+
y << bytes.force_encoding(Encoding::BINARY)
|
|
163
|
+
::Kernel.throw(:jump) if finished
|
|
164
|
+
|
|
165
|
+
self.class.calibrate_socket_timeout(conn, deadline)
|
|
166
|
+
end
|
|
167
|
+
eof = true
|
|
165
168
|
end
|
|
166
|
-
eof = true
|
|
167
169
|
end
|
|
168
170
|
end
|
|
169
171
|
ensure
|
|
@@ -657,7 +657,8 @@ module WhopSDK
|
|
|
657
657
|
def decode_content(headers, stream:, suppress_error: false)
|
|
658
658
|
case (content_type = headers["content-type"])
|
|
659
659
|
in WhopSDK::Internal::Util::JSON_CONTENT
|
|
660
|
-
json = stream.to_a.join
|
|
660
|
+
return nil if (json = stream.to_a.join).empty?
|
|
661
|
+
|
|
661
662
|
begin
|
|
662
663
|
JSON.parse(json, symbolize_names: true)
|
|
663
664
|
rescue JSON::ParserError => e
|
|
@@ -667,7 +668,11 @@ module WhopSDK
|
|
|
667
668
|
in WhopSDK::Internal::Util::JSONL_CONTENT
|
|
668
669
|
lines = decode_lines(stream)
|
|
669
670
|
chain_fused(lines) do |y|
|
|
670
|
-
lines.each
|
|
671
|
+
lines.each do
|
|
672
|
+
next if _1.empty?
|
|
673
|
+
|
|
674
|
+
y << JSON.parse(_1, symbolize_names: true)
|
|
675
|
+
end
|
|
671
676
|
end
|
|
672
677
|
in %r{^text/event-stream}
|
|
673
678
|
lines = decode_lines(stream)
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"course_lesson_interaction.completed"]
|
|
34
34
|
required :type, const: :"course_lesson_interaction.completed"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"course_lesson_interaction.completed")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::CourseLessonInteraction] A lesson interaction tracking user progress in courses
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"course_lesson_interaction.completed"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"dispute.created"]
|
|
34
34
|
required :type, const: :"dispute.created"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"dispute.created")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Dispute] An object representing a dispute against a company.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"dispute.created"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"dispute.updated"]
|
|
34
34
|
required :type, const: :"dispute.updated"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"dispute.updated")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Dispute] An object representing a dispute against a company.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"dispute.updated"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"entry.approved"]
|
|
34
34
|
required :type, const: :"entry.approved"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.approved")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"entry.approved"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"entry.created"]
|
|
34
34
|
required :type, const: :"entry.created"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.created")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"entry.created"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"entry.deleted"]
|
|
34
34
|
required :type, const: :"entry.deleted"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.deleted")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"entry.deleted"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"entry.denied"]
|
|
34
34
|
required :type, const: :"entry.denied"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.denied")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"entry.denied"] The webhook event type
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Files#create
|
|
6
|
+
class FileCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute filename
|
|
11
|
+
# The filename of the file
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :filename, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(filename:, request_options: {})
|
|
17
|
+
# @param filename [String] The filename of the file
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Files#create
|
|
6
|
+
class FileCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The ID of the file
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute content_type
|
|
14
|
+
# The MIME type of the file (e.g., image/jpeg, video/mp4)
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
required :content_type, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute filename
|
|
20
|
+
# The name of the file
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
required :filename, String, nil?: true
|
|
24
|
+
|
|
25
|
+
# @!attribute size
|
|
26
|
+
# The size of the file in bytes
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :size, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute upload_headers
|
|
32
|
+
# Headers to include in the upload request (only on create)
|
|
33
|
+
#
|
|
34
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
35
|
+
required :upload_headers, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute upload_status
|
|
38
|
+
# The upload status of the file
|
|
39
|
+
#
|
|
40
|
+
# @return [Symbol, WhopSDK::Models::FileCreateResponse::UploadStatus]
|
|
41
|
+
required :upload_status, enum: -> { WhopSDK::Models::FileCreateResponse::UploadStatus }
|
|
42
|
+
|
|
43
|
+
# @!attribute upload_url
|
|
44
|
+
# The presigned URL to upload the file to (only on create)
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
required :upload_url, String, nil?: true
|
|
48
|
+
|
|
49
|
+
# @!attribute url
|
|
50
|
+
# The URL to access the file
|
|
51
|
+
#
|
|
52
|
+
# @return [String, nil]
|
|
53
|
+
required :url, String, nil?: true
|
|
54
|
+
|
|
55
|
+
# @!method initialize(id:, content_type:, filename:, size:, upload_headers:, upload_status:, upload_url:, url:)
|
|
56
|
+
# A file that has been uploaded or is pending upload
|
|
57
|
+
#
|
|
58
|
+
# @param id [String] The ID of the file
|
|
59
|
+
#
|
|
60
|
+
# @param content_type [String, nil] The MIME type of the file (e.g., image/jpeg, video/mp4)
|
|
61
|
+
#
|
|
62
|
+
# @param filename [String, nil] The name of the file
|
|
63
|
+
#
|
|
64
|
+
# @param size [String, nil] The size of the file in bytes
|
|
65
|
+
#
|
|
66
|
+
# @param upload_headers [Hash{Symbol=>Object}, nil] Headers to include in the upload request (only on create)
|
|
67
|
+
#
|
|
68
|
+
# @param upload_status [Symbol, WhopSDK::Models::FileCreateResponse::UploadStatus] The upload status of the file
|
|
69
|
+
#
|
|
70
|
+
# @param upload_url [String, nil] The presigned URL to upload the file to (only on create)
|
|
71
|
+
#
|
|
72
|
+
# @param url [String, nil] The URL to access the file
|
|
73
|
+
|
|
74
|
+
# The upload status of the file
|
|
75
|
+
#
|
|
76
|
+
# @see WhopSDK::Models::FileCreateResponse#upload_status
|
|
77
|
+
module UploadStatus
|
|
78
|
+
extend WhopSDK::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
PENDING = :pending
|
|
81
|
+
PROCESSING = :processing
|
|
82
|
+
READY = :ready
|
|
83
|
+
FAILED = :failed
|
|
84
|
+
|
|
85
|
+
# @!method self.values
|
|
86
|
+
# @return [Array<Symbol>]
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Files#retrieve
|
|
6
|
+
class FileRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Files#retrieve
|
|
6
|
+
class FileRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The ID of the file
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute content_type
|
|
14
|
+
# The MIME type of the file (e.g., image/jpeg, video/mp4)
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
required :content_type, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute filename
|
|
20
|
+
# The name of the file
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
required :filename, String, nil?: true
|
|
24
|
+
|
|
25
|
+
# @!attribute size
|
|
26
|
+
# The size of the file in bytes
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :size, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute upload_status
|
|
32
|
+
# The upload status of the file
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, WhopSDK::Models::FileRetrieveResponse::UploadStatus]
|
|
35
|
+
required :upload_status, enum: -> { WhopSDK::Models::FileRetrieveResponse::UploadStatus }
|
|
36
|
+
|
|
37
|
+
# @!attribute url
|
|
38
|
+
# The URL to access the file
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
required :url, String, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!method initialize(id:, content_type:, filename:, size:, upload_status:, url:)
|
|
44
|
+
# A file that has been uploaded or is pending upload
|
|
45
|
+
#
|
|
46
|
+
# @param id [String] The ID of the file
|
|
47
|
+
#
|
|
48
|
+
# @param content_type [String, nil] The MIME type of the file (e.g., image/jpeg, video/mp4)
|
|
49
|
+
#
|
|
50
|
+
# @param filename [String, nil] The name of the file
|
|
51
|
+
#
|
|
52
|
+
# @param size [String, nil] The size of the file in bytes
|
|
53
|
+
#
|
|
54
|
+
# @param upload_status [Symbol, WhopSDK::Models::FileRetrieveResponse::UploadStatus] The upload status of the file
|
|
55
|
+
#
|
|
56
|
+
# @param url [String, nil] The URL to access the file
|
|
57
|
+
|
|
58
|
+
# The upload status of the file
|
|
59
|
+
#
|
|
60
|
+
# @see WhopSDK::Models::FileRetrieveResponse#upload_status
|
|
61
|
+
module UploadStatus
|
|
62
|
+
extend WhopSDK::Internal::Type::Enum
|
|
63
|
+
|
|
64
|
+
PENDING = :pending
|
|
65
|
+
PROCESSING = :processing
|
|
66
|
+
READY = :ready
|
|
67
|
+
FAILED = :failed
|
|
68
|
+
|
|
69
|
+
# @!method self.values
|
|
70
|
+
# @return [Array<Symbol>]
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"invoice.created"]
|
|
34
34
|
required :type, const: :"invoice.created"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.created")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"invoice.created"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"invoice.paid"]
|
|
34
34
|
required :type, const: :"invoice.paid"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.paid")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"invoice.paid"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"invoice.past_due"]
|
|
34
34
|
required :type, const: :"invoice.past_due"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.past_due")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"invoice.past_due"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"invoice.voided"]
|
|
34
34
|
required :type, const: :"invoice.voided"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.voided")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"invoice.voided"] The webhook event type
|