whop_sdk 0.0.22 → 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 +10 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +4 -0
- 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/membership_activated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/membership_deactivated_webhook_event.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_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 +9 -1
- 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/verification_succeeded_webhook_event.rb +9 -1
- 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 +14 -0
- data/lib/whop_sdk/resources/files.rb +56 -0
- data/lib/whop_sdk/resources/plans.rb +6 -2
- data/lib/whop_sdk/resources/webhooks.rb +158 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +15 -0
- data/rbi/whop_sdk/client.rbi +3 -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/membership_activated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +9 -1
- 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_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 +9 -1
- 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/verification_succeeded_webhook_event.rbi +9 -1
- 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 +14 -0
- data/rbi/whop_sdk/resources/files.rbi +40 -0
- data/rbi/whop_sdk/resources/plans.rbi +6 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +140 -0
- data/sig/whop_sdk/client.rbs +2 -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/membership_activated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/membership_deactivated_webhook_event.rbs +7 -2
- 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_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 +7 -2
- 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/verification_succeeded_webhook_event.rbs +7 -2
- 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 +14 -0
- data/sig/whop_sdk/resources/files.rbs +17 -0
- data/sig/whop_sdk/resources/plans.rbs +2 -0
- data/sig/whop_sdk/resources/webhooks.rbs +36 -0
- metadata +47 -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,15 @@
|
|
|
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
|
+
|
|
3
13
|
## 0.0.22 (2026-01-07)
|
|
4
14
|
|
|
5
15
|
Full Changelog: [v0.0.20...v0.0.22](https://github.com/whopio/whopsdk-ruby/compare/v0.0.20...v0.0.22)
|
data/README.md
CHANGED
data/lib/whop_sdk/client.rb
CHANGED
|
@@ -156,6 +156,9 @@ module WhopSDK
|
|
|
156
156
|
# @return [WhopSDK::Resources::Topups]
|
|
157
157
|
attr_reader :topups
|
|
158
158
|
|
|
159
|
+
# @return [WhopSDK::Resources::Files]
|
|
160
|
+
attr_reader :files
|
|
161
|
+
|
|
159
162
|
# @api private
|
|
160
163
|
#
|
|
161
164
|
# @return [Hash{String=>String}]
|
|
@@ -257,6 +260,7 @@ module WhopSDK
|
|
|
257
260
|
@verifications = WhopSDK::Resources::Verifications.new(client: self)
|
|
258
261
|
@leads = WhopSDK::Resources::Leads.new(client: self)
|
|
259
262
|
@topups = WhopSDK::Resources::Topups.new(client: self)
|
|
263
|
+
@files = WhopSDK::Resources::Files.new(client: self)
|
|
260
264
|
end
|
|
261
265
|
|
|
262
266
|
# Verifies a Whop user token
|
|
@@ -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
|
|
@@ -34,7 +34,13 @@ module WhopSDK
|
|
|
34
34
|
# @return [Symbol, :"membership.activated"]
|
|
35
35
|
required :type, const: :"membership.activated"
|
|
36
36
|
|
|
37
|
-
# @!
|
|
37
|
+
# @!attribute company_id
|
|
38
|
+
# The company ID that this webhook event is associated with
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :company_id, String, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"membership.activated")
|
|
38
44
|
# Some parameter documentations has been truncated, see
|
|
39
45
|
# {WhopSDK::Models::MembershipActivatedWebhookEvent} for more details.
|
|
40
46
|
#
|
|
@@ -44,6 +50,8 @@ module WhopSDK
|
|
|
44
50
|
#
|
|
45
51
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
46
52
|
#
|
|
53
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
54
|
+
#
|
|
47
55
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
48
56
|
#
|
|
49
57
|
# @param type [Symbol, :"membership.activated"] The webhook event type
|
|
@@ -34,7 +34,13 @@ module WhopSDK
|
|
|
34
34
|
# @return [Symbol, :"membership.cancel_at_period_end_changed"]
|
|
35
35
|
required :type, const: :"membership.cancel_at_period_end_changed"
|
|
36
36
|
|
|
37
|
-
# @!
|
|
37
|
+
# @!attribute company_id
|
|
38
|
+
# The company ID that this webhook event is associated with
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :company_id, String, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"membership.cancel_at_period_end_changed")
|
|
38
44
|
# Some parameter documentations has been truncated, see
|
|
39
45
|
# {WhopSDK::Models::MembershipCancelAtPeriodEndChangedWebhookEvent} for more
|
|
40
46
|
# details.
|
|
@@ -45,6 +51,8 @@ module WhopSDK
|
|
|
45
51
|
#
|
|
46
52
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
47
53
|
#
|
|
54
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
55
|
+
#
|
|
48
56
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
49
57
|
#
|
|
50
58
|
# @param type [Symbol, :"membership.cancel_at_period_end_changed"] The webhook event type
|
|
@@ -34,7 +34,13 @@ module WhopSDK
|
|
|
34
34
|
# @return [Symbol, :"membership.deactivated"]
|
|
35
35
|
required :type, const: :"membership.deactivated"
|
|
36
36
|
|
|
37
|
-
# @!
|
|
37
|
+
# @!attribute company_id
|
|
38
|
+
# The company ID that this webhook event is associated with
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :company_id, String, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"membership.deactivated")
|
|
38
44
|
# Some parameter documentations has been truncated, see
|
|
39
45
|
# {WhopSDK::Models::MembershipDeactivatedWebhookEvent} for more details.
|
|
40
46
|
#
|
|
@@ -44,6 +50,8 @@ module WhopSDK
|
|
|
44
50
|
#
|
|
45
51
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
46
52
|
#
|
|
53
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
54
|
+
#
|
|
47
55
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
48
56
|
#
|
|
49
57
|
# @param type [Symbol, :"membership.deactivated"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"payment.created"]
|
|
34
34
|
required :type, const: :"payment.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: :"payment.created")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Payment] An object representing a receipt for a membership.
|
|
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, :"payment.created"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"payment.failed"]
|
|
34
34
|
required :type, const: :"payment.failed"
|
|
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: :"payment.failed")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Payment] An object representing a receipt for a membership.
|
|
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, :"payment.failed"] The webhook event type
|