Skip to content

Commit babec29

Browse files
feat(api): add override_company_name parameter to payment create method
1 parent 44d59f8 commit babec29

3 files changed

Lines changed: 10 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: 189
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-17c04dd1b0508b380c21e3acc3d4cd1e86b590f81d14fa26d1973b236f660e38.yml
3-
openapi_spec_hash: f8ddee07358d2c938450a6889fbf7940
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-7349acbc90f2ba5668e44039a8e16c678944a2e83281f78e54812ba45904f49a.yml
3+
openapi_spec_hash: d749723cb9a5dca308c467a01cfdc3e9
44
config_hash: edbdfefeb0d3d927c2f9fe3402793215

src/lithic/types/payment_create_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ class MethodAttributes(TypedDict, total=False):
4343

4444
addenda: Optional[str]
4545

46+
override_company_name: Optional[str]
47+
"""Value to override the configured company name with.
48+
49+
Can only be used if allowed to override
50+
"""
51+
4652

4753
class Hold(TypedDict, total=False):
4854
"""Optional hold to settle when this payment is initiated."""

tests/api_resources/test_payments.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def test_method_create_with_all_params(self, client: Lithic) -> None:
5050
"sec_code": "CCD",
5151
"ach_hold_period": 0,
5252
"addenda": "addenda",
53+
"override_company_name": "override_company_name",
5354
},
5455
type="COLLECTION",
5556
token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
@@ -473,6 +474,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncLithic) ->
473474
"sec_code": "CCD",
474475
"ach_hold_period": 0,
475476
"addenda": "addenda",
477+
"override_company_name": "override_company_name",
476478
},
477479
type="COLLECTION",
478480
token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",

0 commit comments

Comments
 (0)