whop_sdk 0.0.19 → 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 +41 -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/checkout_configuration_create_params.rb +11 -1
- data/lib/whop_sdk/models/company_create_params.rb +17 -1
- data/lib/whop_sdk/models/company_update_params.rb +17 -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 +128 -2
- 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/companies.rb +10 -2
- 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/checkout_configuration_create_params.rbi +12 -0
- data/rbi/whop_sdk/models/company_create_params.rbi +16 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +16 -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 +336 -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/companies.rbi +12 -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/checkout_configuration_create_params.rbs +5 -0
- data/sig/whop_sdk/models/company_create_params.rbs +10 -0
- data/sig/whop_sdk/models/company_update_params.rbs +10 -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 +134 -1
- 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/companies.rbs +4 -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,61 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type lead_list_params =
|
|
4
|
+
{
|
|
5
|
+
company_id: String,
|
|
6
|
+
after: String?,
|
|
7
|
+
before: String?,
|
|
8
|
+
created_after: Time?,
|
|
9
|
+
created_before: Time?,
|
|
10
|
+
first: Integer?,
|
|
11
|
+
last: Integer?,
|
|
12
|
+
product_ids: ::Array[String]?
|
|
13
|
+
}
|
|
14
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
15
|
+
|
|
16
|
+
class LeadListParams < WhopSDK::Internal::Type::BaseModel
|
|
17
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_accessor company_id: String
|
|
21
|
+
|
|
22
|
+
attr_accessor after: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor before: String?
|
|
25
|
+
|
|
26
|
+
attr_accessor created_after: Time?
|
|
27
|
+
|
|
28
|
+
attr_accessor created_before: Time?
|
|
29
|
+
|
|
30
|
+
attr_accessor first: Integer?
|
|
31
|
+
|
|
32
|
+
attr_accessor last: Integer?
|
|
33
|
+
|
|
34
|
+
attr_accessor product_ids: ::Array[String]?
|
|
35
|
+
|
|
36
|
+
def initialize: (
|
|
37
|
+
company_id: String,
|
|
38
|
+
?after: String?,
|
|
39
|
+
?before: String?,
|
|
40
|
+
?created_after: Time?,
|
|
41
|
+
?created_before: Time?,
|
|
42
|
+
?first: Integer?,
|
|
43
|
+
?last: Integer?,
|
|
44
|
+
?product_ids: ::Array[String]?,
|
|
45
|
+
?request_options: WhopSDK::request_opts
|
|
46
|
+
) -> void
|
|
47
|
+
|
|
48
|
+
def to_hash: -> {
|
|
49
|
+
company_id: String,
|
|
50
|
+
after: String?,
|
|
51
|
+
before: String?,
|
|
52
|
+
created_after: Time?,
|
|
53
|
+
created_before: Time?,
|
|
54
|
+
first: Integer?,
|
|
55
|
+
last: Integer?,
|
|
56
|
+
product_ids: ::Array[String]?,
|
|
57
|
+
request_options: WhopSDK::RequestOptions
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type lead_list_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
member: WhopSDK::Models::LeadListResponse::Member?,
|
|
8
|
+
metadata: ::Hash[Symbol, top]?,
|
|
9
|
+
product: WhopSDK::Models::LeadListResponse::Product?,
|
|
10
|
+
referrer: String?,
|
|
11
|
+
updated_at: Time,
|
|
12
|
+
user: WhopSDK::Models::LeadListResponse::User
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class LeadListResponse < WhopSDK::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor created_at: Time
|
|
19
|
+
|
|
20
|
+
attr_accessor member: WhopSDK::Models::LeadListResponse::Member?
|
|
21
|
+
|
|
22
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
23
|
+
|
|
24
|
+
attr_accessor product: WhopSDK::Models::LeadListResponse::Product?
|
|
25
|
+
|
|
26
|
+
attr_accessor referrer: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor updated_at: Time
|
|
29
|
+
|
|
30
|
+
attr_accessor user: WhopSDK::Models::LeadListResponse::User
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
id: String,
|
|
34
|
+
created_at: Time,
|
|
35
|
+
member: WhopSDK::Models::LeadListResponse::Member?,
|
|
36
|
+
metadata: ::Hash[Symbol, top]?,
|
|
37
|
+
product: WhopSDK::Models::LeadListResponse::Product?,
|
|
38
|
+
referrer: String?,
|
|
39
|
+
updated_at: Time,
|
|
40
|
+
user: WhopSDK::Models::LeadListResponse::User
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
id: String,
|
|
45
|
+
created_at: Time,
|
|
46
|
+
member: WhopSDK::Models::LeadListResponse::Member?,
|
|
47
|
+
metadata: ::Hash[Symbol, top]?,
|
|
48
|
+
product: WhopSDK::Models::LeadListResponse::Product?,
|
|
49
|
+
referrer: String?,
|
|
50
|
+
updated_at: Time,
|
|
51
|
+
user: WhopSDK::Models::LeadListResponse::User
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
type member = { id: String }
|
|
55
|
+
|
|
56
|
+
class Member < WhopSDK::Internal::Type::BaseModel
|
|
57
|
+
attr_accessor id: String
|
|
58
|
+
|
|
59
|
+
def initialize: (id: String) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> { id: String }
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
type product = { id: String, title: String }
|
|
65
|
+
|
|
66
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
67
|
+
attr_accessor id: String
|
|
68
|
+
|
|
69
|
+
attr_accessor title: String
|
|
70
|
+
|
|
71
|
+
def initialize: (id: String, title: String) -> void
|
|
72
|
+
|
|
73
|
+
def to_hash: -> { id: String, title: String }
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
type user =
|
|
77
|
+
{ id: String, email: String?, name: String?, username: String }
|
|
78
|
+
|
|
79
|
+
class User < WhopSDK::Internal::Type::BaseModel
|
|
80
|
+
attr_accessor id: String
|
|
81
|
+
|
|
82
|
+
attr_accessor email: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor name: String?
|
|
85
|
+
|
|
86
|
+
attr_accessor username: String
|
|
87
|
+
|
|
88
|
+
def initialize: (
|
|
89
|
+
id: String,
|
|
90
|
+
email: String?,
|
|
91
|
+
name: String?,
|
|
92
|
+
username: String
|
|
93
|
+
) -> void
|
|
94
|
+
|
|
95
|
+
def to_hash: -> {
|
|
96
|
+
id: String,
|
|
97
|
+
email: String?,
|
|
98
|
+
name: String?,
|
|
99
|
+
username: String
|
|
100
|
+
}
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type lead_retrieve_params =
|
|
4
|
+
{ } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class LeadRetrieveParams < 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,104 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type lead_retrieve_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
member: WhopSDK::Models::LeadRetrieveResponse::Member?,
|
|
8
|
+
metadata: ::Hash[Symbol, top]?,
|
|
9
|
+
product: WhopSDK::Models::LeadRetrieveResponse::Product?,
|
|
10
|
+
referrer: String?,
|
|
11
|
+
updated_at: Time,
|
|
12
|
+
user: WhopSDK::Models::LeadRetrieveResponse::User
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class LeadRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor created_at: Time
|
|
19
|
+
|
|
20
|
+
attr_accessor member: WhopSDK::Models::LeadRetrieveResponse::Member?
|
|
21
|
+
|
|
22
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
23
|
+
|
|
24
|
+
attr_accessor product: WhopSDK::Models::LeadRetrieveResponse::Product?
|
|
25
|
+
|
|
26
|
+
attr_accessor referrer: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor updated_at: Time
|
|
29
|
+
|
|
30
|
+
attr_accessor user: WhopSDK::Models::LeadRetrieveResponse::User
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
id: String,
|
|
34
|
+
created_at: Time,
|
|
35
|
+
member: WhopSDK::Models::LeadRetrieveResponse::Member?,
|
|
36
|
+
metadata: ::Hash[Symbol, top]?,
|
|
37
|
+
product: WhopSDK::Models::LeadRetrieveResponse::Product?,
|
|
38
|
+
referrer: String?,
|
|
39
|
+
updated_at: Time,
|
|
40
|
+
user: WhopSDK::Models::LeadRetrieveResponse::User
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
id: String,
|
|
45
|
+
created_at: Time,
|
|
46
|
+
member: WhopSDK::Models::LeadRetrieveResponse::Member?,
|
|
47
|
+
metadata: ::Hash[Symbol, top]?,
|
|
48
|
+
product: WhopSDK::Models::LeadRetrieveResponse::Product?,
|
|
49
|
+
referrer: String?,
|
|
50
|
+
updated_at: Time,
|
|
51
|
+
user: WhopSDK::Models::LeadRetrieveResponse::User
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
type member = { id: String }
|
|
55
|
+
|
|
56
|
+
class Member < WhopSDK::Internal::Type::BaseModel
|
|
57
|
+
attr_accessor id: String
|
|
58
|
+
|
|
59
|
+
def initialize: (id: String) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> { id: String }
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
type product = { id: String, title: String }
|
|
65
|
+
|
|
66
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
67
|
+
attr_accessor id: String
|
|
68
|
+
|
|
69
|
+
attr_accessor title: String
|
|
70
|
+
|
|
71
|
+
def initialize: (id: String, title: String) -> void
|
|
72
|
+
|
|
73
|
+
def to_hash: -> { id: String, title: String }
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
type user =
|
|
77
|
+
{ id: String, email: String?, name: String?, username: String }
|
|
78
|
+
|
|
79
|
+
class User < WhopSDK::Internal::Type::BaseModel
|
|
80
|
+
attr_accessor id: String
|
|
81
|
+
|
|
82
|
+
attr_accessor email: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor name: String?
|
|
85
|
+
|
|
86
|
+
attr_accessor username: String
|
|
87
|
+
|
|
88
|
+
def initialize: (
|
|
89
|
+
id: String,
|
|
90
|
+
email: String?,
|
|
91
|
+
name: String?,
|
|
92
|
+
username: String
|
|
93
|
+
) -> void
|
|
94
|
+
|
|
95
|
+
def to_hash: -> {
|
|
96
|
+
id: String,
|
|
97
|
+
email: String?,
|
|
98
|
+
name: String?,
|
|
99
|
+
username: String
|
|
100
|
+
}
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type lead_update_params =
|
|
4
|
+
{ metadata: ::Hash[Symbol, top]?, referrer: String? }
|
|
5
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class LeadUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
8
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
12
|
+
|
|
13
|
+
attr_accessor referrer: String?
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
?metadata: ::Hash[Symbol, top]?,
|
|
17
|
+
?referrer: String?,
|
|
18
|
+
?request_options: WhopSDK::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
metadata: ::Hash[Symbol, top]?,
|
|
23
|
+
referrer: String?,
|
|
24
|
+
request_options: WhopSDK::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type lead_update_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
member: WhopSDK::Models::LeadUpdateResponse::Member?,
|
|
8
|
+
metadata: ::Hash[Symbol, top]?,
|
|
9
|
+
product: WhopSDK::Models::LeadUpdateResponse::Product?,
|
|
10
|
+
referrer: String?,
|
|
11
|
+
updated_at: Time,
|
|
12
|
+
user: WhopSDK::Models::LeadUpdateResponse::User
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class LeadUpdateResponse < WhopSDK::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor created_at: Time
|
|
19
|
+
|
|
20
|
+
attr_accessor member: WhopSDK::Models::LeadUpdateResponse::Member?
|
|
21
|
+
|
|
22
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
23
|
+
|
|
24
|
+
attr_accessor product: WhopSDK::Models::LeadUpdateResponse::Product?
|
|
25
|
+
|
|
26
|
+
attr_accessor referrer: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor updated_at: Time
|
|
29
|
+
|
|
30
|
+
attr_accessor user: WhopSDK::Models::LeadUpdateResponse::User
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
id: String,
|
|
34
|
+
created_at: Time,
|
|
35
|
+
member: WhopSDK::Models::LeadUpdateResponse::Member?,
|
|
36
|
+
metadata: ::Hash[Symbol, top]?,
|
|
37
|
+
product: WhopSDK::Models::LeadUpdateResponse::Product?,
|
|
38
|
+
referrer: String?,
|
|
39
|
+
updated_at: Time,
|
|
40
|
+
user: WhopSDK::Models::LeadUpdateResponse::User
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
id: String,
|
|
45
|
+
created_at: Time,
|
|
46
|
+
member: WhopSDK::Models::LeadUpdateResponse::Member?,
|
|
47
|
+
metadata: ::Hash[Symbol, top]?,
|
|
48
|
+
product: WhopSDK::Models::LeadUpdateResponse::Product?,
|
|
49
|
+
referrer: String?,
|
|
50
|
+
updated_at: Time,
|
|
51
|
+
user: WhopSDK::Models::LeadUpdateResponse::User
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
type member = { id: String }
|
|
55
|
+
|
|
56
|
+
class Member < WhopSDK::Internal::Type::BaseModel
|
|
57
|
+
attr_accessor id: String
|
|
58
|
+
|
|
59
|
+
def initialize: (id: String) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> { id: String }
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
type product = { id: String, title: String }
|
|
65
|
+
|
|
66
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
67
|
+
attr_accessor id: String
|
|
68
|
+
|
|
69
|
+
attr_accessor title: String
|
|
70
|
+
|
|
71
|
+
def initialize: (id: String, title: String) -> void
|
|
72
|
+
|
|
73
|
+
def to_hash: -> { id: String, title: String }
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
type user =
|
|
77
|
+
{ id: String, email: String?, name: String?, username: String }
|
|
78
|
+
|
|
79
|
+
class User < WhopSDK::Internal::Type::BaseModel
|
|
80
|
+
attr_accessor id: String
|
|
81
|
+
|
|
82
|
+
attr_accessor email: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor name: String?
|
|
85
|
+
|
|
86
|
+
attr_accessor username: String
|
|
87
|
+
|
|
88
|
+
def initialize: (
|
|
89
|
+
id: String,
|
|
90
|
+
email: String?,
|
|
91
|
+
name: String?,
|
|
92
|
+
username: String
|
|
93
|
+
) -> void
|
|
94
|
+
|
|
95
|
+
def to_hash: -> {
|
|
96
|
+
id: String,
|
|
97
|
+
email: String?,
|
|
98
|
+
name: String?,
|
|
99
|
+
username: String
|
|
100
|
+
}
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -211,6 +211,8 @@ module WhopSDK
|
|
|
211
211
|
address: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::Address?,
|
|
212
212
|
business_name: String?,
|
|
213
213
|
business_representative: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative?,
|
|
214
|
+
email: String?,
|
|
215
|
+
latest_verification: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification?,
|
|
214
216
|
phone: String?
|
|
215
217
|
}
|
|
216
218
|
|
|
@@ -223,6 +225,10 @@ module WhopSDK
|
|
|
223
225
|
|
|
224
226
|
attr_accessor business_representative: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative?
|
|
225
227
|
|
|
228
|
+
attr_accessor email: String?
|
|
229
|
+
|
|
230
|
+
attr_accessor latest_verification: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification?
|
|
231
|
+
|
|
226
232
|
attr_accessor phone: String?
|
|
227
233
|
|
|
228
234
|
def initialize: (
|
|
@@ -230,6 +236,8 @@ module WhopSDK
|
|
|
230
236
|
address: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::Address?,
|
|
231
237
|
business_name: String?,
|
|
232
238
|
business_representative: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative?,
|
|
239
|
+
email: String?,
|
|
240
|
+
latest_verification: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification?,
|
|
233
241
|
phone: String?
|
|
234
242
|
) -> void
|
|
235
243
|
|
|
@@ -238,6 +246,8 @@ module WhopSDK
|
|
|
238
246
|
address: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::Address?,
|
|
239
247
|
business_name: String?,
|
|
240
248
|
business_representative: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative?,
|
|
249
|
+
email: String?,
|
|
250
|
+
latest_verification: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification?,
|
|
241
251
|
phone: String?
|
|
242
252
|
}
|
|
243
253
|
|
|
@@ -284,9 +294,16 @@ module WhopSDK
|
|
|
284
294
|
end
|
|
285
295
|
|
|
286
296
|
type business_representative =
|
|
287
|
-
{
|
|
297
|
+
{
|
|
298
|
+
date_of_birth: String?,
|
|
299
|
+
first_name: String?,
|
|
300
|
+
last_name: String?,
|
|
301
|
+
middle_name: String?
|
|
302
|
+
}
|
|
288
303
|
|
|
289
304
|
class BusinessRepresentative < WhopSDK::Internal::Type::BaseModel
|
|
305
|
+
attr_accessor date_of_birth: String?
|
|
306
|
+
|
|
290
307
|
attr_accessor first_name: String?
|
|
291
308
|
|
|
292
309
|
attr_accessor last_name: String?
|
|
@@ -294,17 +311,133 @@ module WhopSDK
|
|
|
294
311
|
attr_accessor middle_name: String?
|
|
295
312
|
|
|
296
313
|
def initialize: (
|
|
314
|
+
date_of_birth: String?,
|
|
297
315
|
first_name: String?,
|
|
298
316
|
last_name: String?,
|
|
299
317
|
middle_name: String?
|
|
300
318
|
) -> void
|
|
301
319
|
|
|
302
320
|
def to_hash: -> {
|
|
321
|
+
date_of_birth: String?,
|
|
303
322
|
first_name: String?,
|
|
304
323
|
last_name: String?,
|
|
305
324
|
middle_name: String?
|
|
306
325
|
}
|
|
307
326
|
end
|
|
327
|
+
|
|
328
|
+
type latest_verification =
|
|
329
|
+
{
|
|
330
|
+
id: String,
|
|
331
|
+
last_error_code: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::last_error_code?,
|
|
332
|
+
last_error_reason: String?,
|
|
333
|
+
status: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::status
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
class LatestVerification < WhopSDK::Internal::Type::BaseModel
|
|
337
|
+
attr_accessor id: String
|
|
338
|
+
|
|
339
|
+
attr_accessor last_error_code: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::last_error_code?
|
|
340
|
+
|
|
341
|
+
attr_accessor last_error_reason: String?
|
|
342
|
+
|
|
343
|
+
attr_accessor status: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::status
|
|
344
|
+
|
|
345
|
+
def initialize: (
|
|
346
|
+
id: String,
|
|
347
|
+
last_error_code: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::last_error_code?,
|
|
348
|
+
last_error_reason: String?,
|
|
349
|
+
status: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::status
|
|
350
|
+
) -> void
|
|
351
|
+
|
|
352
|
+
def to_hash: -> {
|
|
353
|
+
id: String,
|
|
354
|
+
last_error_code: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::last_error_code?,
|
|
355
|
+
last_error_reason: String?,
|
|
356
|
+
status: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::status
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
type last_error_code =
|
|
360
|
+
:abandoned
|
|
361
|
+
| :consent_declined
|
|
362
|
+
| :country_not_supported
|
|
363
|
+
| :device_not_supported
|
|
364
|
+
| :document_expired
|
|
365
|
+
| :document_type_not_supported
|
|
366
|
+
| :document_unverified_other
|
|
367
|
+
| :email_unverified_other
|
|
368
|
+
| :email_verification_declined
|
|
369
|
+
| :id_number_insufficient_document_data
|
|
370
|
+
| :id_number_mismatch
|
|
371
|
+
| :id_number_unverified_other
|
|
372
|
+
| :phone_unverified_other
|
|
373
|
+
| :phone_verification_declined
|
|
374
|
+
| :selfie_document_missing_photo
|
|
375
|
+
| :selfie_face_mismatch
|
|
376
|
+
| :selfie_manipulated
|
|
377
|
+
| :selfie_unverified_other
|
|
378
|
+
| :under_supported_age
|
|
379
|
+
|
|
380
|
+
module LastErrorCode
|
|
381
|
+
extend WhopSDK::Internal::Type::Enum
|
|
382
|
+
|
|
383
|
+
ABANDONED: :abandoned
|
|
384
|
+
CONSENT_DECLINED: :consent_declined
|
|
385
|
+
COUNTRY_NOT_SUPPORTED: :country_not_supported
|
|
386
|
+
DEVICE_NOT_SUPPORTED: :device_not_supported
|
|
387
|
+
DOCUMENT_EXPIRED: :document_expired
|
|
388
|
+
DOCUMENT_TYPE_NOT_SUPPORTED: :document_type_not_supported
|
|
389
|
+
DOCUMENT_UNVERIFIED_OTHER: :document_unverified_other
|
|
390
|
+
EMAIL_UNVERIFIED_OTHER: :email_unverified_other
|
|
391
|
+
EMAIL_VERIFICATION_DECLINED: :email_verification_declined
|
|
392
|
+
ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA: :id_number_insufficient_document_data
|
|
393
|
+
ID_NUMBER_MISMATCH: :id_number_mismatch
|
|
394
|
+
ID_NUMBER_UNVERIFIED_OTHER: :id_number_unverified_other
|
|
395
|
+
PHONE_UNVERIFIED_OTHER: :phone_unverified_other
|
|
396
|
+
PHONE_VERIFICATION_DECLINED: :phone_verification_declined
|
|
397
|
+
SELFIE_DOCUMENT_MISSING_PHOTO: :selfie_document_missing_photo
|
|
398
|
+
SELFIE_FACE_MISMATCH: :selfie_face_mismatch
|
|
399
|
+
SELFIE_MANIPULATED: :selfie_manipulated
|
|
400
|
+
SELFIE_UNVERIFIED_OTHER: :selfie_unverified_other
|
|
401
|
+
UNDER_SUPPORTED_AGE: :under_supported_age
|
|
402
|
+
|
|
403
|
+
def self?.values: -> ::Array[WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::last_error_code]
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
type status =
|
|
407
|
+
:requires_input
|
|
408
|
+
| :processing
|
|
409
|
+
| :verified
|
|
410
|
+
| :canceled
|
|
411
|
+
| :created
|
|
412
|
+
| :started
|
|
413
|
+
| :submitted
|
|
414
|
+
| :approved
|
|
415
|
+
| :declined
|
|
416
|
+
| :resubmission_requested
|
|
417
|
+
| :expired
|
|
418
|
+
| :abandoned
|
|
419
|
+
| :review
|
|
420
|
+
|
|
421
|
+
module Status
|
|
422
|
+
extend WhopSDK::Internal::Type::Enum
|
|
423
|
+
|
|
424
|
+
REQUIRES_INPUT: :requires_input
|
|
425
|
+
PROCESSING: :processing
|
|
426
|
+
VERIFIED: :verified
|
|
427
|
+
CANCELED: :canceled
|
|
428
|
+
CREATED: :created
|
|
429
|
+
STARTED: :started
|
|
430
|
+
SUBMITTED: :submitted
|
|
431
|
+
APPROVED: :approved
|
|
432
|
+
DECLINED: :declined
|
|
433
|
+
RESUBMISSION_REQUESTED: :resubmission_requested
|
|
434
|
+
EXPIRED: :expired
|
|
435
|
+
ABANDONED: :abandoned
|
|
436
|
+
REVIEW: :review
|
|
437
|
+
|
|
438
|
+
def self?.values: -> ::Array[WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::status]
|
|
439
|
+
end
|
|
440
|
+
end
|
|
308
441
|
end
|
|
309
442
|
end
|
|
310
443
|
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type membership_cancel_at_period_end_changed_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
api_version: :v1,
|
|
7
|
+
data: WhopSDK::Membership,
|
|
8
|
+
timestamp: Time,
|
|
9
|
+
type: :"membership.cancel_at_period_end_changed"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class MembershipCancelAtPeriodEndChangedWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor api_version: :v1
|
|
16
|
+
|
|
17
|
+
attr_accessor data: WhopSDK::Membership
|
|
18
|
+
|
|
19
|
+
attr_accessor timestamp: Time
|
|
20
|
+
|
|
21
|
+
attr_accessor type: :"membership.cancel_at_period_end_changed"
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
data: WhopSDK::Membership,
|
|
26
|
+
timestamp: Time,
|
|
27
|
+
?api_version: :v1,
|
|
28
|
+
?type: :"membership.cancel_at_period_end_changed"
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
api_version: :v1,
|
|
34
|
+
data: WhopSDK::Membership,
|
|
35
|
+
timestamp: Time,
|
|
36
|
+
type: :"membership.cancel_at_period_end_changed"
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -9,6 +9,7 @@ module WhopSDK
|
|
|
9
9
|
| :expired
|
|
10
10
|
| :unresolved
|
|
11
11
|
| :drafted
|
|
12
|
+
| :canceling
|
|
12
13
|
|
|
13
14
|
module MembershipStatus
|
|
14
15
|
extend WhopSDK::Internal::Type::Enum
|
|
@@ -21,6 +22,7 @@ module WhopSDK
|
|
|
21
22
|
EXPIRED: :expired
|
|
22
23
|
UNRESOLVED: :unresolved
|
|
23
24
|
DRAFTED: :drafted
|
|
25
|
+
CANCELING: :canceling
|
|
24
26
|
|
|
25
27
|
def self?.values: -> ::Array[WhopSDK::Models::membership_status]
|
|
26
28
|
end
|
|
@@ -6,6 +6,7 @@ module WhopSDK
|
|
|
6
6
|
member_id: String,
|
|
7
7
|
payment_method_id: String,
|
|
8
8
|
plan: WhopSDK::PaymentCreateParams::Plan,
|
|
9
|
+
metadata: ::Hash[Symbol, top]?,
|
|
9
10
|
plan_id: String
|
|
10
11
|
}
|
|
11
12
|
& WhopSDK::Internal::Type::request_parameters
|
|
@@ -22,6 +23,8 @@ module WhopSDK
|
|
|
22
23
|
|
|
23
24
|
attr_accessor plan: WhopSDK::PaymentCreateParams::Plan
|
|
24
25
|
|
|
26
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
27
|
+
|
|
25
28
|
attr_accessor plan_id: String
|
|
26
29
|
|
|
27
30
|
def initialize: (
|
|
@@ -30,6 +33,7 @@ module WhopSDK
|
|
|
30
33
|
payment_method_id: String,
|
|
31
34
|
plan: WhopSDK::PaymentCreateParams::Plan,
|
|
32
35
|
plan_id: String,
|
|
36
|
+
?metadata: ::Hash[Symbol, top]?,
|
|
33
37
|
?request_options: WhopSDK::request_opts
|
|
34
38
|
) -> void
|
|
35
39
|
|
|
@@ -38,6 +42,7 @@ module WhopSDK
|
|
|
38
42
|
member_id: String,
|
|
39
43
|
payment_method_id: String,
|
|
40
44
|
plan: WhopSDK::PaymentCreateParams::Plan,
|
|
45
|
+
metadata: ::Hash[Symbol, top]?,
|
|
41
46
|
plan_id: String,
|
|
42
47
|
request_options: WhopSDK::RequestOptions
|
|
43
48
|
}
|