whop_sdk 0.0.20 → 0.0.22
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 +31 -0
- data/README.md +10 -1
- data/lib/whop_sdk/client.rb +12 -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/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_cancel_at_period_end_changed_webhook_event.rb +53 -0
- 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_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/payout_method_created_webhook_event.rb +168 -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/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 +142 -0
- data/lib/whop_sdk/models.rb +21 -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/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 +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +20 -0
- data/rbi/whop_sdk/client.rbi +9 -0
- 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_cancel_at_period_end_changed_webhook_event.rbi +77 -0
- 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_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/payout_method_created_webhook_event.rbi +340 -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/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 +367 -0
- data/rbi/whop_sdk/models.rbi +23 -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/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 +4 -1
- data/sig/whop_sdk/client.rbs +6 -0
- 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_cancel_at_period_end_changed_webhook_event.rbs +40 -0
- 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_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/payout_method_created_webhook_event.rbs +140 -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/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 +154 -0
- data/sig/whop_sdk/models.rbs +20 -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/topups.rbs +15 -0
- data/sig/whop_sdk/resources/verifications.rbs +12 -0
- data/sig/whop_sdk/resources/webhooks.rbs +4 -1
- metadata +62 -2
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payout_method_created_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
api_version: :v1,
|
|
7
|
+
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
|
|
8
|
+
timestamp: Time,
|
|
9
|
+
type: :"payout_method.created"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class PayoutMethodCreatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor api_version: :v1
|
|
16
|
+
|
|
17
|
+
attr_accessor data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data
|
|
18
|
+
|
|
19
|
+
attr_accessor timestamp: Time
|
|
20
|
+
|
|
21
|
+
attr_accessor type: :"payout_method.created"
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
|
|
26
|
+
timestamp: Time,
|
|
27
|
+
?api_version: :v1,
|
|
28
|
+
?type: :"payout_method.created"
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
api_version: :v1,
|
|
34
|
+
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
|
|
35
|
+
timestamp: Time,
|
|
36
|
+
type: :"payout_method.created"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type data =
|
|
40
|
+
{
|
|
41
|
+
id: String,
|
|
42
|
+
company: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company?,
|
|
43
|
+
currency: String,
|
|
44
|
+
destination: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination?,
|
|
45
|
+
is_default: bool,
|
|
46
|
+
nickname: String?
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
class Data < WhopSDK::Internal::Type::BaseModel
|
|
50
|
+
attr_accessor id: String
|
|
51
|
+
|
|
52
|
+
attr_accessor company: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company?
|
|
53
|
+
|
|
54
|
+
attr_accessor currency: String
|
|
55
|
+
|
|
56
|
+
attr_accessor destination: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination?
|
|
57
|
+
|
|
58
|
+
attr_accessor is_default: bool
|
|
59
|
+
|
|
60
|
+
attr_accessor nickname: String?
|
|
61
|
+
|
|
62
|
+
def initialize: (
|
|
63
|
+
id: String,
|
|
64
|
+
company: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company?,
|
|
65
|
+
currency: String,
|
|
66
|
+
destination: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination?,
|
|
67
|
+
is_default: bool,
|
|
68
|
+
nickname: String?
|
|
69
|
+
) -> void
|
|
70
|
+
|
|
71
|
+
def to_hash: -> {
|
|
72
|
+
id: String,
|
|
73
|
+
company: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company?,
|
|
74
|
+
currency: String,
|
|
75
|
+
destination: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination?,
|
|
76
|
+
is_default: bool,
|
|
77
|
+
nickname: String?
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type company = { id: String }
|
|
81
|
+
|
|
82
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
83
|
+
attr_accessor id: String
|
|
84
|
+
|
|
85
|
+
def initialize: (id: String) -> void
|
|
86
|
+
|
|
87
|
+
def to_hash: -> { id: String }
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
type destination =
|
|
91
|
+
{
|
|
92
|
+
category: WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category,
|
|
93
|
+
country_code: String,
|
|
94
|
+
name: String
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
98
|
+
attr_accessor category: WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category
|
|
99
|
+
|
|
100
|
+
attr_accessor country_code: String
|
|
101
|
+
|
|
102
|
+
attr_accessor name: String
|
|
103
|
+
|
|
104
|
+
def initialize: (
|
|
105
|
+
category: WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category,
|
|
106
|
+
country_code: String,
|
|
107
|
+
name: String
|
|
108
|
+
) -> void
|
|
109
|
+
|
|
110
|
+
def to_hash: -> {
|
|
111
|
+
category: WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category,
|
|
112
|
+
country_code: String,
|
|
113
|
+
name: String
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
type category =
|
|
117
|
+
:crypto
|
|
118
|
+
| :rtp
|
|
119
|
+
| :next_day_bank
|
|
120
|
+
| :bank_wire
|
|
121
|
+
| :digital_wallet
|
|
122
|
+
| :unknown
|
|
123
|
+
|
|
124
|
+
module Category
|
|
125
|
+
extend WhopSDK::Internal::Type::Enum
|
|
126
|
+
|
|
127
|
+
CRYPTO: :crypto
|
|
128
|
+
RTP: :rtp
|
|
129
|
+
NEXT_DAY_BANK: :next_day_bank
|
|
130
|
+
BANK_WIRE: :bank_wire
|
|
131
|
+
DIGITAL_WALLET: :digital_wallet
|
|
132
|
+
UNKNOWN: :unknown
|
|
133
|
+
|
|
134
|
+
def self?.values: -> ::Array[WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category]
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
@@ -3,34 +3,54 @@ module WhopSDK
|
|
|
3
3
|
type payout_method_list_response =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
company: WhopSDK::Models::PayoutMethodListResponse::Company?,
|
|
6
7
|
currency: String,
|
|
7
8
|
destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
|
|
9
|
+
is_default: bool,
|
|
8
10
|
nickname: String?
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
class PayoutMethodListResponse < WhopSDK::Internal::Type::BaseModel
|
|
12
14
|
attr_accessor id: String
|
|
13
15
|
|
|
16
|
+
attr_accessor company: WhopSDK::Models::PayoutMethodListResponse::Company?
|
|
17
|
+
|
|
14
18
|
attr_accessor currency: String
|
|
15
19
|
|
|
16
20
|
attr_accessor destination: WhopSDK::Models::PayoutMethodListResponse::Destination?
|
|
17
21
|
|
|
22
|
+
attr_accessor is_default: bool
|
|
23
|
+
|
|
18
24
|
attr_accessor nickname: String?
|
|
19
25
|
|
|
20
26
|
def initialize: (
|
|
21
27
|
id: String,
|
|
28
|
+
company: WhopSDK::Models::PayoutMethodListResponse::Company?,
|
|
22
29
|
currency: String,
|
|
23
30
|
destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
|
|
31
|
+
is_default: bool,
|
|
24
32
|
nickname: String?
|
|
25
33
|
) -> void
|
|
26
34
|
|
|
27
35
|
def to_hash: -> {
|
|
28
36
|
id: String,
|
|
37
|
+
company: WhopSDK::Models::PayoutMethodListResponse::Company?,
|
|
29
38
|
currency: String,
|
|
30
39
|
destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
|
|
40
|
+
is_default: bool,
|
|
31
41
|
nickname: String?
|
|
32
42
|
}
|
|
33
43
|
|
|
44
|
+
type company = { id: String }
|
|
45
|
+
|
|
46
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
47
|
+
attr_accessor id: String
|
|
48
|
+
|
|
49
|
+
def initialize: (id: String) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> { id: String }
|
|
52
|
+
end
|
|
53
|
+
|
|
34
54
|
type destination =
|
|
35
55
|
{
|
|
36
56
|
category: WhopSDK::Models::PayoutMethodListResponse::Destination::category,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payout_method_retrieve_params =
|
|
4
|
+
{ } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PayoutMethodRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: WhopSDK::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: WhopSDK::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payout_method_retrieve_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
company: WhopSDK::Models::PayoutMethodRetrieveResponse::Company?,
|
|
7
|
+
currency: String,
|
|
8
|
+
destination: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination?,
|
|
9
|
+
is_default: bool,
|
|
10
|
+
nickname: String?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class PayoutMethodRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor company: WhopSDK::Models::PayoutMethodRetrieveResponse::Company?
|
|
17
|
+
|
|
18
|
+
attr_accessor currency: String
|
|
19
|
+
|
|
20
|
+
attr_accessor destination: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination?
|
|
21
|
+
|
|
22
|
+
attr_accessor is_default: bool
|
|
23
|
+
|
|
24
|
+
attr_accessor nickname: String?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
id: String,
|
|
28
|
+
company: WhopSDK::Models::PayoutMethodRetrieveResponse::Company?,
|
|
29
|
+
currency: String,
|
|
30
|
+
destination: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination?,
|
|
31
|
+
is_default: bool,
|
|
32
|
+
nickname: String?
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
id: String,
|
|
37
|
+
company: WhopSDK::Models::PayoutMethodRetrieveResponse::Company?,
|
|
38
|
+
currency: String,
|
|
39
|
+
destination: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination?,
|
|
40
|
+
is_default: bool,
|
|
41
|
+
nickname: String?
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type company = { id: String }
|
|
45
|
+
|
|
46
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
47
|
+
attr_accessor id: String
|
|
48
|
+
|
|
49
|
+
def initialize: (id: String) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> { id: String }
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
type destination =
|
|
55
|
+
{
|
|
56
|
+
category: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category,
|
|
57
|
+
country_code: String,
|
|
58
|
+
name: String
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
62
|
+
attr_accessor category: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category
|
|
63
|
+
|
|
64
|
+
attr_accessor country_code: String
|
|
65
|
+
|
|
66
|
+
attr_accessor name: String
|
|
67
|
+
|
|
68
|
+
def initialize: (
|
|
69
|
+
category: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category,
|
|
70
|
+
country_code: String,
|
|
71
|
+
name: String
|
|
72
|
+
) -> void
|
|
73
|
+
|
|
74
|
+
def to_hash: -> {
|
|
75
|
+
category: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category,
|
|
76
|
+
country_code: String,
|
|
77
|
+
name: String
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type category =
|
|
81
|
+
:crypto
|
|
82
|
+
| :rtp
|
|
83
|
+
| :next_day_bank
|
|
84
|
+
| :bank_wire
|
|
85
|
+
| :digital_wallet
|
|
86
|
+
| :unknown
|
|
87
|
+
|
|
88
|
+
module Category
|
|
89
|
+
extend WhopSDK::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
CRYPTO: :crypto
|
|
92
|
+
RTP: :rtp
|
|
93
|
+
NEXT_DAY_BANK: :next_day_bank
|
|
94
|
+
BANK_WIRE: :bank_wire
|
|
95
|
+
DIGITAL_WALLET: :digital_wallet
|
|
96
|
+
UNKNOWN: :unknown
|
|
97
|
+
|
|
98
|
+
def self?.values: -> ::Array[WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category]
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type topup_create_params =
|
|
4
|
+
{
|
|
5
|
+
amount: Float,
|
|
6
|
+
company_id: String,
|
|
7
|
+
currency: WhopSDK::Models::currency,
|
|
8
|
+
payment_method_id: String
|
|
9
|
+
}
|
|
10
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class TopupCreateParams < 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 payment_method_id: String
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
amount: Float,
|
|
26
|
+
company_id: String,
|
|
27
|
+
currency: WhopSDK::Models::currency,
|
|
28
|
+
payment_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
|
+
payment_method_id: String,
|
|
37
|
+
request_options: WhopSDK::RequestOptions
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type topup_create_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
currency: WhopSDK::Models::currency?,
|
|
8
|
+
failure_message: String?,
|
|
9
|
+
paid_at: Time?,
|
|
10
|
+
status: WhopSDK::Models::receipt_status?,
|
|
11
|
+
total: Float?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class TopupCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor created_at: Time
|
|
18
|
+
|
|
19
|
+
attr_accessor currency: WhopSDK::Models::currency?
|
|
20
|
+
|
|
21
|
+
attr_accessor failure_message: String?
|
|
22
|
+
|
|
23
|
+
attr_accessor paid_at: Time?
|
|
24
|
+
|
|
25
|
+
attr_accessor status: WhopSDK::Models::receipt_status?
|
|
26
|
+
|
|
27
|
+
attr_accessor total: Float?
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
id: String,
|
|
31
|
+
created_at: Time,
|
|
32
|
+
currency: WhopSDK::Models::currency?,
|
|
33
|
+
failure_message: String?,
|
|
34
|
+
paid_at: Time?,
|
|
35
|
+
status: WhopSDK::Models::receipt_status?,
|
|
36
|
+
total: Float?
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
id: String,
|
|
41
|
+
created_at: Time,
|
|
42
|
+
currency: WhopSDK::Models::currency?,
|
|
43
|
+
failure_message: String?,
|
|
44
|
+
paid_at: Time?,
|
|
45
|
+
status: WhopSDK::Models::receipt_status?,
|
|
46
|
+
total: Float?
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -17,6 +17,8 @@ module WhopSDK
|
|
|
17
17
|
| WhopSDK::WithdrawalCreatedWebhookEvent
|
|
18
18
|
| WhopSDK::WithdrawalUpdatedWebhookEvent
|
|
19
19
|
| WhopSDK::CourseLessonInteractionCompletedWebhookEvent
|
|
20
|
+
| WhopSDK::PayoutMethodCreatedWebhookEvent
|
|
21
|
+
| WhopSDK::VerificationSucceededWebhookEvent
|
|
20
22
|
| WhopSDK::PaymentCreatedWebhookEvent
|
|
21
23
|
| WhopSDK::PaymentSucceededWebhookEvent
|
|
22
24
|
| WhopSDK::PaymentFailedWebhookEvent
|
|
@@ -25,6 +27,7 @@ module WhopSDK
|
|
|
25
27
|
| WhopSDK::DisputeUpdatedWebhookEvent
|
|
26
28
|
| WhopSDK::RefundCreatedWebhookEvent
|
|
27
29
|
| WhopSDK::RefundUpdatedWebhookEvent
|
|
30
|
+
| WhopSDK::MembershipCancelAtPeriodEndChangedWebhookEvent
|
|
28
31
|
|
|
29
32
|
module UnwrapWebhookEvent
|
|
30
33
|
extend WhopSDK::Internal::Type::Union
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type verification_retrieve_params =
|
|
4
|
+
{ } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class VerificationRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: WhopSDK::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: WhopSDK::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type verification_retrieve_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
last_error_code: WhopSDK::Models::VerificationRetrieveResponse::last_error_code?,
|
|
7
|
+
last_error_reason: String?,
|
|
8
|
+
status: WhopSDK::Models::VerificationRetrieveResponse::status
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class VerificationRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor last_error_code: WhopSDK::Models::VerificationRetrieveResponse::last_error_code?
|
|
15
|
+
|
|
16
|
+
attr_accessor last_error_reason: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor status: WhopSDK::Models::VerificationRetrieveResponse::status
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
id: String,
|
|
22
|
+
last_error_code: WhopSDK::Models::VerificationRetrieveResponse::last_error_code?,
|
|
23
|
+
last_error_reason: String?,
|
|
24
|
+
status: WhopSDK::Models::VerificationRetrieveResponse::status
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
id: String,
|
|
29
|
+
last_error_code: WhopSDK::Models::VerificationRetrieveResponse::last_error_code?,
|
|
30
|
+
last_error_reason: String?,
|
|
31
|
+
status: WhopSDK::Models::VerificationRetrieveResponse::status
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type last_error_code =
|
|
35
|
+
:abandoned
|
|
36
|
+
| :consent_declined
|
|
37
|
+
| :country_not_supported
|
|
38
|
+
| :device_not_supported
|
|
39
|
+
| :document_expired
|
|
40
|
+
| :document_type_not_supported
|
|
41
|
+
| :document_unverified_other
|
|
42
|
+
| :email_unverified_other
|
|
43
|
+
| :email_verification_declined
|
|
44
|
+
| :id_number_insufficient_document_data
|
|
45
|
+
| :id_number_mismatch
|
|
46
|
+
| :id_number_unverified_other
|
|
47
|
+
| :phone_unverified_other
|
|
48
|
+
| :phone_verification_declined
|
|
49
|
+
| :selfie_document_missing_photo
|
|
50
|
+
| :selfie_face_mismatch
|
|
51
|
+
| :selfie_manipulated
|
|
52
|
+
| :selfie_unverified_other
|
|
53
|
+
| :under_supported_age
|
|
54
|
+
|
|
55
|
+
module LastErrorCode
|
|
56
|
+
extend WhopSDK::Internal::Type::Enum
|
|
57
|
+
|
|
58
|
+
ABANDONED: :abandoned
|
|
59
|
+
CONSENT_DECLINED: :consent_declined
|
|
60
|
+
COUNTRY_NOT_SUPPORTED: :country_not_supported
|
|
61
|
+
DEVICE_NOT_SUPPORTED: :device_not_supported
|
|
62
|
+
DOCUMENT_EXPIRED: :document_expired
|
|
63
|
+
DOCUMENT_TYPE_NOT_SUPPORTED: :document_type_not_supported
|
|
64
|
+
DOCUMENT_UNVERIFIED_OTHER: :document_unverified_other
|
|
65
|
+
EMAIL_UNVERIFIED_OTHER: :email_unverified_other
|
|
66
|
+
EMAIL_VERIFICATION_DECLINED: :email_verification_declined
|
|
67
|
+
ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA: :id_number_insufficient_document_data
|
|
68
|
+
ID_NUMBER_MISMATCH: :id_number_mismatch
|
|
69
|
+
ID_NUMBER_UNVERIFIED_OTHER: :id_number_unverified_other
|
|
70
|
+
PHONE_UNVERIFIED_OTHER: :phone_unverified_other
|
|
71
|
+
PHONE_VERIFICATION_DECLINED: :phone_verification_declined
|
|
72
|
+
SELFIE_DOCUMENT_MISSING_PHOTO: :selfie_document_missing_photo
|
|
73
|
+
SELFIE_FACE_MISMATCH: :selfie_face_mismatch
|
|
74
|
+
SELFIE_MANIPULATED: :selfie_manipulated
|
|
75
|
+
SELFIE_UNVERIFIED_OTHER: :selfie_unverified_other
|
|
76
|
+
UNDER_SUPPORTED_AGE: :under_supported_age
|
|
77
|
+
|
|
78
|
+
def self?.values: -> ::Array[WhopSDK::Models::VerificationRetrieveResponse::last_error_code]
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
type status =
|
|
82
|
+
:requires_input
|
|
83
|
+
| :processing
|
|
84
|
+
| :verified
|
|
85
|
+
| :canceled
|
|
86
|
+
| :created
|
|
87
|
+
| :started
|
|
88
|
+
| :submitted
|
|
89
|
+
| :approved
|
|
90
|
+
| :declined
|
|
91
|
+
| :resubmission_requested
|
|
92
|
+
| :expired
|
|
93
|
+
| :abandoned
|
|
94
|
+
| :review
|
|
95
|
+
|
|
96
|
+
module Status
|
|
97
|
+
extend WhopSDK::Internal::Type::Enum
|
|
98
|
+
|
|
99
|
+
REQUIRES_INPUT: :requires_input
|
|
100
|
+
PROCESSING: :processing
|
|
101
|
+
VERIFIED: :verified
|
|
102
|
+
CANCELED: :canceled
|
|
103
|
+
CREATED: :created
|
|
104
|
+
STARTED: :started
|
|
105
|
+
SUBMITTED: :submitted
|
|
106
|
+
APPROVED: :approved
|
|
107
|
+
DECLINED: :declined
|
|
108
|
+
RESUBMISSION_REQUESTED: :resubmission_requested
|
|
109
|
+
EXPIRED: :expired
|
|
110
|
+
ABANDONED: :abandoned
|
|
111
|
+
REVIEW: :review
|
|
112
|
+
|
|
113
|
+
def self?.values: -> ::Array[WhopSDK::Models::VerificationRetrieveResponse::status]
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|