@@ -24,6 +24,7 @@ private constructor(
2424 private val city: String? ,
2525 private val countryGl: CountryGl ? ,
2626 private val forceLanguage: ForceLanguage ? ,
27+ private val highConfidenceOnly: Boolean? ,
2728 private val maxSpeed: Boolean? ,
2829 private val mcc: String? ,
2930 private val phone: Double? ,
@@ -47,6 +48,12 @@ private constructor(
4748 /* * Optional parameter to force the language of the retrieved brand data. */
4849 fun forceLanguage (): Optional <ForceLanguage > = Optional .ofNullable(forceLanguage)
4950
51+ /* *
52+ * When set to true, the API will perform an additional verification steps to ensure the
53+ * identified brand matches the transaction with high confidence. Defaults to false.
54+ */
55+ fun highConfidenceOnly (): Optional <Boolean > = Optional .ofNullable(highConfidenceOnly)
56+
5057 /* *
5158 * Optional parameter to optimize the API call for maximum speed. When set to true, the API will
5259 * skip time-consuming operations for faster response at the cost of less comprehensive data.
@@ -95,6 +102,7 @@ private constructor(
95102 private var city: String? = null
96103 private var countryGl: CountryGl ? = null
97104 private var forceLanguage: ForceLanguage ? = null
105+ private var highConfidenceOnly: Boolean? = null
98106 private var maxSpeed: Boolean? = null
99107 private var mcc: String? = null
100108 private var phone: Double? = null
@@ -109,6 +117,7 @@ private constructor(
109117 city = brandIdentifyFromTransactionParams.city
110118 countryGl = brandIdentifyFromTransactionParams.countryGl
111119 forceLanguage = brandIdentifyFromTransactionParams.forceLanguage
120+ highConfidenceOnly = brandIdentifyFromTransactionParams.highConfidenceOnly
112121 maxSpeed = brandIdentifyFromTransactionParams.maxSpeed
113122 mcc = brandIdentifyFromTransactionParams.mcc
114123 phone = brandIdentifyFromTransactionParams.phone
@@ -147,6 +156,28 @@ private constructor(
147156 fun forceLanguage (forceLanguage : Optional <ForceLanguage >) =
148157 forceLanguage(forceLanguage.getOrNull())
149158
159+ /* *
160+ * When set to true, the API will perform an additional verification steps to ensure the
161+ * identified brand matches the transaction with high confidence. Defaults to false.
162+ */
163+ fun highConfidenceOnly (highConfidenceOnly : Boolean? ) = apply {
164+ this .highConfidenceOnly = highConfidenceOnly
165+ }
166+
167+ /* *
168+ * Alias for [Builder.highConfidenceOnly].
169+ *
170+ * This unboxed primitive overload exists for backwards compatibility.
171+ */
172+ fun highConfidenceOnly (highConfidenceOnly : Boolean ) =
173+ highConfidenceOnly(highConfidenceOnly as Boolean? )
174+
175+ /* *
176+ * Alias for calling [Builder.highConfidenceOnly] with `highConfidenceOnly.orElse(null)`.
177+ */
178+ fun highConfidenceOnly (highConfidenceOnly : Optional <Boolean >) =
179+ highConfidenceOnly(highConfidenceOnly.getOrNull())
180+
150181 /* *
151182 * Optional parameter to optimize the API call for maximum speed. When set to true, the API
152183 * will skip time-consuming operations for faster response at the cost of less comprehensive
@@ -318,6 +349,7 @@ private constructor(
318349 city,
319350 countryGl,
320351 forceLanguage,
352+ highConfidenceOnly,
321353 maxSpeed,
322354 mcc,
323355 phone,
@@ -336,6 +368,7 @@ private constructor(
336368 city?.let { put(" city" , it) }
337369 countryGl?.let { put(" country_gl" , it.toString()) }
338370 forceLanguage?.let { put(" force_language" , it.toString()) }
371+ highConfidenceOnly?.let { put(" high_confidence_only" , it.toString()) }
339372 maxSpeed?.let { put(" maxSpeed" , it.toString()) }
340373 mcc?.let { put(" mcc" , it) }
341374 phone?.let { put(" phone" , it.toString()) }
@@ -2341,6 +2374,7 @@ private constructor(
23412374 city == other.city &&
23422375 countryGl == other.countryGl &&
23432376 forceLanguage == other.forceLanguage &&
2377+ highConfidenceOnly == other.highConfidenceOnly &&
23442378 maxSpeed == other.maxSpeed &&
23452379 mcc == other.mcc &&
23462380 phone == other.phone &&
@@ -2355,6 +2389,7 @@ private constructor(
23552389 city,
23562390 countryGl,
23572391 forceLanguage,
2392+ highConfidenceOnly,
23582393 maxSpeed,
23592394 mcc,
23602395 phone,
@@ -2364,5 +2399,5 @@ private constructor(
23642399 )
23652400
23662401 override fun toString () =
2367- " BrandIdentifyFromTransactionParams{transactionInfo=$transactionInfo , city=$city , countryGl=$countryGl , forceLanguage=$forceLanguage , maxSpeed=$maxSpeed , mcc=$mcc , phone=$phone , timeoutMs=$timeoutMs , additionalHeaders=$additionalHeaders , additionalQueryParams=$additionalQueryParams }"
2402+ " BrandIdentifyFromTransactionParams{transactionInfo=$transactionInfo , city=$city , countryGl=$countryGl , forceLanguage=$forceLanguage , highConfidenceOnly= $highConfidenceOnly , maxSpeed=$maxSpeed , mcc=$mcc , phone=$phone , timeoutMs=$timeoutMs , additionalHeaders=$additionalHeaders , additionalQueryParams=$additionalQueryParams }"
23682403}
0 commit comments