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
@@ -0,0 +1,17 @@
|
|
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
|
+
from typing import Optional
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
7
|
+
|
8
|
+
|
9
|
+
class TicketContactTypedDict(TypedDict):
|
10
|
+
email: str
|
11
|
+
name: NotRequired[str]
|
12
|
+
|
13
|
+
|
14
|
+
class TicketContact(BaseModel):
|
15
|
+
email: str
|
16
|
+
|
17
|
+
name: Optional[str] = None
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from datetime import datetime
|
5
|
+
from moovio_sdk.types import BaseModel
|
6
|
+
import pydantic
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
8
|
+
|
9
|
+
|
10
|
+
class TicketMessageTypedDict(TypedDict):
|
11
|
+
author: str
|
12
|
+
body: str
|
13
|
+
sent_on: datetime
|
14
|
+
|
15
|
+
|
16
|
+
class TicketMessage(BaseModel):
|
17
|
+
author: str
|
18
|
+
|
19
|
+
body: str
|
20
|
+
|
21
|
+
sent_on: Annotated[datetime, pydantic.Field(alias="sentOn")]
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from enum import Enum
|
5
|
+
|
6
|
+
|
7
|
+
class TicketStatus(str, Enum):
|
8
|
+
NEW = "new"
|
9
|
+
IN_PROGRESS = "in-progress"
|
10
|
+
ON_HOLD = "on-hold"
|
11
|
+
CLOSED = "closed"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .updateticketstatus import UpdateTicketStatus
|
5
|
+
from moovio_sdk.types import BaseModel
|
6
|
+
from typing import Optional
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
8
|
+
|
9
|
+
|
10
|
+
class UpdateTicketTypedDict(TypedDict):
|
11
|
+
r"""Request to update a support ticket."""
|
12
|
+
|
13
|
+
status: NotRequired[UpdateTicketStatus]
|
14
|
+
|
15
|
+
|
16
|
+
class UpdateTicket(BaseModel):
|
17
|
+
r"""Request to update a support ticket."""
|
18
|
+
|
19
|
+
status: Optional[UpdateTicketStatus] = None
|
@@ -27,6 +27,7 @@ if TYPE_CHECKING:
|
|
27
27
|
CreateSweepConfigError,
|
28
28
|
CreateSweepConfigErrorData,
|
29
29
|
)
|
30
|
+
from .createticketerror import CreateTicketError, CreateTicketErrorData
|
30
31
|
from .feeplanagreementerror import FeePlanAgreementError, FeePlanAgreementErrorData
|
31
32
|
from .fileuploadvalidationerror import (
|
32
33
|
File,
|
@@ -42,6 +43,8 @@ if TYPE_CHECKING:
|
|
42
43
|
MicroDepositValidationError,
|
43
44
|
MicroDepositValidationErrorData,
|
44
45
|
)
|
46
|
+
from .mooverror import MoovError
|
47
|
+
from .no_response_error import NoResponseError
|
45
48
|
from .onboardinginviteerror import OnboardingInviteError, OnboardingInviteErrorData
|
46
49
|
from .patchsweepconfigerror import PatchSweepConfigError, PatchSweepConfigErrorData
|
47
50
|
from .refundvalidationerror import RefundValidationError, RefundValidationErrorData
|
@@ -52,6 +55,7 @@ if TYPE_CHECKING:
|
|
52
55
|
RepresentativeValidationErrorData,
|
53
56
|
)
|
54
57
|
from .requestcarderror import RequestCardError, RequestCardErrorData
|
58
|
+
from .responsevalidationerror import ResponseValidationError
|
55
59
|
from .reversalvalidationerror import (
|
56
60
|
ReversalValidationError,
|
57
61
|
ReversalValidationErrorData,
|
@@ -84,6 +88,7 @@ if TYPE_CHECKING:
|
|
84
88
|
UpdatePaymentLinkError,
|
85
89
|
UpdatePaymentLinkErrorData,
|
86
90
|
)
|
91
|
+
from .updateticketerror import UpdateTicketError, UpdateTicketErrorData
|
87
92
|
from .updateunderwritingerror import (
|
88
93
|
UpdateUnderwritingError,
|
89
94
|
UpdateUnderwritingErrorData,
|
@@ -117,6 +122,8 @@ __all__ = [
|
|
117
122
|
"CreatePaymentLinkErrorData",
|
118
123
|
"CreateSweepConfigError",
|
119
124
|
"CreateSweepConfigErrorData",
|
125
|
+
"CreateTicketError",
|
126
|
+
"CreateTicketErrorData",
|
120
127
|
"Error",
|
121
128
|
"ErrorTypedDict",
|
122
129
|
"FeePlanAgreementError",
|
@@ -135,6 +142,8 @@ __all__ = [
|
|
135
142
|
"LinkCardErrorData",
|
136
143
|
"MicroDepositValidationError",
|
137
144
|
"MicroDepositValidationErrorData",
|
145
|
+
"MoovError",
|
146
|
+
"NoResponseError",
|
138
147
|
"OnboardingInviteError",
|
139
148
|
"OnboardingInviteErrorData",
|
140
149
|
"PatchSweepConfigError",
|
@@ -145,6 +154,7 @@ __all__ = [
|
|
145
154
|
"RepresentativeValidationErrorData",
|
146
155
|
"RequestCardError",
|
147
156
|
"RequestCardErrorData",
|
157
|
+
"ResponseValidationError",
|
148
158
|
"ReversalValidationError",
|
149
159
|
"ReversalValidationErrorData",
|
150
160
|
"RevokeTokenRequestError",
|
@@ -167,6 +177,8 @@ __all__ = [
|
|
167
177
|
"UpdateIssuedCardErrorData",
|
168
178
|
"UpdatePaymentLinkError",
|
169
179
|
"UpdatePaymentLinkErrorData",
|
180
|
+
"UpdateTicketError",
|
181
|
+
"UpdateTicketErrorData",
|
170
182
|
"UpdateUnderwritingError",
|
171
183
|
"UpdateUnderwritingErrorData",
|
172
184
|
"UpdateUnderwritingErrorError",
|
@@ -197,6 +209,8 @@ _dynamic_imports: dict[str, str] = {
|
|
197
209
|
"CreatePaymentLinkErrorData": ".createpaymentlinkerror",
|
198
210
|
"CreateSweepConfigError": ".createsweepconfigerror",
|
199
211
|
"CreateSweepConfigErrorData": ".createsweepconfigerror",
|
212
|
+
"CreateTicketError": ".createticketerror",
|
213
|
+
"CreateTicketErrorData": ".createticketerror",
|
200
214
|
"FeePlanAgreementError": ".feeplanagreementerror",
|
201
215
|
"FeePlanAgreementErrorData": ".feeplanagreementerror",
|
202
216
|
"File": ".fileuploadvalidationerror",
|
@@ -213,6 +227,8 @@ _dynamic_imports: dict[str, str] = {
|
|
213
227
|
"LinkCardErrorData": ".linkcarderror",
|
214
228
|
"MicroDepositValidationError": ".microdepositvalidationerror",
|
215
229
|
"MicroDepositValidationErrorData": ".microdepositvalidationerror",
|
230
|
+
"MoovError": ".mooverror",
|
231
|
+
"NoResponseError": ".no_response_error",
|
216
232
|
"OnboardingInviteError": ".onboardinginviteerror",
|
217
233
|
"OnboardingInviteErrorData": ".onboardinginviteerror",
|
218
234
|
"PatchSweepConfigError": ".patchsweepconfigerror",
|
@@ -225,6 +241,7 @@ _dynamic_imports: dict[str, str] = {
|
|
225
241
|
"RepresentativeValidationErrorData": ".representativevalidationerror",
|
226
242
|
"RequestCardError": ".requestcarderror",
|
227
243
|
"RequestCardErrorData": ".requestcarderror",
|
244
|
+
"ResponseValidationError": ".responsevalidationerror",
|
228
245
|
"ReversalValidationError": ".reversalvalidationerror",
|
229
246
|
"ReversalValidationErrorData": ".reversalvalidationerror",
|
230
247
|
"RevokeTokenRequestError": ".revoketokenrequesterror",
|
@@ -247,6 +264,8 @@ _dynamic_imports: dict[str, str] = {
|
|
247
264
|
"UpdateIssuedCardErrorData": ".updateissuedcarderror",
|
248
265
|
"UpdatePaymentLinkError": ".updatepaymentlinkerror",
|
249
266
|
"UpdatePaymentLinkErrorData": ".updatepaymentlinkerror",
|
267
|
+
"UpdateTicketError": ".updateticketerror",
|
268
|
+
"UpdateTicketErrorData": ".updateticketerror",
|
250
269
|
"UpdateUnderwritingError": ".updateunderwritingerror",
|
251
270
|
"UpdateUnderwritingErrorData": ".updateunderwritingerror",
|
252
271
|
"UpdateUnderwritingErrorError": ".updateunderwritingerror",
|
@@ -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
|
@@ -14,11 +15,15 @@ class AccountTerminalApplicationErrorData(BaseModel):
|
|
14
15
|
] = None
|
15
16
|
|
16
17
|
|
17
|
-
class AccountTerminalApplicationError(
|
18
|
+
class AccountTerminalApplicationError(MoovError):
|
18
19
|
data: AccountTerminalApplicationErrorData
|
19
20
|
|
20
|
-
def __init__(
|
21
|
+
def __init__(
|
22
|
+
self,
|
23
|
+
data: AccountTerminalApplicationErrorData,
|
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, AccountTerminalApplicationErrorData)
|
@@ -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
|
capabilitieserror as components_capabilitieserror,
|
7
7
|
)
|
8
|
+
from moovio_sdk.models.errors import MoovError
|
8
9
|
from moovio_sdk.types import BaseModel
|
9
10
|
from typing import Optional
|
10
11
|
|
@@ -13,11 +14,15 @@ class AddCapabilitiesErrorData(BaseModel):
|
|
13
14
|
error: Optional[components_capabilitieserror.CapabilitiesError] = None
|
14
15
|
|
15
16
|
|
16
|
-
class AddCapabilitiesError(
|
17
|
+
class AddCapabilitiesError(MoovError):
|
17
18
|
data: AddCapabilitiesErrorData
|
18
19
|
|
19
|
-
def __init__(
|
20
|
+
def __init__(
|
21
|
+
self,
|
22
|
+
data: AddCapabilitiesErrorData,
|
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, AddCapabilitiesErrorData)
|
@@ -1,22 +1,38 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
|
-
from dataclasses import dataclass
|
4
|
-
from typing import Optional
|
5
3
|
import httpx
|
4
|
+
from typing import Optional
|
5
|
+
|
6
|
+
from moovio_sdk.models.errors import MoovError
|
7
|
+
|
8
|
+
MAX_MESSAGE_LEN = 10_000
|
9
|
+
|
10
|
+
|
11
|
+
class APIError(MoovError):
|
12
|
+
"""The fallback error class if no more specific error class is matched."""
|
13
|
+
|
14
|
+
def __init__(
|
15
|
+
self, message: str, raw_response: httpx.Response, body: Optional[str] = None
|
16
|
+
):
|
17
|
+
body_display = body or raw_response.text or '""'
|
6
18
|
|
19
|
+
if message:
|
20
|
+
message += ": "
|
21
|
+
message += f"Status {raw_response.status_code}"
|
7
22
|
|
8
|
-
|
9
|
-
|
10
|
-
|
23
|
+
headers = raw_response.headers
|
24
|
+
content_type = headers.get("content-type", '""')
|
25
|
+
if content_type != "application/json":
|
26
|
+
if " " in content_type:
|
27
|
+
content_type = f'"{content_type}"'
|
28
|
+
message += f" Content-Type {content_type}"
|
11
29
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
30
|
+
if len(body_display) > MAX_MESSAGE_LEN:
|
31
|
+
truncated = body_display[:MAX_MESSAGE_LEN]
|
32
|
+
remaining = len(body_display) - MAX_MESSAGE_LEN
|
33
|
+
body_display = f"{truncated}...and {remaining} more chars"
|
16
34
|
|
17
|
-
|
18
|
-
|
19
|
-
if len(self.body) > 0:
|
20
|
-
body = f"\n{self.body}"
|
35
|
+
message += f". Body: {body_display}"
|
36
|
+
message = message.strip()
|
21
37
|
|
22
|
-
|
38
|
+
super().__init__(message, raw_response, body)
|
@@ -1,20 +1,26 @@
|
|
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 countrieserrors as components_countrieserrors
|
6
|
+
from moovio_sdk.models.errors import MoovError
|
6
7
|
from moovio_sdk.types import BaseModel
|
8
|
+
from typing import Optional
|
7
9
|
|
8
10
|
|
9
11
|
class AssignCountriesErrorData(BaseModel):
|
10
12
|
error: components_countrieserrors.CountriesErrors
|
11
13
|
|
12
14
|
|
13
|
-
class AssignCountriesError(
|
15
|
+
class AssignCountriesError(MoovError):
|
14
16
|
data: AssignCountriesErrorData
|
15
17
|
|
16
|
-
def __init__(
|
18
|
+
def __init__(
|
19
|
+
self,
|
20
|
+
data: AssignCountriesErrorData,
|
21
|
+
raw_response: httpx.Response,
|
22
|
+
body: Optional[str] = None,
|
23
|
+
):
|
24
|
+
message = body or raw_response.text
|
25
|
+
super().__init__(message, raw_response, body)
|
17
26
|
self.data = data
|
18
|
-
|
19
|
-
def __str__(self) -> str:
|
20
|
-
return utils.marshal_json(self.data, AssignCountriesErrorData)
|
@@ -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 AuthTokenRequestErrorData(BaseModel):
|
|
12
13
|
refresh_token: Optional[str] = None
|
13
14
|
|
14
15
|
|
15
|
-
class AuthTokenRequestError(
|
16
|
+
class AuthTokenRequestError(MoovError):
|
16
17
|
data: AuthTokenRequestErrorData
|
17
18
|
|
18
|
-
def __init__(
|
19
|
+
def __init__(
|
20
|
+
self,
|
21
|
+
data: AuthTokenRequestErrorData,
|
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, AuthTokenRequestErrorData)
|
@@ -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 BankAccountValidationErrorData(BaseModel):
|
|
20
21
|
error: Optional[str] = None
|
21
22
|
|
22
23
|
|
23
|
-
class BankAccountValidationError(
|
24
|
+
class BankAccountValidationError(MoovError):
|
24
25
|
data: BankAccountValidationErrorData
|
25
26
|
|
26
|
-
def __init__(
|
27
|
+
def __init__(
|
28
|
+
self,
|
29
|
+
data: BankAccountValidationErrorData,
|
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, BankAccountValidationErrorData)
|
@@ -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
|
colorsvalidationerror as components_colorsvalidationerror,
|
7
7
|
)
|
8
|
+
from moovio_sdk.models.errors import MoovError
|
8
9
|
from moovio_sdk.types import BaseModel
|
9
10
|
from typing import Optional
|
10
11
|
|
@@ -13,11 +14,15 @@ class BrandValidationErrorData(BaseModel):
|
|
13
14
|
colors: Optional[components_colorsvalidationerror.ColorsValidationError] = None
|
14
15
|
|
15
16
|
|
16
|
-
class BrandValidationError(
|
17
|
+
class BrandValidationError(MoovError):
|
17
18
|
data: BrandValidationErrorData
|
18
19
|
|
19
|
-
def __init__(
|
20
|
+
def __init__(
|
21
|
+
self,
|
22
|
+
data: BrandValidationErrorData,
|
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, BrandValidationErrorData)
|
@@ -2,12 +2,13 @@
|
|
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
|
refundcarddetails as components_refundcarddetails,
|
9
9
|
refundstatus as components_refundstatus,
|
10
10
|
)
|
11
|
+
from moovio_sdk.models.errors import MoovError
|
11
12
|
from moovio_sdk.types import BaseModel
|
12
13
|
import pydantic
|
13
14
|
from typing import Optional
|
@@ -32,13 +33,17 @@ class CardAcquiringRefundData(BaseModel):
|
|
32
33
|
] = None
|
33
34
|
|
34
35
|
|
35
|
-
class CardAcquiringRefund(
|
36
|
+
class CardAcquiringRefund(MoovError):
|
36
37
|
r"""Details of a card refund."""
|
37
38
|
|
38
39
|
data: CardAcquiringRefundData
|
39
40
|
|
40
|
-
def __init__(
|
41
|
+
def __init__(
|
42
|
+
self,
|
43
|
+
data: CardAcquiringRefundData,
|
44
|
+
raw_response: httpx.Response,
|
45
|
+
body: Optional[str] = None,
|
46
|
+
):
|
47
|
+
message = body or raw_response.text
|
48
|
+
super().__init__(message, raw_response, body)
|
41
49
|
self.data = data
|
42
|
-
|
43
|
-
def __str__(self) -> str:
|
44
|
-
return utils.marshal_json(self.data, CardAcquiringRefundData)
|
@@ -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
|
createaccounterror as components_createaccounterror,
|
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 CreateAccountResponseBodyData(BaseModel):
|
12
14
|
error: components_createaccounterror.CreateAccountError
|
13
15
|
|
14
16
|
|
15
|
-
class CreateAccountResponseBody(
|
17
|
+
class CreateAccountResponseBody(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: CreateAccountResponseBodyData
|
19
21
|
|
20
|
-
def __init__(
|
22
|
+
def __init__(
|
23
|
+
self,
|
24
|
+
data: CreateAccountResponseBodyData,
|
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, CreateAccountResponseBodyData)
|
@@ -1,13 +1,14 @@
|
|
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
|
amountvalidationerror as components_amountvalidationerror,
|
7
7
|
displayoptionserror as components_displayoptionserror,
|
8
8
|
paymentdetailserror as components_paymentdetailserror,
|
9
9
|
payoutdetailserror as components_payoutdetailserror,
|
10
10
|
)
|
11
|
+
from moovio_sdk.models.errors import MoovError
|
11
12
|
from moovio_sdk.types import BaseModel
|
12
13
|
import pydantic
|
13
14
|
from typing import Optional
|
@@ -36,11 +37,15 @@ class CreatePaymentLinkErrorData(BaseModel):
|
|
36
37
|
payout: Optional[components_payoutdetailserror.PayoutDetailsError] = None
|
37
38
|
|
38
39
|
|
39
|
-
class CreatePaymentLinkError(
|
40
|
+
class CreatePaymentLinkError(MoovError):
|
40
41
|
data: CreatePaymentLinkErrorData
|
41
42
|
|
42
|
-
def __init__(
|
43
|
+
def __init__(
|
44
|
+
self,
|
45
|
+
data: CreatePaymentLinkErrorData,
|
46
|
+
raw_response: httpx.Response,
|
47
|
+
body: Optional[str] = None,
|
48
|
+
):
|
49
|
+
message = body or raw_response.text
|
50
|
+
super().__init__(message, raw_response, body)
|
43
51
|
self.data = data
|
44
|
-
|
45
|
-
def __str__(self) -> str:
|
46
|
-
return utils.marshal_json(self.data, CreatePaymentLinkErrorData)
|
@@ -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
|
@@ -30,11 +31,15 @@ class CreateSweepConfigErrorData(BaseModel):
|
|
30
31
|
] = None
|
31
32
|
|
32
33
|
|
33
|
-
class CreateSweepConfigError(
|
34
|
+
class CreateSweepConfigError(MoovError):
|
34
35
|
data: CreateSweepConfigErrorData
|
35
36
|
|
36
|
-
def __init__(
|
37
|
+
def __init__(
|
38
|
+
self,
|
39
|
+
data: CreateSweepConfigErrorData,
|
40
|
+
raw_response: httpx.Response,
|
41
|
+
body: Optional[str] = None,
|
42
|
+
):
|
43
|
+
message = body or raw_response.text
|
44
|
+
super().__init__(message, raw_response, body)
|
37
45
|
self.data = data
|
38
|
-
|
39
|
-
def __str__(self) -> str:
|
40
|
-
return utils.marshal_json(self.data, CreateSweepConfigErrorData)
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.components import (
|
6
|
+
createticketcontacterror as components_createticketcontacterror,
|
7
|
+
)
|
8
|
+
from moovio_sdk.models.errors import MoovError
|
9
|
+
from moovio_sdk.types import BaseModel
|
10
|
+
from typing import Optional
|
11
|
+
|
12
|
+
|
13
|
+
class CreateTicketErrorData(BaseModel):
|
14
|
+
title: Optional[str] = None
|
15
|
+
|
16
|
+
body: Optional[str] = None
|
17
|
+
|
18
|
+
contact: Optional[components_createticketcontacterror.CreateTicketContactError] = (
|
19
|
+
None
|
20
|
+
)
|
21
|
+
|
22
|
+
|
23
|
+
class CreateTicketError(MoovError):
|
24
|
+
data: CreateTicketErrorData
|
25
|
+
|
26
|
+
def __init__(
|
27
|
+
self,
|
28
|
+
data: CreateTicketErrorData,
|
29
|
+
raw_response: httpx.Response,
|
30
|
+
body: Optional[str] = None,
|
31
|
+
):
|
32
|
+
message = body or raw_response.text
|
33
|
+
super().__init__(message, raw_response, body)
|
34
|
+
self.data = data
|
@@ -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
|
@@ -12,11 +13,15 @@ class FeePlanAgreementErrorData(BaseModel):
|
|
12
13
|
plan_id: Annotated[Optional[str], pydantic.Field(alias="planID")] = None
|
13
14
|
|
14
15
|
|
15
|
-
class FeePlanAgreementError(
|
16
|
+
class FeePlanAgreementError(MoovError):
|
16
17
|
data: FeePlanAgreementErrorData
|
17
18
|
|
18
|
-
def __init__(
|
19
|
+
def __init__(
|
20
|
+
self,
|
21
|
+
data: FeePlanAgreementErrorData,
|
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, FeePlanAgreementErrorData)
|
@@ -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
|
@@ -25,11 +26,15 @@ class FileUploadValidationErrorData(BaseModel):
|
|
25
26
|
file: Optional[File] = None
|
26
27
|
|
27
28
|
|
28
|
-
class FileUploadValidationError(
|
29
|
+
class FileUploadValidationError(MoovError):
|
29
30
|
data: FileUploadValidationErrorData
|
30
31
|
|
31
|
-
def __init__(
|
32
|
+
def __init__(
|
33
|
+
self,
|
34
|
+
data: FileUploadValidationErrorData,
|
35
|
+
raw_response: httpx.Response,
|
36
|
+
body: Optional[str] = None,
|
37
|
+
):
|
38
|
+
message = body or raw_response.text
|
39
|
+
super().__init__(message, raw_response, body)
|
32
40
|
self.data = data
|
33
|
-
|
34
|
-
def __str__(self) -> str:
|
35
|
-
return utils.marshal_json(self.data, FileUploadValidationErrorData)
|