dub 0.27.0__tar.gz → 0.27.1__tar.gz
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.
- {dub-0.27.0 → dub-0.27.1}/PKG-INFO +1 -1
- {dub-0.27.0 → dub-0.27.1}/pyproject.toml +1 -1
- {dub-0.27.0 → dub-0.27.1}/src/dub/_version.py +3 -3
- {dub-0.27.0 → dub-0.27.1}/src/dub/analytics.py +21 -36
- {dub-0.27.0 → dub-0.27.1}/src/dub/commissions.py +41 -72
- {dub-0.27.0 → dub-0.27.1}/src/dub/customers.py +101 -180
- {dub-0.27.0 → dub-0.27.1}/src/dub/domains.py +121 -224
- {dub-0.27.0 → dub-0.27.1}/src/dub/embed_tokens.py +21 -36
- {dub-0.27.0 → dub-0.27.1}/src/dub/events.py +21 -36
- {dub-0.27.0 → dub-0.27.1}/src/dub/folders.py +81 -152
- {dub-0.27.0 → dub-0.27.1}/src/dub/links.py +201 -376
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/tracklead.py +2 -2
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/tracksale.py +2 -2
- {dub-0.27.0 → dub-0.27.1}/src/dub/partners.py +101 -192
- {dub-0.27.0 → dub-0.27.1}/src/dub/qr_codes.py +19 -34
- {dub-0.27.0 → dub-0.27.1}/src/dub/tags.py +81 -152
- {dub-0.27.0 → dub-0.27.1}/src/dub/track.py +41 -72
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/__init__.py +0 -3
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/serializers.py +1 -18
- dub-0.27.1/src/dub/utils/unmarshal_json_response.py +24 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/workspaces.py +41 -72
- {dub-0.27.0 → dub-0.27.1}/LICENSE +0 -0
- {dub-0.27.0 → dub-0.27.1}/README-PYPI.md +0 -0
- {dub-0.27.0 → dub-0.27.1}/py.typed +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/__init__.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/_hooks/__init__.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/_hooks/registration.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/_hooks/sdkhooks.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/_hooks/types.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/basesdk.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/httpclient.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/__init__.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/__init__.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticsbrowsers.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticscities.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticscontinents.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticscount.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticscountries.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticsdevices.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticsos.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticsreferers.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticsrefererurls.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticsregions.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticstimeseries.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticstoplinks.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticstopurls.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/analyticstriggers.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/clickevent.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/continentcode.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/countrycode.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/domainschema.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/folderschema.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/leadcreatedevent.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/leadevent.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/linkclickedevent.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/linkerrorschema.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/linkgeotargeting.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/linkschema.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/linkwebhookevent.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/partneranalyticscount.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/partneranalyticstimeseries.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/partneranalyticstoplinks.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/partnerenrolledevent.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/salecreatedevent.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/saleevent.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/security.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/tagschema.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/webhookevent.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/components/workspaceschema.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/__init__.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/badrequest.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/conflict.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/duberror.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/forbidden.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/internalservererror.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/inviteexpired.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/no_response_error.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/notfound.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/ratelimitexceeded.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/responsevalidationerror.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/sdkerror.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/unauthorized.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/errors/unprocessableentity.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/__init__.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/bulkcreatelinks.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/bulkdeletelinks.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/bulkupdatelinks.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/checkdomainstatus.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/createcustomer.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/createdomain.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/createfolder.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/createlink.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/createpartner.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/createpartnerlink.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/createreferralsembedtoken.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/createtag.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/deletecustomer.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/deletedomain.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/deletefolder.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/deletelink.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/deletetag.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/getcustomer.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/getcustomers.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/getlinkinfo.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/getlinks.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/getlinkscount.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/getqrcode.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/gettags.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/getworkspace.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/listcommissions.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/listdomains.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/listevents.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/listfolders.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/registerdomain.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/retrieveanalytics.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/retrievelinks.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/retrievepartneranalytics.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/updatecommission.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/updatecustomer.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/updatedomain.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/updatefolder.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/updatelink.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/updatetag.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/updateworkspace.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/upsertlink.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/models/operations/upsertpartnerlink.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/py.typed +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/sdk.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/sdkconfiguration.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/types/__init__.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/types/basemodel.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/annotations.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/datetimes.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/enums.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/eventstreaming.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/forms.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/headers.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/logger.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/metadata.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/queryparams.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/requestbodies.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/retries.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/security.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/url.py +0 -0
- {dub-0.27.0 → dub-0.27.1}/src/dub/utils/values.py +0 -0
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "dub"
|
|
6
|
-
__version__: str = "0.27.
|
|
6
|
+
__version__: str = "0.27.1"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.27.
|
|
8
|
+
__gen_version__: str = "2.656.5"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.27.1 2.656.5 0.0.1 dub"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -5,6 +5,7 @@ from dub import utils
|
|
|
5
5
|
from dub._hooks import HookContext
|
|
6
6
|
from dub.models import errors, operations
|
|
7
7
|
from dub.types import BaseModel, OptionalNullable, UNSET
|
|
8
|
+
from dub.utils.unmarshal_json_response import unmarshal_json_response
|
|
8
9
|
from typing import Any, Mapping, Optional, Union, cast
|
|
9
10
|
|
|
10
11
|
|
|
@@ -96,47 +97,39 @@ class Analytics(BaseSDK):
|
|
|
96
97
|
|
|
97
98
|
response_data: Any = None
|
|
98
99
|
if utils.match_response(http_res, "200", "application/json"):
|
|
99
|
-
return
|
|
100
|
+
return unmarshal_json_response(
|
|
100
101
|
Optional[operations.RetrieveAnalyticsResponseBody], http_res
|
|
101
102
|
)
|
|
102
103
|
if utils.match_response(http_res, "400", "application/json"):
|
|
103
|
-
response_data =
|
|
104
|
-
errors.BadRequestData, http_res
|
|
105
|
-
)
|
|
104
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
106
105
|
raise errors.BadRequest(response_data, http_res)
|
|
107
106
|
if utils.match_response(http_res, "401", "application/json"):
|
|
108
|
-
response_data =
|
|
109
|
-
errors.UnauthorizedData, http_res
|
|
110
|
-
)
|
|
107
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
111
108
|
raise errors.Unauthorized(response_data, http_res)
|
|
112
109
|
if utils.match_response(http_res, "403", "application/json"):
|
|
113
|
-
response_data =
|
|
114
|
-
errors.ForbiddenData, http_res
|
|
115
|
-
)
|
|
110
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
116
111
|
raise errors.Forbidden(response_data, http_res)
|
|
117
112
|
if utils.match_response(http_res, "404", "application/json"):
|
|
118
|
-
response_data =
|
|
113
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
119
114
|
raise errors.NotFound(response_data, http_res)
|
|
120
115
|
if utils.match_response(http_res, "409", "application/json"):
|
|
121
|
-
response_data =
|
|
116
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
122
117
|
raise errors.Conflict(response_data, http_res)
|
|
123
118
|
if utils.match_response(http_res, "410", "application/json"):
|
|
124
|
-
response_data =
|
|
125
|
-
errors.InviteExpiredData, http_res
|
|
126
|
-
)
|
|
119
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
127
120
|
raise errors.InviteExpired(response_data, http_res)
|
|
128
121
|
if utils.match_response(http_res, "422", "application/json"):
|
|
129
|
-
response_data =
|
|
122
|
+
response_data = unmarshal_json_response(
|
|
130
123
|
errors.UnprocessableEntityData, http_res
|
|
131
124
|
)
|
|
132
125
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
133
126
|
if utils.match_response(http_res, "429", "application/json"):
|
|
134
|
-
response_data =
|
|
127
|
+
response_data = unmarshal_json_response(
|
|
135
128
|
errors.RateLimitExceededData, http_res
|
|
136
129
|
)
|
|
137
130
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
138
131
|
if utils.match_response(http_res, "500", "application/json"):
|
|
139
|
-
response_data =
|
|
132
|
+
response_data = unmarshal_json_response(
|
|
140
133
|
errors.InternalServerErrorData, http_res
|
|
141
134
|
)
|
|
142
135
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -236,47 +229,39 @@ class Analytics(BaseSDK):
|
|
|
236
229
|
|
|
237
230
|
response_data: Any = None
|
|
238
231
|
if utils.match_response(http_res, "200", "application/json"):
|
|
239
|
-
return
|
|
232
|
+
return unmarshal_json_response(
|
|
240
233
|
Optional[operations.RetrieveAnalyticsResponseBody], http_res
|
|
241
234
|
)
|
|
242
235
|
if utils.match_response(http_res, "400", "application/json"):
|
|
243
|
-
response_data =
|
|
244
|
-
errors.BadRequestData, http_res
|
|
245
|
-
)
|
|
236
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
246
237
|
raise errors.BadRequest(response_data, http_res)
|
|
247
238
|
if utils.match_response(http_res, "401", "application/json"):
|
|
248
|
-
response_data =
|
|
249
|
-
errors.UnauthorizedData, http_res
|
|
250
|
-
)
|
|
239
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
251
240
|
raise errors.Unauthorized(response_data, http_res)
|
|
252
241
|
if utils.match_response(http_res, "403", "application/json"):
|
|
253
|
-
response_data =
|
|
254
|
-
errors.ForbiddenData, http_res
|
|
255
|
-
)
|
|
242
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
256
243
|
raise errors.Forbidden(response_data, http_res)
|
|
257
244
|
if utils.match_response(http_res, "404", "application/json"):
|
|
258
|
-
response_data =
|
|
245
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
259
246
|
raise errors.NotFound(response_data, http_res)
|
|
260
247
|
if utils.match_response(http_res, "409", "application/json"):
|
|
261
|
-
response_data =
|
|
248
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
262
249
|
raise errors.Conflict(response_data, http_res)
|
|
263
250
|
if utils.match_response(http_res, "410", "application/json"):
|
|
264
|
-
response_data =
|
|
265
|
-
errors.InviteExpiredData, http_res
|
|
266
|
-
)
|
|
251
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
267
252
|
raise errors.InviteExpired(response_data, http_res)
|
|
268
253
|
if utils.match_response(http_res, "422", "application/json"):
|
|
269
|
-
response_data =
|
|
254
|
+
response_data = unmarshal_json_response(
|
|
270
255
|
errors.UnprocessableEntityData, http_res
|
|
271
256
|
)
|
|
272
257
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
273
258
|
if utils.match_response(http_res, "429", "application/json"):
|
|
274
|
-
response_data =
|
|
259
|
+
response_data = unmarshal_json_response(
|
|
275
260
|
errors.RateLimitExceededData, http_res
|
|
276
261
|
)
|
|
277
262
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
278
263
|
if utils.match_response(http_res, "500", "application/json"):
|
|
279
|
-
response_data =
|
|
264
|
+
response_data = unmarshal_json_response(
|
|
280
265
|
errors.InternalServerErrorData, http_res
|
|
281
266
|
)
|
|
282
267
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -5,6 +5,7 @@ from dub import utils
|
|
|
5
5
|
from dub._hooks import HookContext
|
|
6
6
|
from dub.models import errors, operations
|
|
7
7
|
from dub.types import BaseModel, OptionalNullable, UNSET
|
|
8
|
+
from dub.utils.unmarshal_json_response import unmarshal_json_response
|
|
8
9
|
from typing import Any, List, Mapping, Optional, Union, cast
|
|
9
10
|
|
|
10
11
|
|
|
@@ -96,47 +97,39 @@ class Commissions(BaseSDK):
|
|
|
96
97
|
|
|
97
98
|
response_data: Any = None
|
|
98
99
|
if utils.match_response(http_res, "200", "application/json"):
|
|
99
|
-
return
|
|
100
|
+
return unmarshal_json_response(
|
|
100
101
|
Optional[List[operations.ListCommissionsResponseBody]], http_res
|
|
101
102
|
)
|
|
102
103
|
if utils.match_response(http_res, "400", "application/json"):
|
|
103
|
-
response_data =
|
|
104
|
-
errors.BadRequestData, http_res
|
|
105
|
-
)
|
|
104
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
106
105
|
raise errors.BadRequest(response_data, http_res)
|
|
107
106
|
if utils.match_response(http_res, "401", "application/json"):
|
|
108
|
-
response_data =
|
|
109
|
-
errors.UnauthorizedData, http_res
|
|
110
|
-
)
|
|
107
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
111
108
|
raise errors.Unauthorized(response_data, http_res)
|
|
112
109
|
if utils.match_response(http_res, "403", "application/json"):
|
|
113
|
-
response_data =
|
|
114
|
-
errors.ForbiddenData, http_res
|
|
115
|
-
)
|
|
110
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
116
111
|
raise errors.Forbidden(response_data, http_res)
|
|
117
112
|
if utils.match_response(http_res, "404", "application/json"):
|
|
118
|
-
response_data =
|
|
113
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
119
114
|
raise errors.NotFound(response_data, http_res)
|
|
120
115
|
if utils.match_response(http_res, "409", "application/json"):
|
|
121
|
-
response_data =
|
|
116
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
122
117
|
raise errors.Conflict(response_data, http_res)
|
|
123
118
|
if utils.match_response(http_res, "410", "application/json"):
|
|
124
|
-
response_data =
|
|
125
|
-
errors.InviteExpiredData, http_res
|
|
126
|
-
)
|
|
119
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
127
120
|
raise errors.InviteExpired(response_data, http_res)
|
|
128
121
|
if utils.match_response(http_res, "422", "application/json"):
|
|
129
|
-
response_data =
|
|
122
|
+
response_data = unmarshal_json_response(
|
|
130
123
|
errors.UnprocessableEntityData, http_res
|
|
131
124
|
)
|
|
132
125
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
133
126
|
if utils.match_response(http_res, "429", "application/json"):
|
|
134
|
-
response_data =
|
|
127
|
+
response_data = unmarshal_json_response(
|
|
135
128
|
errors.RateLimitExceededData, http_res
|
|
136
129
|
)
|
|
137
130
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
138
131
|
if utils.match_response(http_res, "500", "application/json"):
|
|
139
|
-
response_data =
|
|
132
|
+
response_data = unmarshal_json_response(
|
|
140
133
|
errors.InternalServerErrorData, http_res
|
|
141
134
|
)
|
|
142
135
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -236,47 +229,39 @@ class Commissions(BaseSDK):
|
|
|
236
229
|
|
|
237
230
|
response_data: Any = None
|
|
238
231
|
if utils.match_response(http_res, "200", "application/json"):
|
|
239
|
-
return
|
|
232
|
+
return unmarshal_json_response(
|
|
240
233
|
Optional[List[operations.ListCommissionsResponseBody]], http_res
|
|
241
234
|
)
|
|
242
235
|
if utils.match_response(http_res, "400", "application/json"):
|
|
243
|
-
response_data =
|
|
244
|
-
errors.BadRequestData, http_res
|
|
245
|
-
)
|
|
236
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
246
237
|
raise errors.BadRequest(response_data, http_res)
|
|
247
238
|
if utils.match_response(http_res, "401", "application/json"):
|
|
248
|
-
response_data =
|
|
249
|
-
errors.UnauthorizedData, http_res
|
|
250
|
-
)
|
|
239
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
251
240
|
raise errors.Unauthorized(response_data, http_res)
|
|
252
241
|
if utils.match_response(http_res, "403", "application/json"):
|
|
253
|
-
response_data =
|
|
254
|
-
errors.ForbiddenData, http_res
|
|
255
|
-
)
|
|
242
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
256
243
|
raise errors.Forbidden(response_data, http_res)
|
|
257
244
|
if utils.match_response(http_res, "404", "application/json"):
|
|
258
|
-
response_data =
|
|
245
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
259
246
|
raise errors.NotFound(response_data, http_res)
|
|
260
247
|
if utils.match_response(http_res, "409", "application/json"):
|
|
261
|
-
response_data =
|
|
248
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
262
249
|
raise errors.Conflict(response_data, http_res)
|
|
263
250
|
if utils.match_response(http_res, "410", "application/json"):
|
|
264
|
-
response_data =
|
|
265
|
-
errors.InviteExpiredData, http_res
|
|
266
|
-
)
|
|
251
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
267
252
|
raise errors.InviteExpired(response_data, http_res)
|
|
268
253
|
if utils.match_response(http_res, "422", "application/json"):
|
|
269
|
-
response_data =
|
|
254
|
+
response_data = unmarshal_json_response(
|
|
270
255
|
errors.UnprocessableEntityData, http_res
|
|
271
256
|
)
|
|
272
257
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
273
258
|
if utils.match_response(http_res, "429", "application/json"):
|
|
274
|
-
response_data =
|
|
259
|
+
response_data = unmarshal_json_response(
|
|
275
260
|
errors.RateLimitExceededData, http_res
|
|
276
261
|
)
|
|
277
262
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
278
263
|
if utils.match_response(http_res, "500", "application/json"):
|
|
279
|
-
response_data =
|
|
264
|
+
response_data = unmarshal_json_response(
|
|
280
265
|
errors.InternalServerErrorData, http_res
|
|
281
266
|
)
|
|
282
267
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -383,47 +368,39 @@ class Commissions(BaseSDK):
|
|
|
383
368
|
|
|
384
369
|
response_data: Any = None
|
|
385
370
|
if utils.match_response(http_res, "200", "application/json"):
|
|
386
|
-
return
|
|
371
|
+
return unmarshal_json_response(
|
|
387
372
|
Optional[operations.UpdateCommissionResponseBody], http_res
|
|
388
373
|
)
|
|
389
374
|
if utils.match_response(http_res, "400", "application/json"):
|
|
390
|
-
response_data =
|
|
391
|
-
errors.BadRequestData, http_res
|
|
392
|
-
)
|
|
375
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
393
376
|
raise errors.BadRequest(response_data, http_res)
|
|
394
377
|
if utils.match_response(http_res, "401", "application/json"):
|
|
395
|
-
response_data =
|
|
396
|
-
errors.UnauthorizedData, http_res
|
|
397
|
-
)
|
|
378
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
398
379
|
raise errors.Unauthorized(response_data, http_res)
|
|
399
380
|
if utils.match_response(http_res, "403", "application/json"):
|
|
400
|
-
response_data =
|
|
401
|
-
errors.ForbiddenData, http_res
|
|
402
|
-
)
|
|
381
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
403
382
|
raise errors.Forbidden(response_data, http_res)
|
|
404
383
|
if utils.match_response(http_res, "404", "application/json"):
|
|
405
|
-
response_data =
|
|
384
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
406
385
|
raise errors.NotFound(response_data, http_res)
|
|
407
386
|
if utils.match_response(http_res, "409", "application/json"):
|
|
408
|
-
response_data =
|
|
387
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
409
388
|
raise errors.Conflict(response_data, http_res)
|
|
410
389
|
if utils.match_response(http_res, "410", "application/json"):
|
|
411
|
-
response_data =
|
|
412
|
-
errors.InviteExpiredData, http_res
|
|
413
|
-
)
|
|
390
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
414
391
|
raise errors.InviteExpired(response_data, http_res)
|
|
415
392
|
if utils.match_response(http_res, "422", "application/json"):
|
|
416
|
-
response_data =
|
|
393
|
+
response_data = unmarshal_json_response(
|
|
417
394
|
errors.UnprocessableEntityData, http_res
|
|
418
395
|
)
|
|
419
396
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
420
397
|
if utils.match_response(http_res, "429", "application/json"):
|
|
421
|
-
response_data =
|
|
398
|
+
response_data = unmarshal_json_response(
|
|
422
399
|
errors.RateLimitExceededData, http_res
|
|
423
400
|
)
|
|
424
401
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
425
402
|
if utils.match_response(http_res, "500", "application/json"):
|
|
426
|
-
response_data =
|
|
403
|
+
response_data = unmarshal_json_response(
|
|
427
404
|
errors.InternalServerErrorData, http_res
|
|
428
405
|
)
|
|
429
406
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -530,47 +507,39 @@ class Commissions(BaseSDK):
|
|
|
530
507
|
|
|
531
508
|
response_data: Any = None
|
|
532
509
|
if utils.match_response(http_res, "200", "application/json"):
|
|
533
|
-
return
|
|
510
|
+
return unmarshal_json_response(
|
|
534
511
|
Optional[operations.UpdateCommissionResponseBody], http_res
|
|
535
512
|
)
|
|
536
513
|
if utils.match_response(http_res, "400", "application/json"):
|
|
537
|
-
response_data =
|
|
538
|
-
errors.BadRequestData, http_res
|
|
539
|
-
)
|
|
514
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
540
515
|
raise errors.BadRequest(response_data, http_res)
|
|
541
516
|
if utils.match_response(http_res, "401", "application/json"):
|
|
542
|
-
response_data =
|
|
543
|
-
errors.UnauthorizedData, http_res
|
|
544
|
-
)
|
|
517
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
545
518
|
raise errors.Unauthorized(response_data, http_res)
|
|
546
519
|
if utils.match_response(http_res, "403", "application/json"):
|
|
547
|
-
response_data =
|
|
548
|
-
errors.ForbiddenData, http_res
|
|
549
|
-
)
|
|
520
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
550
521
|
raise errors.Forbidden(response_data, http_res)
|
|
551
522
|
if utils.match_response(http_res, "404", "application/json"):
|
|
552
|
-
response_data =
|
|
523
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
553
524
|
raise errors.NotFound(response_data, http_res)
|
|
554
525
|
if utils.match_response(http_res, "409", "application/json"):
|
|
555
|
-
response_data =
|
|
526
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
556
527
|
raise errors.Conflict(response_data, http_res)
|
|
557
528
|
if utils.match_response(http_res, "410", "application/json"):
|
|
558
|
-
response_data =
|
|
559
|
-
errors.InviteExpiredData, http_res
|
|
560
|
-
)
|
|
529
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
561
530
|
raise errors.InviteExpired(response_data, http_res)
|
|
562
531
|
if utils.match_response(http_res, "422", "application/json"):
|
|
563
|
-
response_data =
|
|
532
|
+
response_data = unmarshal_json_response(
|
|
564
533
|
errors.UnprocessableEntityData, http_res
|
|
565
534
|
)
|
|
566
535
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
567
536
|
if utils.match_response(http_res, "429", "application/json"):
|
|
568
|
-
response_data =
|
|
537
|
+
response_data = unmarshal_json_response(
|
|
569
538
|
errors.RateLimitExceededData, http_res
|
|
570
539
|
)
|
|
571
540
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
572
541
|
if utils.match_response(http_res, "500", "application/json"):
|
|
573
|
-
response_data =
|
|
542
|
+
response_data = unmarshal_json_response(
|
|
574
543
|
errors.InternalServerErrorData, http_res
|
|
575
544
|
)
|
|
576
545
|
raise errors.InternalServerError(response_data, http_res)
|