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
@@ -11,11 +11,16 @@ module BrandDev
|
|
11
11
|
T.any(BrandDev::BrandRetrieveParams, BrandDev::Internal::AnyHash)
|
12
12
|
end
|
13
13
|
|
14
|
-
# Domain name to retrieve brand data for
|
15
|
-
|
16
|
-
|
14
|
+
# Domain name to retrieve brand data for (e.g., 'example.com', 'google.com').
|
15
|
+
# Cannot be used with name or ticker parameters.
|
16
|
+
sig { returns(T.nilable(String)) }
|
17
|
+
attr_reader :domain
|
17
18
|
|
18
|
-
|
19
|
+
sig { params(domain: String).void }
|
20
|
+
attr_writer :domain
|
21
|
+
|
22
|
+
# Optional parameter to force the language of the retrieved brand data. Works with
|
23
|
+
# all three lookup methods.
|
19
24
|
sig do
|
20
25
|
returns(
|
21
26
|
T.nilable(BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol)
|
@@ -32,13 +37,31 @@ module BrandDev
|
|
32
37
|
|
33
38
|
# Optional parameter to optimize the API call for maximum speed. When set to true,
|
34
39
|
# the API will skip time-consuming operations for faster response at the cost of
|
35
|
-
# less comprehensive data.
|
40
|
+
# less comprehensive data. Works with all three lookup methods.
|
36
41
|
sig { returns(T.nilable(T::Boolean)) }
|
37
42
|
attr_reader :max_speed
|
38
43
|
|
39
44
|
sig { params(max_speed: T::Boolean).void }
|
40
45
|
attr_writer :max_speed
|
41
46
|
|
47
|
+
# Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft
|
48
|
+
# Corporation'). Must be 3-30 characters. Cannot be used with domain or ticker
|
49
|
+
# parameters.
|
50
|
+
sig { returns(T.nilable(String)) }
|
51
|
+
attr_reader :name
|
52
|
+
|
53
|
+
sig { params(name: String).void }
|
54
|
+
attr_writer :name
|
55
|
+
|
56
|
+
# Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
|
57
|
+
# Must be 1-6 characters, letters/numbers/dots only. Cannot be used with domain or
|
58
|
+
# name parameters.
|
59
|
+
sig { returns(T.nilable(String)) }
|
60
|
+
attr_reader :ticker
|
61
|
+
|
62
|
+
sig { params(ticker: String).void }
|
63
|
+
attr_writer :ticker
|
64
|
+
|
42
65
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
43
66
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
44
67
|
# value is 300000ms (5 minutes).
|
@@ -54,19 +77,31 @@ module BrandDev
|
|
54
77
|
force_language:
|
55
78
|
BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
|
56
79
|
max_speed: T::Boolean,
|
80
|
+
name: String,
|
81
|
+
ticker: String,
|
57
82
|
timeout_ms: Integer,
|
58
83
|
request_options: BrandDev::RequestOptions::OrHash
|
59
84
|
).returns(T.attached_class)
|
60
85
|
end
|
61
86
|
def self.new(
|
62
|
-
# Domain name to retrieve brand data for
|
63
|
-
|
64
|
-
|
87
|
+
# Domain name to retrieve brand data for (e.g., 'example.com', 'google.com').
|
88
|
+
# Cannot be used with name or ticker parameters.
|
89
|
+
domain: nil,
|
90
|
+
# Optional parameter to force the language of the retrieved brand data. Works with
|
91
|
+
# all three lookup methods.
|
65
92
|
force_language: nil,
|
66
93
|
# Optional parameter to optimize the API call for maximum speed. When set to true,
|
67
94
|
# the API will skip time-consuming operations for faster response at the cost of
|
68
|
-
# less comprehensive data.
|
95
|
+
# less comprehensive data. Works with all three lookup methods.
|
69
96
|
max_speed: nil,
|
97
|
+
# Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft
|
98
|
+
# Corporation'). Must be 3-30 characters. Cannot be used with domain or ticker
|
99
|
+
# parameters.
|
100
|
+
name: nil,
|
101
|
+
# Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
|
102
|
+
# Must be 1-6 characters, letters/numbers/dots only. Cannot be used with domain or
|
103
|
+
# name parameters.
|
104
|
+
ticker: nil,
|
70
105
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
71
106
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
72
107
|
# value is 300000ms (5 minutes).
|
@@ -82,6 +117,8 @@ module BrandDev
|
|
82
117
|
force_language:
|
83
118
|
BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
|
84
119
|
max_speed: T::Boolean,
|
120
|
+
name: String,
|
121
|
+
ticker: String,
|
85
122
|
timeout_ms: Integer,
|
86
123
|
request_options: BrandDev::RequestOptions
|
87
124
|
}
|
@@ -90,7 +127,8 @@ module BrandDev
|
|
90
127
|
def to_hash
|
91
128
|
end
|
92
129
|
|
93
|
-
# Optional parameter to force the language of the retrieved brand data
|
130
|
+
# Optional parameter to force the language of the retrieved brand data. Works with
|
131
|
+
# all three lookup methods.
|
94
132
|
module ForceLanguage
|
95
133
|
extend BrandDev::Internal::Type::Enum
|
96
134
|
|