brand.dev 0.16.0 → 0.18.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 +16 -0
- data/README.md +1 -1
- data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +9 -1
- data/lib/brand_dev/models/brand_retrieve_naics_params.rb +18 -1
- data/lib/brand_dev/models/brand_retrieve_naics_response.rb +29 -7
- data/lib/brand_dev/resources/brand.rb +13 -3
- data/lib/brand_dev/version.rb +1 -1
- data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +11 -0
- data/rbi/brand_dev/models/brand_retrieve_naics_params.rbi +24 -0
- data/rbi/brand_dev/models/brand_retrieve_naics_response.rbi +74 -14
- data/rbi/brand_dev/resources/brand.rbi +10 -0
- data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +7 -0
- data/sig/brand_dev/models/brand_retrieve_naics_params.rbs +18 -1
- data/sig/brand_dev/models/brand_retrieve_naics_response.rbs +30 -7
- data/sig/brand_dev/resources/brand.rbs +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d8d59aa62a298e531e77537f0438264b92262f8a1d6e2c85ed2f65855287586
|
|
4
|
+
data.tar.gz: 77fb50c2084d67c77d21b6eb6a7ec79499b840943516981aafa12448906399c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9553cf289302a4b1c860e1a8b1939d565a4bb0da41b0bf9730f36f7b4bcef11aed20ea7564bdc4dda11cc187c90d71158ae2f1360b333ad6e4a8faef5613e43b
|
|
7
|
+
data.tar.gz: 77871bfd059aef79e463543a0681319fff73aa3ef40bba9bef364fd09b9b0734ea09689c4ac391ef75099001832067ed22cc634ca478c4092ab5988e14f22396
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.0 (2025-12-14)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.17.0...v0.18.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.17.0...v0.18.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([25b73b8](https://github.com/brand-dot-dev/ruby-sdk/commit/25b73b89b739804f3dbb1d189fbde0351184dcaa))
|
|
10
|
+
|
|
11
|
+
## 0.17.0 (2025-12-11)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.16.0...v0.17.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.16.0...v0.17.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([b4c9da1](https://github.com/brand-dot-dev/ruby-sdk/commit/b4c9da15f5563e5e945d4bbc557fa2f5085c9aef))
|
|
18
|
+
|
|
3
19
|
## 0.16.0 (2025-12-01)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.15.0...v0.16.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.15.0...v0.16.0)
|
data/README.md
CHANGED
|
@@ -47,6 +47,12 @@ module BrandDev
|
|
|
47
47
|
# @return [String, nil]
|
|
48
48
|
optional :mcc, String
|
|
49
49
|
|
|
50
|
+
# @!attribute phone
|
|
51
|
+
# Optional phone number from the transaction to help verify brand match.
|
|
52
|
+
#
|
|
53
|
+
# @return [Float, nil]
|
|
54
|
+
optional :phone, Float
|
|
55
|
+
|
|
50
56
|
# @!attribute timeout_ms
|
|
51
57
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
52
58
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
@@ -55,7 +61,7 @@ module BrandDev
|
|
|
55
61
|
# @return [Integer, nil]
|
|
56
62
|
optional :timeout_ms, Integer
|
|
57
63
|
|
|
58
|
-
# @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, timeout_ms: nil, request_options: {})
|
|
64
|
+
# @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, request_options: {})
|
|
59
65
|
# Some parameter documentations has been truncated, see
|
|
60
66
|
# {BrandDev::Models::BrandIdentifyFromTransactionParams} for more details.
|
|
61
67
|
#
|
|
@@ -71,6 +77,8 @@ module BrandDev
|
|
|
71
77
|
#
|
|
72
78
|
# @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind
|
|
73
79
|
#
|
|
80
|
+
# @param phone [Float] Optional phone number from the transaction to help verify brand match.
|
|
81
|
+
#
|
|
74
82
|
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
75
83
|
#
|
|
76
84
|
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -15,6 +15,19 @@ module BrandDev
|
|
|
15
15
|
# @return [String]
|
|
16
16
|
required :input, String
|
|
17
17
|
|
|
18
|
+
# @!attribute max_results
|
|
19
|
+
# Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults
|
|
20
|
+
# to 5.
|
|
21
|
+
#
|
|
22
|
+
# @return [Integer, nil]
|
|
23
|
+
optional :max_results, Integer
|
|
24
|
+
|
|
25
|
+
# @!attribute min_results
|
|
26
|
+
# Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
27
|
+
#
|
|
28
|
+
# @return [Integer, nil]
|
|
29
|
+
optional :min_results, Integer
|
|
30
|
+
|
|
18
31
|
# @!attribute timeout_ms
|
|
19
32
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
20
33
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
@@ -23,12 +36,16 @@ module BrandDev
|
|
|
23
36
|
# @return [Integer, nil]
|
|
24
37
|
optional :timeout_ms, Integer
|
|
25
38
|
|
|
26
|
-
# @!method initialize(input:, timeout_ms: nil, request_options: {})
|
|
39
|
+
# @!method initialize(input:, max_results: nil, min_results: nil, timeout_ms: nil, request_options: {})
|
|
27
40
|
# Some parameter documentations has been truncated, see
|
|
28
41
|
# {BrandDev::Models::BrandRetrieveNaicsParams} for more details.
|
|
29
42
|
#
|
|
30
43
|
# @param input [String] Brand domain or title to retrieve NAICS code for. If a valid domain is provided
|
|
31
44
|
#
|
|
45
|
+
# @param max_results [Integer] Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults to 5
|
|
46
|
+
#
|
|
47
|
+
# @param min_results [Integer] Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
48
|
+
#
|
|
32
49
|
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
33
50
|
#
|
|
34
51
|
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -42,19 +42,41 @@ module BrandDev
|
|
|
42
42
|
# @!attribute code
|
|
43
43
|
# NAICS code
|
|
44
44
|
#
|
|
45
|
-
# @return [String
|
|
46
|
-
|
|
45
|
+
# @return [String]
|
|
46
|
+
required :code, String
|
|
47
47
|
|
|
48
|
-
# @!attribute
|
|
48
|
+
# @!attribute confidence
|
|
49
|
+
# Confidence level for how well this NAICS code matches the company description
|
|
50
|
+
#
|
|
51
|
+
# @return [Symbol, BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence]
|
|
52
|
+
required :confidence, enum: -> { BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence }
|
|
53
|
+
|
|
54
|
+
# @!attribute name
|
|
49
55
|
# NAICS title
|
|
50
56
|
#
|
|
51
|
-
# @return [String
|
|
52
|
-
|
|
57
|
+
# @return [String]
|
|
58
|
+
required :name, String
|
|
53
59
|
|
|
54
|
-
# @!method initialize(code
|
|
60
|
+
# @!method initialize(code:, confidence:, name:)
|
|
55
61
|
# @param code [String] NAICS code
|
|
56
62
|
#
|
|
57
|
-
# @param
|
|
63
|
+
# @param confidence [Symbol, BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence] Confidence level for how well this NAICS code matches the company description
|
|
64
|
+
#
|
|
65
|
+
# @param name [String] NAICS title
|
|
66
|
+
|
|
67
|
+
# Confidence level for how well this NAICS code matches the company description
|
|
68
|
+
#
|
|
69
|
+
# @see BrandDev::Models::BrandRetrieveNaicsResponse::Code#confidence
|
|
70
|
+
module Confidence
|
|
71
|
+
extend BrandDev::Internal::Type::Enum
|
|
72
|
+
|
|
73
|
+
HIGH = :high
|
|
74
|
+
MEDIUM = :medium
|
|
75
|
+
LOW = :low
|
|
76
|
+
|
|
77
|
+
# @!method self.values
|
|
78
|
+
# @return [Array<Symbol>]
|
|
79
|
+
end
|
|
58
80
|
end
|
|
59
81
|
end
|
|
60
82
|
end
|
|
@@ -102,7 +102,7 @@ module BrandDev
|
|
|
102
102
|
# Endpoint specially designed for platforms that want to identify transaction data
|
|
103
103
|
# by the transaction title.
|
|
104
104
|
#
|
|
105
|
-
# @overload identify_from_transaction(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, timeout_ms: nil, request_options: {})
|
|
105
|
+
# @overload identify_from_transaction(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, request_options: {})
|
|
106
106
|
#
|
|
107
107
|
# @param transaction_info [String] Transaction information to identify the brand
|
|
108
108
|
#
|
|
@@ -116,6 +116,8 @@ module BrandDev
|
|
|
116
116
|
#
|
|
117
117
|
# @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind
|
|
118
118
|
#
|
|
119
|
+
# @param phone [Float] Optional phone number from the transaction to help verify brand match.
|
|
120
|
+
#
|
|
119
121
|
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
120
122
|
#
|
|
121
123
|
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -302,10 +304,14 @@ module BrandDev
|
|
|
302
304
|
#
|
|
303
305
|
# Endpoint to classify any brand into a 2022 NAICS code.
|
|
304
306
|
#
|
|
305
|
-
# @overload retrieve_naics(input:, timeout_ms: nil, request_options: {})
|
|
307
|
+
# @overload retrieve_naics(input:, max_results: nil, min_results: nil, timeout_ms: nil, request_options: {})
|
|
306
308
|
#
|
|
307
309
|
# @param input [String] Brand domain or title to retrieve NAICS code for. If a valid domain is provided
|
|
308
310
|
#
|
|
311
|
+
# @param max_results [Integer] Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults to 5
|
|
312
|
+
#
|
|
313
|
+
# @param min_results [Integer] Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
314
|
+
#
|
|
309
315
|
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
310
316
|
#
|
|
311
317
|
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -318,7 +324,11 @@ module BrandDev
|
|
|
318
324
|
@client.request(
|
|
319
325
|
method: :get,
|
|
320
326
|
path: "brand/naics",
|
|
321
|
-
query: parsed.transform_keys(
|
|
327
|
+
query: parsed.transform_keys(
|
|
328
|
+
max_results: "maxResults",
|
|
329
|
+
min_results: "minResults",
|
|
330
|
+
timeout_ms: "timeoutMS"
|
|
331
|
+
),
|
|
322
332
|
model: BrandDev::Models::BrandRetrieveNaicsResponse,
|
|
323
333
|
options: options
|
|
324
334
|
)
|
data/lib/brand_dev/version.rb
CHANGED
|
@@ -79,6 +79,13 @@ module BrandDev
|
|
|
79
79
|
sig { params(mcc: String).void }
|
|
80
80
|
attr_writer :mcc
|
|
81
81
|
|
|
82
|
+
# Optional phone number from the transaction to help verify brand match.
|
|
83
|
+
sig { returns(T.nilable(Float)) }
|
|
84
|
+
attr_reader :phone
|
|
85
|
+
|
|
86
|
+
sig { params(phone: Float).void }
|
|
87
|
+
attr_writer :phone
|
|
88
|
+
|
|
82
89
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
83
90
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
84
91
|
# value is 300000ms (5 minutes).
|
|
@@ -98,6 +105,7 @@ module BrandDev
|
|
|
98
105
|
BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol,
|
|
99
106
|
max_speed: T::Boolean,
|
|
100
107
|
mcc: String,
|
|
108
|
+
phone: Float,
|
|
101
109
|
timeout_ms: Integer,
|
|
102
110
|
request_options: BrandDev::RequestOptions::OrHash
|
|
103
111
|
).returns(T.attached_class)
|
|
@@ -119,6 +127,8 @@ module BrandDev
|
|
|
119
127
|
# Optional Merchant Category Code (MCC) to help identify the business
|
|
120
128
|
# category/industry.
|
|
121
129
|
mcc: nil,
|
|
130
|
+
# Optional phone number from the transaction to help verify brand match.
|
|
131
|
+
phone: nil,
|
|
122
132
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
123
133
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
124
134
|
# value is 300000ms (5 minutes).
|
|
@@ -138,6 +148,7 @@ module BrandDev
|
|
|
138
148
|
BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol,
|
|
139
149
|
max_speed: T::Boolean,
|
|
140
150
|
mcc: String,
|
|
151
|
+
phone: Float,
|
|
141
152
|
timeout_ms: Integer,
|
|
142
153
|
request_options: BrandDev::RequestOptions
|
|
143
154
|
}
|
|
@@ -17,6 +17,21 @@ module BrandDev
|
|
|
17
17
|
sig { returns(String) }
|
|
18
18
|
attr_accessor :input
|
|
19
19
|
|
|
20
|
+
# Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults
|
|
21
|
+
# to 5.
|
|
22
|
+
sig { returns(T.nilable(Integer)) }
|
|
23
|
+
attr_reader :max_results
|
|
24
|
+
|
|
25
|
+
sig { params(max_results: Integer).void }
|
|
26
|
+
attr_writer :max_results
|
|
27
|
+
|
|
28
|
+
# Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
29
|
+
sig { returns(T.nilable(Integer)) }
|
|
30
|
+
attr_reader :min_results
|
|
31
|
+
|
|
32
|
+
sig { params(min_results: Integer).void }
|
|
33
|
+
attr_writer :min_results
|
|
34
|
+
|
|
20
35
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
21
36
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
22
37
|
# value is 300000ms (5 minutes).
|
|
@@ -29,6 +44,8 @@ module BrandDev
|
|
|
29
44
|
sig do
|
|
30
45
|
params(
|
|
31
46
|
input: String,
|
|
47
|
+
max_results: Integer,
|
|
48
|
+
min_results: Integer,
|
|
32
49
|
timeout_ms: Integer,
|
|
33
50
|
request_options: BrandDev::RequestOptions::OrHash
|
|
34
51
|
).returns(T.attached_class)
|
|
@@ -38,6 +55,11 @@ module BrandDev
|
|
|
38
55
|
# in `input`, it will be used for classification, otherwise, we will search for
|
|
39
56
|
# the brand using the provided title.
|
|
40
57
|
input:,
|
|
58
|
+
# Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults
|
|
59
|
+
# to 5.
|
|
60
|
+
max_results: nil,
|
|
61
|
+
# Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
62
|
+
min_results: nil,
|
|
41
63
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
42
64
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
43
65
|
# value is 300000ms (5 minutes).
|
|
@@ -50,6 +72,8 @@ module BrandDev
|
|
|
50
72
|
override.returns(
|
|
51
73
|
{
|
|
52
74
|
input: String,
|
|
75
|
+
max_results: Integer,
|
|
76
|
+
min_results: Integer,
|
|
53
77
|
timeout_ms: Integer,
|
|
54
78
|
request_options: BrandDev::RequestOptions
|
|
55
79
|
}
|
|
@@ -96,31 +96,91 @@ module BrandDev
|
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# NAICS code
|
|
99
|
-
sig { returns(
|
|
100
|
-
|
|
99
|
+
sig { returns(String) }
|
|
100
|
+
attr_accessor :code
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
# Confidence level for how well this NAICS code matches the company description
|
|
103
|
+
sig do
|
|
104
|
+
returns(
|
|
105
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
attr_accessor :confidence
|
|
104
109
|
|
|
105
110
|
# NAICS title
|
|
106
|
-
sig { returns(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
sig
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
sig { returns(String) }
|
|
112
|
+
attr_accessor :name
|
|
113
|
+
|
|
114
|
+
sig do
|
|
115
|
+
params(
|
|
116
|
+
code: String,
|
|
117
|
+
confidence:
|
|
118
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::OrSymbol,
|
|
119
|
+
name: String
|
|
120
|
+
).returns(T.attached_class)
|
|
121
|
+
end
|
|
113
122
|
def self.new(
|
|
114
123
|
# NAICS code
|
|
115
|
-
code
|
|
124
|
+
code:,
|
|
125
|
+
# Confidence level for how well this NAICS code matches the company description
|
|
126
|
+
confidence:,
|
|
116
127
|
# NAICS title
|
|
117
|
-
|
|
128
|
+
name:
|
|
118
129
|
)
|
|
119
130
|
end
|
|
120
131
|
|
|
121
|
-
sig
|
|
132
|
+
sig do
|
|
133
|
+
override.returns(
|
|
134
|
+
{
|
|
135
|
+
code: String,
|
|
136
|
+
confidence:
|
|
137
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol,
|
|
138
|
+
name: String
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
end
|
|
122
142
|
def to_hash
|
|
123
143
|
end
|
|
144
|
+
|
|
145
|
+
# Confidence level for how well this NAICS code matches the company description
|
|
146
|
+
module Confidence
|
|
147
|
+
extend BrandDev::Internal::Type::Enum
|
|
148
|
+
|
|
149
|
+
TaggedSymbol =
|
|
150
|
+
T.type_alias do
|
|
151
|
+
T.all(
|
|
152
|
+
Symbol,
|
|
153
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence
|
|
154
|
+
)
|
|
155
|
+
end
|
|
156
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
157
|
+
|
|
158
|
+
HIGH =
|
|
159
|
+
T.let(
|
|
160
|
+
:high,
|
|
161
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol
|
|
162
|
+
)
|
|
163
|
+
MEDIUM =
|
|
164
|
+
T.let(
|
|
165
|
+
:medium,
|
|
166
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol
|
|
167
|
+
)
|
|
168
|
+
LOW =
|
|
169
|
+
T.let(
|
|
170
|
+
:low,
|
|
171
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
sig do
|
|
175
|
+
override.returns(
|
|
176
|
+
T::Array[
|
|
177
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol
|
|
178
|
+
]
|
|
179
|
+
)
|
|
180
|
+
end
|
|
181
|
+
def self.values
|
|
182
|
+
end
|
|
183
|
+
end
|
|
124
184
|
end
|
|
125
185
|
end
|
|
126
186
|
end
|
|
@@ -95,6 +95,7 @@ module BrandDev
|
|
|
95
95
|
BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol,
|
|
96
96
|
max_speed: T::Boolean,
|
|
97
97
|
mcc: String,
|
|
98
|
+
phone: Float,
|
|
98
99
|
timeout_ms: Integer,
|
|
99
100
|
request_options: BrandDev::RequestOptions::OrHash
|
|
100
101
|
).returns(BrandDev::Models::BrandIdentifyFromTransactionResponse)
|
|
@@ -116,6 +117,8 @@ module BrandDev
|
|
|
116
117
|
# Optional Merchant Category Code (MCC) to help identify the business
|
|
117
118
|
# category/industry.
|
|
118
119
|
mcc: nil,
|
|
120
|
+
# Optional phone number from the transaction to help verify brand match.
|
|
121
|
+
phone: nil,
|
|
119
122
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
120
123
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
121
124
|
# value is 300000ms (5 minutes).
|
|
@@ -279,6 +282,8 @@ module BrandDev
|
|
|
279
282
|
sig do
|
|
280
283
|
params(
|
|
281
284
|
input: String,
|
|
285
|
+
max_results: Integer,
|
|
286
|
+
min_results: Integer,
|
|
282
287
|
timeout_ms: Integer,
|
|
283
288
|
request_options: BrandDev::RequestOptions::OrHash
|
|
284
289
|
).returns(BrandDev::Models::BrandRetrieveNaicsResponse)
|
|
@@ -288,6 +293,11 @@ module BrandDev
|
|
|
288
293
|
# in `input`, it will be used for classification, otherwise, we will search for
|
|
289
294
|
# the brand using the provided title.
|
|
290
295
|
input:,
|
|
296
|
+
# Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults
|
|
297
|
+
# to 5.
|
|
298
|
+
max_results: nil,
|
|
299
|
+
# Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
300
|
+
min_results: nil,
|
|
291
301
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
292
302
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
293
303
|
# value is 300000ms (5 minutes).
|
|
@@ -8,6 +8,7 @@ module BrandDev
|
|
|
8
8
|
force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
|
|
9
9
|
max_speed: bool,
|
|
10
10
|
mcc: String,
|
|
11
|
+
phone: Float,
|
|
11
12
|
timeout_ms: Integer
|
|
12
13
|
}
|
|
13
14
|
& BrandDev::Internal::Type::request_parameters
|
|
@@ -42,6 +43,10 @@ module BrandDev
|
|
|
42
43
|
|
|
43
44
|
def mcc=: (String) -> String
|
|
44
45
|
|
|
46
|
+
attr_reader phone: Float?
|
|
47
|
+
|
|
48
|
+
def phone=: (Float) -> Float
|
|
49
|
+
|
|
45
50
|
attr_reader timeout_ms: Integer?
|
|
46
51
|
|
|
47
52
|
def timeout_ms=: (Integer) -> Integer
|
|
@@ -53,6 +58,7 @@ module BrandDev
|
|
|
53
58
|
?force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
|
|
54
59
|
?max_speed: bool,
|
|
55
60
|
?mcc: String,
|
|
61
|
+
?phone: Float,
|
|
56
62
|
?timeout_ms: Integer,
|
|
57
63
|
?request_options: BrandDev::request_opts
|
|
58
64
|
) -> void
|
|
@@ -64,6 +70,7 @@ module BrandDev
|
|
|
64
70
|
force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
|
|
65
71
|
max_speed: bool,
|
|
66
72
|
mcc: String,
|
|
73
|
+
phone: Float,
|
|
67
74
|
timeout_ms: Integer,
|
|
68
75
|
request_options: BrandDev::RequestOptions
|
|
69
76
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module BrandDev
|
|
2
2
|
module Models
|
|
3
3
|
type brand_retrieve_naics_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
input: String,
|
|
6
|
+
max_results: Integer,
|
|
7
|
+
min_results: Integer,
|
|
8
|
+
timeout_ms: Integer
|
|
9
|
+
}
|
|
5
10
|
& BrandDev::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class BrandRetrieveNaicsParams < BrandDev::Internal::Type::BaseModel
|
|
@@ -10,18 +15,30 @@ module BrandDev
|
|
|
10
15
|
|
|
11
16
|
attr_accessor input: String
|
|
12
17
|
|
|
18
|
+
attr_reader max_results: Integer?
|
|
19
|
+
|
|
20
|
+
def max_results=: (Integer) -> Integer
|
|
21
|
+
|
|
22
|
+
attr_reader min_results: Integer?
|
|
23
|
+
|
|
24
|
+
def min_results=: (Integer) -> Integer
|
|
25
|
+
|
|
13
26
|
attr_reader timeout_ms: Integer?
|
|
14
27
|
|
|
15
28
|
def timeout_ms=: (Integer) -> Integer
|
|
16
29
|
|
|
17
30
|
def initialize: (
|
|
18
31
|
input: String,
|
|
32
|
+
?max_results: Integer,
|
|
33
|
+
?min_results: Integer,
|
|
19
34
|
?timeout_ms: Integer,
|
|
20
35
|
?request_options: BrandDev::request_opts
|
|
21
36
|
) -> void
|
|
22
37
|
|
|
23
38
|
def to_hash: -> {
|
|
24
39
|
input: String,
|
|
40
|
+
max_results: Integer,
|
|
41
|
+
min_results: Integer,
|
|
25
42
|
timeout_ms: Integer,
|
|
26
43
|
request_options: BrandDev::RequestOptions
|
|
27
44
|
}
|
|
@@ -41,20 +41,43 @@ module BrandDev
|
|
|
41
41
|
type: String
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
type code =
|
|
44
|
+
type code =
|
|
45
|
+
{
|
|
46
|
+
code: String,
|
|
47
|
+
confidence: BrandDev::Models::BrandRetrieveNaicsResponse::Code::confidence,
|
|
48
|
+
name: String
|
|
49
|
+
}
|
|
45
50
|
|
|
46
51
|
class Code < BrandDev::Internal::Type::BaseModel
|
|
47
|
-
|
|
52
|
+
attr_accessor code: String
|
|
48
53
|
|
|
49
|
-
|
|
54
|
+
attr_accessor confidence: BrandDev::Models::BrandRetrieveNaicsResponse::Code::confidence
|
|
50
55
|
|
|
51
|
-
|
|
56
|
+
attr_accessor name: String
|
|
52
57
|
|
|
53
|
-
def
|
|
58
|
+
def initialize: (
|
|
59
|
+
code: String,
|
|
60
|
+
confidence: BrandDev::Models::BrandRetrieveNaicsResponse::Code::confidence,
|
|
61
|
+
name: String
|
|
62
|
+
) -> void
|
|
54
63
|
|
|
55
|
-
def
|
|
64
|
+
def to_hash: -> {
|
|
65
|
+
code: String,
|
|
66
|
+
confidence: BrandDev::Models::BrandRetrieveNaicsResponse::Code::confidence,
|
|
67
|
+
name: String
|
|
68
|
+
}
|
|
56
69
|
|
|
57
|
-
|
|
70
|
+
type confidence = :high | :medium | :low
|
|
71
|
+
|
|
72
|
+
module Confidence
|
|
73
|
+
extend BrandDev::Internal::Type::Enum
|
|
74
|
+
|
|
75
|
+
HIGH: :high
|
|
76
|
+
MEDIUM: :medium
|
|
77
|
+
LOW: :low
|
|
78
|
+
|
|
79
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandRetrieveNaicsResponse::Code::confidence]
|
|
80
|
+
end
|
|
58
81
|
end
|
|
59
82
|
end
|
|
60
83
|
end
|
|
@@ -30,6 +30,7 @@ module BrandDev
|
|
|
30
30
|
?force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
|
|
31
31
|
?max_speed: bool,
|
|
32
32
|
?mcc: String,
|
|
33
|
+
?phone: Float,
|
|
33
34
|
?timeout_ms: Integer,
|
|
34
35
|
?request_options: BrandDev::request_opts
|
|
35
36
|
) -> BrandDev::Models::BrandIdentifyFromTransactionResponse
|
|
@@ -75,6 +76,8 @@ module BrandDev
|
|
|
75
76
|
|
|
76
77
|
def retrieve_naics: (
|
|
77
78
|
input: String,
|
|
79
|
+
?max_results: Integer,
|
|
80
|
+
?min_results: Integer,
|
|
78
81
|
?timeout_ms: Integer,
|
|
79
82
|
?request_options: BrandDev::request_opts
|
|
80
83
|
) -> BrandDev::Models::BrandRetrieveNaicsResponse
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: brand.dev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.18.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brand Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|