From 8a639475a164fc40434ebee3501c738d76f9a94c Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Wed, 8 Nov 2023 14:17:54 +0000 Subject: [PATCH] fix(api): correct type for other fees details --- src/lithic/types/payment.py | 4 ++++ src/lithic/types/payment_create_params.py | 4 ++++ src/lithic/types/settlement_detail.py | 8 ++++---- tests/api_resources/test_payments.py | 4 ++++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/lithic/types/payment.py b/src/lithic/types/payment.py index c12eebd2..67bb7f15 100644 --- a/src/lithic/types/payment.py +++ b/src/lithic/types/payment.py @@ -12,6 +12,10 @@ class PaymentMethodAttributes(BaseModel): sec_code: Literal["PPD", "CCD", "WEB"] + company_id: Optional[str] = None + + receipt_routing_number: Optional[str] = None + retries: Optional[int] = None return_reason_code: Optional[str] = None diff --git a/src/lithic/types/payment_create_params.py b/src/lithic/types/payment_create_params.py index 5f3877cc..d6568c8b 100644 --- a/src/lithic/types/payment_create_params.py +++ b/src/lithic/types/payment_create_params.py @@ -30,6 +30,10 @@ class PaymentCreateParams(TypedDict, total=False): class MethodAttributes(TypedDict, total=False): sec_code: Required[Literal["PPD", "CCD", "WEB"]] + company_id: str + + receipt_routing_number: str + retries: int return_reason_code: str diff --git a/src/lithic/types/settlement_detail.py b/src/lithic/types/settlement_detail.py index 4c3e5b8e..7e7864cd 100644 --- a/src/lithic/types/settlement_detail.py +++ b/src/lithic/types/settlement_detail.py @@ -4,15 +4,15 @@ from datetime import datetime from typing_extensions import Literal +from pydantic import Field as FieldInfo + from .._models import BaseModel __all__ = ["SettlementDetail", "OtherFeesDetails"] class OtherFeesDetails(BaseModel): - title: Optional[object] = None - - type: Optional[object] = None + isa: Optional[int] = FieldInfo(alias="ISA", default=None) class SettlementDetail(BaseModel): @@ -46,7 +46,7 @@ class SettlementDetail(BaseModel): disputes_gross_amount: int """The total gross amount of disputes settlements.""" - event_tokens: List[object] + event_tokens: List[str] """ Globally unique identifiers denoting the Events associated with this settlement. """ diff --git a/tests/api_resources/test_payments.py b/tests/api_resources/test_payments.py index 40a07784..75504a9e 100644 --- a/tests/api_resources/test_payments.py +++ b/tests/api_resources/test_payments.py @@ -50,6 +50,8 @@ def test_method_create_with_all_params(self, client: Lithic) -> None: "retries": 0, "return_reason_code": "string", "sec_code": "PPD", + "company_id": "string", + "receipt_routing_number": "string", }, type="PAYMENT", token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", @@ -197,6 +199,8 @@ async def test_method_create_with_all_params(self, client: AsyncLithic) -> None: "retries": 0, "return_reason_code": "string", "sec_code": "PPD", + "company_id": "string", + "receipt_routing_number": "string", }, type="PAYMENT", token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",