Skip to content

Commit 02607cd

Browse files
feat(api): api update (#1562)
Co-authored-by: increase-releases[bot] <285999079+increase-releases[bot]@users.noreply.github.com>
1 parent 7859666 commit 02607cd

7 files changed

Lines changed: 30 additions & 30 deletions

File tree

‎.stats.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
configured_endpoints: 239
2-
openapi_spec_hash: cdae7a8b718c33e9824581db8c2dc8d2
2+
openapi_spec_hash: e4f648ab7005edc0efad68f6a4e9847c
33
config_hash: 1ca082e374ef7000e2a5971e8da740e0

‎scripts/mock‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎src/increase/types/balance_lookup.py‎

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,18 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
4-
from datetime import datetime
3+
from typing import TYPE_CHECKING, Dict, Optional
54
from typing_extensions import Literal
65

7-
from .._models import BaseModel
8-
9-
__all__ = ["BalanceLookup", "Loan", "LoanReceivables"]
10-
6+
from pydantic import Field as FieldInfo
117

12-
class LoanReceivables(BaseModel):
13-
"""The receivables balances for the loan."""
14-
15-
purchasable_balance: int
16-
"""The balance of seasoned receivables available to be purchased."""
8+
from .._models import BaseModel
179

18-
purchased_balance: int
19-
"""The balance of receivables that have been purchased."""
10+
__all__ = ["BalanceLookup", "Loan"]
2011

2112

2213
class Loan(BaseModel):
2314
"""The loan balances for the Account."""
2415

25-
due_at: Optional[datetime] = None
26-
"""
27-
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the loan
28-
payment is due.
29-
"""
30-
31-
due_balance: int
32-
"""The total amount due on the loan."""
33-
3416
due_fees: Optional[int] = None
3517
"""The fees on the loan that are due and unpaid."""
3618

@@ -49,11 +31,17 @@ class Loan(BaseModel):
4931
not_due_principal: Optional[int] = None
5032
"""The principal on the loan that is not yet due."""
5133

52-
past_due_balance: int
53-
"""The amount past due on the loan."""
54-
55-
receivables: Optional[LoanReceivables] = None
56-
"""The receivables balances for the loan."""
34+
if TYPE_CHECKING:
35+
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
36+
# value to this field, so for compatibility we avoid doing it at runtime.
37+
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
38+
39+
# Stub to indicate that arbitrary properties are accepted.
40+
# To access properties that are not valid identifiers you can use `getattr`, e.g.
41+
# `getattr(obj, '$type')`
42+
def __getattr__(self, attr: str) -> object: ...
43+
else:
44+
__pydantic_extra__: Dict[str, object]
5745

5846

5947
class BalanceLookup(BaseModel):

‎src/increase/types/declined_transaction.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,7 @@ class SourceInboundRealTimePaymentsTransferDecline(BaseModel):
13561356
"group_locked",
13571357
"entity_not_active",
13581358
"real_time_payments_not_enabled",
1359+
"transaction_not_allowed",
13591360
]
13601361
"""Why the transfer was declined.
13611362
@@ -1366,6 +1367,8 @@ class SourceInboundRealTimePaymentsTransferDecline(BaseModel):
13661367
- `entity_not_active` - The account's entity is not active.
13671368
- `real_time_payments_not_enabled` - Your account is not enabled to receive
13681369
Real-Time Payments transfers.
1370+
- `transaction_not_allowed` - The transaction is not allowed per Increase's
1371+
terms.
13691372
"""
13701373

13711374
transaction_identification: str

‎src/increase/types/digital_wallet_token.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ class DigitalWalletToken(BaseModel):
147147
dynamic_primary_account_number: Optional[DynamicPrimaryAccountNumber] = None
148148
"""The redacted Dynamic Primary Account Number."""
149149

150+
primary_account_number_reference_identifier: str
151+
"""The reference identifier assigned by the card network to the underlying Card."""
152+
150153
status: Literal["active", "inactive", "suspended", "deactivated", "declined"]
151154
"""This indicates if payments can be made with the Digital Wallet Token.
152155
@@ -158,6 +161,9 @@ class DigitalWalletToken(BaseModel):
158161
- `declined` - The digital wallet token was declined during provisioning.
159162
"""
160163

164+
token_reference_identifier: str
165+
"""The reference identifier assigned by the card network to the token."""
166+
161167
token_requestor: Literal["apple_pay", "google_pay", "samsung_pay", "unknown"]
162168
"""The digital wallet app being used.
163169

‎src/increase/types/inbound_real_time_payments_transfer.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Decline(BaseModel):
3737
"group_locked",
3838
"entity_not_active",
3939
"real_time_payments_not_enabled",
40+
"transaction_not_allowed",
4041
]
4142
"""The reason for the transfer decline.
4243
@@ -47,6 +48,8 @@ class Decline(BaseModel):
4748
- `entity_not_active` - The account's entity is not active.
4849
- `real_time_payments_not_enabled` - Your account is not enabled to receive
4950
Real-Time Payments transfers.
51+
- `transaction_not_allowed` - The transaction is not allowed per Increase's
52+
terms.
5053
"""
5154

5255

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)