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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/brand_dev/internal/transport/base_client.rb +1 -1
  5. data/lib/brand_dev/internal/type/array_of.rb +1 -0
  6. data/lib/brand_dev/internal/type/base_model.rb +3 -1
  7. data/lib/brand_dev/internal/type/converter.rb +27 -0
  8. data/lib/brand_dev/internal/type/hash_of.rb +1 -0
  9. data/lib/brand_dev/internal/type/union.rb +9 -7
  10. data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +311 -1
  11. data/lib/brand_dev/models/brand_retrieve_params.rb +32 -9
  12. data/lib/brand_dev/models/brand_retrieve_response.rb +310 -1
  13. data/lib/brand_dev/models.rb +0 -2
  14. data/lib/brand_dev/resources/brand.rb +10 -32
  15. data/lib/brand_dev/version.rb +1 -1
  16. data/lib/brand_dev.rb +0 -2
  17. data/rbi/brand_dev/internal/transport/base_client.rbi +1 -1
  18. data/rbi/brand_dev/internal/type/converter.rbi +54 -0
  19. data/rbi/brand_dev/internal/type/union.rbi +9 -2
  20. data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +1409 -0
  21. data/rbi/brand_dev/models/brand_retrieve_params.rbi +48 -10
  22. data/rbi/brand_dev/models/brand_retrieve_response.rbi +1409 -0
  23. data/rbi/brand_dev/models.rbi +0 -2
  24. data/rbi/brand_dev/resources/brand.rbi +18 -24
  25. data/sig/brand_dev/internal/transport/base_client.rbs +1 -1
  26. data/sig/brand_dev/internal/type/converter.rbs +17 -0
  27. data/sig/brand_dev/internal/type/union.rbs +2 -2
  28. data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +558 -0
  29. data/sig/brand_dev/models/brand_retrieve_params.rbs +18 -2
  30. data/sig/brand_dev/models/brand_retrieve_response.rbs +558 -0
  31. data/sig/brand_dev/models.rbs +0 -2
  32. data/sig/brand_dev/resources/brand.rbs +3 -7
  33. metadata +2 -8
  34. data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +0 -35
  35. data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +0 -478
  36. data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +0 -61
  37. data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +0 -1081
  38. data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +0 -30
  39. data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +0 -467
