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: 423475ef9f827ae1387f70b21b14e510
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
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
53 changes: 50 additions & 3 deletions src/increase/types/card_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ class ElementCardAuthenticationChallenge(BaseModel):

- `text_message` - The one-time code was sent via text message.
- `email` - The one-time code was sent via email.
- `none_available` - The one-time code was not successfully delivered.
- `none_available` - The one-time code could not be delivered because the card
has no phone number or email on file.
"""

verification_value: Optional[str] = None
Expand Down Expand Up @@ -1143,6 +1144,7 @@ class ElementCardAuthorizationSchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -1232,6 +1234,8 @@ class ElementCardAuthorizationSchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down Expand Up @@ -2079,6 +2083,7 @@ class ElementCardBalanceInquirySchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -2168,6 +2173,8 @@ class ElementCardBalanceInquirySchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down Expand Up @@ -2868,6 +2875,7 @@ class ElementCardDeclineSchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -2957,6 +2965,8 @@ class ElementCardDeclineSchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down Expand Up @@ -3823,6 +3833,7 @@ class ElementCardFinancialSchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -3912,6 +3923,8 @@ class ElementCardFinancialSchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down Expand Up @@ -4295,6 +4308,7 @@ class ElementCardFuelConfirmationSchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -4384,6 +4398,8 @@ class ElementCardFuelConfirmationSchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down Expand Up @@ -4750,6 +4766,7 @@ class ElementCardIncrementSchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -4839,6 +4856,8 @@ class ElementCardIncrementSchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down Expand Up @@ -5770,7 +5789,14 @@ class ElementCardRefundPurchaseDetails(BaseModel):
"""An identifier from the merchant for the purchase to the issuer and cardholder."""

purchase_identifier_format: Optional[
Literal["free_text", "order_number", "rental_agreement_number", "hotel_folio_number", "invoice_number"]
Literal[
"free_text",
"order_number",
"rental_agreement_number",
"hotel_folio_number",
"invoice_number",
"visa_recurrent_reference_identifier",
]
] = None
"""The format of the purchase identifier.

Expand All @@ -5779,6 +5805,7 @@ class ElementCardRefundPurchaseDetails(BaseModel):
- `rental_agreement_number` - Rental agreement number
- `hotel_folio_number` - Hotel folio number
- `invoice_number` - Invoice number
- `visa_recurrent_reference_identifier` - Visa Recurrent reference identifier
"""

travel: Optional[ElementCardRefundPurchaseDetailsTravel] = None
Expand Down Expand Up @@ -5833,6 +5860,7 @@ class ElementCardRefundSchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -5922,6 +5950,8 @@ class ElementCardRefundSchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down Expand Up @@ -6123,6 +6153,7 @@ class ElementCardReversalSchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -6212,6 +6243,8 @@ class ElementCardReversalSchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down Expand Up @@ -7171,7 +7204,14 @@ class ElementCardSettlementPurchaseDetails(BaseModel):
"""An identifier from the merchant for the purchase to the issuer and cardholder."""

purchase_identifier_format: Optional[
Literal["free_text", "order_number", "rental_agreement_number", "hotel_folio_number", "invoice_number"]
Literal[
"free_text",
"order_number",
"rental_agreement_number",
"hotel_folio_number",
"invoice_number",
"visa_recurrent_reference_identifier",
]
] = None
"""The format of the purchase identifier.

Expand All @@ -7180,6 +7220,7 @@ class ElementCardSettlementPurchaseDetails(BaseModel):
- `rental_agreement_number` - Rental agreement number
- `hotel_folio_number` - Hotel folio number
- `invoice_number` - Invoice number
- `visa_recurrent_reference_identifier` - Visa Recurrent reference identifier
"""

travel: Optional[ElementCardSettlementPurchaseDetailsTravel] = None
Expand Down Expand Up @@ -7234,6 +7275,7 @@ class ElementCardSettlementSchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -7323,6 +7365,8 @@ class ElementCardSettlementSchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down Expand Up @@ -7950,6 +7994,7 @@ class ElementCardValidationSchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -8039,6 +8084,8 @@ class ElementCardValidationSchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down
4 changes: 3 additions & 1 deletion src/increase/types/check_deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class DepositAdjustment(BaseModel):
amount: int
"""The amount of the adjustment."""

reason: Literal["wrong_payee_credit", "adjusted_amount", "non_conforming_item", "paid"]
reason: Literal["wrong_payee_credit", "adjusted_amount", "non_conforming_item", "paid", "duplicate_entry"]
"""The reason for the adjustment.

- `wrong_payee_credit` - The check was deposited to the wrong payee and the
Expand All @@ -97,6 +97,8 @@ class DepositAdjustment(BaseModel):
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.
"""

transaction_id: str
Expand Down
3 changes: 3 additions & 0 deletions src/increase/types/declined_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ class SourceCardDeclineSchemeFee(BaseModel):
"visa_community_growth_acceleration_program",
"visa_processing_guarantee_commercial_credit",
"pulse_switch_fee",
"pulse_tokenization_fee",
]
"""The type of fee being assessed.

Expand Down Expand Up @@ -703,6 +704,8 @@ class SourceCardDeclineSchemeFee(BaseModel):
for Commercial Credit cards.
- `pulse_switch_fee` - Pulse Switch Fee is a fee charged by the Pulse network
for processing transactions on its network.
- `pulse_tokenization_fee` - Pulse Tokenization Fee is a fee charged by the
Pulse network for processing tokenized transactions on its network.
"""

fixed_component: Optional[str] = None
Expand Down
Loading
Loading