From 7f0aba8e493cd2bae08dae8e5380e67c9eb9693b Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Fri, 1 Sep 2023 12:01:35 -0400 Subject: [PATCH] chore(internal): minor formatting changes (#193) --- .../resources/expected_payments.py | 16 ++++++------- .../resources/external_accounts.py | 4 ++-- .../resources/incoming_payment_details.py | 4 ++-- .../internal_accounts/internal_accounts.py | 4 ++-- .../resources/invoices/invoices.py | 8 +++---- .../payment_orders/payment_orders.py | 24 +++++++++---------- .../types/expected_payment_create_params.py | 4 ++-- .../types/expected_payment_update_params.py | 4 ++-- .../types/external_account_verify_params.py | 3 ++- ...ming_payment_detail_create_async_params.py | 2 +- .../types/internal_account_list_params.py | 2 +- .../types/invoice_create_params.py | 2 +- .../types/invoice_update_params.py | 2 +- src/modern_treasury/types/ledgerable_event.py | 3 ++- .../payment_order_create_async_params.py | 4 ++-- .../types/payment_order_create_params.py | 4 ++-- .../types/payment_order_update_params.py | 4 ++-- 17 files changed, 48 insertions(+), 46 deletions(-) diff --git a/src/modern_treasury/resources/expected_payments.py b/src/modern_treasury/resources/expected_payments.py index 0b94da0a..29171926 100644 --- a/src/modern_treasury/resources/expected_payments.py +++ b/src/modern_treasury/resources/expected_payments.py @@ -32,7 +32,7 @@ def create( direction: Literal["credit", "debit"], internal_account_id: str, counterparty_id: Optional[str] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, date_lower_bound: Union[str, date, None] | NotGiven = NOT_GIVEN, date_upper_bound: Union[str, date, None] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, @@ -42,7 +42,7 @@ def create( reconciliation_groups: Optional[object] | NotGiven = NOT_GIVEN, remittance_information: Optional[str] | NotGiven = NOT_GIVEN, statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN, - type: ExpectedPaymentType | NotGiven = NOT_GIVEN, + type: Optional[ExpectedPaymentType] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -176,7 +176,7 @@ def update( amount_lower_bound: int | NotGiven = NOT_GIVEN, amount_upper_bound: int | NotGiven = NOT_GIVEN, counterparty_id: Optional[str] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, date_lower_bound: Union[str, date, None] | NotGiven = NOT_GIVEN, date_upper_bound: Union[str, date, None] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, @@ -187,7 +187,7 @@ def update( reconciliation_groups: Optional[object] | NotGiven = NOT_GIVEN, remittance_information: Optional[str] | NotGiven = NOT_GIVEN, statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN, - type: ExpectedPaymentType | NotGiven = NOT_GIVEN, + type: Optional[ExpectedPaymentType] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -427,7 +427,7 @@ async def create( direction: Literal["credit", "debit"], internal_account_id: str, counterparty_id: Optional[str] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, date_lower_bound: Union[str, date, None] | NotGiven = NOT_GIVEN, date_upper_bound: Union[str, date, None] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, @@ -437,7 +437,7 @@ async def create( reconciliation_groups: Optional[object] | NotGiven = NOT_GIVEN, remittance_information: Optional[str] | NotGiven = NOT_GIVEN, statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN, - type: ExpectedPaymentType | NotGiven = NOT_GIVEN, + type: Optional[ExpectedPaymentType] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -571,7 +571,7 @@ async def update( amount_lower_bound: int | NotGiven = NOT_GIVEN, amount_upper_bound: int | NotGiven = NOT_GIVEN, counterparty_id: Optional[str] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, date_lower_bound: Union[str, date, None] | NotGiven = NOT_GIVEN, date_upper_bound: Union[str, date, None] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, @@ -582,7 +582,7 @@ async def update( reconciliation_groups: Optional[object] | NotGiven = NOT_GIVEN, remittance_information: Optional[str] | NotGiven = NOT_GIVEN, statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN, - type: ExpectedPaymentType | NotGiven = NOT_GIVEN, + type: Optional[ExpectedPaymentType] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/modern_treasury/resources/external_accounts.py b/src/modern_treasury/resources/external_accounts.py index f1c90373..d4f8f2e2 100644 --- a/src/modern_treasury/resources/external_accounts.py +++ b/src/modern_treasury/resources/external_accounts.py @@ -377,7 +377,7 @@ def verify( "signet", "wire", ], - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -781,7 +781,7 @@ async def verify( "signet", "wire", ], - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/modern_treasury/resources/incoming_payment_details.py b/src/modern_treasury/resources/incoming_payment_details.py index 13aa0c5c..27f06965 100644 --- a/src/modern_treasury/resources/incoming_payment_details.py +++ b/src/modern_treasury/resources/incoming_payment_details.py @@ -183,7 +183,7 @@ def create_async( *, amount: int | NotGiven = NOT_GIVEN, as_of_date: Union[str, date, None] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, direction: Literal["credit", "debit"] | NotGiven = NOT_GIVEN, internal_account_id: str | NotGiven = NOT_GIVEN, @@ -415,7 +415,7 @@ async def create_async( *, amount: int | NotGiven = NOT_GIVEN, as_of_date: Union[str, date, None] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, direction: Literal["credit", "debit"] | NotGiven = NOT_GIVEN, internal_account_id: str | NotGiven = NOT_GIVEN, diff --git a/src/modern_treasury/resources/internal_accounts/internal_accounts.py b/src/modern_treasury/resources/internal_accounts/internal_accounts.py index c0a344b2..15316512 100644 --- a/src/modern_treasury/resources/internal_accounts/internal_accounts.py +++ b/src/modern_treasury/resources/internal_accounts/internal_accounts.py @@ -204,7 +204,7 @@ def list( *, after_cursor: Optional[str] | NotGiven = NOT_GIVEN, counterparty_id: str | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, metadata: Dict[str, str] | NotGiven = NOT_GIVEN, payment_direction: Literal["credit", "debit"] | NotGiven = NOT_GIVEN, payment_type: Literal[ @@ -463,7 +463,7 @@ def list( *, after_cursor: Optional[str] | NotGiven = NOT_GIVEN, counterparty_id: str | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, metadata: Dict[str, str] | NotGiven = NOT_GIVEN, payment_direction: Literal["credit", "debit"] | NotGiven = NOT_GIVEN, payment_type: Literal[ diff --git a/src/modern_treasury/resources/invoices/invoices.py b/src/modern_treasury/resources/invoices/invoices.py index 4549646b..0094e304 100644 --- a/src/modern_treasury/resources/invoices/invoices.py +++ b/src/modern_treasury/resources/invoices/invoices.py @@ -43,7 +43,7 @@ def create( counterparty_billing_address: Optional[invoice_create_params.CounterpartyBillingAddress] | NotGiven = NOT_GIVEN, counterparty_shipping_address: Optional[invoice_create_params.CounterpartyShippingAddress] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: str | NotGiven = NOT_GIVEN, invoicer_address: Optional[invoice_create_params.InvoicerAddress] | NotGiven = NOT_GIVEN, notification_email_addresses: Optional[List[str]] | NotGiven = NOT_GIVEN, @@ -206,7 +206,7 @@ def update( counterparty_id: str | NotGiven = NOT_GIVEN, counterparty_shipping_address: Optional[invoice_update_params.CounterpartyShippingAddress] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: str | NotGiven = NOT_GIVEN, due_date: Union[str, datetime] | NotGiven = NOT_GIVEN, invoicer_address: Optional[invoice_update_params.InvoicerAddress] | NotGiven = NOT_GIVEN, @@ -398,7 +398,7 @@ async def create( counterparty_billing_address: Optional[invoice_create_params.CounterpartyBillingAddress] | NotGiven = NOT_GIVEN, counterparty_shipping_address: Optional[invoice_create_params.CounterpartyShippingAddress] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: str | NotGiven = NOT_GIVEN, invoicer_address: Optional[invoice_create_params.InvoicerAddress] | NotGiven = NOT_GIVEN, notification_email_addresses: Optional[List[str]] | NotGiven = NOT_GIVEN, @@ -561,7 +561,7 @@ async def update( counterparty_id: str | NotGiven = NOT_GIVEN, counterparty_shipping_address: Optional[invoice_update_params.CounterpartyShippingAddress] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: str | NotGiven = NOT_GIVEN, due_date: Union[str, datetime] | NotGiven = NOT_GIVEN, invoicer_address: Optional[invoice_update_params.InvoicerAddress] | NotGiven = NOT_GIVEN, diff --git a/src/modern_treasury/resources/payment_orders/payment_orders.py b/src/modern_treasury/resources/payment_orders/payment_orders.py index 49298c01..18175ee5 100644 --- a/src/modern_treasury/resources/payment_orders/payment_orders.py +++ b/src/modern_treasury/resources/payment_orders/payment_orders.py @@ -48,7 +48,7 @@ def create( accounting_category_id: Optional[str] | NotGiven = NOT_GIVEN, accounting_ledger_class_id: Optional[str] | NotGiven = NOT_GIVEN, charge_bearer: Optional[Literal["shared", "sender", "receiver"]] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, documents: List[payment_order_create_params.Document] | NotGiven = NOT_GIVEN, effective_date: Union[str, date] | NotGiven = NOT_GIVEN, @@ -68,7 +68,7 @@ def create( remittance_information: Optional[str] | NotGiven = NOT_GIVEN, send_remittance_advice: Optional[bool] | NotGiven = NOT_GIVEN, statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN, - subtype: PaymentOrderSubtype | NotGiven = NOT_GIVEN, + subtype: Optional[PaymentOrderSubtype] | NotGiven = NOT_GIVEN, transaction_monitoring_enabled: bool | NotGiven = NOT_GIVEN, ultimate_originating_party_identifier: Optional[str] | NotGiven = NOT_GIVEN, ultimate_originating_party_name: Optional[str] | NotGiven = NOT_GIVEN, @@ -308,7 +308,7 @@ def update( amount: int | NotGiven = NOT_GIVEN, charge_bearer: Optional[Literal["shared", "sender", "receiver"]] | NotGiven = NOT_GIVEN, counterparty_id: Optional[str] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, direction: Literal["credit", "debit"] | NotGiven = NOT_GIVEN, effective_date: Union[str, date] | NotGiven = NOT_GIVEN, @@ -342,7 +342,7 @@ def update( "sent", ] | NotGiven = NOT_GIVEN, - subtype: PaymentOrderSubtype | NotGiven = NOT_GIVEN, + subtype: Optional[PaymentOrderSubtype] | NotGiven = NOT_GIVEN, type: PaymentOrderType | NotGiven = NOT_GIVEN, ultimate_originating_party_identifier: Optional[str] | NotGiven = NOT_GIVEN, ultimate_originating_party_name: Optional[str] | NotGiven = NOT_GIVEN, @@ -659,7 +659,7 @@ def create_async( accounting_category_id: Optional[str] | NotGiven = NOT_GIVEN, accounting_ledger_class_id: Optional[str] | NotGiven = NOT_GIVEN, charge_bearer: Optional[Literal["shared", "sender", "receiver"]] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, effective_date: Union[str, date] | NotGiven = NOT_GIVEN, expires_at: Union[str, datetime, None] | NotGiven = NOT_GIVEN, @@ -678,7 +678,7 @@ def create_async( remittance_information: Optional[str] | NotGiven = NOT_GIVEN, send_remittance_advice: Optional[bool] | NotGiven = NOT_GIVEN, statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN, - subtype: PaymentOrderSubtype | NotGiven = NOT_GIVEN, + subtype: Optional[PaymentOrderSubtype] | NotGiven = NOT_GIVEN, transaction_monitoring_enabled: bool | NotGiven = NOT_GIVEN, ultimate_originating_party_identifier: Optional[str] | NotGiven = NOT_GIVEN, ultimate_originating_party_name: Optional[str] | NotGiven = NOT_GIVEN, @@ -884,7 +884,7 @@ async def create( accounting_category_id: Optional[str] | NotGiven = NOT_GIVEN, accounting_ledger_class_id: Optional[str] | NotGiven = NOT_GIVEN, charge_bearer: Optional[Literal["shared", "sender", "receiver"]] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, documents: List[payment_order_create_params.Document] | NotGiven = NOT_GIVEN, effective_date: Union[str, date] | NotGiven = NOT_GIVEN, @@ -904,7 +904,7 @@ async def create( remittance_information: Optional[str] | NotGiven = NOT_GIVEN, send_remittance_advice: Optional[bool] | NotGiven = NOT_GIVEN, statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN, - subtype: PaymentOrderSubtype | NotGiven = NOT_GIVEN, + subtype: Optional[PaymentOrderSubtype] | NotGiven = NOT_GIVEN, transaction_monitoring_enabled: bool | NotGiven = NOT_GIVEN, ultimate_originating_party_identifier: Optional[str] | NotGiven = NOT_GIVEN, ultimate_originating_party_name: Optional[str] | NotGiven = NOT_GIVEN, @@ -1144,7 +1144,7 @@ async def update( amount: int | NotGiven = NOT_GIVEN, charge_bearer: Optional[Literal["shared", "sender", "receiver"]] | NotGiven = NOT_GIVEN, counterparty_id: Optional[str] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, direction: Literal["credit", "debit"] | NotGiven = NOT_GIVEN, effective_date: Union[str, date] | NotGiven = NOT_GIVEN, @@ -1178,7 +1178,7 @@ async def update( "sent", ] | NotGiven = NOT_GIVEN, - subtype: PaymentOrderSubtype | NotGiven = NOT_GIVEN, + subtype: Optional[PaymentOrderSubtype] | NotGiven = NOT_GIVEN, type: PaymentOrderType | NotGiven = NOT_GIVEN, ultimate_originating_party_identifier: Optional[str] | NotGiven = NOT_GIVEN, ultimate_originating_party_name: Optional[str] | NotGiven = NOT_GIVEN, @@ -1495,7 +1495,7 @@ async def create_async( accounting_category_id: Optional[str] | NotGiven = NOT_GIVEN, accounting_ledger_class_id: Optional[str] | NotGiven = NOT_GIVEN, charge_bearer: Optional[Literal["shared", "sender", "receiver"]] | NotGiven = NOT_GIVEN, - currency: shared_params.Currency | NotGiven = NOT_GIVEN, + currency: Optional[shared_params.Currency] | NotGiven = NOT_GIVEN, description: Optional[str] | NotGiven = NOT_GIVEN, effective_date: Union[str, date] | NotGiven = NOT_GIVEN, expires_at: Union[str, datetime, None] | NotGiven = NOT_GIVEN, @@ -1514,7 +1514,7 @@ async def create_async( remittance_information: Optional[str] | NotGiven = NOT_GIVEN, send_remittance_advice: Optional[bool] | NotGiven = NOT_GIVEN, statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN, - subtype: PaymentOrderSubtype | NotGiven = NOT_GIVEN, + subtype: Optional[PaymentOrderSubtype] | NotGiven = NOT_GIVEN, transaction_monitoring_enabled: bool | NotGiven = NOT_GIVEN, ultimate_originating_party_identifier: Optional[str] | NotGiven = NOT_GIVEN, ultimate_originating_party_name: Optional[str] | NotGiven = NOT_GIVEN, diff --git a/src/modern_treasury/types/expected_payment_create_params.py b/src/modern_treasury/types/expected_payment_create_params.py index 49ab2a21..1c095410 100644 --- a/src/modern_treasury/types/expected_payment_create_params.py +++ b/src/modern_treasury/types/expected_payment_create_params.py @@ -40,7 +40,7 @@ class ExpectedPaymentCreateParams(TypedDict, total=False): counterparty_id: Optional[str] """The ID of the counterparty you expect for this payment.""" - currency: shared_params.Currency + currency: Optional[shared_params.Currency] """Must conform to ISO 4217. Defaults to the currency of the internal account.""" date_lower_bound: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] @@ -81,7 +81,7 @@ class ExpectedPaymentCreateParams(TypedDict, total=False): be the memo field. """ - type: ExpectedPaymentType + type: Optional[ExpectedPaymentType] """ One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, sepa, signet, wire. diff --git a/src/modern_treasury/types/expected_payment_update_params.py b/src/modern_treasury/types/expected_payment_update_params.py index 11d73f43..a9e44d5a 100644 --- a/src/modern_treasury/types/expected_payment_update_params.py +++ b/src/modern_treasury/types/expected_payment_update_params.py @@ -31,7 +31,7 @@ class ExpectedPaymentUpdateParams(TypedDict, total=False): counterparty_id: Optional[str] """The ID of the counterparty you expect for this payment.""" - currency: shared_params.Currency + currency: Optional[shared_params.Currency] """Must conform to ISO 4217. Defaults to the currency of the internal account.""" date_lower_bound: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] @@ -79,7 +79,7 @@ class ExpectedPaymentUpdateParams(TypedDict, total=False): be the memo field. """ - type: ExpectedPaymentType + type: Optional[ExpectedPaymentType] """ One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, sepa, signet, wire. diff --git a/src/modern_treasury/types/external_account_verify_params.py b/src/modern_treasury/types/external_account_verify_params.py index 9a0d491c..b670813f 100644 --- a/src/modern_treasury/types/external_account_verify_params.py +++ b/src/modern_treasury/types/external_account_verify_params.py @@ -2,6 +2,7 @@ from __future__ import annotations +from typing import Optional from typing_extensions import Literal, Required, TypedDict from ..types import shared_params @@ -39,5 +40,5 @@ class ExternalAccountVerifyParams(TypedDict, total=False): ] """Both ach and eft are supported payment types.""" - currency: shared_params.Currency + currency: Optional[shared_params.Currency] """Defaults to the currency of the originating account.""" diff --git a/src/modern_treasury/types/incoming_payment_detail_create_async_params.py b/src/modern_treasury/types/incoming_payment_detail_create_async_params.py index 5b7a1b9c..95ffb4f1 100644 --- a/src/modern_treasury/types/incoming_payment_detail_create_async_params.py +++ b/src/modern_treasury/types/incoming_payment_detail_create_async_params.py @@ -22,7 +22,7 @@ class IncomingPaymentDetailCreateAsyncParams(TypedDict, total=False): as_of_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] """Defaults to today.""" - currency: shared_params.Currency + currency: Optional[shared_params.Currency] """Defaults to the currency of the originating account.""" description: Optional[str] diff --git a/src/modern_treasury/types/internal_account_list_params.py b/src/modern_treasury/types/internal_account_list_params.py index 91b60a3f..c26622e1 100644 --- a/src/modern_treasury/types/internal_account_list_params.py +++ b/src/modern_treasury/types/internal_account_list_params.py @@ -16,7 +16,7 @@ class InternalAccountListParams(TypedDict, total=False): counterparty_id: str """The counterparty associated with the internal account.""" - currency: shared_params.Currency + currency: Optional[shared_params.Currency] """The currency associated with the internal account.""" metadata: Dict[str, str] diff --git a/src/modern_treasury/types/invoice_create_params.py b/src/modern_treasury/types/invoice_create_params.py index 102973f5..69db577e 100644 --- a/src/modern_treasury/types/invoice_create_params.py +++ b/src/modern_treasury/types/invoice_create_params.py @@ -38,7 +38,7 @@ class InvoiceCreateParams(TypedDict, total=False): counterparty_shipping_address: Optional[CounterpartyShippingAddress] """The counterparty's shipping address where physical goods should be delivered.""" - currency: shared_params.Currency + currency: Optional[shared_params.Currency] """Currency that the invoice is denominated in. Defaults to `USD` if not provided.""" description: str diff --git a/src/modern_treasury/types/invoice_update_params.py b/src/modern_treasury/types/invoice_update_params.py index 531f0232..e7ba9509 100644 --- a/src/modern_treasury/types/invoice_update_params.py +++ b/src/modern_treasury/types/invoice_update_params.py @@ -32,7 +32,7 @@ class InvoiceUpdateParams(TypedDict, total=False): counterparty_shipping_address: Optional[CounterpartyShippingAddress] """The counterparty's shipping address where physical goods should be delivered.""" - currency: shared_params.Currency + currency: Optional[shared_params.Currency] """Currency that the invoice is denominated in. Defaults to `USD` if not provided.""" description: str diff --git a/src/modern_treasury/types/ledgerable_event.py b/src/modern_treasury/types/ledgerable_event.py index 701e2ff9..21b860dc 100644 --- a/src/modern_treasury/types/ledgerable_event.py +++ b/src/modern_treasury/types/ledgerable_event.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. +import builtins from typing import Dict, Optional from datetime import datetime @@ -28,7 +29,7 @@ class LedgerableEvent(BaseModel): The currency_exponent cannot exceed 30. """ - custom_data: Optional[object] + custom_data: Optional[builtins.object] """Additionally data to be used by the Ledger Event Handler.""" description: Optional[str] diff --git a/src/modern_treasury/types/payment_order_create_async_params.py b/src/modern_treasury/types/payment_order_create_async_params.py index 5fd80641..9345726b 100644 --- a/src/modern_treasury/types/payment_order_create_async_params.py +++ b/src/modern_treasury/types/payment_order_create_async_params.py @@ -81,7 +81,7 @@ class PaymentOrderCreateAsyncParams(TypedDict, total=False): which correspond respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`. """ - currency: shared_params.Currency + currency: Optional[shared_params.Currency] """Defaults to the currency of the originating account.""" description: Optional[str] @@ -202,7 +202,7 @@ class PaymentOrderCreateAsyncParams(TypedDict, total=False): characters. """ - subtype: PaymentOrderSubtype + subtype: Optional[PaymentOrderSubtype] """ An additional layer of classification for the type of payment order you are doing. This field is only used for `ach` payment orders currently. For `ach` diff --git a/src/modern_treasury/types/payment_order_create_params.py b/src/modern_treasury/types/payment_order_create_params.py index 4d12bcc4..4a95431b 100644 --- a/src/modern_treasury/types/payment_order_create_params.py +++ b/src/modern_treasury/types/payment_order_create_params.py @@ -84,7 +84,7 @@ class PaymentOrderCreateParams(TypedDict, total=False): which correspond respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`. """ - currency: shared_params.Currency + currency: Optional[shared_params.Currency] """Defaults to the currency of the originating account.""" description: Optional[str] @@ -212,7 +212,7 @@ class PaymentOrderCreateParams(TypedDict, total=False): characters. """ - subtype: PaymentOrderSubtype + subtype: Optional[PaymentOrderSubtype] """ An additional layer of classification for the type of payment order you are doing. This field is only used for `ach` payment orders currently. For `ach` diff --git a/src/modern_treasury/types/payment_order_update_params.py b/src/modern_treasury/types/payment_order_update_params.py index 4e33ac05..afdbbd29 100644 --- a/src/modern_treasury/types/payment_order_update_params.py +++ b/src/modern_treasury/types/payment_order_update_params.py @@ -63,7 +63,7 @@ class PaymentOrderUpdateParams(TypedDict, total=False): counterparty_id: Optional[str] """Required when receiving_account_id is passed the ID of an external account.""" - currency: shared_params.Currency + currency: Optional[shared_params.Currency] """Defaults to the currency of the originating account.""" description: Optional[str] @@ -207,7 +207,7 @@ class PaymentOrderUpdateParams(TypedDict, total=False): denied or approved payment order, use `needs_approval`. """ - subtype: PaymentOrderSubtype + subtype: Optional[PaymentOrderSubtype] """ An additional layer of classification for the type of payment order you are doing. This field is only used for `ach` payment orders currently. For `ach`