Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 238
openapi_spec_hash: 244db0c7a39ae8fff699dccda50b79bd
openapi_spec_hash: 221d41155971e50d1b2eea5a2330771c
config_hash: 2ae0d8aaecf01b38cbf9f9e112822c23
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

26 changes: 14 additions & 12 deletions src/increase/resources/simulations/card_settlements.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def create(
self,
*,
card_id: str,
pending_transaction_id: str,
amount: int | Omit = omit,
pending_transaction_id: str | Omit = omit,
# 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 All @@ -66,11 +66,12 @@ def create(
Args:
card_id: The identifier of the Card to create a settlement on.

pending_transaction_id: The identifier of the Pending Transaction for the Card Authorization you wish to
settle.

amount: The amount to be settled. This defaults to the amount of the Pending Transaction
being settled.
being settled, or a random amount if `pending_transaction_id` is not provided.

pending_transaction_id: The identifier of the Pending Transaction for the Card Authorization you wish to
settle. If not provided, the settlement will be force posted without a Card
Authorization.

extra_headers: Send extra headers

Expand All @@ -87,8 +88,8 @@ def create(
body=maybe_transform(
{
"card_id": card_id,
"pending_transaction_id": pending_transaction_id,
"amount": amount,
"pending_transaction_id": pending_transaction_id,
},
card_settlement_create_params.CardSettlementCreateParams,
),
Expand Down Expand Up @@ -127,8 +128,8 @@ async def create(
self,
*,
card_id: str,
pending_transaction_id: str,
amount: int | Omit = omit,
pending_transaction_id: str | Omit = omit,
# 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 All @@ -148,11 +149,12 @@ async def create(
Args:
card_id: The identifier of the Card to create a settlement on.

pending_transaction_id: The identifier of the Pending Transaction for the Card Authorization you wish to
settle.

amount: The amount to be settled. This defaults to the amount of the Pending Transaction
being settled.
being settled, or a random amount if `pending_transaction_id` is not provided.

pending_transaction_id: The identifier of the Pending Transaction for the Card Authorization you wish to
settle. If not provided, the settlement will be force posted without a Card
Authorization.

extra_headers: Send extra headers

Expand All @@ -169,8 +171,8 @@ async def create(
body=await async_maybe_transform(
{
"card_id": card_id,
"pending_transaction_id": pending_transaction_id,
"amount": amount,
"pending_transaction_id": pending_transaction_id,
},
card_settlement_create_params.CardSettlementCreateParams,
),
Expand Down
6 changes: 2 additions & 4 deletions src/increase/resources/simulations/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def create(
self,
*,
name: str,
bank: Literal["core_bank", "first_internet_bank", "grasshopper_bank", "twin_city_bank"] | Omit = omit,
bank: Literal["core_bank", "first_internet_bank", "grasshopper_bank"] | Omit = omit,
lending_maximum_extendable_credit: int | Omit = omit,
reserve_account_id: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -73,7 +73,6 @@ def create(
- `core_bank` - Core Bank
- `first_internet_bank` - First Internet Bank of Indiana
- `grasshopper_bank` - Grasshopper Bank
- `twin_city_bank` - Twin City Bank

lending_maximum_extendable_credit: The maximum extendable credit of the program being added.

Expand Down Expand Up @@ -135,7 +134,7 @@ async def create(
self,
*,
name: str,
bank: Literal["core_bank", "first_internet_bank", "grasshopper_bank", "twin_city_bank"] | Omit = omit,
bank: Literal["core_bank", "first_internet_bank", "grasshopper_bank"] | Omit = omit,
lending_maximum_extendable_credit: int | Omit = omit,
reserve_account_id: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -161,7 +160,6 @@ async def create(
- `core_bank` - Core Bank
- `first_internet_bank` - First Internet Bank of Indiana
- `grasshopper_bank` - Grasshopper Bank
- `twin_city_bank` - Twin City Bank

lending_maximum_extendable_credit: The maximum extendable credit of the program being added.

Expand Down
10 changes: 10 additions & 0 deletions src/increase/resources/swift_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def create(
instructed_currency: Literal["USD"],
source_account_number_id: str,
unstructured_remittance_information: str,
intermediary_bank_identification_code: str | Omit = omit,
require_approval: bool | Omit = omit,
routing_number: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -99,6 +100,9 @@ def create(

unstructured_remittance_information: Unstructured remittance information to include in the transfer.

intermediary_bank_identification_code: The bank identification code (BIC) of the intermediary bank, if the transfer
should be routed through one.

require_approval: Whether the transfer requires explicit approval via the dashboard or API.

routing_number: The creditor's bank account routing or transit number. Required in certain
Expand Down Expand Up @@ -129,6 +133,7 @@ def create(
"instructed_currency": instructed_currency,
"source_account_number_id": source_account_number_id,
"unstructured_remittance_information": unstructured_remittance_information,
"intermediary_bank_identification_code": intermediary_bank_identification_code,
"require_approval": require_approval,
"routing_number": routing_number,
},
Expand Down Expand Up @@ -361,6 +366,7 @@ async def create(
instructed_currency: Literal["USD"],
source_account_number_id: str,
unstructured_remittance_information: str,
intermediary_bank_identification_code: str | Omit = omit,
require_approval: bool | Omit = omit,
routing_number: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -402,6 +408,9 @@ async def create(

unstructured_remittance_information: Unstructured remittance information to include in the transfer.

intermediary_bank_identification_code: The bank identification code (BIC) of the intermediary bank, if the transfer
should be routed through one.

require_approval: Whether the transfer requires explicit approval via the dashboard or API.

routing_number: The creditor's bank account routing or transit number. Required in certain
Expand Down Expand Up @@ -432,6 +441,7 @@ async def create(
"instructed_currency": instructed_currency,
"source_account_number_id": source_account_number_id,
"unstructured_remittance_information": unstructured_remittance_information,
"intermediary_bank_identification_code": intermediary_bank_identification_code,
"require_approval": require_approval,
"routing_number": routing_number,
},
Expand Down
5 changes: 4 additions & 1 deletion src/increase/types/check_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ class PhysicalCheck(BaseModel):
"""The signature that will appear on the check."""

tracking_updates: List[PhysicalCheckTrackingUpdate]
"""Tracking updates relating to the physical check's delivery."""
"""Tracking updates relating to the physical check's delivery.

Sorted by `created_at` in ascending order.
"""

if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class Event(BaseModel):
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_request_for_payment.created",
"inbound_real_time_payments_request_for_payment.updated",
"inbound_real_time_payments_transfer.created",
"inbound_real_time_payments_transfer.updated",
"inbound_wire_drawdown_request.created",
Expand Down Expand Up @@ -232,6 +234,10 @@ class Event(BaseModel):
is updated.
- `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
- `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
- `inbound_real_time_payments_request_for_payment.created` - Occurs whenever an
Inbound Real-Time Payments Request for Payment is created.
- `inbound_real_time_payments_request_for_payment.updated` - Occurs whenever an
Inbound Real-Time Payments Request for Payment is updated.
- `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
Real-Time Payments Transfer is created.
- `inbound_real_time_payments_transfer.updated` - Occurs whenever an Inbound
Expand Down
2 changes: 2 additions & 0 deletions src/increase/types/event_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class EventListParams(TypedDict, total=False):
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_request_for_payment.created",
"inbound_real_time_payments_request_for_payment.updated",
"inbound_real_time_payments_transfer.created",
"inbound_real_time_payments_transfer.updated",
"inbound_wire_drawdown_request.created",
Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/event_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class SelectedEventCategory(BaseModel):
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_request_for_payment.created",
"inbound_real_time_payments_request_for_payment.updated",
"inbound_real_time_payments_transfer.created",
"inbound_real_time_payments_transfer.updated",
"inbound_wire_drawdown_request.created",
Expand Down Expand Up @@ -220,6 +222,10 @@ class SelectedEventCategory(BaseModel):
is updated.
- `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
- `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
- `inbound_real_time_payments_request_for_payment.created` - Occurs whenever an
Inbound Real-Time Payments Request for Payment is created.
- `inbound_real_time_payments_request_for_payment.updated` - Occurs whenever an
Inbound Real-Time Payments Request for Payment is updated.
- `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
Real-Time Payments Transfer is created.
- `inbound_real_time_payments_transfer.updated` - Occurs whenever an Inbound
Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/event_subscription_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ class SelectedEventCategory(TypedDict, total=False):
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_request_for_payment.created",
"inbound_real_time_payments_request_for_payment.updated",
"inbound_real_time_payments_transfer.created",
"inbound_real_time_payments_transfer.updated",
"inbound_wire_drawdown_request.created",
Expand Down Expand Up @@ -249,6 +251,10 @@ class SelectedEventCategory(TypedDict, total=False):
is updated.
- `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
- `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
- `inbound_real_time_payments_request_for_payment.created` - Occurs whenever an
Inbound Real-Time Payments Request for Payment is created.
- `inbound_real_time_payments_request_for_payment.updated` - Occurs whenever an
Inbound Real-Time Payments Request for Payment is updated.
- `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
Real-Time Payments Transfer is created.
- `inbound_real_time_payments_transfer.updated` - Occurs whenever an Inbound
Expand Down
16 changes: 9 additions & 7 deletions src/increase/types/simulations/card_settlement_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ class CardSettlementCreateParams(TypedDict, total=False):
card_id: Required[str]
"""The identifier of the Card to create a settlement on."""

pending_transaction_id: Required[str]
"""
The identifier of the Pending Transaction for the Card Authorization you wish to
settle.
"""

amount: int
"""The amount to be settled.

This defaults to the amount of the Pending Transaction being settled.
This defaults to the amount of the Pending Transaction being settled, or a
random amount if `pending_transaction_id` is not provided.
"""

pending_transaction_id: str
"""
The identifier of the Pending Transaction for the Card Authorization you wish to
settle. If not provided, the settlement will be force posted without a Card
Authorization.
"""
3 changes: 1 addition & 2 deletions src/increase/types/simulations/program_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ class ProgramCreateParams(TypedDict, total=False):
name: Required[str]
"""The name of the program being added."""

bank: Literal["core_bank", "first_internet_bank", "grasshopper_bank", "twin_city_bank"]
bank: Literal["core_bank", "first_internet_bank", "grasshopper_bank"]
"""The bank for the program's accounts, defaults to First Internet Bank.

- `core_bank` - Core Bank
- `first_internet_bank` - First Internet Bank of Indiana
- `grasshopper_bank` - Grasshopper Bank
- `twin_city_bank` - Twin City Bank
"""

lending_maximum_extendable_credit: int
Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/swift_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ class SwiftTransfer(BaseModel):
- `USD` - United States Dollar
"""

intermediary_bank_identification_code: Optional[str] = None
"""
The bank identification code (BIC) of the intermediary bank, if the transfer is
routed through one.
"""

pending_transaction_id: Optional[str] = None
"""The ID for the pending transaction representing the transfer."""

Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/swift_transfer_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ class SwiftTransferCreateParams(TypedDict, total=False):
unstructured_remittance_information: Required[str]
"""Unstructured remittance information to include in the transfer."""

intermediary_bank_identification_code: str
"""
The bank identification code (BIC) of the intermediary bank, if the transfer
should be routed through one.
"""

require_approval: bool
"""Whether the transfer requires explicit approval via the dashboard or API."""

Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/unwrap_webhook_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class UnwrapWebhookEvent(BaseModel):
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_request_for_payment.created",
"inbound_real_time_payments_request_for_payment.updated",
"inbound_real_time_payments_transfer.created",
"inbound_real_time_payments_transfer.updated",
"inbound_wire_drawdown_request.created",
Expand Down Expand Up @@ -232,6 +234,10 @@ class UnwrapWebhookEvent(BaseModel):
is updated.
- `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
- `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
- `inbound_real_time_payments_request_for_payment.created` - Occurs whenever an
Inbound Real-Time Payments Request for Payment is created.
- `inbound_real_time_payments_request_for_payment.updated` - Occurs whenever an
Inbound Real-Time Payments Request for Payment is updated.
- `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
Real-Time Payments Transfer is created.
- `inbound_real_time_payments_transfer.updated` - Occurs whenever an Inbound
Expand Down
10 changes: 2 additions & 8 deletions tests/api_resources/simulations/test_card_settlements.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,22 @@ class TestCardSettlements:
def test_method_create(self, client: Increase) -> None:
card_settlement = client.simulations.card_settlements.create(
card_id="card_oubs0hwk5rn6knuecxg2",
pending_transaction_id="pending_transaction_k1sfetcau2qbvjbzgju4",
)
assert_matches_type(Transaction, card_settlement, path=["response"])

@parametrize
def test_method_create_with_all_params(self, client: Increase) -> None:
card_settlement = client.simulations.card_settlements.create(
card_id="card_oubs0hwk5rn6knuecxg2",
pending_transaction_id="pending_transaction_k1sfetcau2qbvjbzgju4",
amount=1,
pending_transaction_id="pending_transaction_k1sfetcau2qbvjbzgju4",
)
assert_matches_type(Transaction, card_settlement, path=["response"])

@parametrize
def test_raw_response_create(self, client: Increase) -> None:
response = client.simulations.card_settlements.with_raw_response.create(
card_id="card_oubs0hwk5rn6knuecxg2",
pending_transaction_id="pending_transaction_k1sfetcau2qbvjbzgju4",
)

assert response.is_closed is True
Expand All @@ -50,7 +48,6 @@ def test_raw_response_create(self, client: Increase) -> None:
def test_streaming_response_create(self, client: Increase) -> None:
with client.simulations.card_settlements.with_streaming_response.create(
card_id="card_oubs0hwk5rn6knuecxg2",
pending_transaction_id="pending_transaction_k1sfetcau2qbvjbzgju4",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -70,24 +67,22 @@ class TestAsyncCardSettlements:
async def test_method_create(self, async_client: AsyncIncrease) -> None:
card_settlement = await async_client.simulations.card_settlements.create(
card_id="card_oubs0hwk5rn6knuecxg2",
pending_transaction_id="pending_transaction_k1sfetcau2qbvjbzgju4",
)
assert_matches_type(Transaction, card_settlement, path=["response"])

@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncIncrease) -> None:
card_settlement = await async_client.simulations.card_settlements.create(
card_id="card_oubs0hwk5rn6knuecxg2",
pending_transaction_id="pending_transaction_k1sfetcau2qbvjbzgju4",
amount=1,
pending_transaction_id="pending_transaction_k1sfetcau2qbvjbzgju4",
)
assert_matches_type(Transaction, card_settlement, path=["response"])

@parametrize
async def test_raw_response_create(self, async_client: AsyncIncrease) -> None:
response = await async_client.simulations.card_settlements.with_raw_response.create(
card_id="card_oubs0hwk5rn6knuecxg2",
pending_transaction_id="pending_transaction_k1sfetcau2qbvjbzgju4",
)

assert response.is_closed is True
Expand All @@ -99,7 +94,6 @@ async def test_raw_response_create(self, async_client: AsyncIncrease) -> None:
async def test_streaming_response_create(self, async_client: AsyncIncrease) -> None:
async with async_client.simulations.card_settlements.with_streaming_response.create(
card_id="card_oubs0hwk5rn6knuecxg2",
pending_transaction_id="pending_transaction_k1sfetcau2qbvjbzgju4",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand Down
Loading
Loading