brand.dev 0.0.1.pre.alpha.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 +7 -0
- data/README.md +229 -0
- data/SECURITY.md +23 -0
- data/lib/brand_dev/client.rb +74 -0
- data/lib/brand_dev/errors.rb +192 -0
- data/lib/brand_dev/file_part.rb +55 -0
- data/lib/brand_dev/internal/transport/base_client.rb +555 -0
- data/lib/brand_dev/internal/transport/pooled_net_requester.rb +209 -0
- data/lib/brand_dev/internal/type/array_of.rb +162 -0
- data/lib/brand_dev/internal/type/base_model.rb +484 -0
- data/lib/brand_dev/internal/type/base_page.rb +55 -0
- data/lib/brand_dev/internal/type/boolean.rb +71 -0
- data/lib/brand_dev/internal/type/converter.rb +292 -0
- data/lib/brand_dev/internal/type/enum.rb +120 -0
- data/lib/brand_dev/internal/type/file_input.rb +103 -0
- data/lib/brand_dev/internal/type/hash_of.rb +182 -0
- data/lib/brand_dev/internal/type/request_parameters.rb +42 -0
- data/lib/brand_dev/internal/type/union.rb +227 -0
- data/lib/brand_dev/internal/type/unknown.rb +75 -0
- data/lib/brand_dev/internal/util.rb +915 -0
- data/lib/brand_dev/internal.rb +20 -0
- data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +22 -0
- data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +435 -0
- data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +22 -0
- data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +432 -0
- data/lib/brand_dev/models/brand_retrieve_naics_params.rb +27 -0
- data/lib/brand_dev/models/brand_retrieve_naics_response.rb +61 -0
- data/lib/brand_dev/models/brand_retrieve_params.rb +91 -0
- data/lib/brand_dev/models/brand_retrieve_response.rb +432 -0
- data/lib/brand_dev/models/brand_search_params.rb +22 -0
- data/lib/brand_dev/models/brand_search_response.rb +35 -0
- data/lib/brand_dev/models.rb +51 -0
- data/lib/brand_dev/request_options.rb +77 -0
- data/lib/brand_dev/resources/brand.rb +130 -0
- data/lib/brand_dev/version.rb +5 -0
- data/lib/brand_dev.rb +64 -0
- data/manifest.yaml +15 -0
- data/rbi/brand_dev/client.rbi +49 -0
- data/rbi/brand_dev/errors.rbi +162 -0
- data/rbi/brand_dev/file_part.rbi +37 -0
- data/rbi/brand_dev/internal/transport/base_client.rbi +293 -0
- data/rbi/brand_dev/internal/transport/pooled_net_requester.rbi +79 -0
- data/rbi/brand_dev/internal/type/array_of.rbi +104 -0
- data/rbi/brand_dev/internal/type/base_model.rbi +302 -0
- data/rbi/brand_dev/internal/type/base_page.rbi +42 -0
- data/rbi/brand_dev/internal/type/boolean.rbi +56 -0
- data/rbi/brand_dev/internal/type/converter.rbi +162 -0
- data/rbi/brand_dev/internal/type/enum.rbi +82 -0
- data/rbi/brand_dev/internal/type/file_input.rbi +59 -0
- data/rbi/brand_dev/internal/type/hash_of.rbi +104 -0
- data/rbi/brand_dev/internal/type/request_parameters.rbi +29 -0
- data/rbi/brand_dev/internal/type/union.rbi +116 -0
- data/rbi/brand_dev/internal/type/unknown.rbi +56 -0
- data/rbi/brand_dev/internal/util.rbi +485 -0
- data/rbi/brand_dev/internal.rbi +16 -0
- data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +46 -0
- data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +981 -0
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +43 -0
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +976 -0
- data/rbi/brand_dev/models/brand_retrieve_naics_params.rbi +44 -0
- data/rbi/brand_dev/models/brand_retrieve_naics_response.rbi +127 -0
- data/rbi/brand_dev/models/brand_retrieve_params.rbi +344 -0
- data/rbi/brand_dev/models/brand_retrieve_response.rbi +949 -0
- data/rbi/brand_dev/models/brand_search_params.rbi +40 -0
- data/rbi/brand_dev/models/brand_search_response.rbi +63 -0
- data/rbi/brand_dev/models.rbi +14 -0
- data/rbi/brand_dev/request_options.rbi +59 -0
- data/rbi/brand_dev/resources/brand.rbi +89 -0
- data/rbi/brand_dev/version.rbi +5 -0
- data/sig/brand_dev/client.rbs +26 -0
- data/sig/brand_dev/errors.rbs +101 -0
- data/sig/brand_dev/file_part.rbs +21 -0
- data/sig/brand_dev/internal/transport/base_client.rbs +131 -0
- data/sig/brand_dev/internal/transport/pooled_net_requester.rbs +45 -0
- data/sig/brand_dev/internal/type/array_of.rbs +48 -0
- data/sig/brand_dev/internal/type/base_model.rbs +102 -0
- data/sig/brand_dev/internal/type/base_page.rbs +24 -0
- data/sig/brand_dev/internal/type/boolean.rbs +26 -0
- data/sig/brand_dev/internal/type/converter.rbs +56 -0
- data/sig/brand_dev/internal/type/enum.rbs +32 -0
- data/sig/brand_dev/internal/type/file_input.rbs +25 -0
- data/sig/brand_dev/internal/type/hash_of.rbs +48 -0
- data/sig/brand_dev/internal/type/request_parameters.rbs +17 -0
- data/sig/brand_dev/internal/type/union.rbs +52 -0
- data/sig/brand_dev/internal/type/unknown.rbs +26 -0
- data/sig/brand_dev/internal/util.rbs +185 -0
- data/sig/brand_dev/internal.rbs +9 -0
- data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +24 -0
- data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +418 -0
- data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +23 -0
- data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +418 -0
- data/sig/brand_dev/models/brand_retrieve_naics_params.rbs +23 -0
- data/sig/brand_dev/models/brand_retrieve_naics_response.rbs +61 -0
- data/sig/brand_dev/models/brand_retrieve_params.rbs +148 -0
- data/sig/brand_dev/models/brand_retrieve_response.rbs +418 -0
- data/sig/brand_dev/models/brand_search_params.rbs +23 -0
- data/sig/brand_dev/models/brand_search_response.rbs +29 -0
- data/sig/brand_dev/models.rbs +11 -0
- data/sig/brand_dev/request_options.rbs +34 -0
- data/sig/brand_dev/resources/brand.rbs +33 -0
- data/sig/brand_dev/version.rbs +3 -0
- metadata +160 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BrandDev
|
4
|
+
module Internal
|
5
|
+
extend BrandDev::Internal::Util::SorbetRuntimeSupport
|
6
|
+
|
7
|
+
OMIT =
|
8
|
+
Object.new.tap do
|
9
|
+
_1.define_singleton_method(:inspect) { "#<#{BrandDev::Internal}::OMIT>" }
|
10
|
+
end
|
11
|
+
.freeze
|
12
|
+
|
13
|
+
define_sorbet_constant!(:AnyHash) do
|
14
|
+
T.type_alias { T::Hash[Symbol, T.anything] }
|
15
|
+
end
|
16
|
+
define_sorbet_constant!(:FileInput) do
|
17
|
+
T.type_alias { T.any(Pathname, StringIO, IO, String, BrandDev::FilePart) }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BrandDev
|
4
|
+
module Models
|
5
|
+
# @see BrandDev::Resources::Brand#identify_from_transaction
|
6
|
+
class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel
|
7
|
+
extend BrandDev::Internal::Type::RequestParameters::Converter
|
8
|
+
include BrandDev::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute transaction_info
|
11
|
+
# Transaction information to identify the brand
|
12
|
+
#
|
13
|
+
# @return [String]
|
14
|
+
required :transaction_info, String
|
15
|
+
|
16
|
+
# @!method initialize(transaction_info:, request_options: {})
|
17
|
+
# @param transaction_info [String] Transaction information to identify the brand
|
18
|
+
#
|
19
|
+
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,435 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BrandDev
|
4
|
+
module Models
|
5
|
+
# @see BrandDev::Resources::Brand#identify_from_transaction
|
6
|
+
class BrandIdentifyFromTransactionResponse < BrandDev::Internal::Type::BaseModel
|
7
|
+
# @!attribute brand
|
8
|
+
# Detailed brand information
|
9
|
+
#
|
10
|
+
# @return [BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand, nil]
|
11
|
+
optional :brand, -> { BrandDev::Models::BrandIdentifyFromTransactionResponse::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::BrandIdentifyFromTransactionResponse::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::BrandIdentifyFromTransactionResponse#brand
|
33
|
+
class Brand < BrandDev::Internal::Type::BaseModel
|
34
|
+
# @!attribute address
|
35
|
+
# Physical address of the brand
|
36
|
+
#
|
37
|
+
# @return [BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address, nil]
|
38
|
+
optional :address, -> { BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address }
|
39
|
+
|
40
|
+
# @!attribute backdrops
|
41
|
+
# An array of backdrop images for the brand
|
42
|
+
#
|
43
|
+
# @return [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop>, nil]
|
44
|
+
optional :backdrops,
|
45
|
+
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop] }
|
46
|
+
|
47
|
+
# @!attribute colors
|
48
|
+
# An array of brand colors
|
49
|
+
#
|
50
|
+
# @return [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color>, nil]
|
51
|
+
optional :colors,
|
52
|
+
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandIdentifyFromTransactionResponse::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 fonts
|
67
|
+
# An array of fonts used by the brand's website
|
68
|
+
#
|
69
|
+
# @return [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font>, nil]
|
70
|
+
optional :fonts,
|
71
|
+
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font] }
|
72
|
+
|
73
|
+
# @!attribute logos
|
74
|
+
# An array of logos associated with the brand
|
75
|
+
#
|
76
|
+
# @return [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo>, nil]
|
77
|
+
optional :logos,
|
78
|
+
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo] }
|
79
|
+
|
80
|
+
# @!attribute slogan
|
81
|
+
# The brand's slogan
|
82
|
+
#
|
83
|
+
# @return [String, nil]
|
84
|
+
optional :slogan, String
|
85
|
+
|
86
|
+
# @!attribute socials
|
87
|
+
# An array of social media links for the brand
|
88
|
+
#
|
89
|
+
# @return [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social>, nil]
|
90
|
+
optional :socials,
|
91
|
+
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social] }
|
92
|
+
|
93
|
+
# @!attribute stock
|
94
|
+
# Stock market information for this brand (will be null if not a publicly traded
|
95
|
+
# company)
|
96
|
+
#
|
97
|
+
# @return [BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock, nil]
|
98
|
+
optional :stock, -> { BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock }
|
99
|
+
|
100
|
+
# @!attribute title
|
101
|
+
# The title or name of the brand
|
102
|
+
#
|
103
|
+
# @return [String, nil]
|
104
|
+
optional :title, String
|
105
|
+
|
106
|
+
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, fonts: nil, logos: nil, slogan: nil, socials: nil, stock: nil, title: nil)
|
107
|
+
# Some parameter documentations has been truncated, see
|
108
|
+
# {BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand} for more
|
109
|
+
# details.
|
110
|
+
#
|
111
|
+
# Detailed brand information
|
112
|
+
#
|
113
|
+
# @param address [BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address] Physical address of the brand
|
114
|
+
#
|
115
|
+
# @param backdrops [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop>] An array of backdrop images for the brand
|
116
|
+
#
|
117
|
+
# @param colors [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color>] An array of brand colors
|
118
|
+
#
|
119
|
+
# @param description [String] A brief description of the brand
|
120
|
+
#
|
121
|
+
# @param domain [String] The domain name of the brand
|
122
|
+
#
|
123
|
+
# @param fonts [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font>] An array of fonts used by the brand's website
|
124
|
+
#
|
125
|
+
# @param logos [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo>] An array of logos associated with the brand
|
126
|
+
#
|
127
|
+
# @param slogan [String] The brand's slogan
|
128
|
+
#
|
129
|
+
# @param socials [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social>] An array of social media links for the brand
|
130
|
+
#
|
131
|
+
# @param stock [BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock] Stock market information for this brand (will be null if not a publicly traded c
|
132
|
+
#
|
133
|
+
# @param title [String] The title or name of the brand
|
134
|
+
|
135
|
+
# @see BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand#address
|
136
|
+
class Address < BrandDev::Internal::Type::BaseModel
|
137
|
+
# @!attribute city
|
138
|
+
# City name
|
139
|
+
#
|
140
|
+
# @return [String, nil]
|
141
|
+
optional :city, String
|
142
|
+
|
143
|
+
# @!attribute country
|
144
|
+
# Country name
|
145
|
+
#
|
146
|
+
# @return [String, nil]
|
147
|
+
optional :country, String
|
148
|
+
|
149
|
+
# @!attribute country_code
|
150
|
+
# Country code
|
151
|
+
#
|
152
|
+
# @return [String, nil]
|
153
|
+
optional :country_code, String
|
154
|
+
|
155
|
+
# @!attribute postal_code
|
156
|
+
# Postal or ZIP code
|
157
|
+
#
|
158
|
+
# @return [String, nil]
|
159
|
+
optional :postal_code, String
|
160
|
+
|
161
|
+
# @!attribute state_code
|
162
|
+
# State or province code
|
163
|
+
#
|
164
|
+
# @return [String, nil]
|
165
|
+
optional :state_code, String
|
166
|
+
|
167
|
+
# @!attribute state_province
|
168
|
+
# State or province name
|
169
|
+
#
|
170
|
+
# @return [String, nil]
|
171
|
+
optional :state_province, String
|
172
|
+
|
173
|
+
# @!attribute street
|
174
|
+
# Street address
|
175
|
+
#
|
176
|
+
# @return [String, nil]
|
177
|
+
optional :street, String
|
178
|
+
|
179
|
+
# @!method initialize(city: nil, country: nil, country_code: nil, postal_code: nil, state_code: nil, state_province: nil, street: nil)
|
180
|
+
# Physical address of the brand
|
181
|
+
#
|
182
|
+
# @param city [String] City name
|
183
|
+
#
|
184
|
+
# @param country [String] Country name
|
185
|
+
#
|
186
|
+
# @param country_code [String] Country code
|
187
|
+
#
|
188
|
+
# @param postal_code [String] Postal or ZIP code
|
189
|
+
#
|
190
|
+
# @param state_code [String] State or province code
|
191
|
+
#
|
192
|
+
# @param state_province [String] State or province name
|
193
|
+
#
|
194
|
+
# @param street [String] Street address
|
195
|
+
end
|
196
|
+
|
197
|
+
class Backdrop < BrandDev::Internal::Type::BaseModel
|
198
|
+
# @!attribute colors
|
199
|
+
# Array of colors in the backdrop image
|
200
|
+
#
|
201
|
+
# @return [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color>, nil]
|
202
|
+
optional :colors,
|
203
|
+
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color] }
|
204
|
+
|
205
|
+
# @!attribute resolution
|
206
|
+
# Resolution of the backdrop image
|
207
|
+
#
|
208
|
+
# @return [BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution, nil]
|
209
|
+
optional :resolution,
|
210
|
+
-> { BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution }
|
211
|
+
|
212
|
+
# @!attribute url
|
213
|
+
# URL of the backdrop image
|
214
|
+
#
|
215
|
+
# @return [String, nil]
|
216
|
+
optional :url, String
|
217
|
+
|
218
|
+
# @!method initialize(colors: nil, resolution: nil, url: nil)
|
219
|
+
# @param colors [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color>] Array of colors in the backdrop image
|
220
|
+
#
|
221
|
+
# @param resolution [BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution] Resolution of the backdrop image
|
222
|
+
#
|
223
|
+
# @param url [String] URL of the backdrop image
|
224
|
+
|
225
|
+
class Color < BrandDev::Internal::Type::BaseModel
|
226
|
+
# @!attribute hex
|
227
|
+
# Color in hexadecimal format
|
228
|
+
#
|
229
|
+
# @return [String, nil]
|
230
|
+
optional :hex, String
|
231
|
+
|
232
|
+
# @!attribute name
|
233
|
+
# Name of the color
|
234
|
+
#
|
235
|
+
# @return [String, nil]
|
236
|
+
optional :name, String
|
237
|
+
|
238
|
+
# @!method initialize(hex: nil, name: nil)
|
239
|
+
# @param hex [String] Color in hexadecimal format
|
240
|
+
#
|
241
|
+
# @param name [String] Name of the color
|
242
|
+
end
|
243
|
+
|
244
|
+
# @see BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop#resolution
|
245
|
+
class Resolution < BrandDev::Internal::Type::BaseModel
|
246
|
+
# @!attribute height
|
247
|
+
# Height of the image in pixels
|
248
|
+
#
|
249
|
+
# @return [Integer, nil]
|
250
|
+
optional :height, Integer
|
251
|
+
|
252
|
+
# @!attribute width
|
253
|
+
# Width of the image in pixels
|
254
|
+
#
|
255
|
+
# @return [Integer, nil]
|
256
|
+
optional :width, Integer
|
257
|
+
|
258
|
+
# @!method initialize(height: nil, width: nil)
|
259
|
+
# Resolution of the backdrop image
|
260
|
+
#
|
261
|
+
# @param height [Integer] Height of the image in pixels
|
262
|
+
#
|
263
|
+
# @param width [Integer] Width of the image in pixels
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
class Color < BrandDev::Internal::Type::BaseModel
|
268
|
+
# @!attribute hex
|
269
|
+
# Color in hexadecimal format
|
270
|
+
#
|
271
|
+
# @return [String, nil]
|
272
|
+
optional :hex, String
|
273
|
+
|
274
|
+
# @!attribute name
|
275
|
+
# Name of the color
|
276
|
+
#
|
277
|
+
# @return [String, nil]
|
278
|
+
optional :name, String
|
279
|
+
|
280
|
+
# @!method initialize(hex: nil, name: nil)
|
281
|
+
# @param hex [String] Color in hexadecimal format
|
282
|
+
#
|
283
|
+
# @param name [String] Name of the color
|
284
|
+
end
|
285
|
+
|
286
|
+
class Font < BrandDev::Internal::Type::BaseModel
|
287
|
+
# @!attribute name
|
288
|
+
# Name of the font
|
289
|
+
#
|
290
|
+
# @return [String, nil]
|
291
|
+
optional :name, String
|
292
|
+
|
293
|
+
# @!attribute usage
|
294
|
+
# Usage of the font, e.g., 'title', 'body', 'button'
|
295
|
+
#
|
296
|
+
# @return [String, nil]
|
297
|
+
optional :usage, String
|
298
|
+
|
299
|
+
# @!method initialize(name: nil, usage: nil)
|
300
|
+
# @param name [String] Name of the font
|
301
|
+
#
|
302
|
+
# @param usage [String] Usage of the font, e.g., 'title', 'body', 'button'
|
303
|
+
end
|
304
|
+
|
305
|
+
class Logo < BrandDev::Internal::Type::BaseModel
|
306
|
+
# @!attribute colors
|
307
|
+
# Array of colors in the logo
|
308
|
+
#
|
309
|
+
# @return [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color>, nil]
|
310
|
+
optional :colors,
|
311
|
+
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color] }
|
312
|
+
|
313
|
+
# @!attribute group
|
314
|
+
# Group identifier for logos
|
315
|
+
#
|
316
|
+
# @return [Integer, nil]
|
317
|
+
optional :group, Integer
|
318
|
+
|
319
|
+
# @!attribute mode
|
320
|
+
# Mode of the logo, e.g., 'dark', 'light'
|
321
|
+
#
|
322
|
+
# @return [String, nil]
|
323
|
+
optional :mode, String
|
324
|
+
|
325
|
+
# @!attribute resolution
|
326
|
+
# Resolution of the logo image
|
327
|
+
#
|
328
|
+
# @return [BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution, nil]
|
329
|
+
optional :resolution,
|
330
|
+
-> { BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution }
|
331
|
+
|
332
|
+
# @!attribute url
|
333
|
+
# URL of the logo image
|
334
|
+
#
|
335
|
+
# @return [String, nil]
|
336
|
+
optional :url, String
|
337
|
+
|
338
|
+
# @!method initialize(colors: nil, group: nil, mode: nil, resolution: nil, url: nil)
|
339
|
+
# @param colors [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color>] Array of colors in the logo
|
340
|
+
#
|
341
|
+
# @param group [Integer] Group identifier for logos
|
342
|
+
#
|
343
|
+
# @param mode [String] Mode of the logo, e.g., 'dark', 'light'
|
344
|
+
#
|
345
|
+
# @param resolution [BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution] Resolution of the logo image
|
346
|
+
#
|
347
|
+
# @param url [String] URL of the logo image
|
348
|
+
|
349
|
+
class Color < BrandDev::Internal::Type::BaseModel
|
350
|
+
# @!attribute hex
|
351
|
+
# Color in hexadecimal format
|
352
|
+
#
|
353
|
+
# @return [String, nil]
|
354
|
+
optional :hex, String
|
355
|
+
|
356
|
+
# @!attribute name
|
357
|
+
# Name of the color
|
358
|
+
#
|
359
|
+
# @return [String, nil]
|
360
|
+
optional :name, String
|
361
|
+
|
362
|
+
# @!method initialize(hex: nil, name: nil)
|
363
|
+
# @param hex [String] Color in hexadecimal format
|
364
|
+
#
|
365
|
+
# @param name [String] Name of the color
|
366
|
+
end
|
367
|
+
|
368
|
+
# @see BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo#resolution
|
369
|
+
class Resolution < BrandDev::Internal::Type::BaseModel
|
370
|
+
# @!attribute height
|
371
|
+
# Height of the image in pixels
|
372
|
+
#
|
373
|
+
# @return [Integer, nil]
|
374
|
+
optional :height, Integer
|
375
|
+
|
376
|
+
# @!attribute width
|
377
|
+
# Width of the image in pixels
|
378
|
+
#
|
379
|
+
# @return [Integer, nil]
|
380
|
+
optional :width, Integer
|
381
|
+
|
382
|
+
# @!method initialize(height: nil, width: nil)
|
383
|
+
# Resolution of the logo image
|
384
|
+
#
|
385
|
+
# @param height [Integer] Height of the image in pixels
|
386
|
+
#
|
387
|
+
# @param width [Integer] Width of the image in pixels
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
class Social < BrandDev::Internal::Type::BaseModel
|
392
|
+
# @!attribute type
|
393
|
+
# Type of social media, e.g., 'facebook', 'twitter'
|
394
|
+
#
|
395
|
+
# @return [String, nil]
|
396
|
+
optional :type, String
|
397
|
+
|
398
|
+
# @!attribute url
|
399
|
+
# URL of the social media page
|
400
|
+
#
|
401
|
+
# @return [String, nil]
|
402
|
+
optional :url, String
|
403
|
+
|
404
|
+
# @!method initialize(type: nil, url: nil)
|
405
|
+
# @param type [String] Type of social media, e.g., 'facebook', 'twitter'
|
406
|
+
#
|
407
|
+
# @param url [String] URL of the social media page
|
408
|
+
end
|
409
|
+
|
410
|
+
# @see BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand#stock
|
411
|
+
class Stock < BrandDev::Internal::Type::BaseModel
|
412
|
+
# @!attribute exchange
|
413
|
+
# Stock exchange name
|
414
|
+
#
|
415
|
+
# @return [String, nil]
|
416
|
+
optional :exchange, String
|
417
|
+
|
418
|
+
# @!attribute ticker
|
419
|
+
# Stock ticker symbol
|
420
|
+
#
|
421
|
+
# @return [String, nil]
|
422
|
+
optional :ticker, String
|
423
|
+
|
424
|
+
# @!method initialize(exchange: nil, ticker: nil)
|
425
|
+
# Stock market information for this brand (will be null if not a publicly traded
|
426
|
+
# company)
|
427
|
+
#
|
428
|
+
# @param exchange [String] Stock exchange name
|
429
|
+
#
|
430
|
+
# @param ticker [String] Stock ticker symbol
|
431
|
+
end
|
432
|
+
end
|
433
|
+
end
|
434
|
+
end
|
435
|
+
end
|
@@ -0,0 +1,22 @@
|
|
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
|
+
# @!method initialize(ticker:, request_options: {})
|
17
|
+
# @param ticker [String] Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
|
18
|
+
#
|
19
|
+
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|