BasisTheoryClient 0.1.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.
Files changed (155) hide show
  1. basis_theory/__init__.py +226 -0
  2. basis_theory/application_keys/__init__.py +2 -0
  3. basis_theory/application_keys/client.py +702 -0
  4. basis_theory/application_templates/__init__.py +2 -0
  5. basis_theory/application_templates/client.py +290 -0
  6. basis_theory/applications/__init__.py +2 -0
  7. basis_theory/applications/client.py +1360 -0
  8. basis_theory/client.py +198 -0
  9. basis_theory/core/__init__.py +50 -0
  10. basis_theory/core/api_error.py +15 -0
  11. basis_theory/core/client_wrapper.py +54 -0
  12. basis_theory/core/datetime_utils.py +28 -0
  13. basis_theory/core/file.py +62 -0
  14. basis_theory/core/http_client.py +481 -0
  15. basis_theory/core/jsonable_encoder.py +101 -0
  16. basis_theory/core/pagination.py +88 -0
  17. basis_theory/core/pydantic_utilities.py +273 -0
  18. basis_theory/core/query_encoder.py +58 -0
  19. basis_theory/core/remove_none_from_dict.py +11 -0
  20. basis_theory/core/request_options.py +32 -0
  21. basis_theory/core/serialization.py +272 -0
  22. basis_theory/environment.py +7 -0
  23. basis_theory/errors/__init__.py +17 -0
  24. basis_theory/errors/bad_request_error.py +9 -0
  25. basis_theory/errors/conflict_error.py +9 -0
  26. basis_theory/errors/forbidden_error.py +9 -0
  27. basis_theory/errors/not_found_error.py +9 -0
  28. basis_theory/errors/unauthorized_error.py +9 -0
  29. basis_theory/errors/unprocessable_entity_error.py +9 -0
  30. basis_theory/logs/__init__.py +2 -0
  31. basis_theory/logs/client.py +417 -0
  32. basis_theory/permissions/__init__.py +2 -0
  33. basis_theory/permissions/client.py +187 -0
  34. basis_theory/proxies/__init__.py +2 -0
  35. basis_theory/proxies/client.py +1382 -0
  36. basis_theory/py.typed +0 -0
  37. basis_theory/reactorformulas/__init__.py +2 -0
  38. basis_theory/reactorformulas/client.py +1090 -0
  39. basis_theory/reactors/__init__.py +5 -0
  40. basis_theory/reactors/client.py +1707 -0
  41. basis_theory/reactors/results/__init__.py +2 -0
  42. basis_theory/reactors/results/client.py +211 -0
  43. basis_theory/roles/__init__.py +2 -0
  44. basis_theory/roles/client.py +151 -0
  45. basis_theory/sessions/__init__.py +2 -0
  46. basis_theory/sessions/client.py +434 -0
  47. basis_theory/tenants/__init__.py +5 -0
  48. basis_theory/tenants/client.py +30 -0
  49. basis_theory/tenants/connections/__init__.py +2 -0
  50. basis_theory/tenants/connections/client.py +381 -0
  51. basis_theory/tenants/invitations/__init__.py +2 -0
  52. basis_theory/tenants/invitations/client.py +752 -0
  53. basis_theory/tenants/members/__init__.py +2 -0
  54. basis_theory/tenants/members/client.py +558 -0
  55. basis_theory/tenants/self_/__init__.py +2 -0
  56. basis_theory/tenants/self_/client.py +674 -0
  57. basis_theory/threeds/__init__.py +2 -0
  58. basis_theory/threeds/client.py +615 -0
  59. basis_theory/tokens/__init__.py +2 -0
  60. basis_theory/tokens/client.py +2226 -0
  61. basis_theory/types/__init__.py +173 -0
  62. basis_theory/types/access_rule.py +25 -0
  63. basis_theory/types/application.py +34 -0
  64. basis_theory/types/application_key.py +24 -0
  65. basis_theory/types/application_paginated_list.py +22 -0
  66. basis_theory/types/application_template.py +27 -0
  67. basis_theory/types/bin_details.py +41 -0
  68. basis_theory/types/bin_details_bank.py +22 -0
  69. basis_theory/types/bin_details_country.py +21 -0
  70. basis_theory/types/bin_details_product.py +20 -0
  71. basis_theory/types/card_details.py +20 -0
  72. basis_theory/types/condition.py +21 -0
  73. basis_theory/types/create_session_response.py +22 -0
  74. basis_theory/types/create_tenant_connection_response.py +19 -0
  75. basis_theory/types/cursor_pagination.py +20 -0
  76. basis_theory/types/event_types.py +5 -0
  77. basis_theory/types/get_applications.py +23 -0
  78. basis_theory/types/get_logs.py +26 -0
  79. basis_theory/types/get_permissions.py +19 -0
  80. basis_theory/types/get_proxies.py +23 -0
  81. basis_theory/types/get_reactor_formulas.py +22 -0
  82. basis_theory/types/get_reactors.py +23 -0
  83. basis_theory/types/get_tenant_invitations.py +23 -0
  84. basis_theory/types/get_tenant_members.py +22 -0
  85. basis_theory/types/get_tokens.py +23 -0
  86. basis_theory/types/get_tokens_v2.py +20 -0
  87. basis_theory/types/log.py +28 -0
  88. basis_theory/types/log_entity_type.py +20 -0
  89. basis_theory/types/log_paginated_list.py +22 -0
  90. basis_theory/types/pagination.py +24 -0
  91. basis_theory/types/permission.py +21 -0
  92. basis_theory/types/privacy.py +21 -0
  93. basis_theory/types/problem_details.py +23 -0
  94. basis_theory/types/proxy.py +37 -0
  95. basis_theory/types/proxy_paginated_list.py +22 -0
  96. basis_theory/types/proxy_transform.py +23 -0
  97. basis_theory/types/public_key.py +3 -0
  98. basis_theory/types/react_response.py +22 -0
  99. basis_theory/types/reactor.py +32 -0
  100. basis_theory/types/reactor_formula.py +34 -0
  101. basis_theory/types/reactor_formula_configuration.py +21 -0
  102. basis_theory/types/reactor_formula_paginated_list.py +22 -0
  103. basis_theory/types/reactor_formula_request_parameter.py +22 -0
  104. basis_theory/types/reactor_paginated_list.py +22 -0
  105. basis_theory/types/role.py +19 -0
  106. basis_theory/types/string_string_key_value_pair.py +20 -0
  107. basis_theory/types/tenant.py +28 -0
  108. basis_theory/types/tenant_connection_options.py +19 -0
  109. basis_theory/types/tenant_invitation_response.py +30 -0
  110. basis_theory/types/tenant_invitation_response_paginated_list.py +22 -0
  111. basis_theory/types/tenant_invitation_status.py +5 -0
  112. basis_theory/types/tenant_member_response.py +28 -0
  113. basis_theory/types/tenant_member_response_paginated_list.py +22 -0
  114. basis_theory/types/tenant_usage_report.py +20 -0
  115. basis_theory/types/three_ds_acs_rendering_type.py +22 -0
  116. basis_theory/types/three_ds_address.py +25 -0
  117. basis_theory/types/three_ds_authentication.py +44 -0
  118. basis_theory/types/three_ds_cardholder_account_info.py +33 -0
  119. basis_theory/types/three_ds_cardholder_authentication_info.py +21 -0
  120. basis_theory/types/three_ds_cardholder_info.py +36 -0
  121. basis_theory/types/three_ds_cardholder_phone_number.py +20 -0
  122. basis_theory/types/three_ds_device_info.py +36 -0
  123. basis_theory/types/three_ds_merchant_info.py +25 -0
  124. basis_theory/types/three_ds_merchant_risk_info.py +27 -0
  125. basis_theory/types/three_ds_message_extension.py +22 -0
  126. basis_theory/types/three_ds_method.py +20 -0
  127. basis_theory/types/three_ds_mobile_sdk_render_options.py +20 -0
  128. basis_theory/types/three_ds_prior_authentication_info.py +22 -0
  129. basis_theory/types/three_ds_purchase_info.py +26 -0
  130. basis_theory/types/three_ds_requestor_info.py +21 -0
  131. basis_theory/types/three_ds_session.py +37 -0
  132. basis_theory/types/three_ds_version.py +25 -0
  133. basis_theory/types/token.py +39 -0
  134. basis_theory/types/token_cursor_paginated_list.py +22 -0
  135. basis_theory/types/token_enrichments.py +22 -0
  136. basis_theory/types/token_metrics.py +21 -0
  137. basis_theory/types/token_paginated_list.py +22 -0
  138. basis_theory/types/token_report.py +23 -0
  139. basis_theory/types/update_privacy.py +20 -0
  140. basis_theory/types/user.py +25 -0
  141. basis_theory/types/validation_problem_details.py +24 -0
  142. basis_theory/types/webhook.py +30 -0
  143. basis_theory/types/webhook_list.py +22 -0
  144. basis_theory/types/webhook_list_pagination.py +20 -0
  145. basis_theory/types/webhook_status.py +5 -0
  146. basis_theory/version.py +3 -0
  147. basis_theory/webhooks/__init__.py +5 -0
  148. basis_theory/webhooks/client.py +1053 -0
  149. basis_theory/webhooks/events/__init__.py +2 -0
  150. basis_theory/webhooks/events/client.py +155 -0
  151. basis_theory/webhooks/signing_key/__init__.py +2 -0
  152. basis_theory/webhooks/signing_key/client.py +98 -0
  153. basistheoryclient-0.1.1.dist-info/METADATA +180 -0
  154. basistheoryclient-0.1.1.dist-info/RECORD +155 -0
  155. basistheoryclient-0.1.1.dist-info/WHEEL +4 -0
