Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ first_page = await increase.accounts.list()

print(f"next page cursor: {first_page.next_cursor}") # => "next page cursor: ..."
for account in first_page.data:
print(account.created_at)
print(account.id)

# Remove `await` for non-async usage.
```
Expand Down Expand Up @@ -304,4 +304,4 @@ We are keen for your feedback; please open an [issue](https://www.github.com/inc

## Requirements

Python 3.7 or higher.
Python 3.7 or higher.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,4 +666,4 @@ from increase.types.simulations import InboundRealTimePaymentsTransferSimulation
Methods:

- <code title="post /simulations/real_time_payments_transfers/{real_time_payments_transfer_id}/complete">client.simulations.real_time_payments_transfers.<a href="./src/increase/resources/simulations/real_time_payments_transfers.py">complete</a>(real_time_payments_transfer_id, \*\*<a href="src/increase/types/simulations/real_time_payments_transfer_complete_params.py">params</a>) -> <a href="./src/increase/types/real_time_payments_transfer.py">RealTimePaymentsTransfer</a></code>
- <code title="post /simulations/inbound_real_time_payments_transfers">client.simulations.real_time_payments_transfers.<a href="./src/increase/resources/simulations/real_time_payments_transfers.py">create_inbound</a>(\*\*<a href="src/increase/types/simulations/real_time_payments_transfer_create_inbound_params.py">params</a>) -> <a href="./src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py">InboundRealTimePaymentsTransferSimulationResult</a></code>
- <code title="post /simulations/inbound_real_time_payments_transfers">client.simulations.real_time_payments_transfers.<a href="./src/increase/resources/simulations/real_time_payments_transfers.py">create_inbound</a>(\*\*<a href="src/increase/types/simulations/real_time_payments_transfer_create_inbound_params.py">params</a>) -> <a href="./src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py">InboundRealTimePaymentsTransferSimulationResult</a></code>
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/increase/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ def _make_status_error(
request=request,
response=response,
body={
"type": "internal_server_error",
"title": "",
"detail": None,
"status": 500,
"title": "",
"type": "internal_server_error",
},
)
return super()._make_status_error(err_msg, request=request, response=response, body=body)
Expand Down Expand Up @@ -591,10 +591,10 @@ def _make_status_error(
request=request,
response=response,
body={
"type": "internal_server_error",
"title": "",
"detail": None,
"status": 500,
"title": "",
"type": "internal_server_error",
},
)
return super()._make_status_error(err_msg, request=request, response=response, body=body)
Expand Down
6 changes: 3 additions & 3 deletions src/increase/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ def __init__(self, message: str, *, body: object, request: httpx.Request, respon
title = cast(Any, data.get("title"))
super().__init__(title or message, request=request, response=response, body=body)

self.type = cast(Any, data.get("type"))
self.title = cast(Any, data.get("title"))
self.detail = cast(Any, data.get("detail"))
self.status = cast(Any, data.get("status"))
self.errors = cast(Any, data.get("errors"))
self.status = cast(Any, data.get("status"))
self.title = cast(Any, data.get("title"))
self.type = cast(Any, data.get("type"))


class MalformedRequestError(exceptions.BadRequestError):
Expand Down
4 changes: 4 additions & 0 deletions src/increase/resources/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def create(
"trust_formation_document",
"digital_wallet_artwork",
"digital_wallet_app_icon",
"physical_card_artwork",
"physical_card_carrier",
"document_request",
"entity_supplemental_document",
],
Expand Down Expand Up @@ -193,6 +195,8 @@ async def create(
"trust_formation_document",
"digital_wallet_artwork",
"digital_wallet_app_icon",
"physical_card_artwork",
"physical_card_carrier",
"document_request",
"entity_supplemental_document",
],
Expand Down
2 changes: 0 additions & 2 deletions src/increase/resources/simulations/ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def return_(
"returned_per_odfi_request",
"limited_participation_dfi",
"incorrectly_coded_outbound_international_payment",
"other",
"account_sold_to_another_dfi",
"addenda_error",
"beneficiary_or_account_holder_deceased",
Expand Down Expand Up @@ -368,7 +367,6 @@ async def return_(
"returned_per_odfi_request",
"limited_participation_dfi",
"incorrectly_coded_outbound_international_payment",
"other",
"account_sold_to_another_dfi",
"addenda_error",
"beneficiary_or_account_holder_deceased",
Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@


class Account(BaseModel):
id: str
"""The Account identifier."""

created_at: datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Account
Expand All @@ -25,9 +28,6 @@ class Account(BaseModel):
entity_id: Optional[str]
"""The identifier for the Entity the Account belongs to."""

id: str
"""The Account identifier."""

informational_entity_id: Optional[str]
"""
The identifier of an Entity that, while not owning the Account, is associated
Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/account_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@


class AccountNumber(BaseModel):
id: str
"""The Account Number identifier."""

account_id: str
"""The identifier for the account this Account Number belongs to."""

Expand All @@ -21,9 +24,6 @@ class AccountNumber(BaseModel):
Number was created.
"""

id: str
"""The Account Number identifier."""

name: str
"""The name you choose for the Account Number."""

Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/account_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@


class AccountStatement(BaseModel):
id: str
"""The Account Statement identifier."""

account_id: str
"""The identifier for the Account this Account Statement belongs to."""

Expand All @@ -24,9 +27,6 @@ class AccountStatement(BaseModel):
file_id: str
"""The identifier of the File containing a PDF of the statement."""

id: str
"""The Account Statement identifier."""

starting_balance: int
"""The Account's balance at the start of its statement period."""

Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/account_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class Cancellation(BaseModel):


class AccountTransfer(BaseModel):
id: str
"""The account transfer's identifier."""

account_id: str
"""The Account to which the transfer belongs."""

Expand Down Expand Up @@ -80,9 +83,6 @@ class AccountTransfer(BaseModel):
destination_transaction_id: Optional[str]
"""The ID for the transaction receiving the transfer."""

id: str
"""The account transfer's identifier."""

network: Literal["account"]
"""The transfer's network."""

Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/ach_prenotification.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class PrenotificationReturn(BaseModel):


class ACHPrenotification(BaseModel):
id: str
"""The ACH Prenotification's identifier."""

account_number: str
"""The destination account number."""

Expand Down Expand Up @@ -53,9 +56,6 @@ class ACHPrenotification(BaseModel):
The effective date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
"""

id: str
"""The ACH Prenotification's identifier."""

prenotification_return: Optional[PrenotificationReturn]
"""If your prenotification is returned, this will contain details of the return."""

Expand Down
7 changes: 3 additions & 4 deletions src/increase/types/ach_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class Return(BaseModel):
"returned_per_odfi_request",
"limited_participation_dfi",
"incorrectly_coded_outbound_international_payment",
"other",
"account_sold_to_another_dfi",
"addenda_error",
"beneficiary_or_account_holder_deceased",
Expand Down Expand Up @@ -154,6 +153,9 @@ class Submission(BaseModel):


class ACHTransfer(BaseModel):
id: str
"""The ACH transfer's identifier."""

account_id: str
"""The Account to which the transfer belongs."""

Expand Down Expand Up @@ -219,9 +221,6 @@ class ACHTransfer(BaseModel):
funding: Literal["checking", "savings"]
"""The type of the account to which the transfer will be sent."""

id: str
"""The ACH transfer's identifier."""

individual_id: Optional[str]
"""Your identifer for the transfer recipient."""

Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/bookkeeping_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@


class BookkeepingAccount(BaseModel):
id: str
"""The account identifier."""

account_id: Optional[str]
"""The API Account associated with this bookkeeping account."""

Expand All @@ -18,9 +21,6 @@ class BookkeepingAccount(BaseModel):
entity_id: Optional[str]
"""The Entity associated with this bookkeeping account."""

id: str
"""The account identifier."""

name: str
"""The name you choose for the account."""

Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/bookkeeping_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@


class BookkeepingEntry(BaseModel):
id: str
"""The entry identifier."""

account_id: str
"""The identifier for the Account the Entry belongs to."""

Expand All @@ -20,9 +23,6 @@ class BookkeepingEntry(BaseModel):
entry_set_id: str
"""The identifier for the Account the Entry belongs to."""

id: str
"""The entry identifier."""

type: Literal["bookkeeping_entry"]
"""A constant representing the object's type.

Expand Down
12 changes: 6 additions & 6 deletions src/increase/types/bookkeeping_entry_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@


class Entry(BaseModel):
id: str
"""The entry identifier."""

account_id: str
"""The bookkeeping account impacted by the entry."""

amount: int
"""The amount of the entry in minor units."""

id: str
"""The entry identifier."""


class BookkeepingEntrySet(BaseModel):
id: str
"""The entry set identifier."""

date: datetime
"""The timestamp of the entry set."""

entries: List[Entry]
"""The entries"""

id: str
"""The entry set identifier."""

transaction_id: Optional[str]
"""The transaction identifier, if any."""

Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class DigitalWallet(BaseModel):


class Card(BaseModel):
id: str
"""The card identifier."""

account_id: str
"""The identifier for the account this card belongs to."""

Expand Down Expand Up @@ -75,9 +78,6 @@ class Card(BaseModel):
expiration_year: int
"""The year the card expires in YYYY format (e.g., 2025)."""

id: str
"""The card identifier."""

last4: str
"""The last 4 digits of the Card's Primary Account Number."""

Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/card_dispute.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class Rejection(BaseModel):


class CardDispute(BaseModel):
id: str
"""The Card Dispute identifier."""

acceptance: Optional[Acceptance]
"""
If the Card Dispute's status is `accepted`, this will contain details of the
Expand All @@ -59,9 +62,6 @@ class CardDispute(BaseModel):
explanation: str
"""Why you disputed the Transaction in question."""

id: str
"""The Card Dispute identifier."""

rejection: Optional[Rejection]
"""
If the Card Dispute's status is `rejected`, this will contain details of the
Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/card_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class DigitalWallets(BaseModel):


class CardProfile(BaseModel):
id: str
"""The Card Profile identifier."""

created_at: datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
Expand All @@ -63,9 +66,6 @@ class CardProfile(BaseModel):
their app.
"""

id: str
"""The Card Profile identifier."""

status: Literal["pending", "rejected", "active", "archived"]
"""The status of the Card Profile."""

Expand Down
2 changes: 1 addition & 1 deletion src/increase/types/card_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class BillingAddress(TypedDict, total=False):

class DigitalWallet(TypedDict, total=False):
card_profile_id: str
"""The card profile assigned to this digital card.
"""The card profile assigned to this card.

Card profiles may also be assigned at the program level.
"""
Expand Down
Loading