moovio_sdk 0.4.2__py3-none-any.whl → 0.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- moovio_sdk/_version.py +3 -3
- moovio_sdk/models/components/dispute.py +5 -0
- moovio_sdk/models/components/disputeevidenceresponse.py +7 -0
- moovio_sdk/utils/__init__.py +1 -0
- moovio_sdk/utils/datetimes.py +23 -0
- moovio_sdk/utils/serializers.py +32 -3
- {moovio_sdk-0.4.2.dist-info → moovio_sdk-0.6.0.dist-info}/METADATA +1 -4
- {moovio_sdk-0.4.2.dist-info → moovio_sdk-0.6.0.dist-info}/RECORD +9 -8
- {moovio_sdk-0.4.2.dist-info → moovio_sdk-0.6.0.dist-info}/WHEEL +0 -0
moovio_sdk/_version.py
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
import importlib.metadata
|
4
4
|
|
5
5
|
__title__: str = "moovio_sdk"
|
6
|
-
__version__: str = "0.
|
6
|
+
__version__: str = "0.6.0"
|
7
7
|
__openapi_doc_version__: str = "latest"
|
8
|
-
__gen_version__: str = "2.
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.
|
8
|
+
__gen_version__: str = "2.591.1"
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.6.0 2.591.1 latest moovio_sdk"
|
10
10
|
|
11
11
|
try:
|
12
12
|
if __package__ is not None:
|
@@ -38,6 +38,7 @@ class DisputeTypedDict(TypedDict):
|
|
38
38
|
created_on: datetime
|
39
39
|
network_reason_description: NotRequired[str]
|
40
40
|
r"""Provides detail on the card network's categorization of the dispute."""
|
41
|
+
submitted_on: NotRequired[datetime]
|
41
42
|
|
42
43
|
|
43
44
|
class Dispute(BaseModel):
|
@@ -74,3 +75,7 @@ class Dispute(BaseModel):
|
|
74
75
|
Optional[str], pydantic.Field(alias="networkReasonDescription")
|
75
76
|
] = None
|
76
77
|
r"""Provides detail on the card network's categorization of the dispute."""
|
78
|
+
|
79
|
+
submitted_on: Annotated[Optional[datetime], pydantic.Field(alias="submittedOn")] = (
|
80
|
+
None
|
81
|
+
)
|
@@ -23,6 +23,8 @@ class DisputeEvidenceResponseTypedDict(TypedDict):
|
|
23
23
|
r"""For file evidence, the name of the file."""
|
24
24
|
size: NotRequired[int]
|
25
25
|
r"""For file evidence, the size of the file."""
|
26
|
+
submitted_on: NotRequired[datetime]
|
27
|
+
r"""When the evidence was submitted for review."""
|
26
28
|
|
27
29
|
|
28
30
|
class DisputeEvidenceResponse(BaseModel):
|
@@ -47,3 +49,8 @@ class DisputeEvidenceResponse(BaseModel):
|
|
47
49
|
|
48
50
|
size: Optional[int] = None
|
49
51
|
r"""For file evidence, the size of the file."""
|
52
|
+
|
53
|
+
submitted_on: Annotated[Optional[datetime], pydantic.Field(alias="submittedOn")] = (
|
54
|
+
None
|
55
|
+
)
|
56
|
+
r"""When the evidence was submitted for review."""
|
moovio_sdk/utils/__init__.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from .annotations import get_discriminator
|
4
|
+
from .datetimes import parse_datetime
|
4
5
|
from .enums import OpenEnumMeta
|
5
6
|
from .headers import get_headers, get_response_headers
|
6
7
|
from .metadata import (
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from datetime import datetime
|
4
|
+
import sys
|
5
|
+
|
6
|
+
|
7
|
+
def parse_datetime(datetime_string: str) -> datetime:
|
8
|
+
"""
|
9
|
+
Convert a RFC 3339 / ISO 8601 formatted string into a datetime object.
|
10
|
+
Python versions 3.11 and later support parsing RFC 3339 directly with
|
11
|
+
datetime.fromisoformat(), but for earlier versions, this function
|
12
|
+
encapsulates the necessary extra logic.
|
13
|
+
"""
|
14
|
+
# Python 3.11 and later can parse RFC 3339 directly
|
15
|
+
if sys.version_info >= (3, 11):
|
16
|
+
return datetime.fromisoformat(datetime_string)
|
17
|
+
|
18
|
+
# For Python 3.10 and earlier, a common ValueError is trailing 'Z' suffix,
|
19
|
+
# so fix that upfront.
|
20
|
+
if datetime_string.endswith("Z"):
|
21
|
+
datetime_string = datetime_string[:-1] + "+00:00"
|
22
|
+
|
23
|
+
return datetime.fromisoformat(datetime_string)
|
moovio_sdk/utils/serializers.py
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from decimal import Decimal
|
4
|
+
import functools
|
4
5
|
import json
|
5
|
-
|
6
|
-
import
|
6
|
+
import typing
|
7
|
+
from typing import Any, Dict, List, Tuple, Union, get_args
|
8
|
+
import typing_extensions
|
7
9
|
from typing_extensions import get_origin
|
10
|
+
|
11
|
+
import httpx
|
8
12
|
from pydantic import ConfigDict, create_model
|
9
13
|
from pydantic_core import from_json
|
10
|
-
from typing_inspection.typing_objects import is_union
|
11
14
|
|
12
15
|
from ..types.basemodel import BaseModel, Nullable, OptionalNullable, Unset
|
13
16
|
|
@@ -185,6 +188,13 @@ def is_nullable(field):
|
|
185
188
|
return False
|
186
189
|
|
187
190
|
|
191
|
+
def is_union(obj: object) -> bool:
|
192
|
+
"""
|
193
|
+
Returns True if the given object is a typing.Union or typing_extensions.Union.
|
194
|
+
"""
|
195
|
+
return any(obj is typing_obj for typing_obj in _get_typing_objects_by_name_of("Union"))
|
196
|
+
|
197
|
+
|
188
198
|
def stream_to_text(stream: httpx.Response) -> str:
|
189
199
|
return "".join(stream.iter_text())
|
190
200
|
|
@@ -217,3 +227,22 @@ def _contains_pydantic_model(data: Any) -> bool:
|
|
217
227
|
return any(_contains_pydantic_model(value) for value in data.values())
|
218
228
|
|
219
229
|
return False
|
230
|
+
|
231
|
+
|
232
|
+
@functools.cache
|
233
|
+
def _get_typing_objects_by_name_of(name: str) -> Tuple[Any, ...]:
|
234
|
+
"""
|
235
|
+
Get typing objects by name from typing and typing_extensions.
|
236
|
+
Reference: https://typing-extensions.readthedocs.io/en/latest/#runtime-use-of-types
|
237
|
+
"""
|
238
|
+
result = tuple(
|
239
|
+
getattr(module, name)
|
240
|
+
for module in (typing, typing_extensions)
|
241
|
+
if hasattr(module, name)
|
242
|
+
)
|
243
|
+
if not result:
|
244
|
+
raise ValueError(
|
245
|
+
f"Neither typing nor typing_extensions has an object called {name!r}"
|
246
|
+
)
|
247
|
+
return result
|
248
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: moovio_sdk
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.6.0
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Author: Speakeasy
|
6
6
|
Requires-Python: >=3.9
|
@@ -10,11 +10,8 @@ Classifier: Programming Language :: Python :: 3.10
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
13
|
-
Requires-Dist: eval-type-backport (>=0.2.0)
|
14
13
|
Requires-Dist: httpx (>=0.28.1)
|
15
14
|
Requires-Dist: pydantic (>=2.11.2)
|
16
|
-
Requires-Dist: python-dateutil (>=2.8.2)
|
17
|
-
Requires-Dist: typing-inspection (>=0.4.0)
|
18
15
|
Project-URL: Documentation, https://docs.moov.io/
|
19
16
|
Project-URL: Homepage, https://moov.io/
|
20
17
|
Project-URL: Repository, https://github.com/moovfinancial/moov-python.git
|
@@ -3,7 +3,7 @@ moovio_sdk/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c
|
|
3
3
|
moovio_sdk/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
4
4
|
moovio_sdk/_hooks/sdkhooks.py,sha256=2XuMgiV2N7UE7lN00Is-c3spxVWigYitXS6xSmS_Qow,2560
|
5
5
|
moovio_sdk/_hooks/types.py,sha256=xAyw_8EoIrUHL-zLoqXrogOkBq1ZFICNGZfp9xne2ww,2813
|
6
|
-
moovio_sdk/_version.py,sha256=
|
6
|
+
moovio_sdk/_version.py,sha256=oKwq0p_CK7yfsgkLgUMNViVpldSG3_S2XYNe8FIYu3Y,464
|
7
7
|
moovio_sdk/account_terminal_applications.py,sha256=7Td1lpM3mqBQGPLoU5fLWZKRII1CjWikuUdD5bll4NI,41863
|
8
8
|
moovio_sdk/accounts.py,sha256=owJJuChHd-iucAiR4JWlaMYD1oKvjzCYSO6rckje6vs,107907
|
9
9
|
moovio_sdk/adjustments.py,sha256=m7S8Vn0KB4bMaTQTX50sCPvNZr72kjA6DTLxeJ2U-fc,19272
|
@@ -168,8 +168,8 @@ moovio_sdk/models/components/customersupporterror.py,sha256=0tHko8wHUGwaEcPq7lOg
|
|
168
168
|
moovio_sdk/models/components/debitholdperiod.py,sha256=nAcdMuNrf-6bcXsPf68y0kfEx5qrS7b4OMQIOh-O1o0,400
|
169
169
|
moovio_sdk/models/components/disbursementpaymentmethodtype.py,sha256=RoBMOcxI6SvUfDiq2VR8_Dw7r4ksSlcZEpFgeG4aKQ0,398
|
170
170
|
moovio_sdk/models/components/displayoptionserror.py,sha256=1s3Pbi9-bPDh-8jWqI9r7tOKWz3cBltbWk_KCWTGxQE,621
|
171
|
-
moovio_sdk/models/components/dispute.py,sha256=
|
172
|
-
moovio_sdk/models/components/disputeevidenceresponse.py,sha256=
|
171
|
+
moovio_sdk/models/components/dispute.py,sha256=lIe4ZExnoa4legwsUf5nIRevH6FM9ETqS0zWjaazfwY,2880
|
172
|
+
moovio_sdk/models/components/disputeevidenceresponse.py,sha256=OLWtggNhs6Jtn1l37GGwFlhUu5E0isVUiinYiQt1EJg,1909
|
173
173
|
moovio_sdk/models/components/disputephase.py,sha256=bGzDKXSUgWBAx1YFpUZDk6PfGr8X9snXQecOYryV1BE,338
|
174
174
|
moovio_sdk/models/components/disputestatus.py,sha256=3DW812znEW0gK90iNPhJhnD1LtP9Qyq9UjAxjTAPGYs,590
|
175
175
|
moovio_sdk/models/components/disputetransferdetails.py,sha256=77N-ZybluX_LQojANDl2U5R5U2Ks5UzB-nms9-BKpsA,476
|
@@ -580,8 +580,9 @@ moovio_sdk/transfers.py,sha256=aYGm2hNcuSgU0Z-iCxnRTQcT1NFo6wqewk6eyF9caPE,13313
|
|
580
580
|
moovio_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
581
581
|
moovio_sdk/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
|
582
582
|
moovio_sdk/underwriting.py,sha256=Q3bOkxgz3syy6YgdTKK_DTAqK6lV_uawgVZZX3iPuqc,24353
|
583
|
-
moovio_sdk/utils/__init__.py,sha256=
|
583
|
+
moovio_sdk/utils/__init__.py,sha256=Ah6w4JB18yOm1wTmG0IZn0fzTcIJCFOhLcT2B5nmHi8,2494
|
584
584
|
moovio_sdk/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
|
585
|
+
moovio_sdk/utils/datetimes.py,sha256=oppAA5e3V35pQov1-FNLKxAaNF1_XWi-bQtyjjql3H8,855
|
585
586
|
moovio_sdk/utils/enums.py,sha256=REU6ydF8gsVL3xaeGX4sMNyiL3q5P9h29-f6Sa6luAE,2633
|
586
587
|
moovio_sdk/utils/eventstreaming.py,sha256=LtcrfJYw4nP2Oe4Wl0-cEURLzRGYReRGWNFY5wYECIE,6186
|
587
588
|
moovio_sdk/utils/forms.py,sha256=YSSijXrsM2nfrRHlPQejh1uRRKfoILomHL3d9xpJiy8,6058
|
@@ -592,11 +593,11 @@ moovio_sdk/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRlorRHE
|
|
592
593
|
moovio_sdk/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,2101
|
593
594
|
moovio_sdk/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
|
594
595
|
moovio_sdk/utils/security.py,sha256=BsH7JYMMBVykWbbF_zg6piMh0R8TPidQ8D2_RbzlKs8,6104
|
595
|
-
moovio_sdk/utils/serializers.py,sha256=
|
596
|
+
moovio_sdk/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
|
596
597
|
moovio_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
597
598
|
moovio_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
598
599
|
moovio_sdk/wallet_transactions.py,sha256=gP5AYXIn4LkCtm1ncheuWGxZCK0d67b20UIDheo_Khg,24943
|
599
600
|
moovio_sdk/wallets.py,sha256=5RcHiuHxBDi2YmK0V83s1hwEN-29aFar17LsQIYXpo0,19250
|
600
|
-
moovio_sdk-0.
|
601
|
-
moovio_sdk-0.
|
602
|
-
moovio_sdk-0.
|
601
|
+
moovio_sdk-0.6.0.dist-info/METADATA,sha256=Lp1dbLU-ifX6jww4o4ph-LNYmwhe6F5pxFL-JOCRhcs,105386
|
602
|
+
moovio_sdk-0.6.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
603
|
+
moovio_sdk-0.6.0.dist-info/RECORD,,
|
File without changes
|