moovio_sdk 0.12.0__py3-none-any.whl → 0.13.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 +70 -186
- moovio_sdk/accounts.py +168 -408
- moovio_sdk/adjustments.py +28 -84
- moovio_sdk/apple_pay.py +102 -236
- moovio_sdk/authentication.py +50 -102
- moovio_sdk/avatars.py +10 -38
- moovio_sdk/bank_accounts.py +174 -420
- moovio_sdk/basesdk.py +4 -4
- moovio_sdk/branding.py +106 -198
- moovio_sdk/capabilities.py +76 -180
- moovio_sdk/card_issuing.py +94 -228
- moovio_sdk/cards.py +94 -232
- moovio_sdk/disputes.py +204 -500
- moovio_sdk/end_to_end_encryption.py +28 -80
- moovio_sdk/enriched_address.py +14 -44
- moovio_sdk/enriched_profile.py +14 -44
- moovio_sdk/fee_plans.py +116 -314
- moovio_sdk/files.py +52 -138
- moovio_sdk/industries.py +14 -44
- moovio_sdk/institutions.py +36 -92
- moovio_sdk/issuing_transactions.py +70 -220
- moovio_sdk/models/components/__init__.py +39 -0
- moovio_sdk/models/components/createticket.py +24 -0
- moovio_sdk/models/components/createticketcontacterror.py +17 -0
- moovio_sdk/models/components/ticket.py +44 -0
- moovio_sdk/models/components/ticketcontact.py +17 -0
- moovio_sdk/models/components/ticketmessage.py +21 -0
- moovio_sdk/models/components/ticketstatus.py +11 -0
- moovio_sdk/models/components/updateticket.py +19 -0
- moovio_sdk/models/components/updateticketstatus.py +8 -0
- moovio_sdk/models/errors/__init__.py +19 -0
- moovio_sdk/models/errors/accountterminalapplicationerror.py +11 -6
- moovio_sdk/models/errors/addcapabilitieserror.py +11 -6
- moovio_sdk/models/errors/apierror.py +30 -14
- moovio_sdk/models/errors/assigncountrieserror.py +12 -6
- moovio_sdk/models/errors/authtokenrequesterror.py +11 -6
- moovio_sdk/models/errors/bankaccountvalidationerror.py +11 -6
- moovio_sdk/models/errors/brandvalidationerror.py +11 -6
- moovio_sdk/models/errors/cardacquiringrefund.py +11 -6
- moovio_sdk/models/errors/createaccount.py +12 -6
- moovio_sdk/models/errors/createpaymentlinkerror.py +11 -6
- moovio_sdk/models/errors/createsweepconfigerror.py +11 -6
- moovio_sdk/models/errors/createticketerror.py +34 -0
- moovio_sdk/models/errors/feeplanagreementerror.py +11 -6
- moovio_sdk/models/errors/fileuploadvalidationerror.py +11 -6
- moovio_sdk/models/errors/filevalidationerror.py +11 -6
- moovio_sdk/models/errors/genericerror.py +12 -6
- moovio_sdk/models/errors/linkapplepayerror.py +11 -6
- moovio_sdk/models/errors/linkcarderror.py +11 -6
- moovio_sdk/models/errors/microdepositvalidationerror.py +11 -6
- moovio_sdk/models/errors/mooverror.py +26 -0
- moovio_sdk/models/errors/no_response_error.py +13 -0
- moovio_sdk/models/errors/onboardinginviteerror.py +11 -6
- moovio_sdk/models/errors/patchsweepconfigerror.py +11 -6
- moovio_sdk/models/errors/refundvalidationerror.py +11 -6
- moovio_sdk/models/errors/representativevalidationerror.py +11 -6
- moovio_sdk/models/errors/requestcarderror.py +11 -6
- moovio_sdk/models/errors/responsevalidationerror.py +25 -0
- moovio_sdk/models/errors/reversalvalidationerror.py +11 -6
- moovio_sdk/models/errors/revoketokenrequesterror.py +11 -6
- moovio_sdk/models/errors/schedulevalidationerror.py +11 -6
- moovio_sdk/models/errors/terminalapplicationerror.py +11 -6
- moovio_sdk/models/errors/transfer.py +11 -6
- moovio_sdk/models/errors/transferoptionsvalidationerror.py +11 -6
- moovio_sdk/models/errors/transfervalidationerror.py +11 -6
- moovio_sdk/models/errors/updateaccount.py +12 -6
- moovio_sdk/models/errors/updatecarderror.py +11 -6
- moovio_sdk/models/errors/updateissuedcarderror.py +11 -6
- moovio_sdk/models/errors/updatepaymentlinkerror.py +11 -6
- moovio_sdk/models/errors/updateticketerror.py +25 -0
- moovio_sdk/models/errors/updateunderwritingerror.py +11 -6
- moovio_sdk/models/errors/upsertunderwritingerror.py +11 -6
- moovio_sdk/models/operations/__init__.py +100 -0
- moovio_sdk/models/operations/createticket.py +78 -0
- moovio_sdk/models/operations/getticket.py +71 -0
- moovio_sdk/models/operations/listticketmessages.py +88 -0
- moovio_sdk/models/operations/listtickets.py +81 -0
- moovio_sdk/models/operations/updateticket.py +85 -0
- moovio_sdk/onboarding.py +66 -166
- moovio_sdk/payment_links.py +106 -272
- moovio_sdk/payment_methods.py +30 -86
- moovio_sdk/ping.py +10 -40
- moovio_sdk/receipts.py +36 -92
- moovio_sdk/representatives.py +102 -228
- moovio_sdk/scheduling.py +122 -278
- moovio_sdk/sdk.py +3 -0
- moovio_sdk/support.py +1153 -0
- moovio_sdk/sweeps.py +102 -274
- moovio_sdk/terminal_applications.py +74 -186
- moovio_sdk/transfers.py +266 -582
- moovio_sdk/underwriting.py +64 -146
- moovio_sdk/utils/__init__.py +3 -0
- moovio_sdk/utils/serializers.py +21 -3
- moovio_sdk/wallet_transactions.py +28 -88
- moovio_sdk/wallets.py +24 -84
- {moovio_sdk-0.12.0.dist-info → moovio_sdk-0.13.0.dist-info}/METADATA +103 -28
- {moovio_sdk-0.12.0.dist-info → moovio_sdk-0.13.0.dist-info}/RECORD +99 -80
- {moovio_sdk-0.12.0.dist-info → moovio_sdk-0.13.0.dist-info}/WHEEL +0 -0
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
import pydantic
|
7
8
|
from typing import Optional
|
@@ -18,11 +19,15 @@ class FileValidationErrorData(BaseModel):
|
|
18
19
|
metadata: Optional[str] = None
|
19
20
|
|
20
21
|
|
21
|
-
class FileValidationError(
|
22
|
+
class FileValidationError(MoovError):
|
22
23
|
data: FileValidationErrorData
|
23
24
|
|
24
|
-
def __init__(
|
25
|
+
def __init__(
|
26
|
+
self,
|
27
|
+
data: FileValidationErrorData,
|
28
|
+
raw_response: httpx.Response,
|
29
|
+
body: Optional[str] = None,
|
30
|
+
):
|
31
|
+
message = body or raw_response.text
|
32
|
+
super().__init__(message, raw_response, body)
|
25
33
|
self.data = data
|
26
|
-
|
27
|
-
def __str__(self) -> str:
|
28
|
-
return utils.marshal_json(self.data, FileValidationErrorData)
|
@@ -1,19 +1,25 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
7
|
+
from typing import Optional
|
6
8
|
|
7
9
|
|
8
10
|
class GenericErrorData(BaseModel):
|
9
11
|
error: str
|
10
12
|
|
11
13
|
|
12
|
-
class GenericError(
|
14
|
+
class GenericError(MoovError):
|
13
15
|
data: GenericErrorData
|
14
16
|
|
15
|
-
def __init__(
|
17
|
+
def __init__(
|
18
|
+
self,
|
19
|
+
data: GenericErrorData,
|
20
|
+
raw_response: httpx.Response,
|
21
|
+
body: Optional[str] = None,
|
22
|
+
):
|
23
|
+
message = body or raw_response.text
|
24
|
+
super().__init__(message, raw_response, body)
|
16
25
|
self.data = data
|
17
|
-
|
18
|
-
def __str__(self) -> str:
|
19
|
-
return utils.marshal_json(self.data, GenericErrorData)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
import pydantic
|
7
8
|
from typing import Optional
|
@@ -26,11 +27,15 @@ class LinkApplePayErrorData(BaseModel):
|
|
26
27
|
r"""Describes an error within the `token.transactionIdentifier` request field."""
|
27
28
|
|
28
29
|
|
29
|
-
class LinkApplePayError(
|
30
|
+
class LinkApplePayError(MoovError):
|
30
31
|
data: LinkApplePayErrorData
|
31
32
|
|
32
|
-
def __init__(
|
33
|
+
def __init__(
|
34
|
+
self,
|
35
|
+
data: LinkApplePayErrorData,
|
36
|
+
raw_response: httpx.Response,
|
37
|
+
body: Optional[str] = None,
|
38
|
+
):
|
39
|
+
message = body or raw_response.text
|
40
|
+
super().__init__(message, raw_response, body)
|
33
41
|
self.data = data
|
34
|
-
|
35
|
-
def __str__(self) -> str:
|
36
|
-
return utils.marshal_json(self.data, LinkApplePayErrorData)
|
@@ -1,10 +1,11 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
5
|
from moovio_sdk.models.components import (
|
6
6
|
end2endencryptionerror as components_end2endencryptionerror,
|
7
7
|
)
|
8
|
+
from moovio_sdk.models.errors import MoovError
|
8
9
|
from moovio_sdk.types import BaseModel
|
9
10
|
import pydantic
|
10
11
|
from typing import Optional
|
@@ -37,11 +38,15 @@ class LinkCardErrorData(BaseModel):
|
|
37
38
|
verify_name: Annotated[Optional[str], pydantic.Field(alias="verifyName")] = None
|
38
39
|
|
39
40
|
|
40
|
-
class LinkCardError(
|
41
|
+
class LinkCardError(MoovError):
|
41
42
|
data: LinkCardErrorData
|
42
43
|
|
43
|
-
def __init__(
|
44
|
+
def __init__(
|
45
|
+
self,
|
46
|
+
data: LinkCardErrorData,
|
47
|
+
raw_response: httpx.Response,
|
48
|
+
body: Optional[str] = None,
|
49
|
+
):
|
50
|
+
message = body or raw_response.text
|
51
|
+
super().__init__(message, raw_response, body)
|
44
52
|
self.data = data
|
45
|
-
|
46
|
-
def __str__(self) -> str:
|
47
|
-
return utils.marshal_json(self.data, LinkCardErrorData)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
from typing import Optional
|
7
8
|
|
@@ -10,11 +11,15 @@ class MicroDepositValidationErrorData(BaseModel):
|
|
10
11
|
amounts: Optional[str] = None
|
11
12
|
|
12
13
|
|
13
|
-
class MicroDepositValidationError(
|
14
|
+
class MicroDepositValidationError(MoovError):
|
14
15
|
data: MicroDepositValidationErrorData
|
15
16
|
|
16
|
-
def __init__(
|
17
|
+
def __init__(
|
18
|
+
self,
|
19
|
+
data: MicroDepositValidationErrorData,
|
20
|
+
raw_response: httpx.Response,
|
21
|
+
body: Optional[str] = None,
|
22
|
+
):
|
23
|
+
message = body or raw_response.text
|
24
|
+
super().__init__(message, raw_response, body)
|
17
25
|
self.data = data
|
18
|
-
|
19
|
-
def __str__(self) -> str:
|
20
|
-
return utils.marshal_json(self.data, MicroDepositValidationErrorData)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
import httpx
|
4
|
+
from typing import Optional
|
5
|
+
|
6
|
+
|
7
|
+
class MoovError(Exception):
|
8
|
+
"""The base class for all HTTP error responses."""
|
9
|
+
|
10
|
+
message: str
|
11
|
+
status_code: int
|
12
|
+
body: str
|
13
|
+
headers: httpx.Headers
|
14
|
+
raw_response: httpx.Response
|
15
|
+
|
16
|
+
def __init__(
|
17
|
+
self, message: str, raw_response: httpx.Response, body: Optional[str] = None
|
18
|
+
):
|
19
|
+
self.message = message
|
20
|
+
self.status_code = raw_response.status_code
|
21
|
+
self.body = body if body is not None else raw_response.text
|
22
|
+
self.headers = raw_response.headers
|
23
|
+
self.raw_response = raw_response
|
24
|
+
|
25
|
+
def __str__(self):
|
26
|
+
return self.message
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
class NoResponseError(Exception):
|
4
|
+
"""Error raised when no HTTP response is received from the server."""
|
5
|
+
|
6
|
+
message: str
|
7
|
+
|
8
|
+
def __init__(self, message: str = "No response received"):
|
9
|
+
self.message = message
|
10
|
+
super().__init__(message)
|
11
|
+
|
12
|
+
def __str__(self):
|
13
|
+
return self.message
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
import pydantic
|
7
8
|
from typing import Dict, Optional
|
@@ -24,11 +25,15 @@ class OnboardingInviteErrorData(BaseModel):
|
|
24
25
|
] = None
|
25
26
|
|
26
27
|
|
27
|
-
class OnboardingInviteError(
|
28
|
+
class OnboardingInviteError(MoovError):
|
28
29
|
data: OnboardingInviteErrorData
|
29
30
|
|
30
|
-
def __init__(
|
31
|
+
def __init__(
|
32
|
+
self,
|
33
|
+
data: OnboardingInviteErrorData,
|
34
|
+
raw_response: httpx.Response,
|
35
|
+
body: Optional[str] = None,
|
36
|
+
):
|
37
|
+
message = body or raw_response.text
|
38
|
+
super().__init__(message, raw_response, body)
|
31
39
|
self.data = data
|
32
|
-
|
33
|
-
def __str__(self) -> str:
|
34
|
-
return utils.marshal_json(self.data, OnboardingInviteErrorData)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
import pydantic
|
7
8
|
from typing import Optional
|
@@ -28,11 +29,15 @@ class PatchSweepConfigErrorData(BaseModel):
|
|
28
29
|
] = None
|
29
30
|
|
30
31
|
|
31
|
-
class PatchSweepConfigError(
|
32
|
+
class PatchSweepConfigError(MoovError):
|
32
33
|
data: PatchSweepConfigErrorData
|
33
34
|
|
34
|
-
def __init__(
|
35
|
+
def __init__(
|
36
|
+
self,
|
37
|
+
data: PatchSweepConfigErrorData,
|
38
|
+
raw_response: httpx.Response,
|
39
|
+
body: Optional[str] = None,
|
40
|
+
):
|
41
|
+
message = body or raw_response.text
|
42
|
+
super().__init__(message, raw_response, body)
|
35
43
|
self.data = data
|
36
|
-
|
37
|
-
def __str__(self) -> str:
|
38
|
-
return utils.marshal_json(self.data, PatchSweepConfigErrorData)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
from typing import Optional
|
7
8
|
|
@@ -13,11 +14,15 @@ class RefundValidationErrorData(BaseModel):
|
|
13
14
|
r"""Used for generic errors when invalid request data isn't attributed to a single request field."""
|
14
15
|
|
15
16
|
|
16
|
-
class RefundValidationError(
|
17
|
+
class RefundValidationError(MoovError):
|
17
18
|
data: RefundValidationErrorData
|
18
19
|
|
19
|
-
def __init__(
|
20
|
+
def __init__(
|
21
|
+
self,
|
22
|
+
data: RefundValidationErrorData,
|
23
|
+
raw_response: httpx.Response,
|
24
|
+
body: Optional[str] = None,
|
25
|
+
):
|
26
|
+
message = body or raw_response.text
|
27
|
+
super().__init__(message, raw_response, body)
|
20
28
|
self.data = data
|
21
|
-
|
22
|
-
def __str__(self) -> str:
|
23
|
-
return utils.marshal_json(self.data, RefundValidationErrorData)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
5
|
from moovio_sdk.models.components import (
|
6
6
|
addresserror as components_addresserror,
|
7
7
|
birthdatevalidationerror as components_birthdatevalidationerror,
|
@@ -10,6 +10,7 @@ from moovio_sdk.models.components import (
|
|
10
10
|
phonenumbererror as components_phonenumbererror,
|
11
11
|
representativeresponsibilitieserror as components_representativeresponsibilitieserror,
|
12
12
|
)
|
13
|
+
from moovio_sdk.models.errors import MoovError
|
13
14
|
from moovio_sdk.types import BaseModel
|
14
15
|
import pydantic
|
15
16
|
from typing import Optional
|
@@ -58,11 +59,15 @@ class RepresentativeValidationErrorData(BaseModel):
|
|
58
59
|
error: Error
|
59
60
|
|
60
61
|
|
61
|
-
class RepresentativeValidationError(
|
62
|
+
class RepresentativeValidationError(MoovError):
|
62
63
|
data: RepresentativeValidationErrorData
|
63
64
|
|
64
|
-
def __init__(
|
65
|
+
def __init__(
|
66
|
+
self,
|
67
|
+
data: RepresentativeValidationErrorData,
|
68
|
+
raw_response: httpx.Response,
|
69
|
+
body: Optional[str] = None,
|
70
|
+
):
|
71
|
+
message = body or raw_response.text
|
72
|
+
super().__init__(message, raw_response, body)
|
65
73
|
self.data = data
|
66
|
-
|
67
|
-
def __str__(self) -> str:
|
68
|
-
return utils.marshal_json(self.data, RepresentativeValidationErrorData)
|
@@ -1,12 +1,13 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
5
|
from moovio_sdk.models.components import (
|
6
6
|
cardexpirationerror as components_cardexpirationerror,
|
7
7
|
createauthorizedusererror as components_createauthorizedusererror,
|
8
8
|
issuingcontrolserror as components_issuingcontrolserror,
|
9
9
|
)
|
10
|
+
from moovio_sdk.models.errors import MoovError
|
10
11
|
from moovio_sdk.types import BaseModel
|
11
12
|
import pydantic
|
12
13
|
from typing import Optional
|
@@ -32,11 +33,15 @@ class RequestCardErrorData(BaseModel):
|
|
32
33
|
controls: Optional[components_issuingcontrolserror.IssuingControlsError] = None
|
33
34
|
|
34
35
|
|
35
|
-
class RequestCardError(
|
36
|
+
class RequestCardError(MoovError):
|
36
37
|
data: RequestCardErrorData
|
37
38
|
|
38
|
-
def __init__(
|
39
|
+
def __init__(
|
40
|
+
self,
|
41
|
+
data: RequestCardErrorData,
|
42
|
+
raw_response: httpx.Response,
|
43
|
+
body: Optional[str] = None,
|
44
|
+
):
|
45
|
+
message = body or raw_response.text
|
46
|
+
super().__init__(message, raw_response, body)
|
39
47
|
self.data = data
|
40
|
-
|
41
|
-
def __str__(self) -> str:
|
42
|
-
return utils.marshal_json(self.data, RequestCardErrorData)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
import httpx
|
4
|
+
from typing import Optional
|
5
|
+
|
6
|
+
from moovio_sdk.models.errors import MoovError
|
7
|
+
|
8
|
+
|
9
|
+
class ResponseValidationError(MoovError):
|
10
|
+
"""Error raised when there is a type mismatch between the response data and the expected Pydantic model."""
|
11
|
+
|
12
|
+
def __init__(
|
13
|
+
self,
|
14
|
+
message: str,
|
15
|
+
raw_response: httpx.Response,
|
16
|
+
cause: Exception,
|
17
|
+
body: Optional[str] = None,
|
18
|
+
):
|
19
|
+
message = f"{message}: {cause}"
|
20
|
+
super().__init__(message, raw_response, body)
|
21
|
+
|
22
|
+
@property
|
23
|
+
def cause(self):
|
24
|
+
"""Normally the Pydantic ValidationError"""
|
25
|
+
return self.__cause__
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
from typing import Optional
|
7
8
|
|
@@ -10,11 +11,15 @@ class ReversalValidationErrorData(BaseModel):
|
|
10
11
|
amount: Optional[str] = None
|
11
12
|
|
12
13
|
|
13
|
-
class ReversalValidationError(
|
14
|
+
class ReversalValidationError(MoovError):
|
14
15
|
data: ReversalValidationErrorData
|
15
16
|
|
16
|
-
def __init__(
|
17
|
+
def __init__(
|
18
|
+
self,
|
19
|
+
data: ReversalValidationErrorData,
|
20
|
+
raw_response: httpx.Response,
|
21
|
+
body: Optional[str] = None,
|
22
|
+
):
|
23
|
+
message = body or raw_response.text
|
24
|
+
super().__init__(message, raw_response, body)
|
17
25
|
self.data = data
|
18
|
-
|
19
|
-
def __str__(self) -> str:
|
20
|
-
return utils.marshal_json(self.data, ReversalValidationErrorData)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
from typing import Optional
|
7
8
|
|
@@ -12,11 +13,15 @@ class RevokeTokenRequestErrorData(BaseModel):
|
|
12
13
|
token_type_hint: Optional[str] = None
|
13
14
|
|
14
15
|
|
15
|
-
class RevokeTokenRequestError(
|
16
|
+
class RevokeTokenRequestError(MoovError):
|
16
17
|
data: RevokeTokenRequestErrorData
|
17
18
|
|
18
|
-
def __init__(
|
19
|
+
def __init__(
|
20
|
+
self,
|
21
|
+
data: RevokeTokenRequestErrorData,
|
22
|
+
raw_response: httpx.Response,
|
23
|
+
body: Optional[str] = None,
|
24
|
+
):
|
25
|
+
message = body or raw_response.text
|
26
|
+
super().__init__(message, raw_response, body)
|
19
27
|
self.data = data
|
20
|
-
|
21
|
-
def __str__(self) -> str:
|
22
|
-
return utils.marshal_json(self.data, RevokeTokenRequestErrorData)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
from typing import Dict, Optional
|
7
8
|
|
@@ -14,11 +15,15 @@ class ScheduleValidationErrorData(BaseModel):
|
|
14
15
|
description: Optional[str] = None
|
15
16
|
|
16
17
|
|
17
|
-
class ScheduleValidationError(
|
18
|
+
class ScheduleValidationError(MoovError):
|
18
19
|
data: ScheduleValidationErrorData
|
19
20
|
|
20
|
-
def __init__(
|
21
|
+
def __init__(
|
22
|
+
self,
|
23
|
+
data: ScheduleValidationErrorData,
|
24
|
+
raw_response: httpx.Response,
|
25
|
+
body: Optional[str] = None,
|
26
|
+
):
|
27
|
+
message = body or raw_response.text
|
28
|
+
super().__init__(message, raw_response, body)
|
21
29
|
self.data = data
|
22
|
-
|
23
|
-
def __str__(self) -> str:
|
24
|
-
return utils.marshal_json(self.data, ScheduleValidationErrorData)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
import pydantic
|
7
8
|
from typing import Optional
|
@@ -20,11 +21,15 @@ class TerminalApplicationErrorData(BaseModel):
|
|
20
21
|
version_code: Annotated[Optional[str], pydantic.Field(alias="versionCode")] = None
|
21
22
|
|
22
23
|
|
23
|
-
class TerminalApplicationError(
|
24
|
+
class TerminalApplicationError(MoovError):
|
24
25
|
data: TerminalApplicationErrorData
|
25
26
|
|
26
|
-
def __init__(
|
27
|
+
def __init__(
|
28
|
+
self,
|
29
|
+
data: TerminalApplicationErrorData,
|
30
|
+
raw_response: httpx.Response,
|
31
|
+
body: Optional[str] = None,
|
32
|
+
):
|
33
|
+
message = body or raw_response.text
|
34
|
+
super().__init__(message, raw_response, body)
|
27
35
|
self.data = data
|
28
|
-
|
29
|
-
def __str__(self) -> str:
|
30
|
-
return utils.marshal_json(self.data, TerminalApplicationErrorData)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
from datetime import datetime
|
5
|
-
|
5
|
+
import httpx
|
6
6
|
from moovio_sdk.models.components import (
|
7
7
|
amount as components_amount,
|
8
8
|
cancellation as components_cancellation,
|
@@ -16,6 +16,7 @@ from moovio_sdk.models.components import (
|
|
16
16
|
transfersource as components_transfersource,
|
17
17
|
transferstatus as components_transferstatus,
|
18
18
|
)
|
19
|
+
from moovio_sdk.models.errors import MoovError
|
19
20
|
from moovio_sdk.types import BaseModel
|
20
21
|
import pydantic
|
21
22
|
from typing import Dict, List, Optional
|
@@ -114,13 +115,17 @@ class TransferData(BaseModel):
|
|
114
115
|
r"""Optional alias from a foreign/external system which can be used to reference this resource."""
|
115
116
|
|
116
117
|
|
117
|
-
class Transfer(
|
118
|
+
class Transfer(MoovError):
|
118
119
|
r"""Details of a Transfer."""
|
119
120
|
|
120
121
|
data: TransferData
|
121
122
|
|
122
|
-
def __init__(
|
123
|
+
def __init__(
|
124
|
+
self,
|
125
|
+
data: TransferData,
|
126
|
+
raw_response: httpx.Response,
|
127
|
+
body: Optional[str] = None,
|
128
|
+
):
|
129
|
+
message = body or raw_response.text
|
130
|
+
super().__init__(message, raw_response, body)
|
123
131
|
self.data = data
|
124
|
-
|
125
|
-
def __str__(self) -> str:
|
126
|
-
return utils.marshal_json(self.data, TransferData)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
from typing import Optional
|
7
8
|
|
@@ -14,11 +15,15 @@ class TransferOptionsValidationErrorData(BaseModel):
|
|
14
15
|
destination: Optional[str] = None
|
15
16
|
|
16
17
|
|
17
|
-
class TransferOptionsValidationError(
|
18
|
+
class TransferOptionsValidationError(MoovError):
|
18
19
|
data: TransferOptionsValidationErrorData
|
19
20
|
|
20
|
-
def __init__(
|
21
|
+
def __init__(
|
22
|
+
self,
|
23
|
+
data: TransferOptionsValidationErrorData,
|
24
|
+
raw_response: httpx.Response,
|
25
|
+
body: Optional[str] = None,
|
26
|
+
):
|
27
|
+
message = body or raw_response.text
|
28
|
+
super().__init__(message, raw_response, body)
|
21
29
|
self.data = data
|
22
|
-
|
23
|
-
def __str__(self) -> str:
|
24
|
-
return utils.marshal_json(self.data, TransferOptionsValidationErrorData)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
5
6
|
from moovio_sdk.types import BaseModel
|
6
7
|
import pydantic
|
7
8
|
from typing import Optional
|
@@ -39,11 +40,15 @@ class TransferValidationErrorData(BaseModel):
|
|
39
40
|
r"""Used for generic errors when invalid request data isn't attributed to a single request field."""
|
40
41
|
|
41
42
|
|
42
|
-
class TransferValidationError(
|
43
|
+
class TransferValidationError(MoovError):
|
43
44
|
data: TransferValidationErrorData
|
44
45
|
|
45
|
-
def __init__(
|
46
|
+
def __init__(
|
47
|
+
self,
|
48
|
+
data: TransferValidationErrorData,
|
49
|
+
raw_response: httpx.Response,
|
50
|
+
body: Optional[str] = None,
|
51
|
+
):
|
52
|
+
message = body or raw_response.text
|
53
|
+
super().__init__(message, raw_response, body)
|
46
54
|
self.data = data
|
47
|
-
|
48
|
-
def __str__(self) -> str:
|
49
|
-
return utils.marshal_json(self.data, TransferValidationErrorData)
|
@@ -1,24 +1,30 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
|
4
|
+
import httpx
|
5
5
|
from moovio_sdk.models.components import (
|
6
6
|
patchaccounterror as components_patchaccounterror,
|
7
7
|
)
|
8
|
+
from moovio_sdk.models.errors import MoovError
|
8
9
|
from moovio_sdk.types import BaseModel
|
10
|
+
from typing import Optional
|
9
11
|
|
10
12
|
|
11
13
|
class UpdateAccountResponseBodyData(BaseModel):
|
12
14
|
error: components_patchaccounterror.PatchAccountError
|
13
15
|
|
14
16
|
|
15
|
-
class UpdateAccountResponseBody(
|
17
|
+
class UpdateAccountResponseBody(MoovError):
|
16
18
|
r"""The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields."""
|
17
19
|
|
18
20
|
data: UpdateAccountResponseBodyData
|
19
21
|
|
20
|
-
def __init__(
|
22
|
+
def __init__(
|
23
|
+
self,
|
24
|
+
data: UpdateAccountResponseBodyData,
|
25
|
+
raw_response: httpx.Response,
|
26
|
+
body: Optional[str] = None,
|
27
|
+
):
|
28
|
+
message = body or raw_response.text
|
29
|
+
super().__init__(message, raw_response, body)
|
21
30
|
self.data = data
|
22
|
-
|
23
|
-
def __str__(self) -> str:
|
24
|
-
return utils.marshal_json(self.data, UpdateAccountResponseBodyData)
|