brand.dev 0.11.1 → 0.13.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 +21 -0
- data/README.md +1 -1
- data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +276 -1
- data/lib/brand_dev/models/brand_retrieve_by_isin_params.rb +116 -0
- data/lib/brand_dev/models/brand_retrieve_by_isin_response.rb +850 -0
- data/lib/brand_dev/models.rb +2 -0
- data/lib/brand_dev/resources/brand.rb +40 -1
- data/lib/brand_dev/version.rb +1 -1
- data/lib/brand_dev.rb +3 -0
- data/manifest.yaml +1 -0
- data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +1271 -0
- data/rbi/brand_dev/models/brand_retrieve_by_isin_params.rbi +386 -0
- data/rbi/brand_dev/models/brand_retrieve_by_isin_response.rbi +2588 -0
- data/rbi/brand_dev/models.rbi +2 -0
- data/rbi/brand_dev/resources/brand.rbi +44 -0
- data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +510 -0
- data/sig/brand_dev/models/brand_retrieve_by_isin_params.rbs +162 -0
- data/sig/brand_dev/models/brand_retrieve_by_isin_response.rbs +1076 -0
- data/sig/brand_dev/models.rbs +2 -0
- data/sig/brand_dev/resources/brand.rbs +11 -0
- metadata +8 -2
data/lib/brand_dev/models.rb
CHANGED
|
@@ -47,6 +47,8 @@ module BrandDev
|
|
|
47
47
|
|
|
48
48
|
BrandRetrieveByEmailParams = BrandDev::Models::BrandRetrieveByEmailParams
|
|
49
49
|
|
|
50
|
+
BrandRetrieveByIsinParams = BrandDev::Models::BrandRetrieveByIsinParams
|
|
51
|
+
|
|
50
52
|
BrandRetrieveByNameParams = BrandDev::Models::BrandRetrieveByNameParams
|
|
51
53
|
|
|
52
54
|
BrandRetrieveByTickerParams = BrandDev::Models::BrandRetrieveByTickerParams
|
|
@@ -74,14 +74,20 @@ module BrandDev
|
|
|
74
74
|
# Endpoint specially designed for platforms that want to identify transaction data
|
|
75
75
|
# by the transaction title.
|
|
76
76
|
#
|
|
77
|
-
# @overload identify_from_transaction(transaction_info:, force_language: nil, max_speed: nil, timeout_ms: nil, request_options: {})
|
|
77
|
+
# @overload identify_from_transaction(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, timeout_ms: nil, request_options: {})
|
|
78
78
|
#
|
|
79
79
|
# @param transaction_info [String] Transaction information to identify the brand
|
|
80
80
|
#
|
|
81
|
+
# @param city [String] Optional city name to prioritize when searching for the brand.
|
|
82
|
+
#
|
|
83
|
+
# @param country_gl [Symbol, BrandDev::Models::BrandIdentifyFromTransactionParams::CountryGl] Optional country code (GL parameter) to specify the country for Google search re
|
|
84
|
+
#
|
|
81
85
|
# @param force_language [Symbol, BrandDev::Models::BrandIdentifyFromTransactionParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data.
|
|
82
86
|
#
|
|
83
87
|
# @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
|
|
84
88
|
#
|
|
89
|
+
# @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind
|
|
90
|
+
#
|
|
85
91
|
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
86
92
|
#
|
|
87
93
|
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -164,6 +170,39 @@ module BrandDev
|
|
|
164
170
|
)
|
|
165
171
|
end
|
|
166
172
|
|
|
173
|
+
# Some parameter documentations has been truncated, see
|
|
174
|
+
# {BrandDev::Models::BrandRetrieveByIsinParams} for more details.
|
|
175
|
+
#
|
|
176
|
+
# Retrieve brand information using an ISIN (International Securities
|
|
177
|
+
# Identification Number). This endpoint looks up the company associated with the
|
|
178
|
+
# ISIN and returns its brand data.
|
|
179
|
+
#
|
|
180
|
+
# @overload retrieve_by_isin(isin:, force_language: nil, max_speed: nil, timeout_ms: nil, request_options: {})
|
|
181
|
+
#
|
|
182
|
+
# @param isin [String] ISIN (International Securities Identification Number) to retrieve brand data for
|
|
183
|
+
#
|
|
184
|
+
# @param force_language [Symbol, BrandDev::Models::BrandRetrieveByIsinParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data.
|
|
185
|
+
#
|
|
186
|
+
# @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
|
|
187
|
+
#
|
|
188
|
+
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
189
|
+
#
|
|
190
|
+
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
191
|
+
#
|
|
192
|
+
# @return [BrandDev::Models::BrandRetrieveByIsinResponse]
|
|
193
|
+
#
|
|
194
|
+
# @see BrandDev::Models::BrandRetrieveByIsinParams
|
|
195
|
+
def retrieve_by_isin(params)
|
|
196
|
+
parsed, options = BrandDev::BrandRetrieveByIsinParams.dump_request(params)
|
|
197
|
+
@client.request(
|
|
198
|
+
method: :get,
|
|
199
|
+
path: "brand/retrieve-by-isin",
|
|
200
|
+
query: parsed.transform_keys(max_speed: "maxSpeed", timeout_ms: "timeoutMS"),
|
|
201
|
+
model: BrandDev::Models::BrandRetrieveByIsinResponse,
|
|
202
|
+
options: options
|
|
203
|
+
)
|
|
204
|
+
end
|
|
205
|
+
|
|
167
206
|
# Some parameter documentations has been truncated, see
|
|
168
207
|
# {BrandDev::Models::BrandRetrieveByNameParams} for more details.
|
|
169
208
|
#
|
data/lib/brand_dev/version.rb
CHANGED
data/lib/brand_dev.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
# Standard libraries.
|
|
4
4
|
# rubocop:disable Lint/RedundantRequireStatement
|
|
5
5
|
require "English"
|
|
6
|
+
require "base64"
|
|
6
7
|
require "cgi"
|
|
7
8
|
require "date"
|
|
8
9
|
require "erb"
|
|
@@ -59,6 +60,8 @@ require_relative "brand_dev/models/brand_prefetch_params"
|
|
|
59
60
|
require_relative "brand_dev/models/brand_prefetch_response"
|
|
60
61
|
require_relative "brand_dev/models/brand_retrieve_by_email_params"
|
|
61
62
|
require_relative "brand_dev/models/brand_retrieve_by_email_response"
|
|
63
|
+
require_relative "brand_dev/models/brand_retrieve_by_isin_params"
|
|
64
|
+
require_relative "brand_dev/models/brand_retrieve_by_isin_response"
|
|
62
65
|
require_relative "brand_dev/models/brand_retrieve_by_name_params"
|
|
63
66
|
require_relative "brand_dev/models/brand_retrieve_by_name_response"
|
|
64
67
|
require_relative "brand_dev/models/brand_retrieve_by_ticker_params"
|