Skip to content

Commit

Permalink
refactor: remove unnecessary builtin import (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Jan 22, 2024
1 parent 79e0db0 commit ddc8ffc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/modern_treasury/types/event.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# File generated from our OpenAPI spec by Stainless.

import builtins
from typing import Dict
from datetime import datetime

Expand All @@ -14,7 +13,7 @@ class Event(BaseModel):

created_at: datetime

data: Dict[str, builtins.object]
data: Dict[str, object]
"""The body of the event."""

entity_id: str
Expand Down
3 changes: 1 addition & 2 deletions src/modern_treasury/types/incoming_payment_detail.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# File generated from our OpenAPI spec by Stainless.

import builtins
from typing import Dict, Optional
from datetime import date, datetime
from typing_extensions import Literal
Expand Down Expand Up @@ -29,7 +28,7 @@ class IncomingPaymentDetail(BaseModel):
currency: Optional[Currency] = None
"""The currency of the incoming payment detail."""

data: Dict[str, builtins.object]
data: Dict[str, object]
"""The raw data from the payment pre-notification file that we get from the bank."""

direction: TransactionDirection
Expand Down
3 changes: 1 addition & 2 deletions src/modern_treasury/types/ledgerable_event.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# File generated from our OpenAPI spec by Stainless.

import builtins
from typing import Dict, Optional
from datetime import datetime

Expand All @@ -14,7 +13,7 @@ class LedgerableEvent(BaseModel):

created_at: datetime

custom_data: Optional[builtins.object] = None
custom_data: Optional[object] = None
"""Additionally data to be used by the Ledger Event Handler."""

description: Optional[str] = None
Expand Down
5 changes: 2 additions & 3 deletions src/modern_treasury/types/payment_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

import builtins
from typing import Dict, List, Union, Optional
from datetime import date, datetime
from typing_extensions import Literal
Expand Down Expand Up @@ -161,7 +160,7 @@ class PaymentOrder(BaseModel):
which correspond respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
"""

compliance_rule_metadata: Optional[Dict[str, builtins.object]] = None
compliance_rule_metadata: Optional[Dict[str, object]] = None
"""Custom key-value pair for usage in compliance rules.
Please contact support before making changes to this field.
Expand All @@ -178,7 +177,7 @@ class PaymentOrder(BaseModel):
currency: Optional[Currency] = None
"""Defaults to the currency of the originating account."""

current_return: Optional[ReturnObject] = None
current_return: Optional["ReturnObject"] = None
"""
If the payment order's status is `returned`, this will include the return
object's data.
Expand Down

0 comments on commit ddc8ffc

Please sign in to comment.