Skip to content

Commit 2a8660e

Browse files
feat(api): api update
1 parent 3d3021f commit 2a8660e

File tree

7 files changed

+44
-4
lines changed

7 files changed

+44
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-3614380ba4315687bbaf6561e9872fd72dd876f9230ce690c35d7efc1250e808.yml
3-
openapi_spec_hash: f1aa17e08d0379766a61de68714c7c21
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-ffb96b6ba7020a8e2608ad727c330c6f353c037485dc1c1309aa86ea5549af15.yml
3+
openapi_spec_hash: 2b969dbfad500d6f8a8d1ccfcaae930c
44
config_hash: 4cd3173ea1cce7183640aae49cfbb374

lib/brand_dev/models/brand_identify_from_transaction_params.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel
3232
# @return [Symbol, BrandDev::Models::BrandIdentifyFromTransactionParams::ForceLanguage, nil]
3333
optional :force_language, enum: -> { BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage }
3434

35+
# @!attribute high_confidence_only
36+
# When set to true, the API will perform an additional verification steps to
37+
# ensure the identified brand matches the transaction with high confidence.
38+
# Defaults to false.
39+
#
40+
# @return [Boolean, nil]
41+
optional :high_confidence_only, BrandDev::Internal::Type::Boolean
42+
3543
# @!attribute max_speed
3644
# Optional parameter to optimize the API call for maximum speed. When set to true,
3745
# the API will skip time-consuming operations for faster response at the cost of
@@ -61,7 +69,7 @@ class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel
6169
# @return [Integer, nil]
6270
optional :timeout_ms, Integer
6371

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: {})
72+
# @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, high_confidence_only: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, request_options: {})
6573
# Some parameter documentations has been truncated, see
6674
# {BrandDev::Models::BrandIdentifyFromTransactionParams} for more details.
6775
#
@@ -73,6 +81,8 @@ class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel
7381
#
7482
# @param force_language [Symbol, BrandDev::Models::BrandIdentifyFromTransactionParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data.
7583
#
84+
# @param high_confidence_only [Boolean] When set to true, the API will perform an additional verification steps to ensur
85+
#
7686
# @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
7787
#
7888
# @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind

lib/brand_dev/resources/brand.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def fonts(params)
164164
# Endpoint specially designed for platforms that want to identify transaction data
165165
# by the transaction title.
166166
#
167-
# @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: {})
167+
# @overload identify_from_transaction(transaction_info:, city: nil, country_gl: nil, force_language: nil, high_confidence_only: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, request_options: {})
168168
#
169169
# @param transaction_info [String] Transaction information to identify the brand
170170
#
@@ -174,6 +174,8 @@ def fonts(params)
174174
#
175175
# @param force_language [Symbol, BrandDev::Models::BrandIdentifyFromTransactionParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data.
176176
#
177+
# @param high_confidence_only [Boolean] When set to true, the API will perform an additional verification steps to ensur
178+
#
177179
# @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
178180
#
179181
# @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind

rbi/brand_dev/models/brand_identify_from_transaction_params.rbi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ module BrandDev
6262
end
6363
attr_writer :force_language
6464

65+
# When set to true, the API will perform an additional verification steps to
66+
# ensure the identified brand matches the transaction with high confidence.
67+
# Defaults to false.
68+
sig { returns(T.nilable(T::Boolean)) }
69+
attr_reader :high_confidence_only
70+
71+
sig { params(high_confidence_only: T::Boolean).void }
72+
attr_writer :high_confidence_only
73+
6574
# Optional parameter to optimize the API call for maximum speed. When set to true,
6675
# the API will skip time-consuming operations for faster response at the cost of
6776
# less comprehensive data.
@@ -103,6 +112,7 @@ module BrandDev
103112
BrandDev::BrandIdentifyFromTransactionParams::CountryGl::OrSymbol,
104113
force_language:
105114
BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol,
115+
high_confidence_only: T::Boolean,
106116
max_speed: T::Boolean,
107117
mcc: String,
108118
phone: Float,
@@ -120,6 +130,10 @@ module BrandDev
120130
country_gl: nil,
121131
# Optional parameter to force the language of the retrieved brand data.
122132
force_language: nil,
133+
# When set to true, the API will perform an additional verification steps to
134+
# ensure the identified brand matches the transaction with high confidence.
135+
# Defaults to false.
136+
high_confidence_only: nil,
123137
# Optional parameter to optimize the API call for maximum speed. When set to true,
124138
# the API will skip time-consuming operations for faster response at the cost of
125139
# less comprehensive data.
@@ -146,6 +160,7 @@ module BrandDev
146160
BrandDev::BrandIdentifyFromTransactionParams::CountryGl::OrSymbol,
147161
force_language:
148162
BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol,
163+
high_confidence_only: T::Boolean,
149164
max_speed: T::Boolean,
150165
mcc: String,
151166
phone: Float,

rbi/brand_dev/resources/brand.rbi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ module BrandDev
140140
BrandDev::BrandIdentifyFromTransactionParams::CountryGl::OrSymbol,
141141
force_language:
142142
BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol,
143+
high_confidence_only: T::Boolean,
143144
max_speed: T::Boolean,
144145
mcc: String,
145146
phone: Float,
@@ -157,6 +158,10 @@ module BrandDev
157158
country_gl: nil,
158159
# Optional parameter to force the language of the retrieved brand data.
159160
force_language: nil,
161+
# When set to true, the API will perform an additional verification steps to
162+
# ensure the identified brand matches the transaction with high confidence.
163+
# Defaults to false.
164+
high_confidence_only: nil,
160165
# Optional parameter to optimize the API call for maximum speed. When set to true,
161166
# the API will skip time-consuming operations for faster response at the cost of
162167
# less comprehensive data.

sig/brand_dev/models/brand_identify_from_transaction_params.rbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module BrandDev
66
city: String,
77
country_gl: BrandDev::Models::BrandIdentifyFromTransactionParams::country_gl,
88
force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
9+
high_confidence_only: bool,
910
max_speed: bool,
1011
mcc: String,
1112
phone: Float,
@@ -35,6 +36,10 @@ module BrandDev
3536
BrandDev::Models::BrandIdentifyFromTransactionParams::force_language
3637
) -> BrandDev::Models::BrandIdentifyFromTransactionParams::force_language
3738

39+
attr_reader high_confidence_only: bool?
40+
41+
def high_confidence_only=: (bool) -> bool
42+
3843
attr_reader max_speed: bool?
3944

4045
def max_speed=: (bool) -> bool
@@ -56,6 +61,7 @@ module BrandDev
5661
?city: String,
5762
?country_gl: BrandDev::Models::BrandIdentifyFromTransactionParams::country_gl,
5863
?force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
64+
?high_confidence_only: bool,
5965
?max_speed: bool,
6066
?mcc: String,
6167
?phone: Float,
@@ -68,6 +74,7 @@ module BrandDev
6874
city: String,
6975
country_gl: BrandDev::Models::BrandIdentifyFromTransactionParams::country_gl,
7076
force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
77+
high_confidence_only: bool,
7178
max_speed: bool,
7279
mcc: String,
7380
phone: Float,

sig/brand_dev/resources/brand.rbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module BrandDev
4242
?city: String,
4343
?country_gl: BrandDev::Models::BrandIdentifyFromTransactionParams::country_gl,
4444
?force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
45+
?high_confidence_only: bool,
4546
?max_speed: bool,
4647
?mcc: String,
4748
?phone: Float,

0 commit comments

Comments
 (0)