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
|
@@ -11,10 +11,6 @@ module WhopSDK
|
|
|
11
11
|
T.any(WhopSDK::PaymentMethodListParams, WhopSDK::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# The ID of the Member to list payment methods for
|
|
15
|
-
sig { returns(String) }
|
|
16
|
-
attr_accessor :member_id
|
|
17
|
-
|
|
18
14
|
# Returns the elements in the list that come after the specified cursor.
|
|
19
15
|
sig { returns(T.nilable(String)) }
|
|
20
16
|
attr_accessor :after
|
|
@@ -23,6 +19,10 @@ module WhopSDK
|
|
|
23
19
|
sig { returns(T.nilable(String)) }
|
|
24
20
|
attr_accessor :before
|
|
25
21
|
|
|
22
|
+
# The ID of the Company. Provide either this or member_id (not both).
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_accessor :company_id
|
|
25
|
+
|
|
26
26
|
# The minimum creation date to filter by
|
|
27
27
|
sig { returns(T.nilable(Time)) }
|
|
28
28
|
attr_accessor :created_after
|
|
@@ -43,26 +43,31 @@ module WhopSDK
|
|
|
43
43
|
sig { returns(T.nilable(Integer)) }
|
|
44
44
|
attr_accessor :last
|
|
45
45
|
|
|
46
|
+
# The ID of the Member to list payment methods for
|
|
47
|
+
sig { returns(T.nilable(String)) }
|
|
48
|
+
attr_accessor :member_id
|
|
49
|
+
|
|
46
50
|
sig do
|
|
47
51
|
params(
|
|
48
|
-
member_id: String,
|
|
49
52
|
after: T.nilable(String),
|
|
50
53
|
before: T.nilable(String),
|
|
54
|
+
company_id: T.nilable(String),
|
|
51
55
|
created_after: T.nilable(Time),
|
|
52
56
|
created_before: T.nilable(Time),
|
|
53
57
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
54
58
|
first: T.nilable(Integer),
|
|
55
59
|
last: T.nilable(Integer),
|
|
60
|
+
member_id: T.nilable(String),
|
|
56
61
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
57
62
|
).returns(T.attached_class)
|
|
58
63
|
end
|
|
59
64
|
def self.new(
|
|
60
|
-
# The ID of the Member to list payment methods for
|
|
61
|
-
member_id:,
|
|
62
65
|
# Returns the elements in the list that come after the specified cursor.
|
|
63
66
|
after: nil,
|
|
64
67
|
# Returns the elements in the list that come before the specified cursor.
|
|
65
68
|
before: nil,
|
|
69
|
+
# The ID of the Company. Provide either this or member_id (not both).
|
|
70
|
+
company_id: nil,
|
|
66
71
|
# The minimum creation date to filter by
|
|
67
72
|
created_after: nil,
|
|
68
73
|
# The maximum creation date to filter by
|
|
@@ -73,6 +78,8 @@ module WhopSDK
|
|
|
73
78
|
first: nil,
|
|
74
79
|
# Returns the last _n_ elements from the list.
|
|
75
80
|
last: nil,
|
|
81
|
+
# The ID of the Member to list payment methods for
|
|
82
|
+
member_id: nil,
|
|
76
83
|
request_options: {}
|
|
77
84
|
)
|
|
78
85
|
end
|
|
@@ -80,14 +87,15 @@ module WhopSDK
|
|
|
80
87
|
sig do
|
|
81
88
|
override.returns(
|
|
82
89
|
{
|
|
83
|
-
member_id: String,
|
|
84
90
|
after: T.nilable(String),
|
|
85
91
|
before: T.nilable(String),
|
|
92
|
+
company_id: T.nilable(String),
|
|
86
93
|
created_after: T.nilable(Time),
|
|
87
94
|
created_before: T.nilable(Time),
|
|
88
95
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
89
96
|
first: T.nilable(Integer),
|
|
90
97
|
last: T.nilable(Integer),
|
|
98
|
+
member_id: T.nilable(String),
|
|
91
99
|
request_options: WhopSDK::RequestOptions
|
|
92
100
|
}
|
|
93
101
|
)
|
|
@@ -14,26 +14,37 @@ module WhopSDK
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# The ID of the
|
|
18
|
-
sig { returns(String) }
|
|
17
|
+
# The ID of the Company. Provide either this or member_id (not both).
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_accessor :company_id
|
|
20
|
+
|
|
21
|
+
# The ID of the Member. Provide either this or company_id (not both).
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
19
23
|
attr_accessor :member_id
|
|
20
24
|
|
|
21
25
|
sig do
|
|
22
26
|
params(
|
|
23
|
-
|
|
27
|
+
company_id: T.nilable(String),
|
|
28
|
+
member_id: T.nilable(String),
|
|
24
29
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
25
30
|
).returns(T.attached_class)
|
|
26
31
|
end
|
|
27
32
|
def self.new(
|
|
28
|
-
# The ID of the
|
|
29
|
-
|
|
33
|
+
# The ID of the Company. Provide either this or member_id (not both).
|
|
34
|
+
company_id: nil,
|
|
35
|
+
# The ID of the Member. Provide either this or company_id (not both).
|
|
36
|
+
member_id: nil,
|
|
30
37
|
request_options: {}
|
|
31
38
|
)
|
|
32
39
|
end
|
|
33
40
|
|
|
34
41
|
sig do
|
|
35
42
|
override.returns(
|
|
36
|
-
{
|
|
43
|
+
{
|
|
44
|
+
company_id: T.nilable(String),
|
|
45
|
+
member_id: T.nilable(String),
|
|
46
|
+
request_options: WhopSDK::RequestOptions
|
|
47
|
+
}
|
|
37
48
|
)
|
|
38
49
|
end
|
|
39
50
|
def to_hash
|
|
@@ -9,37 +9,37 @@ module WhopSDK
|
|
|
9
9
|
TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::PaymentMethodTypes) }
|
|
10
10
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
11
|
|
|
12
|
-
ACSS_DEBIT = T.let(:acss_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
13
|
-
AFFIRM = T.let(:affirm, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
14
12
|
AFTERPAY_CLEARPAY =
|
|
15
13
|
T.let(:afterpay_clearpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
16
14
|
ALIPAY = T.let(:alipay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
17
|
-
ALMA = T.let(:alma, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
18
15
|
AMAZON_PAY = T.let(:amazon_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
19
16
|
APPLE_PAY = T.let(:apple_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
20
|
-
AU_BECS_DEBIT =
|
|
21
|
-
T.let(:au_becs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
22
|
-
BACS_DEBIT = T.let(:bacs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
23
17
|
BANCONTACT = T.let(:bancontact, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
24
|
-
BILLIE = T.let(:billie, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
25
|
-
BLIK = T.let(:blik, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
26
|
-
BOLETO = T.let(:boleto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
27
18
|
CARD = T.let(:card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
28
19
|
CASHAPP = T.let(:cashapp, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
29
20
|
CRYPTO = T.let(:crypto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
30
|
-
EPS = T.let(:eps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
31
|
-
FPX = T.let(:fpx, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
32
|
-
GIROPAY = T.let(:giropay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
33
21
|
GOOGLE_PAY = T.let(:google_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
34
|
-
GRABPAY = T.let(:grabpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
35
22
|
IDEAL = T.let(:ideal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
36
|
-
KAKAO_PAY = T.let(:kakao_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
37
23
|
KLARNA = T.let(:klarna, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
38
|
-
KONBINI = T.let(:konbini, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
39
|
-
KR_CARD = T.let(:kr_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
40
|
-
LINK = T.let(:link, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
41
24
|
MOBILEPAY = T.let(:mobilepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
25
|
+
SEPA_DEBIT = T.let(:sepa_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
26
|
+
SWISH = T.let(:swish, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
27
|
+
TWINT = T.let(:twint, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
28
|
+
US_BANK_ACCOUNT =
|
|
29
|
+
T.let(:us_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
30
|
+
ZIP = T.let(:zip, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
31
|
+
VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
32
|
+
PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
33
|
+
SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
34
|
+
COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
35
|
+
SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
36
|
+
PLATFORM_BALANCE =
|
|
37
|
+
T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
38
|
+
APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
39
|
+
VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
40
|
+
AFFIRM = T.let(:affirm, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
42
41
|
MULTIBANCO = T.let(:multibanco, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
42
|
+
WECHAT_PAY = T.let(:wechat_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
43
43
|
NAVER_PAY = T.let(:naver_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
44
44
|
NZ_BANK_ACCOUNT =
|
|
45
45
|
T.let(:nz_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
@@ -56,14 +56,23 @@ module WhopSDK
|
|
|
56
56
|
SAMSUNG_PAY =
|
|
57
57
|
T.let(:samsung_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
58
58
|
SATISPAY = T.let(:satispay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
59
|
-
SEPA_DEBIT = T.let(:sepa_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
60
59
|
SOFORT = T.let(:sofort, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
KONBINI = T.let(:konbini, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
61
|
+
KR_CARD = T.let(:kr_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
62
|
+
LINK = T.let(:link, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
63
|
+
GRABPAY = T.let(:grabpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
64
|
+
KAKAO_PAY = T.let(:kakao_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
65
|
+
BILLIE = T.let(:billie, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
66
|
+
BLIK = T.let(:blik, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
67
|
+
BOLETO = T.let(:boleto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
68
|
+
EPS = T.let(:eps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
69
|
+
FPX = T.let(:fpx, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
70
|
+
GIROPAY = T.let(:giropay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
71
|
+
ACSS_DEBIT = T.let(:acss_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
72
|
+
ALMA = T.let(:alma, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
73
|
+
AU_BECS_DEBIT =
|
|
74
|
+
T.let(:au_becs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
75
|
+
BACS_DEBIT = T.let(:bacs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
67
76
|
BIZUM = T.let(:bizum, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
68
77
|
CAPCHASE_PAY =
|
|
69
78
|
T.let(:capchase_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
@@ -73,7 +82,6 @@ module WhopSDK
|
|
|
73
82
|
PAYPAY = T.let(:paypay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
74
83
|
SEQURA = T.let(:sequra, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
75
84
|
SCALAPAY = T.let(:scalapay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
76
|
-
VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
77
85
|
CUSTOM = T.let(:custom, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
78
86
|
CUSTOMER_BALANCE =
|
|
79
87
|
T.let(:customer_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
@@ -85,7 +93,6 @@ module WhopSDK
|
|
|
85
93
|
NG_CARD = T.let(:ng_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
86
94
|
NG_MARKET = T.let(:ng_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
87
95
|
NG_USSD = T.let(:ng_ussd, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
88
|
-
PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
89
96
|
PAYTO = T.let(:payto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
90
97
|
QRIS = T.let(:qris, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
91
98
|
RECHNUNG = T.let(:rechnung, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
@@ -100,13 +107,6 @@ module WhopSDK
|
|
|
100
107
|
T.let(:id_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
101
108
|
DEMO_PAY = T.let(:demo_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
102
109
|
SHOP_PAY = T.let(:shop_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
103
|
-
SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
104
|
-
COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
105
|
-
SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
106
|
-
PLATFORM_BALANCE =
|
|
107
|
-
T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
108
|
-
APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
109
|
-
VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
110
110
|
UNKNOWN = T.let(:unknown, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
111
111
|
|
|
112
112
|
sig do
|
|
@@ -31,11 +31,16 @@ module WhopSDK
|
|
|
31
31
|
sig { returns(Symbol) }
|
|
32
32
|
attr_accessor :type
|
|
33
33
|
|
|
34
|
+
# The company ID that this webhook event is associated with
|
|
35
|
+
sig { returns(T.nilable(String)) }
|
|
36
|
+
attr_accessor :company_id
|
|
37
|
+
|
|
34
38
|
sig do
|
|
35
39
|
params(
|
|
36
40
|
id: String,
|
|
37
41
|
data: WhopSDK::Payment::OrHash,
|
|
38
42
|
timestamp: Time,
|
|
43
|
+
company_id: T.nilable(String),
|
|
39
44
|
api_version: Symbol,
|
|
40
45
|
type: Symbol
|
|
41
46
|
).returns(T.attached_class)
|
|
@@ -47,6 +52,8 @@ module WhopSDK
|
|
|
47
52
|
data:,
|
|
48
53
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
49
54
|
timestamp:,
|
|
55
|
+
# The company ID that this webhook event is associated with
|
|
56
|
+
company_id: nil,
|
|
50
57
|
# The API version for this webhook
|
|
51
58
|
api_version: :v1,
|
|
52
59
|
# The webhook event type
|
|
@@ -61,7 +68,8 @@ module WhopSDK
|
|
|
61
68
|
api_version: Symbol,
|
|
62
69
|
data: WhopSDK::Payment,
|
|
63
70
|
timestamp: Time,
|
|
64
|
-
type: Symbol
|
|
71
|
+
type: Symbol,
|
|
72
|
+
company_id: T.nilable(String)
|
|
65
73
|
}
|
|
66
74
|
)
|
|
67
75
|
end
|
|
@@ -34,11 +34,16 @@ module WhopSDK
|
|
|
34
34
|
sig { returns(Symbol) }
|
|
35
35
|
attr_accessor :type
|
|
36
36
|
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
sig { returns(T.nilable(String)) }
|
|
39
|
+
attr_accessor :company_id
|
|
40
|
+
|
|
37
41
|
sig do
|
|
38
42
|
params(
|
|
39
43
|
id: String,
|
|
40
44
|
data: WhopSDK::Payment::OrHash,
|
|
41
45
|
timestamp: Time,
|
|
46
|
+
company_id: T.nilable(String),
|
|
42
47
|
api_version: Symbol,
|
|
43
48
|
type: Symbol
|
|
44
49
|
).returns(T.attached_class)
|
|
@@ -50,6 +55,8 @@ module WhopSDK
|
|
|
50
55
|
data:,
|
|
51
56
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
52
57
|
timestamp:,
|
|
58
|
+
# The company ID that this webhook event is associated with
|
|
59
|
+
company_id: nil,
|
|
53
60
|
# The API version for this webhook
|
|
54
61
|
api_version: :v1,
|
|
55
62
|
# The webhook event type
|
|
@@ -64,7 +71,8 @@ module WhopSDK
|
|
|
64
71
|
api_version: Symbol,
|
|
65
72
|
data: WhopSDK::Payment,
|
|
66
73
|
timestamp: Time,
|
|
67
|
-
type: Symbol
|
|
74
|
+
type: Symbol,
|
|
75
|
+
company_id: T.nilable(String)
|
|
68
76
|
}
|
|
69
77
|
)
|
|
70
78
|
end
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class PayoutMethodCreatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent,
|
|
10
|
+
WhopSDK::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# A unique ID for every single webhook request
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# The API version for this webhook
|
|
19
|
+
sig { returns(Symbol) }
|
|
20
|
+
attr_accessor :api_version
|
|
21
|
+
|
|
22
|
+
# An object representing an user's setup payout destination.
|
|
23
|
+
sig { returns(WhopSDK::PayoutMethodCreatedWebhookEvent::Data) }
|
|
24
|
+
attr_reader :data
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::OrHash
|
|
29
|
+
).void
|
|
30
|
+
end
|
|
31
|
+
attr_writer :data
|
|
32
|
+
|
|
33
|
+
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
34
|
+
sig { returns(Time) }
|
|
35
|
+
attr_accessor :timestamp
|
|
36
|
+
|
|
37
|
+
# The webhook event type
|
|
38
|
+
sig { returns(Symbol) }
|
|
39
|
+
attr_accessor :type
|
|
40
|
+
|
|
41
|
+
# The company ID that this webhook event is associated with
|
|
42
|
+
sig { returns(T.nilable(String)) }
|
|
43
|
+
attr_accessor :company_id
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
id: String,
|
|
48
|
+
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::OrHash,
|
|
49
|
+
timestamp: Time,
|
|
50
|
+
company_id: T.nilable(String),
|
|
51
|
+
api_version: Symbol,
|
|
52
|
+
type: Symbol
|
|
53
|
+
).returns(T.attached_class)
|
|
54
|
+
end
|
|
55
|
+
def self.new(
|
|
56
|
+
# A unique ID for every single webhook request
|
|
57
|
+
id:,
|
|
58
|
+
# An object representing an user's setup payout destination.
|
|
59
|
+
data:,
|
|
60
|
+
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
61
|
+
timestamp:,
|
|
62
|
+
# The company ID that this webhook event is associated with
|
|
63
|
+
company_id: nil,
|
|
64
|
+
# The API version for this webhook
|
|
65
|
+
api_version: :v1,
|
|
66
|
+
# The webhook event type
|
|
67
|
+
type: :"payout_method.created"
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
sig do
|
|
72
|
+
override.returns(
|
|
73
|
+
{
|
|
74
|
+
id: String,
|
|
75
|
+
api_version: Symbol,
|
|
76
|
+
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
|
|
77
|
+
timestamp: Time,
|
|
78
|
+
type: Symbol,
|
|
79
|
+
company_id: T.nilable(String)
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
end
|
|
83
|
+
def to_hash
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
class Data < WhopSDK::Internal::Type::BaseModel
|
|
87
|
+
OrHash =
|
|
88
|
+
T.type_alias do
|
|
89
|
+
T.any(
|
|
90
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
|
|
91
|
+
WhopSDK::Internal::AnyHash
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# The ID of the payout token
|
|
96
|
+
sig { returns(String) }
|
|
97
|
+
attr_accessor :id
|
|
98
|
+
|
|
99
|
+
# The company associated with the payout token
|
|
100
|
+
sig do
|
|
101
|
+
returns(
|
|
102
|
+
T.nilable(WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company)
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
attr_reader :company
|
|
106
|
+
|
|
107
|
+
sig do
|
|
108
|
+
params(
|
|
109
|
+
company:
|
|
110
|
+
T.nilable(
|
|
111
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company::OrHash
|
|
112
|
+
)
|
|
113
|
+
).void
|
|
114
|
+
end
|
|
115
|
+
attr_writer :company
|
|
116
|
+
|
|
117
|
+
# The currency code of the payout destination. This is the currency that payouts
|
|
118
|
+
# will be made in for this token.
|
|
119
|
+
sig { returns(String) }
|
|
120
|
+
attr_accessor :currency
|
|
121
|
+
|
|
122
|
+
# The payout destination associated with the payout token
|
|
123
|
+
sig do
|
|
124
|
+
returns(
|
|
125
|
+
T.nilable(
|
|
126
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination
|
|
127
|
+
)
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
attr_reader :destination
|
|
131
|
+
|
|
132
|
+
sig do
|
|
133
|
+
params(
|
|
134
|
+
destination:
|
|
135
|
+
T.nilable(
|
|
136
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::OrHash
|
|
137
|
+
)
|
|
138
|
+
).void
|
|
139
|
+
end
|
|
140
|
+
attr_writer :destination
|
|
141
|
+
|
|
142
|
+
# Whether this payout token is the default for the payout account
|
|
143
|
+
sig { returns(T::Boolean) }
|
|
144
|
+
attr_accessor :is_default
|
|
145
|
+
|
|
146
|
+
# An optional nickname for the payout token to help the user identify it. This is
|
|
147
|
+
# not used by the provider and is only for the user's reference.
|
|
148
|
+
sig { returns(T.nilable(String)) }
|
|
149
|
+
attr_accessor :nickname
|
|
150
|
+
|
|
151
|
+
# An object representing an user's setup payout destination.
|
|
152
|
+
sig do
|
|
153
|
+
params(
|
|
154
|
+
id: String,
|
|
155
|
+
company:
|
|
156
|
+
T.nilable(
|
|
157
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company::OrHash
|
|
158
|
+
),
|
|
159
|
+
currency: String,
|
|
160
|
+
destination:
|
|
161
|
+
T.nilable(
|
|
162
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::OrHash
|
|
163
|
+
),
|
|
164
|
+
is_default: T::Boolean,
|
|
165
|
+
nickname: T.nilable(String)
|
|
166
|
+
).returns(T.attached_class)
|
|
167
|
+
end
|
|
168
|
+
def self.new(
|
|
169
|
+
# The ID of the payout token
|
|
170
|
+
id:,
|
|
171
|
+
# The company associated with the payout token
|
|
172
|
+
company:,
|
|
173
|
+
# The currency code of the payout destination. This is the currency that payouts
|
|
174
|
+
# will be made in for this token.
|
|
175
|
+
currency:,
|
|
176
|
+
# The payout destination associated with the payout token
|
|
177
|
+
destination:,
|
|
178
|
+
# Whether this payout token is the default for the payout account
|
|
179
|
+
is_default:,
|
|
180
|
+
# An optional nickname for the payout token to help the user identify it. This is
|
|
181
|
+
# not used by the provider and is only for the user's reference.
|
|
182
|
+
nickname:
|
|
183
|
+
)
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
sig do
|
|
187
|
+
override.returns(
|
|
188
|
+
{
|
|
189
|
+
id: String,
|
|
190
|
+
company:
|
|
191
|
+
T.nilable(
|
|
192
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company
|
|
193
|
+
),
|
|
194
|
+
currency: String,
|
|
195
|
+
destination:
|
|
196
|
+
T.nilable(
|
|
197
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination
|
|
198
|
+
),
|
|
199
|
+
is_default: T::Boolean,
|
|
200
|
+
nickname: T.nilable(String)
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
end
|
|
204
|
+
def to_hash
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
208
|
+
OrHash =
|
|
209
|
+
T.type_alias do
|
|
210
|
+
T.any(
|
|
211
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company,
|
|
212
|
+
WhopSDK::Internal::AnyHash
|
|
213
|
+
)
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# The ID (tag) of the company.
|
|
217
|
+
sig { returns(String) }
|
|
218
|
+
attr_accessor :id
|
|
219
|
+
|
|
220
|
+
# The company associated with the payout token
|
|
221
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
222
|
+
def self.new(
|
|
223
|
+
# The ID (tag) of the company.
|
|
224
|
+
id:
|
|
225
|
+
)
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
sig { override.returns({ id: String }) }
|
|
229
|
+
def to_hash
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
234
|
+
OrHash =
|
|
235
|
+
T.type_alias do
|
|
236
|
+
T.any(
|
|
237
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination,
|
|
238
|
+
WhopSDK::Internal::AnyHash
|
|
239
|
+
)
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# The category of the payout destination
|
|
243
|
+
sig do
|
|
244
|
+
returns(
|
|
245
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
246
|
+
)
|
|
247
|
+
end
|
|
248
|
+
attr_accessor :category
|
|
249
|
+
|
|
250
|
+
# The country code of the payout destination
|
|
251
|
+
sig { returns(String) }
|
|
252
|
+
attr_accessor :country_code
|
|
253
|
+
|
|
254
|
+
# The name of the payer associated with the payout destination
|
|
255
|
+
sig { returns(String) }
|
|
256
|
+
attr_accessor :name
|
|
257
|
+
|
|
258
|
+
# The payout destination associated with the payout token
|
|
259
|
+
sig do
|
|
260
|
+
params(
|
|
261
|
+
category:
|
|
262
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::OrSymbol,
|
|
263
|
+
country_code: String,
|
|
264
|
+
name: String
|
|
265
|
+
).returns(T.attached_class)
|
|
266
|
+
end
|
|
267
|
+
def self.new(
|
|
268
|
+
# The category of the payout destination
|
|
269
|
+
category:,
|
|
270
|
+
# The country code of the payout destination
|
|
271
|
+
country_code:,
|
|
272
|
+
# The name of the payer associated with the payout destination
|
|
273
|
+
name:
|
|
274
|
+
)
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
sig do
|
|
278
|
+
override.returns(
|
|
279
|
+
{
|
|
280
|
+
category:
|
|
281
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol,
|
|
282
|
+
country_code: String,
|
|
283
|
+
name: String
|
|
284
|
+
}
|
|
285
|
+
)
|
|
286
|
+
end
|
|
287
|
+
def to_hash
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# The category of the payout destination
|
|
291
|
+
module Category
|
|
292
|
+
extend WhopSDK::Internal::Type::Enum
|
|
293
|
+
|
|
294
|
+
TaggedSymbol =
|
|
295
|
+
T.type_alias do
|
|
296
|
+
T.all(
|
|
297
|
+
Symbol,
|
|
298
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category
|
|
299
|
+
)
|
|
300
|
+
end
|
|
301
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
302
|
+
|
|
303
|
+
CRYPTO =
|
|
304
|
+
T.let(
|
|
305
|
+
:crypto,
|
|
306
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
307
|
+
)
|
|
308
|
+
RTP =
|
|
309
|
+
T.let(
|
|
310
|
+
:rtp,
|
|
311
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
312
|
+
)
|
|
313
|
+
NEXT_DAY_BANK =
|
|
314
|
+
T.let(
|
|
315
|
+
:next_day_bank,
|
|
316
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
317
|
+
)
|
|
318
|
+
BANK_WIRE =
|
|
319
|
+
T.let(
|
|
320
|
+
:bank_wire,
|
|
321
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
322
|
+
)
|
|
323
|
+
DIGITAL_WALLET =
|
|
324
|
+
T.let(
|
|
325
|
+
:digital_wallet,
|
|
326
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
327
|
+
)
|
|
328
|
+
UNKNOWN =
|
|
329
|
+
T.let(
|
|
330
|
+
:unknown,
|
|
331
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
332
|
+
)
|
|
333
|
+
|
|
334
|
+
sig do
|
|
335
|
+
override.returns(
|
|
336
|
+
T::Array[
|
|
337
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
338
|
+
]
|
|
339
|
+
)
|
|
340
|
+
end
|
|
341
|
+
def self.values
|
|
342
|
+
end
|
|
343
|
+
end
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
end
|