Skip to content

Commit

Permalink
feat(api): update financial_account_type and documentation (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and stainless-app[bot] committed Feb 19, 2024
1 parent 242e768 commit 612a950
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/lithic/resources/aggregate_balances.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def with_streaming_response(self) -> AggregateBalancesWithStreamingResponse:
def list(
self,
*,
financial_account_type: Literal["ISSUING", "RESERVE"] | NotGiven = NOT_GIVEN,
financial_account_type: Literal["ISSUING", "OPERATING", "RESERVE"] | 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 @@ -86,7 +86,7 @@ def with_streaming_response(self) -> AsyncAggregateBalancesWithStreamingResponse
def list(
self,
*,
financial_account_type: Literal["ISSUING", "RESERVE"] | NotGiven = NOT_GIVEN,
financial_account_type: Literal["ISSUING", "OPERATING", "RESERVE"] | 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/lithic/resources/balances.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def list(
*,
account_token: str | NotGiven = NOT_GIVEN,
balance_date: Union[str, datetime] | NotGiven = NOT_GIVEN,
financial_account_type: Literal["ISSUING", "RESERVE"] | NotGiven = NOT_GIVEN,
financial_account_type: Literal["ISSUING", "OPERATING", "RESERVE"] | 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 @@ -100,7 +100,7 @@ def list(
*,
account_token: str | NotGiven = NOT_GIVEN,
balance_date: Union[str, datetime] | NotGiven = NOT_GIVEN,
financial_account_type: Literal["ISSUING", "RESERVE"] | NotGiven = NOT_GIVEN,
financial_account_type: Literal["ISSUING", "OPERATING", "RESERVE"] | 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
32 changes: 20 additions & 12 deletions src/lithic/resources/cards/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,14 @@ def create(
spend_limit_duration:
Spend limit duration values:
- `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
year.
- `ANNUALLY` - Card will authorize transactions up to spend limit for the
trailing year.
- `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
of the card.
- `MONTHLY` - Card will authorize transactions up to spend limit for the
trailing month. Month is calculated as this calendar date one month prior.
trailing month. To support recurring monthly payments, which can occur on
different day every month, the time window we consider for monthly velocity
starts 6 days after the current calendar date one month prior.
- `TRANSACTION` - Card will authorize multiple transactions if each individual
transaction is under the spend limit.
Expand Down Expand Up @@ -334,12 +336,14 @@ def update(
spend_limit_duration:
Spend limit duration values:
- `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
year.
- `ANNUALLY` - Card will authorize transactions up to spend limit for the
trailing year.
- `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
of the card.
- `MONTHLY` - Card will authorize transactions up to spend limit for the
trailing month. Month is calculated as this calendar date one month prior.
trailing month. To support recurring monthly payments, which can occur on
different day every month, the time window we consider for monthly velocity
starts 6 days after the current calendar date one month prior.
- `TRANSACTION` - Card will authorize multiple transactions if each individual
transaction is under the spend limit.
Expand Down Expand Up @@ -1056,12 +1060,14 @@ async def create(
spend_limit_duration:
Spend limit duration values:
- `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
year.
- `ANNUALLY` - Card will authorize transactions up to spend limit for the
trailing year.
- `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
of the card.
- `MONTHLY` - Card will authorize transactions up to spend limit for the
trailing month. Month is calculated as this calendar date one month prior.
trailing month. To support recurring monthly payments, which can occur on
different day every month, the time window we consider for monthly velocity
starts 6 days after the current calendar date one month prior.
- `TRANSACTION` - Card will authorize multiple transactions if each individual
transaction is under the spend limit.
Expand Down Expand Up @@ -1194,12 +1200,14 @@ async def update(
spend_limit_duration:
Spend limit duration values:
- `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
year.
- `ANNUALLY` - Card will authorize transactions up to spend limit for the
trailing year.
- `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
of the card.
- `MONTHLY` - Card will authorize transactions up to spend limit for the
trailing month. Month is calculated as this calendar date one month prior.
trailing month. To support recurring monthly payments, which can occur on
different day every month, the time window we consider for monthly velocity
starts 6 days after the current calendar date one month prior.
- `TRANSACTION` - Card will authorize multiple transactions if each individual
transaction is under the spend limit.
Expand Down
4 changes: 2 additions & 2 deletions src/lithic/resources/financial_accounts/financial_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def list(
*,
account_token: str | NotGiven = NOT_GIVEN,
business_account_token: str | NotGiven = NOT_GIVEN,
type: Literal["ISSUING", "RESERVE", "OPERATING"] | NotGiven = NOT_GIVEN,
type: Literal["ISSUING", "OPERATING", "RESERVE"] | 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 @@ -291,7 +291,7 @@ def list(
*,
account_token: str | NotGiven = NOT_GIVEN,
business_account_token: str | NotGiven = NOT_GIVEN,
type: Literal["ISSUING", "RESERVE", "OPERATING"] | NotGiven = NOT_GIVEN,
type: Literal["ISSUING", "OPERATING", "RESERVE"] | 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
2 changes: 1 addition & 1 deletion src/lithic/types/aggregate_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AggregateBalance(BaseModel):
currency: str
"""3-digit alphabetic ISO 4217 code for the local currency of the balance."""

financial_account_type: Literal["ISSUING", "RESERVE", "OPERATING"]
financial_account_type: Literal["ISSUING", "OPERATING", "RESERVE"]
"""Type of financial account"""

last_financial_account_token: str
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/types/aggregate_balance_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@


class AggregateBalanceListParams(TypedDict, total=False):
financial_account_type: Literal["ISSUING", "RESERVE"]
financial_account_type: Literal["ISSUING", "OPERATING", "RESERVE"]
"""Get the aggregate balance for a given Financial Account type."""
2 changes: 1 addition & 1 deletion src/lithic/types/balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Balance(BaseModel):
financial_account_token: str
"""Globally unique identifier for the financial account that holds this balance."""

financial_account_type: Literal["ISSUING", "RESERVE", "OPERATING"]
financial_account_type: Literal["ISSUING", "OPERATING", "RESERVE"]
"""Type of financial account."""

last_transaction_event_token: str
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/types/balance_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ class BalanceListParams(TypedDict, total=False):
Defaults to latest available balances
"""

financial_account_type: Literal["ISSUING", "RESERVE"]
financial_account_type: Literal["ISSUING", "OPERATING", "RESERVE"]
"""List balances for a given Financial Account type."""
8 changes: 5 additions & 3 deletions src/lithic/types/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ class Card(BaseModel):
spend_limit_duration: SpendLimitDuration
"""Spend limit duration values:
- `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
year.
- `ANNUALLY` - Card will authorize transactions up to spend limit for the
trailing year.
- `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
of the card.
- `MONTHLY` - Card will authorize transactions up to spend limit for the
trailing month. Month is calculated as this calendar date one month prior.
trailing month. To support recurring monthly payments, which can occur on
different day every month, the time window we consider for monthly velocity
starts 6 days after the current calendar date one month prior.
- `TRANSACTION` - Card will authorize multiple transactions if each individual
transaction is under the spend limit.
"""
Expand Down
8 changes: 5 additions & 3 deletions src/lithic/types/card_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,14 @@ class CardCreateParams(TypedDict, total=False):
spend_limit_duration: SpendLimitDuration
"""Spend limit duration values:
- `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
year.
- `ANNUALLY` - Card will authorize transactions up to spend limit for the
trailing year.
- `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
of the card.
- `MONTHLY` - Card will authorize transactions up to spend limit for the
trailing month. Month is calculated as this calendar date one month prior.
trailing month. To support recurring monthly payments, which can occur on
different day every month, the time window we consider for monthly velocity
starts 6 days after the current calendar date one month prior.
- `TRANSACTION` - Card will authorize multiple transactions if each individual
transaction is under the spend limit.
"""
Expand Down
8 changes: 5 additions & 3 deletions src/lithic/types/card_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ class CardUpdateParams(TypedDict, total=False):
spend_limit_duration: SpendLimitDuration
"""Spend limit duration values:
- `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
year.
- `ANNUALLY` - Card will authorize transactions up to spend limit for the
trailing year.
- `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
of the card.
- `MONTHLY` - Card will authorize transactions up to spend limit for the
trailing month. Month is calculated as this calendar date one month prior.
trailing month. To support recurring monthly payments, which can occur on
different day every month, the time window we consider for monthly velocity
starts 6 days after the current calendar date one month prior.
- `TRANSACTION` - Card will authorize multiple transactions if each individual
transaction is under the spend limit.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/types/financial_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class FinancialAccount(BaseModel):
created: datetime
"""Date and time for when the financial account was first created."""

type: Literal["ISSUING", "RESERVE", "OPERATING"]
type: Literal["ISSUING", "OPERATING", "RESERVE"]
"""Type of financial account"""

updated: datetime
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/types/financial_account_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ class FinancialAccountListParams(TypedDict, total=False):
business_account_token: str
"""List financial accounts for a given business_account_token"""

type: Literal["ISSUING", "RESERVE", "OPERATING"]
type: Literal["ISSUING", "OPERATING", "RESERVE"]
"""List financial accounts of a given type"""
10 changes: 5 additions & 5 deletions src/lithic/types/settlement_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ class SettlementDetail(BaseModel):
"""

type: Literal[
"ADJUSTMENT",
"ARBITRATION",
"CHARGEBACK",
"CLEARING",
"FEE",
"FINANCIAL",
"NON-FINANCIAL",
"ADJUSTMENT",
"CHARGEBACK",
"REPRESENTMENT",
"PREARBITRATION",
"ARBITRATION",
"FEE",
"REPRESENTMENT",
]
"""The type of settlement record."""

Expand Down

0 comments on commit 612a950

Please sign in to comment.