@@ -1,30 +0,0 @@
1
- module BrandDev
2
- module Models
3
- type brand_retrieve_by_ticker_params =
4
- { ticker: String, timeout_ms: Integer }
5
- & BrandDev::Internal::Type::request_parameters
6
-
7
- class BrandRetrieveByTickerParams < BrandDev::Internal::Type::BaseModel
8
- extend BrandDev::Internal::Type::RequestParameters::Converter
9
- include BrandDev::Internal::Type::RequestParameters
10
-
11
- attr_accessor ticker: String
12
-
13
- attr_reader timeout_ms: Integer?
14
-
15
- def timeout_ms=: (Integer) -> Integer
16
-
17
- def initialize: (
18
- ticker: String,
19
- ?timeout_ms: Integer,
20
- ?request_options: BrandDev::request_opts
21
- ) -> void
22
-
23
- def to_hash: -> {
24
- ticker: String,
25
- timeout_ms: Integer,
26
- request_options: BrandDev::RequestOptions
27
- }
28
- end
29
- end
30
- end
@@ -1,467 +0,0 @@
1
- module BrandDev
2
- module Models
3
- type brand_retrieve_by_ticker_response =
4
- {
5
- brand: BrandDev::Models::BrandRetrieveByTickerResponse::Brand,
6
- code: Integer,
7
- status: String
8
- }
9
-
10
- class BrandRetrieveByTickerResponse < BrandDev::Internal::Type::BaseModel
11
- attr_reader brand: BrandDev::Models::BrandRetrieveByTickerResponse::Brand?
12
-
13
- def brand=: (
14
- BrandDev::Models::BrandRetrieveByTickerResponse::Brand
15
- ) -> BrandDev::Models::BrandRetrieveByTickerResponse::Brand
16
-
17
- attr_reader code: Integer?
18
-
19
- def code=: (Integer) -> Integer
20
-
21
- attr_reader status: String?
22
-
23
- def status=: (String) -> String
24
-
25
- def initialize: (
26
- ?brand: BrandDev::Models::BrandRetrieveByTickerResponse::Brand,
27
- ?code: Integer,
28
- ?status: String
29
- ) -> void
30
-
31
- def to_hash: -> {
32
- brand: BrandDev::Models::BrandRetrieveByTickerResponse::Brand,
33
- code: Integer,
34
- status: String
35
- }
36
-
37
- type brand =
38
- {
39
- address: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Address,
40
- backdrops: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop],
41
- colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
42
- description: String,
43
- domain: String,
44
- email: String,
45
- is_nsfw: bool,
46
- logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
47
- phone: String,
48
- slogan: String,
49
- socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
50
- stock: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock,
51
- title: String
52
- }
53
-
54
- class Brand < BrandDev::Internal::Type::BaseModel
55
- attr_reader address: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Address?
56
-
57
- def address=: (
58
- BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Address
59
- ) -> BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Address
60
-
61
- attr_reader backdrops: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop]?
62
-
63
- def backdrops=: (
64
- ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop]
65
- ) -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop]
66
-
67
- attr_reader colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color]?
68
-
69
- def colors=: (
70
- ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color]
71
- ) -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color]
72
-
73
- attr_reader description: String?
74
-
75
- def description=: (String) -> String
76
-
77
- attr_reader domain: String?
78
-
79
- def domain=: (String) -> String
80
-
81
- attr_reader email: String?
82
-
83
- def email=: (String) -> String
84
-
85
- attr_reader is_nsfw: bool?
86
-
87
- def is_nsfw=: (bool) -> bool
88
-
89
- attr_reader logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo]?
90
-
91
- def logos=: (
92
- ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo]
93
- ) -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo]
94
-
95
- attr_reader phone: String?
96
-
97
- def phone=: (String) -> String
98
-
99
- attr_reader slogan: String?
100
-
101
- def slogan=: (String) -> String
102
-
103
- attr_reader socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social]?
104
-
105
- def socials=: (
106
- ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social]
107
- ) -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social]
108
-
109
- attr_reader stock: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock?
110
-
111
- def stock=: (
112
- BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock
113
- ) -> BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock
114
-
115
- attr_reader title: String?
116
-
117
- def title=: (String) -> String
118
-
119
- def initialize: (
120
- ?address: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Address,
121
- ?backdrops: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop],
122
- ?colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
123
- ?description: String,
124
- ?domain: String,
125
- ?email: String,
126
- ?is_nsfw: bool,
127
- ?logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
128
- ?phone: String,
129
- ?slogan: String,
130
- ?socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
131
- ?stock: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock,
132
- ?title: String
133
- ) -> void
134
-
135
- def to_hash: -> {
136
- address: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Address,
137
- backdrops: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop],
138
- colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
139
- description: String,
140
- domain: String,
141
- email: String,
142
- is_nsfw: bool,
143
- logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
144
- phone: String,
145
- slogan: String,
146
- socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
147
- stock: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock,
148
- title: String
149
- }
150
-
151
- type address =
152
- {
153
- city: String,
154
- country: String,
155
- country_code: String,
156
- postal_code: String,
157
- state_code: String,
158
- state_province: String,
159
- street: String
160
- }
161
-
162
- class Address < BrandDev::Internal::Type::BaseModel
163
- attr_reader city: String?
164
-
165
- def city=: (String) -> String
166
-
167
- attr_reader country: String?
168
-
169
- def country=: (String) -> String
170
-
171
- attr_reader country_code: String?
172
-
173
- def country_code=: (String) -> String
174
-
175
- attr_reader postal_code: String?
176
-
177
- def postal_code=: (String) -> String
178
-
179
- attr_reader state_code: String?
180
-
181
- def state_code=: (String) -> String
182
-
183
- attr_reader state_province: String?
184
-
185
- def state_province=: (String) -> String
186
-
187
- attr_reader street: String?
188
-
189
- def street=: (String) -> String
190
-
191
- def initialize: (
192
- ?city: String,
193
- ?country: String,
194
- ?country_code: String,
195
- ?postal_code: String,
196
- ?state_code: String,
197
- ?state_province: String,
198
- ?street: String
199
- ) -> void
200
-
201
- def to_hash: -> {
202
- city: String,
203
- country: String,
204
- country_code: String,
205
- postal_code: String,
206
- state_code: String,
207
- state_province: String,
208
- street: String
209
- }
210
- end
211
-
212
- type backdrop =
213
- {
214
- colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color],
215
- resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution,
216
- url: String
217
- }
218
-
219
- class Backdrop < BrandDev::Internal::Type::BaseModel
220
- attr_reader colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color]?
221
-
222
- def colors=: (
223
- ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color]
224
- ) -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color]
225
-
226
- attr_reader resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution?
227
-
228
- def resolution=: (
229
- BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution
230
- ) -> BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution
231
-
232
- attr_reader url: String?
233
-
234
- def url=: (String) -> String
235
-
236
- def initialize: (
237
- ?colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color],
238
- ?resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution,
239
- ?url: String
240
- ) -> void
241
-
242
- def to_hash: -> {
243
- colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color],
244
- resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution,
245
- url: String
246
- }
247
-
248
- type color = { hex: String, name: String }
249
-
250
- class Color < BrandDev::Internal::Type::BaseModel
251
- attr_reader hex: String?
252
-
253
- def hex=: (String) -> String
254
-
255
- attr_reader name: String?
256
-
257
- def name=: (String) -> String
258
-
259
- def initialize: (?hex: String, ?name: String) -> void
260
-
261
- def to_hash: -> { hex: String, name: String }
262
- end
263
-
264
- type resolution =
265
- { aspect_ratio: Float, height: Integer, width: Integer }
266
-
267
- class Resolution < BrandDev::Internal::Type::BaseModel
268
- attr_reader aspect_ratio: Float?
269
-
270
- def aspect_ratio=: (Float) -> Float
271
-
272
- attr_reader height: Integer?
273
-
274
- def height=: (Integer) -> Integer
275
-
276
- attr_reader width: Integer?
277
-
278
- def width=: (Integer) -> Integer
279
-
280
- def initialize: (
281
- ?aspect_ratio: Float,
282
- ?height: Integer,
283
- ?width: Integer
284
- ) -> void
285
-
286
- def to_hash: -> {
287
- aspect_ratio: Float,
288
- height: Integer,
289
- width: Integer
290
- }
291
- end
292
- end
293
-
294
- type color = { hex: String, name: String }
295
-
296
- class Color < BrandDev::Internal::Type::BaseModel
297
- attr_reader hex: String?
298
-
299
- def hex=: (String) -> String
300
-
301
- attr_reader name: String?
302
-
303
- def name=: (String) -> String
304
-
305
- def initialize: (?hex: String, ?name: String) -> void
306
-
307
- def to_hash: -> { hex: String, name: String }
308
- end
309
-
310
- type logo =
311
- {
312
- colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color],
313
- mode: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode,
314
- resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution,
315
- type: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_,
316
- url: String
317
- }
318
-
319
- class Logo < BrandDev::Internal::Type::BaseModel
320
- attr_reader colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color]?
321
-
322
- def colors=: (
323
- ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color]
324
- ) -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color]
325
-
326
- attr_reader mode: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode?
327
-
328
- def mode=: (
329
- BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode
330
- ) -> BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode
331
-
332
- attr_reader resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution?
333
-
334
- def resolution=: (
335
- BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution
336
- ) -> BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution
337
-
338
- attr_reader type: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_?
339
-
340
- def type=: (
341
- BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_
342
- ) -> BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_
343
-
344
- attr_reader url: String?
345
-
346
- def url=: (String) -> String
347
-
348
- def initialize: (
349
- ?colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color],
350
- ?mode: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode,
351
- ?resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution,
352
- ?type: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_,
353
- ?url: String
354
- ) -> void
355
-
356
- def to_hash: -> {
357
- colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color],
358
- mode: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode,
359
- resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution,
360
- type: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_,
361
- url: String
362
- }
363
-
364
- type color = { hex: String, name: String }
365
-
366
- class Color < BrandDev::Internal::Type::BaseModel
367
- attr_reader hex: String?
368
-
369
- def hex=: (String) -> String
370
-
371
- attr_reader name: String?
372
-
373
- def name=: (String) -> String
374
-
375
- def initialize: (?hex: String, ?name: String) -> void
376
-
377
- def to_hash: -> { hex: String, name: String }
378
- end
379
-
380
- type mode = :light | :dark | :has_opaque_background
381
-
382
- module Mode
383
- extend BrandDev::Internal::Type::Enum
384
-
385
- LIGHT: :light
386
- DARK: :dark
387
- HAS_OPAQUE_BACKGROUND: :has_opaque_background
388
-
389
- def self?.values: -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode]
390
- end
391
-
392
- type resolution =
393
- { aspect_ratio: Float, height: Integer, width: Integer }
394
-
395
- class Resolution < BrandDev::Internal::Type::BaseModel
396
- attr_reader aspect_ratio: Float?
397
-
398
- def aspect_ratio=: (Float) -> Float
399
-
400
- attr_reader height: Integer?
401
-
402
- def height=: (Integer) -> Integer
403
-
404
- attr_reader width: Integer?
405
-
406
- def width=: (Integer) -> Integer
407
-
408
- def initialize: (
409
- ?aspect_ratio: Float,
410
- ?height: Integer,
411
- ?width: Integer
412
- ) -> void
413
-
414
- def to_hash: -> {
415
- aspect_ratio: Float,
416
- height: Integer,
417
- width: Integer
418
- }
419
- end
420
-
421
- type type_ = :icon | :logo
422
-
423
- module Type
424
- extend BrandDev::Internal::Type::Enum
425
-
426
- ICON: :icon
427
- LOGO: :logo
428
-
429
- def self?.values: -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_]
430
- end
431
- end
432
-
433
- type social = { type: String, url: String }
434
-
435
- class Social < BrandDev::Internal::Type::BaseModel
436
- attr_reader type: String?
437
-
438
- def type=: (String) -> String
439
-
440
- attr_reader url: String?
441
-
442
- def url=: (String) -> String
443
-
444
- def initialize: (?type: String, ?url: String) -> void
445
-
446
- def to_hash: -> { type: String, url: String }
447
- end
448
-
449
- type stock = { exchange: String, ticker: String }
450
-
451
- class Stock < BrandDev::Internal::Type::BaseModel
452
- attr_reader exchange: String?
453
-
454
- def exchange=: (String) -> String
455
-
456
- attr_reader ticker: String?
457
-
458
- def ticker=: (String) -> String
459
-
460
- def initialize: (?exchange: String, ?ticker: String) -> void
461
-
462
- def to_hash: -> { exchange: String, ticker: String }
463
- end
464
- end
465
- end
466
- end
467
- end