Skip to content

Commit

Permalink
chore(internal): minor formatting changes (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Sep 1, 2023
1 parent 08abce9 commit 7f0aba8
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 46 deletions.
16 changes: 8 additions & 8 deletions src/modern_treasury/resources/expected_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/modern_treasury/resources/external_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/modern_treasury/resources/incoming_payment_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down Expand Up @@ -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[
Expand Down
8 changes: 4 additions & 4 deletions src/modern_treasury/resources/invoices/invoices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
24 changes: 12 additions & 12 deletions src/modern_treasury/resources/payment_orders/payment_orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/modern_treasury/types/expected_payment_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/modern_treasury/types/expected_payment_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion src/modern_treasury/types/external_account_verify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

from typing import Optional
from typing_extensions import Literal, Required, TypedDict

from ..types import shared_params
Expand Down Expand Up @@ -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."""
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/modern_treasury/types/internal_account_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading

0 comments on commit 7f0aba8

Please sign in to comment.