Skip to content

Commit 3584d59

Browse files
feat(api): api update
1 parent d511865 commit 3584d59

4 files changed

Lines changed: 15 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: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-e685328e362a28f152bcadfd1ca49680a80bfb7a3834fd422f2e459507305405.yml
3-
openapi_spec_hash: 475543f86e39715f76588de6ccf70beb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-143086f8200f34e6ace805070e2a3ddccf15e30ed7ac3a7193f6a984f2413fa2.yml
3+
openapi_spec_hash: f15bf2b836aee764c02a4fc185f13586
44
config_hash: 6aaf0fe6f8877c9c5d9af95597123cb4

src/brand/dev/resources/brand.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ def identify_from_transaction(
595595
| Omit = omit,
596596
max_speed: bool | Omit = omit,
597597
mcc: str | Omit = omit,
598+
phone: float | Omit = omit,
598599
timeout_ms: int | Omit = omit,
599600
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
600601
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -624,6 +625,8 @@ def identify_from_transaction(
624625
mcc: Optional Merchant Category Code (MCC) to help identify the business
625626
category/industry.
626627
628+
phone: Optional phone number from the transaction to help verify brand match.
629+
627630
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
628631
than this value, it will be aborted with a 408 status code. Maximum allowed
629632
value is 300000ms (5 minutes).
@@ -651,6 +654,7 @@ def identify_from_transaction(
651654
"force_language": force_language,
652655
"max_speed": max_speed,
653656
"mcc": mcc,
657+
"phone": phone,
654658
"timeout_ms": timeout_ms,
655659
},
656660
brand_identify_from_transaction_params.BrandIdentifyFromTransactionParams,
@@ -2018,6 +2022,7 @@ async def identify_from_transaction(
20182022
| Omit = omit,
20192023
max_speed: bool | Omit = omit,
20202024
mcc: str | Omit = omit,
2025+
phone: float | Omit = omit,
20212026
timeout_ms: int | Omit = omit,
20222027
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
20232028
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2047,6 +2052,8 @@ async def identify_from_transaction(
20472052
mcc: Optional Merchant Category Code (MCC) to help identify the business
20482053
category/industry.
20492054
2055+
phone: Optional phone number from the transaction to help verify brand match.
2056+
20502057
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
20512058
than this value, it will be aborted with a 408 status code. Maximum allowed
20522059
value is 300000ms (5 minutes).
@@ -2074,6 +2081,7 @@ async def identify_from_transaction(
20742081
"force_language": force_language,
20752082
"max_speed": max_speed,
20762083
"mcc": mcc,
2084+
"phone": phone,
20772085
"timeout_ms": timeout_ms,
20782086
},
20792087
brand_identify_from_transaction_params.BrandIdentifyFromTransactionParams,

src/brand/dev/types/brand_identify_from_transaction_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ class BrandIdentifyFromTransactionParams(TypedDict, total=False):
331331
category/industry.
332332
"""
333333

334+
phone: float
335+
"""Optional phone number from the transaction to help verify brand match."""
336+
334337
timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")]
335338
"""Optional timeout in milliseconds for the request.
336339

tests/api_resources/test_brand.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ def test_method_identify_from_transaction_with_all_params(self, client: BrandDev
222222
force_language="albanian",
223223
max_speed=True,
224224
mcc="mcc",
225+
phone=0,
225226
timeout_ms=1,
226227
)
227228
assert_matches_type(BrandIdentifyFromTransactionResponse, brand, path=["response"])
@@ -848,6 +849,7 @@ async def test_method_identify_from_transaction_with_all_params(self, async_clie
848849
force_language="albanian",
849850
max_speed=True,
850851
mcc="mcc",
852+
phone=0,
851853
timeout_ms=1,
852854
)
853855
assert_matches_type(BrandIdentifyFromTransactionResponse, brand, path=["response"])

0 commit comments

Comments
 (0)