BasisTheoryClient 0.0.1__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.
- basis_theory/__init__.py +350 -0
- basis_theory/account_updater/__init__.py +7 -0
- basis_theory/account_updater/client.py +44 -0
- basis_theory/account_updater/jobs/__init__.py +4 -0
- basis_theory/account_updater/jobs/client.py +259 -0
- basis_theory/account_updater/jobs/raw_client.py +450 -0
- basis_theory/account_updater/raw_client.py +13 -0
- basis_theory/account_updater/real_time/__init__.py +4 -0
- basis_theory/account_updater/real_time/client.py +161 -0
- basis_theory/account_updater/real_time/raw_client.py +246 -0
- basis_theory/apple_pay/__init__.py +7 -0
- basis_theory/apple_pay/client.py +267 -0
- basis_theory/apple_pay/domain/__init__.py +4 -0
- basis_theory/apple_pay/domain/client.py +309 -0
- basis_theory/apple_pay/domain/raw_client.py +631 -0
- basis_theory/apple_pay/raw_client.py +499 -0
- basis_theory/apple_pay/session/__init__.py +4 -0
- basis_theory/apple_pay/session/client.py +130 -0
- basis_theory/apple_pay/session/raw_client.py +225 -0
- basis_theory/application_keys/__init__.py +4 -0
- basis_theory/application_keys/client.py +354 -0
- basis_theory/application_keys/raw_client.py +615 -0
- basis_theory/application_templates/__init__.py +4 -0
- basis_theory/application_templates/client.py +166 -0
- basis_theory/application_templates/raw_client.py +253 -0
- basis_theory/applications/__init__.py +4 -0
- basis_theory/applications/client.py +582 -0
- basis_theory/applications/raw_client.py +1030 -0
- basis_theory/client.py +230 -0
- basis_theory/connection/__init__.py +7 -0
- basis_theory/connection/apple_pay/__init__.py +7 -0
- basis_theory/connection/apple_pay/client.py +128 -0
- basis_theory/connection/apple_pay/domain/__init__.py +4 -0
- basis_theory/connection/apple_pay/domain/client.py +309 -0
- basis_theory/connection/apple_pay/domain/raw_client.py +631 -0
- basis_theory/connection/apple_pay/raw_client.py +216 -0
- basis_theory/connection/apple_pay/session/__init__.py +4 -0
- basis_theory/connection/apple_pay/session/client.py +130 -0
- basis_theory/connection/apple_pay/session/raw_client.py +225 -0
- basis_theory/connection/client.py +39 -0
- basis_theory/connection/raw_client.py +13 -0
- basis_theory/core/__init__.py +55 -0
- basis_theory/core/api_error.py +23 -0
- basis_theory/core/client_wrapper.py +89 -0
- basis_theory/core/datetime_utils.py +28 -0
- basis_theory/core/file.py +67 -0
- basis_theory/core/force_multipart.py +16 -0
- basis_theory/core/http_client.py +543 -0
- basis_theory/core/http_response.py +55 -0
- basis_theory/core/jsonable_encoder.py +100 -0
- basis_theory/core/pagination.py +82 -0
- basis_theory/core/pydantic_utilities.py +255 -0
- basis_theory/core/query_encoder.py +58 -0
- basis_theory/core/remove_none_from_dict.py +11 -0
- basis_theory/core/request_options.py +35 -0
- basis_theory/core/serialization.py +276 -0
- basis_theory/documents/__init__.py +7 -0
- basis_theory/documents/client.py +258 -0
- basis_theory/documents/data/__init__.py +4 -0
- basis_theory/documents/data/client.py +78 -0
- basis_theory/documents/data/raw_client.py +173 -0
- basis_theory/documents/raw_client.py +442 -0
- basis_theory/enrichments/__init__.py +4 -0
- basis_theory/enrichments/client.py +135 -0
- basis_theory/enrichments/raw_client.py +203 -0
- basis_theory/environment.py +7 -0
- basis_theory/errors/__init__.py +23 -0
- basis_theory/errors/bad_request_error.py +11 -0
- basis_theory/errors/conflict_error.py +11 -0
- basis_theory/errors/forbidden_error.py +11 -0
- basis_theory/errors/internal_server_error.py +11 -0
- basis_theory/errors/not_found_error.py +10 -0
- basis_theory/errors/service_unavailable_error.py +11 -0
- basis_theory/errors/unauthorized_error.py +11 -0
- basis_theory/errors/unprocessable_entity_error.py +11 -0
- basis_theory/googlepay/__init__.py +4 -0
- basis_theory/googlepay/client.py +120 -0
- basis_theory/googlepay/raw_client.py +239 -0
- basis_theory/keys/__init__.py +4 -0
- basis_theory/keys/client.py +313 -0
- basis_theory/keys/raw_client.py +673 -0
- basis_theory/logs/__init__.py +4 -0
- basis_theory/logs/client.py +240 -0
- basis_theory/logs/raw_client.py +376 -0
- basis_theory/network_tokens/__init__.py +4 -0
- basis_theory/network_tokens/client.py +478 -0
- basis_theory/network_tokens/raw_client.py +1113 -0
- basis_theory/permissions/__init__.py +4 -0
- basis_theory/permissions/client.py +106 -0
- basis_theory/permissions/raw_client.py +170 -0
- basis_theory/proxies/__init__.py +4 -0
- basis_theory/proxies/client.py +751 -0
- basis_theory/proxies/raw_client.py +1255 -0
- basis_theory/py.typed +0 -0
- basis_theory/reactors/__init__.py +7 -0
- basis_theory/reactors/client.py +823 -0
- basis_theory/reactors/raw_client.py +1553 -0
- basis_theory/reactors/results/__init__.py +4 -0
- basis_theory/reactors/results/client.py +115 -0
- basis_theory/reactors/results/raw_client.py +194 -0
- basis_theory/roles/__init__.py +4 -0
- basis_theory/roles/client.py +98 -0
- basis_theory/roles/raw_client.py +134 -0
- basis_theory/sessions/__init__.py +4 -0
- basis_theory/sessions/client.py +222 -0
- basis_theory/sessions/raw_client.py +399 -0
- basis_theory/tenants/__init__.py +7 -0
- basis_theory/tenants/client.py +59 -0
- basis_theory/tenants/connections/__init__.py +4 -0
- basis_theory/tenants/connections/client.py +198 -0
- basis_theory/tenants/connections/raw_client.py +344 -0
- basis_theory/tenants/invitations/__init__.py +4 -0
- basis_theory/tenants/invitations/client.py +458 -0
- basis_theory/tenants/invitations/raw_client.py +805 -0
- basis_theory/tenants/members/__init__.py +4 -0
- basis_theory/tenants/members/client.py +296 -0
- basis_theory/tenants/members/raw_client.py +497 -0
- basis_theory/tenants/owner/__init__.py +4 -0
- basis_theory/tenants/owner/client.py +98 -0
- basis_theory/tenants/owner/raw_client.py +157 -0
- basis_theory/tenants/raw_client.py +13 -0
- basis_theory/tenants/self_/__init__.py +4 -0
- basis_theory/tenants/self_/client.py +308 -0
- basis_theory/tenants/self_/raw_client.py +605 -0
- basis_theory/threeds/__init__.py +7 -0
- basis_theory/threeds/client.py +39 -0
- basis_theory/threeds/raw_client.py +13 -0
- basis_theory/threeds/sessions/__init__.py +4 -0
- basis_theory/threeds/sessions/client.py +521 -0
- basis_theory/threeds/sessions/raw_client.py +808 -0
- basis_theory/token_intents/__init__.py +4 -0
- basis_theory/token_intents/client.py +258 -0
- basis_theory/token_intents/raw_client.py +454 -0
- basis_theory/tokens/__init__.py +4 -0
- basis_theory/tokens/client.py +1015 -0
- basis_theory/tokens/raw_client.py +1861 -0
- basis_theory/types/__init__.py +277 -0
- basis_theory/types/access_rule.py +25 -0
- basis_theory/types/account_updater_job.py +55 -0
- basis_theory/types/account_updater_job_list.py +22 -0
- basis_theory/types/account_updater_job_list_pagination.py +20 -0
- basis_theory/types/account_updater_job_status.py +5 -0
- basis_theory/types/account_updater_real_time_response.py +24 -0
- basis_theory/types/additional_card_details.py +23 -0
- basis_theory/types/address.py +25 -0
- basis_theory/types/apple_pay_create_response.py +20 -0
- basis_theory/types/apple_pay_create_token_response.py +28 -0
- basis_theory/types/apple_pay_domain_deregistration_request.py +19 -0
- basis_theory/types/apple_pay_domain_registration_list_request.py +19 -0
- basis_theory/types/apple_pay_domain_registration_request.py +19 -0
- basis_theory/types/apple_pay_domain_registration_response.py +20 -0
- basis_theory/types/apple_pay_method_token.py +25 -0
- basis_theory/types/apple_pay_session_request.py +21 -0
- basis_theory/types/apple_pay_token.py +33 -0
- basis_theory/types/apple_pay_tokenize_response.py +20 -0
- basis_theory/types/application.py +33 -0
- basis_theory/types/application_key.py +24 -0
- basis_theory/types/application_paginated_list.py +22 -0
- basis_theory/types/application_template.py +27 -0
- basis_theory/types/assurance_details.py +20 -0
- basis_theory/types/async_react_response.py +23 -0
- basis_theory/types/authenticate_three_ds_session_request.py +35 -0
- basis_theory/types/authentication.py +22 -0
- basis_theory/types/authentication_response.py +21 -0
- basis_theory/types/bank_details.py +20 -0
- basis_theory/types/bank_verification_response.py +19 -0
- basis_theory/types/bin_details.py +41 -0
- basis_theory/types/bin_details_bank.py +22 -0
- basis_theory/types/bin_details_country.py +21 -0
- basis_theory/types/bin_details_product.py +20 -0
- basis_theory/types/card.py +22 -0
- basis_theory/types/card_details.py +32 -0
- basis_theory/types/card_issuer.py +20 -0
- basis_theory/types/card_issuer_country.py +21 -0
- basis_theory/types/cardholder_info.py +21 -0
- basis_theory/types/client_encryption_key_metadata_response.py +23 -0
- basis_theory/types/client_encryption_key_response.py +24 -0
- basis_theory/types/condition.py +21 -0
- basis_theory/types/create_account_updater_job_request.py +22 -0
- basis_theory/types/create_document_request.py +19 -0
- basis_theory/types/create_reactor_formula_request.py +28 -0
- basis_theory/types/create_session_response.py +22 -0
- basis_theory/types/create_tenant_connection_response.py +19 -0
- basis_theory/types/create_three_ds_session_response.py +29 -0
- basis_theory/types/create_token_intent_response.py +36 -0
- basis_theory/types/cursor_pagination.py +20 -0
- basis_theory/types/document.py +25 -0
- basis_theory/types/domain_registration_response.py +20 -0
- basis_theory/types/event_types.py +5 -0
- basis_theory/types/get_applications.py +23 -0
- basis_theory/types/get_logs.py +26 -0
- basis_theory/types/get_permissions.py +19 -0
- basis_theory/types/get_proxies.py +23 -0
- basis_theory/types/get_reactor_formulas.py +22 -0
- basis_theory/types/get_reactors.py +23 -0
- basis_theory/types/get_tenant_invitations.py +23 -0
- basis_theory/types/get_tenant_members.py +22 -0
- basis_theory/types/get_tokens.py +23 -0
- basis_theory/types/get_tokens_v2.py +24 -0
- basis_theory/types/google_pay_tokenize_response.py +20 -0
- basis_theory/types/google_payment_method_token.py +27 -0
- basis_theory/types/header.py +26 -0
- basis_theory/types/intermediate_signing_key.py +22 -0
- basis_theory/types/log.py +28 -0
- basis_theory/types/log_entity_type.py +20 -0
- basis_theory/types/log_paginated_list.py +22 -0
- basis_theory/types/network_token.py +38 -0
- basis_theory/types/network_token_cryptogram.py +20 -0
- basis_theory/types/network_token_extras.py +19 -0
- basis_theory/types/pagination.py +24 -0
- basis_theory/types/payment_data.py +23 -0
- basis_theory/types/permission.py +21 -0
- basis_theory/types/privacy.py +21 -0
- basis_theory/types/problem_details.py +23 -0
- basis_theory/types/proxy.py +39 -0
- basis_theory/types/proxy_paginated_list.py +22 -0
- basis_theory/types/proxy_transform.py +23 -0
- basis_theory/types/public_key.py +3 -0
- basis_theory/types/react_response.py +22 -0
- basis_theory/types/reactor.py +32 -0
- basis_theory/types/reactor_formula.py +34 -0
- basis_theory/types/reactor_formula_configuration.py +21 -0
- basis_theory/types/reactor_formula_paginated_list.py +22 -0
- basis_theory/types/reactor_formula_request_parameter.py +22 -0
- basis_theory/types/reactor_paginated_list.py +22 -0
- basis_theory/types/role.py +19 -0
- basis_theory/types/string_string_key_value_pair.py +20 -0
- basis_theory/types/submerchant_authentication_response.py +21 -0
- basis_theory/types/tenant.py +28 -0
- basis_theory/types/tenant_connection_options.py +19 -0
- basis_theory/types/tenant_invitation_response.py +30 -0
- basis_theory/types/tenant_invitation_response_paginated_list.py +22 -0
- basis_theory/types/tenant_invitation_status.py +5 -0
- basis_theory/types/tenant_member_response.py +28 -0
- basis_theory/types/tenant_member_response_paginated_list.py +22 -0
- basis_theory/types/tenant_usage_report.py +19 -0
- basis_theory/types/three_ds_acs_rendering_type.py +22 -0
- basis_theory/types/three_ds_address.py +25 -0
- basis_theory/types/three_ds_authentication.py +53 -0
- basis_theory/types/three_ds_callback_urls.py +20 -0
- basis_theory/types/three_ds_cardholder_account_info.py +33 -0
- basis_theory/types/three_ds_cardholder_authentication_info.py +21 -0
- basis_theory/types/three_ds_cardholder_info.py +36 -0
- basis_theory/types/three_ds_cardholder_phone_number.py +20 -0
- basis_theory/types/three_ds_device_info.py +36 -0
- basis_theory/types/three_ds_merchant_info.py +26 -0
- basis_theory/types/three_ds_merchant_risk_info.py +27 -0
- basis_theory/types/three_ds_message_extension.py +22 -0
- basis_theory/types/three_ds_method.py +20 -0
- basis_theory/types/three_ds_mobile_sdk_render_options.py +20 -0
- basis_theory/types/three_ds_prior_authentication_info.py +22 -0
- basis_theory/types/three_ds_purchase_info.py +26 -0
- basis_theory/types/three_ds_requestor_info.py +25 -0
- basis_theory/types/three_ds_session.py +42 -0
- basis_theory/types/three_ds_version.py +25 -0
- basis_theory/types/token.py +49 -0
- basis_theory/types/token_cursor_paginated_list.py +22 -0
- basis_theory/types/token_enrichments.py +22 -0
- basis_theory/types/token_enrichments_card_details.py +20 -0
- basis_theory/types/token_extras.py +24 -0
- basis_theory/types/token_intent.py +36 -0
- basis_theory/types/token_intent_extras.py +21 -0
- basis_theory/types/token_paginated_list.py +22 -0
- basis_theory/types/token_service_provider_details.py +34 -0
- basis_theory/types/update_privacy.py +20 -0
- basis_theory/types/update_reactor_formula_request.py +27 -0
- basis_theory/types/user.py +25 -0
- basis_theory/types/validation_problem_details.py +24 -0
- basis_theory/types/webhook.py +35 -0
- basis_theory/types/webhook_list.py +22 -0
- basis_theory/types/webhook_list_pagination.py +20 -0
- basis_theory/types/webhook_status.py +5 -0
- basis_theory/version.py +3 -0
- basis_theory/webhooks/__init__.py +7 -0
- basis_theory/webhooks/client.py +543 -0
- basis_theory/webhooks/events/__init__.py +4 -0
- basis_theory/webhooks/events/client.py +102 -0
- basis_theory/webhooks/events/raw_client.py +136 -0
- basis_theory/webhooks/raw_client.py +943 -0
- basistheoryclient-0.0.1.dist-info/LICENSE +201 -0
- basistheoryclient-0.0.1.dist-info/METADATA +213 -0
- basistheoryclient-0.0.1.dist-info/RECORD +283 -0
- basistheoryclient-0.0.1.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from json.decoder import JSONDecodeError
|
|
5
|
+
|
|
6
|
+
from ...core.api_error import ApiError
|
|
7
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
8
|
+
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
|
9
|
+
from ...core.pydantic_utilities import parse_obj_as
|
|
10
|
+
from ...core.request_options import RequestOptions
|
|
11
|
+
from ...core.serialization import convert_and_respect_annotation_metadata
|
|
12
|
+
from ...errors.bad_request_error import BadRequestError
|
|
13
|
+
from ...errors.forbidden_error import ForbiddenError
|
|
14
|
+
from ...errors.unauthorized_error import UnauthorizedError
|
|
15
|
+
from ...errors.unprocessable_entity_error import UnprocessableEntityError
|
|
16
|
+
from ...types.apple_pay_method_token import ApplePayMethodToken
|
|
17
|
+
from ...types.apple_pay_tokenize_response import ApplePayTokenizeResponse
|
|
18
|
+
from ...types.problem_details import ProblemDetails
|
|
19
|
+
from ...types.validation_problem_details import ValidationProblemDetails
|
|
20
|
+
|
|
21
|
+
# this is used as the default value for optional parameters
|
|
22
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class RawApplePayClient:
|
|
26
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
27
|
+
self._client_wrapper = client_wrapper
|
|
28
|
+
|
|
29
|
+
def tokenize(
|
|
30
|
+
self,
|
|
31
|
+
*,
|
|
32
|
+
apple_payment_method_token: typing.Optional[ApplePayMethodToken] = OMIT,
|
|
33
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
34
|
+
) -> HttpResponse[ApplePayTokenizeResponse]:
|
|
35
|
+
"""
|
|
36
|
+
Parameters
|
|
37
|
+
----------
|
|
38
|
+
apple_payment_method_token : typing.Optional[ApplePayMethodToken]
|
|
39
|
+
|
|
40
|
+
request_options : typing.Optional[RequestOptions]
|
|
41
|
+
Request-specific configuration.
|
|
42
|
+
|
|
43
|
+
Returns
|
|
44
|
+
-------
|
|
45
|
+
HttpResponse[ApplePayTokenizeResponse]
|
|
46
|
+
Created
|
|
47
|
+
"""
|
|
48
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
49
|
+
"connections/apple-pay/tokenize",
|
|
50
|
+
method="POST",
|
|
51
|
+
json={
|
|
52
|
+
"apple_payment_method_token": convert_and_respect_annotation_metadata(
|
|
53
|
+
object_=apple_payment_method_token, annotation=ApplePayMethodToken, direction="write"
|
|
54
|
+
),
|
|
55
|
+
},
|
|
56
|
+
headers={
|
|
57
|
+
"content-type": "application/json",
|
|
58
|
+
},
|
|
59
|
+
request_options=request_options,
|
|
60
|
+
omit=OMIT,
|
|
61
|
+
)
|
|
62
|
+
try:
|
|
63
|
+
if 200 <= _response.status_code < 300:
|
|
64
|
+
_data = typing.cast(
|
|
65
|
+
ApplePayTokenizeResponse,
|
|
66
|
+
parse_obj_as(
|
|
67
|
+
type_=ApplePayTokenizeResponse, # type: ignore
|
|
68
|
+
object_=_response.json(),
|
|
69
|
+
),
|
|
70
|
+
)
|
|
71
|
+
return HttpResponse(response=_response, data=_data)
|
|
72
|
+
if _response.status_code == 400:
|
|
73
|
+
raise BadRequestError(
|
|
74
|
+
headers=dict(_response.headers),
|
|
75
|
+
body=typing.cast(
|
|
76
|
+
ValidationProblemDetails,
|
|
77
|
+
parse_obj_as(
|
|
78
|
+
type_=ValidationProblemDetails, # type: ignore
|
|
79
|
+
object_=_response.json(),
|
|
80
|
+
),
|
|
81
|
+
),
|
|
82
|
+
)
|
|
83
|
+
if _response.status_code == 401:
|
|
84
|
+
raise UnauthorizedError(
|
|
85
|
+
headers=dict(_response.headers),
|
|
86
|
+
body=typing.cast(
|
|
87
|
+
ProblemDetails,
|
|
88
|
+
parse_obj_as(
|
|
89
|
+
type_=ProblemDetails, # type: ignore
|
|
90
|
+
object_=_response.json(),
|
|
91
|
+
),
|
|
92
|
+
),
|
|
93
|
+
)
|
|
94
|
+
if _response.status_code == 403:
|
|
95
|
+
raise ForbiddenError(
|
|
96
|
+
headers=dict(_response.headers),
|
|
97
|
+
body=typing.cast(
|
|
98
|
+
ProblemDetails,
|
|
99
|
+
parse_obj_as(
|
|
100
|
+
type_=ProblemDetails, # type: ignore
|
|
101
|
+
object_=_response.json(),
|
|
102
|
+
),
|
|
103
|
+
),
|
|
104
|
+
)
|
|
105
|
+
if _response.status_code == 422:
|
|
106
|
+
raise UnprocessableEntityError(
|
|
107
|
+
headers=dict(_response.headers),
|
|
108
|
+
body=typing.cast(
|
|
109
|
+
ProblemDetails,
|
|
110
|
+
parse_obj_as(
|
|
111
|
+
type_=ProblemDetails, # type: ignore
|
|
112
|
+
object_=_response.json(),
|
|
113
|
+
),
|
|
114
|
+
),
|
|
115
|
+
)
|
|
116
|
+
_response_json = _response.json()
|
|
117
|
+
except JSONDecodeError:
|
|
118
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
119
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class AsyncRawApplePayClient:
|
|
123
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
124
|
+
self._client_wrapper = client_wrapper
|
|
125
|
+
|
|
126
|
+
async def tokenize(
|
|
127
|
+
self,
|
|
128
|
+
*,
|
|
129
|
+
apple_payment_method_token: typing.Optional[ApplePayMethodToken] = OMIT,
|
|
130
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
131
|
+
) -> AsyncHttpResponse[ApplePayTokenizeResponse]:
|
|
132
|
+
"""
|
|
133
|
+
Parameters
|
|
134
|
+
----------
|
|
135
|
+
apple_payment_method_token : typing.Optional[ApplePayMethodToken]
|
|
136
|
+
|
|
137
|
+
request_options : typing.Optional[RequestOptions]
|
|
138
|
+
Request-specific configuration.
|
|
139
|
+
|
|
140
|
+
Returns
|
|
141
|
+
-------
|
|
142
|
+
AsyncHttpResponse[ApplePayTokenizeResponse]
|
|
143
|
+
Created
|
|
144
|
+
"""
|
|
145
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
146
|
+
"connections/apple-pay/tokenize",
|
|
147
|
+
method="POST",
|
|
148
|
+
json={
|
|
149
|
+
"apple_payment_method_token": convert_and_respect_annotation_metadata(
|
|
150
|
+
object_=apple_payment_method_token, annotation=ApplePayMethodToken, direction="write"
|
|
151
|
+
),
|
|
152
|
+
},
|
|
153
|
+
headers={
|
|
154
|
+
"content-type": "application/json",
|
|
155
|
+
},
|
|
156
|
+
request_options=request_options,
|
|
157
|
+
omit=OMIT,
|
|
158
|
+
)
|
|
159
|
+
try:
|
|
160
|
+
if 200 <= _response.status_code < 300:
|
|
161
|
+
_data = typing.cast(
|
|
162
|
+
ApplePayTokenizeResponse,
|
|
163
|
+
parse_obj_as(
|
|
164
|
+
type_=ApplePayTokenizeResponse, # type: ignore
|
|
165
|
+
object_=_response.json(),
|
|
166
|
+
),
|
|
167
|
+
)
|
|
168
|
+
return AsyncHttpResponse(response=_response, data=_data)
|
|
169
|
+
if _response.status_code == 400:
|
|
170
|
+
raise BadRequestError(
|
|
171
|
+
headers=dict(_response.headers),
|
|
172
|
+
body=typing.cast(
|
|
173
|
+
ValidationProblemDetails,
|
|
174
|
+
parse_obj_as(
|
|
175
|
+
type_=ValidationProblemDetails, # type: ignore
|
|
176
|
+
object_=_response.json(),
|
|
177
|
+
),
|
|
178
|
+
),
|
|
179
|
+
)
|
|
180
|
+
if _response.status_code == 401:
|
|
181
|
+
raise UnauthorizedError(
|
|
182
|
+
headers=dict(_response.headers),
|
|
183
|
+
body=typing.cast(
|
|
184
|
+
ProblemDetails,
|
|
185
|
+
parse_obj_as(
|
|
186
|
+
type_=ProblemDetails, # type: ignore
|
|
187
|
+
object_=_response.json(),
|
|
188
|
+
),
|
|
189
|
+
),
|
|
190
|
+
)
|
|
191
|
+
if _response.status_code == 403:
|
|
192
|
+
raise ForbiddenError(
|
|
193
|
+
headers=dict(_response.headers),
|
|
194
|
+
body=typing.cast(
|
|
195
|
+
ProblemDetails,
|
|
196
|
+
parse_obj_as(
|
|
197
|
+
type_=ProblemDetails, # type: ignore
|
|
198
|
+
object_=_response.json(),
|
|
199
|
+
),
|
|
200
|
+
),
|
|
201
|
+
)
|
|
202
|
+
if _response.status_code == 422:
|
|
203
|
+
raise UnprocessableEntityError(
|
|
204
|
+
headers=dict(_response.headers),
|
|
205
|
+
body=typing.cast(
|
|
206
|
+
ProblemDetails,
|
|
207
|
+
parse_obj_as(
|
|
208
|
+
type_=ProblemDetails, # type: ignore
|
|
209
|
+
object_=_response.json(),
|
|
210
|
+
),
|
|
211
|
+
),
|
|
212
|
+
)
|
|
213
|
+
_response_json = _response.json()
|
|
214
|
+
except JSONDecodeError:
|
|
215
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
216
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
|
+
from ....core.request_options import RequestOptions
|
|
7
|
+
from .raw_client import AsyncRawSessionClient, RawSessionClient
|
|
8
|
+
|
|
9
|
+
# this is used as the default value for optional parameters
|
|
10
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class SessionClient:
|
|
14
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
15
|
+
self._raw_client = RawSessionClient(client_wrapper=client_wrapper)
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def with_raw_response(self) -> RawSessionClient:
|
|
19
|
+
"""
|
|
20
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
21
|
+
|
|
22
|
+
Returns
|
|
23
|
+
-------
|
|
24
|
+
RawSessionClient
|
|
25
|
+
"""
|
|
26
|
+
return self._raw_client
|
|
27
|
+
|
|
28
|
+
def create(
|
|
29
|
+
self,
|
|
30
|
+
*,
|
|
31
|
+
validation_url: typing.Optional[str] = OMIT,
|
|
32
|
+
display_name: typing.Optional[str] = OMIT,
|
|
33
|
+
domain: typing.Optional[str] = OMIT,
|
|
34
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
35
|
+
) -> str:
|
|
36
|
+
"""
|
|
37
|
+
Parameters
|
|
38
|
+
----------
|
|
39
|
+
validation_url : typing.Optional[str]
|
|
40
|
+
|
|
41
|
+
display_name : typing.Optional[str]
|
|
42
|
+
|
|
43
|
+
domain : typing.Optional[str]
|
|
44
|
+
|
|
45
|
+
request_options : typing.Optional[RequestOptions]
|
|
46
|
+
Request-specific configuration.
|
|
47
|
+
|
|
48
|
+
Returns
|
|
49
|
+
-------
|
|
50
|
+
str
|
|
51
|
+
Success
|
|
52
|
+
|
|
53
|
+
Examples
|
|
54
|
+
--------
|
|
55
|
+
from basis_theory import BasisTheory
|
|
56
|
+
|
|
57
|
+
client = BasisTheory(
|
|
58
|
+
correlation_id="YOUR_CORRELATION_ID",
|
|
59
|
+
api_key="YOUR_API_KEY",
|
|
60
|
+
)
|
|
61
|
+
client.connection.apple_pay.session.create()
|
|
62
|
+
"""
|
|
63
|
+
_response = self._raw_client.create(
|
|
64
|
+
validation_url=validation_url, display_name=display_name, domain=domain, request_options=request_options
|
|
65
|
+
)
|
|
66
|
+
return _response.data
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class AsyncSessionClient:
|
|
70
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
71
|
+
self._raw_client = AsyncRawSessionClient(client_wrapper=client_wrapper)
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def with_raw_response(self) -> AsyncRawSessionClient:
|
|
75
|
+
"""
|
|
76
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
77
|
+
|
|
78
|
+
Returns
|
|
79
|
+
-------
|
|
80
|
+
AsyncRawSessionClient
|
|
81
|
+
"""
|
|
82
|
+
return self._raw_client
|
|
83
|
+
|
|
84
|
+
async def create(
|
|
85
|
+
self,
|
|
86
|
+
*,
|
|
87
|
+
validation_url: typing.Optional[str] = OMIT,
|
|
88
|
+
display_name: typing.Optional[str] = OMIT,
|
|
89
|
+
domain: typing.Optional[str] = OMIT,
|
|
90
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
91
|
+
) -> str:
|
|
92
|
+
"""
|
|
93
|
+
Parameters
|
|
94
|
+
----------
|
|
95
|
+
validation_url : typing.Optional[str]
|
|
96
|
+
|
|
97
|
+
display_name : typing.Optional[str]
|
|
98
|
+
|
|
99
|
+
domain : typing.Optional[str]
|
|
100
|
+
|
|
101
|
+
request_options : typing.Optional[RequestOptions]
|
|
102
|
+
Request-specific configuration.
|
|
103
|
+
|
|
104
|
+
Returns
|
|
105
|
+
-------
|
|
106
|
+
str
|
|
107
|
+
Success
|
|
108
|
+
|
|
109
|
+
Examples
|
|
110
|
+
--------
|
|
111
|
+
import asyncio
|
|
112
|
+
|
|
113
|
+
from basis_theory import AsyncBasisTheory
|
|
114
|
+
|
|
115
|
+
client = AsyncBasisTheory(
|
|
116
|
+
correlation_id="YOUR_CORRELATION_ID",
|
|
117
|
+
api_key="YOUR_API_KEY",
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
async def main() -> None:
|
|
122
|
+
await client.connection.apple_pay.session.create()
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
asyncio.run(main())
|
|
126
|
+
"""
|
|
127
|
+
_response = await self._raw_client.create(
|
|
128
|
+
validation_url=validation_url, display_name=display_name, domain=domain, request_options=request_options
|
|
129
|
+
)
|
|
130
|
+
return _response.data
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from json.decoder import JSONDecodeError
|
|
5
|
+
|
|
6
|
+
from ....core.api_error import ApiError
|
|
7
|
+
from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
8
|
+
from ....core.http_response import AsyncHttpResponse, HttpResponse
|
|
9
|
+
from ....core.pydantic_utilities import parse_obj_as
|
|
10
|
+
from ....core.request_options import RequestOptions
|
|
11
|
+
from ....errors.bad_request_error import BadRequestError
|
|
12
|
+
from ....errors.forbidden_error import ForbiddenError
|
|
13
|
+
from ....errors.unauthorized_error import UnauthorizedError
|
|
14
|
+
from ....errors.unprocessable_entity_error import UnprocessableEntityError
|
|
15
|
+
from ....types.problem_details import ProblemDetails
|
|
16
|
+
from ....types.validation_problem_details import ValidationProblemDetails
|
|
17
|
+
|
|
18
|
+
# this is used as the default value for optional parameters
|
|
19
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class RawSessionClient:
|
|
23
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
24
|
+
self._client_wrapper = client_wrapper
|
|
25
|
+
|
|
26
|
+
def create(
|
|
27
|
+
self,
|
|
28
|
+
*,
|
|
29
|
+
validation_url: typing.Optional[str] = OMIT,
|
|
30
|
+
display_name: typing.Optional[str] = OMIT,
|
|
31
|
+
domain: typing.Optional[str] = OMIT,
|
|
32
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
33
|
+
) -> HttpResponse[str]:
|
|
34
|
+
"""
|
|
35
|
+
Parameters
|
|
36
|
+
----------
|
|
37
|
+
validation_url : typing.Optional[str]
|
|
38
|
+
|
|
39
|
+
display_name : typing.Optional[str]
|
|
40
|
+
|
|
41
|
+
domain : typing.Optional[str]
|
|
42
|
+
|
|
43
|
+
request_options : typing.Optional[RequestOptions]
|
|
44
|
+
Request-specific configuration.
|
|
45
|
+
|
|
46
|
+
Returns
|
|
47
|
+
-------
|
|
48
|
+
HttpResponse[str]
|
|
49
|
+
Success
|
|
50
|
+
"""
|
|
51
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
52
|
+
"connections/apple-pay/session",
|
|
53
|
+
method="POST",
|
|
54
|
+
json={
|
|
55
|
+
"validation_url": validation_url,
|
|
56
|
+
"display_name": display_name,
|
|
57
|
+
"domain": domain,
|
|
58
|
+
},
|
|
59
|
+
headers={
|
|
60
|
+
"content-type": "application/json",
|
|
61
|
+
},
|
|
62
|
+
request_options=request_options,
|
|
63
|
+
omit=OMIT,
|
|
64
|
+
)
|
|
65
|
+
try:
|
|
66
|
+
if 200 <= _response.status_code < 300:
|
|
67
|
+
_data = typing.cast(
|
|
68
|
+
str,
|
|
69
|
+
parse_obj_as(
|
|
70
|
+
type_=str, # type: ignore
|
|
71
|
+
object_=_response.json(),
|
|
72
|
+
),
|
|
73
|
+
)
|
|
74
|
+
return HttpResponse(response=_response, data=_data)
|
|
75
|
+
if _response.status_code == 400:
|
|
76
|
+
raise BadRequestError(
|
|
77
|
+
headers=dict(_response.headers),
|
|
78
|
+
body=typing.cast(
|
|
79
|
+
ValidationProblemDetails,
|
|
80
|
+
parse_obj_as(
|
|
81
|
+
type_=ValidationProblemDetails, # type: ignore
|
|
82
|
+
object_=_response.json(),
|
|
83
|
+
),
|
|
84
|
+
),
|
|
85
|
+
)
|
|
86
|
+
if _response.status_code == 401:
|
|
87
|
+
raise UnauthorizedError(
|
|
88
|
+
headers=dict(_response.headers),
|
|
89
|
+
body=typing.cast(
|
|
90
|
+
ProblemDetails,
|
|
91
|
+
parse_obj_as(
|
|
92
|
+
type_=ProblemDetails, # type: ignore
|
|
93
|
+
object_=_response.json(),
|
|
94
|
+
),
|
|
95
|
+
),
|
|
96
|
+
)
|
|
97
|
+
if _response.status_code == 403:
|
|
98
|
+
raise ForbiddenError(
|
|
99
|
+
headers=dict(_response.headers),
|
|
100
|
+
body=typing.cast(
|
|
101
|
+
ProblemDetails,
|
|
102
|
+
parse_obj_as(
|
|
103
|
+
type_=ProblemDetails, # type: ignore
|
|
104
|
+
object_=_response.json(),
|
|
105
|
+
),
|
|
106
|
+
),
|
|
107
|
+
)
|
|
108
|
+
if _response.status_code == 422:
|
|
109
|
+
raise UnprocessableEntityError(
|
|
110
|
+
headers=dict(_response.headers),
|
|
111
|
+
body=typing.cast(
|
|
112
|
+
ProblemDetails,
|
|
113
|
+
parse_obj_as(
|
|
114
|
+
type_=ProblemDetails, # type: ignore
|
|
115
|
+
object_=_response.json(),
|
|
116
|
+
),
|
|
117
|
+
),
|
|
118
|
+
)
|
|
119
|
+
_response_json = _response.json()
|
|
120
|
+
except JSONDecodeError:
|
|
121
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
122
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class AsyncRawSessionClient:
|
|
126
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
127
|
+
self._client_wrapper = client_wrapper
|
|
128
|
+
|
|
129
|
+
async def create(
|
|
130
|
+
self,
|
|
131
|
+
*,
|
|
132
|
+
validation_url: typing.Optional[str] = OMIT,
|
|
133
|
+
display_name: typing.Optional[str] = OMIT,
|
|
134
|
+
domain: typing.Optional[str] = OMIT,
|
|
135
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
136
|
+
) -> AsyncHttpResponse[str]:
|
|
137
|
+
"""
|
|
138
|
+
Parameters
|
|
139
|
+
----------
|
|
140
|
+
validation_url : typing.Optional[str]
|
|
141
|
+
|
|
142
|
+
display_name : typing.Optional[str]
|
|
143
|
+
|
|
144
|
+
domain : typing.Optional[str]
|
|
145
|
+
|
|
146
|
+
request_options : typing.Optional[RequestOptions]
|
|
147
|
+
Request-specific configuration.
|
|
148
|
+
|
|
149
|
+
Returns
|
|
150
|
+
-------
|
|
151
|
+
AsyncHttpResponse[str]
|
|
152
|
+
Success
|
|
153
|
+
"""
|
|
154
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
155
|
+
"connections/apple-pay/session",
|
|
156
|
+
method="POST",
|
|
157
|
+
json={
|
|
158
|
+
"validation_url": validation_url,
|
|
159
|
+
"display_name": display_name,
|
|
160
|
+
"domain": domain,
|
|
161
|
+
},
|
|
162
|
+
headers={
|
|
163
|
+
"content-type": "application/json",
|
|
164
|
+
},
|
|
165
|
+
request_options=request_options,
|
|
166
|
+
omit=OMIT,
|
|
167
|
+
)
|
|
168
|
+
try:
|
|
169
|
+
if 200 <= _response.status_code < 300:
|
|
170
|
+
_data = typing.cast(
|
|
171
|
+
str,
|
|
172
|
+
parse_obj_as(
|
|
173
|
+
type_=str, # type: ignore
|
|
174
|
+
object_=_response.json(),
|
|
175
|
+
),
|
|
176
|
+
)
|
|
177
|
+
return AsyncHttpResponse(response=_response, data=_data)
|
|
178
|
+
if _response.status_code == 400:
|
|
179
|
+
raise BadRequestError(
|
|
180
|
+
headers=dict(_response.headers),
|
|
181
|
+
body=typing.cast(
|
|
182
|
+
ValidationProblemDetails,
|
|
183
|
+
parse_obj_as(
|
|
184
|
+
type_=ValidationProblemDetails, # type: ignore
|
|
185
|
+
object_=_response.json(),
|
|
186
|
+
),
|
|
187
|
+
),
|
|
188
|
+
)
|
|
189
|
+
if _response.status_code == 401:
|
|
190
|
+
raise UnauthorizedError(
|
|
191
|
+
headers=dict(_response.headers),
|
|
192
|
+
body=typing.cast(
|
|
193
|
+
ProblemDetails,
|
|
194
|
+
parse_obj_as(
|
|
195
|
+
type_=ProblemDetails, # type: ignore
|
|
196
|
+
object_=_response.json(),
|
|
197
|
+
),
|
|
198
|
+
),
|
|
199
|
+
)
|
|
200
|
+
if _response.status_code == 403:
|
|
201
|
+
raise ForbiddenError(
|
|
202
|
+
headers=dict(_response.headers),
|
|
203
|
+
body=typing.cast(
|
|
204
|
+
ProblemDetails,
|
|
205
|
+
parse_obj_as(
|
|
206
|
+
type_=ProblemDetails, # type: ignore
|
|
207
|
+
object_=_response.json(),
|
|
208
|
+
),
|
|
209
|
+
),
|
|
210
|
+
)
|
|
211
|
+
if _response.status_code == 422:
|
|
212
|
+
raise UnprocessableEntityError(
|
|
213
|
+
headers=dict(_response.headers),
|
|
214
|
+
body=typing.cast(
|
|
215
|
+
ProblemDetails,
|
|
216
|
+
parse_obj_as(
|
|
217
|
+
type_=ProblemDetails, # type: ignore
|
|
218
|
+
object_=_response.json(),
|
|
219
|
+
),
|
|
220
|
+
),
|
|
221
|
+
)
|
|
222
|
+
_response_json = _response.json()
|
|
223
|
+
except JSONDecodeError:
|
|
224
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
225
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
4
|
+
from .apple_pay.client import ApplePayClient, AsyncApplePayClient
|
|
5
|
+
from .raw_client import AsyncRawConnectionClient, RawConnectionClient
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ConnectionClient:
|
|
9
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
10
|
+
self._raw_client = RawConnectionClient(client_wrapper=client_wrapper)
|
|
11
|
+
self.apple_pay = ApplePayClient(client_wrapper=client_wrapper)
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def with_raw_response(self) -> RawConnectionClient:
|
|
15
|
+
"""
|
|
16
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
17
|
+
|
|
18
|
+
Returns
|
|
19
|
+
-------
|
|
20
|
+
RawConnectionClient
|
|
21
|
+
"""
|
|
22
|
+
return self._raw_client
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AsyncConnectionClient:
|
|
26
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
27
|
+
self._raw_client = AsyncRawConnectionClient(client_wrapper=client_wrapper)
|
|
28
|
+
self.apple_pay = AsyncApplePayClient(client_wrapper=client_wrapper)
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def with_raw_response(self) -> AsyncRawConnectionClient:
|
|
32
|
+
"""
|
|
33
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
34
|
+
|
|
35
|
+
Returns
|
|
36
|
+
-------
|
|
37
|
+
AsyncRawConnectionClient
|
|
38
|
+
"""
|
|
39
|
+
return self._raw_client
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class RawConnectionClient:
|
|
7
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
8
|
+
self._client_wrapper = client_wrapper
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AsyncRawConnectionClient:
|
|
12
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
13
|
+
self._client_wrapper = client_wrapper
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
from .api_error import ApiError
|
|
6
|
+
from .client_wrapper import AsyncClientWrapper, BaseClientWrapper, SyncClientWrapper
|
|
7
|
+
from .datetime_utils import serialize_datetime
|
|
8
|
+
from .file import File, convert_file_dict_to_httpx_tuples, with_content_type
|
|
9
|
+
from .http_client import AsyncHttpClient, HttpClient
|
|
10
|
+
from .http_response import AsyncHttpResponse, HttpResponse
|
|
11
|
+
from .jsonable_encoder import jsonable_encoder
|
|
12
|
+
from .pagination import AsyncPager, SyncPager
|
|
13
|
+
from .pydantic_utilities import (
|
|
14
|
+
IS_PYDANTIC_V2,
|
|
15
|
+
UniversalBaseModel,
|
|
16
|
+
UniversalRootModel,
|
|
17
|
+
parse_obj_as,
|
|
18
|
+
universal_field_validator,
|
|
19
|
+
universal_root_validator,
|
|
20
|
+
update_forward_refs,
|
|
21
|
+
)
|
|
22
|
+
from .query_encoder import encode_query
|
|
23
|
+
from .remove_none_from_dict import remove_none_from_dict
|
|
24
|
+
from .request_options import RequestOptions
|
|
25
|
+
from .serialization import FieldMetadata, convert_and_respect_annotation_metadata
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"ApiError",
|
|
29
|
+
"AsyncClientWrapper",
|
|
30
|
+
"AsyncHttpClient",
|
|
31
|
+
"AsyncHttpResponse",
|
|
32
|
+
"AsyncPager",
|
|
33
|
+
"BaseClientWrapper",
|
|
34
|
+
"FieldMetadata",
|
|
35
|
+
"File",
|
|
36
|
+
"HttpClient",
|
|
37
|
+
"HttpResponse",
|
|
38
|
+
"IS_PYDANTIC_V2",
|
|
39
|
+
"RequestOptions",
|
|
40
|
+
"SyncClientWrapper",
|
|
41
|
+
"SyncPager",
|
|
42
|
+
"UniversalBaseModel",
|
|
43
|
+
"UniversalRootModel",
|
|
44
|
+
"convert_and_respect_annotation_metadata",
|
|
45
|
+
"convert_file_dict_to_httpx_tuples",
|
|
46
|
+
"encode_query",
|
|
47
|
+
"jsonable_encoder",
|
|
48
|
+
"parse_obj_as",
|
|
49
|
+
"remove_none_from_dict",
|
|
50
|
+
"serialize_datetime",
|
|
51
|
+
"universal_field_validator",
|
|
52
|
+
"universal_root_validator",
|
|
53
|
+
"update_forward_refs",
|
|
54
|
+
"with_content_type",
|
|
55
|
+
]
|