Skip to content

Commit 55c8fa0

Browse files
committed
Update with latest OpenAPI changes
1 parent 5bc627b commit 55c8fa0

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

moneykit/api/accounts_api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def get_accounts(
598598
) -> GetAccountsResponse:
599599
"""/links/{id}/accounts
600600
601-
Returns a list of open, permissioned accounts associated with a <a href=#tag/Links>link</a>
601+
Returns a list of open, permissioned accounts associated with a <a href=#tag/Links>link</a>.
602602
603603
:param id: The unique ID for this link. (required)
604604
:type id: str
@@ -675,7 +675,7 @@ def get_accounts_with_http_info(
675675
) -> ApiResponse[GetAccountsResponse]:
676676
"""/links/{id}/accounts
677677
678-
Returns a list of open, permissioned accounts associated with a <a href=#tag/Links>link</a>
678+
Returns a list of open, permissioned accounts associated with a <a href=#tag/Links>link</a>.
679679
680680
:param id: The unique ID for this link. (required)
681681
:type id: str
@@ -752,7 +752,7 @@ def get_accounts_without_preload_content(
752752
) -> RESTResponseType:
753753
"""/links/{id}/accounts
754754
755-
Returns a list of open, permissioned accounts associated with a <a href=#tag/Links>link</a>
755+
Returns a list of open, permissioned accounts associated with a <a href=#tag/Links>link</a>.
756756
757757
:param id: The unique ID for this link. (required)
758758
:type id: str

moneykit/models/account_balances.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import re # noqa: F401
1818
import json
1919

20-
20+
from datetime import datetime
2121
from typing import Any, ClassVar, Dict, List, Optional, Union
2222
from pydantic import BaseModel, StrictFloat, StrictInt
2323
from pydantic import Field
@@ -47,8 +47,18 @@ class AccountBalances(BaseModel):
4747
default=None,
4848
description="The credit limit on the account. Typically this exists only for credit-type accounts. <p>In some cases, this may represent the overdraft limit for depository accounts.",
4949
)
50+
balance_date: Optional[datetime] = Field(
51+
default=None,
52+
description="The date that the balance was captured at. This may not include a time. When this field is null, the balance was captured at an unknown time.",
53+
)
5054
additional_properties: Dict[str, Any] = {}
51-
__properties: ClassVar[List[str]] = ["currency", "available", "current", "limit"]
55+
__properties: ClassVar[List[str]] = [
56+
"currency",
57+
"available",
58+
"current",
59+
"limit",
60+
"balance_date",
61+
]
5262

5363
model_config = {"populate_by_name": True, "validate_assignment": True}
5464

@@ -106,6 +116,7 @@ def from_dict(cls, obj: Dict) -> Self:
106116
"available": obj.get("available"),
107117
"current": obj.get("current"),
108118
"limit": obj.get("limit"),
119+
"balance_date": obj.get("balance_date"),
109120
}
110121
)
111122
# store additional fields in additional_properties

moneykit/models/link_common.py

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from moneykit.models.link_error import LinkError
2525
from moneykit.models.link_products import LinkProducts
2626
from moneykit.models.link_state import LinkState
27+
from moneykit.models.product import Product
2728

2829
try:
2930
from typing import Self
@@ -54,6 +55,7 @@ class LinkCommon(BaseModel):
5455
)
5556
tags: Optional[List[StrictStr]] = None
5657
products: LinkProducts
58+
available_products: List[Product]
5759
additional_properties: Dict[str, Any] = {}
5860
__properties: ClassVar[List[str]] = [
5961
"link_id",
@@ -65,6 +67,7 @@ class LinkCommon(BaseModel):
6567
"last_synced_at",
6668
"tags",
6769
"products",
70+
"available_products",
6871
]
6972

7073
model_config = {"populate_by_name": True, "validate_assignment": True}
@@ -133,6 +136,7 @@ def from_dict(cls, obj: Dict) -> Self:
133136
"products": LinkProducts.from_dict(obj.get("products"))
134137
if obj.get("products") is not None
135138
else None,
139+
"available_products": obj.get("available_products"),
136140
}
137141
)
138142
# store additional fields in additional_properties

moneykit/models/link_response.py

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from moneykit.models.link_error import LinkError
2525
from moneykit.models.link_products import LinkProducts
2626
from moneykit.models.link_state import LinkState
27+
from moneykit.models.product import Product
2728
from moneykit.models.provider import Provider
2829

2930
try:
@@ -55,6 +56,7 @@ class LinkResponse(BaseModel):
5556
)
5657
tags: Optional[List[StrictStr]] = None
5758
products: LinkProducts
59+
available_products: List[Product]
5860
provider: Provider
5961
webhook: Optional[StrictStr] = Field(
6062
default=None, description="The webhook url assigned to this link."
@@ -70,6 +72,7 @@ class LinkResponse(BaseModel):
7072
"last_synced_at",
7173
"tags",
7274
"products",
75+
"available_products",
7376
"provider",
7477
"webhook",
7578
]
@@ -140,6 +143,7 @@ def from_dict(cls, obj: Dict) -> Self:
140143
"products": LinkProducts.from_dict(obj.get("products"))
141144
if obj.get("products") is not None
142145
else None,
146+
"available_products": obj.get("available_products"),
143147
"provider": obj.get("provider"),
144148
"webhook": obj.get("webhook"),
145149
}

0 commit comments

Comments
 (0)