whop_sdk 0.0.12 → 0.0.13
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/company_list_params.rb +2 -2
- data/lib/whop_sdk/models/company_update_params.rb +82 -0
- data/lib/whop_sdk/models.rb +2 -0
- data/lib/whop_sdk/resources/companies.rb +34 -2
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +1 -0
- data/rbi/whop_sdk/models/company_list_params.rbi +2 -2
- data/rbi/whop_sdk/models/company_update_params.rbi +153 -0
- data/rbi/whop_sdk/models.rbi +2 -0
- data/rbi/whop_sdk/resources/companies.rbi +34 -2
- data/sig/whop_sdk/models/company_update_params.rbs +59 -0
- data/sig/whop_sdk/models.rbs +2 -0
- data/sig/whop_sdk/resources/companies.rbs +7 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13d63a67006e0d64ae28edb4ab22a8a4242f9042cb66d54f4e7c3e9f92e86b7c
|
|
4
|
+
data.tar.gz: 06e90d035b58b651a2c056282f6e4e464be2f4972db89d5300b779952438a60d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d77f5f53b7be9f92b88a625413dcc8f2f1a4328dd23393ad9c58fca98650a644d078a4196bad9b73115d92d7df4416bfff89ddd9fc6124ca19ad6c8e460ca8ac
|
|
7
|
+
data.tar.gz: a47a5a471a19ab439258c234de5838a9e2e3453d2c5ce3a67d819a95adc111b6c5443b13d368e5b76d264399b4d1b62f6b8077ecf2bfc87fb64a879cedf725b9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.13 (2025-12-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.12...v0.0.13](https://github.com/whopio/whopsdk-ruby/compare/v0.0.12...v0.0.13)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8a998ee](https://github.com/whopio/whopsdk-ruby/commit/8a998ee8f1c88f45572b1cdb63138a8c0dbbbd85))
|
|
10
|
+
* **api:** manual updates ([48eb150](https://github.com/whopio/whopsdk-ruby/commit/48eb150b33b58dc2f56dad9b24b756a26795b649))
|
|
11
|
+
|
|
3
12
|
## 0.0.12 (2025-12-03)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v0.0.11...v0.0.12](https://github.com/whopio/whopsdk-ruby/compare/v0.0.11...v0.0.12)
|
data/README.md
CHANGED
|
@@ -8,7 +8,7 @@ module WhopSDK
|
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute parent_company_id
|
|
11
|
-
# The ID of the parent company to list
|
|
11
|
+
# The ID of the parent company to list connected accounts for
|
|
12
12
|
#
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :parent_company_id, String
|
|
@@ -56,7 +56,7 @@ module WhopSDK
|
|
|
56
56
|
optional :last, Integer, nil?: true
|
|
57
57
|
|
|
58
58
|
# @!method initialize(parent_company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
|
|
59
|
-
# @param parent_company_id [String] The ID of the parent company to list
|
|
59
|
+
# @param parent_company_id [String] The ID of the parent company to list connected accounts for
|
|
60
60
|
#
|
|
61
61
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
62
62
|
#
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Companies#update
|
|
6
|
+
class CompanyUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute logo
|
|
11
|
+
# The logo for the company in png, jpeg, or gif format
|
|
12
|
+
#
|
|
13
|
+
# @return [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil]
|
|
14
|
+
optional :logo, union: -> { WhopSDK::CompanyUpdateParams::Logo }, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!attribute title
|
|
17
|
+
# The title of the company
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :title, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!method initialize(logo: nil, title: nil, request_options: {})
|
|
23
|
+
# @param logo [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the company in png, jpeg, or gif format
|
|
24
|
+
#
|
|
25
|
+
# @param title [String, nil] The title of the company
|
|
26
|
+
#
|
|
27
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
28
|
+
|
|
29
|
+
# The logo for the company in png, jpeg, or gif format
|
|
30
|
+
module Logo
|
|
31
|
+
extend WhopSDK::Internal::Type::Union
|
|
32
|
+
|
|
33
|
+
# Input for an attachment
|
|
34
|
+
variant -> { WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID }
|
|
35
|
+
|
|
36
|
+
# Input for an attachment
|
|
37
|
+
variant -> { WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID }
|
|
38
|
+
|
|
39
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
40
|
+
# @!attribute direct_upload_id
|
|
41
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
42
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
43
|
+
# mediaDirectUpload mutation.
|
|
44
|
+
#
|
|
45
|
+
# @return [String]
|
|
46
|
+
required :direct_upload_id, String
|
|
47
|
+
|
|
48
|
+
# @!method initialize(direct_upload_id:)
|
|
49
|
+
# Some parameter documentations has been truncated, see
|
|
50
|
+
# {WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID}
|
|
51
|
+
# for more details.
|
|
52
|
+
#
|
|
53
|
+
# Input for an attachment
|
|
54
|
+
#
|
|
55
|
+
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
59
|
+
# @!attribute id
|
|
60
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
61
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
62
|
+
# doing.
|
|
63
|
+
#
|
|
64
|
+
# @return [String]
|
|
65
|
+
required :id, String
|
|
66
|
+
|
|
67
|
+
# @!method initialize(id:)
|
|
68
|
+
# Some parameter documentations has been truncated, see
|
|
69
|
+
# {WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID} for more
|
|
70
|
+
# details.
|
|
71
|
+
#
|
|
72
|
+
# Input for an attachment
|
|
73
|
+
#
|
|
74
|
+
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# @!method self.variants
|
|
78
|
+
# @return [Array(WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID)]
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
data/lib/whop_sdk/models.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Resources
|
|
5
5
|
class Companies
|
|
6
|
-
# Create a new
|
|
6
|
+
# Create a new connected account for your platform
|
|
7
7
|
#
|
|
8
8
|
# Required permissions:
|
|
9
9
|
#
|
|
@@ -60,6 +60,38 @@ module WhopSDK
|
|
|
60
60
|
)
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
+
# Update an existing company. Either a regular company, platform company, or one
|
|
64
|
+
# of a platform's connected accounts
|
|
65
|
+
#
|
|
66
|
+
# Required permissions:
|
|
67
|
+
#
|
|
68
|
+
# - `company:update`
|
|
69
|
+
# - `company:basic:read`
|
|
70
|
+
#
|
|
71
|
+
# @overload update(id, logo: nil, title: nil, request_options: {})
|
|
72
|
+
#
|
|
73
|
+
# @param id [String] The ID of the company to update
|
|
74
|
+
#
|
|
75
|
+
# @param logo [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the company in png, jpeg, or gif format
|
|
76
|
+
#
|
|
77
|
+
# @param title [String, nil] The title of the company
|
|
78
|
+
#
|
|
79
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
80
|
+
#
|
|
81
|
+
# @return [WhopSDK::Models::Company]
|
|
82
|
+
#
|
|
83
|
+
# @see WhopSDK::Models::CompanyUpdateParams
|
|
84
|
+
def update(id, params = {})
|
|
85
|
+
parsed, options = WhopSDK::CompanyUpdateParams.dump_request(params)
|
|
86
|
+
@client.request(
|
|
87
|
+
method: :patch,
|
|
88
|
+
path: ["companies/%1$s", id],
|
|
89
|
+
body: parsed,
|
|
90
|
+
model: WhopSDK::Company,
|
|
91
|
+
options: options
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
|
|
63
95
|
# Lists companies the current user has access to
|
|
64
96
|
#
|
|
65
97
|
# Required permissions:
|
|
@@ -68,7 +100,7 @@ module WhopSDK
|
|
|
68
100
|
#
|
|
69
101
|
# @overload list(parent_company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
|
|
70
102
|
#
|
|
71
|
-
# @param parent_company_id [String] The ID of the parent company to list
|
|
103
|
+
# @param parent_company_id [String] The ID of the parent company to list connected accounts for
|
|
72
104
|
#
|
|
73
105
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
74
106
|
#
|
data/lib/whop_sdk/version.rb
CHANGED
data/lib/whop_sdk.rb
CHANGED
|
@@ -102,6 +102,7 @@ require_relative "whop_sdk/models/company_create_params"
|
|
|
102
102
|
require_relative "whop_sdk/models/company_list_params"
|
|
103
103
|
require_relative "whop_sdk/models/company_list_response"
|
|
104
104
|
require_relative "whop_sdk/models/company_retrieve_params"
|
|
105
|
+
require_relative "whop_sdk/models/company_update_params"
|
|
105
106
|
require_relative "whop_sdk/models/course"
|
|
106
107
|
require_relative "whop_sdk/models/course_chapter"
|
|
107
108
|
require_relative "whop_sdk/models/course_chapter_create_params"
|
|
@@ -11,7 +11,7 @@ module WhopSDK
|
|
|
11
11
|
T.any(WhopSDK::CompanyListParams, WhopSDK::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# The ID of the parent company to list
|
|
14
|
+
# The ID of the parent company to list connected accounts for
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :parent_company_id
|
|
17
17
|
|
|
@@ -57,7 +57,7 @@ module WhopSDK
|
|
|
57
57
|
).returns(T.attached_class)
|
|
58
58
|
end
|
|
59
59
|
def self.new(
|
|
60
|
-
# The ID of the parent company to list
|
|
60
|
+
# The ID of the parent company to list connected accounts for
|
|
61
61
|
parent_company_id:,
|
|
62
62
|
# Returns the elements in the list that come after the specified cursor.
|
|
63
63
|
after: nil,
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class CompanyUpdateParams < 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::CompanyUpdateParams, WhopSDK::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The logo for the company in png, jpeg, or gif format
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
T.nilable(
|
|
18
|
+
T.any(
|
|
19
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
|
|
20
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
|
|
21
|
+
)
|
|
22
|
+
)
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
attr_accessor :logo
|
|
26
|
+
|
|
27
|
+
# The title of the company
|
|
28
|
+
sig { returns(T.nilable(String)) }
|
|
29
|
+
attr_accessor :title
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
logo:
|
|
34
|
+
T.nilable(
|
|
35
|
+
T.any(
|
|
36
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID::OrHash,
|
|
37
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID::OrHash
|
|
38
|
+
)
|
|
39
|
+
),
|
|
40
|
+
title: T.nilable(String),
|
|
41
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
42
|
+
).returns(T.attached_class)
|
|
43
|
+
end
|
|
44
|
+
def self.new(
|
|
45
|
+
# The logo for the company in png, jpeg, or gif format
|
|
46
|
+
logo: nil,
|
|
47
|
+
# The title of the company
|
|
48
|
+
title: nil,
|
|
49
|
+
request_options: {}
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
sig do
|
|
54
|
+
override.returns(
|
|
55
|
+
{
|
|
56
|
+
logo:
|
|
57
|
+
T.nilable(
|
|
58
|
+
T.any(
|
|
59
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
|
|
60
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
|
|
61
|
+
)
|
|
62
|
+
),
|
|
63
|
+
title: T.nilable(String),
|
|
64
|
+
request_options: WhopSDK::RequestOptions
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
def to_hash
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# The logo for the company in png, jpeg, or gif format
|
|
72
|
+
module Logo
|
|
73
|
+
extend WhopSDK::Internal::Type::Union
|
|
74
|
+
|
|
75
|
+
Variants =
|
|
76
|
+
T.type_alias do
|
|
77
|
+
T.any(
|
|
78
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
|
|
79
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
84
|
+
OrHash =
|
|
85
|
+
T.type_alias do
|
|
86
|
+
T.any(
|
|
87
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
|
|
88
|
+
WhopSDK::Internal::AnyHash
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
93
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
94
|
+
# mediaDirectUpload mutation.
|
|
95
|
+
sig { returns(String) }
|
|
96
|
+
attr_accessor :direct_upload_id
|
|
97
|
+
|
|
98
|
+
# Input for an attachment
|
|
99
|
+
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
100
|
+
def self.new(
|
|
101
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
102
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
103
|
+
# mediaDirectUpload mutation.
|
|
104
|
+
direct_upload_id:
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
sig { override.returns({ direct_upload_id: String }) }
|
|
109
|
+
def to_hash
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
114
|
+
OrHash =
|
|
115
|
+
T.type_alias do
|
|
116
|
+
T.any(
|
|
117
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID,
|
|
118
|
+
WhopSDK::Internal::AnyHash
|
|
119
|
+
)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
123
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
124
|
+
# doing.
|
|
125
|
+
sig { returns(String) }
|
|
126
|
+
attr_accessor :id
|
|
127
|
+
|
|
128
|
+
# Input for an attachment
|
|
129
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
130
|
+
def self.new(
|
|
131
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
132
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
133
|
+
# doing.
|
|
134
|
+
id:
|
|
135
|
+
)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
sig { override.returns({ id: String }) }
|
|
139
|
+
def to_hash
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
sig do
|
|
144
|
+
override.returns(
|
|
145
|
+
T::Array[WhopSDK::CompanyUpdateParams::Logo::Variants]
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
def self.variants
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
data/rbi/whop_sdk/models.rbi
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Resources
|
|
5
5
|
class Companies
|
|
6
|
-
# Create a new
|
|
6
|
+
# Create a new connected account for your platform
|
|
7
7
|
#
|
|
8
8
|
# Required permissions:
|
|
9
9
|
#
|
|
@@ -49,6 +49,38 @@ module WhopSDK
|
|
|
49
49
|
)
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
# Update an existing company. Either a regular company, platform company, or one
|
|
53
|
+
# of a platform's connected accounts
|
|
54
|
+
#
|
|
55
|
+
# Required permissions:
|
|
56
|
+
#
|
|
57
|
+
# - `company:update`
|
|
58
|
+
# - `company:basic:read`
|
|
59
|
+
sig do
|
|
60
|
+
params(
|
|
61
|
+
id: String,
|
|
62
|
+
logo:
|
|
63
|
+
T.nilable(
|
|
64
|
+
T.any(
|
|
65
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID::OrHash,
|
|
66
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID::OrHash
|
|
67
|
+
)
|
|
68
|
+
),
|
|
69
|
+
title: T.nilable(String),
|
|
70
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
71
|
+
).returns(WhopSDK::Company)
|
|
72
|
+
end
|
|
73
|
+
def update(
|
|
74
|
+
# The ID of the company to update
|
|
75
|
+
id,
|
|
76
|
+
# The logo for the company in png, jpeg, or gif format
|
|
77
|
+
logo: nil,
|
|
78
|
+
# The title of the company
|
|
79
|
+
title: nil,
|
|
80
|
+
request_options: {}
|
|
81
|
+
)
|
|
82
|
+
end
|
|
83
|
+
|
|
52
84
|
# Lists companies the current user has access to
|
|
53
85
|
#
|
|
54
86
|
# Required permissions:
|
|
@@ -70,7 +102,7 @@ module WhopSDK
|
|
|
70
102
|
)
|
|
71
103
|
end
|
|
72
104
|
def list(
|
|
73
|
-
# The ID of the parent company to list
|
|
105
|
+
# The ID of the parent company to list connected accounts for
|
|
74
106
|
parent_company_id:,
|
|
75
107
|
# Returns the elements in the list that come after the specified cursor.
|
|
76
108
|
after: nil,
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type company_update_params =
|
|
4
|
+
{ logo: WhopSDK::Models::CompanyUpdateParams::logo?, title: String? }
|
|
5
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CompanyUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
8
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor logo: WhopSDK::Models::CompanyUpdateParams::logo?
|
|
12
|
+
|
|
13
|
+
attr_accessor title: String?
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
?logo: WhopSDK::Models::CompanyUpdateParams::logo?,
|
|
17
|
+
?title: String?,
|
|
18
|
+
?request_options: WhopSDK::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
logo: WhopSDK::Models::CompanyUpdateParams::logo?,
|
|
23
|
+
title: String?,
|
|
24
|
+
request_options: WhopSDK::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type logo =
|
|
28
|
+
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID
|
|
29
|
+
| WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
|
|
30
|
+
|
|
31
|
+
module Logo
|
|
32
|
+
extend WhopSDK::Internal::Type::Union
|
|
33
|
+
|
|
34
|
+
type attachment_input_with_direct_upload_id =
|
|
35
|
+
{ direct_upload_id: String }
|
|
36
|
+
|
|
37
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
38
|
+
attr_accessor direct_upload_id: String
|
|
39
|
+
|
|
40
|
+
def initialize: (direct_upload_id: String) -> void
|
|
41
|
+
|
|
42
|
+
def to_hash: -> { direct_upload_id: String }
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
type attachment_input_with_id = { id: String }
|
|
46
|
+
|
|
47
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
48
|
+
attr_accessor id: String
|
|
49
|
+
|
|
50
|
+
def initialize: (id: String) -> void
|
|
51
|
+
|
|
52
|
+
def to_hash: -> { id: String }
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def self?.variants: -> ::Array[WhopSDK::Models::CompanyUpdateParams::logo]
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
data/sig/whop_sdk/models.rbs
CHANGED
|
@@ -79,6 +79,8 @@ module WhopSDK
|
|
|
79
79
|
|
|
80
80
|
class CompanyRetrieveParams = WhopSDK::Models::CompanyRetrieveParams
|
|
81
81
|
|
|
82
|
+
class CompanyUpdateParams = WhopSDK::Models::CompanyUpdateParams
|
|
83
|
+
|
|
82
84
|
class Course = WhopSDK::Models::Course
|
|
83
85
|
|
|
84
86
|
class CourseChapter = WhopSDK::Models::CourseChapter
|
|
@@ -14,6 +14,13 @@ module WhopSDK
|
|
|
14
14
|
?request_options: WhopSDK::request_opts
|
|
15
15
|
) -> WhopSDK::Company
|
|
16
16
|
|
|
17
|
+
def update: (
|
|
18
|
+
String id,
|
|
19
|
+
?logo: WhopSDK::Models::CompanyUpdateParams::logo?,
|
|
20
|
+
?title: String?,
|
|
21
|
+
?request_options: WhopSDK::request_opts
|
|
22
|
+
) -> WhopSDK::Company
|
|
23
|
+
|
|
17
24
|
def list: (
|
|
18
25
|
parent_company_id: String,
|
|
19
26
|
?after: 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.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Whop
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|
|
@@ -134,6 +134,7 @@ files:
|
|
|
134
134
|
- lib/whop_sdk/models/company_list_params.rb
|
|
135
135
|
- lib/whop_sdk/models/company_list_response.rb
|
|
136
136
|
- lib/whop_sdk/models/company_retrieve_params.rb
|
|
137
|
+
- lib/whop_sdk/models/company_update_params.rb
|
|
137
138
|
- lib/whop_sdk/models/course.rb
|
|
138
139
|
- lib/whop_sdk/models/course_chapter.rb
|
|
139
140
|
- lib/whop_sdk/models/course_chapter_create_params.rb
|
|
@@ -495,6 +496,7 @@ files:
|
|
|
495
496
|
- rbi/whop_sdk/models/company_list_params.rbi
|
|
496
497
|
- rbi/whop_sdk/models/company_list_response.rbi
|
|
497
498
|
- rbi/whop_sdk/models/company_retrieve_params.rbi
|
|
499
|
+
- rbi/whop_sdk/models/company_update_params.rbi
|
|
498
500
|
- rbi/whop_sdk/models/course.rbi
|
|
499
501
|
- rbi/whop_sdk/models/course_chapter.rbi
|
|
500
502
|
- rbi/whop_sdk/models/course_chapter_create_params.rbi
|
|
@@ -855,6 +857,7 @@ files:
|
|
|
855
857
|
- sig/whop_sdk/models/company_list_params.rbs
|
|
856
858
|
- sig/whop_sdk/models/company_list_response.rbs
|
|
857
859
|
- sig/whop_sdk/models/company_retrieve_params.rbs
|
|
860
|
+
- sig/whop_sdk/models/company_update_params.rbs
|
|
858
861
|
- sig/whop_sdk/models/course.rbs
|
|
859
862
|
- sig/whop_sdk/models/course_chapter.rbs
|
|
860
863
|
- sig/whop_sdk/models/course_chapter_create_params.rbs
|