Skip to content

Commit 970b16d

Browse files
committed
Update with latest OpenAPI changes
1 parent 062b70c commit 970b16d

21 files changed

+530
-137
lines changed

.openapi-generator/FILES

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ moneykit/models/address.py
3030
moneykit/models/api_error_auth_expired_access_token_response.py
3131
moneykit/models/api_error_auth_unauthorized_response.py
3232
moneykit/models/api_error_rate_limit_exceeded_response.py
33+
moneykit/models/app_client_response.py
34+
moneykit/models/app_response.py
3335
moneykit/models/bacs_number.py
3436
moneykit/models/basic_account_details.py
3537
moneykit/models/body.py
@@ -38,7 +40,6 @@ moneykit/models/create_link_session_request.py
3840
moneykit/models/create_link_session_response.py
3941
moneykit/models/currency.py
4042
moneykit/models/cursor_pagination.py
41-
moneykit/models/customer_app.py
4243
moneykit/models/eft_number.py
4344
moneykit/models/email.py
4445
moneykit/models/exchange_token_request.py
@@ -60,7 +61,6 @@ moneykit/models/identity_response.py
6061
moneykit/models/institution.py
6162
moneykit/models/institution_error_not_found_response.py
6263
moneykit/models/international_number.py
63-
moneykit/models/introspect_client_response.py
6464
moneykit/models/investment_transaction_response.py
6565
moneykit/models/jwk_set.py
6666
moneykit/models/link_common.py
@@ -138,3 +138,5 @@ moneykit/py.typed
138138
moneykit/rest.py
139139
pyproject.toml
140140
test/__init__.py
141+
test/test_app_client_response.py
142+
test/test_app_response.py

moneykit/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "0.1.12"
17+
__version__ = "0.1.13"
1818

1919
# import apis into sdk package
2020
from moneykit.api.access_token_api import AccessTokenApi
@@ -59,6 +59,8 @@
5959
from moneykit.models.account_with_account_numbers import AccountWithAccountNumbers
6060
from moneykit.models.ach_number import AchNumber
6161
from moneykit.models.address import Address
62+
from moneykit.models.app_client_response import AppClientResponse
63+
from moneykit.models.app_response import AppResponse
6264
from moneykit.models.bacs_number import BacsNumber
6365
from moneykit.models.basic_account_details import BasicAccountDetails
6466
from moneykit.models.body import Body
@@ -67,7 +69,6 @@
6769
from moneykit.models.create_link_session_response import CreateLinkSessionResponse
6870
from moneykit.models.currency import Currency
6971
from moneykit.models.cursor_pagination import CursorPagination
70-
from moneykit.models.customer_app import CustomerApp
7172
from moneykit.models.eft_number import EftNumber
7273
from moneykit.models.email import Email
7374
from moneykit.models.exchange_token_request import ExchangeTokenRequest
@@ -93,7 +94,6 @@
9394
InstitutionErrorNotFoundResponse,
9495
)
9596
from moneykit.models.international_number import InternationalNumber
96-
from moneykit.models.introspect_client_response import IntrospectClientResponse
9797
from moneykit.models.investment_transaction_response import (
9898
InvestmentTransactionResponse,
9999
)

moneykit/api/access_token_api.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
from typing import Optional
2929

30+
from moneykit.models.app_client_response import AppClientResponse
3031
from moneykit.models.generate_access_token_response import GenerateAccessTokenResponse
31-
from moneykit.models.introspect_client_response import IntrospectClientResponse
3232
from moneykit.models.jwk_set import JWKSet
3333

3434
from moneykit.api_client import ApiClient
@@ -629,7 +629,7 @@ def instrospect_client(
629629
_content_type: Optional[StrictStr] = None,
630630
_headers: Optional[Dict[StrictStr, Any]] = None,
631631
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
632-
) -> IntrospectClientResponse:
632+
) -> AppClientResponse:
633633
"""/auth/introspect
634634
635635
Get details about the client and application associated with your `access_token`.
@@ -664,7 +664,7 @@ def instrospect_client(
664664
)
665665

666666
_response_types_map: Dict[str, Optional[str]] = {
667-
"200": "IntrospectClientResponse",
667+
"200": "AppClientResponse",
668668
"401": "Response401InstrospectClientAuthIntrospectGet",
669669
}
670670
response_data = self.api_client.call_api(
@@ -690,7 +690,7 @@ def instrospect_client_with_http_info(
690690
_content_type: Optional[StrictStr] = None,
691691
_headers: Optional[Dict[StrictStr, Any]] = None,
692692
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
693-
) -> ApiResponse[IntrospectClientResponse]:
693+
) -> ApiResponse[AppClientResponse]:
694694
"""/auth/introspect
695695
696696
Get details about the client and application associated with your `access_token`.
@@ -725,7 +725,7 @@ def instrospect_client_with_http_info(
725725
)
726726