@@ -0,0 +1,226 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from .types import (
4
+ AccessRule,
5
+ Application,
6
+ ApplicationKey,
7
+ ApplicationPaginatedList,
8
+ ApplicationTemplate,
9
+ BinDetails,
10
+ BinDetailsBank,
11
+ BinDetailsCountry,
12
+ BinDetailsProduct,
13
+ CardDetails,
14
+ Condition,
15
+ CreateSessionResponse,
16
+ CreateTenantConnectionResponse,
17
+ CursorPagination,
18
+ EventTypes,
19
+ GetApplications,
20
+ GetLogs,
21
+ GetPermissions,
22
+ GetProxies,
23
+ GetReactorFormulas,
24
+ GetReactors,
25
+ GetTenantInvitations,
26
+ GetTenantMembers,
27
+ GetTokens,
28
+ GetTokensV2,
29
+ Log,
30
+ LogEntityType,
31
+ LogPaginatedList,
32
+ Pagination,
33
+ Permission,
34
+ Privacy,
35
+ ProblemDetails,
36
+ Proxy,
37
+ ProxyPaginatedList,
38
+ ProxyTransform,
39
+ PublicKey,
40
+ ReactResponse,
41
+ Reactor,
42
+ ReactorFormula,
43
+ ReactorFormulaConfiguration,
44
+ ReactorFormulaPaginatedList,
45
+ ReactorFormulaRequestParameter,
46
+ ReactorPaginatedList,
47
+ Role,
48
+ StringStringKeyValuePair,
49
+ Tenant,
50
+ TenantConnectionOptions,
51
+ TenantInvitationResponse,
52
+ TenantInvitationResponsePaginatedList,
53
+ TenantInvitationStatus,
54
+ TenantMemberResponse,
55
+ TenantMemberResponsePaginatedList,
56
+ TenantUsageReport,
57
+ ThreeDsAcsRenderingType,
58
+ ThreeDsAddress,
59
+ ThreeDsAuthentication,
60
+ ThreeDsCardholderAccountInfo,
61
+ ThreeDsCardholderAuthenticationInfo,
62
+ ThreeDsCardholderInfo,
63
+ ThreeDsCardholderPhoneNumber,
64
+ ThreeDsDeviceInfo,
65
+ ThreeDsMerchantInfo,
66
+ ThreeDsMerchantRiskInfo,
67
+ ThreeDsMessageExtension,
68
+ ThreeDsMethod,
69
+ ThreeDsMobileSdkRenderOptions,
70
+ ThreeDsPriorAuthenticationInfo,
71
+ ThreeDsPurchaseInfo,
72
+ ThreeDsRequestorInfo,
73
+ ThreeDsSession,
74
+ ThreeDsVersion,
75
+ Token,
76
+ TokenCursorPaginatedList,
77
+ TokenEnrichments,
78
+ TokenMetrics,
79
+ TokenPaginatedList,
80
+ TokenReport,
81
+ UpdatePrivacy,
82
+ User,
83
+ ValidationProblemDetails,
84
+ Webhook,
85
+ WebhookList,
86
+ WebhookListPagination,
87
+ WebhookStatus,
88
+ )
89
+ from .errors import (
90
+ BadRequestError,
91
+ ConflictError,
92
+ ForbiddenError,
93
+ NotFoundError,
94
+ UnauthorizedError,
95
+ UnprocessableEntityError,
96
+ )
97
+ from . import (
98
+ application_keys,
99
+ application_templates,
100
+ applications,
101
+ logs,
102
+ permissions,
103
+ proxies,
104
+ reactorformulas,
105
+ reactors,
106
+ roles,
107
+ sessions,
108
+ tenants,
109
+ threeds,
110
+ tokens,
111
+ webhooks,
112
+ )
113
+ from .client import AsyncBasisTheory, BasisTheory
114
+ from .environment import BasisTheoryEnvironment
115
+ from .version import __version__
116
+
117
+ __all__ = [
118
+ "AccessRule",
119
+ "Application",
120
+ "ApplicationKey",
121
+ "ApplicationPaginatedList",
122
+ "ApplicationTemplate",
123
+ "AsyncBasisTheory",
124
+ "BadRequestError",
125
+ "BasisTheory",
126
+ "BasisTheoryEnvironment",
127
+ "BinDetails",
128
+ "BinDetailsBank",
129
+ "BinDetailsCountry",
130
+ "BinDetailsProduct",
131
+ "CardDetails",
132
+ "Condition",
133
+ "ConflictError",
134
+ "CreateSessionResponse",
135
+ "CreateTenantConnectionResponse",
136
+ "CursorPagination",
137
+ "EventTypes",
138
+ "ForbiddenError",
139
+ "GetApplications",
140
+ "GetLogs",
141
+ "GetPermissions",
142
+ "GetProxies",
143
+ "GetReactorFormulas",
144
+ "GetReactors",
145
+ "GetTenantInvitations",
146
+ "GetTenantMembers",
147
+ "GetTokens",
148
+ "GetTokensV2",
149
+ "Log",
150
+ "LogEntityType",
151
+ "LogPaginatedList",
152
+ "NotFoundError",
153
+ "Pagination",
154
+ "Permission",
155
+ "Privacy",
156
+ "ProblemDetails",
157
+ "Proxy",
158
+ "ProxyPaginatedList",
159
+ "ProxyTransform",
160
+ "PublicKey",
161
+ "ReactResponse",
162
+ "Reactor",
163
+ "ReactorFormula",
164
+ "ReactorFormulaConfiguration",
165
+ "ReactorFormulaPaginatedList",
166
+ "ReactorFormulaRequestParameter",
167
+ "ReactorPaginatedList",
168
+ "Role",
169
+ "StringStringKeyValuePair",
170
+ "Tenant",
171
+ "TenantConnectionOptions",
172
+ "TenantInvitationResponse",
173
+ "TenantInvitationResponsePaginatedList",
174
+ "TenantInvitationStatus",
175
+ "TenantMemberResponse",
176
+ "TenantMemberResponsePaginatedList",
177
+ "TenantUsageReport",
178
+ "ThreeDsAcsRenderingType",
179
+ "ThreeDsAddress",
180
+ "ThreeDsAuthentication",
181
+ "ThreeDsCardholderAccountInfo",
182
+ "ThreeDsCardholderAuthenticationInfo",
183
+ "ThreeDsCardholderInfo",
184
+ "ThreeDsCardholderPhoneNumber",
185
+ "ThreeDsDeviceInfo",
186
+ "ThreeDsMerchantInfo",
187
+ "ThreeDsMerchantRiskInfo",
188
+ "ThreeDsMessageExtension",
189
+ "ThreeDsMethod",
190
+ "ThreeDsMobileSdkRenderOptions",
191
+ "ThreeDsPriorAuthenticationInfo",
192
+ "ThreeDsPurchaseInfo",
193
+ "ThreeDsRequestorInfo",
194
+ "ThreeDsSession",
195
+ "ThreeDsVersion",
196
+ "Token",
197
+ "TokenCursorPaginatedList",
198
+ "TokenEnrichments",
199
+ "TokenMetrics",
200
+ "TokenPaginatedList",
201
+ "TokenReport",
202
+ "UnauthorizedError",
203
+ "UnprocessableEntityError",
204
+ "UpdatePrivacy",
205
+ "User",
206
+ "ValidationProblemDetails",
207
+ "Webhook",
208
+ "WebhookList",
209
+ "WebhookListPagination",
210
+ "WebhookStatus",
211
+ "__version__",
212
+ "application_keys",
213
+ "application_templates",
214
+ "applications",
215
+ "logs",
216
+ "permissions",
217
+ "proxies",
218
+ "reactorformulas",
219
+ "reactors",
220
+ "roles",
221
+ "sessions",
222
+ "tenants",
223
+ "threeds",
224
+ "tokens",
225
+ "webhooks",
226
+ ]
@@ -0,0 +1,2 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+