brand.dev 0.2.0 → 0.3.0
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 +26 -0
- data/README.md +1 -1
- data/lib/brand_dev/internal/transport/base_client.rb +1 -1
- data/lib/brand_dev/internal/type/array_of.rb +1 -0
- data/lib/brand_dev/internal/type/base_model.rb +3 -1
- data/lib/brand_dev/internal/type/converter.rb +27 -0
- data/lib/brand_dev/internal/type/hash_of.rb +1 -0
- data/lib/brand_dev/internal/type/union.rb +9 -7
- data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +311 -1
- data/lib/brand_dev/models/brand_retrieve_params.rb +32 -9
- data/lib/brand_dev/models/brand_retrieve_response.rb +310 -1
- data/lib/brand_dev/models.rb +0 -2
- data/lib/brand_dev/resources/brand.rb +10 -32
- data/lib/brand_dev/version.rb +1 -1
- data/lib/brand_dev.rb +0 -2
- data/rbi/brand_dev/internal/transport/base_client.rbi +1 -1
- data/rbi/brand_dev/internal/type/converter.rbi +54 -0
- data/rbi/brand_dev/internal/type/union.rbi +9 -2
- data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +1409 -0
- data/rbi/brand_dev/models/brand_retrieve_params.rbi +48 -10
- data/rbi/brand_dev/models/brand_retrieve_response.rbi +1409 -0
- data/rbi/brand_dev/models.rbi +0 -2
- data/rbi/brand_dev/resources/brand.rbi +18 -24
- data/sig/brand_dev/internal/transport/base_client.rbs +1 -1
- data/sig/brand_dev/internal/type/converter.rbs +17 -0
- data/sig/brand_dev/internal/type/union.rbs +2 -2
- data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +558 -0
- data/sig/brand_dev/models/brand_retrieve_params.rbs +18 -2
- data/sig/brand_dev/models/brand_retrieve_response.rbs +558 -0
- data/sig/brand_dev/models.rbs +0 -2
- data/sig/brand_dev/resources/brand.rbs +3 -7
- metadata +2 -8
- data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +0 -35
- data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +0 -478
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +0 -61
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +0 -1081
- data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +0 -30
- data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +0 -467
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brand.dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brand Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|
@@ -60,8 +60,6 @@ files:
|
|
60
60
|
- lib/brand_dev/models/brand_identify_from_transaction_response.rb
|
61
61
|
- lib/brand_dev/models/brand_prefetch_params.rb
|
62
62
|
- lib/brand_dev/models/brand_prefetch_response.rb
|
63
|
-
- lib/brand_dev/models/brand_retrieve_by_ticker_params.rb
|
64
|
-
- lib/brand_dev/models/brand_retrieve_by_ticker_response.rb
|
65
63
|
- lib/brand_dev/models/brand_retrieve_naics_params.rb
|
66
64
|
- lib/brand_dev/models/brand_retrieve_naics_response.rb
|
67
65
|
- lib/brand_dev/models/brand_retrieve_params.rb
|
@@ -101,8 +99,6 @@ files:
|
|
101
99
|
- rbi/brand_dev/models/brand_identify_from_transaction_response.rbi
|
102
100
|
- rbi/brand_dev/models/brand_prefetch_params.rbi
|
103
101
|
- rbi/brand_dev/models/brand_prefetch_response.rbi
|
104
|
-
- rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi
|
105
|
-
- rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi
|
106
102
|
- rbi/brand_dev/models/brand_retrieve_naics_params.rbi
|
107
103
|
- rbi/brand_dev/models/brand_retrieve_naics_response.rbi
|
108
104
|
- rbi/brand_dev/models/brand_retrieve_params.rbi
|
@@ -141,8 +137,6 @@ files:
|
|
141
137
|
- sig/brand_dev/models/brand_identify_from_transaction_response.rbs
|
142
138
|
- sig/brand_dev/models/brand_prefetch_params.rbs
|
143
139
|
- sig/brand_dev/models/brand_prefetch_response.rbs
|
144
|
-
- sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs
|
145
|
-
- sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs
|
146
140
|
- sig/brand_dev/models/brand_retrieve_naics_params.rbs
|
147
141
|
- sig/brand_dev/models/brand_retrieve_naics_response.rbs
|
148
142
|
- sig/brand_dev/models/brand_retrieve_params.rbs
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module BrandDev
|
4
|
-
module Models
|
5
|
-
# @see BrandDev::Resources::Brand#retrieve_by_ticker
|
6
|
-
class BrandRetrieveByTickerParams < BrandDev::Internal::Type::BaseModel
|
7
|
-
extend BrandDev::Internal::Type::RequestParameters::Converter
|
8
|
-
include BrandDev::Internal::Type::RequestParameters
|
9
|
-
|
10
|
-
# @!attribute ticker
|
11
|
-
# Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
|
12
|
-
#
|
13
|
-
# @return [String]
|
14
|
-
required :ticker, String
|
15
|
-
|
16
|
-
# @!attribute timeout_ms
|
17
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
18
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
19
|
-
# value is 300000ms (5 minutes).
|
20
|
-
#
|
21
|
-
# @return [Integer, nil]
|
22
|
-
optional :timeout_ms, Integer
|
23
|
-
|
24
|
-
# @!method initialize(ticker:, timeout_ms: nil, request_options: {})
|
25
|
-
# Some parameter documentations has been truncated, see
|
26
|
-
# {BrandDev::Models::BrandRetrieveByTickerParams} for more details.
|
27
|
-
#
|
28
|
-
# @param ticker [String] Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
|
29
|
-
#
|
30
|
-
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
31
|
-
#
|
32
|
-
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,478 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module BrandDev
|
4
|
-
module Models
|
5
|
-
# @see BrandDev::Resources::Brand#retrieve_by_ticker
|
6
|
-
class BrandRetrieveByTickerResponse < BrandDev::Internal::Type::BaseModel
|
7
|
-
# @!attribute brand
|
8
|
-
# Detailed brand information
|
9
|
-
#
|
10
|
-
# @return [BrandDev::Models::BrandRetrieveByTickerResponse::Brand, nil]
|
11
|
-
optional :brand, -> { BrandDev::Models::BrandRetrieveByTickerResponse::Brand }
|
12
|
-
|
13
|
-
# @!attribute code
|
14
|
-
# HTTP status code
|
15
|
-
#
|
16
|
-
# @return [Integer, nil]
|
17
|
-
optional :code, Integer
|
18
|
-
|
19
|
-
# @!attribute status
|
20
|
-
# Status of the response, e.g., 'ok'
|
21
|
-
#
|
22
|
-
# @return [String, nil]
|
23
|
-
optional :status, String
|
24
|
-
|
25
|
-
# @!method initialize(brand: nil, code: nil, status: nil)
|
26
|
-
# @param brand [BrandDev::Models::BrandRetrieveByTickerResponse::Brand] Detailed brand information
|
27
|
-
#
|
28
|
-
# @param code [Integer] HTTP status code
|
29
|
-
#
|
30
|
-
# @param status [String] Status of the response, e.g., 'ok'
|
31
|
-
|
32
|
-
# @see BrandDev::Models::BrandRetrieveByTickerResponse#brand
|
33
|
-
class Brand < BrandDev::Internal::Type::BaseModel
|
34
|
-
# @!attribute address
|
35
|
-
# Physical address of the brand
|
36
|
-
#
|
37
|
-
# @return [BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Address, nil]
|
38
|
-
optional :address, -> { BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Address }
|
39
|
-
|
40
|
-
# @!attribute backdrops
|
41
|
-
# An array of backdrop images for the brand
|
42
|
-
#
|
43
|
-
# @return [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop>, nil]
|
44
|
-
optional :backdrops,
|
45
|
-
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop] }
|
46
|
-
|
47
|
-
# @!attribute colors
|
48
|
-
# An array of brand colors
|
49
|
-
#
|
50
|
-
# @return [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color>, nil]
|
51
|
-
optional :colors,
|
52
|
-
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color] }
|
53
|
-
|
54
|
-
# @!attribute description
|
55
|
-
# A brief description of the brand
|
56
|
-
#
|
57
|
-
# @return [String, nil]
|
58
|
-
optional :description, String
|
59
|
-
|
60
|
-
# @!attribute domain
|
61
|
-
# The domain name of the brand
|
62
|
-
#
|
63
|
-
# @return [String, nil]
|
64
|
-
optional :domain, String
|
65
|
-
|
66
|
-
# @!attribute email
|
67
|
-
# Company email address
|
68
|
-
#
|
69
|
-
# @return [String, nil]
|
70
|
-
optional :email, String
|
71
|
-
|
72
|
-
# @!attribute is_nsfw
|
73
|
-
# Indicates whether the brand content is not safe for work (NSFW)
|
74
|
-
#
|
75
|
-
# @return [Boolean, nil]
|
76
|
-
optional :is_nsfw, BrandDev::Internal::Type::Boolean
|
77
|
-
|
78
|
-
# @!attribute logos
|
79
|
-
# An array of logos associated with the brand
|
80
|
-
#
|
81
|
-
# @return [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo>, nil]
|
82
|
-
optional :logos,
|
83
|
-
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo] }
|
84
|
-
|
85
|
-
# @!attribute phone
|
86
|
-
# Company phone number
|
87
|
-
#
|
88
|
-
# @return [String, nil]
|
89
|
-
optional :phone, String
|
90
|
-
|
91
|
-
# @!attribute slogan
|
92
|
-
# The brand's slogan
|
93
|
-
#
|
94
|
-
# @return [String, nil]
|
95
|
-
optional :slogan, String
|
96
|
-
|
97
|
-
# @!attribute socials
|
98
|
-
# An array of social media links for the brand
|
99
|
-
#
|
100
|
-
# @return [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social>, nil]
|
101
|
-
optional :socials,
|
102
|
-
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social] }
|
103
|
-
|
104
|
-
# @!attribute stock
|
105
|
-
# Stock market information for this brand (will be null if not a publicly traded
|
106
|
-
# company)
|
107
|
-
#
|
108
|
-
# @return [BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock, nil]
|
109
|
-
optional :stock, -> { BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock }
|
110
|
-
|
111
|
-
# @!attribute title
|
112
|
-
# The title or name of the brand
|
113
|
-
#
|
114
|
-
# @return [String, nil]
|
115
|
-
optional :title, String
|
116
|
-
|
117
|
-
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, email: nil, is_nsfw: nil, logos: nil, phone: nil, slogan: nil, socials: nil, stock: nil, title: nil)
|
118
|
-
# Some parameter documentations has been truncated, see
|
119
|
-
# {BrandDev::Models::BrandRetrieveByTickerResponse::Brand} for more details.
|
120
|
-
#
|
121
|
-
# Detailed brand information
|
122
|
-
#
|
123
|
-
# @param address [BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Address] Physical address of the brand
|
124
|
-
#
|
125
|
-
# @param backdrops [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop>] An array of backdrop images for the brand
|
126
|
-
#
|
127
|
-
# @param colors [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color>] An array of brand colors
|
128
|
-
#
|
129
|
-
# @param description [String] A brief description of the brand
|
130
|
-
#
|
131
|
-
# @param domain [String] The domain name of the brand
|
132
|
-
#
|
133
|
-
# @param email [String] Company email address
|
134
|
-
#
|
135
|
-
# @param is_nsfw [Boolean] Indicates whether the brand content is not safe for work (NSFW)
|
136
|
-
#
|
137
|
-
# @param logos [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo>] An array of logos associated with the brand
|
138
|
-
#
|
139
|
-
# @param phone [String] Company phone number
|
140
|
-
#
|
141
|
-
# @param slogan [String] The brand's slogan
|
142
|
-
#
|
143
|
-
# @param socials [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social>] An array of social media links for the brand
|
144
|
-
#
|
145
|
-
# @param stock [BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock] Stock market information for this brand (will be null if not a publicly traded c
|
146
|
-
#
|
147
|
-
# @param title [String] The title or name of the brand
|
148
|
-
|
149
|
-
# @see BrandDev::Models::BrandRetrieveByTickerResponse::Brand#address
|
150
|
-
class Address < BrandDev::Internal::Type::BaseModel
|
151
|
-
# @!attribute city
|
152
|
-
# City name
|
153
|
-
#
|
154
|
-
# @return [String, nil]
|
155
|
-
optional :city, String
|
156
|
-
|
157
|
-
# @!attribute country
|
158
|
-
# Country name
|
159
|
-
#
|
160
|
-
# @return [String, nil]
|
161
|
-
optional :country, String
|
162
|
-
|
163
|
-
# @!attribute country_code
|
164
|
-
# Country code
|
165
|
-
#
|
166
|
-
# @return [String, nil]
|
167
|
-
optional :country_code, String
|
168
|
-
|
169
|
-
# @!attribute postal_code
|
170
|
-
# Postal or ZIP code
|
171
|
-
#
|
172
|
-
# @return [String, nil]
|
173
|
-
optional :postal_code, String
|
174
|
-
|
175
|
-
# @!attribute state_code
|
176
|
-
# State or province code
|
177
|
-
#
|
178
|
-
# @return [String, nil]
|
179
|
-
optional :state_code, String
|
180
|
-
|
181
|
-
# @!attribute state_province
|
182
|
-
# State or province name
|
183
|
-
#
|
184
|
-
# @return [String, nil]
|
185
|
-
optional :state_province, String
|
186
|
-
|
187
|
-
# @!attribute street
|
188
|
-
# Street address
|
189
|
-
#
|
190
|
-
# @return [String, nil]
|
191
|
-
optional :street, String
|
192
|
-
|
193
|
-
# @!method initialize(city: nil, country: nil, country_code: nil, postal_code: nil, state_code: nil, state_province: nil, street: nil)
|
194
|
-
# Physical address of the brand
|
195
|
-
#
|
196
|
-
# @param city [String] City name
|
197
|
-
#
|
198
|
-
# @param country [String] Country name
|
199
|
-
#
|
200
|
-
# @param country_code [String] Country code
|
201
|
-
#
|
202
|
-
# @param postal_code [String] Postal or ZIP code
|
203
|
-
#
|
204
|
-
# @param state_code [String] State or province code
|
205
|
-
#
|
206
|
-
# @param state_province [String] State or province name
|
207
|
-
#
|
208
|
-
# @param street [String] Street address
|
209
|
-
end
|
210
|
-
|
211
|
-
class Backdrop < BrandDev::Internal::Type::BaseModel
|
212
|
-
# @!attribute colors
|
213
|
-
# Array of colors in the backdrop image
|
214
|
-
#
|
215
|
-
# @return [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color>, nil]
|
216
|
-
optional :colors,
|
217
|
-
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color] }
|
218
|
-
|
219
|
-
# @!attribute resolution
|
220
|
-
# Resolution of the backdrop image
|
221
|
-
#
|
222
|
-
# @return [BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution, nil]
|
223
|
-
optional :resolution, -> { BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution }
|
224
|
-
|
225
|
-
# @!attribute url
|
226
|
-
# URL of the backdrop image
|
227
|
-
#
|
228
|
-
# @return [String, nil]
|
229
|
-
optional :url, String
|
230
|
-
|
231
|
-
# @!method initialize(colors: nil, resolution: nil, url: nil)
|
232
|
-
# @param colors [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color>] Array of colors in the backdrop image
|
233
|
-
#
|
234
|
-
# @param resolution [BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution] Resolution of the backdrop image
|
235
|
-
#
|
236
|
-
# @param url [String] URL of the backdrop image
|
237
|
-
|
238
|
-
class Color < BrandDev::Internal::Type::BaseModel
|
239
|
-
# @!attribute hex
|
240
|
-
# Color in hexadecimal format
|
241
|
-
#
|
242
|
-
# @return [String, nil]
|
243
|
-
optional :hex, String
|
244
|
-
|
245
|
-
# @!attribute name
|
246
|
-
# Name of the color
|
247
|
-
#
|
248
|
-
# @return [String, nil]
|
249
|
-
optional :name, String
|
250
|
-
|
251
|
-
# @!method initialize(hex: nil, name: nil)
|
252
|
-
# @param hex [String] Color in hexadecimal format
|
253
|
-
#
|
254
|
-
# @param name [String] Name of the color
|
255
|
-
end
|
256
|
-
|
257
|
-
# @see BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop#resolution
|
258
|
-
class Resolution < BrandDev::Internal::Type::BaseModel
|
259
|
-
# @!attribute aspect_ratio
|
260
|
-
# Aspect ratio of the image (width/height)
|
261
|
-
#
|
262
|
-
# @return [Float, nil]
|
263
|
-
optional :aspect_ratio, Float
|
264
|
-
|
265
|
-
# @!attribute height
|
266
|
-
# Height of the image in pixels
|
267
|
-
#
|
268
|
-
# @return [Integer, nil]
|
269
|
-
optional :height, Integer
|
270
|
-
|
271
|
-
# @!attribute width
|
272
|
-
# Width of the image in pixels
|
273
|
-
#
|
274
|
-
# @return [Integer, nil]
|
275
|
-
optional :width, Integer
|
276
|
-
|
277
|
-
# @!method initialize(aspect_ratio: nil, height: nil, width: nil)
|
278
|
-
# Resolution of the backdrop image
|
279
|
-
#
|
280
|
-
# @param aspect_ratio [Float] Aspect ratio of the image (width/height)
|
281
|
-
#
|
282
|
-
# @param height [Integer] Height of the image in pixels
|
283
|
-
#
|
284
|
-
# @param width [Integer] Width of the image in pixels
|
285
|
-
end
|
286
|
-
end
|
287
|
-
|
288
|
-
class Color < BrandDev::Internal::Type::BaseModel
|
289
|
-
# @!attribute hex
|
290
|
-
# Color in hexadecimal format
|
291
|
-
#
|
292
|
-
# @return [String, nil]
|
293
|
-
optional :hex, String
|
294
|
-
|
295
|
-
# @!attribute name
|
296
|
-
# Name of the color
|
297
|
-
#
|
298
|
-
# @return [String, nil]
|
299
|
-
optional :name, String
|
300
|
-
|
301
|
-
# @!method initialize(hex: nil, name: nil)
|
302
|
-
# @param hex [String] Color in hexadecimal format
|
303
|
-
#
|
304
|
-
# @param name [String] Name of the color
|
305
|
-
end
|
306
|
-
|
307
|
-
class Logo < BrandDev::Internal::Type::BaseModel
|
308
|
-
# @!attribute colors
|
309
|
-
# Array of colors in the logo
|
310
|
-
#
|
311
|
-
# @return [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color>, nil]
|
312
|
-
optional :colors,
|
313
|
-
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color] }
|
314
|
-
|
315
|
-
# @!attribute mode
|
316
|
-
# Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
|
317
|
-
# best for dark mode, 'has_opaque_background' = can be used for either as image
|
318
|
-
# has its own background
|
319
|
-
#
|
320
|
-
# @return [Symbol, BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode, nil]
|
321
|
-
optional :mode, enum: -> { BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode }
|
322
|
-
|
323
|
-
# @!attribute resolution
|
324
|
-
# Resolution of the logo image
|
325
|
-
#
|
326
|
-
# @return [BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution, nil]
|
327
|
-
optional :resolution, -> { BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution }
|
328
|
-
|
329
|
-
# @!attribute type
|
330
|
-
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
331
|
-
#
|
332
|
-
# @return [Symbol, BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type, nil]
|
333
|
-
optional :type, enum: -> { BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type }
|
334
|
-
|
335
|
-
# @!attribute url
|
336
|
-
# CDN hosted url of the logo (ready for display)
|
337
|
-
#
|
338
|
-
# @return [String, nil]
|
339
|
-
optional :url, String
|
340
|
-
|
341
|
-
# @!method initialize(colors: nil, mode: nil, resolution: nil, type: nil, url: nil)
|
342
|
-
# Some parameter documentations has been truncated, see
|
343
|
-
# {BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo} for more details.
|
344
|
-
#
|
345
|
-
# @param colors [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color>] Array of colors in the logo
|
346
|
-
#
|
347
|
-
# @param mode [Symbol, BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode] Indicates when this logo is best used: 'light' = best for light mode, 'dark' = b
|
348
|
-
#
|
349
|
-
# @param resolution [BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution] Resolution of the logo image
|
350
|
-
#
|
351
|
-
# @param type [Symbol, BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type] Type of the logo based on resolution (e.g., 'icon', 'logo')
|
352
|
-
#
|
353
|
-
# @param url [String] CDN hosted url of the logo (ready for display)
|
354
|
-
|
355
|
-
class Color < BrandDev::Internal::Type::BaseModel
|
356
|
-
# @!attribute hex
|
357
|
-
# Color in hexadecimal format
|
358
|
-
#
|
359
|
-
# @return [String, nil]
|
360
|
-
optional :hex, String
|
361
|
-
|
362
|
-
# @!attribute name
|
363
|
-
# Name of the color
|
364
|
-
#
|
365
|
-
# @return [String, nil]
|
366
|
-
optional :name, String
|
367
|
-
|
368
|
-
# @!method initialize(hex: nil, name: nil)
|
369
|
-
# @param hex [String] Color in hexadecimal format
|
370
|
-
#
|
371
|
-
# @param name [String] Name of the color
|
372
|
-
end
|
373
|
-
|
374
|
-
# Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
|
375
|
-
# best for dark mode, 'has_opaque_background' = can be used for either as image
|
376
|
-
# has its own background
|
377
|
-
#
|
378
|
-
# @see BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo#mode
|
379
|
-
module Mode
|
380
|
-
extend BrandDev::Internal::Type::Enum
|
381
|
-
|
382
|
-
LIGHT = :light
|
383
|
-
DARK = :dark
|
384
|
-
HAS_OPAQUE_BACKGROUND = :has_opaque_background
|
385
|
-
|
386
|
-
# @!method self.values
|
387
|
-
# @return [Array<Symbol>]
|
388
|
-
end
|
389
|
-
|
390
|
-
# @see BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo#resolution
|
391
|
-
class Resolution < BrandDev::Internal::Type::BaseModel
|
392
|
-
# @!attribute aspect_ratio
|
393
|
-
# Aspect ratio of the image (width/height)
|
394
|
-
#
|
395
|
-
# @return [Float, nil]
|
396
|
-
optional :aspect_ratio, Float
|
397
|
-
|
398
|
-
# @!attribute height
|
399
|
-
# Height of the image in pixels
|
400
|
-
#
|
401
|
-
# @return [Integer, nil]
|
402
|
-
optional :height, Integer
|
403
|
-
|
404
|
-
# @!attribute width
|
405
|
-
# Width of the image in pixels
|
406
|
-
#
|
407
|
-
# @return [Integer, nil]
|
408
|
-
optional :width, Integer
|
409
|
-
|
410
|
-
# @!method initialize(aspect_ratio: nil, height: nil, width: nil)
|
411
|
-
# Resolution of the logo image
|
412
|
-
#
|
413
|
-
# @param aspect_ratio [Float] Aspect ratio of the image (width/height)
|
414
|
-
#
|
415
|
-
# @param height [Integer] Height of the image in pixels
|
416
|
-
#
|
417
|
-
# @param width [Integer] Width of the image in pixels
|
418
|
-
end
|
419
|
-
|
420
|
-
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
421
|
-
#
|
422
|
-
# @see BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo#type
|
423
|
-
module Type
|
424
|
-
extend BrandDev::Internal::Type::Enum
|
425
|
-
|
426
|
-
ICON = :icon
|
427
|
-
LOGO = :logo
|
428
|
-
|
429
|
-
# @!method self.values
|
430
|
-
# @return [Array<Symbol>]
|
431
|
-
end
|
432
|
-
end
|
433
|
-
|
434
|
-
class Social < BrandDev::Internal::Type::BaseModel
|
435
|
-
# @!attribute type
|
436
|
-
# Type of social media, e.g., 'facebook', 'twitter'
|
437
|
-
#
|
438
|
-
# @return [String, nil]
|
439
|
-
optional :type, String
|
440
|
-
|
441
|
-
# @!attribute url
|
442
|
-
# URL of the social media page
|
443
|
-
#
|
444
|
-
# @return [String, nil]
|
445
|
-
optional :url, String
|
446
|
-
|
447
|
-
# @!method initialize(type: nil, url: nil)
|
448
|
-
# @param type [String] Type of social media, e.g., 'facebook', 'twitter'
|
449
|
-
#
|
450
|
-
# @param url [String] URL of the social media page
|
451
|
-
end
|
452
|
-
|
453
|
-
# @see BrandDev::Models::BrandRetrieveByTickerResponse::Brand#stock
|
454
|
-
class Stock < BrandDev::Internal::Type::BaseModel
|
455
|
-
# @!attribute exchange
|
456
|
-
# Stock exchange name
|
457
|
-
#
|
458
|
-
# @return [String, nil]
|
459
|
-
optional :exchange, String
|
460
|
-
|
461
|
-
# @!attribute ticker
|
462
|
-
# Stock ticker symbol
|
463
|
-
#
|
464
|
-
# @return [String, nil]
|
465
|
-
optional :ticker, String
|
466
|
-
|
467
|
-
# @!method initialize(exchange: nil, ticker: nil)
|
468
|
-
# Stock market information for this brand (will be null if not a publicly traded
|
469
|
-
# company)
|
470
|
-
#
|
471
|
-
# @param exchange [String] Stock exchange name
|
472
|
-
#
|
473
|
-
# @param ticker [String] Stock ticker symbol
|
474
|
-
end
|
475
|
-
end
|
476
|
-
end
|
477
|
-
end
|
478
|
-
end
|
@@ -1,61 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module BrandDev
|
4
|
-
module Models
|
5
|
-
class BrandRetrieveByTickerParams < BrandDev::Internal::Type::BaseModel
|
6
|
-
extend BrandDev::Internal::Type::RequestParameters::Converter
|
7
|
-
include BrandDev::Internal::Type::RequestParameters
|
8
|
-
|
9
|
-
OrHash =
|
10
|
-
T.type_alias do
|
11
|
-
T.any(
|
12
|
-
BrandDev::BrandRetrieveByTickerParams,
|
13
|
-
BrandDev::Internal::AnyHash
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
# Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
|
18
|
-
sig { returns(String) }
|
19
|
-
attr_accessor :ticker
|
20
|
-
|
21
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
22
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
23
|
-
# value is 300000ms (5 minutes).
|
24
|
-
sig { returns(T.nilable(Integer)) }
|
25
|
-
attr_reader :timeout_ms
|
26
|
-
|
27
|
-
sig { params(timeout_ms: Integer).void }
|
28
|
-
attr_writer :timeout_ms
|
29
|
-
|
30
|
-
sig do
|
31
|
-
params(
|
32
|
-
ticker: String,
|
33
|
-
timeout_ms: Integer,
|
34
|
-
request_options: BrandDev::RequestOptions::OrHash
|
35
|
-
).returns(T.attached_class)
|
36
|
-
end
|
37
|
-
def self.new(
|
38
|
-
# Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
|
39
|
-
ticker:,
|
40
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
41
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
42
|
-
# value is 300000ms (5 minutes).
|
43
|
-
timeout_ms: nil,
|
44
|
-
request_options: {}
|
45
|
-
)
|
46
|
-
end
|
47
|
-
|
48
|
-
sig do
|
49
|
-
override.returns(
|
50
|
-
{
|
51
|
-
ticker: String,
|
52
|
-
timeout_ms: Integer,
|
53
|
-
request_options: BrandDev::RequestOptions
|
54
|
-
}
|
55
|
-
)
|
56
|
-
end
|
57
|
-
def to_hash
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|