Skip to content

Commit 99080ad

Browse files
feat(api): api update
1 parent b7ecf85 commit 99080ad

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

.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

src/brand/dev/resources/brand.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ def identify_from_transaction(
762762
"welsh",
763763
]
764764
| Omit = omit,
765+
high_confidence_only: bool | Omit = omit,
765766
max_speed: bool | Omit = omit,
766767
mcc: str | Omit = omit,
767768
phone: float | Omit = omit,
@@ -787,6 +788,10 @@ def identify_from_transaction(
787788
788789
force_language: Optional parameter to force the language of the retrieved brand data.
789790
791+
high_confidence_only: When set to true, the API will perform an additional verification steps to
792+
ensure the identified brand matches the transaction with high confidence.
793+
Defaults to false.
794+
790795
max_speed: Optional parameter to optimize the API call for maximum speed. When set to true,
791796
the API will skip time-consuming operations for faster response at the cost of
792797
less comprehensive data.
@@ -821,6 +826,7 @@ def identify_from_transaction(
821826
"city": city,
822827
"country_gl": country_gl,
823828
"force_language": force_language,
829+
"high_confidence_only": high_confidence_only,
824830
"max_speed": max_speed,
825831
"mcc": mcc,
826832
"phone": phone,
@@ -2583,6 +2589,7 @@ async def identify_from_transaction(
25832589
"welsh",
25842590
]
25852591
| Omit = omit,
2592+
high_confidence_only: bool | Omit = omit,
25862593
max_speed: bool | Omit = omit,
25872594
mcc: str | Omit = omit,
25882595
phone: float | Omit = omit,
@@ -2608,6 +2615,10 @@ async def identify_from_transaction(
26082615
26092616
force_language: Optional parameter to force the language of the retrieved brand data.
26102617
2618+
high_confidence_only: When set to true, the API will perform an additional verification steps to
2619+
ensure the identified brand matches the transaction with high confidence.
2620+
Defaults to false.
2621+
26112622
max_speed: Optional parameter to optimize the API call for maximum speed. When set to true,
26122623
the API will skip time-consuming operations for faster response at the cost of
26132624
less comprehensive data.
@@ -2642,6 +2653,7 @@ async def identify_from_transaction(
26422653
"city": city,
26432654
"country_gl": country_gl,
26442655
"force_language": force_language,
2656+
"high_confidence_only": high_confidence_only,
26452657
"max_speed": max_speed,
26462658
"mcc": mcc,
26472659
"phone": phone,

src/brand/dev/types/brand_identify_from_transaction_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,13 @@ class BrandIdentifyFromTransactionParams(TypedDict, total=False):
318318
]
319319
"""Optional parameter to force the language of the retrieved brand data."""
320320

321+
high_confidence_only: bool
322+
"""
323+
When set to true, the API will perform an additional verification steps to
324+
ensure the identified brand matches the transaction with high confidence.
325+
Defaults to false.
326+
"""
327+
321328
max_speed: Annotated[bool, PropertyInfo(alias="maxSpeed")]
322329
"""Optional parameter to optimize the API call for maximum speed.
323330

tests/api_resources/test_brand.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ def test_method_identify_from_transaction_with_all_params(self, client: BrandDev
364364
city="city",
365365
country_gl="ad",
366366
force_language="albanian",
367+
high_confidence_only=True,
367368
max_speed=True,
368369
mcc="mcc",
369370
phone=0,
@@ -1314,6 +1315,7 @@ async def test_method_identify_from_transaction_with_all_params(self, async_clie
13141315
city="city",
13151316
country_gl="ad",
13161317
force_language="albanian",
1318+
high_confidence_only=True,
13171319
max_speed=True,
13181320
mcc="mcc",
13191321
phone=0,

0 commit comments

Comments
 (0)