Skip to content
Open
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: 254
openapi_spec_hash: b502688710d2e1e332c41ca7adc8aabf
openapi_spec_hash: 554ad31b4be955204857435cc2593074
config_hash: f0e1844d06c76a9e145f7986d993dda6
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ Error codes are as follows:
### Retries

Certain errors are automatically retried 2 times by default, with a short exponential backoff.
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout,
429 Rate Limit, and >=500 Internal errors are all retried by default.

You can use the `max_retries` option to configure or disable retry settings:
Expand Down
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions src/increase/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,11 +774,6 @@ def _should_retry(self, response: httpx.Response) -> bool:
log.debug("Retrying due to status code %i", response.status_code)
return True

# Retry on lock timeouts.
if response.status_code == 409:
log.debug("Retrying due to status code %i", response.status_code)
return True

# Retry on rate limits.
if response.status_code == 429:
log.debug("Retrying due to status code %i", response.status_code)
Expand Down
18 changes: 10 additions & 8 deletions src/increase/resources/digital_card_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def create(
background_image_file_id: str,
card_description: str,
description: str,
issuer_name: str,
contact_email: str | Omit = omit,
contact_name: str | Omit = omit,
contact_phone: str | Omit = omit,
contact_website: str | Omit = omit,
text_color: digital_card_profile_create_params.TextColor | Omit = omit,
Expand All @@ -78,10 +78,11 @@ def create(

description: A description you can use to identify the Card Profile.

issuer_name: A user-facing description for whoever is issuing the card.

contact_email: An email address the user can contact to receive support for their card.

contact_name: The name of your company or card program, shown to the user as who to contact
for support with their card.

contact_phone: A phone number the user can contact to receive support for their card.

contact_website: A website the user can visit to view and receive support for their card.
Expand All @@ -106,8 +107,8 @@ def create(
"background_image_file_id": background_image_file_id,
"card_description": card_description,
"description": description,
"issuer_name": issuer_name,
"contact_email": contact_email,
"contact_name": contact_name,
"contact_phone": contact_phone,
"contact_website": contact_website,
"text_color": text_color,
Expand Down Expand Up @@ -385,8 +386,8 @@ async def create(
background_image_file_id: str,
card_description: str,
description: str,
issuer_name: str,
contact_email: str | Omit = omit,
contact_name: str | Omit = omit,
contact_phone: str | Omit = omit,
contact_website: str | Omit = omit,
text_color: digital_card_profile_create_params.TextColor | Omit = omit,
Expand All @@ -410,10 +411,11 @@ async def create(

description: A description you can use to identify the Card Profile.

issuer_name: A user-facing description for whoever is issuing the card.

contact_email: An email address the user can contact to receive support for their card.

contact_name: The name of your company or card program, shown to the user as who to contact
for support with their card.

contact_phone: A phone number the user can contact to receive support for their card.

contact_website: A website the user can visit to view and receive support for their card.
Expand All @@ -438,8 +440,8 @@ async def create(
"background_image_file_id": background_image_file_id,
"card_description": card_description,
"description": description,
"issuer_name": issuer_name,
"contact_email": contact_email,
"contact_name": contact_name,
"contact_phone": contact_phone,
"contact_website": contact_website,
"text_color": text_color,
Expand Down
8 changes: 4 additions & 4 deletions src/increase/resources/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def list(

cursor: Return the page of entries after this one.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.
limit: Limit the size of the list that is returned. The default is 100 objects and the
maximum is 1,000.

Defaults to `100`.

Expand Down Expand Up @@ -250,8 +250,8 @@ def list(

cursor: Return the page of entries after this one.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.
limit: Limit the size of the list that is returned. The default is 100 objects and the
maximum is 1,000.

Defaults to `100`.

Expand Down
12 changes: 10 additions & 2 deletions src/increase/resources/simulations/check_deposits.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def adjustment(
check_deposit_id: str,
*,
amount: int | Omit = omit,
reason: Literal["late_return", "wrong_payee_credit", "adjusted_amount", "non_conforming_item", "paid"]
reason: Literal[
"late_return", "wrong_payee_credit", "adjusted_amount", "non_conforming_item", "paid", "duplicate_entry"
]
| 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.
Expand Down Expand Up @@ -84,6 +86,8 @@ def adjustment(
usually happens for e.g., low quality images.
- `paid` - The check has already been deposited elsewhere and so this is a
duplicate.
- `duplicate_entry` - A previous adjustment for the check was applied twice and
the duplicate has been reversed.

extra_headers: Send extra headers

Expand Down Expand Up @@ -280,7 +284,9 @@ async def adjustment(
check_deposit_id: str,
*,
amount: int | Omit = omit,
reason: Literal["late_return", "wrong_payee_credit", "adjusted_amount", "non_conforming_item", "paid"]
reason: Literal[
"late_return", "wrong_payee_credit", "adjusted_amount", "non_conforming_item", "paid", "duplicate_entry"
]
| 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.
Expand Down Expand Up @@ -316,6 +322,8 @@ async def adjustment(
usually happens for e.g., low quality images.
- `paid` - The check has already been deposited elsewhere and so this is a
duplicate.
- `duplicate_entry` - A previous adjustment for the check was applied twice and
the duplicate has been reversed.

extra_headers: Send extra headers

Expand Down
8 changes: 6 additions & 2 deletions src/increase/resources/simulations/inbound_check_deposits.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def adjustment(
inbound_check_deposit_id: str,
*,
amount: int | Omit = omit,
reason: Literal["late_return", "wrong_payee_credit"] | Omit = omit,
reason: Literal["late_return", "wrong_payee_credit", "duplicate_entry"] | 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 Down Expand Up @@ -199,6 +199,8 @@ def adjustment(
institution has responded with a Late Return Claim.
- `wrong_payee_credit` - The check was deposited to the wrong payee and the
depositing institution has reimbursed the funds with a Wrong Payee Credit.
- `duplicate_entry` - A previous adjustment for the check was applied twice and
the duplicate has been reversed.

extra_headers: Send extra headers

Expand Down Expand Up @@ -384,7 +386,7 @@ async def adjustment(
inbound_check_deposit_id: str,
*,
amount: int | Omit = omit,
reason: Literal["late_return", "wrong_payee_credit"] | Omit = omit,
reason: Literal["late_return", "wrong_payee_credit", "duplicate_entry"] | 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 Down Expand Up @@ -413,6 +415,8 @@ async def adjustment(
institution has responded with a Late Return Claim.
- `wrong_payee_credit` - The check was deposited to the wrong payee and the
depositing institution has reimbursed the funds with a Wrong Payee Credit.
- `duplicate_entry` - A previous adjustment for the check was applied twice and
the duplicate has been reversed.

extra_headers: Send extra headers

Expand Down
Loading
Loading