moovio_sdk 0.14.2__py3-none-any.whl → 0.14.4__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/underwritingstatus.py +2 -2
- moovio_sdk/models/components/wallettransactionsourcetype.py +1 -0
- moovio_sdk/models/components/wallettransactiontype.py +1 -0
- moovio_sdk/models/errors/accountterminalapplicationerror.py +4 -2
- moovio_sdk/models/errors/addcapabilitieserror.py +4 -2
- moovio_sdk/models/errors/apierror.py +2 -0
- moovio_sdk/models/errors/assigncountrieserror.py +4 -2
- moovio_sdk/models/errors/authtokenrequesterror.py +4 -2
- moovio_sdk/models/errors/bankaccountvalidationerror.py +4 -2
- moovio_sdk/models/errors/brandvalidationerror.py +4 -2
- moovio_sdk/models/errors/cardacquiringrefund.py +4 -2
- moovio_sdk/models/errors/createaccounterror.py +4 -2
- moovio_sdk/models/errors/createpaymentlinkerror.py +4 -2
- moovio_sdk/models/errors/createsweepconfigerror.py +4 -2
- moovio_sdk/models/errors/createticketerror.py +4 -2
- moovio_sdk/models/errors/createwalleterror.py +4 -2
- moovio_sdk/models/errors/feeplanagreementerror.py +4 -2
- moovio_sdk/models/errors/fileuploadvalidationerror.py +4 -2
- moovio_sdk/models/errors/filevalidationerror.py +4 -2
- moovio_sdk/models/errors/genericerror.py +4 -2
- moovio_sdk/models/errors/linkapplepayerror.py +4 -2
- moovio_sdk/models/errors/linkcarderror.py +4 -2
- moovio_sdk/models/errors/microdepositvalidationerror.py +4 -2
- moovio_sdk/models/errors/mooverror.py +11 -7
- moovio_sdk/models/errors/no_response_error.py +5 -1
- moovio_sdk/models/errors/onboardinginviteerror.py +4 -2
- moovio_sdk/models/errors/patchaccounterror.py +4 -2
- moovio_sdk/models/errors/patchsweepconfigerror.py +4 -2
- moovio_sdk/models/errors/patchwalleterror.py +4 -2
- moovio_sdk/models/errors/refundvalidationerror.py +4 -2
- moovio_sdk/models/errors/representativevalidationerror.py +4 -2
- moovio_sdk/models/errors/requestcarderror.py +4 -2
- moovio_sdk/models/errors/responsevalidationerror.py +2 -0
- moovio_sdk/models/errors/reversalvalidationerror.py +4 -2
- moovio_sdk/models/errors/revoketokenrequesterror.py +4 -2
- moovio_sdk/models/errors/schedulevalidationerror.py +4 -2
- moovio_sdk/models/errors/terminalapplicationerror.py +4 -2
- moovio_sdk/models/errors/transfer.py +4 -2
- moovio_sdk/models/errors/transferoptionsvalidationerror.py +4 -2
- moovio_sdk/models/errors/transfervalidationerror.py +4 -2
- moovio_sdk/models/errors/updatecarderror.py +4 -2
- moovio_sdk/models/errors/updateissuedcarderror.py +4 -2
- moovio_sdk/models/errors/updatepaymentlinkerror.py +4 -2
- moovio_sdk/models/errors/updateticketerror.py +4 -2
- moovio_sdk/models/errors/updateunderwritingerror.py +4 -2
- moovio_sdk/models/errors/upsertunderwritingerror.py +4 -2
- {moovio_sdk-0.14.2.dist-info → moovio_sdk-0.14.4.dist-info}/METADATA +1 -1
- {moovio_sdk-0.14.2.dist-info → moovio_sdk-0.14.4.dist-info}/RECORD +50 -50
- {moovio_sdk-0.14.2.dist-info → moovio_sdk-0.14.4.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.14.
|
6
|
+
__version__: str = "0.14.4"
|
7
7
|
__openapi_doc_version__: str = "latest"
|
8
|
-
__gen_version__: str = "2.
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.14.
|
8
|
+
__gen_version__: str = "2.698.4"
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.14.4 2.698.4 latest moovio_sdk"
|
10
10
|
|
11
11
|
try:
|
12
12
|
if __package__ is not None:
|
@@ -11,6 +11,6 @@ from typing_extensions import deprecated
|
|
11
11
|
class UnderwritingStatus(str, Enum):
|
12
12
|
APPROVED = "approved"
|
13
13
|
REJECTED = "rejected"
|
14
|
-
PENDING_REVIEW = "
|
14
|
+
PENDING_REVIEW = "pendingReview"
|
15
15
|
PENDING = "pending"
|
16
|
-
NOT_REQUESTED = "
|
16
|
+
NOT_REQUESTED = "notRequested"
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -15,8 +16,9 @@ class AccountTerminalApplicationErrorData(BaseModel):
|
|
15
16
|
] = None
|
16
17
|
|
17
18
|
|
19
|
+
@dataclass(frozen=True)
|
18
20
|
class AccountTerminalApplicationError(MoovError):
|
19
|
-
data: AccountTerminalApplicationErrorData
|
21
|
+
data: AccountTerminalApplicationErrorData = field(hash=False)
|
20
22
|
|
21
23
|
def __init__(
|
22
24
|
self,
|
@@ -26,4 +28,4 @@ class AccountTerminalApplicationError(MoovError):
|
|
26
28
|
):
|
27
29
|
message = body or raw_response.text
|
28
30
|
super().__init__(message, raw_response, body)
|
29
|
-
self
|
31
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -13,8 +14,9 @@ class AddCapabilitiesErrorData(BaseModel):
|
|
13
14
|
capabilities: Optional[Dict[str, str]] = None
|
14
15
|
|
15
16
|
|
17
|
+
@dataclass(frozen=True)
|
16
18
|
class AddCapabilitiesError(MoovError):
|
17
|
-
data: AddCapabilitiesErrorData
|
19
|
+
data: AddCapabilitiesErrorData = field(hash=False)
|
18
20
|
|
19
21
|
def __init__(
|
20
22
|
self,
|
@@ -24,4 +26,4 @@ class AddCapabilitiesError(MoovError):
|
|
24
26
|
):
|
25
27
|
message = body or raw_response.text
|
26
28
|
super().__init__(message, raw_response, body)
|
27
|
-
self
|
29
|
+
object.__setattr__(self, "data", data)
|
@@ -2,12 +2,14 @@
|
|
2
2
|
|
3
3
|
import httpx
|
4
4
|
from typing import Optional
|
5
|
+
from dataclasses import dataclass
|
5
6
|
|
6
7
|
from moovio_sdk.models.errors import MoovError
|
7
8
|
|
8
9
|
MAX_MESSAGE_LEN = 10_000
|
9
10
|
|
10
11
|
|
12
|
+
@dataclass(frozen=True)
|
11
13
|
class APIError(MoovError):
|
12
14
|
"""The fallback error class if no more specific error class is matched."""
|
13
15
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -11,8 +12,9 @@ class AssignCountriesErrorData(BaseModel):
|
|
11
12
|
countries: Dict[str, str]
|
12
13
|
|
13
14
|
|
15
|
+
@dataclass(frozen=True)
|
14
16
|
class AssignCountriesError(MoovError):
|
15
|
-
data: AssignCountriesErrorData
|
17
|
+
data: AssignCountriesErrorData = field(hash=False)
|
16
18
|
|
17
19
|
def __init__(
|
18
20
|
self,
|
@@ -22,4 +24,4 @@ class AssignCountriesError(MoovError):
|
|
22
24
|
):
|
23
25
|
message = body or raw_response.text
|
24
26
|
super().__init__(message, raw_response, body)
|
25
|
-
self
|
27
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -13,8 +14,9 @@ class AuthTokenRequestErrorData(BaseModel):
|
|
13
14
|
refresh_token: Optional[str] = None
|
14
15
|
|
15
16
|
|
17
|
+
@dataclass(frozen=True)
|
16
18
|
class AuthTokenRequestError(MoovError):
|
17
|
-
data: AuthTokenRequestErrorData
|
19
|
+
data: AuthTokenRequestErrorData = field(hash=False)
|
18
20
|
|
19
21
|
def __init__(
|
20
22
|
self,
|
@@ -24,4 +26,4 @@ class AuthTokenRequestError(MoovError):
|
|
24
26
|
):
|
25
27
|
message = body or raw_response.text
|
26
28
|
super().__init__(message, raw_response, body)
|
27
|
-
self
|
29
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -21,8 +22,9 @@ class BankAccountValidationErrorData(BaseModel):
|
|
21
22
|
error: Optional[str] = None
|
22
23
|
|
23
24
|
|
25
|
+
@dataclass(frozen=True)
|
24
26
|
class BankAccountValidationError(MoovError):
|
25
|
-
data: BankAccountValidationErrorData
|
27
|
+
data: BankAccountValidationErrorData = field(hash=False)
|
26
28
|
|
27
29
|
def __init__(
|
28
30
|
self,
|
@@ -32,4 +34,4 @@ class BankAccountValidationError(MoovError):
|
|
32
34
|
):
|
33
35
|
message = body or raw_response.text
|
34
36
|
super().__init__(message, raw_response, body)
|
35
|
-
self
|
37
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.components import (
|
6
7
|
colorsvalidationerror as components_colorsvalidationerror,
|
@@ -14,8 +15,9 @@ class BrandValidationErrorData(BaseModel):
|
|
14
15
|
colors: Optional[components_colorsvalidationerror.ColorsValidationError] = None
|
15
16
|
|
16
17
|
|
18
|
+
@dataclass(frozen=True)
|
17
19
|
class BrandValidationError(MoovError):
|
18
|
-
data: BrandValidationErrorData
|
20
|
+
data: BrandValidationErrorData = field(hash=False)
|
19
21
|
|
20
22
|
def __init__(
|
21
23
|
self,
|
@@ -25,4 +27,4 @@ class BrandValidationError(MoovError):
|
|
25
27
|
):
|
26
28
|
message = body or raw_response.text
|
27
29
|
super().__init__(message, raw_response, body)
|
28
|
-
self
|
30
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
from datetime import datetime
|
5
6
|
import httpx
|
6
7
|
from moovio_sdk.models.components import (
|
@@ -33,10 +34,11 @@ class CardAcquiringRefundData(BaseModel):
|
|
33
34
|
] = None
|
34
35
|
|
35
36
|
|
37
|
+
@dataclass(frozen=True)
|
36
38
|
class CardAcquiringRefund(MoovError):
|
37
39
|
r"""Details of a card refund."""
|
38
40
|
|
39
|
-
data: CardAcquiringRefundData
|
41
|
+
data: CardAcquiringRefundData = field(hash=False)
|
40
42
|
|
41
43
|
def __init__(
|
42
44
|
self,
|
@@ -46,4 +48,4 @@ class CardAcquiringRefund(MoovError):
|
|
46
48
|
):
|
47
49
|
message = body or raw_response.text
|
48
50
|
super().__init__(message, raw_response, body)
|
49
|
-
self
|
51
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.components import (
|
6
7
|
createaccountsettings as components_createaccountsettings,
|
@@ -39,8 +40,9 @@ class CreateAccountErrorData(BaseModel):
|
|
39
40
|
capabilities: Optional[Dict[str, str]] = None
|
40
41
|
|
41
42
|
|
43
|
+
@dataclass(frozen=True)
|
42
44
|
class CreateAccountError(MoovError):
|
43
|
-
data: CreateAccountErrorData
|
45
|
+
data: CreateAccountErrorData = field(hash=False)
|
44
46
|
|
45
47
|
def __init__(
|
46
48
|
self,
|
@@ -50,4 +52,4 @@ class CreateAccountError(MoovError):
|
|
50
52
|
):
|
51
53
|
message = body or raw_response.text
|
52
54
|
super().__init__(message, raw_response, body)
|
53
|
-
self
|
55
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.components import (
|
6
7
|
amountvalidationerror as components_amountvalidationerror,
|
@@ -37,8 +38,9 @@ class CreatePaymentLinkErrorData(BaseModel):
|
|
37
38
|
payout: Optional[components_payoutdetailserror.PayoutDetailsError] = None
|
38
39
|
|
39
40
|
|
41
|
+
@dataclass(frozen=True)
|
40
42
|
class CreatePaymentLinkError(MoovError):
|
41
|
-
data: CreatePaymentLinkErrorData
|
43
|
+
data: CreatePaymentLinkErrorData = field(hash=False)
|
42
44
|
|
43
45
|
def __init__(
|
44
46
|
self,
|
@@ -48,4 +50,4 @@ class CreatePaymentLinkError(MoovError):
|
|
48
50
|
):
|
49
51
|
message = body or raw_response.text
|
50
52
|
super().__init__(message, raw_response, body)
|
51
|
-
self
|
53
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -31,8 +32,9 @@ class CreateSweepConfigErrorData(BaseModel):
|
|
31
32
|
] = None
|
32
33
|
|
33
34
|
|
35
|
+
@dataclass(frozen=True)
|
34
36
|
class CreateSweepConfigError(MoovError):
|
35
|
-
data: CreateSweepConfigErrorData
|
37
|
+
data: CreateSweepConfigErrorData = field(hash=False)
|
36
38
|
|
37
39
|
def __init__(
|
38
40
|
self,
|
@@ -42,4 +44,4 @@ class CreateSweepConfigError(MoovError):
|
|
42
44
|
):
|
43
45
|
message = body or raw_response.text
|
44
46
|
super().__init__(message, raw_response, body)
|
45
|
-
self
|
47
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.components import (
|
6
7
|
createticketcontacterror as components_createticketcontacterror,
|
@@ -20,8 +21,9 @@ class CreateTicketErrorData(BaseModel):
|
|
20
21
|
)
|
21
22
|
|
22
23
|
|
24
|
+
@dataclass(frozen=True)
|
23
25
|
class CreateTicketError(MoovError):
|
24
|
-
data: CreateTicketErrorData
|
26
|
+
data: CreateTicketErrorData = field(hash=False)
|
25
27
|
|
26
28
|
def __init__(
|
27
29
|
self,
|
@@ -31,4 +33,4 @@ class CreateTicketError(MoovError):
|
|
31
33
|
):
|
32
34
|
message = body or raw_response.text
|
33
35
|
super().__init__(message, raw_response, body)
|
34
|
-
self
|
36
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -15,8 +16,9 @@ class CreateWalletErrorData(BaseModel):
|
|
15
16
|
metadata: Optional[str] = None
|
16
17
|
|
17
18
|
|
19
|
+
@dataclass(frozen=True)
|
18
20
|
class CreateWalletError(MoovError):
|
19
|
-
data: CreateWalletErrorData
|
21
|
+
data: CreateWalletErrorData = field(hash=False)
|
20
22
|
|
21
23
|
def __init__(
|
22
24
|
self,
|
@@ -26,4 +28,4 @@ class CreateWalletError(MoovError):
|
|
26
28
|
):
|
27
29
|
message = body or raw_response.text
|
28
30
|
super().__init__(message, raw_response, body)
|
29
|
-
self
|
31
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -13,8 +14,9 @@ class FeePlanAgreementErrorData(BaseModel):
|
|
13
14
|
plan_id: Annotated[Optional[str], pydantic.Field(alias="planID")] = None
|
14
15
|
|
15
16
|
|
17
|
+
@dataclass(frozen=True)
|
16
18
|
class FeePlanAgreementError(MoovError):
|
17
|
-
data: FeePlanAgreementErrorData
|
19
|
+
data: FeePlanAgreementErrorData = field(hash=False)
|
18
20
|
|
19
21
|
def __init__(
|
20
22
|
self,
|
@@ -24,4 +26,4 @@ class FeePlanAgreementError(MoovError):
|
|
24
26
|
):
|
25
27
|
message = body or raw_response.text
|
26
28
|
super().__init__(message, raw_response, body)
|
27
|
-
self
|
29
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -26,8 +27,9 @@ class FileUploadValidationErrorData(BaseModel):
|
|
26
27
|
file: Optional[File] = None
|
27
28
|
|
28
29
|
|
30
|
+
@dataclass(frozen=True)
|
29
31
|
class FileUploadValidationError(MoovError):
|
30
|
-
data: FileUploadValidationErrorData
|
32
|
+
data: FileUploadValidationErrorData = field(hash=False)
|
31
33
|
|
32
34
|
def __init__(
|
33
35
|
self,
|
@@ -37,4 +39,4 @@ class FileUploadValidationError(MoovError):
|
|
37
39
|
):
|
38
40
|
message = body or raw_response.text
|
39
41
|
super().__init__(message, raw_response, body)
|
40
|
-
self
|
42
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -21,8 +22,9 @@ class FileValidationErrorData(BaseModel):
|
|
21
22
|
metadata: Optional[str] = None
|
22
23
|
|
23
24
|
|
25
|
+
@dataclass(frozen=True)
|
24
26
|
class FileValidationError(MoovError):
|
25
|
-
data: FileValidationErrorData
|
27
|
+
data: FileValidationErrorData = field(hash=False)
|
26
28
|
|
27
29
|
def __init__(
|
28
30
|
self,
|
@@ -32,4 +34,4 @@ class FileValidationError(MoovError):
|
|
32
34
|
):
|
33
35
|
message = body or raw_response.text
|
34
36
|
super().__init__(message, raw_response, body)
|
35
|
-
self
|
37
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -11,8 +12,9 @@ class GenericErrorData(BaseModel):
|
|
11
12
|
error: str
|
12
13
|
|
13
14
|
|
15
|
+
@dataclass(frozen=True)
|
14
16
|
class GenericError(MoovError):
|
15
|
-
data: GenericErrorData
|
17
|
+
data: GenericErrorData = field(hash=False)
|
16
18
|
|
17
19
|
def __init__(
|
18
20
|
self,
|
@@ -22,4 +24,4 @@ class GenericError(MoovError):
|
|
22
24
|
):
|
23
25
|
message = body or raw_response.text
|
24
26
|
super().__init__(message, raw_response, body)
|
25
|
-
self
|
27
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -27,8 +28,9 @@ class LinkApplePayErrorData(BaseModel):
|
|
27
28
|
r"""Describes an error within the `token.transactionIdentifier` request field."""
|
28
29
|
|
29
30
|
|
31
|
+
@dataclass(frozen=True)
|
30
32
|
class LinkApplePayError(MoovError):
|
31
|
-
data: LinkApplePayErrorData
|
33
|
+
data: LinkApplePayErrorData = field(hash=False)
|
32
34
|
|
33
35
|
def __init__(
|
34
36
|
self,
|
@@ -38,4 +40,4 @@ class LinkApplePayError(MoovError):
|
|
38
40
|
):
|
39
41
|
message = body or raw_response.text
|
40
42
|
super().__init__(message, raw_response, body)
|
41
|
-
self
|
43
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.components import (
|
6
7
|
end2endencryptionerror as components_end2endencryptionerror,
|
@@ -38,8 +39,9 @@ class LinkCardErrorData(BaseModel):
|
|
38
39
|
verify_name: Annotated[Optional[str], pydantic.Field(alias="verifyName")] = None
|
39
40
|
|
40
41
|
|
42
|
+
@dataclass(frozen=True)
|
41
43
|
class LinkCardError(MoovError):
|
42
|
-
data: LinkCardErrorData
|
44
|
+
data: LinkCardErrorData = field(hash=False)
|
43
45
|
|
44
46
|
def __init__(
|
45
47
|
self,
|
@@ -49,4 +51,4 @@ class LinkCardError(MoovError):
|
|
49
51
|
):
|
50
52
|
message = body or raw_response.text
|
51
53
|
super().__init__(message, raw_response, body)
|
52
|
-
self
|
54
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -11,8 +12,9 @@ class MicroDepositValidationErrorData(BaseModel):
|
|
11
12
|
amounts: Optional[str] = None
|
12
13
|
|
13
14
|
|
15
|
+
@dataclass(frozen=True)
|
14
16
|
class MicroDepositValidationError(MoovError):
|
15
|
-
data: MicroDepositValidationErrorData
|
17
|
+
data: MicroDepositValidationErrorData = field(hash=False)
|
16
18
|
|
17
19
|
def __init__(
|
18
20
|
self,
|
@@ -22,4 +24,4 @@ class MicroDepositValidationError(MoovError):
|
|
22
24
|
):
|
23
25
|
message = body or raw_response.text
|
24
26
|
super().__init__(message, raw_response, body)
|
25
|
-
self
|
27
|
+
object.__setattr__(self, "data", data)
|
@@ -2,25 +2,29 @@
|
|
2
2
|
|
3
3
|
import httpx
|
4
4
|
from typing import Optional
|
5
|
+
from dataclasses import dataclass, field
|
5
6
|
|
6
7
|
|
8
|
+
@dataclass(frozen=True)
|
7
9
|
class MoovError(Exception):
|
8
10
|
"""The base class for all HTTP error responses."""
|
9
11
|
|
10
12
|
message: str
|
11
13
|
status_code: int
|
12
14
|
body: str
|
13
|
-
headers: httpx.Headers
|
14
|
-
raw_response: httpx.Response
|
15
|
+
headers: httpx.Headers = field(hash=False)
|
16
|
+
raw_response: httpx.Response = field(hash=False)
|
15
17
|
|
16
18
|
def __init__(
|
17
19
|
self, message: str, raw_response: httpx.Response, body: Optional[str] = None
|
18
20
|
):
|
19
|
-
self
|
20
|
-
self
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
object.__setattr__(self, "message", message)
|
22
|
+
object.__setattr__(self, "status_code", raw_response.status_code)
|
23
|
+
object.__setattr__(
|
24
|
+
self, "body", body if body is not None else raw_response.text
|
25
|
+
)
|
26
|
+
object.__setattr__(self, "headers", raw_response.headers)
|
27
|
+
object.__setattr__(self, "raw_response", raw_response)
|
24
28
|
|
25
29
|
def __str__(self):
|
26
30
|
return self.message
|
@@ -1,12 +1,16 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
|
+
from dataclasses import dataclass
|
4
|
+
|
5
|
+
|
6
|
+
@dataclass(frozen=True)
|
3
7
|
class NoResponseError(Exception):
|
4
8
|
"""Error raised when no HTTP response is received from the server."""
|
5
9
|
|
6
10
|
message: str
|
7
11
|
|
8
12
|
def __init__(self, message: str = "No response received"):
|
9
|
-
self
|
13
|
+
object.__setattr__(self, "message", message)
|
10
14
|
super().__init__(message)
|
11
15
|
|
12
16
|
def __str__(self):
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -25,8 +26,9 @@ class OnboardingInviteErrorData(BaseModel):
|
|
25
26
|
] = None
|
26
27
|
|
27
28
|
|
29
|
+
@dataclass(frozen=True)
|
28
30
|
class OnboardingInviteError(MoovError):
|
29
|
-
data: OnboardingInviteErrorData
|
31
|
+
data: OnboardingInviteErrorData = field(hash=False)
|
30
32
|
|
31
33
|
def __init__(
|
32
34
|
self,
|
@@ -36,4 +38,4 @@ class OnboardingInviteError(MoovError):
|
|
36
38
|
):
|
37
39
|
message = body or raw_response.text
|
38
40
|
super().__init__(message, raw_response, body)
|
39
|
-
self
|
41
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.components import (
|
6
7
|
createaccountsettings as components_createaccountsettings,
|
@@ -37,8 +38,9 @@ class PatchAccountErrorData(BaseModel):
|
|
37
38
|
error: Optional[str] = None
|
38
39
|
|
39
40
|
|
41
|
+
@dataclass(frozen=True)
|
40
42
|
class PatchAccountError(MoovError):
|
41
|
-
data: PatchAccountErrorData
|
43
|
+
data: PatchAccountErrorData = field(hash=False)
|
42
44
|
|
43
45
|
def __init__(
|
44
46
|
self,
|
@@ -48,4 +50,4 @@ class PatchAccountError(MoovError):
|
|
48
50
|
):
|
49
51
|
message = body or raw_response.text
|
50
52
|
super().__init__(message, raw_response, body)
|
51
|
-
self
|
53
|
+
object.__setattr__(self, "data", data)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
import httpx
|
5
6
|
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
@@ -29,8 +30,9 @@ class PatchSweepConfigErrorData(BaseModel):
|
|
29
30
|
] = None
|
30
31
|
|
31
32
|
|
33
|
+
@dataclass(frozen=True)
|
32
34
|
class PatchSweepConfigError(MoovError):
|
33
|
-
data: PatchSweepConfigErrorData
|
35
|
+
data: PatchSweepConfigErrorData = field(hash=False)
|
34
36
|
|
35
37
|
def __init__(
|
36
38
|
self,
|
@@ -40,4 +42,4 @@ class PatchSweepConfigError(MoovError):
|
|
40
42
|
):
|
41
43
|
message = body or raw_response.text
|
42
44
|
super().__init__(message, raw_response, body)
|
43
|
-
self
|
45
|
+
object.__setattr__(self, "data", data)
|