moovio_sdk 0.11.6__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 +244 -0
- moovio_sdk/models/components/businesspresence.py +13 -0
- moovio_sdk/models/components/cardacceptancemethods.py +37 -0
- moovio_sdk/models/components/cardacceptancemethodserror.py +27 -0
- moovio_sdk/models/components/collectfunds.py +25 -0
- moovio_sdk/models/components/collectfundsach.py +18 -0
- moovio_sdk/models/components/collectfundsacherror.py +21 -0
- moovio_sdk/models/components/collectfundscardpayments.py +41 -0
- moovio_sdk/models/components/collectfundscardpaymentserror.py +43 -0
- moovio_sdk/models/components/collectfundserror.py +25 -0
- moovio_sdk/models/components/createdtransfer.py +5 -0
- moovio_sdk/models/components/createticket.py +24 -0
- moovio_sdk/models/components/createticketcontacterror.py +17 -0
- moovio_sdk/models/components/createtransfer.py +5 -0
- moovio_sdk/models/components/estimatedactivity.py +30 -0
- moovio_sdk/models/components/estimatedactivityerror.py +27 -0
- moovio_sdk/models/components/fulfillment.py +19 -0
- moovio_sdk/models/components/fulfillmenterror.py +17 -0
- moovio_sdk/models/components/fulfillmentmethod.py +16 -0
- moovio_sdk/models/components/fulfillmenttimeframe.py +15 -0
- moovio_sdk/models/components/geographicreach.py +10 -0
- moovio_sdk/models/components/moneytransfer.py +30 -0
- moovio_sdk/models/components/moneytransfererror.py +30 -0
- moovio_sdk/models/components/moneytransferpullfromcard.py +18 -0
- moovio_sdk/models/components/moneytransferpullfromcarderror.py +21 -0
- moovio_sdk/models/components/moneytransferpushtocard.py +18 -0
- moovio_sdk/models/components/moneytransferpushtocarderror.py +21 -0
- moovio_sdk/models/components/monthlyvolumerange.py +17 -0
- moovio_sdk/models/components/pendinglitigation.py +17 -0
- moovio_sdk/models/components/refundpolicy.py +16 -0
- moovio_sdk/models/components/sendfunds.py +26 -0
- moovio_sdk/models/components/sendfundsach.py +18 -0
- moovio_sdk/models/components/sendfundsacherror.py +21 -0
- moovio_sdk/models/components/sendfundserror.py +29 -0
- moovio_sdk/models/components/sendfundspushtocard.py +18 -0
- moovio_sdk/models/components/sendfundspushtocarderror.py +21 -0
- moovio_sdk/models/components/sendfundsrtp.py +18 -0
- moovio_sdk/models/components/sendfundsrtperror.py +21 -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/transfer.py +5 -0
- moovio_sdk/models/components/underwriting.py +67 -20
- moovio_sdk/models/components/updateticket.py +19 -0
- moovio_sdk/models/components/updateticketstatus.py +8 -0
- moovio_sdk/models/components/upsertunderwriting.py +56 -0
- moovio_sdk/models/components/volumesharebycustomertype.py +20 -0
- moovio_sdk/models/components/volumesharebycustomertypeerror.py +20 -0
- moovio_sdk/models/components/webhookdata.py +10 -10
- moovio_sdk/models/components/webhookdatatransfercreated.py +5 -1
- moovio_sdk/models/components/webhookdatatransferupdated.py +5 -1
- moovio_sdk/models/errors/__init__.py +27 -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 +14 -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 +94 -0
- moovio_sdk/models/operations/__init__.py +120 -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/listtransfers.py +9 -0
- moovio_sdk/models/operations/saveunderwriting.py +78 -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 +278 -582
- moovio_sdk/underwriting.py +378 -92
- 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.11.6.dist-info → moovio_sdk-0.13.0.dist-info}/METADATA +109 -28
- {moovio_sdk-0.11.6.dist-info → moovio_sdk-0.13.0.dist-info}/RECORD +144 -87
- {moovio_sdk-0.11.6.dist-info → moovio_sdk-0.13.0.dist-info}/WHEEL +0 -0
@@ -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,12 +88,17 @@ 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,
|
90
95
|
UpdateUnderwritingErrorError,
|
91
96
|
UpdateUnderwritingErrorErrorTypedDict,
|
92
97
|
)
|
98
|
+
from .upsertunderwritingerror import (
|
99
|
+
UpsertUnderwritingError,
|
100
|
+
UpsertUnderwritingErrorData,
|
101
|
+
)
|
93
102
|
|
94
103
|
__all__ = [
|
95
104
|
"APIError",
|
@@ -113,6 +122,8 @@ __all__ = [
|
|
113
122
|
"CreatePaymentLinkErrorData",
|
114
123
|
"CreateSweepConfigError",
|
115
124
|
"CreateSweepConfigErrorData",
|
125
|
+
"CreateTicketError",
|
126
|
+
"CreateTicketErrorData",
|
116
127
|
"Error",
|
117
128
|
"ErrorTypedDict",
|
118
129
|
"FeePlanAgreementError",
|
@@ -131,6 +142,8 @@ __all__ = [
|
|
131
142
|
"LinkCardErrorData",
|
132
143
|
"MicroDepositValidationError",
|
133
144
|
"MicroDepositValidationErrorData",
|
145
|
+
"MoovError",
|
146
|
+
"NoResponseError",
|
134
147
|
"OnboardingInviteError",
|
135
148
|
"OnboardingInviteErrorData",
|
136
149
|
"PatchSweepConfigError",
|
@@ -141,6 +154,7 @@ __all__ = [
|
|
141
154
|
"RepresentativeValidationErrorData",
|
142
155
|
"RequestCardError",
|
143
156
|
"RequestCardErrorData",
|
157
|
+
"ResponseValidationError",
|
144
158
|
"ReversalValidationError",
|
145
159
|
"ReversalValidationErrorData",
|
146
160
|
"RevokeTokenRequestError",
|
@@ -163,10 +177,14 @@ __all__ = [
|
|
163
177
|
"UpdateIssuedCardErrorData",
|
164
178
|
"UpdatePaymentLinkError",
|
165
179
|
"UpdatePaymentLinkErrorData",
|
180
|
+
"UpdateTicketError",
|
181
|
+
"UpdateTicketErrorData",
|
166
182
|
"UpdateUnderwritingError",
|
167
183
|
"UpdateUnderwritingErrorData",
|
168
184
|
"UpdateUnderwritingErrorError",
|
169
185
|
"UpdateUnderwritingErrorErrorTypedDict",
|
186
|
+
"UpsertUnderwritingError",
|
187
|
+
"UpsertUnderwritingErrorData",
|
170
188
|
]
|
171
189
|
|
172
190
|
_dynamic_imports: dict[str, str] = {
|
@@ -191,6 +209,8 @@ _dynamic_imports: dict[str, str] = {
|
|
191
209
|
"CreatePaymentLinkErrorData": ".createpaymentlinkerror",
|
192
210
|
"CreateSweepConfigError": ".createsweepconfigerror",
|
193
211
|
"CreateSweepConfigErrorData": ".createsweepconfigerror",
|
212
|
+
"CreateTicketError": ".createticketerror",
|
213
|
+
"CreateTicketErrorData": ".createticketerror",
|
194
214
|
"FeePlanAgreementError": ".feeplanagreementerror",
|
195
215
|
"FeePlanAgreementErrorData": ".feeplanagreementerror",
|
196
216
|
"File": ".fileuploadvalidationerror",
|
@@ -207,6 +227,8 @@ _dynamic_imports: dict[str, str] = {
|
|
207
227
|
"LinkCardErrorData": ".linkcarderror",
|
208
228
|
"MicroDepositValidationError": ".microdepositvalidationerror",
|
209
229
|
"MicroDepositValidationErrorData": ".microdepositvalidationerror",
|
230
|
+
"MoovError": ".mooverror",
|
231
|
+
"NoResponseError": ".no_response_error",
|
210
232
|
"OnboardingInviteError": ".onboardinginviteerror",
|
211
233
|
"OnboardingInviteErrorData": ".onboardinginviteerror",
|
212
234
|
"PatchSweepConfigError": ".patchsweepconfigerror",
|
@@ -219,6 +241,7 @@ _dynamic_imports: dict[str, str] = {
|
|
219
241
|
"RepresentativeValidationErrorData": ".representativevalidationerror",
|
220
242
|
"RequestCardError": ".requestcarderror",
|
221
243
|
"RequestCardErrorData": ".requestcarderror",
|
244
|
+
"ResponseValidationError": ".responsevalidationerror",
|
222
245
|
"ReversalValidationError": ".reversalvalidationerror",
|
223
246
|
"ReversalValidationErrorData": ".reversalvalidationerror",
|
224
247
|
"RevokeTokenRequestError": ".revoketokenrequesterror",
|
@@ -241,10 +264,14 @@ _dynamic_imports: dict[str, str] = {
|
|
241
264
|
"UpdateIssuedCardErrorData": ".updateissuedcarderror",
|
242
265
|
"UpdatePaymentLinkError": ".updatepaymentlinkerror",
|
243
266
|
"UpdatePaymentLinkErrorData": ".updatepaymentlinkerror",
|
267
|
+
"UpdateTicketError": ".updateticketerror",
|
268
|
+
"UpdateTicketErrorData": ".updateticketerror",
|
244
269
|
"UpdateUnderwritingError": ".updateunderwritingerror",
|
245
270
|
"UpdateUnderwritingErrorData": ".updateunderwritingerror",
|
246
271
|
"UpdateUnderwritingErrorError": ".updateunderwritingerror",
|
247
272
|
"UpdateUnderwritingErrorErrorTypedDict": ".updateunderwritingerror",
|
273
|
+
"UpsertUnderwritingError": ".upsertunderwritingerror",
|
274
|
+
"UpsertUnderwritingErrorData": ".upsertunderwritingerror",
|
248
275
|
}
|
249
276
|
|
250
277
|
|
@@ -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)
|
@@ -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)
|