brand.dev 0.8.0 → 0.10.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 (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +1 -1
  4. data/lib/brand_dev/internal/transport/pooled_net_requester.rb +30 -24
  5. data/lib/brand_dev/internal/util.rb +5 -5
  6. data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +80 -1
  7. data/lib/brand_dev/models/brand_retrieve_by_name_params.rb +115 -0
  8. data/lib/brand_dev/models/brand_retrieve_by_name_response.rb +850 -0
  9. data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +204 -0
  10. data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +850 -0
  11. data/lib/brand_dev/models/brand_retrieve_params.rb +1 -112
  12. data/lib/brand_dev/models.rb +4 -0
  13. data/lib/brand_dev/resources/brand.rb +75 -11
  14. data/lib/brand_dev/version.rb +1 -1
  15. data/lib/brand_dev.rb +4 -0
  16. data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +324 -0
  17. data/rbi/brand_dev/models/brand_retrieve_by_name_params.rbi +384 -0
  18. data/rbi/brand_dev/models/brand_retrieve_by_name_response.rbi +2588 -0
  19. data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +790 -0
  20. data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +2590 -0
  21. data/rbi/brand_dev/models/brand_retrieve_params.rbi +0 -437
  22. data/rbi/brand_dev/models.rbi +4 -0
  23. data/rbi/brand_dev/resources/brand.rbi +75 -17
  24. data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +133 -1
  25. data/sig/brand_dev/models/brand_retrieve_by_name_params.rbs +162 -0
  26. data/sig/brand_dev/models/brand_retrieve_by_name_response.rbs +1076 -0
  27. data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +324 -0
  28. data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +1076 -0
  29. data/sig/brand_dev/models/brand_retrieve_params.rbs +0 -176
  30. data/sig/brand_dev/models.rbs +4 -0
  31. data/sig/brand_dev/resources/brand.rbs +19 -3
  32. metadata +14 -2
@@ -0,0 +1,204 @@
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', 'GOOGL', 'BRK.A').
12
+ # Must be 1-15 characters, letters/numbers/dots only.
13
+ #
14
+ # @return [String]
15
+ required :ticker, String
16
+
17
+ # @!attribute force_language
18
+ # Optional parameter to force the language of the retrieved brand data.
19
+ #
20
+ # @return [Symbol, BrandDev::Models::BrandRetrieveByTickerParams::ForceLanguage, nil]
21
+ optional :force_language, enum: -> { BrandDev::BrandRetrieveByTickerParams::ForceLanguage }
22
+
23
+ # @!attribute max_speed
24
+ # Optional parameter to optimize the API call for maximum speed. When set to true,
25
+ # the API will skip time-consuming operations for faster response at the cost of
26
+ # less comprehensive data.
27
+ #
28
+ # @return [Boolean, nil]
29
+ optional :max_speed, BrandDev::Internal::Type::Boolean
30
+
31
+ # @!attribute ticker_exchange
32
+ # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified.
33
+ #
34
+ # @return [Symbol, BrandDev::Models::BrandRetrieveByTickerParams::TickerExchange, nil]
35
+ optional :ticker_exchange, enum: -> { BrandDev::BrandRetrieveByTickerParams::TickerExchange }
36
+
37
+ # @!attribute timeout_ms
38
+ # Optional timeout in milliseconds for the request. If the request takes longer
39
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
40
+ # value is 300000ms (5 minutes).
41
+ #
42
+ # @return [Integer, nil]
43
+ optional :timeout_ms, Integer
44
+
45
+ # @!method initialize(ticker:, force_language: nil, max_speed: nil, ticker_exchange: nil, timeout_ms: nil, request_options: {})
46
+ # Some parameter documentations has been truncated, see
47
+ # {BrandDev::Models::BrandRetrieveByTickerParams} for more details.
48
+ #
49
+ # @param ticker [String] Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
50
+ #
51
+ # @param force_language [Symbol, BrandDev::Models::BrandRetrieveByTickerParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data.
52
+ #
53
+ # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
54
+ #
55
+ # @param ticker_exchange [Symbol, BrandDev::Models::BrandRetrieveByTickerParams::TickerExchange] Optional stock exchange for the ticker. Defaults to NASDAQ if not specified.
56
+ #
57
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
58
+ #
59
+ # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
60
+
61
+ # Optional parameter to force the language of the retrieved brand data.
62
+ module ForceLanguage
63
+ extend BrandDev::Internal::Type::Enum
64
+
65
+ ALBANIAN = :albanian
66
+ ARABIC = :arabic
67
+ AZERI = :azeri
68
+ BENGALI = :bengali
69
+ BULGARIAN = :bulgarian
70
+ CEBUANO = :cebuano
71
+ CROATIAN = :croatian
72
+ CZECH = :czech
73
+ DANISH = :danish
74
+ DUTCH = :dutch
75
+ ENGLISH = :english
76
+ ESTONIAN = :estonian
77
+ FARSI = :farsi
78
+ FINNISH = :finnish
79
+ FRENCH = :french
80
+ GERMAN = :german
81
+ HAUSA = :hausa
82
+ HAWAIIAN = :hawaiian
83
+ HINDI = :hindi
84
+ HUNGARIAN = :hungarian
85
+ ICELANDIC = :icelandic
86
+ INDONESIAN = :indonesian
87
+ ITALIAN = :italian
88
+ KAZAKH = :kazakh
89
+ KYRGYZ = :kyrgyz
90
+ LATIN = :latin
91
+ LATVIAN = :latvian
92
+ LITHUANIAN = :lithuanian
93
+ MACEDONIAN = :macedonian
94
+ MONGOLIAN = :mongolian
95
+ NEPALI = :nepali
96
+ NORWEGIAN = :norwegian
97
+ PASHTO = :pashto
98
+ PIDGIN = :pidgin
99
+ POLISH = :polish
100
+ PORTUGUESE = :portuguese
101
+ ROMANIAN = :romanian
102
+ RUSSIAN = :russian
103
+ SERBIAN = :serbian
104
+ SLOVAK = :slovak
105
+ SLOVENE = :slovene
106
+ SOMALI = :somali
107
+ SPANISH = :spanish
108
+ SWAHILI = :swahili
109
+ SWEDISH = :swedish
110
+ TAGALOG = :tagalog
111
+ TURKISH = :turkish
112
+ UKRAINIAN = :ukrainian
113
+ URDU = :urdu
114
+ UZBEK = :uzbek
115
+ VIETNAMESE = :vietnamese
116
+ WELSH = :welsh
117
+
118
+ # @!method self.values
119
+ # @return [Array<Symbol>]
120
+ end
121
+
122
+ # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified.
123
+ module TickerExchange
124
+ extend BrandDev::Internal::Type::Enum
125
+
126
+ AMEX = :AMEX
127
+ AMS = :AMS
128
+ AQS = :AQS
129
+ ASX = :ASX
130
+ ATH = :ATH
131
+ BER = :BER
132
+ BME = :BME
133
+ BRU = :BRU
134
+ BSE = :BSE
135
+ BUD = :BUD
136
+ BUE = :BUE
137
+ BVC = :BVC
138
+ CBOE = :CBOE
139
+ CNQ = :CNQ
140
+ CPH = :CPH
141
+ DFM = :DFM
142
+ DOH = :DOH
143
+ DUB = :DUB
144
+ DUS = :DUS
145
+ DXE = :DXE
146
+ EGX = :EGX
147
+ FSX = :FSX
148
+ HAM = :HAM
149
+ HEL = :HEL
150
+ HKSE = :HKSE
151
+ HOSE = :HOSE
152
+ ICE = :ICE
153
+ IOB = :IOB
154
+ IST = :IST
155
+ JKT = :JKT
156
+ JNB = :JNB
157
+ JPX = :JPX
158
+ KLS = :KLS
159
+ KOE = :KOE
160
+ KSC = :KSC
161
+ KUW = :KUW
162
+ LIS = :LIS
163
+ LSE = :LSE
164
+ MCX = :MCX
165
+ MEX = :MEX
166
+ MIL = :MIL
167
+ MUN = :MUN
168
+ NASDAQ = :NASDAQ
169
+ NEO = :NEO
170
+ NSE = :NSE
171
+ NYSE = :NYSE
172
+ NZE = :NZE
173
+ OSL = :OSL
174
+ OTC = :OTC
175
+ PAR = :PAR
176
+ PNK = :PNK
177
+ PRA = :PRA
178
+ RIS = :RIS
179
+ SAO = :SAO
180
+ SAU = :SAU
181
+ SES = :SES
182
+ SET = :SET
183
+ SGO = :SGO
184
+ SHH = :SHH
185
+ SHZ = :SHZ
186
+ SIX = :SIX
187
+ STO = :STO
188
+ STU = :STU
189
+ TAI = :TAI
190
+ TAL = :TAL
191
+ TLV = :TLV
192
+ TSX = :TSX
193
+ TSXV = :TSXV
194
+ TWO = :TWO
195
+ VIE = :VIE
196
+ WSE = :WSE
197
+ XETRA = :XETRA
198
+
199
+ # @!method self.values
200
+ # @return [Array<Symbol>]
201
+ end
202
+ end
203
+ end
204
+ end