moovio_sdk 0.4.1__py3-none-any.whl → 0.5.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/account_terminal_applications.py +985 -0
- moovio_sdk/models/components/__init__.py +6 -0
- moovio_sdk/models/components/disputeevidenceresponse.py +7 -0
- moovio_sdk/models/components/linkaccountterminalapplication.py +22 -0
- moovio_sdk/models/errors/__init__.py +6 -0
- moovio_sdk/models/errors/accountterminalapplicationerror.py +24 -0
- moovio_sdk/models/operations/__init__.py +42 -0
- moovio_sdk/models/operations/getaccountterminalapplication.py +73 -0
- moovio_sdk/models/operations/linkaccountterminalapplication.py +78 -0
- moovio_sdk/models/operations/listaccountterminalapplications.py +66 -0
- moovio_sdk/sdk.py +5 -3
- moovio_sdk/terminal_applications.py +8 -8
- moovio_sdk/utils/__init__.py +1 -0
- moovio_sdk/utils/datetimes.py +23 -0
- {moovio_sdk-0.4.1.dist-info → moovio_sdk-0.5.0.dist-info}/METADATA +24 -13
- {moovio_sdk-0.4.1.dist-info → moovio_sdk-0.5.0.dist-info}/RECORD +18 -12
- moovio_sdk/terminal_configurations.py +0 -241
- {moovio_sdk-0.4.1.dist-info → moovio_sdk-0.5.0.dist-info}/WHEEL +0 -0
@@ -398,6 +398,10 @@ from .issuingvelocitylimiterror import (
|
|
398
398
|
IssuingVelocityLimitErrorTypedDict,
|
399
399
|
)
|
400
400
|
from .jsonwebkey import JSONWebKey, JSONWebKeyTypedDict, Use
|
401
|
+
from .linkaccountterminalapplication import (
|
402
|
+
LinkAccountTerminalApplication,
|
403
|
+
LinkAccountTerminalApplicationTypedDict,
|
404
|
+
)
|
401
405
|
from .linkapplepay import LinkApplePay, LinkApplePayTypedDict
|
402
406
|
from .linkapplepaymentdata import LinkApplePaymentData, LinkApplePaymentDataTypedDict
|
403
407
|
from .linkapplepaymentmethod import (
|
@@ -1129,6 +1133,8 @@ __all__ = [
|
|
1129
1133
|
"ItinTypedDict",
|
1130
1134
|
"JSONWebKey",
|
1131
1135
|
"JSONWebKeyTypedDict",
|
1136
|
+
"LinkAccountTerminalApplication",
|
1137
|
+
"LinkAccountTerminalApplicationTypedDict",
|
1132
1138
|
"LinkApplePay",
|
1133
1139
|
"LinkApplePayToken",
|
1134
1140
|
"LinkApplePayTokenTypedDict",
|
@@ -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."""
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from moovio_sdk.types import BaseModel
|
5
|
+
import pydantic
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
7
|
+
|
8
|
+
|
9
|
+
class LinkAccountTerminalApplicationTypedDict(TypedDict):
|
10
|
+
r"""Describes a request to link an account with a terminal application."""
|
11
|
+
|
12
|
+
terminal_application_id: str
|
13
|
+
r"""ID of the terminal application."""
|
14
|
+
|
15
|
+
|
16
|
+
class LinkAccountTerminalApplication(BaseModel):
|
17
|
+
r"""Describes a request to link an account with a terminal application."""
|
18
|
+
|
19
|
+
terminal_application_id: Annotated[
|
20
|
+
str, pydantic.Field(alias="terminalApplicationID")
|
21
|
+
]
|
22
|
+
r"""ID of the terminal application."""
|
@@ -1,5 +1,9 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
|
+
from .accountterminalapplicationerror import (
|
4
|
+
AccountTerminalApplicationError,
|
5
|
+
AccountTerminalApplicationErrorData,
|
6
|
+
)
|
3
7
|
from .addcapabilitieserror import AddCapabilitiesError, AddCapabilitiesErrorData
|
4
8
|
from .apierror import APIError
|
5
9
|
from .assigncountrieserror import AssignCountriesError, AssignCountriesErrorData
|
@@ -77,6 +81,8 @@ from .updateunderwritingerror import (
|
|
77
81
|
|
78
82
|
__all__ = [
|
79
83
|
"APIError",
|
84
|
+
"AccountTerminalApplicationError",
|
85
|
+
"AccountTerminalApplicationErrorData",
|
80
86
|
"AddCapabilitiesError",
|
81
87
|
"AddCapabilitiesErrorData",
|
82
88
|
"AssignCountriesError",
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from moovio_sdk import utils
|
5
|
+
from moovio_sdk.types import BaseModel
|
6
|
+
import pydantic
|
7
|
+
from typing import Optional
|
8
|
+
from typing_extensions import Annotated
|
9
|
+
|
10
|
+
|
11
|
+
class AccountTerminalApplicationErrorData(BaseModel):
|
12
|
+
terminal_application_id: Annotated[
|
13
|
+
Optional[str], pydantic.Field(alias="terminalApplicationID")
|
14
|
+
] = None
|
15
|
+
|
16
|
+
|
17
|
+
class AccountTerminalApplicationError(Exception):
|
18
|
+
data: AccountTerminalApplicationErrorData
|
19
|
+
|
20
|
+
def __init__(self, data: AccountTerminalApplicationErrorData):
|
21
|
+
self.data = data
|
22
|
+
|
23
|
+
def __str__(self) -> str:
|
24
|
+
return utils.marshal_json(self.data, AccountTerminalApplicationErrorData)
|
@@ -246,6 +246,14 @@ from .getaccountcountries import (
|
|
246
246
|
GetAccountCountriesResponse,
|
247
247
|
GetAccountCountriesResponseTypedDict,
|
248
248
|
)
|
249
|
+
from .getaccountterminalapplication import (
|
250
|
+
GetAccountTerminalApplicationGlobals,
|
251
|
+
GetAccountTerminalApplicationGlobalsTypedDict,
|
252
|
+
GetAccountTerminalApplicationRequest,
|
253
|
+
GetAccountTerminalApplicationRequestTypedDict,
|
254
|
+
GetAccountTerminalApplicationResponse,
|
255
|
+
GetAccountTerminalApplicationResponseTypedDict,
|
256
|
+
)
|
249
257
|
from .getadjustment import (
|
250
258
|
GetAdjustmentGlobals,
|
251
259
|
GetAdjustmentGlobalsTypedDict,
|
@@ -572,6 +580,14 @@ from .initiaterefund import (
|
|
572
580
|
InitiateRefundResponseResultTypedDict,
|
573
581
|
InitiateRefundResponseTypedDict,
|
574
582
|
)
|
583
|
+
from .linkaccountterminalapplication import (
|
584
|
+
LinkAccountTerminalApplicationGlobals,
|
585
|
+
LinkAccountTerminalApplicationGlobalsTypedDict,
|
586
|
+
LinkAccountTerminalApplicationRequest,
|
587
|
+
LinkAccountTerminalApplicationRequestTypedDict,
|
588
|
+
LinkAccountTerminalApplicationResponse,
|
589
|
+
LinkAccountTerminalApplicationResponseTypedDict,
|
590
|
+
)
|
575
591
|
from .linkapplepaytoken import (
|
576
592
|
LinkApplePayTokenGlobals,
|
577
593
|
LinkApplePayTokenGlobalsTypedDict,
|
@@ -604,6 +620,14 @@ from .listaccounts import (
|
|
604
620
|
ListAccountsResponse,
|
605
621
|
ListAccountsResponseTypedDict,
|
606
622
|
)
|
623
|
+
from .listaccountterminalapplications import (
|
624
|
+
ListAccountTerminalApplicationsGlobals,
|
625
|
+
ListAccountTerminalApplicationsGlobalsTypedDict,
|
626
|
+
ListAccountTerminalApplicationsRequest,
|
627
|
+
ListAccountTerminalApplicationsRequestTypedDict,
|
628
|
+
ListAccountTerminalApplicationsResponse,
|
629
|
+
ListAccountTerminalApplicationsResponseTypedDict,
|
630
|
+
)
|
607
631
|
from .listadjustments import (
|
608
632
|
ListAdjustmentsGlobals,
|
609
633
|
ListAdjustmentsGlobalsTypedDict,
|
@@ -1234,6 +1258,12 @@ __all__ = [
|
|
1234
1258
|
"GetAccountRequestTypedDict",
|
1235
1259
|
"GetAccountResponse",
|
1236
1260
|
"GetAccountResponseTypedDict",
|
1261
|
+
"GetAccountTerminalApplicationGlobals",
|
1262
|
+
"GetAccountTerminalApplicationGlobalsTypedDict",
|
1263
|
+
"GetAccountTerminalApplicationRequest",
|
1264
|
+
"GetAccountTerminalApplicationRequestTypedDict",
|
1265
|
+
"GetAccountTerminalApplicationResponse",
|
1266
|
+
"GetAccountTerminalApplicationResponseTypedDict",
|
1237
1267
|
"GetAdjustmentGlobals",
|
1238
1268
|
"GetAdjustmentGlobalsTypedDict",
|
1239
1269
|
"GetAdjustmentRequest",
|
@@ -1481,6 +1511,12 @@ __all__ = [
|
|
1481
1511
|
"InitiateRefundResponseResult",
|
1482
1512
|
"InitiateRefundResponseResultTypedDict",
|
1483
1513
|
"InitiateRefundResponseTypedDict",
|
1514
|
+
"LinkAccountTerminalApplicationGlobals",
|
1515
|
+
"LinkAccountTerminalApplicationGlobalsTypedDict",
|
1516
|
+
"LinkAccountTerminalApplicationRequest",
|
1517
|
+
"LinkAccountTerminalApplicationRequestTypedDict",
|
1518
|
+
"LinkAccountTerminalApplicationResponse",
|
1519
|
+
"LinkAccountTerminalApplicationResponseTypedDict",
|
1484
1520
|
"LinkApplePayTokenGlobals",
|
1485
1521
|
"LinkApplePayTokenGlobalsTypedDict",
|
1486
1522
|
"LinkApplePayTokenRequest",
|
@@ -1499,6 +1535,12 @@ __all__ = [
|
|
1499
1535
|
"LinkCardRequestTypedDict",
|
1500
1536
|
"LinkCardResponse",
|
1501
1537
|
"LinkCardResponseTypedDict",
|
1538
|
+
"ListAccountTerminalApplicationsGlobals",
|
1539
|
+
"ListAccountTerminalApplicationsGlobalsTypedDict",
|
1540
|
+
"ListAccountTerminalApplicationsRequest",
|
1541
|
+
"ListAccountTerminalApplicationsRequestTypedDict",
|
1542
|
+
"ListAccountTerminalApplicationsResponse",
|
1543
|
+
"ListAccountTerminalApplicationsResponseTypedDict",
|
1502
1544
|
"ListAccountsGlobals",
|
1503
1545
|
"ListAccountsGlobalsTypedDict",
|
1504
1546
|
"ListAccountsRequest",
|
@@ -0,0 +1,73 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from moovio_sdk.models.components import (
|
5
|
+
terminalapplication as components_terminalapplication,
|
6
|
+
)
|
7
|
+
from moovio_sdk.types import BaseModel
|
8
|
+
from moovio_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
9
|
+
import pydantic
|
10
|
+
from typing import Dict, List, Optional
|
11
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
12
|
+
|
13
|
+
|
14
|
+
class GetAccountTerminalApplicationGlobalsTypedDict(TypedDict):
|
15
|
+
x_moov_version: NotRequired[str]
|
16
|
+
r"""Specify an API version.
|
17
|
+
|
18
|
+
API versioning follows the format `vYYYY.QQ.BB`, where
|
19
|
+
- `YYYY` is the year
|
20
|
+
- `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
21
|
+
- `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
22
|
+
- For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
23
|
+
|
24
|
+
The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
25
|
+
"""
|
26
|
+
|
27
|
+
|
28
|
+
class GetAccountTerminalApplicationGlobals(BaseModel):
|
29
|
+
x_moov_version: Annotated[
|
30
|
+
Optional[str],
|
31
|
+
pydantic.Field(alias="x-moov-version"),
|
32
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
33
|
+
] = "v2024.01.00"
|
34
|
+
r"""Specify an API version.
|
35
|
+
|
36
|
+
API versioning follows the format `vYYYY.QQ.BB`, where
|
37
|
+
- `YYYY` is the year
|
38
|
+
- `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
39
|
+
- `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
40
|
+
- For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
41
|
+
|
42
|
+
The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
43
|
+
"""
|
44
|
+
|
45
|
+
|
46
|
+
class GetAccountTerminalApplicationRequestTypedDict(TypedDict):
|
47
|
+
account_id: str
|
48
|
+
terminal_application_id: str
|
49
|
+
|
50
|
+
|
51
|
+
class GetAccountTerminalApplicationRequest(BaseModel):
|
52
|
+
account_id: Annotated[
|
53
|
+
str,
|
54
|
+
pydantic.Field(alias="accountID"),
|
55
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
56
|
+
]
|
57
|
+
|
58
|
+
terminal_application_id: Annotated[
|
59
|
+
str,
|
60
|
+
pydantic.Field(alias="terminalApplicationID"),
|
61
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
62
|
+
]
|
63
|
+
|
64
|
+
|
65
|
+
class GetAccountTerminalApplicationResponseTypedDict(TypedDict):
|
66
|
+
headers: Dict[str, List[str]]
|
67
|
+
result: components_terminalapplication.TerminalApplicationTypedDict
|
68
|
+
|
69
|
+
|
70
|
+
class GetAccountTerminalApplicationResponse(BaseModel):
|
71
|
+
headers: Dict[str, List[str]]
|
72
|
+
|
73
|
+
result: components_terminalapplication.TerminalApplication
|
@@ -0,0 +1,78 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from moovio_sdk.models.components import (
|
5
|
+
linkaccountterminalapplication as components_linkaccountterminalapplication,
|
6
|
+
terminalapplication as components_terminalapplication,
|
7
|
+
)
|
8
|
+
from moovio_sdk.types import BaseModel
|
9
|
+
from moovio_sdk.utils import (
|
10
|
+
FieldMetadata,
|
11
|
+
HeaderMetadata,
|
12
|
+
PathParamMetadata,
|
13
|
+
RequestMetadata,
|
14
|
+
)
|
15
|
+
import pydantic
|
16
|
+
from typing import Dict, List, Optional
|
17
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
18
|
+
|
19
|
+
|
20
|
+
class LinkAccountTerminalApplicationGlobalsTypedDict(TypedDict):
|
21
|
+
x_moov_version: NotRequired[str]
|
22
|
+
r"""Specify an API version.
|
23
|
+
|
24
|
+
API versioning follows the format `vYYYY.QQ.BB`, where
|
25
|
+
- `YYYY` is the year
|
26
|
+
- `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
27
|
+
- `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
28
|
+
- For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
29
|
+
|
30
|
+
The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
31
|
+
"""
|
32
|
+
|
33
|
+
|
34
|
+
class LinkAccountTerminalApplicationGlobals(BaseModel):
|
35
|
+
x_moov_version: Annotated[
|
36
|
+
Optional[str],
|
37
|
+
pydantic.Field(alias="x-moov-version"),
|
38
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
39
|
+
] = "v2024.01.00"
|
40
|
+
r"""Specify an API version.
|
41
|
+
|
42
|
+
API versioning follows the format `vYYYY.QQ.BB`, where
|
43
|
+
- `YYYY` is the year
|
44
|
+
- `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
45
|
+
- `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
46
|
+
- For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
47
|
+
|
48
|
+
The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
49
|
+
"""
|
50
|
+
|
51
|
+
|
52
|
+
class LinkAccountTerminalApplicationRequestTypedDict(TypedDict):
|
53
|
+
account_id: str
|
54
|
+
link_account_terminal_application: components_linkaccountterminalapplication.LinkAccountTerminalApplicationTypedDict
|
55
|
+
|
56
|
+
|
57
|
+
class LinkAccountTerminalApplicationRequest(BaseModel):
|
58
|
+
account_id: Annotated[
|
59
|
+
str,
|
60
|
+
pydantic.Field(alias="accountID"),
|
61
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
62
|
+
]
|
63
|
+
|
64
|
+
link_account_terminal_application: Annotated[
|
65
|
+
components_linkaccountterminalapplication.LinkAccountTerminalApplication,
|
66
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
67
|
+
]
|
68
|
+
|
69
|
+
|
70
|
+
class LinkAccountTerminalApplicationResponseTypedDict(TypedDict):
|
71
|
+
headers: Dict[str, List[str]]
|
72
|
+
result: components_terminalapplication.TerminalApplicationTypedDict
|
73
|
+
|
74
|
+
|
75
|
+
class LinkAccountTerminalApplicationResponse(BaseModel):
|
76
|
+
headers: Dict[str, List[str]]
|
77
|
+
|
78
|
+
result: components_terminalapplication.TerminalApplication
|
@@ -0,0 +1,66 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from moovio_sdk.models.components import (
|
5
|
+
terminalapplication as components_terminalapplication,
|
6
|
+
)
|
7
|
+
from moovio_sdk.types import BaseModel
|
8
|
+
from moovio_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
9
|
+
import pydantic
|
10
|
+
from typing import Dict, List, Optional
|
11
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
12
|
+
|
13
|
+
|
14
|
+
class ListAccountTerminalApplicationsGlobalsTypedDict(TypedDict):
|
15
|
+
x_moov_version: NotRequired[str]
|
16
|
+
r"""Specify an API version.
|
17
|
+
|
18
|
+
API versioning follows the format `vYYYY.QQ.BB`, where
|
19
|
+
- `YYYY` is the year
|
20
|
+
- `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
21
|
+
- `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
22
|
+
- For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
23
|
+
|
24
|
+
The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
25
|
+
"""
|
26
|
+
|
27
|
+
|
28
|
+
class ListAccountTerminalApplicationsGlobals(BaseModel):
|
29
|
+
x_moov_version: Annotated[
|
30
|
+
Optional[str],
|
31
|
+
pydantic.Field(alias="x-moov-version"),
|
32
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
33
|
+
] = "v2024.01.00"
|
34
|
+
r"""Specify an API version.
|
35
|
+
|
36
|
+
API versioning follows the format `vYYYY.QQ.BB`, where
|
37
|
+
- `YYYY` is the year
|
38
|
+
- `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
39
|
+
- `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
40
|
+
- For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
41
|
+
|
42
|
+
The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
43
|
+
"""
|
44
|
+
|
45
|
+
|
46
|
+
class ListAccountTerminalApplicationsRequestTypedDict(TypedDict):
|
47
|
+
account_id: str
|
48
|
+
|
49
|
+
|
50
|
+
class ListAccountTerminalApplicationsRequest(BaseModel):
|
51
|
+
account_id: Annotated[
|
52
|
+
str,
|
53
|
+
pydantic.Field(alias="accountID"),
|
54
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
55
|
+
]
|
56
|
+
|
57
|
+
|
58
|
+
class ListAccountTerminalApplicationsResponseTypedDict(TypedDict):
|
59
|
+
headers: Dict[str, List[str]]
|
60
|
+
result: List[components_terminalapplication.TerminalApplicationTypedDict]
|
61
|
+
|
62
|
+
|
63
|
+
class ListAccountTerminalApplicationsResponse(BaseModel):
|
64
|
+
headers: Dict[str, List[str]]
|
65
|
+
|
66
|
+
result: List[components_terminalapplication.TerminalApplication]
|
moovio_sdk/sdk.py
CHANGED
@@ -8,6 +8,7 @@ from .utils.retries import RetryConfig
|
|
8
8
|
import httpx
|
9
9
|
from moovio_sdk import utils
|
10
10
|
from moovio_sdk._hooks import SDKHooks
|
11
|
+
from moovio_sdk.account_terminal_applications import AccountTerminalApplications
|
11
12
|
from moovio_sdk.accounts import Accounts
|
12
13
|
from moovio_sdk.adjustments import Adjustments
|
13
14
|
from moovio_sdk.apple_pay import ApplePay
|
@@ -37,7 +38,6 @@ from moovio_sdk.representatives import Representatives
|
|
37
38
|
from moovio_sdk.scheduling import Scheduling
|
38
39
|
from moovio_sdk.sweeps import Sweeps
|
39
40
|
from moovio_sdk.terminal_applications import TerminalApplications
|
40
|
-
from moovio_sdk.terminal_configurations import TerminalConfigurations
|
41
41
|
from moovio_sdk.transfers import Transfers
|
42
42
|
from moovio_sdk.types import OptionalNullable, UNSET
|
43
43
|
from moovio_sdk.underwriting import Underwriting
|
@@ -69,7 +69,7 @@ class Moov(BaseSDK):
|
|
69
69
|
representatives: Representatives
|
70
70
|
scheduling: Scheduling
|
71
71
|
sweeps: Sweeps
|
72
|
-
|
72
|
+
account_terminal_applications: AccountTerminalApplications
|
73
73
|
transfers: Transfers
|
74
74
|
underwriting: Underwriting
|
75
75
|
wallets: Wallets
|
@@ -203,7 +203,9 @@ class Moov(BaseSDK):
|
|
203
203
|
self.representatives = Representatives(self.sdk_configuration)
|
204
204
|
self.scheduling = Scheduling(self.sdk_configuration)
|
205
205
|
self.sweeps = Sweeps(self.sdk_configuration)
|
206
|
-
self.
|
206
|
+
self.account_terminal_applications = AccountTerminalApplications(
|
207
|
+
self.sdk_configuration
|
208
|
+
)
|
207
209
|
self.transfers = Transfers(self.sdk_configuration)
|
208
210
|
self.underwriting = Underwriting(self.sdk_configuration)
|
209
211
|
self.wallets = Wallets(self.sdk_configuration)
|
@@ -26,7 +26,7 @@ class TerminalApplications(BaseSDK):
|
|
26
26
|
r"""Create a new terminal application.
|
27
27
|
|
28
28
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
29
|
-
you'll need to specify the `/
|
29
|
+
you'll need to specify the `/terminal-applications.write` scope.
|
30
30
|
|
31
31
|
:param platform: Platform of the terminal application.
|
32
32
|
:param app_bundle_id: The app bundle identifier of the terminal application. Required if platform is `ios`.
|
@@ -174,7 +174,7 @@ class TerminalApplications(BaseSDK):
|
|
174
174
|
r"""Create a new terminal application.
|
175
175
|
|
176
176
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
177
|
-
you'll need to specify the `/
|
177
|
+
you'll need to specify the `/terminal-applications.write` scope.
|
178
178
|
|
179
179
|
:param platform: Platform of the terminal application.
|
180
180
|
:param app_bundle_id: The app bundle identifier of the terminal application. Required if platform is `ios`.
|
@@ -321,7 +321,7 @@ class TerminalApplications(BaseSDK):
|
|
321
321
|
r"""List all the terminal applications for a Moov Account.
|
322
322
|
|
323
323
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
324
|
-
you'll need to specify the `/
|
324
|
+
you'll need to specify the `/terminal-applications.read` scope.
|
325
325
|
|
326
326
|
:param request: The request object to send.
|
327
327
|
:param retries: Override the default retry configuration for this method
|
@@ -438,7 +438,7 @@ class TerminalApplications(BaseSDK):
|
|
438
438
|
r"""List all the terminal applications for a Moov Account.
|
439
439
|
|
440
440
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
441
|
-
you'll need to specify the `/
|
441
|
+
you'll need to specify the `/terminal-applications.read` scope.
|
442
442
|
|
443
443
|
:param request: The request object to send.
|
444
444
|
:param retries: Override the default retry configuration for this method
|
@@ -552,7 +552,7 @@ class TerminalApplications(BaseSDK):
|
|
552
552
|
r"""Fetch a specific terminal application.
|
553
553
|
|
554
554
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
555
|
-
you'll need to specify the `/
|
555
|
+
you'll need to specify the `/terminal-applications.read` scope.
|
556
556
|
|
557
557
|
:param terminal_application_id:
|
558
558
|
:param retries: Override the default retry configuration for this method
|
@@ -664,7 +664,7 @@ class TerminalApplications(BaseSDK):
|
|
664
664
|
r"""Fetch a specific terminal application.
|
665
665
|
|
666
666
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
667
|
-
you'll need to specify the `/
|
667
|
+
you'll need to specify the `/terminal-applications.read` scope.
|
668
668
|
|
669
669
|
:param terminal_application_id:
|
670
670
|
:param retries: Override the default retry configuration for this method
|
@@ -776,7 +776,7 @@ class TerminalApplications(BaseSDK):
|
|
776
776
|
r"""Delete a specific terminal application.
|
777
777
|
|
778
778
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
779
|
-
you'll need to specify the `/
|
779
|
+
you'll need to specify the `/terminal-applications.write` scope.
|
780
780
|
|
781
781
|
:param terminal_application_id:
|
782
782
|
:param retries: Override the default retry configuration for this method
|
@@ -900,7 +900,7 @@ class TerminalApplications(BaseSDK):
|
|
900
900
|
r"""Delete a specific terminal application.
|
901
901
|
|
902
902
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
903
|
-
you'll need to specify the `/
|
903
|
+
you'll need to specify the `/terminal-applications.write` scope.
|
904
904
|
|
905
905
|
:param terminal_application_id:
|
906
906
|
:param retries: Override the default retry configuration for this method
|
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)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: moovio_sdk
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.5.0
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Author: Speakeasy
|
6
6
|
Requires-Python: >=3.9
|
@@ -13,7 +13,6 @@ Classifier: Programming Language :: Python :: 3.13
|
|
13
13
|
Requires-Dist: eval-type-backport (>=0.2.0)
|
14
14
|
Requires-Dist: httpx (>=0.28.1)
|
15
15
|
Requires-Dist: pydantic (>=2.11.2)
|
16
|
-
Requires-Dist: python-dateutil (>=2.8.2)
|
17
16
|
Requires-Dist: typing-inspection (>=0.4.0)
|
18
17
|
Project-URL: Documentation, https://docs.moov.io/
|
19
18
|
Project-URL: Homepage, https://moov.io/
|
@@ -459,6 +458,25 @@ with Moov(
|
|
459
458
|
<details open>
|
460
459
|
<summary>Available methods</summary>
|
461
460
|
|
461
|
+
### [account_terminal_applications](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/accountterminalapplications/README.md)
|
462
|
+
|
463
|
+
* [link](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/accountterminalapplications/README.md#link) - Link an account with a terminal application.
|
464
|
+
|
465
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
466
|
+
you'll need to specify the `/accounts/{accountID}/terminal-applications.write` scope.
|
467
|
+
* [list](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/accountterminalapplications/README.md#list) - Retrieve all terminal applications linked to a specific account.
|
468
|
+
|
469
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
470
|
+
you'll need to specify the `/accounts/{accountID}/terminal-applications.read` scope.
|
471
|
+
* [get](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/accountterminalapplications/README.md#get) - Verifies if a specific Terminal Application is linked to an Account. This endpoint acts as a validation check for the link's existence.
|
472
|
+
|
473
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
474
|
+
you'll need to specify the `/accounts/{accountID}/terminal-applications.read` scope.
|
475
|
+
* [get_configuration](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/accountterminalapplications/README.md#get_configuration) - Fetch the configuration for a given Terminal Application linked to a specific Account.
|
476
|
+
|
477
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
478
|
+
you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` scope.
|
479
|
+
|
462
480
|
### [accounts](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/accounts/README.md)
|
463
481
|
|
464
482
|
* [create](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/accounts/README.md#create) - You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
|
@@ -1153,26 +1171,19 @@ you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
|
|
1153
1171
|
* [create](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/terminalapplications/README.md#create) - Create a new terminal application.
|
1154
1172
|
|
1155
1173
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
1156
|
-
you'll need to specify the `/
|
1174
|
+
you'll need to specify the `/terminal-applications.write` scope.
|
1157
1175
|
* [list](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/terminalapplications/README.md#list) - List all the terminal applications for a Moov Account.
|
1158
1176
|
|
1159
1177
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
1160
|
-
you'll need to specify the `/
|
1178
|
+
you'll need to specify the `/terminal-applications.read` scope.
|
1161
1179
|
* [get](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/terminalapplications/README.md#get) - Fetch a specific terminal application.
|
1162
1180
|
|
1163
1181
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
1164
|
-
you'll need to specify the `/
|
1182
|
+
you'll need to specify the `/terminal-applications.read` scope.
|
1165
1183
|
* [delete](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/terminalapplications/README.md#delete) - Delete a specific terminal application.
|
1166
1184
|
|
1167
1185
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
1168
|
-
you'll need to specify the `/
|
1169
|
-
|
1170
|
-
### [terminal_configurations](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/terminalconfigurations/README.md)
|
1171
|
-
|
1172
|
-
* [get](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/terminalconfigurations/README.md#get) - Fetch the configuration for a given Terminal Application
|
1173
|
-
|
1174
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
1175
|
-
you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` scope.
|
1186
|
+
you'll need to specify the `/terminal-applications.write` scope.
|
1176
1187
|
|
1177
1188
|
### [transfers](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/transfers/README.md)
|
1178
1189
|
|