whop_sdk 0.0.14 → 0.0.16
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 +24 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +8 -0
- data/lib/whop_sdk/models/checkout_configuration.rb +9 -1
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +9 -1
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +9 -1
- data/lib/whop_sdk/models/course.rb +57 -1
- data/lib/whop_sdk/models/course_lesson_interaction.rb +23 -1
- data/lib/whop_sdk/models/course_lesson_interaction_list_item.rb +23 -1
- data/lib/whop_sdk/models/experience.rb +9 -1
- data/lib/whop_sdk/models/experience_create_params.rb +9 -1
- data/lib/whop_sdk/models/experience_list_response.rb +9 -1
- data/lib/whop_sdk/models/experience_update_params.rb +9 -1
- data/lib/whop_sdk/models/fee_markup_create_params.rb +62 -0
- data/lib/whop_sdk/models/fee_markup_create_response.rb +67 -0
- data/lib/whop_sdk/models/fee_markup_delete_params.rb +14 -0
- data/lib/whop_sdk/models/fee_markup_delete_response.rb +8 -0
- data/lib/whop_sdk/models/fee_markup_list_params.rb +58 -0
- data/lib/whop_sdk/models/fee_markup_list_response.rb +67 -0
- data/lib/whop_sdk/models/fee_markup_type.rb +19 -0
- data/lib/whop_sdk/models/payment_list_fees_params.rb +46 -0
- data/lib/whop_sdk/models/payment_list_fees_response.rb +84 -0
- data/lib/whop_sdk/models/payment_method_list_response.rb +214 -76
- data/lib/whop_sdk/models/payment_method_retrieve_response.rb +214 -76
- data/lib/whop_sdk/models/payout_method_list_params.rb +54 -0
- data/lib/whop_sdk/models/payout_method_list_response.rb +95 -0
- data/lib/whop_sdk/models/withdrawal_create_params.rb +46 -0
- data/lib/whop_sdk/models/withdrawal_create_response.rb +275 -0
- data/lib/whop_sdk/models.rb +14 -0
- data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
- data/lib/whop_sdk/resources/experiences.rb +6 -2
- data/lib/whop_sdk/resources/fee_markups.rb +112 -0
- data/lib/whop_sdk/resources/payment_methods.rb +2 -2
- data/lib/whop_sdk/resources/payments.rb +35 -0
- data/lib/whop_sdk/resources/payout_methods.rb +49 -0
- data/lib/whop_sdk/resources/withdrawals.rb +34 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +15 -0
- data/rbi/whop_sdk/client.rbi +6 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +8 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/course.rbi +115 -3
- data/rbi/whop_sdk/models/course_lesson_interaction.rbi +55 -2
- data/rbi/whop_sdk/models/course_lesson_interaction_list_item.rbi +60 -2
- data/rbi/whop_sdk/models/experience.rbi +8 -0
- data/rbi/whop_sdk/models/experience_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/experience_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +8 -0
- data/rbi/whop_sdk/models/fee_markup_create_params.rbi +83 -0
- data/rbi/whop_sdk/models/fee_markup_create_response.rbi +89 -0
- data/rbi/whop_sdk/models/fee_markup_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/fee_markup_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/fee_markup_list_params.rbi +77 -0
- data/rbi/whop_sdk/models/fee_markup_list_response.rbi +89 -0
- data/rbi/whop_sdk/models/fee_markup_type.rbi +37 -0
- data/rbi/whop_sdk/models/payment_list_fees_params.rbi +67 -0
- data/rbi/whop_sdk/models/payment_list_fees_response.rbi +239 -0
- data/rbi/whop_sdk/models/payment_method_list_response.rbi +305 -83
- data/rbi/whop_sdk/models/payment_method_retrieve_response.rbi +305 -88
- data/rbi/whop_sdk/models/payout_method_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +200 -0
- data/rbi/whop_sdk/models/withdrawal_create_params.rbi +67 -0
- data/rbi/whop_sdk/models/withdrawal_create_response.rbi +564 -0
- data/rbi/whop_sdk/models.rbi +14 -0
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
- data/rbi/whop_sdk/resources/experiences.rbi +6 -0
- data/rbi/whop_sdk/resources/fee_markups.rbi +96 -0
- data/rbi/whop_sdk/resources/payment_methods.rbi +2 -2
- data/rbi/whop_sdk/resources/payments.rbi +34 -0
- data/rbi/whop_sdk/resources/payout_methods.rbi +46 -0
- data/rbi/whop_sdk/resources/withdrawals.rbi +29 -0
- data/sig/whop_sdk/client.rbs +4 -0
- data/sig/whop_sdk/models/checkout_configuration.rbs +5 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
- data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +5 -0
- data/sig/whop_sdk/models/course.rbs +45 -3
- data/sig/whop_sdk/models/course_lesson_interaction.rbs +28 -3
- data/sig/whop_sdk/models/course_lesson_interaction_list_item.rbs +28 -3
- data/sig/whop_sdk/models/experience.rbs +5 -0
- data/sig/whop_sdk/models/experience_create_params.rbs +11 -1
- data/sig/whop_sdk/models/experience_list_response.rbs +5 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +5 -0
- data/sig/whop_sdk/models/fee_markup_create_params.rbs +51 -0
- data/sig/whop_sdk/models/fee_markup_create_response.rbs +50 -0
- data/sig/whop_sdk/models/fee_markup_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/fee_markup_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/fee_markup_list_params.rbs +46 -0
- data/sig/whop_sdk/models/fee_markup_list_response.rbs +50 -0
- data/sig/whop_sdk/models/fee_markup_type.rbs +22 -0
- data/sig/whop_sdk/models/payment_list_fees_params.rbs +36 -0
- data/sig/whop_sdk/models/payment_list_fees_response.rbs +104 -0
- data/sig/whop_sdk/models/payment_method_list_response.rbs +149 -41
- data/sig/whop_sdk/models/payment_method_retrieve_response.rbs +149 -41
- data/sig/whop_sdk/models/payout_method_list_params.rbs +46 -0
- data/sig/whop_sdk/models/payout_method_list_response.rbs +83 -0
- data/sig/whop_sdk/models/withdrawal_create_params.rbs +41 -0
- data/sig/whop_sdk/models/withdrawal_create_response.rbs +243 -0
- data/sig/whop_sdk/models.rbs +14 -0
- data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
- data/sig/whop_sdk/resources/experiences.rbs +2 -0
- data/sig/whop_sdk/resources/fee_markups.rbs +28 -0
- data/sig/whop_sdk/resources/payment_methods.rbs +2 -2
- data/sig/whop_sdk/resources/payments.rbs +9 -0
- data/sig/whop_sdk/resources/payout_methods.rbs +16 -0
- data/sig/whop_sdk/resources/withdrawals.rbs +8 -0
- metadata +47 -2
|
@@ -1,67 +1,175 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Models
|
|
3
3
|
type payment_method_retrieve_response =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
created_at: Time,
|
|
8
|
-
payment_method_type: WhopSDK::Models::payment_method_types
|
|
9
|
-
}
|
|
4
|
+
WhopSDK::Models::PaymentMethodRetrieveResponse::BasePaymentMethod
|
|
5
|
+
| WhopSDK::Models::PaymentMethodRetrieveResponse::CardPaymentMethod
|
|
6
|
+
| WhopSDK::Models::PaymentMethodRetrieveResponse::UsBankAccountPaymentMethod
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
module PaymentMethodRetrieveResponse
|
|
9
|
+
extend WhopSDK::Internal::Type::Union
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
type base_payment_method =
|
|
12
|
+
{
|
|
13
|
+
id: String,
|
|
14
|
+
created_at: Time,
|
|
15
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
16
|
+
typename: :BasePaymentMethod
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class BasePaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
20
|
+
attr_accessor id: String
|
|
15
21
|
|
|
16
|
-
|
|
22
|
+
attr_accessor created_at: Time
|
|
17
23
|
|
|
18
|
-
|
|
24
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
19
25
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
attr_accessor typename: :BasePaymentMethod
|
|
27
|
+
|
|
28
|
+
def initialize: (
|
|
29
|
+
id: String,
|
|
30
|
+
created_at: Time,
|
|
31
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
32
|
+
?typename: :BasePaymentMethod
|
|
33
|
+
) -> void
|
|
26
34
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
id: String,
|
|
37
|
+
created_at: Time,
|
|
38
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
39
|
+
typename: :BasePaymentMethod
|
|
40
|
+
}
|
|
41
|
+
end
|
|
33
42
|
|
|
34
|
-
type
|
|
43
|
+
type card_payment_method =
|
|
35
44
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
:
|
|
45
|
+
id: String,
|
|
46
|
+
card: WhopSDK::Models::PaymentMethodRetrieveResponse::CardPaymentMethod::Card,
|
|
47
|
+
created_at: Time,
|
|
48
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
49
|
+
typename: :CardPaymentMethod
|
|
40
50
|
}
|
|
41
51
|
|
|
42
|
-
class
|
|
43
|
-
attr_accessor
|
|
52
|
+
class CardPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
53
|
+
attr_accessor id: String
|
|
54
|
+
|
|
55
|
+
attr_accessor card: WhopSDK::Models::PaymentMethodRetrieveResponse::CardPaymentMethod::Card
|
|
44
56
|
|
|
45
|
-
attr_accessor
|
|
57
|
+
attr_accessor created_at: Time
|
|
46
58
|
|
|
47
|
-
attr_accessor
|
|
59
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
48
60
|
|
|
49
|
-
attr_accessor
|
|
61
|
+
attr_accessor typename: :CardPaymentMethod
|
|
50
62
|
|
|
51
63
|
def initialize: (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
64
|
+
id: String,
|
|
65
|
+
card: WhopSDK::Models::PaymentMethodRetrieveResponse::CardPaymentMethod::Card,
|
|
66
|
+
created_at: Time,
|
|
67
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
68
|
+
?typename: :CardPaymentMethod
|
|
56
69
|
) -> void
|
|
57
70
|
|
|
58
71
|
def to_hash: -> {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
:
|
|
72
|
+
id: String,
|
|
73
|
+
card: WhopSDK::Models::PaymentMethodRetrieveResponse::CardPaymentMethod::Card,
|
|
74
|
+
created_at: Time,
|
|
75
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
76
|
+
typename: :CardPaymentMethod
|
|
63
77
|
}
|
|
78
|
+
|
|
79
|
+
type card =
|
|
80
|
+
{
|
|
81
|
+
brand: WhopSDK::Models::card_brands?,
|
|
82
|
+
exp_month: Integer?,
|
|
83
|
+
exp_year: Integer?,
|
|
84
|
+
:last4 => String?
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
class Card < WhopSDK::Internal::Type::BaseModel
|
|
88
|
+
attr_accessor brand: WhopSDK::Models::card_brands?
|
|
89
|
+
|
|
90
|
+
attr_accessor exp_month: Integer?
|
|
91
|
+
|
|
92
|
+
attr_accessor exp_year: Integer?
|
|
93
|
+
|
|
94
|
+
attr_accessor last4: String?
|
|
95
|
+
|
|
96
|
+
def initialize: (
|
|
97
|
+
brand: WhopSDK::Models::card_brands?,
|
|
98
|
+
exp_month: Integer?,
|
|
99
|
+
exp_year: Integer?,
|
|
100
|
+
last4: String?
|
|
101
|
+
) -> void
|
|
102
|
+
|
|
103
|
+
def to_hash: -> {
|
|
104
|
+
brand: WhopSDK::Models::card_brands?,
|
|
105
|
+
exp_month: Integer?,
|
|
106
|
+
exp_year: Integer?,
|
|
107
|
+
:last4 => String?
|
|
108
|
+
}
|
|
109
|
+
end
|
|
64
110
|
end
|
|
111
|
+
|
|
112
|
+
type us_bank_account_payment_method =
|
|
113
|
+
{
|
|
114
|
+
id: String,
|
|
115
|
+
created_at: Time,
|
|
116
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
117
|
+
typename: :UsBankAccountPaymentMethod,
|
|
118
|
+
us_bank_account: WhopSDK::Models::PaymentMethodRetrieveResponse::UsBankAccountPaymentMethod::UsBankAccount
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
class UsBankAccountPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
122
|
+
attr_accessor id: String
|
|
123
|
+
|
|
124
|
+
attr_accessor created_at: Time
|
|
125
|
+
|
|
126
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
127
|
+
|
|
128
|
+
attr_accessor typename: :UsBankAccountPaymentMethod
|
|
129
|
+
|
|
130
|
+
attr_accessor us_bank_account: WhopSDK::Models::PaymentMethodRetrieveResponse::UsBankAccountPaymentMethod::UsBankAccount
|
|
131
|
+
|
|
132
|
+
def initialize: (
|
|
133
|
+
id: String,
|
|
134
|
+
created_at: Time,
|
|
135
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
136
|
+
us_bank_account: WhopSDK::Models::PaymentMethodRetrieveResponse::UsBankAccountPaymentMethod::UsBankAccount,
|
|
137
|
+
?typename: :UsBankAccountPaymentMethod
|
|
138
|
+
) -> void
|
|
139
|
+
|
|
140
|
+
def to_hash: -> {
|
|
141
|
+
id: String,
|
|
142
|
+
created_at: Time,
|
|
143
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
144
|
+
typename: :UsBankAccountPaymentMethod,
|
|
145
|
+
us_bank_account: WhopSDK::Models::PaymentMethodRetrieveResponse::UsBankAccountPaymentMethod::UsBankAccount
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
type us_bank_account =
|
|
149
|
+
{ account_type: String, bank_name: String, :last4 => String }
|
|
150
|
+
|
|
151
|
+
class UsBankAccount < WhopSDK::Internal::Type::BaseModel
|
|
152
|
+
attr_accessor account_type: String
|
|
153
|
+
|
|
154
|
+
attr_accessor bank_name: String
|
|
155
|
+
|
|
156
|
+
attr_accessor last4: String
|
|
157
|
+
|
|
158
|
+
def initialize: (
|
|
159
|
+
account_type: String,
|
|
160
|
+
bank_name: String,
|
|
161
|
+
last4: String
|
|
162
|
+
) -> void
|
|
163
|
+
|
|
164
|
+
def to_hash: -> {
|
|
165
|
+
account_type: String,
|
|
166
|
+
bank_name: String,
|
|
167
|
+
:last4 => String
|
|
168
|
+
}
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
def self?.variants: -> ::Array[WhopSDK::Models::payment_method_retrieve_response]
|
|
65
173
|
end
|
|
66
174
|
end
|
|
67
175
|
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payout_method_list_params =
|
|
4
|
+
{
|
|
5
|
+
company_id: String,
|
|
6
|
+
after: String?,
|
|
7
|
+
before: String?,
|
|
8
|
+
first: Integer?,
|
|
9
|
+
last: Integer?
|
|
10
|
+
}
|
|
11
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class PayoutMethodListParams < WhopSDK::Internal::Type::BaseModel
|
|
14
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor company_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor after: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor before: String?
|
|
22
|
+
|
|
23
|
+
attr_accessor first: Integer?
|
|
24
|
+
|
|
25
|
+
attr_accessor last: Integer?
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
company_id: String,
|
|
29
|
+
?after: String?,
|
|
30
|
+
?before: String?,
|
|
31
|
+
?first: Integer?,
|
|
32
|
+
?last: Integer?,
|
|
33
|
+
?request_options: WhopSDK::request_opts
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
company_id: String,
|
|
38
|
+
after: String?,
|
|
39
|
+
before: String?,
|
|
40
|
+
first: Integer?,
|
|
41
|
+
last: Integer?,
|
|
42
|
+
request_options: WhopSDK::RequestOptions
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payout_method_list_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
currency: String,
|
|
7
|
+
destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
|
|
8
|
+
nickname: String?
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class PayoutMethodListResponse < WhopSDK::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor currency: String
|
|
15
|
+
|
|
16
|
+
attr_accessor destination: WhopSDK::Models::PayoutMethodListResponse::Destination?
|
|
17
|
+
|
|
18
|
+
attr_accessor nickname: String?
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
id: String,
|
|
22
|
+
currency: String,
|
|
23
|
+
destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
|
|
24
|
+
nickname: String?
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
id: String,
|
|
29
|
+
currency: String,
|
|
30
|
+
destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
|
|
31
|
+
nickname: String?
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type destination =
|
|
35
|
+
{
|
|
36
|
+
category: WhopSDK::Models::PayoutMethodListResponse::Destination::category,
|
|
37
|
+
country_code: String,
|
|
38
|
+
name: String
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
42
|
+
attr_accessor category: WhopSDK::Models::PayoutMethodListResponse::Destination::category
|
|
43
|
+
|
|
44
|
+
attr_accessor country_code: String
|
|
45
|
+
|
|
46
|
+
attr_accessor name: String
|
|
47
|
+
|
|
48
|
+
def initialize: (
|
|
49
|
+
category: WhopSDK::Models::PayoutMethodListResponse::Destination::category,
|
|
50
|
+
country_code: String,
|
|
51
|
+
name: String
|
|
52
|
+
) -> void
|
|
53
|
+
|
|
54
|
+
def to_hash: -> {
|
|
55
|
+
category: WhopSDK::Models::PayoutMethodListResponse::Destination::category,
|
|
56
|
+
country_code: String,
|
|
57
|
+
name: String
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
type category =
|
|
61
|
+
:crypto
|
|
62
|
+
| :rtp
|
|
63
|
+
| :next_day_bank
|
|
64
|
+
| :bank_wire
|
|
65
|
+
| :digital_wallet
|
|
66
|
+
| :unknown
|
|
67
|
+
|
|
68
|
+
module Category
|
|
69
|
+
extend WhopSDK::Internal::Type::Enum
|
|
70
|
+
|
|
71
|
+
CRYPTO: :crypto
|
|
72
|
+
RTP: :rtp
|
|
73
|
+
NEXT_DAY_BANK: :next_day_bank
|
|
74
|
+
BANK_WIRE: :bank_wire
|
|
75
|
+
DIGITAL_WALLET: :digital_wallet
|
|
76
|
+
UNKNOWN: :unknown
|
|
77
|
+
|
|
78
|
+
def self?.values: -> ::Array[WhopSDK::Models::PayoutMethodListResponse::Destination::category]
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type withdrawal_create_params =
|
|
4
|
+
{
|
|
5
|
+
amount: Float,
|
|
6
|
+
company_id: String,
|
|
7
|
+
currency: WhopSDK::Models::currency,
|
|
8
|
+
payout_method_id: String?
|
|
9
|
+
}
|
|
10
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class WithdrawalCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor amount: Float
|
|
17
|
+
|
|
18
|
+
attr_accessor company_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
21
|
+
|
|
22
|
+
attr_accessor payout_method_id: String?
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
amount: Float,
|
|
26
|
+
company_id: String,
|
|
27
|
+
currency: WhopSDK::Models::currency,
|
|
28
|
+
?payout_method_id: String?,
|
|
29
|
+
?request_options: WhopSDK::request_opts
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
amount: Float,
|
|
34
|
+
company_id: String,
|
|
35
|
+
currency: WhopSDK::Models::currency,
|
|
36
|
+
payout_method_id: String?,
|
|
37
|
+
request_options: WhopSDK::RequestOptions
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type withdrawal_create_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
amount: Float,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
currency: WhopSDK::Models::currency,
|
|
9
|
+
error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?,
|
|
10
|
+
error_message: String?,
|
|
11
|
+
estimated_availability: Time?,
|
|
12
|
+
fee_amount: Float,
|
|
13
|
+
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
14
|
+
ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount,
|
|
15
|
+
markup_fee: Float,
|
|
16
|
+
payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?,
|
|
17
|
+
speed: WhopSDK::Models::withdrawal_speeds,
|
|
18
|
+
status: WhopSDK::Models::withdrawal_status,
|
|
19
|
+
trace_code: String?,
|
|
20
|
+
withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
class WithdrawalCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
24
|
+
attr_accessor id: String
|
|
25
|
+
|
|
26
|
+
attr_accessor amount: Float
|
|
27
|
+
|
|
28
|
+
attr_accessor created_at: Time
|
|
29
|
+
|
|
30
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
31
|
+
|
|
32
|
+
attr_accessor error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?
|
|
33
|
+
|
|
34
|
+
attr_accessor error_message: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor estimated_availability: Time?
|
|
37
|
+
|
|
38
|
+
attr_accessor fee_amount: Float
|
|
39
|
+
|
|
40
|
+
attr_accessor fee_type: WhopSDK::Models::withdrawal_fee_types?
|
|
41
|
+
|
|
42
|
+
attr_accessor ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount
|
|
43
|
+
|
|
44
|
+
attr_accessor markup_fee: Float
|
|
45
|
+
|
|
46
|
+
attr_accessor payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?
|
|
47
|
+
|
|
48
|
+
attr_accessor speed: WhopSDK::Models::withdrawal_speeds
|
|
49
|
+
|
|
50
|
+
attr_accessor status: WhopSDK::Models::withdrawal_status
|
|
51
|
+
|
|
52
|
+
attr_accessor trace_code: String?
|
|
53
|
+
|
|
54
|
+
attr_accessor withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
55
|
+
|
|
56
|
+
def initialize: (
|
|
57
|
+
id: String,
|
|
58
|
+
amount: Float,
|
|
59
|
+
created_at: Time,
|
|
60
|
+
currency: WhopSDK::Models::currency,
|
|
61
|
+
error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?,
|
|
62
|
+
error_message: String?,
|
|
63
|
+
estimated_availability: Time?,
|
|
64
|
+
fee_amount: Float,
|
|
65
|
+
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
66
|
+
ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount,
|
|
67
|
+
markup_fee: Float,
|
|
68
|
+
payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?,
|
|
69
|
+
speed: WhopSDK::Models::withdrawal_speeds,
|
|
70
|
+
status: WhopSDK::Models::withdrawal_status,
|
|
71
|
+
trace_code: String?,
|
|
72
|
+
withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
73
|
+
) -> void
|
|
74
|
+
|
|
75
|
+
def to_hash: -> {
|
|
76
|
+
id: String,
|
|
77
|
+
amount: Float,
|
|
78
|
+
created_at: Time,
|
|
79
|
+
currency: WhopSDK::Models::currency,
|
|
80
|
+
error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?,
|
|
81
|
+
error_message: String?,
|
|
82
|
+
estimated_availability: Time?,
|
|
83
|
+
fee_amount: Float,
|
|
84
|
+
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
85
|
+
ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount,
|
|
86
|
+
markup_fee: Float,
|
|
87
|
+
payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?,
|
|
88
|
+
speed: WhopSDK::Models::withdrawal_speeds,
|
|
89
|
+
status: WhopSDK::Models::withdrawal_status,
|
|
90
|
+
trace_code: String?,
|
|
91
|
+
withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
type error_code =
|
|
95
|
+
:account_closed
|
|
96
|
+
| :account_does_not_exist
|
|
97
|
+
| :account_information_invalid
|
|
98
|
+
| :account_number_invalid_region
|
|
99
|
+
| :account_frozen
|
|
100
|
+
| :account_lookup_failed
|
|
101
|
+
| :account_not_found
|
|
102
|
+
| :amount_out_of_bounds
|
|
103
|
+
| :attributes_not_validated
|
|
104
|
+
| :b2b_payments_prohibited
|
|
105
|
+
| :bank_statement_required
|
|
106
|
+
| :compliance_review
|
|
107
|
+
| :currency_not_supported
|
|
108
|
+
| :deposit_canceled
|
|
109
|
+
| :deposit_failed
|
|
110
|
+
| :deposit_rejected
|
|
111
|
+
| :destination_unavailable
|
|
112
|
+
| :exceeded_account_limit
|
|
113
|
+
| :expired_quote
|
|
114
|
+
| :generic_payout_error
|
|
115
|
+
| :technical_problem
|
|
116
|
+
| :identification_number_invalid
|
|
117
|
+
| :invalid_account_number
|
|
118
|
+
| :invalid_bank_code
|
|
119
|
+
| :invalid_beneficiary
|
|
120
|
+
| :invalid_branch_number
|
|
121
|
+
| :invalid_branch_code
|
|
122
|
+
| :invalid_phone_number
|
|
123
|
+
| :invalid_routing_number
|
|
124
|
+
| :invalid_swift_code
|
|
125
|
+
| :invalid_company_details
|
|
126
|
+
| :manual_cancelation
|
|
127
|
+
| :misc_error
|
|
128
|
+
| :missing_city_and_country
|
|
129
|
+
| :missing_phone_number
|
|
130
|
+
| :missing_remittance_info
|
|
131
|
+
| :payee_name_invalid
|
|
132
|
+
| :receiving_account_locked
|
|
133
|
+
| :rejected_by_compliance
|
|
134
|
+
| :rtp_not_supported
|
|
135
|
+
| :non_transaction_account
|
|
136
|
+
| :source_token_insufficient_funds
|
|
137
|
+
| :ssn_invalid
|
|
138
|
+
| :wallet_screenshot_required
|
|
139
|
+
| :unsupported_region
|
|
140
|
+
|
|
141
|
+
module ErrorCode
|
|
142
|
+
extend WhopSDK::Internal::Type::Enum
|
|
143
|
+
|
|
144
|
+
ACCOUNT_CLOSED: :account_closed
|
|
145
|
+
ACCOUNT_DOES_NOT_EXIST: :account_does_not_exist
|
|
146
|
+
ACCOUNT_INFORMATION_INVALID: :account_information_invalid
|
|
147
|
+
ACCOUNT_NUMBER_INVALID_REGION: :account_number_invalid_region
|
|
148
|
+
ACCOUNT_FROZEN: :account_frozen
|
|
149
|
+
ACCOUNT_LOOKUP_FAILED: :account_lookup_failed
|
|
150
|
+
ACCOUNT_NOT_FOUND: :account_not_found
|
|
151
|
+
AMOUNT_OUT_OF_BOUNDS: :amount_out_of_bounds
|
|
152
|
+
ATTRIBUTES_NOT_VALIDATED: :attributes_not_validated
|
|
153
|
+
B2B_PAYMENTS_PROHIBITED: :b2b_payments_prohibited
|
|
154
|
+
BANK_STATEMENT_REQUIRED: :bank_statement_required
|
|
155
|
+
COMPLIANCE_REVIEW: :compliance_review
|
|
156
|
+
CURRENCY_NOT_SUPPORTED: :currency_not_supported
|
|
157
|
+
DEPOSIT_CANCELED: :deposit_canceled
|
|
158
|
+
DEPOSIT_FAILED: :deposit_failed
|
|
159
|
+
DEPOSIT_REJECTED: :deposit_rejected
|
|
160
|
+
DESTINATION_UNAVAILABLE: :destination_unavailable
|
|
161
|
+
EXCEEDED_ACCOUNT_LIMIT: :exceeded_account_limit
|
|
162
|
+
EXPIRED_QUOTE: :expired_quote
|
|
163
|
+
GENERIC_PAYOUT_ERROR: :generic_payout_error
|
|
164
|
+
TECHNICAL_PROBLEM: :technical_problem
|
|
165
|
+
IDENTIFICATION_NUMBER_INVALID: :identification_number_invalid
|
|
166
|
+
INVALID_ACCOUNT_NUMBER: :invalid_account_number
|
|
167
|
+
INVALID_BANK_CODE: :invalid_bank_code
|
|
168
|
+
INVALID_BENEFICIARY: :invalid_beneficiary
|
|
169
|
+
INVALID_BRANCH_NUMBER: :invalid_branch_number
|
|
170
|
+
INVALID_BRANCH_CODE: :invalid_branch_code
|
|
171
|
+
INVALID_PHONE_NUMBER: :invalid_phone_number
|
|
172
|
+
INVALID_ROUTING_NUMBER: :invalid_routing_number
|
|
173
|
+
INVALID_SWIFT_CODE: :invalid_swift_code
|
|
174
|
+
INVALID_COMPANY_DETAILS: :invalid_company_details
|
|
175
|
+
MANUAL_CANCELATION: :manual_cancelation
|
|
176
|
+
MISC_ERROR: :misc_error
|
|
177
|
+
MISSING_CITY_AND_COUNTRY: :missing_city_and_country
|
|
178
|
+
MISSING_PHONE_NUMBER: :missing_phone_number
|
|
179
|
+
MISSING_REMITTANCE_INFO: :missing_remittance_info
|
|
180
|
+
PAYEE_NAME_INVALID: :payee_name_invalid
|
|
181
|
+
RECEIVING_ACCOUNT_LOCKED: :receiving_account_locked
|
|
182
|
+
REJECTED_BY_COMPLIANCE: :rejected_by_compliance
|
|
183
|
+
RTP_NOT_SUPPORTED: :rtp_not_supported
|
|
184
|
+
NON_TRANSACTION_ACCOUNT: :non_transaction_account
|
|
185
|
+
SOURCE_TOKEN_INSUFFICIENT_FUNDS: :source_token_insufficient_funds
|
|
186
|
+
SSN_INVALID: :ssn_invalid
|
|
187
|
+
WALLET_SCREENSHOT_REQUIRED: :wallet_screenshot_required
|
|
188
|
+
UNSUPPORTED_REGION: :unsupported_region
|
|
189
|
+
|
|
190
|
+
def self?.values: -> ::Array[WhopSDK::Models::WithdrawalCreateResponse::error_code]
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
type ledger_account = { id: String, company_id: String? }
|
|
194
|
+
|
|
195
|
+
class LedgerAccount < WhopSDK::Internal::Type::BaseModel
|
|
196
|
+
attr_accessor id: String
|
|
197
|
+
|
|
198
|
+
attr_accessor company_id: String?
|
|
199
|
+
|
|
200
|
+
def initialize: (id: String, company_id: String?) -> void
|
|
201
|
+
|
|
202
|
+
def to_hash: -> { id: String, company_id: String? }
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
type payout_token =
|
|
206
|
+
{
|
|
207
|
+
id: String,
|
|
208
|
+
created_at: Time,
|
|
209
|
+
destination_currency_code: String,
|
|
210
|
+
nickname: String?,
|
|
211
|
+
payer_name: String?
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
class PayoutToken < WhopSDK::Internal::Type::BaseModel
|
|
215
|
+
attr_accessor id: String
|
|
216
|
+
|
|
217
|
+
attr_accessor created_at: Time
|
|
218
|
+
|
|
219
|
+
attr_accessor destination_currency_code: String
|
|
220
|
+
|
|
221
|
+
attr_accessor nickname: String?
|
|
222
|
+
|
|
223
|
+
attr_accessor payer_name: String?
|
|
224
|
+
|
|
225
|
+
def initialize: (
|
|
226
|
+
id: String,
|
|
227
|
+
created_at: Time,
|
|
228
|
+
destination_currency_code: String,
|
|
229
|
+
nickname: String?,
|
|
230
|
+
payer_name: String?
|
|
231
|
+
) -> void
|
|
232
|
+
|
|
233
|
+
def to_hash: -> {
|
|
234
|
+
id: String,
|
|
235
|
+
created_at: Time,
|
|
236
|
+
destination_currency_code: String,
|
|
237
|
+
nickname: String?,
|
|
238
|
+
payer_name: String?
|
|
239
|
+
}
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
end
|
data/sig/whop_sdk/models.rbs
CHANGED
|
@@ -203,6 +203,14 @@ module WhopSDK
|
|
|
203
203
|
|
|
204
204
|
class ExperienceUpdateParams = WhopSDK::Models::ExperienceUpdateParams
|
|
205
205
|
|
|
206
|
+
class FeeMarkupCreateParams = WhopSDK::Models::FeeMarkupCreateParams
|
|
207
|
+
|
|
208
|
+
class FeeMarkupDeleteParams = WhopSDK::Models::FeeMarkupDeleteParams
|
|
209
|
+
|
|
210
|
+
class FeeMarkupListParams = WhopSDK::Models::FeeMarkupListParams
|
|
211
|
+
|
|
212
|
+
module FeeMarkupType = WhopSDK::Models::FeeMarkupType
|
|
213
|
+
|
|
206
214
|
class Forum = WhopSDK::Models::Forum
|
|
207
215
|
|
|
208
216
|
class ForumListParams = WhopSDK::Models::ForumListParams
|
|
@@ -309,6 +317,8 @@ module WhopSDK
|
|
|
309
317
|
|
|
310
318
|
class PaymentFailedWebhookEvent = WhopSDK::Models::PaymentFailedWebhookEvent
|
|
311
319
|
|
|
320
|
+
class PaymentListFeesParams = WhopSDK::Models::PaymentListFeesParams
|
|
321
|
+
|
|
312
322
|
class PaymentListParams = WhopSDK::Models::PaymentListParams
|
|
313
323
|
|
|
314
324
|
class PaymentMethodListParams = WhopSDK::Models::PaymentMethodListParams
|
|
@@ -331,6 +341,8 @@ module WhopSDK
|
|
|
331
341
|
|
|
332
342
|
class PaymentVoidParams = WhopSDK::Models::PaymentVoidParams
|
|
333
343
|
|
|
344
|
+
class PayoutMethodListParams = WhopSDK::Models::PayoutMethodListParams
|
|
345
|
+
|
|
334
346
|
class Plan = WhopSDK::Models::Plan
|
|
335
347
|
|
|
336
348
|
class PlanCreateParams = WhopSDK::Models::PlanCreateParams
|
|
@@ -475,6 +487,8 @@ module WhopSDK
|
|
|
475
487
|
|
|
476
488
|
class WithdrawalCreatedWebhookEvent = WhopSDK::Models::WithdrawalCreatedWebhookEvent
|
|
477
489
|
|
|
490
|
+
class WithdrawalCreateParams = WhopSDK::Models::WithdrawalCreateParams
|
|
491
|
+
|
|
478
492
|
module WithdrawalFeeTypes = WhopSDK::Models::WithdrawalFeeTypes
|
|
479
493
|
|
|
480
494
|
class WithdrawalListParams = WhopSDK::Models::WithdrawalListParams
|
|
@@ -6,6 +6,7 @@ module WhopSDK
|
|
|
6
6
|
plan_id: String,
|
|
7
7
|
company_id: String,
|
|
8
8
|
?affiliate_code: String?,
|
|
9
|
+
?currency: WhopSDK::Models::currency?,
|
|
9
10
|
?metadata: ::Hash[Symbol, top]?,
|
|
10
11
|
?payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
|
|
11
12
|
?redirect_url: String?,
|
|
@@ -4,6 +4,7 @@ module WhopSDK
|
|
|
4
4
|
def create: (
|
|
5
5
|
app_id: String,
|
|
6
6
|
company_id: String,
|
|
7
|
+
?is_public: bool?,
|
|
7
8
|
?name: String?,
|
|
8
9
|
?section_id: String?,
|
|
9
10
|
?request_options: WhopSDK::request_opts
|
|
@@ -17,6 +18,7 @@ module WhopSDK
|
|
|
17
18
|
def update: (
|
|
18
19
|
String id,
|
|
19
20
|
?access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
|
|
21
|
+
?is_public: bool?,
|
|
20
22
|
?logo: WhopSDK::Models::ExperienceUpdateParams::logo?,
|
|
21
23
|
?name: String?,
|
|
22
24
|
?order: String?,
|