whop_sdk 0.0.11 → 0.0.12
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/models/checkout_configuration_create_params.rb +9 -1
- data/lib/whop_sdk/models/plan.rb +9 -1
- data/lib/whop_sdk/models/plan_create_params.rb +9 -1
- data/lib/whop_sdk/models/plan_list_response.rb +9 -1
- data/lib/whop_sdk/models/product_create_params.rb +2 -2
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +5 -1
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +309 -0
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +111 -166
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +309 -0
- data/lib/whop_sdk/models.rb +4 -0
- data/lib/whop_sdk/resources/plans.rb +3 -1
- data/lib/whop_sdk/resources/products.rb +1 -1
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +2 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/plan.rbi +8 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/plan_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/product_create_params.rbi +2 -2
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +2 -0
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +633 -0
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +326 -480
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +633 -0
- data/rbi/whop_sdk/models.rbi +4 -0
- data/rbi/whop_sdk/resources/plans.rbi +3 -0
- data/rbi/whop_sdk/resources/products.rbi +1 -1
- data/rbi/whop_sdk/resources/webhooks.rbi +2 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
- data/sig/whop_sdk/models/plan.rbs +5 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +5 -0
- data/sig/whop_sdk/models/plan_list_response.rbs +5 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +2 -0
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +275 -0
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +132 -191
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +275 -0
- data/sig/whop_sdk/models.rbs +4 -0
- data/sig/whop_sdk/resources/plans.rbs +1 -0
- data/sig/whop_sdk/resources/webhooks.rbs +2 -0
- metadata +8 -2
|
@@ -76,6 +76,7 @@ module WhopSDK
|
|
|
76
76
|
product_id: String?,
|
|
77
77
|
release_method: WhopSDK::Models::release_method?,
|
|
78
78
|
renewal_price: Float?,
|
|
79
|
+
split_pay_required_payments: Integer?,
|
|
79
80
|
title: String?,
|
|
80
81
|
trial_period_days: Integer?,
|
|
81
82
|
visibility: WhopSDK::Models::visibility?
|
|
@@ -116,6 +117,8 @@ module WhopSDK
|
|
|
116
117
|
|
|
117
118
|
attr_accessor renewal_price: Float?
|
|
118
119
|
|
|
120
|
+
attr_accessor split_pay_required_payments: Integer?
|
|
121
|
+
|
|
119
122
|
attr_accessor title: String?
|
|
120
123
|
|
|
121
124
|
attr_accessor trial_period_days: Integer?
|
|
@@ -140,6 +143,7 @@ module WhopSDK
|
|
|
140
143
|
?product_id: String?,
|
|
141
144
|
?release_method: WhopSDK::Models::release_method?,
|
|
142
145
|
?renewal_price: Float?,
|
|
146
|
+
?split_pay_required_payments: Integer?,
|
|
143
147
|
?title: String?,
|
|
144
148
|
?trial_period_days: Integer?,
|
|
145
149
|
?visibility: WhopSDK::Models::visibility?
|
|
@@ -163,6 +167,7 @@ module WhopSDK
|
|
|
163
167
|
product_id: String?,
|
|
164
168
|
release_method: WhopSDK::Models::release_method?,
|
|
165
169
|
renewal_price: Float?,
|
|
170
|
+
split_pay_required_payments: Integer?,
|
|
166
171
|
title: String?,
|
|
167
172
|
trial_period_days: Integer?,
|
|
168
173
|
visibility: WhopSDK::Models::visibility?
|
|
@@ -21,6 +21,7 @@ module WhopSDK
|
|
|
21
21
|
purchase_url: String,
|
|
22
22
|
release_method: WhopSDK::Models::release_method,
|
|
23
23
|
renewal_price: Float,
|
|
24
|
+
split_pay_required_payments: Integer?,
|
|
24
25
|
stock: Integer?,
|
|
25
26
|
tax_type: WhopSDK::Models::tax_type,
|
|
26
27
|
title: String?,
|
|
@@ -69,6 +70,8 @@ module WhopSDK
|
|
|
69
70
|
|
|
70
71
|
attr_accessor renewal_price: Float
|
|
71
72
|
|
|
73
|
+
attr_accessor split_pay_required_payments: Integer?
|
|
74
|
+
|
|
72
75
|
attr_accessor stock: Integer?
|
|
73
76
|
|
|
74
77
|
attr_accessor tax_type: WhopSDK::Models::tax_type
|
|
@@ -103,6 +106,7 @@ module WhopSDK
|
|
|
103
106
|
purchase_url: String,
|
|
104
107
|
release_method: WhopSDK::Models::release_method,
|
|
105
108
|
renewal_price: Float,
|
|
109
|
+
split_pay_required_payments: Integer?,
|
|
106
110
|
stock: Integer?,
|
|
107
111
|
tax_type: WhopSDK::Models::tax_type,
|
|
108
112
|
title: String?,
|
|
@@ -132,6 +136,7 @@ module WhopSDK
|
|
|
132
136
|
purchase_url: String,
|
|
133
137
|
release_method: WhopSDK::Models::release_method,
|
|
134
138
|
renewal_price: Float,
|
|
139
|
+
split_pay_required_payments: Integer?,
|
|
135
140
|
stock: Integer?,
|
|
136
141
|
tax_type: WhopSDK::Models::tax_type,
|
|
137
142
|
title: String?,
|
|
@@ -17,6 +17,7 @@ module WhopSDK
|
|
|
17
17
|
plan_type: WhopSDK::Models::plan_type?,
|
|
18
18
|
release_method: WhopSDK::Models::release_method?,
|
|
19
19
|
renewal_price: Float?,
|
|
20
|
+
split_pay_required_payments: Integer?,
|
|
20
21
|
stock: Integer?,
|
|
21
22
|
title: String?,
|
|
22
23
|
trial_period_days: Integer?,
|
|
@@ -59,6 +60,8 @@ module WhopSDK
|
|
|
59
60
|
|
|
60
61
|
attr_accessor renewal_price: Float?
|
|
61
62
|
|
|
63
|
+
attr_accessor split_pay_required_payments: Integer?
|
|
64
|
+
|
|
62
65
|
attr_accessor stock: Integer?
|
|
63
66
|
|
|
64
67
|
attr_accessor title: String?
|
|
@@ -85,6 +88,7 @@ module WhopSDK
|
|
|
85
88
|
?plan_type: WhopSDK::Models::plan_type?,
|
|
86
89
|
?release_method: WhopSDK::Models::release_method?,
|
|
87
90
|
?renewal_price: Float?,
|
|
91
|
+
?split_pay_required_payments: Integer?,
|
|
88
92
|
?stock: Integer?,
|
|
89
93
|
?title: String?,
|
|
90
94
|
?trial_period_days: Integer?,
|
|
@@ -109,6 +113,7 @@ module WhopSDK
|
|
|
109
113
|
plan_type: WhopSDK::Models::plan_type?,
|
|
110
114
|
release_method: WhopSDK::Models::release_method?,
|
|
111
115
|
renewal_price: Float?,
|
|
116
|
+
split_pay_required_payments: Integer?,
|
|
112
117
|
stock: Integer?,
|
|
113
118
|
title: String?,
|
|
114
119
|
trial_period_days: Integer?,
|
|
@@ -19,6 +19,7 @@ module WhopSDK
|
|
|
19
19
|
purchase_url: String,
|
|
20
20
|
release_method: WhopSDK::Models::release_method,
|
|
21
21
|
renewal_price: Float,
|
|
22
|
+
split_pay_required_payments: Integer?,
|
|
22
23
|
stock: Integer?,
|
|
23
24
|
title: String?,
|
|
24
25
|
trial_period_days: Integer?,
|
|
@@ -62,6 +63,8 @@ module WhopSDK
|
|
|
62
63
|
|
|
63
64
|
attr_accessor renewal_price: Float
|
|
64
65
|
|
|
66
|
+
attr_accessor split_pay_required_payments: Integer?
|
|
67
|
+
|
|
65
68
|
attr_accessor stock: Integer?
|
|
66
69
|
|
|
67
70
|
attr_accessor title: String?
|
|
@@ -92,6 +95,7 @@ module WhopSDK
|
|
|
92
95
|
purchase_url: String,
|
|
93
96
|
release_method: WhopSDK::Models::release_method,
|
|
94
97
|
renewal_price: Float,
|
|
98
|
+
split_pay_required_payments: Integer?,
|
|
95
99
|
stock: Integer?,
|
|
96
100
|
title: String?,
|
|
97
101
|
trial_period_days: Integer?,
|
|
@@ -118,6 +122,7 @@ module WhopSDK
|
|
|
118
122
|
purchase_url: String,
|
|
119
123
|
release_method: WhopSDK::Models::release_method,
|
|
120
124
|
renewal_price: Float,
|
|
125
|
+
split_pay_required_payments: Integer?,
|
|
121
126
|
stock: Integer?,
|
|
122
127
|
title: String?,
|
|
123
128
|
trial_period_days: Integer?,
|
|
@@ -14,6 +14,8 @@ module WhopSDK
|
|
|
14
14
|
| WhopSDK::SetupIntentRequiresActionWebhookEvent
|
|
15
15
|
| WhopSDK::SetupIntentSucceededWebhookEvent
|
|
16
16
|
| WhopSDK::SetupIntentCanceledWebhookEvent
|
|
17
|
+
| WhopSDK::WithdrawalCreatedWebhookEvent
|
|
18
|
+
| WhopSDK::WithdrawalUpdatedWebhookEvent
|
|
17
19
|
| WhopSDK::CourseLessonInteractionCompletedWebhookEvent
|
|
18
20
|
| WhopSDK::PaymentSucceededWebhookEvent
|
|
19
21
|
| WhopSDK::PaymentFailedWebhookEvent
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type withdrawal_created_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
api_version: :v1,
|
|
7
|
+
data: WhopSDK::WithdrawalCreatedWebhookEvent::Data,
|
|
8
|
+
timestamp: Time,
|
|
9
|
+
type: :"withdrawal.created"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class WithdrawalCreatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor api_version: :v1
|
|
16
|
+
|
|
17
|
+
attr_accessor data: WhopSDK::WithdrawalCreatedWebhookEvent::Data
|
|
18
|
+
|
|
19
|
+
attr_accessor timestamp: Time
|
|
20
|
+
|
|
21
|
+
attr_accessor type: :"withdrawal.created"
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
data: WhopSDK::WithdrawalCreatedWebhookEvent::Data,
|
|
26
|
+
timestamp: Time,
|
|
27
|
+
?api_version: :v1,
|
|
28
|
+
?type: :"withdrawal.created"
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
api_version: :v1,
|
|
34
|
+
data: WhopSDK::WithdrawalCreatedWebhookEvent::Data,
|
|
35
|
+
timestamp: Time,
|
|
36
|
+
type: :"withdrawal.created"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type data =
|
|
40
|
+
{
|
|
41
|
+
id: String,
|
|
42
|
+
amount: Float,
|
|
43
|
+
created_at: Time,
|
|
44
|
+
currency: WhopSDK::Models::currency,
|
|
45
|
+
error_code: WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::error_code?,
|
|
46
|
+
error_message: String?,
|
|
47
|
+
estimated_availability: Time?,
|
|
48
|
+
fee_amount: Float,
|
|
49
|
+
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
50
|
+
ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount,
|
|
51
|
+
payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?,
|
|
52
|
+
speed: WhopSDK::Models::withdrawal_speeds,
|
|
53
|
+
status: WhopSDK::Models::withdrawal_status,
|
|
54
|
+
trace_code: String?,
|
|
55
|
+
withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
class Data < WhopSDK::Internal::Type::BaseModel
|
|
59
|
+
attr_accessor id: String
|
|
60
|
+
|
|
61
|
+
attr_accessor amount: Float
|
|
62
|
+
|
|
63
|
+
attr_accessor created_at: Time
|
|
64
|
+
|
|
65
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
66
|
+
|
|
67
|
+
attr_accessor error_code: WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::error_code?
|
|
68
|
+
|
|
69
|
+
attr_accessor error_message: String?
|
|
70
|
+
|
|
71
|
+
attr_accessor estimated_availability: Time?
|
|
72
|
+
|
|
73
|
+
attr_accessor fee_amount: Float
|
|
74
|
+
|
|
75
|
+
attr_accessor fee_type: WhopSDK::Models::withdrawal_fee_types?
|
|
76
|
+
|
|
77
|
+
attr_accessor ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount
|
|
78
|
+
|
|
79
|
+
attr_accessor payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?
|
|
80
|
+
|
|
81
|
+
attr_accessor speed: WhopSDK::Models::withdrawal_speeds
|
|
82
|
+
|
|
83
|
+
attr_accessor status: WhopSDK::Models::withdrawal_status
|
|
84
|
+
|
|
85
|
+
attr_accessor trace_code: String?
|
|
86
|
+
|
|
87
|
+
attr_accessor withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
88
|
+
|
|
89
|
+
def initialize: (
|
|
90
|
+
id: String,
|
|
91
|
+
amount: Float,
|
|
92
|
+
created_at: Time,
|
|
93
|
+
currency: WhopSDK::Models::currency,
|
|
94
|
+
error_code: WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::error_code?,
|
|
95
|
+
error_message: String?,
|
|
96
|
+
estimated_availability: Time?,
|
|
97
|
+
fee_amount: Float,
|
|
98
|
+
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
99
|
+
ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount,
|
|
100
|
+
payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?,
|
|
101
|
+
speed: WhopSDK::Models::withdrawal_speeds,
|
|
102
|
+
status: WhopSDK::Models::withdrawal_status,
|
|
103
|
+
trace_code: String?,
|
|
104
|
+
withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
105
|
+
) -> void
|
|
106
|
+
|
|
107
|
+
def to_hash: -> {
|
|
108
|
+
id: String,
|
|
109
|
+
amount: Float,
|
|
110
|
+
created_at: Time,
|
|
111
|
+
currency: WhopSDK::Models::currency,
|
|
112
|
+
error_code: WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::error_code?,
|
|
113
|
+
error_message: String?,
|
|
114
|
+
estimated_availability: Time?,
|
|
115
|
+
fee_amount: Float,
|
|
116
|
+
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
117
|
+
ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount,
|
|
118
|
+
payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?,
|
|
119
|
+
speed: WhopSDK::Models::withdrawal_speeds,
|
|
120
|
+
status: WhopSDK::Models::withdrawal_status,
|
|
121
|
+
trace_code: String?,
|
|
122
|
+
withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
type error_code =
|
|
126
|
+
:account_closed
|
|
127
|
+
| :account_does_not_exist
|
|
128
|
+
| :account_information_invalid
|
|
129
|
+
| :account_number_invalid_region
|
|
130
|
+
| :account_frozen
|
|
131
|
+
| :account_lookup_failed
|
|
132
|
+
| :account_not_found
|
|
133
|
+
| :amount_out_of_bounds
|
|
134
|
+
| :attributes_not_validated
|
|
135
|
+
| :b2b_payments_prohibited
|
|
136
|
+
| :bank_statement_required
|
|
137
|
+
| :compliance_review
|
|
138
|
+
| :currency_not_supported
|
|
139
|
+
| :deposit_canceled
|
|
140
|
+
| :deposit_failed
|
|
141
|
+
| :deposit_rejected
|
|
142
|
+
| :destination_unavailable
|
|
143
|
+
| :exceeded_account_limit
|
|
144
|
+
| :expired_quote
|
|
145
|
+
| :generic_payout_error
|
|
146
|
+
| :technical_problem
|
|
147
|
+
| :identification_number_invalid
|
|
148
|
+
| :invalid_account_number
|
|
149
|
+
| :invalid_bank_code
|
|
150
|
+
| :invalid_beneficiary
|
|
151
|
+
| :invalid_branch_number
|
|
152
|
+
| :invalid_branch_code
|
|
153
|
+
| :invalid_phone_number
|
|
154
|
+
| :invalid_routing_number
|
|
155
|
+
| :invalid_swift_code
|
|
156
|
+
| :invalid_company_details
|
|
157
|
+
| :manual_cancelation
|
|
158
|
+
| :misc_error
|
|
159
|
+
| :missing_city_and_country
|
|
160
|
+
| :missing_phone_number
|
|
161
|
+
| :missing_remittance_info
|
|
162
|
+
| :payee_name_invalid
|
|
163
|
+
| :receiving_account_locked
|
|
164
|
+
| :rejected_by_compliance
|
|
165
|
+
| :rtp_not_supported
|
|
166
|
+
| :non_transaction_account
|
|
167
|
+
| :source_token_insufficient_funds
|
|
168
|
+
| :ssn_invalid
|
|
169
|
+
| :wallet_screenshot_required
|
|
170
|
+
| :unsupported_region
|
|
171
|
+
|
|
172
|
+
module ErrorCode
|
|
173
|
+
extend WhopSDK::Internal::Type::Enum
|
|
174
|
+
|
|
175
|
+
ACCOUNT_CLOSED: :account_closed
|
|
176
|
+
ACCOUNT_DOES_NOT_EXIST: :account_does_not_exist
|
|
177
|
+
ACCOUNT_INFORMATION_INVALID: :account_information_invalid
|
|
178
|
+
ACCOUNT_NUMBER_INVALID_REGION: :account_number_invalid_region
|
|
179
|
+
ACCOUNT_FROZEN: :account_frozen
|
|
180
|
+
ACCOUNT_LOOKUP_FAILED: :account_lookup_failed
|
|
181
|
+
ACCOUNT_NOT_FOUND: :account_not_found
|
|
182
|
+
AMOUNT_OUT_OF_BOUNDS: :amount_out_of_bounds
|
|
183
|
+
ATTRIBUTES_NOT_VALIDATED: :attributes_not_validated
|
|
184
|
+
B2B_PAYMENTS_PROHIBITED: :b2b_payments_prohibited
|
|
185
|
+
BANK_STATEMENT_REQUIRED: :bank_statement_required
|
|
186
|
+
COMPLIANCE_REVIEW: :compliance_review
|
|
187
|
+
CURRENCY_NOT_SUPPORTED: :currency_not_supported
|
|
188
|
+
DEPOSIT_CANCELED: :deposit_canceled
|
|
189
|
+
DEPOSIT_FAILED: :deposit_failed
|
|
190
|
+
DEPOSIT_REJECTED: :deposit_rejected
|
|
191
|
+
DESTINATION_UNAVAILABLE: :destination_unavailable
|
|
192
|
+
EXCEEDED_ACCOUNT_LIMIT: :exceeded_account_limit
|
|
193
|
+
EXPIRED_QUOTE: :expired_quote
|
|
194
|
+
GENERIC_PAYOUT_ERROR: :generic_payout_error
|
|
195
|
+
TECHNICAL_PROBLEM: :technical_problem
|
|
196
|
+
IDENTIFICATION_NUMBER_INVALID: :identification_number_invalid
|
|
197
|
+
INVALID_ACCOUNT_NUMBER: :invalid_account_number
|
|
198
|
+
INVALID_BANK_CODE: :invalid_bank_code
|
|
199
|
+
INVALID_BENEFICIARY: :invalid_beneficiary
|
|
200
|
+
INVALID_BRANCH_NUMBER: :invalid_branch_number
|
|
201
|
+
INVALID_BRANCH_CODE: :invalid_branch_code
|
|
202
|
+
INVALID_PHONE_NUMBER: :invalid_phone_number
|
|
203
|
+
INVALID_ROUTING_NUMBER: :invalid_routing_number
|
|
204
|
+
INVALID_SWIFT_CODE: :invalid_swift_code
|
|
205
|
+
INVALID_COMPANY_DETAILS: :invalid_company_details
|
|
206
|
+
MANUAL_CANCELATION: :manual_cancelation
|
|
207
|
+
MISC_ERROR: :misc_error
|
|
208
|
+
MISSING_CITY_AND_COUNTRY: :missing_city_and_country
|
|
209
|
+
MISSING_PHONE_NUMBER: :missing_phone_number
|
|
210
|
+
MISSING_REMITTANCE_INFO: :missing_remittance_info
|
|
211
|
+
PAYEE_NAME_INVALID: :payee_name_invalid
|
|
212
|
+
RECEIVING_ACCOUNT_LOCKED: :receiving_account_locked
|
|
213
|
+
REJECTED_BY_COMPLIANCE: :rejected_by_compliance
|
|
214
|
+
RTP_NOT_SUPPORTED: :rtp_not_supported
|
|
215
|
+
NON_TRANSACTION_ACCOUNT: :non_transaction_account
|
|
216
|
+
SOURCE_TOKEN_INSUFFICIENT_FUNDS: :source_token_insufficient_funds
|
|
217
|
+
SSN_INVALID: :ssn_invalid
|
|
218
|
+
WALLET_SCREENSHOT_REQUIRED: :wallet_screenshot_required
|
|
219
|
+
UNSUPPORTED_REGION: :unsupported_region
|
|
220
|
+
|
|
221
|
+
def self?.values: -> ::Array[WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::error_code]
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
type ledger_account = { id: String, company_id: String? }
|
|
225
|
+
|
|
226
|
+
class LedgerAccount < WhopSDK::Internal::Type::BaseModel
|
|
227
|
+
attr_accessor id: String
|
|
228
|
+
|
|
229
|
+
attr_accessor company_id: String?
|
|
230
|
+
|
|
231
|
+
def initialize: (id: String, company_id: String?) -> void
|
|
232
|
+
|
|
233
|
+
def to_hash: -> { id: String, company_id: String? }
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
type payout_token =
|
|
237
|
+
{
|
|
238
|
+
id: String,
|
|
239
|
+
created_at: Time,
|
|
240
|
+
destination_currency_code: String,
|
|
241
|
+
nickname: String?,
|
|
242
|
+
payer_name: String?
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
class PayoutToken < WhopSDK::Internal::Type::BaseModel
|
|
246
|
+
attr_accessor id: String
|
|
247
|
+
|
|
248
|
+
attr_accessor created_at: Time
|
|
249
|
+
|
|
250
|
+
attr_accessor destination_currency_code: String
|
|
251
|
+
|
|
252
|
+
attr_accessor nickname: String?
|
|
253
|
+
|
|
254
|
+
attr_accessor payer_name: String?
|
|
255
|
+
|
|
256
|
+
def initialize: (
|
|
257
|
+
id: String,
|
|
258
|
+
created_at: Time,
|
|
259
|
+
destination_currency_code: String,
|
|
260
|
+
nickname: String?,
|
|
261
|
+
payer_name: String?
|
|
262
|
+
) -> void
|
|
263
|
+
|
|
264
|
+
def to_hash: -> {
|
|
265
|
+
id: String,
|
|
266
|
+
created_at: Time,
|
|
267
|
+
destination_currency_code: String,
|
|
268
|
+
nickname: String?,
|
|
269
|
+
payer_name: String?
|
|
270
|
+
}
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
end
|