727727
_response_types_map: Dict[str, Optional[str]] = {
728-
"200": "IntrospectClientResponse",
728+
"200": "AppClientResponse",
729729
"401": "Response401InstrospectClientAuthIntrospectGet",
730730
}
731731
response_data = self.api_client.call_api(
@@ -786,7 +786,7 @@ def instrospect_client_without_preload_content(
786786
)
787787

788788
_response_types_map: Dict[str, Optional[str]] = {
789-
"200": "IntrospectClientResponse",
789+
"200": "AppClientResponse",
790790
"401": "Response401InstrospectClientAuthIntrospectGet",
791791
}
792792
response_data = self.api_client.call_api(

moneykit/api/investments_api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def get_investment_transactions(
347347
Field(description="The page number to return."),
348348
] = None,
349349
size: Annotated[
350-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
350+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
351351
Field(description="The number of items to return per page."),
352352
] = None,
353353
start_date: Annotated[
@@ -456,7 +456,7 @@ def get_investment_transactions_with_http_info(
456456
Field(description="The page number to return."),
457457
] = None,
458458
size: Annotated[
459-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
459+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
460460
Field(description="The number of items to return per page."),
461461
] = None,
462462
start_date: Annotated[
@@ -565,7 +565,7 @@ def get_investment_transactions_without_preload_content(
565565
Field(description="The page number to return."),
566566
] = None,
567567
size: Annotated[
568-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
568+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
569569
Field(description="The number of items to return per page."),
570570
] = None,
571571
start_date: Annotated[

moneykit/api/transactions_api.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def get_transactions(
6464
Field(description="The page number to return."),
6565
] = None,
6666
size: Annotated[
67-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
67+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
6868
Field(description="The number of items to return per page."),
6969
] = None,
7070
start_date: Annotated[
@@ -173,7 +173,7 @@ def get_transactions_with_http_info(
173173
Field(description="The page number to return."),
174174
] = None,
175175
size: Annotated[
176-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
176+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
177177
Field(description="The number of items to return per page."),
178178
] = None,
179179
start_date: Annotated[
@@ -282,7 +282,7 @@ def get_transactions_without_preload_content(
282282
Field(description="The page number to return."),
283283
] = None,
284284
size: Annotated[
285-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
285+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
286286
Field(description="The number of items to return per page."),
287287
] = None,
288288
start_date: Annotated[
@@ -469,7 +469,7 @@ def get_transactions_diff(
469469
cursor: Annotated[
470470
Optional[StrictStr],
471471
Field(
472-
description="A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of customer cursors."
472+
description="A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of app cursors."
473473
),
474474
] = None,
475475
size: Annotated[
@@ -494,7 +494,7 @@ def get_transactions_diff(
494494
495495
:param id: The unique ID for this link. (required)
496496
:type id: str
497-
:param cursor: A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of customer cursors.
497+
:param cursor: A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of app cursors.
498498
:type cursor: str
499499
:param size: The number of items to return.
500500
:type size: int
@@ -555,7 +555,7 @@ def get_transactions_diff_with_http_info(
555555
cursor: Annotated[
556556
Optional[StrictStr],
557557
Field(
558-
description="A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of customer cursors."
558+
description="A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of app cursors."
559559
),
560560
] = None,
561561
size: Annotated[
@@ -580,7 +580,7 @@ def get_transactions_diff_with_http_info(
580580
581581
:param id: The unique ID for this link. (required)
582582
:type id: str
583-
:param cursor: A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of customer cursors.
583+
:param cursor: A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of app cursors.
584584
:type cursor: str
585585
:param size: The number of items to return.
586586
:type size: int
@@ -641,7 +641,7 @@ def get_transactions_diff_without_preload_content(
641641
cursor: Annotated[
642642
Optional[StrictStr],
643643
Field(
644-
description="A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of customer cursors."
644+
description="A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of app cursors."
645645
),
646646
] = None,
647647
size: Annotated[
@@ -666,7 +666,7 @@ def get_transactions_diff_without_preload_content(
666666
667667
:param id: The unique ID for this link. (required)
668668
:type id: str
669-
:param cursor: A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of customer cursors.
669+
:param cursor: A cursor value representing the last update requested. If included, the response will only return changes after this update. If omitted, a complete history of updates will be returned. This value must be stored by the client as we do not keep track of app cursors.
670670
:type cursor: str
671671
:param size: The number of items to return.
672672
:type size: int
@@ -802,7 +802,7 @@ def get_user_transactions(
802802
Field(description="The page number to return."),
803803
] = None,
804804
size: Annotated[
805-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
805+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
806806
Field(description="The number of items to return per page."),
807807
] = None,
808808
start_date: Annotated[
@@ -930,7 +930,7 @@ def get_user_transactions_with_http_info(
930930
Field(description="The page number to return."),
931931
] = None,
932932
size: Annotated[
933-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
933+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
934934
Field(description="The number of items to return per page."),
935935
] = None,
936936
start_date: Annotated[
@@ -1058,7 +1058,7 @@ def get_user_transactions_without_preload_content(
10581058
Field(description="The page number to return."),
10591059
] = None,
10601060
size: Annotated[
1061-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
1061+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
10621062
Field(description="The number of items to return per page."),
10631063
] = None,
10641064
start_date: Annotated[

moneykit/api/users_api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def get_user_transactions(
656656
Field(description="The page number to return."),
657657
] = None,
658658
size: Annotated[
659-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
659+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
660660
Field(description="The number of items to return per page."),
661661
] = None,
662662
start_date: Annotated[
@@ -784,7 +784,7 @@ def get_user_transactions_with_http_info(
784784
Field(description="The page number to return."),
785785
] = None,
786786
size: Annotated[
787-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
787+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
788788
Field(description="The number of items to return per page."),
789789
] = None,
790790
start_date: Annotated[
@@ -912,7 +912,7 @@ def get_user_transactions_without_preload_content(
912912
Field(description="The page number to return."),
913913
] = None,
914914
size: Annotated[
915-
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
915+
Optional[Annotated[int, Field(le=500, strict=True, ge=1)]],
916916
Field(description="The number of items to return per page."),
917917
] = None,
918918
start_date: Annotated[

moneykit/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(
8181
self.default_headers[header_name] = header_value
8282
self.cookie = cookie
8383
# Set default User-Agent.
84-
self.user_agent = "OpenAPI-Generator/0.1.12/python"
84+
self.user_agent = "OpenAPI-Generator/0.1.13/python"
8585
self.client_side_validation = configuration.client_side_validation
8686

8787
def __enter__(self):

moneykit/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def to_debug_report(self):
406406
"OS: {env}\n"
407407
"Python Version: {pyversion}\n"
408408
"Version of the API: 2023-02-18\n"
409-
"SDK Package Version: 0.1.12".format(
409+
"SDK Package Version: 0.1.13".format(
410410
env=sys.platform, pyversion=sys.version
411411
)
412412
)

moneykit/models/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
from moneykit.models.account_with_account_numbers import AccountWithAccountNumbers
3232
from moneykit.models.ach_number import AchNumber
3333
from moneykit.models.address import Address
34+
from moneykit.models.app_client_response import AppClientResponse
35+
from moneykit.models.app_response import AppResponse
3436
from moneykit.models.bacs_number import BacsNumber
3537
from moneykit.models.basic_account_details import BasicAccountDetails
3638
from moneykit.models.body import Body
@@ -39,7 +41,6 @@
3941
from moneykit.models.create_link_session_response import CreateLinkSessionResponse
4042
from moneykit.models.currency import Currency
4143
from moneykit.models.cursor_pagination import CursorPagination
42-
from moneykit.models.customer_app import CustomerApp
4344
from moneykit.models.eft_number import EftNumber
4445
from moneykit.models.email import Email
4546
from moneykit.models.exchange_token_request import ExchangeTokenRequest
@@ -65,7 +66,6 @@
6566
InstitutionErrorNotFoundResponse,
6667
)
6768
from moneykit.models.international_number import InternationalNumber
68-
from moneykit.models.introspect_client_response import IntrospectClientResponse
6969
from moneykit.models.investment_transaction_response import (
7070
InvestmentTransactionResponse,
7171
)

0 commit comments

Comments
 (0)