whop_sdk 0.0.33 → 0.0.34
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 +9 -0
- data/README.md +1 -1
- data/lib/whop_sdk/models/refund_list_params.rb +24 -8
- data/lib/whop_sdk/models/user_list_params.rb +54 -0
- data/lib/whop_sdk/models/user_list_response.rb +83 -0
- data/lib/whop_sdk/models.rb +2 -0
- data/lib/whop_sdk/resources/refunds.rb +10 -6
- data/lib/whop_sdk/resources/users.rb +33 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +2 -0
- data/rbi/whop_sdk/models/refund_list_params.rbi +24 -8
- data/rbi/whop_sdk/models/user_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/user_list_response.rbi +124 -0
- data/rbi/whop_sdk/models.rbi +2 -0
- data/rbi/whop_sdk/resources/refunds.rbi +11 -5
- data/rbi/whop_sdk/resources/users.rbi +29 -0
- data/sig/whop_sdk/models/refund_list_params.rbs +16 -6
- data/sig/whop_sdk/models/user_list_params.rbs +46 -0
- data/sig/whop_sdk/models/user_list_response.rbs +55 -0
- data/sig/whop_sdk/models.rbs +2 -0
- data/sig/whop_sdk/resources/refunds.rbs +3 -1
- data/sig/whop_sdk/resources/users.rbs +9 -0
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20519be0a1a3fc8b784a91b294540194552987210800409d6c36b5a21f58e3ab
|
|
4
|
+
data.tar.gz: 4e7e968e67cec479bd1f58162ba088adad6c3016727281b36742d6ccf6cbc4e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abafb1081d2e808a27cb2002d7e1266c1369f18b163c93fcc0f8c379bf593331cba92a0f429ff7c6ffb7ebecfaca2799c39de42d1ceb2e19e61d0795f5ff6aa9
|
|
7
|
+
data.tar.gz: aabbe32e90267e22ed87ed10c5df97338a46cbb2881640d931c995b6c0ef56fb51c6e27d65f3a7c5a8531b1733de938d3a276a814f7244f8f9e0c015810f9490
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.34 (2026-03-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.33...v0.0.34](https://github.com/whopio/whopsdk-ruby/compare/v0.0.33...v0.0.34)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([955ac05](https://github.com/whopio/whopsdk-ruby/commit/955ac05985d441c367414c55f55bb6e6a5a1d128))
|
|
10
|
+
* **api:** manual updates ([dae94e8](https://github.com/whopio/whopsdk-ruby/commit/dae94e887a9c370ae4e67335eec818e22bb60a0a))
|
|
11
|
+
|
|
3
12
|
## 0.0.33 (2026-03-12)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v0.0.32...v0.0.33](https://github.com/whopio/whopsdk-ruby/compare/v0.0.32...v0.0.33)
|
data/README.md
CHANGED
|
@@ -7,12 +7,6 @@ module WhopSDK
|
|
|
7
7
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!attribute payment_id
|
|
11
|
-
# The unique identifier of the payment to list refunds for.
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :payment_id, String
|
|
15
|
-
|
|
16
10
|
# @!attribute after
|
|
17
11
|
# Returns the elements in the list that come after the specified cursor.
|
|
18
12
|
#
|
|
@@ -25,6 +19,12 @@ module WhopSDK
|
|
|
25
19
|
# @return [String, nil]
|
|
26
20
|
optional :before, String, nil?: true
|
|
27
21
|
|
|
22
|
+
# @!attribute company_id
|
|
23
|
+
# Filter refunds to only those belonging to this company.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :company_id, String, nil?: true
|
|
27
|
+
|
|
28
28
|
# @!attribute created_after
|
|
29
29
|
# Only return refunds created after this timestamp.
|
|
30
30
|
#
|
|
@@ -55,13 +55,25 @@ module WhopSDK
|
|
|
55
55
|
# @return [Integer, nil]
|
|
56
56
|
optional :last, Integer, nil?: true
|
|
57
57
|
|
|
58
|
-
# @!
|
|
59
|
-
#
|
|
58
|
+
# @!attribute payment_id
|
|
59
|
+
# Filter refunds to only those associated with this specific payment.
|
|
60
60
|
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
optional :payment_id, String, nil?: true
|
|
63
|
+
|
|
64
|
+
# @!attribute user_id
|
|
65
|
+
# Filter refunds to only those associated with this specific user.
|
|
66
|
+
#
|
|
67
|
+
# @return [String, nil]
|
|
68
|
+
optional :user_id, String, nil?: true
|
|
69
|
+
|
|
70
|
+
# @!method initialize(after: nil, before: nil, company_id: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, payment_id: nil, user_id: nil, request_options: {})
|
|
61
71
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
62
72
|
#
|
|
63
73
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
64
74
|
#
|
|
75
|
+
# @param company_id [String, nil] Filter refunds to only those belonging to this company.
|
|
76
|
+
#
|
|
65
77
|
# @param created_after [Time, nil] Only return refunds created after this timestamp.
|
|
66
78
|
#
|
|
67
79
|
# @param created_before [Time, nil] Only return refunds created before this timestamp.
|
|
@@ -72,6 +84,10 @@ module WhopSDK
|
|
|
72
84
|
#
|
|
73
85
|
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
74
86
|
#
|
|
87
|
+
# @param payment_id [String, nil] Filter refunds to only those associated with this specific payment.
|
|
88
|
+
#
|
|
89
|
+
# @param user_id [String, nil] Filter refunds to only those associated with this specific user.
|
|
90
|
+
#
|
|
75
91
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
76
92
|
end
|
|
77
93
|
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Users#list
|
|
6
|
+
class UserListParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute after
|
|
11
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :after, String, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!attribute before
|
|
17
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :before, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute first
|
|
23
|
+
# Returns the first _n_ elements from the list.
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
optional :first, Integer, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute last
|
|
29
|
+
# Returns the last _n_ elements from the list.
|
|
30
|
+
#
|
|
31
|
+
# @return [Integer, nil]
|
|
32
|
+
optional :last, Integer, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute query
|
|
35
|
+
# Search term to filter by name or username.
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :query, String, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!method initialize(after: nil, before: nil, first: nil, last: nil, query: nil, request_options: {})
|
|
41
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
42
|
+
#
|
|
43
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
44
|
+
#
|
|
45
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
46
|
+
#
|
|
47
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
48
|
+
#
|
|
49
|
+
# @param query [String, nil] Search term to filter by name or username.
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Users#list
|
|
6
|
+
class UserListResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The unique identifier for the user.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute bio
|
|
14
|
+
# A short biography written by the user, displayed on their public profile.
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
required :bio, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute created_at
|
|
20
|
+
# The datetime the user was created.
|
|
21
|
+
#
|
|
22
|
+
# @return [Time]
|
|
23
|
+
required :created_at, Time
|
|
24
|
+
|
|
25
|
+
# @!attribute name
|
|
26
|
+
# The user's display name shown on their public profile.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :name, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute profile_picture
|
|
32
|
+
# The user's profile picture attachment with URL, content type, and file metadata.
|
|
33
|
+
# Null if using a legacy profile picture.
|
|
34
|
+
#
|
|
35
|
+
# @return [WhopSDK::Models::UserListResponse::ProfilePicture, nil]
|
|
36
|
+
required :profile_picture, -> { WhopSDK::Models::UserListResponse::ProfilePicture }, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute username
|
|
39
|
+
# The user's unique username shown on their public profile.
|
|
40
|
+
#
|
|
41
|
+
# @return [String]
|
|
42
|
+
required :username, String
|
|
43
|
+
|
|
44
|
+
# @!method initialize(id:, bio:, created_at:, name:, profile_picture:, username:)
|
|
45
|
+
# Some parameter documentations has been truncated, see
|
|
46
|
+
# {WhopSDK::Models::UserListResponse} for more details.
|
|
47
|
+
#
|
|
48
|
+
# A user account on Whop. Contains profile information, identity details, and
|
|
49
|
+
# social connections.
|
|
50
|
+
#
|
|
51
|
+
# @param id [String] The unique identifier for the user.
|
|
52
|
+
#
|
|
53
|
+
# @param bio [String, nil] A short biography written by the user, displayed on their public profile.
|
|
54
|
+
#
|
|
55
|
+
# @param created_at [Time] The datetime the user was created.
|
|
56
|
+
#
|
|
57
|
+
# @param name [String, nil] The user's display name shown on their public profile.
|
|
58
|
+
#
|
|
59
|
+
# @param profile_picture [WhopSDK::Models::UserListResponse::ProfilePicture, nil] The user's profile picture attachment with URL, content type, and file metadata.
|
|
60
|
+
#
|
|
61
|
+
# @param username [String] The user's unique username shown on their public profile.
|
|
62
|
+
|
|
63
|
+
# @see WhopSDK::Models::UserListResponse#profile_picture
|
|
64
|
+
class ProfilePicture < WhopSDK::Internal::Type::BaseModel
|
|
65
|
+
# @!attribute url
|
|
66
|
+
# A pre-optimized URL for rendering this attachment on the client. This should be
|
|
67
|
+
# used for displaying attachments in apps.
|
|
68
|
+
#
|
|
69
|
+
# @return [String, nil]
|
|
70
|
+
required :url, String, nil?: true
|
|
71
|
+
|
|
72
|
+
# @!method initialize(url:)
|
|
73
|
+
# Some parameter documentations has been truncated, see
|
|
74
|
+
# {WhopSDK::Models::UserListResponse::ProfilePicture} for more details.
|
|
75
|
+
#
|
|
76
|
+
# The user's profile picture attachment with URL, content type, and file metadata.
|
|
77
|
+
# Null if using a legacy profile picture.
|
|
78
|
+
#
|
|
79
|
+
# @param url [String, nil] A pre-optimized URL for rendering this attachment on the client. This should be
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
data/lib/whop_sdk/models.rb
CHANGED
|
@@ -637,6 +637,8 @@ module WhopSDK
|
|
|
637
637
|
|
|
638
638
|
UserCheckAccessParams = WhopSDK::Models::UserCheckAccessParams
|
|
639
639
|
|
|
640
|
+
UserListParams = WhopSDK::Models::UserListParams
|
|
641
|
+
|
|
640
642
|
UserRetrieveParams = WhopSDK::Models::UserRetrieveParams
|
|
641
643
|
|
|
642
644
|
UserUpdateProfileParams = WhopSDK::Models::UserUpdateProfileParams
|
|
@@ -31,21 +31,21 @@ module WhopSDK
|
|
|
31
31
|
)
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
# Returns a paginated list of refunds
|
|
35
|
-
#
|
|
34
|
+
# Returns a paginated list of refunds, with optional filtering by payment,
|
|
35
|
+
# company, user, and creation date.
|
|
36
36
|
#
|
|
37
37
|
# Required permissions:
|
|
38
38
|
#
|
|
39
39
|
# - `payment:basic:read`
|
|
40
40
|
#
|
|
41
|
-
# @overload list(
|
|
42
|
-
#
|
|
43
|
-
# @param payment_id [String] The unique identifier of the payment to list refunds for.
|
|
41
|
+
# @overload list(after: nil, before: nil, company_id: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, payment_id: nil, user_id: nil, request_options: {})
|
|
44
42
|
#
|
|
45
43
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
46
44
|
#
|
|
47
45
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
48
46
|
#
|
|
47
|
+
# @param company_id [String, nil] Filter refunds to only those belonging to this company.
|
|
48
|
+
#
|
|
49
49
|
# @param created_after [Time, nil] Only return refunds created after this timestamp.
|
|
50
50
|
#
|
|
51
51
|
# @param created_before [Time, nil] Only return refunds created before this timestamp.
|
|
@@ -56,12 +56,16 @@ module WhopSDK
|
|
|
56
56
|
#
|
|
57
57
|
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
58
58
|
#
|
|
59
|
+
# @param payment_id [String, nil] Filter refunds to only those associated with this specific payment.
|
|
60
|
+
#
|
|
61
|
+
# @param user_id [String, nil] Filter refunds to only those associated with this specific user.
|
|
62
|
+
#
|
|
59
63
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
60
64
|
#
|
|
61
65
|
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::RefundListResponse>]
|
|
62
66
|
#
|
|
63
67
|
# @see WhopSDK::Models::RefundListParams
|
|
64
|
-
def list(params)
|
|
68
|
+
def list(params = {})
|
|
65
69
|
parsed, options = WhopSDK::RefundListParams.dump_request(params)
|
|
66
70
|
query = WhopSDK::Internal::Util.encode_query_params(parsed)
|
|
67
71
|
@client.request(
|
|
@@ -24,6 +24,39 @@ module WhopSDK
|
|
|
24
24
|
)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
# Search for users by name or username, ranked by social proximity to the
|
|
28
|
+
# authenticated user.
|
|
29
|
+
#
|
|
30
|
+
# @overload list(after: nil, before: nil, first: nil, last: nil, query: nil, request_options: {})
|
|
31
|
+
#
|
|
32
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
33
|
+
#
|
|
34
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
35
|
+
#
|
|
36
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
37
|
+
#
|
|
38
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
39
|
+
#
|
|
40
|
+
# @param query [String, nil] Search term to filter by name or username.
|
|
41
|
+
#
|
|
42
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
43
|
+
#
|
|
44
|
+
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::UserListResponse>]
|
|
45
|
+
#
|
|
46
|
+
# @see WhopSDK::Models::UserListParams
|
|
47
|
+
def list(params = {})
|
|
48
|
+
parsed, options = WhopSDK::UserListParams.dump_request(params)
|
|
49
|
+
query = WhopSDK::Internal::Util.encode_query_params(parsed)
|
|
50
|
+
@client.request(
|
|
51
|
+
method: :get,
|
|
52
|
+
path: "users",
|
|
53
|
+
query: query,
|
|
54
|
+
page: WhopSDK::Internal::CursorPage,
|
|
55
|
+
model: WhopSDK::Models::UserListResponse,
|
|
56
|
+
options: options
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
27
60
|
# Some parameter documentations has been truncated, see
|
|
28
61
|
# {WhopSDK::Models::UserCheckAccessParams} for more details.
|
|
29
62
|
#
|
data/lib/whop_sdk/version.rb
CHANGED
data/lib/whop_sdk.rb
CHANGED
|
@@ -428,6 +428,8 @@ require_relative "whop_sdk/models/upload_status"
|
|
|
428
428
|
require_relative "whop_sdk/models/user"
|
|
429
429
|
require_relative "whop_sdk/models/user_check_access_params"
|
|
430
430
|
require_relative "whop_sdk/models/user_check_access_response"
|
|
431
|
+
require_relative "whop_sdk/models/user_list_params"
|
|
432
|
+
require_relative "whop_sdk/models/user_list_response"
|
|
431
433
|
require_relative "whop_sdk/models/user_retrieve_params"
|
|
432
434
|
require_relative "whop_sdk/models/user_update_profile_params"
|
|
433
435
|
require_relative "whop_sdk/models/verification_error_code"
|
|
@@ -11,10 +11,6 @@ module WhopSDK
|
|
|
11
11
|
T.any(WhopSDK::RefundListParams, WhopSDK::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# The unique identifier of the payment to list refunds for.
|
|
15
|
-
sig { returns(String) }
|
|
16
|
-
attr_accessor :payment_id
|
|
17
|
-
|
|
18
14
|
# Returns the elements in the list that come after the specified cursor.
|
|
19
15
|
sig { returns(T.nilable(String)) }
|
|
20
16
|
attr_accessor :after
|
|
@@ -23,6 +19,10 @@ module WhopSDK
|
|
|
23
19
|
sig { returns(T.nilable(String)) }
|
|
24
20
|
attr_accessor :before
|
|
25
21
|
|
|
22
|
+
# Filter refunds to only those belonging to this company.
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_accessor :company_id
|
|
25
|
+
|
|
26
26
|
# Only return refunds created after this timestamp.
|
|
27
27
|
sig { returns(T.nilable(Time)) }
|
|
28
28
|
attr_accessor :created_after
|
|
@@ -43,26 +43,36 @@ module WhopSDK
|
|
|
43
43
|
sig { returns(T.nilable(Integer)) }
|
|
44
44
|
attr_accessor :last
|
|
45
45
|
|
|
46
|
+
# Filter refunds to only those associated with this specific payment.
|
|
47
|
+
sig { returns(T.nilable(String)) }
|
|
48
|
+
attr_accessor :payment_id
|
|
49
|
+
|
|
50
|
+
# Filter refunds to only those associated with this specific user.
|
|
51
|
+
sig { returns(T.nilable(String)) }
|
|
52
|
+
attr_accessor :user_id
|
|
53
|
+
|
|
46
54
|
sig do
|
|
47
55
|
params(
|
|
48
|
-
payment_id: String,
|
|
49
56
|
after: T.nilable(String),
|
|
50
57
|
before: T.nilable(String),
|
|
58
|
+
company_id: T.nilable(String),
|
|
51
59
|
created_after: T.nilable(Time),
|
|
52
60
|
created_before: T.nilable(Time),
|
|
53
61
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
54
62
|
first: T.nilable(Integer),
|
|
55
63
|
last: T.nilable(Integer),
|
|
64
|
+
payment_id: T.nilable(String),
|
|
65
|
+
user_id: T.nilable(String),
|
|
56
66
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
57
67
|
).returns(T.attached_class)
|
|
58
68
|
end
|
|
59
69
|
def self.new(
|
|
60
|
-
# The unique identifier of the payment to list refunds for.
|
|
61
|
-
payment_id:,
|
|
62
70
|
# Returns the elements in the list that come after the specified cursor.
|
|
63
71
|
after: nil,
|
|
64
72
|
# Returns the elements in the list that come before the specified cursor.
|
|
65
73
|
before: nil,
|
|
74
|
+
# Filter refunds to only those belonging to this company.
|
|
75
|
+
company_id: nil,
|
|
66
76
|
# Only return refunds created after this timestamp.
|
|
67
77
|
created_after: nil,
|
|
68
78
|
# Only return refunds created before this timestamp.
|
|
@@ -73,6 +83,10 @@ module WhopSDK
|
|
|
73
83
|
first: nil,
|
|
74
84
|
# Returns the last _n_ elements from the list.
|
|
75
85
|
last: nil,
|
|
86
|
+
# Filter refunds to only those associated with this specific payment.
|
|
87
|
+
payment_id: nil,
|
|
88
|
+
# Filter refunds to only those associated with this specific user.
|
|
89
|
+
user_id: nil,
|
|
76
90
|
request_options: {}
|
|
77
91
|
)
|
|
78
92
|
end
|
|
@@ -80,14 +94,16 @@ module WhopSDK
|
|
|
80
94
|
sig do
|
|
81
95
|
override.returns(
|
|
82
96
|
{
|
|
83
|
-
payment_id: String,
|
|
84
97
|
after: T.nilable(String),
|
|
85
98
|
before: T.nilable(String),
|
|
99
|
+
company_id: T.nilable(String),
|
|
86
100
|
created_after: T.nilable(Time),
|
|
87
101
|
created_before: T.nilable(Time),
|
|
88
102
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
89
103
|
first: T.nilable(Integer),
|
|
90
104
|
last: T.nilable(Integer),
|
|
105
|
+
payment_id: T.nilable(String),
|
|
106
|
+
user_id: T.nilable(String),
|
|
91
107
|
request_options: WhopSDK::RequestOptions
|
|
92
108
|
}
|
|
93
109
|
)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class UserListParams < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(WhopSDK::UserListParams, WhopSDK::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_accessor :after
|
|
17
|
+
|
|
18
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
19
|
+
sig { returns(T.nilable(String)) }
|
|
20
|
+
attr_accessor :before
|
|
21
|
+
|
|
22
|
+
# Returns the first _n_ elements from the list.
|
|
23
|
+
sig { returns(T.nilable(Integer)) }
|
|
24
|
+
attr_accessor :first
|
|
25
|
+
|
|
26
|
+
# Returns the last _n_ elements from the list.
|
|
27
|
+
sig { returns(T.nilable(Integer)) }
|
|
28
|
+
attr_accessor :last
|
|
29
|
+
|
|
30
|
+
# Search term to filter by name or username.
|
|
31
|
+
sig { returns(T.nilable(String)) }
|
|
32
|
+
attr_accessor :query
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
after: T.nilable(String),
|
|
37
|
+
before: T.nilable(String),
|
|
38
|
+
first: T.nilable(Integer),
|
|
39
|
+
last: T.nilable(Integer),
|
|
40
|
+
query: T.nilable(String),
|
|
41
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
42
|
+
).returns(T.attached_class)
|
|
43
|
+
end
|
|
44
|
+
def self.new(
|
|
45
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
46
|
+
after: nil,
|
|
47
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
48
|
+
before: nil,
|
|
49
|
+
# Returns the first _n_ elements from the list.
|
|
50
|
+
first: nil,
|
|
51
|
+
# Returns the last _n_ elements from the list.
|
|
52
|
+
last: nil,
|
|
53
|
+
# Search term to filter by name or username.
|
|
54
|
+
query: nil,
|
|
55
|
+
request_options: {}
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
override.returns(
|
|
61
|
+
{
|
|
62
|
+
after: T.nilable(String),
|
|
63
|
+
before: T.nilable(String),
|
|
64
|
+
first: T.nilable(Integer),
|
|
65
|
+
last: T.nilable(Integer),
|
|
66
|
+
query: T.nilable(String),
|
|
67
|
+
request_options: WhopSDK::RequestOptions
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
def to_hash
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class UserListResponse < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(WhopSDK::Models::UserListResponse, WhopSDK::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The unique identifier for the user.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# A short biography written by the user, displayed on their public profile.
|
|
16
|
+
sig { returns(T.nilable(String)) }
|
|
17
|
+
attr_accessor :bio
|
|
18
|
+
|
|
19
|
+
# The datetime the user was created.
|
|
20
|
+
sig { returns(Time) }
|
|
21
|
+
attr_accessor :created_at
|
|
22
|
+
|
|
23
|
+
# The user's display name shown on their public profile.
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
27
|
+
# The user's profile picture attachment with URL, content type, and file metadata.
|
|
28
|
+
# Null if using a legacy profile picture.
|
|
29
|
+
sig do
|
|
30
|
+
returns(T.nilable(WhopSDK::Models::UserListResponse::ProfilePicture))
|
|
31
|
+
end
|
|
32
|
+
attr_reader :profile_picture
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
profile_picture:
|
|
37
|
+
T.nilable(WhopSDK::Models::UserListResponse::ProfilePicture::OrHash)
|
|
38
|
+
).void
|
|
39
|
+
end
|
|
40
|
+
attr_writer :profile_picture
|
|
41
|
+
|
|
42
|
+
# The user's unique username shown on their public profile.
|
|
43
|
+
sig { returns(String) }
|
|
44
|
+
attr_accessor :username
|
|
45
|
+
|
|
46
|
+
# A user account on Whop. Contains profile information, identity details, and
|
|
47
|
+
# social connections.
|
|
48
|
+
sig do
|
|
49
|
+
params(
|
|
50
|
+
id: String,
|
|
51
|
+
bio: T.nilable(String),
|
|
52
|
+
created_at: Time,
|
|
53
|
+
name: T.nilable(String),
|
|
54
|
+
profile_picture:
|
|
55
|
+
T.nilable(
|
|
56
|
+
WhopSDK::Models::UserListResponse::ProfilePicture::OrHash
|
|
57
|
+
),
|
|
58
|
+
username: String
|
|
59
|
+
).returns(T.attached_class)
|
|
60
|
+
end
|
|
61
|
+
def self.new(
|
|
62
|
+
# The unique identifier for the user.
|
|
63
|
+
id:,
|
|
64
|
+
# A short biography written by the user, displayed on their public profile.
|
|
65
|
+
bio:,
|
|
66
|
+
# The datetime the user was created.
|
|
67
|
+
created_at:,
|
|
68
|
+
# The user's display name shown on their public profile.
|
|
69
|
+
name:,
|
|
70
|
+
# The user's profile picture attachment with URL, content type, and file metadata.
|
|
71
|
+
# Null if using a legacy profile picture.
|
|
72
|
+
profile_picture:,
|
|
73
|
+
# The user's unique username shown on their public profile.
|
|
74
|
+
username:
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
sig do
|
|
79
|
+
override.returns(
|
|
80
|
+
{
|
|
81
|
+
id: String,
|
|
82
|
+
bio: T.nilable(String),
|
|
83
|
+
created_at: Time,
|
|
84
|
+
name: T.nilable(String),
|
|
85
|
+
profile_picture:
|
|
86
|
+
T.nilable(WhopSDK::Models::UserListResponse::ProfilePicture),
|
|
87
|
+
username: String
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
def to_hash
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
class ProfilePicture < WhopSDK::Internal::Type::BaseModel
|
|
95
|
+
OrHash =
|
|
96
|
+
T.type_alias do
|
|
97
|
+
T.any(
|
|
98
|
+
WhopSDK::Models::UserListResponse::ProfilePicture,
|
|
99
|
+
WhopSDK::Internal::AnyHash
|
|
100
|
+
)
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# A pre-optimized URL for rendering this attachment on the client. This should be
|
|
104
|
+
# used for displaying attachments in apps.
|
|
105
|
+
sig { returns(T.nilable(String)) }
|
|
106
|
+
attr_accessor :url
|
|
107
|
+
|
|
108
|
+
# The user's profile picture attachment with URL, content type, and file metadata.
|
|
109
|
+
# Null if using a legacy profile picture.
|
|
110
|
+
sig { params(url: T.nilable(String)).returns(T.attached_class) }
|
|
111
|
+
def self.new(
|
|
112
|
+
# A pre-optimized URL for rendering this attachment on the client. This should be
|
|
113
|
+
# used for displaying attachments in apps.
|
|
114
|
+
url:
|
|
115
|
+
)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
sig { override.returns({ url: T.nilable(String) }) }
|
|
119
|
+
def to_hash
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
data/rbi/whop_sdk/models.rbi
CHANGED
|
@@ -625,6 +625,8 @@ module WhopSDK
|
|
|
625
625
|
|
|
626
626
|
UserCheckAccessParams = WhopSDK::Models::UserCheckAccessParams
|
|
627
627
|
|
|
628
|
+
UserListParams = WhopSDK::Models::UserListParams
|
|
629
|
+
|
|
628
630
|
UserRetrieveParams = WhopSDK::Models::UserRetrieveParams
|
|
629
631
|
|
|
630
632
|
UserUpdateProfileParams = WhopSDK::Models::UserUpdateProfileParams
|
|
@@ -25,34 +25,36 @@ module WhopSDK
|
|
|
25
25
|
)
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
# Returns a paginated list of refunds
|
|
29
|
-
#
|
|
28
|
+
# Returns a paginated list of refunds, with optional filtering by payment,
|
|
29
|
+
# company, user, and creation date.
|
|
30
30
|
#
|
|
31
31
|
# Required permissions:
|
|
32
32
|
#
|
|
33
33
|
# - `payment:basic:read`
|
|
34
34
|
sig do
|
|
35
35
|
params(
|
|
36
|
-
payment_id: String,
|
|
37
36
|
after: T.nilable(String),
|
|
38
37
|
before: T.nilable(String),
|
|
38
|
+
company_id: T.nilable(String),
|
|
39
39
|
created_after: T.nilable(Time),
|
|
40
40
|
created_before: T.nilable(Time),
|
|
41
41
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
42
42
|
first: T.nilable(Integer),
|
|
43
43
|
last: T.nilable(Integer),
|
|
44
|
+
payment_id: T.nilable(String),
|
|
45
|
+
user_id: T.nilable(String),
|
|
44
46
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
45
47
|
).returns(
|
|
46
48
|
WhopSDK::Internal::CursorPage[WhopSDK::Models::RefundListResponse]
|
|
47
49
|
)
|
|
48
50
|
end
|
|
49
51
|
def list(
|
|
50
|
-
# The unique identifier of the payment to list refunds for.
|
|
51
|
-
payment_id:,
|
|
52
52
|
# Returns the elements in the list that come after the specified cursor.
|
|
53
53
|
after: nil,
|
|
54
54
|
# Returns the elements in the list that come before the specified cursor.
|
|
55
55
|
before: nil,
|
|
56
|
+
# Filter refunds to only those belonging to this company.
|
|
57
|
+
company_id: nil,
|
|
56
58
|
# Only return refunds created after this timestamp.
|
|
57
59
|
created_after: nil,
|
|
58
60
|
# Only return refunds created before this timestamp.
|
|
@@ -63,6 +65,10 @@ module WhopSDK
|
|
|
63
65
|
first: nil,
|
|
64
66
|
# Returns the last _n_ elements from the list.
|
|
65
67
|
last: nil,
|
|
68
|
+
# Filter refunds to only those associated with this specific payment.
|
|
69
|
+
payment_id: nil,
|
|
70
|
+
# Filter refunds to only those associated with this specific user.
|
|
71
|
+
user_id: nil,
|
|
66
72
|
request_options: {}
|
|
67
73
|
)
|
|
68
74
|
end
|
|
@@ -18,6 +18,35 @@ module WhopSDK
|
|
|
18
18
|
)
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
# Search for users by name or username, ranked by social proximity to the
|
|
22
|
+
# authenticated user.
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
after: T.nilable(String),
|
|
26
|
+
before: T.nilable(String),
|
|
27
|
+
first: T.nilable(Integer),
|
|
28
|
+
last: T.nilable(Integer),
|
|
29
|
+
query: T.nilable(String),
|
|
30
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
31
|
+
).returns(
|
|
32
|
+
WhopSDK::Internal::CursorPage[WhopSDK::Models::UserListResponse]
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
def list(
|
|
36
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
37
|
+
after: nil,
|
|
38
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
39
|
+
before: nil,
|
|
40
|
+
# Returns the first _n_ elements from the list.
|
|
41
|
+
first: nil,
|
|
42
|
+
# Returns the last _n_ elements from the list.
|
|
43
|
+
last: nil,
|
|
44
|
+
# Search term to filter by name or username.
|
|
45
|
+
query: nil,
|
|
46
|
+
request_options: {}
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
|
|
21
50
|
# Check whether a user has access to a specific resource, and return their access
|
|
22
51
|
# level.
|
|
23
52
|
sig do
|
|
@@ -2,14 +2,16 @@ module WhopSDK
|
|
|
2
2
|
module Models
|
|
3
3
|
type refund_list_params =
|
|
4
4
|
{
|
|
5
|
-
payment_id: String,
|
|
6
5
|
after: String?,
|
|
7
6
|
before: String?,
|
|
7
|
+
company_id: String?,
|
|
8
8
|
created_after: Time?,
|
|
9
9
|
created_before: Time?,
|
|
10
10
|
direction: WhopSDK::Models::direction?,
|
|
11
11
|
first: Integer?,
|
|
12
|
-
last: Integer
|
|
12
|
+
last: Integer?,
|
|
13
|
+
payment_id: String?,
|
|
14
|
+
user_id: String?
|
|
13
15
|
}
|
|
14
16
|
& WhopSDK::Internal::Type::request_parameters
|
|
15
17
|
|
|
@@ -17,12 +19,12 @@ module WhopSDK
|
|
|
17
19
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
18
20
|
include WhopSDK::Internal::Type::RequestParameters
|
|
19
21
|
|
|
20
|
-
attr_accessor payment_id: String
|
|
21
|
-
|
|
22
22
|
attr_accessor after: String?
|
|
23
23
|
|
|
24
24
|
attr_accessor before: String?
|
|
25
25
|
|
|
26
|
+
attr_accessor company_id: String?
|
|
27
|
+
|
|
26
28
|
attr_accessor created_after: Time?
|
|
27
29
|
|
|
28
30
|
attr_accessor created_before: Time?
|
|
@@ -33,27 +35,35 @@ module WhopSDK
|
|
|
33
35
|
|
|
34
36
|
attr_accessor last: Integer?
|
|
35
37
|
|
|
38
|
+
attr_accessor payment_id: String?
|
|
39
|
+
|
|
40
|
+
attr_accessor user_id: String?
|
|
41
|
+
|
|
36
42
|
def initialize: (
|
|
37
|
-
payment_id: String,
|
|
38
43
|
?after: String?,
|
|
39
44
|
?before: String?,
|
|
45
|
+
?company_id: String?,
|
|
40
46
|
?created_after: Time?,
|
|
41
47
|
?created_before: Time?,
|
|
42
48
|
?direction: WhopSDK::Models::direction?,
|
|
43
49
|
?first: Integer?,
|
|
44
50
|
?last: Integer?,
|
|
51
|
+
?payment_id: String?,
|
|
52
|
+
?user_id: String?,
|
|
45
53
|
?request_options: WhopSDK::request_opts
|
|
46
54
|
) -> void
|
|
47
55
|
|
|
48
56
|
def to_hash: -> {
|
|
49
|
-
payment_id: String,
|
|
50
57
|
after: String?,
|
|
51
58
|
before: String?,
|
|
59
|
+
company_id: String?,
|
|
52
60
|
created_after: Time?,
|
|
53
61
|
created_before: Time?,
|
|
54
62
|
direction: WhopSDK::Models::direction?,
|
|
55
63
|
first: Integer?,
|
|
56
64
|
last: Integer?,
|
|
65
|
+
payment_id: String?,
|
|
66
|
+
user_id: String?,
|
|
57
67
|
request_options: WhopSDK::RequestOptions
|
|
58
68
|
}
|
|
59
69
|
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type user_list_params =
|
|
4
|
+
{
|
|
5
|
+
after: String?,
|
|
6
|
+
before: String?,
|
|
7
|
+
first: Integer?,
|
|
8
|
+
last: Integer?,
|
|
9
|
+
query: String?
|
|
10
|
+
}
|
|
11
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class UserListParams < WhopSDK::Internal::Type::BaseModel
|
|
14
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor after: String?
|
|
18
|
+
|
|
19
|
+
attr_accessor before: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor first: Integer?
|
|
22
|
+
|
|
23
|
+
attr_accessor last: Integer?
|
|
24
|
+
|
|
25
|
+
attr_accessor query: String?
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
?after: String?,
|
|
29
|
+
?before: String?,
|
|
30
|
+
?first: Integer?,
|
|
31
|
+
?last: Integer?,
|
|
32
|
+
?query: String?,
|
|
33
|
+
?request_options: WhopSDK::request_opts
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
after: String?,
|
|
38
|
+
before: String?,
|
|
39
|
+
first: Integer?,
|
|
40
|
+
last: Integer?,
|
|
41
|
+
query: String?,
|
|
42
|
+
request_options: WhopSDK::RequestOptions
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type user_list_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
bio: String?,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
name: String?,
|
|
9
|
+
profile_picture: WhopSDK::Models::UserListResponse::ProfilePicture?,
|
|
10
|
+
username: String
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class UserListResponse < WhopSDK::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor bio: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor created_at: Time
|
|
19
|
+
|
|
20
|
+
attr_accessor name: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor profile_picture: WhopSDK::Models::UserListResponse::ProfilePicture?
|
|
23
|
+
|
|
24
|
+
attr_accessor username: String
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
id: String,
|
|
28
|
+
bio: String?,
|
|
29
|
+
created_at: Time,
|
|
30
|
+
name: String?,
|
|
31
|
+
profile_picture: WhopSDK::Models::UserListResponse::ProfilePicture?,
|
|
32
|
+
username: String
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
id: String,
|
|
37
|
+
bio: String?,
|
|
38
|
+
created_at: Time,
|
|
39
|
+
name: String?,
|
|
40
|
+
profile_picture: WhopSDK::Models::UserListResponse::ProfilePicture?,
|
|
41
|
+
username: String
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type profile_picture = { url: String? }
|
|
45
|
+
|
|
46
|
+
class ProfilePicture < WhopSDK::Internal::Type::BaseModel
|
|
47
|
+
attr_accessor url: String?
|
|
48
|
+
|
|
49
|
+
def initialize: (url: String?) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> { url: String? }
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
data/sig/whop_sdk/models.rbs
CHANGED
|
@@ -595,6 +595,8 @@ module WhopSDK
|
|
|
595
595
|
|
|
596
596
|
class UserCheckAccessParams = WhopSDK::Models::UserCheckAccessParams
|
|
597
597
|
|
|
598
|
+
class UserListParams = WhopSDK::Models::UserListParams
|
|
599
|
+
|
|
598
600
|
class UserRetrieveParams = WhopSDK::Models::UserRetrieveParams
|
|
599
601
|
|
|
600
602
|
class UserUpdateProfileParams = WhopSDK::Models::UserUpdateProfileParams
|
|
@@ -7,14 +7,16 @@ module WhopSDK
|
|
|
7
7
|
) -> WhopSDK::Models::RefundRetrieveResponse
|
|
8
8
|
|
|
9
9
|
def list: (
|
|
10
|
-
payment_id: String,
|
|
11
10
|
?after: String?,
|
|
12
11
|
?before: String?,
|
|
12
|
+
?company_id: String?,
|
|
13
13
|
?created_after: Time?,
|
|
14
14
|
?created_before: Time?,
|
|
15
15
|
?direction: WhopSDK::Models::direction?,
|
|
16
16
|
?first: Integer?,
|
|
17
17
|
?last: Integer?,
|
|
18
|
+
?payment_id: String?,
|
|
19
|
+
?user_id: String?,
|
|
18
20
|
?request_options: WhopSDK::request_opts
|
|
19
21
|
) -> WhopSDK::Internal::CursorPage[WhopSDK::Models::RefundListResponse]
|
|
20
22
|
|
|
@@ -6,6 +6,15 @@ module WhopSDK
|
|
|
6
6
|
?request_options: WhopSDK::request_opts
|
|
7
7
|
) -> WhopSDK::User
|
|
8
8
|
|
|
9
|
+
def list: (
|
|
10
|
+
?after: String?,
|
|
11
|
+
?before: String?,
|
|
12
|
+
?first: Integer?,
|
|
13
|
+
?last: Integer?,
|
|
14
|
+
?query: String?,
|
|
15
|
+
?request_options: WhopSDK::request_opts
|
|
16
|
+
) -> WhopSDK::Internal::CursorPage[WhopSDK::Models::UserListResponse]
|
|
17
|
+
|
|
9
18
|
def check_access: (
|
|
10
19
|
String resource_id,
|
|
11
20
|
id: String,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: whop_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.34
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Whop
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -487,6 +487,8 @@ files:
|
|
|
487
487
|
- lib/whop_sdk/models/user.rb
|
|
488
488
|
- lib/whop_sdk/models/user_check_access_params.rb
|
|
489
489
|
- lib/whop_sdk/models/user_check_access_response.rb
|
|
490
|
+
- lib/whop_sdk/models/user_list_params.rb
|
|
491
|
+
- lib/whop_sdk/models/user_list_response.rb
|
|
490
492
|
- lib/whop_sdk/models/user_retrieve_params.rb
|
|
491
493
|
- lib/whop_sdk/models/user_update_profile_params.rb
|
|
492
494
|
- lib/whop_sdk/models/verification_error_code.rb
|
|
@@ -972,6 +974,8 @@ files:
|
|
|
972
974
|
- rbi/whop_sdk/models/user.rbi
|
|
973
975
|
- rbi/whop_sdk/models/user_check_access_params.rbi
|
|
974
976
|
- rbi/whop_sdk/models/user_check_access_response.rbi
|
|
977
|
+
- rbi/whop_sdk/models/user_list_params.rbi
|
|
978
|
+
- rbi/whop_sdk/models/user_list_response.rbi
|
|
975
979
|
- rbi/whop_sdk/models/user_retrieve_params.rbi
|
|
976
980
|
- rbi/whop_sdk/models/user_update_profile_params.rbi
|
|
977
981
|
- rbi/whop_sdk/models/verification_error_code.rbi
|
|
@@ -1456,6 +1460,8 @@ files:
|
|
|
1456
1460
|
- sig/whop_sdk/models/user.rbs
|
|
1457
1461
|
- sig/whop_sdk/models/user_check_access_params.rbs
|
|
1458
1462
|
- sig/whop_sdk/models/user_check_access_response.rbs
|
|
1463
|
+
- sig/whop_sdk/models/user_list_params.rbs
|
|
1464
|
+
- sig/whop_sdk/models/user_list_response.rbs
|
|
1459
1465
|
- sig/whop_sdk/models/user_retrieve_params.rbs
|
|
1460
1466
|
- sig/whop_sdk/models/user_update_profile_params.rbs
|
|
1461
1467
|
- sig/whop_sdk/models/verification_error_code.rbs
|